Repository navigation
docs(skill): resolve the 'do not skip steps' contradiction (#4061) - #4721
nothariharan wants to merge 1 commit into
Conversation
|
Thanks for the pull request, @nothariharan. 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.10 and 3.13, and that the change keeps extraction deterministic. |
There was a problem hiding this comment.
Graphify reviewed this change.
Worth a look — the grounded gate found no coupling regressions or blocking issues, but 1 advisory finding(s) below merit a look before merge.
Not checked: tests were not run; no formal proof of the changed code.
Graphify review — findings
Relaxes the "Do not skip steps" rule in every skill variant (agents, aider, amp, claw, codex, copilot, devin, droid, kilo, kiro, opencode, pi, trae, vscode, windows and the base skill) to "Follow these steps in order unless the fast path above applies", so the agent may now skip steps when a fast path is in play. The same one-line edit lands in the shipped skills, the tools/skillgen/expected snapshots and the core fragments they are generated from. The aider and devin fragments are changed, but their expected snapshot and shipped skill are not both regenerated, so those two variants can drift from the fragment source.
Worth a look
- Aider fragment changed but aider expected snapshot not updated —
tools/skillgen/fragments/core/aider.md:57· Escalate · medium- NOT verified (no proof, no reproducing execution) — needs human review
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 922 functions depend on the 922 functions this change touches.
Health — grade A; no new coupling hotspots.
Verification — 922 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 922 function(s) in the blast radius were not formally verified this run
Test selection
Test selection
443 of 443 test file(s) selected (100%) via static blast radius.
Escalated to a full run for safety — the selection is not trustworthy on its own (see below). CI should run the whole suite.
tests/pi.test.ts— full-run-safetytests/test_affected_cli.py— full-run-safetytests/test_affected_defines.py— full-run-safetytests/test_affected_member_seed.py— full-run-safetytests/test_affected_overrides.py— full-run-safetytests/test_agents_platform.py— full-run-safetytests/test_alias_folding.py— full-run-safetytests/test_analyze.py— full-run-safetytests/test_anthropic_custom_endpoint.py— full-run-safetytests/test_antigravity_install.py— full-run-safetytests/test_apm_fallback_version.py— full-run-safetytests/test_architecture_doc.py— full-run-safetytests/test_astro_extraction.py— full-run-safetytests/test_astro_import_ids.py— full-run-safetytests/test_atomic_canvas_export.py— full-run-safetytests/test_atomic_version_stamp.py— full-run-safetytests/test_atomic_writes.py— full-run-safetytests/test_backend_env_isolation.py— full-run-safetytests/test_backend_extras.py— full-run-safetytests/test_backend_opt_in.py— full-run-safetytests/test_benchmark.py— full-run-safetytests/test_benchmark_raw_graph.py— full-run-safetytests/test_benchmark_real_query.py— full-run-safetytests/test_blade_extractor.py— full-run-safetytests/test_build.py— full-run-safetytests/test_build_located_semantic_identity.py— full-run-safetytests/test_build_merge_dedup_scope.py— full-run-safetytests/test_build_merge_hyperedges_and_prune.py— full-run-safetytests/test_build_merge_shrink_guard.py— full-run-safetytests/test_builtin_global_type_refs.py— full-run-safetytests/test_c_include_resolution.py— full-run-safetytests/test_cache.py— full-run-safetytests/test_cache_stale_import_target.py— full-run-safetytests/test_callflow_html.py— full-run-safetytests/test_cargo_introspect.py— full-run-safetytests/test_cargo_missing_manifest.py— full-run-safetytests/test_carried_hyperedge_remap.py— full-run-safetytests/test_case_sensitive_resolution.py— full-run-safetytests/test_charmap_encoding.py— full-run-safetytests/test_chunking.py— full-run-safetytests/test_cjs_module_extension.py— full-run-safetytests/test_claude_cli_backend.py— full-run-safetytests/test_claude_md.py— full-run-safetytests/test_cli_broken_pipe.py— full-run-safetytests/test_cli_export.py— full-run-safetytests/test_cli_help.py— full-run-safetytests/test_cloud_cta.py— full-run-safetytests/test_cluster.py— full-run-safetytests/test_cluster_ambiguous_scale.py— full-run-safetytests/test_cluster_exclude_hubs.py— full-run-safety- … and 393 more
non-code file(s) changed (
graphify/skill-agents.md,graphify/skill-aider.md,graphify/skill-amp.md,graphify/skill-claw.md,graphify/skill-codex.md…) → running the full suite for safety (a code graph can't see config/fixture/data deps)
changed code file(s) with no mapped test (
graphify/skill-agents.md,graphify/skill-aider.md,graphify/skill-amp.md,graphify/skill-claw.md,graphify/skill-codex.md…) — a coverage gap or a missing link — running the full suite rather than only the selected tests
Selection is safe under the controlled-regression assumption; always-run tests + a periodic full run are the backstops. Advisory — it never changes the check verdict.
e379148 to
eab6e78
Compare
|
Thanks for catching this — the contradiction is real (the "Do not skip steps" line conflicts with the fast path that lets you skip Step 2). One thing before this can land: the change here edits the generated skill files (
Because the fragments are unchanged in this PR, the next Could you move the edit into those fragments and regenerate? Roughly:
Once it's fragment-sourced and regenerated, happy to take it. Thanks for the fix. |
…Labs#4061) The fast path tells the agent to skip Steps 1-5 for an existing graph, then the next paragraph said 'Follow these steps in order. Do not skip steps.' Reword the latter to defer to the fast path in all three source fragments (core.md, aider.md, devin.md), and add the reword to the sanctioned monolith-diff predicates so --monolith-roundtrip accepts it. Regenerated the 14 split-host skill artifacts and expected snapshots with tools.skillgen; --check and --monolith-roundtrip both pass.
eab6e78 to
41141ef
Compare
|
Thanks Safi. Fixed in
Diff is now 36 files, +50/-35 (3 fragments + gen.py predicate + 16 skill artifacts + 16 expected snapshots). CI is re-running. |
Go (#4867/#4868/#4866) and Python (#4773) extractor changes alter per-file AST output and are AST-cached, so one combined _AST_CACHE_SCHEMA bump 30->31 forces stale caches to re-extract. Install (#4770/#4771) and the skill reword (#4721) need no bump. Folded into the unreleased 0.9.99. Each PR omitted its own bump / carried a stale number; the single combined bump lands here. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Landed in v0.9.99, now on PyPI (pip install graphifyy==0.9.99). The 'do not skip steps' skill instruction is reworded to resolve the fast-path contradiction across all hosts. Thanks for the fix, @nothariharan. |
Fixes #4061.
Base
Based on
upstream/v8atc588b72d(0.9.94), the latest release at the time of writing.Problem
The skill's fast path says to "skip Steps 1-5 entirely" for an existing graph, then the next paragraph says "Follow these steps in order. Do not skip steps." The two instructions contradict each other.
Change
Reword the second sentence to "Follow these steps in order unless the fast path above applies." in all three source fragments (
core.md,aider.md,devin.md), then regenerate the 14 split-host skill artifacts and expected snapshots withpython -m tools.skillgenand--bless.Because the aider/devin monoliths are checked by
--monolith-roundtrip, add the reword to the sanctioned monolith-diff predicates intools/skillgen/gen.py(both the old and the new sentence are allowed).Docs only; no behavior change.
Verification
python -m tools.skillgen --monolith-roundtrip-> "monolith-roundtrip OK".python -m tools.skillgen --check-> "check OK: 134 artifact(s) match committed output and expected/."python -m pytest tests/test_skillgen.py tests/test_skillgen_input_path_injection.py -q-> 101 passed.