feat(rooms): §ROOM_WALKER_VERSION_STAMP stages 1+2 (version constant + write-side stamp) - #54
Open
red1oon wants to merge 1 commit into
Open
feat(rooms): §ROOM_WALKER_VERSION_STAMP stages 1+2 (version constant + write-side stamp)#54red1oon wants to merge 1 commit into
red1oon wants to merge 1 commit into
Conversation
… + write-side stamp ROOM_INJECTOR_NEEDLE.md's staged rollout: stage 1 adds ROOM_WALKER_V (matching string in both room_walker.js and compile_rooms.py, EFFECTS_V convention). Stage 2 has writeRooms()/main() stamp a rooms_meta(version, built_at, room_count) row after every successful compile. Purely additive — nothing reads rooms_meta yet (stage 3, deferred per spec: real runtime-behavior risk, lands on HHS alone first). Verified: js/py version strings match; compile on Duplex_mep_extracted copy (Node sql.js + python3) both write identical rooms_meta rows (7 rooms, matching version). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UrveBhsavqNFKEN5DPxp3k
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
ROOM_WALKER_Vadded tobuild/room_walker.jsandscripts/compile_rooms.py, matching string in both, perprompts/Viewer/ROOM_INJECTOR_NEEDLE.md's §ROOM_WALKER_VERSION_STAMP staged rollout.writeRooms()(JS) /main() --write(Python) now stamp arooms_meta(version, built_at, room_count)row after every successful compile.rooms_metayet. Stage 3 (_ensureRoomsCore()read/trust-check) is deferred per spec; it changes runtime behavior fleet-wide and lands on HHS alone first per the spec's risk-cliff note.Test plan
node --check build/room_walker.js— syntax OKpython3 -c "ast.parse(...)"— syntax OKROOM_WALKER_Vstrings match exactlycompile_rooms.py --writeon a copy ofDuplex_mep_extracted.db— 7 rooms compiled,rooms_metarow written with matching versionRoomWalker.walk(db, {write:true})via sql.js/Node on the same fixture — identical 7 rooms, identicalrooms_metastamp🤖 Generated with Claude Code
https://claude.ai/code/session_01UrveBhsavqNFKEN5DPxp3k