Skip to content

feat(map): keep the map live through the build (deviation notes)#10

Merged
TheLucidTech merged 1 commit into
mainfrom
feat/living-map
Jul 6, 2026
Merged

feat(map): keep the map live through the build (deviation notes)#10
TheLucidTech merged 1 commit into
mainfrom
feat/living-map

Conversation

@TheLucidTech

Copy link
Copy Markdown
Owner

What

Makes /ratchet:map a living record instead of a pre-build artifact that goes stale the moment building starts.

  • templates/unknowns-map.md — the four-quadrant map's file shape (what /ratchet:map writes to .ratchet/unknowns-map.md), with a Deviations during build section. Closes a PR1 gap: the map skill wrote the file but gave it no shape.
  • templates/deviation-note.mdmap said X → code revealed Y → call made.
  • /ratchet:build now builds against an existing unknown-map artifact and records deviations as decisions/open-loops/defects instead of silently absorbing them — so a swallowed surprise costs confidence (existing scoring machinery) rather than vanishing.
  • /ratchet:handoff surfaces those deviations so the receiver never re-litigates what the build already discovered.
  • /ratchet:map points at the shape template and notes the map stays live through the build.

Why no compile change

compile already serializes decisions and openLoops — the exact collections deviations land in — so the living map threads through it with no edit. Minimal by construction.

Verification

  • npm test → green: cli 49 · evolve 19 · plugin-shape 15 (new living unknowns-map ships as templates and threads through build → handoff).
  • node bin/ratchet doctor → healthy.
  • Failing-first: red on the missing template before the build.
  • Attack caught + fixed one real defect: templates/unknowns-map.md was orphaned (no skill referenced it); /ratchet:map now points at it. Both templates confirmed referenced.

Scope / safety

No src//schema change. compile untouched. Templates already ship via package.json files. Still [Unreleased].

🤖 Generated with Claude Code

https://claude.ai/code/session_016zHEHzbyqKYJZhDpSJfkq5

The map was a pre-build artifact that went stale the moment building started.
Make it a living record:

- templates/unknowns-map.md — the four-quadrant map's file shape (what
  /ratchet:map writes to .ratchet/unknowns-map.md), with a "Deviations during
  build" section. Closes a PR1 gap: the map skill wrote the file but had no shape.
- templates/deviation-note.md — map said X -> code revealed Y -> call made.
- /ratchet:build now builds AGAINST an existing unknown-map artifact and records
  deviations as decisions/open-loops/defects instead of silently absorbing them,
  so a swallowed surprise costs confidence (existing scoring machinery) instead
  of vanishing. compile needs no change — it already serializes decisions/openLoops.
- /ratchet:handoff surfaces those deviations so the receiver never re-litigates
  what the build already discovered.
- /ratchet:map points at the shape template and notes the map stays live.

Guarded by a plugin-shape assertion: both templates exist and build + handoff
reference deviations (fails without the change). npm test green (cli 49 · evolve
19 · plugin-shape 15); ratchet doctor healthy. No src/schema change.

Author-model: claude-opus-4-8[1m]

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@TheLucidTech TheLucidTech merged commit 15e96ac into main Jul 6, 2026
6 checks passed
@TheLucidTech TheLucidTech deleted the feat/living-map branch July 6, 2026 10:45
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