|
8 | 8 | > anti-pattern the imported board rules name. Backfilled below in one |
9 | 9 | > pass rather than left stale; PR #4 onward gets its entry at merge time. |
10 | 10 |
|
| 11 | +## PR #12 — consumer example: Bricks, mask-first authorization (merged 2026-08-17, squash `8f16e8d`) |
| 12 | + |
| 13 | +- **Added:** `consumers/bricks/` — the second consumer proof over the |
| 14 | + unchanged core. `Bricks`/`BricksSession`/`BricksQuery`/`Role`/`Orders`/ |
| 15 | + `UnauthorizedQueryException`; `BricksAuthTest` 62/62. Wave |
| 16 | + `wave-consumer-bricks.md`, 2 Sonnet workers (K1 main / K2 test, |
| 17 | + disjoint), orchestrator-gated. |
| 18 | +- **Locked:** authorization is a **predicate in the same lazy chain** as |
| 19 | + `where(...)`, composed before execution and fused into the same single |
| 20 | + crossing — not a post-filter. `Role.EU_ONLY` = `REGION.eq(EU)`; |
| 21 | + `DENY_ALL` = `REGION.eq(0xFFFF)`, a real impossible predicate that pays |
| 22 | + a real crossing and counts 0; fail-closed throws BEFORE any crossing |
| 23 | + (no default-allow path exists); aggregate-only egress is **structural** |
| 24 | + (`BricksQuery`/`long`/`Map` are the only public return types — asserted |
| 25 | + by reflection, so no row-shaped type can be added without breaking the |
| 26 | + test). Disable-run: `requireAuthorized` short-circuited → exactly the |
| 27 | + 3 can-fire fail-closed checks red, 59 green; restored 62/62. |
| 28 | +- **A measured correction, recorded rather than smoothed over:** a **sum |
| 29 | + terminal costs 2 crossings** (plan eval into the mask + |
| 30 | + `lgj_reduce_sum_i32`), unlike `count()`'s 1 — so `sumBy()` is **32 |
| 31 | + crossings (16 groups × 2), IDENTICAL at 1K and 64K rows**. K1's Javadoc |
| 32 | + claimed one crossing per group; the measurement corrected the doc. The |
| 33 | + thesis assertion is the shape (crossings ∝ groups, never rows), which |
| 34 | + is why the same literal is pinned at both row counts. |
| 35 | +- **Deferred:** a native grouped-aggregate kernel (one crossing, 16 |
| 36 | + buckets) — named in the Javadoc as the W6-tier follow-up, deliberately |
| 37 | + not built because nothing has measured a need; W5c graph (shelved on |
| 38 | + the D1 ruling + the edge-bearing generator substrate change). |
| 39 | +- **Docs:** STATUS_BOARD D-LGJ-W5 → bricks DONE; LATEST_STATE dispatch-4 |
| 40 | + entry, which also owns that W5a (#11) shipped without one. |
| 41 | +- **Confidence:** High — zero new membrane surface, zero core changes, |
| 42 | + core suite unaffected at 188/188; every falsifier disable-verified. |
| 43 | + Both bot reviewers at usage limits (no human or bot review obtained). |
| 44 | + |
11 | 45 | ## PR #11 — consumer example: World/Trades (merged 2026-08-17, squash `db7bdf1`) |
12 | 46 |
|
13 | 47 | - **Added:** `consumers/trades/` — own compile unit, core consumed as a |
|
0 commit comments