Skip to content

fix(skill): recover Windows interpreter without parsing launcher - #1962

Closed
oleksii-tumanov wants to merge 2 commits into
Graphify-Labs:v8from
oleksii-tumanov:fix/windows-interpreter-guard
Closed

oleksii-tumanov wants to merge 2 commits into
Graphify-Labs:v8from
oleksii-tumanov:fix/windows-interpreter-guard

Conversation

@oleksii-tumanov

@oleksii-tumanov oleksii-tumanov commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Recover a missing .graphify_python from validated uv and pipx tool environments before considering console-script shebang and system-Python fallbacks.
  • Validate candidates in isolated mode and require both an installed graphifyy distribution and an importable graphify module, rejecting project-local metadata/module shadows and incomplete environments.
  • Regenerate the skill artifacts and cover both tool managers, an MZ-prefixed Windows launcher, combined CWD shadowing, and the existing POSIX shebang path.

Addresses A1 in #1619.

Result

Path-sanitized results from the Windows regression harness:

uv -> <tmp>/uv-tools/graphifyy/Scripts/python.exe
pipx -> <tmp>/pipx-tools/graphifyy/Scripts/python.exe
cwd module or metadata shadow -> rejected
combined cwd module + metadata shadow -> rejected

Testing

  • uv run --frozen pytest tests/test_skillgen.py -q --tb=short (65 passed)
  • uv run --frozen pytest tests/ -q --tb=short (3641 passed, 3 skipped)
  • uv run --frozen python -m tools.skillgen --check, --audit-coverage, --schema-singleton, --monolith-roundtrip, and --always-on-roundtrip (passed; 134 generated artifacts match)
  • uv run --frozen ruff check tests/test_skillgen.py (passed)

@oleksii-tumanov
oleksii-tumanov force-pushed the fix/windows-interpreter-guard branch from 9afd215 to 2e6403e Compare July 25, 2026 04:21
@oleksii-tumanov

Copy link
Copy Markdown
Contributor Author

@safishamsi, I rebased this focused A1 patch onto current v8 and regenerated the skill artifacts. Candidate validation now runs in isolated mode, so local graphifyy metadata plus a local graphify module cannot validate an unrelated interpreter.

All four CI checks are green on 2e6403e1. This is the interpreter-guard patch you invited in #1619; when you have a chance, could you take a look?

@oleksii-tumanov

Copy link
Copy Markdown
Contributor Author

Closing this PR as superseded. The Windows skill variant was addressed upstream in 3d19463 and released in v0.9.36.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant