Skip to content

Load the kernel whole and decide delegate routes at dispatch (5.0.1) - #127

Merged
mzored merged 1 commit into
mainfrom
fix/kernel-loads-whole
Sep 16, 2026
Merged

mzored merged 1 commit into
mainfrom
fix/kernel-loads-whole

Conversation

@mzored

@mzored mzored commented Sep 16, 2026

Copy link
Copy Markdown
Owner

Summary

Release 5.0.1.

Observed defect.

  • Claude Code middle-truncates Bash output above about 10,000 characters. The 5.0.0 kernel was 25,024 characters, and agents usually load it with cat.
  • In 11 field sessions the middle of the kernel was cut away: routing, the delegate brief contract, and custody. A re-read is cut the same way.
  • tracked-work.md (12,076 characters) was cut once.
  • Separately, dispatches left the delegate's model unset and inherited the lead's route, and delegates' own nested delegates inherited it unseen.

Change.

  • Kernel. Rewritten to 9,614 characters (52 lines). It keeps the invariants: trust, request grants, iteration, protected actions, owner decisions, custody, and completion. Method moved to the reference whose trigger fires at the act, or was deleted as a frontier-model default. The disposition table is in docs/decisions.md.
  • Dispatch. Every delegate's model and effort is set through host controls, and an unset control is a routing decision held to the same test. The brief states whether the delegate may dispatch delegates, and at what route and bound.
  • references/delegation.md. Adds the nested fan-out rule. references/tracked-work.md. Compressed to fit one view.
  • Gate. scripts/check.py fails any runtime Markdown file under plugins/skiphow/ whose numbered view (chars + 7 × lines) exceeds 10,000. The reopen condition is recorded in docs/decisions.md.
  • Carriers. Version carriers, eval anchors, CHANGELOG, docs/evidence.md, and docs/prior-art.md are updated.

No owner interface, authority boundary, default side effect, public skill name, activation scope, or package layout changes.

Review

  • Round 1. Claude subagents in two lanes:
    • Opus 5, invariant preservation against v5.0.0: 11 findings.
    • Sonnet 5, carriers and anchors: 3 findings.
  • Round 2. 7 findings. Round 3. 2 findings.
  • Every finding was confirmed and fixed; none were refused. Codex review was not run, per owner instruction.

Validation

Check Result
scripts/check.py (391 tests) PASS
git diff --check PASS
Codex schema validation PASS
Claude schema validation PASS
Clean installs, invocation, activation, continuity UNVERIFIED
Behavioral contract suite UNVERIFIED (headless Claude auth expired; see docs/evidence.md)

🤖 Generated with Claude Code

Release 5.0.1. The 5.0.0 kernel was 25,024 characters. Claude Code cuts
Bash output above about 10,000 characters out of the middle, and agents
usually load the kernel with cat, so routing, the brief contract, and
custody went missing in field sessions. A second read is cut the same
way. tracked-work.md was cut once as well.

The kernel now keeps only the parts a frontier model cannot infer:
trust, request grants, iteration, protected actions, owner decisions,
custody, and completion. Method moves to the reference whose trigger
fires at the act, or is deleted as a model default. At 9,614 characters
it fits one host view even with line numbers, and every runtime
Markdown file is gated at chars + 7 x lines <= 10,000 in scripts/check.py.

Dispatch now sets each delegate's model and effort through host
controls. An unset control still resolves to a default, often the
parent's, and that is a routing decision held to the same test. The
brief says whether a delegate may dispatch its own delegates, and at
what route and bound, so nested fan-out no longer inherits the lead's
route unseen.

Reviewed by Claude subagents in three rounds, all findings confirmed
and fixed. Codex review was not run, per owner instruction.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@mzored
mzored merged commit 4c6ef00 into main Sep 16, 2026
1 check passed
@mzored
mzored deleted the fix/kernel-loads-whole branch September 16, 2026 19:25
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