Skip to content

docs(skill): resolve the 'do not skip steps' contradiction (#4061) - #4721

Closed
nothariharan wants to merge 1 commit into
Graphify-Labs:v8from
nothariharan:docs/4061-skip-steps-contradiction
Closed

nothariharan wants to merge 1 commit into
Graphify-Labs:v8from
nothariharan:docs/4061-skip-steps-contradiction

Conversation

@nothariharan

@nothariharan nothariharan commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #4061.

Base

Based on upstream/v8 at c588b72d (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 with python -m tools.skillgen and --bless.

Because the aider/devin monoliths are checked by --monolith-roundtrip, add the reword to the sanctioned monolith-diff predicates in tools/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.
  • Diff: 36 files, +50/-35 (3 fragments + gen.py predicate + 16 skill artifacts + 16 expected snapshots).

@github-actions

Copy link
Copy Markdown

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.

@graphify-labs graphify-labs Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-safety
  • tests/test_affected_cli.py — full-run-safety
  • tests/test_affected_defines.py — full-run-safety
  • tests/test_affected_member_seed.py — full-run-safety
  • tests/test_affected_overrides.py — full-run-safety
  • tests/test_agents_platform.py — full-run-safety
  • tests/test_alias_folding.py — full-run-safety
  • tests/test_analyze.py — full-run-safety
  • tests/test_anthropic_custom_endpoint.py — full-run-safety
  • tests/test_antigravity_install.py — full-run-safety
  • tests/test_apm_fallback_version.py — full-run-safety
  • tests/test_architecture_doc.py — full-run-safety
  • tests/test_astro_extraction.py — full-run-safety
  • tests/test_astro_import_ids.py — full-run-safety
  • tests/test_atomic_canvas_export.py — full-run-safety
  • tests/test_atomic_version_stamp.py — full-run-safety
  • tests/test_atomic_writes.py — full-run-safety
  • tests/test_backend_env_isolation.py — full-run-safety
  • tests/test_backend_extras.py — full-run-safety
  • tests/test_backend_opt_in.py — full-run-safety
  • tests/test_benchmark.py — full-run-safety
  • tests/test_benchmark_raw_graph.py — full-run-safety
  • tests/test_benchmark_real_query.py — full-run-safety
  • tests/test_blade_extractor.py — full-run-safety
  • tests/test_build.py — full-run-safety
  • tests/test_build_located_semantic_identity.py — full-run-safety
  • tests/test_build_merge_dedup_scope.py — full-run-safety
  • tests/test_build_merge_hyperedges_and_prune.py — full-run-safety
  • tests/test_build_merge_shrink_guard.py — full-run-safety
  • tests/test_builtin_global_type_refs.py — full-run-safety
  • tests/test_c_include_resolution.py — full-run-safety
  • tests/test_cache.py — full-run-safety
  • tests/test_cache_stale_import_target.py — full-run-safety
  • tests/test_callflow_html.py — full-run-safety
  • tests/test_cargo_introspect.py — full-run-safety
  • tests/test_cargo_missing_manifest.py — full-run-safety
  • tests/test_carried_hyperedge_remap.py — full-run-safety
  • tests/test_case_sensitive_resolution.py — full-run-safety
  • tests/test_charmap_encoding.py — full-run-safety
  • tests/test_chunking.py — full-run-safety
  • tests/test_cjs_module_extension.py — full-run-safety
  • tests/test_claude_cli_backend.py — full-run-safety
  • tests/test_claude_md.py — full-run-safety
  • tests/test_cli_broken_pipe.py — full-run-safety
  • tests/test_cli_export.py — full-run-safety
  • tests/test_cli_help.py — full-run-safety
  • tests/test_cloud_cta.py — full-run-safety
  • tests/test_cluster.py — full-run-safety
  • tests/test_cluster_ambiguous_scale.py — full-run-safety
  • tests/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.

@nothariharan
nothariharan force-pushed the docs/4061-skip-steps-contradiction branch from e379148 to eab6e78 Compare October 23, 2026 16:50
@safishamsi

Copy link
Copy Markdown
Member

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 (graphify/skill-*.md) and their tools/skillgen/expected/* snapshots directly, but the source of that wording is a skillgen fragment, not the generated outputs. The line lives in:

  • tools/skillgen/fragments/core/core.md
  • tools/skillgen/fragments/core/aider.md
  • tools/skillgen/fragments/core/devin.md

Because the fragments are unchanged in this PR, the next python -m tools.skillgen run would regenerate the old wording and revert the fix.

Could you move the edit into those fragments and regenerate? Roughly:

  1. Update the "Follow these steps in order. Do not skip steps." line in the three fragments above.
  2. Regenerate: python -m tools.skillgen (then python -m tools.skillgen --check should pass against the committed outputs).
  3. Heads up: editing core/aider.md and core/devin.md is checked by python -m tools.skillgen --monolith-roundtrip — if it flags the change, it needs a sanctioned-diff entry in tools/skillgen/gen.py.

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.
@nothariharan
nothariharan force-pushed the docs/4061-skip-steps-contradiction branch from eab6e78 to 41141ef Compare October 23, 2026 17:36
@nothariharan

Copy link
Copy Markdown
Contributor Author

Thanks Safi. Fixed in 41141efa.

  • The reword is now in all three source fragments: tools/skillgen/fragments/core/core.md, aider.md, and devin.md.
  • Regenerated with python -m tools.skillgen and --bless; the 14 split-host skills and their expected snapshots are updated.
  • Added the reword to the sanctioned monolith-diff predicates in tools/skillgen/gen.py (both the removed old sentence and the added new one), since --monolith-roundtrip flags any aider/devin edit.
  • python -m tools.skillgen --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.

Diff is now 36 files, +50/-35 (3 fragments + gen.py predicate + 16 skill artifacts + 16 expected snapshots). CI is re-running.

safishamsi added a commit that referenced this pull request Oct 30, 2026
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]>
@safishamsi

Copy link
Copy Markdown
Member

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.

@safishamsi safishamsi closed this Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor Pull request from a returning community contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: skill.md — "Do not skip steps" contradicts the documented skips; shouted MANDATORY Agent-tool line; API-key note stated twice

2 participants