Skip to content

docs: regenerate stale llms.txt (drift from PR #418) - #428

Merged
jhrozek merged 2 commits into
mainfrom
fix/llms-txt-stale
Aug 10, 2026
Merged

jhrozek merged 2 commits into
mainfrom
fix/llms-txt-stale

Conversation

@jhrozek

@jhrozek jhrozek commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The Docs (matlatl) CI check was failing on main's own tip — PR fix: normalize invalid UTF-8 before protobuf streaming (#402) #418 (invalid-utf8) edited docs/design/IMPLEMENTATION-NOTES.md across several commits without regenerating llms.txt (the AGENTS.md "changed any Markdown → task generate" rule).
  • Regenerated llms.txt via task docs:llms and confirmed task docs:check --strict passes clean (0 broken links/anchors/ambiguous/orphans).
  • (This started as a docs-only handover for a network-isolated follow-up, but this environment turned out to have network access after all, so the actual fix landed directly instead — the handover doc has been removed per this repo's own convention.)

Test plan

  • task docs:llms regenerated cleanly, diff is a corpus-stats/orphan-count-only change
  • task docs:check --strict exits 0 (0 broken links, 0 broken anchors, 0 ambiguous, 0 orphans, 0 unreachable)

🤖 Generated with Claude Code

The Docs (matlatl) CI check fails on main's own tip, unrelated to any
single PR: PR #418 (invalid-utf8) edited docs/design/IMPLEMENTATION-NOTES.md
across several commits without regenerating llms.txt (the AGENTS.md
"changed any Markdown -> task generate" rule). Diagnosed but not fixed
here: this sandbox has no network egress to resolve the matlatl Go
module, so the actual regen + commit needs a network-connected
environment. See the handover doc for root cause and the exact fix
command.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@JAORMX

JAORMX commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Not sure we should check in handover files

The prior sandbox couldn't resolve the matlatl Go module (no network
egress); this environment does, so the fix from the handover doc lands
here directly instead of waiting on a separate follow-up. Regenerated
via `task docs:llms` (drift was PR #418 editing
docs/design/IMPLEMENTATION-NOTES.md without a llms.txt regen).
Matches this repo's own convention (see the deleted
HANDOVER-reasoning-item-id-replay.md precedent): the handover doc is
removed once its fix lands in the same effort.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@jhrozek jhrozek changed the title docs: handover for stale llms.txt (CI Docs/matlatl failing on main) docs: regenerate stale llms.txt (drift from PR #418) Aug 10, 2026
@jhrozek
jhrozek merged commit 39c6886 into main Aug 10, 2026
15 checks passed
@jhrozek
jhrozek deleted the fix/llms-txt-stale branch August 10, 2026 07:58
jhrozek added a commit that referenced this pull request Aug 10, 2026
The rebase onto origin/main (which had just merged PR #428's llms.txt
regen) resolved the llms.txt conflict by taking main's side verbatim,
but that snapshot predates this branch's own docs/adr/0083 and other
router-reason doc additions being re-applied on top. Regenerate for
real against the final tree; task docs:check --strict passes clean
(0 broken links/anchors/ambiguous/orphans).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
jhrozek added a commit that referenced this pull request Aug 10, 2026
) (#408)

* feat(router): expose routing miss/gate reason on delegation-start events (#397)

The delegation-start events (EvSubagentStart, parallel branch_start, team
roster) carried only the router-HIT half (routed_category/routed_model);
every miss/gate collapsed to empty strings while the *why* existed only in
operator diagnostics. A UI could not distinguish router-disabled, pinned
model, agent-def pinned, inherited default, classifier failure, or
breaker-open.

Plumb the already-returned missReason through the internal routeTask seam
and add a bounded, additive routing_reason to the three session payloads +
three proto fields (Subagent 18, TeamMemberSpec 8, Parallel 25) + server
mappers. Empty on a routed hit; a session.RoutingReason* gate constant
(pinned-model / agent-def-pinned-model / resume / fork / router-disabled /
breaker-open / aborted) or a classifier/composition miss string otherwise.
Gauntlet-#7 safe (never the task prompt or classifier reasoning), clamped
at the emit site. Widens only the internal routeTask + MemberRouting (2->3);
Deps.SubagentModelRouter is untouched. ADR 0083.

Co-Authored-By: mecatl <[email protected]>

* fix(router): follow-up repairs for routing_reason on delegation-start (#397)

Addresses the follow-up review findings on the routing-reason feature:
mecatui now projects routing_reason across Subagent/Parallel/Team render
paths, Subagent attribution correctly prioritizes explicit resume/fork/
per-call-model/agent-def choices over router absence, the CHANGELOG entries
are reclassified under the correct Added/Changed headings, ADR 0083 and the
doc lifecycle are filled in, and routingReasonPayload now emits only bounded
static codes (never raw composition/callback text) to close a gauntlet-#7
gap. Also regenerates engine/api/agent.txt and engine/api/session.txt for
WithPinnedAgents and RoutingReasonTargetUnavailable, which were added by
this diff but missing from the api-compat snapshot.

Fixes #397

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(router): address PR #408 review non-blocking notes

Add a composition-level e2e test proving buildModelRouterTask's
detailed category-selector-empty miss reduces to the static wire code
before reaching a delegation-start event, closing the previously
indirect composition-to-wire seam. Also fix two cosmetic CHANGELOG.md
formatting issues (a merged bullet, a dropped blank line).

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(server): allowlist RoutingReason in the UTF8 structural guard

Rebasing 396-sse-missing-on-run onto main surfaced a gap the
structural UTF8 fuzz test (added upstream after this branch forked)
flags automatically: Subagent/Team/Parallel RoutingReason is
harness/composition-authored bare metadata reduced to a closed
allowlist (routingReasonPayload), never producer text, so it belongs
in harnessTokenFields alongside the sibling RoutedCategory/RoutedModel
fields rather than through valid().

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* docs: regenerate llms.txt against the fully rebased tree

The rebase onto origin/main (which had just merged PR #428's llms.txt
regen) resolved the llms.txt conflict by taking main's side verbatim,
but that snapshot predates this branch's own docs/adr/0083 and other
router-reason doc additions being re-applied on top. Regenerate for
real against the final tree; task docs:check --strict passes clean
(0 broken links/anchors/ambiguous/orphans).

Co-Authored-By: Claude Sonnet 5 <[email protected]>

---------

Co-authored-by: mecatl <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
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