Skip to content

feat(rooms): §ROOM_WALKER_VERSION_STAMP stages 1+2 (version constant + write-side stamp) - #54

Open
red1oon wants to merge 1 commit into
masterfrom
feat/room-walker-version-stamp
Open

feat(rooms): §ROOM_WALKER_VERSION_STAMP stages 1+2 (version constant + write-side stamp)#54
red1oon wants to merge 1 commit into
masterfrom
feat/room-walker-version-stamp

Conversation

@red1oon

@red1oon red1oon commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Stage 1 (version constant): ROOM_WALKER_V added to build/room_walker.js and scripts/compile_rooms.py, matching string in both, per prompts/Viewer/ROOM_INJECTOR_NEEDLE.md's §ROOM_WALKER_VERSION_STAMP staged rollout.
  • Stage 2 (write side only): writeRooms() (JS) / main() --write (Python) now stamp a rooms_meta(version, built_at, room_count) row after every successful compile.
  • Purely additive — nothing reads rooms_meta yet. 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 OK
  • python3 -c "ast.parse(...)" — syntax OK
  • Version-string parity check: JS and Python ROOM_WALKER_V strings match exactly
  • Ran compile_rooms.py --write on a copy of Duplex_mep_extracted.db — 7 rooms compiled, rooms_meta row written with matching version
  • Ran JS RoomWalker.walk(db, {write:true}) via sql.js/Node on the same fixture — identical 7 rooms, identical rooms_meta stamp

🤖 Generated with Claude Code

https://claude.ai/code/session_01UrveBhsavqNFKEN5DPxp3k

… + 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
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.

1 participant