Skip to content

Token-lanes carrier: qmd query names the four collections, then a line window - #421

Merged
seathatflowsinourveins merged 2 commits into
mainfrom
claude/w5-carrier-qmd-20260927
Sep 27, 2026
Merged

seathatflowsinourveins merged 2 commits into
mainfrom
claude/w5-carrier-qmd-20260927

Conversation

@seathatflowsinourveins

@seathatflowsinourveins seathatflowsinourveins commented Sep 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The SubagentStart token-lanes carrier and its handbook mirror now pass all four QMD collections explicitly: foundation-docs, foundation-adoption, us-equities-foundation and us-equities-catalog. They follow query with a bounded get window.

The reason: a QMD MCP server reads its default collection list once, when it is created, and a query without collections searches only that list (qmd v2.8.3 src/mcp/server.ts L189, L355). A long-running server therefore misses collections added later unless the query names them.

The block measures 4,094 UTF-8 bytes, inside the unchanged 4,100-byte bound. The portable QMD setup now creates the two foundation collections.

Changes

  • adoption/hooks/claude/token-lanes-block.md and its SHA256SUMS line: the QMD line now reads "Use qmd query with collections (…four names…), then get a line window."
    • The window follows the query tool's own recipe, get(file, fromLine = max(1, line - 20), maxLines = 80, lineNumbers = true) (L257; get parameters at L412-413).
    • It is a bounded read, not a lossless transform. Line numbers stay on for file:line citations.
  • docs/token-session-handbook.md: the mirrored line, with a sources line that cites the schema lines.
  • catalogs/us-equities/native-workflows.md: collection add commands for foundation-adoption and foundation-docs. collection add has no ignore option, so the page also documents the YAML ignore: ["ecosystem/**"] that keeps the generated guide out.
  • adoption/update.md: a one-time step for hosts that adopted the index before 2026-09-27.
  • docs/decisions/2026-09-27-token-lanes-subagent-start.md: a dated addendum covering the need, a live MCP result, the byte split, rejected alternatives, the overturn condition and the PR-H: E2E preregistration for the token-save-practice stack (frozen tasks, metrics, gate, procedure) #381 hash freeze.
  • tests/test_token_lanes_subagent_start.py: the measured-bytes comment. The 4,100 bound and the UTF-8 control keep their main values.
  • manifests/evidence.json and generated reports: the hot-file registration, in the last commit (docs/lanes.md).

Evidence

  • Live MCP result, 2026-09-27.
    • The call: a lexical query with collections: ["foundation-adoption"] and rerank: false, through this workstation's QMD MCP server.
    • That server started before the new collections existed; its start-up instructions list 2 collections and 121 documents.
    • It returned foundation-adoption/update.md as the top hit.
  • Host index at build time: qmd --index native-agent-stack-catalog status reports 268 documents in 4 collections and 2,250 embedded vectors.
  • Local integration at head 77b8357 on main 364f4d9:
    • tests.test_token_lanes_subagent_start: 14 tests OK.
    • validate.sh: FAILS=0.
    • Full suite: 6,661 tests OK, 762 skipped (TMPDIR outside the repository).

Review

An independent Opus evidence review of the unmerged first build returned repair.

Finding Problem in the first build Resolution in this head
R1 (must fix) multi_get was outside the carrier's single ToolSearch list and the stack-researcher grant The line names only query and get
R2 maxLines was called lossless No lossless claim
R3 The bound moved to 4,200 without a measured need The bound stays at 4,100
R4 The portable setup lacked the new collections Setup commands added
R5 The addendum lacked sources, alternatives and an overturn condition Added

The review's open questions:

  • G1, acceptance at the rebased head: rerun above.
  • G3, whether a running server reaches new collections: answered by the live MCP result.

SOTA sources

Residuals

🤖 Generated with Claude Code

@seathatflowsinourveins seathatflowsinourveins added the lane:foundation Foundation lane: Claude/Codex setup, hosts, memory, RAG, research, workers label Sep 27, 2026
Scout and others added 2 commits September 27, 2026 15:39
The named QMD index gained foundation-docs and foundation-adoption after the token E2E E1 task
missed adoption/update.md. A QMD MCP server reads its default collection list once, at creation
(qmd v2.8.3 src/mcp/server.ts L189, L355), so the SubagentStart carrier and its handbook mirror
now pass the four collections explicitly, then take a bounded get window (the query tool's own
recipe, L257; get fromLine/maxLines, L412-413). The block measures 4,094 bytes, inside the
unchanged 4,100-byte bound.

native-workflows.md and adoption/update.md create the two foundation collections portably;
collection add has no ignore option, so the YAML ignore keeps the generated docs/ecosystem
guide out. The decision addendum records the need, a live MCP result, the byte split, rejected
alternatives, the overturn condition and the #381 hash freeze.

This repairs the Opus review of the unmerged first build: multi_get was not loadable under the
carrier's ToolSearch list (R1), maxLines was called lossless (R2), the bound moved without a
measured need (R3), the portable setup lacked the collections (R4), and the addendum lacked
sources, alternatives and an overturn condition (R5).

Written by the coordinator (Claude Opus 5.5) from the qmd v2.8.3 source.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@seathatflowsinourveins
seathatflowsinourveins force-pushed the claude/w5-carrier-qmd-20260927 branch from 77b8357 to 99c163c Compare September 27, 2026 19:40
@seathatflowsinourveins
seathatflowsinourveins merged commit c8362c0 into main Sep 27, 2026
24 checks passed
@seathatflowsinourveins
seathatflowsinourveins deleted the claude/w5-carrier-qmd-20260927 branch September 27, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lane:foundation Foundation lane: Claude/Codex setup, hosts, memory, RAG, research, workers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant