Skip to content

The router and the Claude overlay stop contradicting themselves and drop planning nudges - #4500

Closed
lubosxyz wants to merge 2 commits into
garrytan:mainfrom
lubosxyz:prompt/opus-5-5-router-overlay
Closed

lubosxyz wants to merge 2 commits into
garrytan:mainfrom
lubosxyz:prompt/opus-5-5-router-overlay

Conversation

@lubosxyz

@lubosxyz lubosxyz commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

The gstack router and the Claude overlay stop giving a model two opposite instructions, and stop telling it to plan the way it already does.

Why: a model that follows always-loaded prompt text to the letter, such as Claude Opus 5.5, has to pick one side when that text contradicts itself, and pays for nudges it does not need on every skill run.

Nothing to do: skills run the same way; only the prompt text changes.

Why

Three spots in the always-loaded text pull a literal reader in two directions or push habits it already has:

  • Router contradiction. With PROACTIVE=all, SKILL.md said "Do NOT answer directly when a skill exists for the task", while its own "When to invoke, and when not to" section says to answer a quick factual question directly.
  • Pressure text in the Claude overlay. "Todo-list discipline" restates the todo tool's own contract, and "Think before heavy actions" asks the model to narrate a plan it already makes. Both land in every tier-2+ skill's preamble.
  • Duplicated or dead text. Near-synonym voice triggers, a routing sentence that is only read after the skill is already running, and a branch-preference rule stated three times.

What changed

  • SKILL.md.tmpl: the PROACTIVE=all rule invokes the matching skill "subject to 'When to invoke, and when not to'" instead of forbidding direct answers. The /ship routing rule drops "deploy" and points at /land-and-deploy.
  • model-overlays/claude.md: remove "Todo-list discipline" and "Think before heavy actions"; the dedicated-tools nudge stays. test/model-overlays.test.ts anchors the inheritance checks on that nudge.
  • Voice triggers: collapse near-synonyms in make-pdf, cso, devex-review and plan-devex-review; phonetic aliases stay.
  • context-save, context-restore: drop the "This is a gstack skill, not a Claude Code built-in" routing sentence. context-restore now states its current-branch-first ordering once.
  • codex: the error table points at Step 0.4, and the web-search note drops the legacy-flag history.
  • open-gstack-browser: Step 6 is one sentence instead of a feature tour.
  • Regenerated with bun run gen:skill-docs --host all and bun scripts/gen-ship-goldens.ts; refreshed test/fixtures/context-budget.json with bun test/helpers/capture-context-budget.ts; recorded the ship size entry with bun scripts/size-ledger.ts record ship; added a changelog.d fragment. The shorter plan-devex-review output lowers its nine host pins in test/fixtures/skill-md-size-allowlist.json by 46 characters each. VERSION is not touched.

Tests

Rebased onto main at d789dd9. Each file ran alone with bun test <file> --timeout 60000:

  • Pass: skill-md-size-guard, context-budget-ratchet, model-overlays, claude-overlay-models, proactive-core-set, safety-rule-registry, safety-none-arm, spec-template-invariants, catalog-budget, catalog-trim, catalog-mode-full, carve-guard-completeness, external-host-carve, gen-skill-docs-idempotency, gen-skill-docs-checks, host-config, parity-*, template-context-parity, size-ledger, skill-triggers, skill-validation.
  • bun scripts/size-ledger.ts check ship: ok. gen:skill-docs --dry-run: every file fresh. bin/gstack-prose-lint changelog.d/*.md --gate: ok.
  • Not from this change: test/first-use.test.ts "where records live" expects readdirSync to list two folders in creation order. It fails on some machines and failed the same way on main's own push run for 45f879b.

No eval was run. This is a prompt-text change, and only the structural tests above were run.

Agent notes
  • Size ledger: test/size-ledger/ship/prompt-opus-5-5-router-overlay.json (-453 bytes).

⌘ claude & lubosxyz

@trunk-io

trunk-io Bot commented Nov 18, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

lubosxyz and others added 2 commits November 18, 2026 18:22
…rop planning nudges

A model that reads instructions literally hit three problems in always-loaded
prompt text:

- Router: with PROACTIVE=all it said "Do NOT answer directly when a skill
  exists for the task", while "When to invoke, and when not to" says to answer
  quick factual questions directly. The PROACTIVE=all rule now invokes a
  matching skill subject to that section. The /ship routing rule no longer
  lists "deploy" (deploying is /land-and-deploy).
- Claude overlay: drop "Todo-list discipline" (repeats the todo tool's own
  contract) and "Think before heavy actions" (current Claude models plan
  without being told; the nudge reads as pressure to narrate). The overlay
  inheritance tests anchor on the remaining dedicated-tools nudge.
- Voice triggers: near-synonyms collapse for /make-pdf, /cso, /devex-review
  and /plan-devex-review; phonetic aliases stay.

Smaller items: /context-save and /context-restore drop a "this is a gstack
skill, invoke it via the Skill tool" sentence that is only read after the
skill is already invoked, and /context-restore states its
current-branch-first rule once instead of three times; /codex's error table
points at Step 0.4 and its web-search note drops the legacy-flag history;
/open-gstack-browser closes with one sentence instead of a feature tour.

Regenerated: SKILL.md for every host, sections/preamble.md, the ship
goldens, test/fixtures/context-budget.json (only the entries this change
moves) and a ship size-ledger entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The collapsed voice triggers make every host's generated
plan-devex-review/SKILL.md 46 characters shorter, so the size guard asks
for its pins in test/fixtures/skill-md-size-allowlist.json to drop to the
new sizes. Rebased onto the current main and refreshed
test/fixtures/context-budget.json with capture-context-budget.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lubosxyz
lubosxyz force-pushed the prompt/opus-5-5-router-overlay branch from de8083f to 9315c91 Compare November 18, 2026 17:35
@capy-ai

capy-ai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Thank you, @lubosxyz. Two of these are real and small, and we're picking them up:

  • The root router says "Do NOT answer directly when a skill exists for the task", while its own "When to invoke, and when not to" section says to answer a quick factual question directly.
  • /ship's description lists "deploy", "deploy this" and "get it deployed", but /ship stops at a pull request, and /land-and-deploy also claims "deploy".

What happens next: because these files load into every session, a maintainer will rebuild those two changes on current main and credit you, instead of merging this branch. We'll link the rebuild here and close this PR when it lands.

Removing the Claude overlay's "Todo-list discipline" and "Think before heavy actions" notes, and trimming the voice triggers, changes behaviour for every skill. We'd take those only after an eval shows they help on current models, so they aren't part of the rebuild.

@capy-ai

capy-ai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Thanks for this. We rebuilt the idea on current main and it landed in #4539 (5df6b5a), which credits you with Co-authored-by. Closing this one as rebuilt.

@capy-ai capy-ai Bot closed this Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working S3 Severity 3: everything else

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant