Repository navigation
Conversation
Unify CLI, MCP, generated workflows and owned integrations behind a source-pinned private runtime. Add optional software provisioning, project-aware MCP resources, migration and lifecycle management, and release/CI parity gates while preserving user graph and configuration data. Refs Graphify-Labs#5606 Co-Authored-By: ChatGPT <noreply@openai.com>
|
Thanks for the pull request, @KiaroSama. A maintainer will review it soon. Want to talk it through while it is in review? Come join us on our Discord server. For longer-form discussion there is also GitHub Discussions. A couple of things that speed up review: make sure the test suite passes on Python 3.11 and 3.13, and that the change keeps extraction deterministic. |
There was a problem hiding this comment.
Graphify review 
20 possible issues to check · High impact
The changes add managed-plugin support for shell-read nudges, Git hook interpreter selection, project-specific MCP resources, and plugin-owned integrations.
20 possible issues we couldn't confirm
- Unknown CPU architecture or missing config entry leads to a null asset and an unclear failure ·
plugin/bootstrap.ps1:31 - Launches with a command line one character over the Windows limit fail with a misleading start error ·
plugin/windows-launcher.c:27 - Installed uv version check can abort the bootstrap when
uv --versionwrites to stderr ·plugin/bootstrap.ps1:33 - +17 more in Graphify
They don't change the score.
What this review covered
- This review stopped before it finished; findings are from the part that ran.
- The AI model asked for code in a way the review could not use.
- We didn't review 66 files that aren't source code, such as docs, config, images, or generated or third-party code.
- 2 more possible issues from the per-file sweep were left out to keep the report to its limit.
- 15 of 15 changed files inspected. This is scope, not a correctness guarantee.
Code graph · 2120 functions depend on this change
- 17 functions became more coupled. Largest:
install()(58 callers),uninstall()(15 callers),sync_manifests()(13 callers). - 661 of 661 test files are affected by this change.
- Gate, test list and every flagged function: in the Graphify check.
Review stopped early on 0a5f002 · 17 earlier findings not re-checked
Keep Bash command lookup and heredoc content out of the PowerShell reader path. Recognize literal PowerShell commands without guessing the selected shell from Codex's compatibility hook name, and cover the original false nudges plus supported PowerShell readers with regression tests. Preserve canonical hook/freshness guidance in generated plugin references and replace the complete obsolete interpreter-resolution paragraph with the managed runtime contract. Refs Graphify-Labs#5639 Refs Graphify-Labs#5606 Co-Authored-By: ChatGPT <noreply@openai.com>
| path.parent.mkdir(parents=True, exist_ok=True) | ||
| path.write_text(content, encoding="utf-8", newline="\n") | ||
| expected = set(generated) | ||
| for path in (repo / "skills" / "graphify").rglob("*.md"): |
There was a problem hiding this comment.
Sync deletes custom Markdown files from the plugin skill directory
Running the manifest sync can remove Markdown files that were not generated by Graphify.
Limit the cleanup in sync_manifests() in scripts/sync_plugin_manifests.py to files owned by the sync.
Evidence · checked against the code
Expected: Files not owned or generated by the sync are preserved.
Actually: The cleanup loop unlinks every Markdown path under that directory that is not in the generated-file set.
- Independent source review: Checked the
--checkbranch: it records stale paths but skips both writes and unlinks. That protects check-only invocations, not normal sync runs. The existing test verifies a generated reference file survives; it does not test preservation of extra Markdown files.
Prompt to fix with AI
In scripts/sync_plugin_manifests.py, sync_manifests (lines 154-157):
Problem: Sync deletes custom Markdown files from the plugin skill directory
Expected: Files not owned or generated by the sync are preserved.
Actually: The cleanup loop unlinks every Markdown path under that directory that is not in the generated-file set.
Fix it at the cause, and add a test that fails without the fix.
Graphify · Checked against the code · View in Graphify
Track generated Markdown ownership and normalized content hashes before pruning obsolete references. Preserve custom or modified files and path aliases, reject malformed inventory entries, and retain ownership metadata when cleanup fails. Report malformed migration configuration sections without exposing their values, and support projects without an optional-dependencies table. Add regression coverage and document the preservation rules. Refs Graphify-Labs#5639 and Graphify-Labs#5606. Co-Authored-By: ChatGPT <noreply@openai.com>
What does this PR do?
Refs #5606. Builds on #5500 and keeps #5606 open for the full client/platform/service acceptance checklist.
The native plugins currently launch a separate PyPI environment while their skills, terminal commands and persistent integrations can still use other installations. That makes updates drift and prevents users from confidently removing the legacy setup.
This PR provides one source-pinned, plugin-managed execution path for Claude Code and Codex:
See the managed runtime guide and capability/acceptance matrix.
Verification & invariants
Project graphs, provenance, output-path semantics and unrelated settings remain user-owned. Execution reuses canonical Graphify code. Runtime activation follows successful installation; cleanup targets explicitly owned integrations. Generated workflows reuse authoritative skillgen fragments.
Review follow-up (0a5f002)
Addresses the confirmed P2 custom-Markdown deletion finding, plus two reproduced hypotheses visible in the review:
plugin/generated-skills.json. It removes a retired file only when the previous inventory owns that path and its content remains unchanged. Custom Markdown is preserved and ignored by drift checks; modified obsolete references survive.--checkbehavior are covered.Verification on this follow-up:
pytest tests -q -n 2 -m 'not serial' --tb=shortandpytest tests -q -m serial --tb=short: 12,543 passed, 122 skipped, 2 xfailed, 8 failed. The same previously reproduced environment failures remain: seven DNS lookups and one prohibited Unix-socket creation.32787af(file/message/rule/severity, ignoring shifted line numbers). The four changed Python files separately report 0 errors / 0 warnings. The whole project is not type-clean; the explicit interpreter resolves the dependency-import noise present in the earlier report.Review follow-up (32787af)
Addresses the confirmed shell-reader finding and two reproduced generated-guidance defects:
type), ambiguousgc, quoted prose and heredoc data no longer enter the PowerShell reader path or spend the read-nudge budget. Exactly one parser handles each command.Get-Contentand constrainedpwsh/powershell -Commandinvocations retain PowerShell reading, includingtype/gcaliases in the explicit wrapper. Current Codex hooks omit the selected shell, so a bare ambiguous alias remains advisory-silent; command execution is unaffected. The limitation and immutable upstream evidence are documented.AGENTS.md.Verification for this follow-up:
Get-Contentheredoc edge case before their fixes. Both new generator regressions also failed before correction.uv run --frozen --all-extras pytest tests -q --tb=shortproduced 12,515 passed, 122 skipped, 2 xfailed, 8 failed. The failures are the previously reproduced environment restrictions: seven DNS lookups and one Unix-socket creation. This broad run preceded the final conservative heredoc gate; the 255-test selection above includes that final gate.fc032e1, not the entire feature against upstream; it does not claim a clean full-project type check.GRAPHIFY_MAX_WORKERS=1 graphify update . --no-cluster: 1,382 AST files, 29,062 nodes and 63,673 edges, with graph.json saved. Local graph/cache data are excluded from this PR.Initial implementation checks
uv run pytest tests: 12,476 passed, 122 skipped, 2 xfailed, 8 failed. All eight failures reproduced on unchanged upstream HEAD: one prohibited Unix-socket creation and seven DNS-resolution failures.uv run ruff check .: passed.python scripts/sync_plugin_manifests.py --check: no drift. Legacypython -m tools.skillgen --check: all 134 generated artifacts match. Native skill validation passed.python tools/plugin_smoke.pypassed: hostile ambient PATH/Python settings, managed package identity, real stdio MCP A/B/A tool/resource selection, cached offline preparation, both clients' owned instructions, disable refusal/re-enable and preserved project hashes.--all-featuressmoke was interrupted: uncached dependency access was policy-blocked, and the environment became unavailable during a local-cache retry. Its final canonical update remains a CI acceptance item.Acceptance boundaries
project_path. Compatibility-only releases need upgrading.Type of change
Graphify-specific checklist