Catch-up: migration 10, the end-of-run compile, the truth sweep - #130
Merged
Conversation
…he wiki gap How existing instances catch up: a numbered migration runs the map compile the moment an instance syncs to this release, so state/map.json and the rendered wiki/index.md exist before the instance's next run — the serve map tools answer at once, and the rendered catalog takes over the model-written index. The compile is the engine's own (compile_map, byte-deterministic), written only where an artifact differs from it, so a second apply writes nothing and a log-race re-application recompiles current inputs and destroys nothing. A pre-taxonomy instance gets the honestly-empty artifacts, recorded like any migration. A malformed taxonomy or entity-members file lands as an anomaly on the sync report, never a raise: the repair is session judgment on the named file, and a raising migration would stop every future sync at step 0, ahead of the machinery refresh that ships the repair procedure — bin/dex map catches the artifacts up once the file is healed, and lint flags them until then. The run flow gains its required compile step: bin/dex map after the cognitive work and before the health check, because wiki pages are session-edited directly and page-derived map content (has-page, wikilink edges) is only as fresh as the last compile — the verbs already recompile on placement and exclusion; this closes the gap the page edits open. Steps renumber, and the contract's run summary says the same flow. The truth sweep: README's serve surface states seven tools (six reads including topics/entities/graph off the compiled map, plus capture) and the dex-serve row and instance layout name the map; CLAUDE.md's library.py line gains the map reads; the contract's state/ inventory lists map.json; dex-run's State writes hands taxonomy and entity members to enrich place (the stack moved that fence), and preparation's merge rules route a conflicted taxonomy through the verb and a conflicted index through bin/dex map. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… the field Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
leeovery
force-pushed
the
instance-map-catchup
branch
from
September 1, 2026 13:29
21d2525 to
89b5c0a
Compare
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.
PR5, closing the instance-map stack (design: #125, on #129). Migration 10 compiles both derived artifacts at sync time — serve tools answer the moment an instance lands on the release, and the rendered catalog replaces the model-written index; a malformed judgment file records an anomaly instead of bricking sync at step 0. The dex-run flow gains the end-of-run
bin/dex mapstep (closing the gap direct page edits open, before the health check diffs). README, CLAUDE.md, the contract, and the run-skill prose brought true — including two statements earlier slices left false (taxonomy "still written directly"; hand-merge rules for files the verb now owns).11 migration tests; mutation audit clean (4 equivalent survivors).
🤖 Generated with Claude Code