Repository navigation
fix(doctor): name the DEFAULT_LOAD fix and share the wiring criteria - #346
Merged
Merged
Conversation
…(refs #241) Co-Authored-By: Claude Opus 5.5 <[email protected]>
stackbilt-admin
added a commit
that referenced
this pull request
Oct 16, 2026
adf migrate created new .ai modules but never registered them, so no agent knew to load them and doctor failed until someone hand-edited manifest.adf and the CLAUDE.md module index. Migrate now places each new module with the shared DEFAULT_LOAD rule from #346, infers ON_DEMAND triggers from the heading keywords that routed content there (recorded by @stackbilt/adf as RoutingTrace.headingKeyword), and writes it through one append-only manifest writer before the pointer and module index are rewritten. The writer inserts text rather than reformatting, and re-parses the result before writing, so hand-edited manifests keep every other byte. Bootstrap's two orphan writers, one of which spliced lines without deduping, now use the same writer. Closes #239 Closes #241 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Refs #241
Summary
charter doctor'sadf required wiringwarning now names the remedy: "move core.adf from ON_DEMAND to DEFAULT_LOAD in .ai/manifest.adf" when the module is registered on-demand, or "add state.adf to DEFAULT_LOAD in .ai/manifest.adf (or run: charter adf create state.adf --load default)" when it isn't registered at all. The JSON payload keeps itsname/status/detailsshape; the remedy is indetails, like the other checks.packages/cli/src/commands/adf-wiring.ts(classifyModuleLoad,isRequiredDefaultLoad,findMissingDefaultLoad,formatMissingDefaultLoad).doctorand bootstrap's orphan registration both call it, which removes bootstrap's duplicateDEFAULT_LOAD_MODULESset. Behavior doesn't change.core.adfandstate.adfare required in DEFAULT_LOAD. Module content isn't consulted. The issue guessed at content signals, but the code doesn't use any.adf migratedoesn't use this rule yet. That lands with #239, because migrate doesn't register modules inmanifest.adfat all today.Tests
pnpm test: 995 passed. The 5 failures are the known Windows-only ones.pnpm typecheckis clean.Implemented via constellation-loop.
🤖 Generated with Claude Code