feat(map): keep the map live through the build (deviation notes)#10
Merged
Conversation
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>
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.
What
Makes
/ratchet:mapa 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:mapwrites 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.md—map said X → code revealed Y → call made./ratchet:buildnow builds against an existingunknown-mapartifact 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:handoffsurfaces those deviations so the receiver never re-litigates what the build already discovered./ratchet:mappoints at the shape template and notes the map stays live through the build.Why no
compilechangecompilealready serializesdecisionsandopenLoops— 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 (newliving unknowns-map ships as templates and threads through build → handoff).node bin/ratchet doctor→ healthy.templates/unknowns-map.mdwas orphaned (no skill referenced it);/ratchet:mapnow points at it. Both templates confirmed referenced.Scope / safety
No
src//schema change.compileuntouched. Templates already ship viapackage.jsonfiles. Still[Unreleased].🤖 Generated with Claude Code
https://claude.ai/code/session_016zHEHzbyqKYJZhDpSJfkq5