morgana: row 295 r2 narrow alice grant (Dewey F1, sage-3333): aliceAccess(ref) names only the test's project, set after project.create; asserts and bindLaunch lines byte-identical; BUILD.md preservation record updated

This commit is contained in:
jason.woltje committed 2026-10-23 05:06:14 -05:00
1 parent cb96220b53
commit fdbe95d88d
2 files changed
+30 -14

No files matched your search

+19 -9
View File
@@ -168,15 +168,25 @@ the kill, a run that polls would exit 22 on not-holder and hide the mutant.
### Assertion-preservation record (mos-1436 conditions 7-9)
- message-filter.test.mjs gains `aliceAccess` with one grant: user alice, business demo, instances
`['assistant']` (the thread's instance), collaborator level. projects is `['*']` because both
tests make their project after the broker. `setup(t, { access } = {})` passes it to `new Broker`.
Only :117 passes it; every other `setup(t)` gives `access: undefined`, which the constructor's
default turns into null, as before.
- The governance pin passes `access: aliceAccess` to `fixture()`. No other line of either test
changes. The bindLaunch lines (:119, :169 before; :126, :176 after) and every assertion are
byte-identical. The diff's removed lines are only `function setup(t) {`, the two setup calls and
the two helper lines below.
- message-filter.test.mjs gains `aliceAccess(ref)`. It returns the access function, whose single
grant is user alice, business demo, projects `[ref.project]`, instances `['assistant']` (the
thread's instance), collaborator level. That's the narrowest grant (Dewey's F1, sage-3333;
f652dfa5b had projects `['*']`). The broker has no accessStamp here, so #accessDoc calls the
function again on each read.
- `setup(t, { access } = {})` passes `access` to `new Broker`. Only the trail test (:117 at 9f29e1b2f, :126 now) passes it; every other
`setup(t)` gives `access: undefined`, which the constructor's default turns into null, as before.
setup() already returned `project`.
- The trail test and the governance pin (:176) each add `const ref = {};` before setup or fixture, and set
`ref.project = project;` once the project exists. The trail test also destructures `project` from setup().
The governance pin passes `access: aliceAccess(ref)` to `fixture()`.
- Nothing reads access before `ref.project` is set. The broker reads it on a user's request
(request()), in threadsState, in #covered, and in bindLaunch/role.claim on a thread.
setup() binds only the human, a reader and the tester and makes the project. fixture() binds
coder and reviewer runs with no thread. Neither binds or claims as alice, and neither calls
threadsState.
- No other line of either test changes. The bindLaunch lines (:119, :169 at 9f29e1b2f; :130, :182 now)
and every assertion are byte-identical. The removed lines are only `function setup(t) {`, the
two setup/fixture calls and the two helper lines below.
- spec-fixtures.mjs (11 importers) gains one optional parameter with a null default, which goes to
`new Broker` unchanged. No other caller changes.