Skip to content

gstack stops offering to add skill routing rules to your project's CLAUDE.md (GST-3382) - #4629

Merged
capy-ai[bot] merged 4 commits into
mainfrom
gstack-stops-offering-claude-md-routing
Nov 21, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
gstack-stops-offering-claude-md-routing

Conversation

@garrytan

@garrytan garrytan commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

gstack no longer asks to append a ## Skill routing section to your project's CLAUDE.md; its prompt-routing hook, on by default, now starts the right skill by itself.
Why: in a preregistered test on Opus 5.5 the hook loaded the bug-fix skill in 45 of 60 and 48 of 60 sessions, past the section's 39 of 60 (results).
Nothing to do: a section an older gstack added stays as you left it and keeps working; delete it if you like.

What changed

Skill start in a project without a routing section: main offered to add one to CLAUDE.md; this branch no longer does

When a skill starts in a project without a routing section, main offered to add one to CLAUDE.md, and this branch no longer does.

Before/after as text
--- Before · before.txt · captured output
+++ After · after.txt · captured output
 $ gstack-skill-start --skill testskill   # project without a routing section
 HAS_ROUTING: no
+(no routing offer)
-ROUTING_DECLINED: false
-GSTACK_INSTRUCTION_BEGIN: routing-injection <nonce>
-> gstack works best when your project's CLAUDE.md includes skill routing rules.
-Options: A) Add routing rules to CLAUDE.md (recommended)  B) No thanks, I'll invoke skills manually
-## Skill routing

People starting a skill in a project without a routing section used to get a one-time question asking to append one to CLAUDE.md and commit it. That question is gone, because the prompt-routing hook already names the matching skill.

  • bin/gstack-skill-start no longer emits the routing offer (the question, the section to append and the commit). It still reports HAS_ROUTING, which says whether a project already carries a section.
  • The routing_declined setting, which only answered that offer, is gone from gstack-config, along with the ROUTING_DECLINED status line and the offer's question-registry entry.
  • Existing CLAUDE.md and AGENTS.md files are never edited. gstack's offered section had no begin or end marker, and people edit it, so gstack can't tell its own text from yours; it stops writing the section and leaves existing ones alone.
  • The section's exact bytes now live in test/fixtures/claude-md-skill-routing.md, so the E2E tests that put it in a fixture project's CLAUDE.md send the model the same text as before.
  • Docs: docs/proactive.md, docs/skill-routing-and-contracts.md, docs/uninstall.md and docs/OPENCLAW.md say the offer is gone and what to do with an old section.
  • Two test fixes: the /design-review build-loop test no longer expects the removed offer's text, and its single-source check now compares paths with forward slashes so it passes on Windows.
Why

This follows a decision written down before the test ran (preregistration, results merged in garrytan/gstack-evals#415). Its decision row said that if the hook alone reaches 39 of 60 on both task sets, gstack cuts the CLAUDE.md routing offer and relies on the hook.

  • On B1's 60 bug-fix tasks the hook got Claude Opus 5.5 to load the skill in 45 of 60 (75.0%, 95% interval 62.8 to 84.2).
  • On 60 fresh tasks no earlier run had used, it loaded in 48 of 60 (80.0%, 68.2 to 88.2). With no gstack installed, the skill loaded in 0 of 60.
  • The bar, 39 of 60, is what the CLAUDE.md section managed on the same 60 tasks. Against the previous hook (B1d), the fixed matcher gained 13 loads and lost none.

The run measured gstack main at 5df6b5a (#4539, the bug-report matcher fix). Main has one later matcher change, #4566, which ignores words inside backticks. Replaying the hook's matcher at 5df6b5a and at this branch's base over the test's own prompts gives the same skill and the same hook line on all 60 in-sample prompts (they live in test/fixtures/skill-route-b1-in-sample.json) and on the 55 fresh prompts rebuilt byte for byte from SWE-rebench (each matched the preregistration's prompt sha256). The other 5 fresh prompts could not be rebuilt exactly; 2 near-copies route the same, and 3 interface tasks were not checked.

Blast radius

The removal touches every skill start, gstack-config and the question registry. It is safe because nothing outside the tests read the removed key, status line or question id (a repo-wide search by four reviewers), and a config.yaml that still holds routing_declined: true keeps working: gstack-config get, list and defaults all exit 0 (script ran, QA probe 002).

Pre-Landing Review

No blocking issues. Five reviewers read the change (two of them read the test files in summary only). They were a batched testing, security and state-machines specialist, a red-team reader, an adversarial reader, a second-model review on GPT-6.1 Sol and a targeted reader for the config change. Four found nothing and the adversarial reader raised two low notes below.

Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.

  • INFORMATIONAL docs/OPENCLAW.md:121 docs/OPENCLAW.md still lists 'routing injection' among the onboarding blocks spawned sessions suppress; the block no longer exists after this PR. Nothing breaks.
  • INFORMATIONAL bin/gstack-config:64 A routing_declined line left in an upgraded user's config.yaml now does nothing and the header no longer explains it; gstack-config get still prints it. No wrong behavior.
  • INFORMATIONAL [ADVISORY] bin/gstack-skill-start:322 HAS_ROUTING is still computed and printed but no gate reads it now; kept for older installed skill files.

The first note was later fixed by the documentation audit (see Documentation).

Exploratory QA

Three smoke probes on isolated fixtures (own HOME and state root, a fresh git project with no CLAUDE.md), all passing:

  • With routing_declined unset and the one-time prompt already answered (the case where main offered the section), skill start exits 0, prints no routing offer and no ROUTING_DECLINED line, and creates no CLAUDE.md.
  • The same with a stale routing_declined: true in config.yaml.
  • gstack-config get, list and defaults all exit 0 with that stale key, and the key is absent from active values and defaults.

Not probed here: proactive: all and off (covered by test/proactive-skill-start.test.ts).

Eval Results

The selector picked 24 paid behavioral probes (the ship-docsync family, the skillify cases and a few others) and no quality judges. None ran for this PR: no earlier run on this PR could be reused, and the panel would pass the PR's paid budget. They are left to the release gate that runs on main.

TODOS

No TODO items completed in this PR.

Documentation

Status: updated. One factual edit; no blockers.

Scope: branch gstack-stops-offering-claude-md-routing, base f71e785 to 0cd0a6b (3 commits, 29 files, with no staged, unstaged or new files), which removes the CLAUDE.md skill-routing offer and the routing_declined setting.

Documentation health:

  • docs/OPENCLAW.md: Updated (removed 'routing injection' from the list of suppressed spawned-session prompts)
  • docs/proactive.md: Current
  • docs/skill-routing-and-contracts.md: Current
  • docs/uninstall.md: Current
  • changelog.d/cut-claude-md-routing-offer.md: Current
  • CLAUDE.md: Current (the project's own routing section is kept on purpose)

Coverage debt: none. The removed routing_declined key and the removed offer are documented in the changelog fragment, docs/proactive.md and docs/skill-routing-and-contracts.md.

Diagram drift: none found.

Tests
  • CI free-tests run 44940987365 at a3e3ff3: 1732 test files passed, carried for this head
  • macOS checks cso-macos-launcher and macos-named-regressions (run 44940987365) and windows-smoke (run 44940987376) passed at this head
  • bun test test/design-review-build-loop.test.ts: 8 pass, 0 fail
Agent notes

Lane GSTA-734 for GST-3382. Out of scope and untouched: the hook and its matcher, gstack-harness register --context (OpenClaw and Hermes, marked block), recorded PTY screens that show the old question, and gstack's own repo CLAUDE.md.

Approvals

No approvals recorded for branch gstack-stops-offering-claude-md-routing.
Plan: exempt: bug fix
Plan check: exempt bug fix

REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=3 fixed=0 scope=frozen ledgers_read=2 dispatches=2 est_input_tokens=33870
Gate edits: 47 listed, 45 read, 0 findings — 0 kept, 0 restored, 0 open

Paid evals: 24 selected behavioral probes not run for this PR (no same-PR reuse available; over the $10 PR cap); left to the main release gate.

{
  "schema_version": 1,
  "pr": 4629,
  "head": "a3e3ff32009dd28934c4ca15de4e2767dd4feff0",
  "version": "1.102.1.0",
  "base": "main",
  "gate": {
    "test": {
      "pass": 1732,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 44940987365,
      "attempt": 1,
      "tree": "eaa3f453da7ae850e6fd9ee7bb68b81a5118d302"
    }
  ],
  "calls": 27,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/ship-4629",
  "head_tree": "eaa3f453da7ae850e6fd9ee7bb68b81a5118d302",
  "product_patch_id": "0866b75eff67e17aa34ee6c0f508bfc404aa85ab",
  "gstack_version": "1.102.1.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 80,
    "rules": "85b3923b1a978e41",
    "base": "f71e785e4e75ade984efddfd9e8692b206b1951d",
    "registry": "f71e785e4e75ade984efddfd9e8692b206b1951d",
    "gate_scan": {
      "tagged": 3,
      "head": "a3e3ff32009dd28934c4ca15de4e2767dd4feff0"
    },
    "reasons": [
      "gate-class",
      "runtime=80"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @eaa3f453da7a (8 checks, current for a3e3ff32009d)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/44940987365/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44940987365/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44940987376/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=eaa3f453da7a tests=38694 skipped=91 runs=44940987365/1 profiles=ci-reuse/free-tests heads=a3e3ff32009d verified=2026-11-21T19:43:40.658Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/, README.md, CONTRIBUTING.md, AGENTS.md (changed: docs/OPENCLAW.md)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 3,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "est_input_tokens": 33870,
    "ledgers_read": 2,
    "dispatches": {
      "specialist-batched": 1,
      "red-team": 1
    }
  },
  "gate_dispositions": [],
  "review_targeted": {
    "classes": [
      "gate"
    ],
    "rules": "b3f6f8b4843c0c30",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "0866b75eff67e17aa34ee6c0f508bfc404aa85ab",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}
{"head":"a3e3ff32009dd28934c4ca15de4e2767dd4feff0","version":"1.102.1.0","gstack_version":"1.102.1.0","run":"/home/user/.capy/work/ship-4629","review_loop":{"passes":1,"blocking_found":0,"deferred":0,"noted":3,"fixed":0,"scope":"frozen","rounds":1,"est_input_tokens":33870,"ledgers_read":2,"dispatches":{"specialist-batched":1,"red-team":1}},"depth":"full"}

…AUDE.md (GST-3382)

gstack-skill-start no longer offers to append a "## Skill routing" section
to the project CLAUDE.md, and the routing_declined setting that answered the
offer is gone. The prompt-routing hook carries routing: in the preregistered
B1e test on Opus 5.5 it loaded the bug-fix skill in 45 of 60 and 48 of 60
sessions, past the section's 39 of 60 (gstack-evals#415).

Existing sections are left alone: the offered section had no marker, so
gstack cannot tell its text from the user's.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 3 commits November 21, 2026 19:06
…ild adoption test

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… on Windows

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…nboarding prompts

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 6263e0e into main Nov 21, 2026
61 checks passed
@garrytan garrytan mentioned this pull request Nov 21, 2026
capy-ai Bot added a commit that referenced this pull request Nov 21, 2026
- Habits from nine teams, written into gstack. (#4585)
- Three more habits from teams that run evals. (#4602)
- The /ship conductor trial plan gives its real-problem judge one more attempt on fresh labels after it missed its agreement bar twice, and stops the trial incomplete if it misses again (GST-3003). (#4611)
- The /ship conductor trial plan now stops a trial only at the final remote-gate refusal, gives both arms the same note that the brief overrides team rules, and counts every report the no-gstack arm returns (GST-3003). (#4609)
- The /ship conductor trial plan now ends a trial at the remote gate when its case base isn't main, gives the no-gstack arm a test runner, and audits every trial for exposure to the plan (GST-3003). (#4605)
- The /ship conductor trial plan now runs an uncounted pilot in every arm before its counted trials and takes one planned look at half the cases (GST-3003). (#4587)
- gstack's own use on Capy can be counted, and is kept out of real-use numbers. (#4576)
- Free Tests shards finish closer together. (#4578)
- The weekly test-time recording can land again on its own. (#4581)
- The job-log tree.json step's recommended sleep is long enough for real runners. (#4589)
- Pull requests no longer wait on the Trunk flaky-test upload, and the quick tier's flaky passes now reach Trunk. (#4579)
- Windows Setup E2E finishes sooner on install changes. (#4575)
- Skills no longer stop on Codex when they clean up temp files. (#4612)
- /review on Codex with OpenAI models no longer holds back a review that ran its adversarial pass. (#4622)
- Crew threads on Capy now check in at 500M own tokens, standing threads rotate at 250M and any subagent past 50M gets a look, half the old lines, because Capy's token counts read about half what they did before 2026-11-15. (#4582)
- gstack no longer offers to add a `## Skill routing` section to your project's CLAUDE.md. (#4629)
- The README and docs no longer say gstack makes your agent fix more bugs. (#4598)
- `/eval-plan` now writes eval plans that waste less money. (#4591)
- /cso checks every folder above a source file before it looks at the file, so it never looks through a symlinked folder. (#4592)
- Plan reviews no longer read a /design-review audit summary as the branch's design doc. (#4623)
- Node's built-in test files now run with `node --test` in repos that use vitest or jest. (#4626)
- A quarantined test that the runner skipped now fails the run instead of passing it. (#4590)
- A flaky free test is fixed: the spawnSync overflow check no longer fails about once an hour on CI. (#4613)
- Free Tests runs its shards on 16-core runners. (#4600)
- /office-hours asks for ground truth first. (#4468)
- Every startup session ends with a dated test. (#4468)
- /plan-tune's dream cycle now logs each send of your typed answers to Anthropic. (#4621)
- Landing a ready PR no longer depends on a hand-copied gate decision, and the ready note, release PR and squash message say the right thing. (#4596)
- /ship no longer asks for a fresh review because of a stacked parent that main already had. (#4580)
- Results PRs with large captured agent sessions can be reviewed. (#4574)
- /ship no longer stalls on review notes a reviewer already cleared, counts review rounds the way the review policy reads them, and keeps security findings out of the PR body. (#4595)
- /ship's review readers are now told never to stop processes they didn't start. (#4607)
- /ship's review no longer stops when Capy's own drive sync database grows past 100 MB. (#4606)
- /ship's preflight now honors your repository's time limit for rerunning CI-skipped tests, and tells you when a fresh worktree needs its packages installed. (#4608)
- The slowest free test file is now six files. (#4588)
- Step 11.5 keeps a reviewed head current across base-only merges. (#4577)
- On a Capy install, only the owner's opt-in sends telemetry. (#4597)
- New page: working across agent systems. (#4583)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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