diff --git a/agents/duckworth/work/row275/EARLY-LOOK-r2.md b/agents/duckworth/work/row275/EARLY-LOOK-r2.md new file mode 100644 index 000000000..74c7ca186 --- /dev/null +++ b/agents/duckworth/work/row275/EARLY-LOOK-r2.md @@ -0,0 +1,68 @@ +# Row 275 (193b1b, #1780) early look: Duckworth (duckworth-0166) + +Subject: Morgana's morgana/row275 r2 at 4d2888471 (fast-forward from r1 5f7748955), base aca16404c. +Manifest digest 6b37eeaeb0f168a0, 4 paths. Static read only: git reads, nothing run. +Design: row 193 DESIGN r5 e2d161e2e section 4.3. Rulings: mos-1311. + +**Early-look result: one blocker (B1), a red the test as written will hit on the base.** Everything else +reads correct. The manifest round needs B1 fixed and a rebased candidate after 253. + +## Blocker + +**B1. viewer.test.mjs:105-108: bob's open and send on A answer `thread-not-owned`, not `access-refused`.** +- A is alice's thread. +- The handlers call `this.#thread(s, a.thread)` before `#grantedThread` + (broker.mjs `#grantedThread(s, 'thread.open', this.#thread(s, a.thread))`). +- `#thread` refuses a user who doesn't own the thread `thread-not-owned` (broker.mjs:766), so bob + never reaches the level check. +- Alice's three assertions pass, and so does bob's create (it goes through `#granted` directly). Bob's + open at :107 fails. +- Fix in the test (my pick): give bob a thread of his own, made while he is a collaborator and then + lowered, as alice's is. Or drop bob from the open and send lines and keep him on create. The behaviour + already matches design 4.3 ("refused"). +- Moving the level check ahead of `#thread` would be a product change that isn't needed here. +- Mutant 6 still dies by alice's send at :108, because alice comes first in the loop. + +## Condition 3 of mos-1311: both flips match section 4.3 + +- **Bind flip (user-principal.test.mjs, 'viewer level' now binds).** It matches. + - The 4.3 table gives a viewer `project.list`, `thread.list`, `thread.messages` and `names`, and a + viewer can only reach them bound. + - FED R3's request gate (`#userGrants` empty is `access-revoked`) would refuse all four otherwise. +- **Downgrade flip (:313, `thread.list` now answers).** It matches the thread.list row at DESIGN.md:125 + ("own threads still covered (from an earlier collaborator grant)") and note 2 at :139. +- The r2 additions (send and open `access-refused`, with the messages and thread_opens counts unchanged) + match :139 ("can't send or open them") and the table's "refused" for both verbs. + - Unlike B1, A is alice's own here, so the ownership check passes and the level check answers. +- No other R3 refusal changed. + +## Points from morgana-0135 + +1. **userLevel and covers.** + - covers() (vocabulary.mjs:291) refuses when `LEVELS.indexOf(grant.level) > LEVELS.indexOf(level)`, + with LEVELS = [collaborator, viewer]. So `viewer` asks for read and any grant covers it, and + `collaborator` excludes a viewer grant. + - An unknown verb falls to `collaborator`, which fails safe. + - Every `#granted` and `#grantedThread` caller passes its own verb name. There are seven sites, and + no three-argument call is left. `USER_LEVEL` has no remaining reference. +2. **BOARD_VERBS.** It is the same eleven names in the same order as the inline array it replaces at the + reader gate. +3. **Existing test changes.** See condition 3 above. +4. **Mutant kills.** + - M6: alice's send at :108. + - M10: `trail` for a user passes the USER_VERBS gate and reaches the handler's agent check + (broker.mjs:5477, `if (!s.human && !s.reader) this.#agent(s)`), which refuses with a different + code, so test 6's `access-refused` assertion fails. Both kill by behaviour, as stated. +5. **Governance pin.** Each 5.7 item is refused to carol (collaborator) and bob (viewer), and carol reads + her own message. + - `project.files` and `project.file` name a project 'stack' that doesn't exist. That is fine, because + the refusal comes before the handler. + +## Notes (non-blocking) + +- **N1.** viewer.test.mjs:138: `thread.messages` on B answers `[]` because B has no messages. It proves + only that nothing was refused. Send one message in B before the downgrade and assert its id. +- **N2.** The covers() comment (vocabulary.mjs:280-281) says a viewer "reads threads shared with it". + After this row, a viewer also reads its own threads. Doc only. +- **N3. Gate.** I agree with adding the cli, harness, business and seat suites, because they import + broker.mjs, as row 277 did. diff --git a/docs/SESSIONS.md b/docs/SESSIONS.md index f78662ef6..0d001122c 100644 --- a/docs/SESSIONS.md +++ b/docs/SESSIONS.md @@ -1502,3 +1502,4 @@ are never rewritten or removed; corrections are new entries. 2026-10-22T15:52Z | Duckworth (Opus 5.5) | row 253 M38 survivor static lead (duckworth-0163, gander-0116) | stale kill rule since 950cf47f3; re-point killer to C4 sleep/member hop :203, Mos rules | 2026-10-22T15:54Z | Duckworth (Opus 5.5) | row 253 mos-1298 candidate read 14e460061/48e450ce8 (duckworth-0164) | no blockers; gate fresh on CLEAR | 2026-10-22T16:44Z | Duckworth (Opus 5.5) | row 239 (#1745) design d1 static review, Honker 5da5f28f6 (duckworth-0165) | APPROVE with C1 (sendOutcome OPEN for outcome-unknown-revoked) and C2 (mark outside withLock's finally); Q1-Q3 answered, N1-N5 | +2026-10-22T16:46Z | Duckworth (Opus 5.5) | row 275 (#1780) early look, Morgana r2 4d2888471 (duckworth-0166) | B1 viewer.test:105-108 bob open/send answer thread-not-owned (red on base); mos-1311 C3 confirmed: both user-principal flips match design 4.3 :125/:139; N1-N3 |