Repository navigation
chore: fix stale code comments, dead test patterns, and docs claims - #2190
Merged
Merged
Conversation
- Correct server comments that contradicted the code: relayEvent's log-only kinds, CreateSessionWithMCP/WithProfile engine selection, the schedule singleton default, Converse frames, ErrChildNotFound coverage. - Correct the mecatui embed import-boundary comment and slot counts. - Narrate the reflection model slot at Build like the other call-slots. - Point CI/Taskfile -run/-fuzz patterns at tests that exist; FuzzReadOnlyBash matched nothing and silently skipped fuzzing. - Keep long checkout paths out of the generated server CLI reference. - Docs: five log-only relay kinds, slot table replaced by a link, docs/README lists examples/ and .claude/agents/, drafts drop Status headers, panel-review skill stops pointing at docs/adr/. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Remove delivery-history provenance from comments across engine/, internal/,
cmd/, provider/, and e2e/: milestone tags ("cloud-native Phase N", "Wave 6a",
"S3"), ADR citations, and "previously / no longer / for now / once X lands"
wording, rewritten as present-tense behavior. Issue references stay.
The sweep also corrects comments whose behavioral claims the code
contradicts, e.g. the ModelSlots doc (project-tier rebinding, slot count,
plan's reasoning default), SchedulerEnabled's default, approval replay on the
memstore path, the TrustRemembered state, schedule-overlay create support,
the mecatui keymap and caps wiring, the permstore durability note, and the
skillfs IncludeProjectTier default.
Comment-only: a token-level comparison of every changed Go file against the
parent commit shows no non-comment changes. The configuration reference is
regenerated from the edited schema comments.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
JAORMX
approved these changes
Oct 8, 2026
3 tasks done
Merged
2 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #2157, #2169, and #2187. A verification pass after those merged found code comments that still contradict the code, CI patterns that name tests that don't exist, and a few docs inaccuracies. Stale comments were the biggest remaining source of wrong answers in headless agent runs, so this fixes them.
Commit 1: targeted fixes
Comments that contradicted the code
server/service.gorelayEvent: said seven log-only kinds are not relayed, including the two authorization events. The code relays both; five kinds are log-only.server/service.goCreateSessionWithMCP/CreateSessionWithProfile: no-spec sessions can still get a per-session engine (MCP broker, learned skills);SessionEngineWithToolsalso satisfies the factory check; the error text was wrong.server/schedule_manager.go: claimedSingleton=falsefrom the wire is honored. It is always overridden to true.server/doc.go: Converse also accepts a first Retry frame and CancelChild/Steer/SteerCancel controls.server/errors.go:ErrChildNotFoundalready covers parallel branches, team members, and shell jobs.cmd/mecatui/embed/embed.go: the import-boundary claim was wrong (uireaches grpc/contracts throughclientandcustomization).internal/app/slots.go: "three" call slots are six.Behavior and tooling
logSlotConfigFactsskipped thereflectionslot, so a mistyped reflection binding never warned at Build. Added it, with a regression test.Taskfile.ymlfuzzedFuzzReadOnlyBash, which no longer exists.go test -fuzzprinted a warning and exited 0, so the shell read-only fuzzer silently never ran. NowFuzzReadOnlyShell.ci.ymlandTaskfile.yml-runpatterns namedTestInvariant_ProviderSetupFollowup_TerminalCancellationAndSecretSafetyandTestMicroVMDefaultPlacementUsesNormalCreateSessionAndExactReattach, neither of which exists. They now point at the tests that cover those contracts.scripts/server-cli-reference.py: the CLI wraps its own help text, so a long checkout path split across lines and leaked intoserver-cli.md. Path substitution now tolerates the wrap.Docs
api-surface.md/architecture.md: five log-only relay kinds, not three.providers.md: the slot table restated config keys; replaced with the design points and a link to the model-routing page.docs/README.md: "What goes where" listsdocs/examples/and.claude/agents/.Status:lines; the drafts index already marks them non-current.docs/adr/; it now points at the architecture chapters.Commit 2: history sweep (comment-only)
Removes delivery provenance ("cloud-native Phase N", "Wave 6a", slice tags, ADR citations, "previously / no longer / for now / once X lands") across 270+ Go files, rewritten as present-tense behavior. Issue references stay. Stage names the code itself uses (dispatch's read-batch phases, catalog "Phase A", hook phases) stay.
The sweep also corrected comments that made false behavioral claims, including:
ModelSlotsdoc: project-tier rebinding exists, eight call slots, andplandefaults toreasoningSchedulerEnabled's defaultTrustRemembered, documented as "never produced" but producedIncludeProjectTier, said to default to true but passed through unchangedA token-level comparison of every changed Go file against its parent shows no non-comment changes.
user-docs/reference/configuration.mdis regenerated from the editedpermconfig/schema.gocomments.Not in this PR
docs/architecture/mecatl.modelith.yamlstill cites ADR 0022/0030/0038. Fixing it needstask docs:modelwith a private modelith revision.unsupported_platformstring still says "Linux amd64 with KVM" only.Test plan
task docs: 0 broken links, anchors, orphans, or unreachable pagestask generate: only the expectedconfiguration.md/ skeleton regenerationtask lint: 0 issues across all modulesTestLogSlotConfigFactsCoversReflectionfails before the fix and passes aftertask fuzztargetFuzzReadOnlyShellruns; the renamed-runpatterns match and passgo run ./cmd/mecademoshows tool call, permission ask/approval, and resulttask test:raceon macOS: 173 packages pass. Every failure also fails on the parent commit (37583f5a7) in the same environment (microVM, path-symlink, and kind-qualification tests), or passes when rerun alone (load flakes inagenthookandenvironment/microvm). This branch adds no new failures.🤖 Generated with Claude Code