Skip to content

Stop giving bug reports a special rule in gstack's router (GST-2873) - #4442

Merged
capy-ai[bot] merged 4 commits into
mainfrom
remove-router-bug-fix-route
Nov 17, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
remove-router-bug-fix-route

Conversation

@garrytan

@garrytan garrytan commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

gstack's router no longer gives bug reports a special check-the-cause, fix-it-test-first rule, and its description no longer lists debugging, so the model fixes a bug the way it would without gstack. This keeps gstack to the parts that measurably help, and on 26 hard real bugs the rule gave no clear gain.

Nothing to do.

What changed
  • SKILL.md.tmpl drops the bug-report routing line and its Failures block. generateFailureRouting() goes with them.
  • The router's description (SKILL.md.tmpl and ROUTER_DESCRIPTION in lib/harness-register.ts) no longer lists debugging, so a bug report doesn't load the router and fall through to /qa.
  • The two paid evals of the removed rule (router-failure-verified-cause, router-failure-triage-resolves), their fixture and arm tests, and their registry, host and duration entries are retired. A free test checks that the router has no bug-fix route.
  • Docs: docs/skills.md says why, and that the bugs line in the optional CLAUDE.md routing block stays; docs/TESTING_INTERNALS.md drops the retired router eval arm.
Why remove it instead of slimming it

On 26 real gbrain bugs that plain Opus 5.5 had failed once, gstack v1.99.3.0 with this rule fixed 3 and plain Opus fixed 2: +3.8 points, with a 95% interval of -11.5 to +19.2 (paired bootstrap over tasks, 10,000 resamples), 3 wins and 2 losses. The test could detect about 23 points. A slimmer rule would still be text with no measured gain, and Garry asked for bug fixes to run plain, so the route goes entirely. Planning, review, /verify, /qa and /ship are unchanged, and so is the bugs line gstack offers for your CLAUDE.md, which this test didn't measure.

Review notes (below the blocking floor, not fixed here)
  • Existing OpenClaw, Hermes and Dots registrations keep the old router description until the harness is registered again, because lib/harness-register.ts writes it only at registration. The old text just sends debugging requests to a router with no special rule.
  • The published interval was recounted from the raw hard-tier data with the preregistered method and matches: +3.8 points, -11.5 to +19.2.
Checks
  • Full free suite: carried from CI at the pushed head (see the receipt).
  • Focused: skill-validation, codex-host, eng-finding-retry-budget, harness-register, parity, gen-skill-docs, touchfile and budget suites; typecheck and the test typecheck ratchet; gen:skill-docs fresh for both hosts.
  • No paid eval ran. The eval selector falls back to every gate case because a shared resolver file changed, but the only rendered change is the router itself; CI's PR eval route ran no slices, and the release gate on main covers the rest.
Agent notes

Refs GST-2873. Thread GSTA-574 for Captain GStack Minder. gstack: ok 1.99.5.0 for=ship.

Review: full depth (the diff retires gate-tier eval cases). Pass 1 (specialist, red-team, coverage audit) found one below-floor gap, fixed in 61ac9eb. One fix-check at that stop head under Captain GStack Minder's grant a-116cdace8f72, plus the targeted reader, both clean. Adversarial and second-model review (openai/gpt-6.1-sol) on the final tree 0b42bd21: no blockers.

Documentation

Status: updated. One stale paragraph tail fixed in docs/TESTING_INTERNALS.md. No blockers.

Scope. Base e8c8625b, head 61ac9eb1 on remove-router-bug-fix-route (2 commits, 19 files, +23/-363), plus the unstaged edits to changelog.d/remove-router-bug-fix-route.md and docs/skills.md (their bytes match the candidate hashes). Nothing is staged or untracked. The change removes the gstack router's bug-report rule (the Failures paragraph and its routing line), drops "debugging" from the router's description and from the harness ROUTER_DESCRIPTION, deletes generateFailureRouting(), and retires the two paid router evals (router-failure-verified-cause, router-failure-triage-resolves) along with GSTACK_ROUTER_ARM. I searched all 149 candidate docs and the full tracked plus new-file inventory for leftover references (GSTACK_ROUTER_ARM, failure-routing, router-failure, the removed rule text, the old description, router-and-debug phrasing). Banned-terms check: none (the repo keeps no list).

Edit. docs/TESTING_INTERNALS.md, "The descriptive exception" under No-gstack arm: removed the sentence saying the router's none arm records plain metrics instead of a repro-first metric. That arm lived only in the deleted test/skill-e2e-failure-routing.test.ts and test/helpers/failure-routing-fixture.ts. The branch had already removed that arm's other mentions two paragraphs earlier. No test pins the removed text.

Documentation health:
  docs/TESTING_INTERNALS.md                   Updated (removed stale router none-arm sentence; file read in full)
  docs/skills.md                              Current (unstaged /investigate paragraph matches the change and the fragment)
  changelog.d/remove-router-bug-fix-route.md  Current (claims checked against the diff; not edited, owned by the release flow)
  SKILL.md.tmpl / SKILL.md                    Current (template read in full; generated copy mirrors it)
  gstack/llms.txt                             Current (router line already updated)
  CLAUDE.md                                   Current (Skill routing bug line deliberately unchanged, matches the block gstack-skill-start offers)
  docs/proactive.md                           Current
  README.md                                   Current (no router description or bug-rule mention)
  ARCHITECTURE.md                             Current (no router or failure-routing entities)
  CHANGELOG.md                                Current (latest 1.99.5.0 matches VERSION; not in this diff)

Coverage. No new public surface. The removals are covered: reference and explanation in the changelog fragment, explanation in docs/skills.md (/investigate section), and how-to consistency in docs/TESTING_INTERNALS.md (only the safety-rule arm loop is left). No critical or common gaps.

Diagram drift: none. ARCHITECTURE.md has no router or failure-routing entities.

Not run (ship-owned mode): Steps 5, 7, 8 and 9 and the cross-model doc review. No regeneration needed: the edited file is hand-written and nothing generates from it.

Approvals

Approved: yes (record r-37ac58373ae1). The full approval record stays private.
Plan: exempt: audited-list (GST-2873: a measured cut Garry approved; the issue carries the evidence)
Plan check: exempt audited-list

{
  "schema_version": 1,
  "pr": 4442,
  "head": "ae137ed3484741ec0be5bbc3e9228b13c87924c2",
  "version": "1.99.5.0",
  "base": "main",
  "gate": {
    "tests": {
      "pass": 1678,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "tests",
      "run": 44100493950,
      "attempt": 1,
      "tree": "2276a4d60d8bbc6d03e63808e6e2080a987bffcd"
    }
  ],
  "session_kind": "unattended",
  "run": "ship-20261117T125853-ba970c",
  "head_tree": "2276a4d60d8bbc6d03e63808e6e2080a987bffcd",
  "product_patch_id": "2503df1d948cb4f370aa0e983cf080e0617d8a4e",
  "gstack_version": "1.99.5.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 19,
    "rules": "66e5174161eecc2c",
    "base": "169eb9c8a59571b54e5205dd4a351a6f271941ea",
    "registry": "169eb9c8a59571b54e5205dd4a351a6f271941ea",
    "gate_scan": {
      "tagged": 2,
      "head": "ae137ed3484741ec0be5bbc3e9228b13c87924c2"
    },
    "reasons": [
      "gate-class",
      "runtime=19"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @2276a4d60d8b (8 checks, current for ae137ed34847)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44100507231/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44100506945/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=2276a4d60d8b tests=37456 skipped=104 runs=44100493950/1 profiles=ci-reuse/free-tests heads=ae137ed34847 verified=2026-11-17T14:25:49.917Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "AGENTS.md, CLAUDE.md, CONTRIBUTING.md, README.md and docs/ against e8c8625b..61ac9eb1 plus the changelog fragment; updated docs/TESTING_INTERNALS.md"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 1,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 2,
    "dispatches": {
      "specialist": 1,
      "red-team": 1
    }
  },
  "gate_dispositions": [],
  "review_targeted": {
    "classes": [
      "gate"
    ],
    "rules": "8811fd300bf305f0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "2503df1d948cb4f370aa0e983cf080e0617d8a4e",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

A test on 26 hard real gbrain bugs found no clear gain from the router's check-the-cause, fix-it-test-first rule (+3.8 points, 95% interval -11.5 to +19.2), so the router drops the bug-report route and its Failures block, and the two paid evals of that rule retire with it.

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

trunk-io Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 3 commits November 17, 2026 13:52
With the bug route gone, a bug report should not load the router and fall through to /qa.

Review-Finding: p1/red-team#1 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…eval note

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot marked this pull request as ready for review November 17, 2026 14:28
@capy-ai
capy-ai Bot merged commit f000b6e into main Nov 17, 2026
77 of 78 checks passed
This was referenced Nov 18, 2026
capy-ai Bot added a commit that referenced this pull request Nov 18, 2026
- A test, or a scratch repository in the temp directory, can no longer write approval rows into your real Capy Drive (GST-3027). (#4466)
- An unattended /autoplan run on Claude Code no longer says the publication guard is off while it is on. (#4481)
- A phase report written only in reasoning now gets a denial that says so and names the fix. (#4481)
- `gstack-autoplan revise` no longer refuses a plan that the first `next` accepted. (#4470)
- `revise --plan` with a different file now says the run follows that file. (#4470)
- A second-model plan review in `/autoplan` is no longer reported as unavailable when it actually ran (GST-3051). (#4471)
- The /ship conductor trial plan now lets case reverts that conflict with later code be resolved by hand in docs, tests and the planted file, so large pull requests can be cases (GST-3003). (#4460)
- A locked plan for a trial of /ship without its separate conductor subagent (GST-3003). (#4456)
- A driven /ship now runs each phase as one command, counts its calls, and stops itself at 100 minutes. (#4451)
- /ship stops asking owners to clear two kinds of bookkeeping noise: base-side merge text and a reviewer's confirmation prose. (#4458)
- A base merge that only touched base-side text no longer stops `/ship` finish for an owner's grant. (#4458)
- A reviewer's confirmation prose no longer becomes a Critical finding that only an owner can clear. (#4458)
- A CI run that passed only after its failed jobs were re-run is now marked wherever gstack reuses it. (#4473)
- /ship reuses CI's passing test run when merging the base changed no file, and stops instead of quietly starting hour-long test runs or reviewing an empty diff (GST-3019). (#4461)
- /ship on Codex no longer stops at the test coverage audit. (#4489)
- A cold first-use check before an app build reaches its owner (GST-3025). (#4465)
- `skill_prefix=true` now survives updates when gbrain is installed. (#4454)
- The OpenClaw docs no longer send you to ClawHub, which held only April 2026 builds of office-hours, ceo-review and retro and no longer has gstack skills (the docs also said four skills while listing three). (#4454)
- `gstack-issue-links` no longer reads other repositories' issues as gstack's. (#4454)
- /ship's pre-gate finds the tests of a monorepo app that imports through its own `@/` alias. (#4464)
- /office-hours explains why it recommends a mode. (#4450)
- /office-hours keeps its 34 founder videos and essays out of the skill file. (#4463)
- Two `gstack-owner-answers add` runs for the same answer no longer collide. (#4490)
- A Captain can check an ask against the owner's earlier answers before sending it. (#4467)
- `gstack-post` stops reading /ship's own receipt identifiers as phone numbers, so posting a /ship PR body no longer needs a confirm. (#4488)
- GitHub release notes now list every change in plain words, with a link to its pull request. (#4390)
- gstack's router no longer gives bug reports a special rule, so the model fixes a bug the way it would without gstack. (#4442)
- /ship's review plan now sorts Swift and Xcode files by risk instead of sending every iOS PR to the full review panel (GST-3041). (#4469)
- /ship's review plan now sends Swift code that touches private user data to the full review panel (GST-3052). (#4472)
- A round grant at /ship's review round cap now buys the fix round it names, in the same run or the next (GST-2968). (#4479)
- The secrets check stops flagging three kinds of ordinary code as a secret, and catches two misses. (#4457)
- A security finding's location and reason no longer go into a PR body. (#4486)
- The token-capped /ship child on Claude Code now starts its prompt with the typed `/ship` command, so the skill actually loads. (#4487)
- A /ship receipt now counts the second-model review's blocking findings, and refuses to be written while one is still open. (#4485)
- A `/ship` with a token cap on Claude Code no longer stops at its first handoff. (#4452)
- /ship's push step now always ends with one line that says whether it pushed (GST-3053). (#4474)
- A PR's review-round count can no longer be overwritten by the body `/ship` posts. (#4440)
- One queued record with a malformed path no longer stops artifacts sync for every project. (#4455)
- A failed artifacts push stays reported until a push succeeds. (#4455)
- The /sync-gbrain memory row no longer says OK when pages failed to import. (#4455)
- ### Tests (#4495)
- A policy-floor test no longer fails once gstack's own version reaches the minor after the newest policy key; it now checks a floor above both, so the v1.101.0.0 release can pass CI. (#4495)
- CI now uploads free-suite test results to Trunk with analytics-uploader v2.1.8 and analytics-cli 0.17.0, up from v2.1.6 and 0.16.2. (#4453)
- Packing a checkout for a Ubicloud run no longer fails when git beside it is rewriting a ref. (#4447)
- The /plan-ceo-review HOLD SCOPE eval no longer fails a review because its follow-up question didn't repeat the mode name. (#4447)
- Unattended /autoplan now records the owner's relayed gate reply instead of refusing it. (#4484)
- Unattended /autoplan now runs the second-model review you turned on, and waits for it instead of ending the session. (#4459)
- Two /autoplan runs started in the same second no longer share a run id. (#4459)

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