Skip to content

fix(routing): routing tables are trigger lists; setup no longer says read the whole runbook - #183

Merged
MendixMau merged 3 commits into
masterfrom
fix/build-stage-task-packs
Sep 30, 2026
Merged

MendixMau merged 3 commits into
masterfrom
fix/build-stage-task-packs

Conversation

@MendixMau

Copy link
Copy Markdown
Owner

What changed and why (one paragraph)

Two instructions made sessions load far more than their task needed. (1) The rule line above every baseline routing table said "read a row when its Stage(s) cell names your stage", so a Stage 5 session was told to read all 23 files, about 121k tokens, before touching the project, and every agent template was headed "Skills this agent must load". (2) The runbook says "How to read this file: not whole", but the CLAUDE.local.md that init-project.sh writes said "Read conversion-runbook.md FIRST — every session", and the ritual sync-project.sh appends said "re-read it in full" (about 24k tokens, carried on every later call). Now the rule line and the agent templates say to open a row's file when its trigger happens in this session and stage, never the table ahead, and that a page task never opens the microflow rows. The runbook row, init-project.sh and the ritual say "§1b plus your own stage's section, not the whole file" (gate-check already prints the spans). No row changed tier, so every trigger stays visible to the main session and to each agent; this changes when files are opened, not which files are routed. Stacked on #182 (same branch base); merge #182 first.

Field evidence

Checklist

  • No client data (leak guard + denylist grep)
  • Size cap
  • Test tier: render-routing.sh --check clean; test-routing-tier.sh asserts file names inside the rendered blocks, not the rule line; no fixture greps the changed headings or wording
  • Instrument rules: n/a (routing text and setup wording)
  • Routing row: runbook row trigger updated in the TSV, all surfaces re-rendered
  • CHANGELOG line
  • Bug entries: n/a

🤖 Generated with Claude Code

https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw


Generated by Claude Code

…e, not on every build

It was in the Stage 5 baseline pack and mdl-agent's always-read rows, so
every build session and MDL helper agent carried ~4,900 tokens of MCP
rules, including cloud sessions where MCP does not exist. The write-mode
choice is Step 0 of learned-mdl-preflight.md, which stays always-on.
Stage 5 pack 74,055 -> 71,443 words; baseline 79,752 -> 77,140.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw
…read the whole runbook

The rule line above every baseline table told a session to read every row of
its stage (23 files, ~121k tokens at Stage 5), agent templates were headed
'must load', and init-project/sync-project told sessions to read the runbook
first and in full, although the runbook says not whole. Now a row's file is
opened when its trigger happens; the runbook is read as §1b plus the stage's
own section. No tier changes, so every trigger stays visible.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw
…eleased lines)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw
@MendixMau
MendixMau merged commit 2a0c173 into master Sep 30, 2026
1 check passed
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.

2 participants