The store's place is one definition, so a stand-in writes where the launch reads (martha#124) #136

Manually merged
terra merged 2 commits from pluto/124-fixture-store-folder into main 2026-11-24 08:13:44 +00:00
Member

Purpose (fix): npm test is green on main again, so a package's handoff can rest on it, and a stand-in writes the session store exactly where the launch reads it.

What broke. 126 recorded that the engine writes its store inside the data folder's sessions folder and taught the launcher to read it there. Three stand-ins still spelled the store beside that folder, so on main every engine start died at readiness with the session store at .../data/sessions/sessions.db cannot be read (unable to open database file): start_an_engine_member.node-test.ts 8/25, the other two not failing only because they build the path they read.

The fix, one definition rather than three copies. theStorePathUnderTheRoot now holds the place once, theSessionStoreOf is built from it, and every stand-in row that says where a store goes asks it: the engine-start row, the drive-the-engine store, and the read-back's store. A row cannot spell a second layout again; if one does, the engine start's 17 reds say so.

Proof, on the merged tree (main c02dc1f7, one merge commit, no conflict):

the_session_store_read_back.node-test.ts    7 pass, 0 fail
drive_the_engine.node-test.ts              11 pass, 0 fail
start_an_engine_member.node-test.ts        25 pass, 0 fail
npm run typecheck                          clean
eslint on the four files                   clean

Mutant, run and restored: dropping the folder from theStorePathUnderTheRoot fails the read-back's own expectation, theSessionStoreOf(RECORDED_GOOSE_ENGINE, '/r') === '/r/data/sessions/sessions.db', which is the one place the shape is written literally. Worth saying plainly: the three fixtures derive from that function, so they cannot disagree with it, and the row that spells its own path (the bug that happened) is caught by the engine start's 17.

For PR 135 (#134), which has the same row. Its M2 test can go green by using theStorePathUnderTheRoot(FACTS) for the row's path and merging main; nothing else in 135 needs to change for this.

Refs #124, #127.

Purpose (fix): `npm test` is green on main again, so a package's handoff can rest on it, and a stand-in writes the session store exactly where the launch reads it. **What broke.** 126 recorded that the engine writes its store inside the data folder's sessions folder and taught the launcher to read it there. Three stand-ins still spelled the store beside that folder, so on main every engine start died at readiness with `the session store at .../data/sessions/sessions.db cannot be read (unable to open database file)`: `start_an_engine_member.node-test.ts` 8/25, the other two not failing only because they build the path they read. **The fix, one definition rather than three copies.** `theStorePathUnderTheRoot` now holds the place once, `theSessionStoreOf` is built from it, and every stand-in row that says where a store goes asks it: the engine-start row, the drive-the-engine store, and the read-back's store. A row cannot spell a second layout again; if one does, the engine start's 17 reds say so. **Proof, on the merged tree** (main c02dc1f7, one merge commit, no conflict): ``` the_session_store_read_back.node-test.ts 7 pass, 0 fail drive_the_engine.node-test.ts 11 pass, 0 fail start_an_engine_member.node-test.ts 25 pass, 0 fail npm run typecheck clean eslint on the four files clean ``` **Mutant, run and restored:** dropping the folder from `theStorePathUnderTheRoot` fails the read-back's own expectation, `theSessionStoreOf(RECORDED_GOOSE_ENGINE, '/r') === '/r/data/sessions/sessions.db'`, which is the one place the shape is written literally. Worth saying plainly: the three fixtures derive from that function, so they cannot disagree with it, and the row that spells its own path (the bug that happened) is caught by the engine start's 17. **For PR 135 (#134), which has the same row.** Its M2 test can go green by using `theStorePathUnderTheRoot(FACTS)` for the row's `path` and merging main; nothing else in 135 needs to change for this. Refs #124, #127.
126 recorded that the engine writes its session store inside the data folder's
sessions folder, and taught the launcher to read it there. Three stand-ins still
spelled the store beside that folder, so on main every engine start died at
readiness: "the session store at .../data/sessions/sessions.db cannot be read".

theStorePathUnderTheRoot now holds the place once, the read and every stand-in row
ask it, and no row can spell a second layout: the engine start's row (17 of its 25
tests were red), the drive-the-engine store, and the read-back's store. A row that
spells its own path again is the only way back, and that is what those 17 catch.

Mutant, run: dropping the folder from theStorePathUnderTheRoot fails the read-back's
own expectation of the path ('/r/data/sessions/sessions.db'), which is the one place
the shape is written down literally. Restored.
Merge remote-tracking branch 'origin/main' into pluto/124-fixture-store-folder
All checks were successful
CI / gate coverage (pull_request) Has been skipped
dependency advisories / node in . (pull_request) Successful in 11s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 11s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / node in installer (pull_request) Successful in 11s
c4 model / c4-model-1 (pull_request) Successful in 5s
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 6s
CI / structural floor (pull_request) Successful in 24s
CI / Martha's names are its own (pull_request) Successful in 24s
CI / no import cycle (pull_request) Successful in 27s
CI / the host drift check bites (pull_request) Successful in 1m1s
CI / the engine drift check bites (pull_request) Successful in 27s
CI / the posted text check bites (pull_request) Successful in 10s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 12s
CI / workflows are valid (pull_request) Successful in 14s
CI / installer (pull_request) Successful in 3m46s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 38s
CI / the pictures change only with the version (pull_request) Successful in 18s
CI / no literal restates a defined value (pull_request) Successful in 1m10s
CI / every check runs in a job (pull_request) Successful in 13s
CI / every job has a timeout (pull_request) Successful in 12s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 18s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 44s
CI / the relay loads in the recorded host (pull_request) Successful in 14m30s
CI / the clean-install proof removes its container (pull_request) Successful in 16m6s
f9e294bf72
terra manually merged commit f689c8e3b0 into main 2026-11-24 08:13:44 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
martha-ai/martha!136
No description provided.