|
| 1 | +# CSW-092 controlled runtime proof |
| 2 | + |
| 3 | +Code exercised: `ef3b016046258f4d4b98dc473cd269e1863c2028`. |
| 4 | +This commit is the product-code parent of the evidence-only successor recorded |
| 5 | +in the pull request body. No application source changed in that successor. |
| 6 | + |
| 7 | +## Environment and command |
| 8 | + |
| 9 | +```text |
| 10 | +Crabbox lease: cbx_34f66acb8a77 |
| 11 | +Provider: local-container (Docker) |
| 12 | +Image: mcr.microsoft.com/playwright:v1.60.0-noble |
| 13 | +Command: crabbox run --provider local-container --local-container-image \ |
| 14 | + mcr.microsoft.com/playwright:v1.60.0-noble --no-hydrate --timing-json \ |
| 15 | + --script docs/proof/openclaw-bay/run-proof.sh |
| 16 | +``` |
| 17 | + |
| 18 | +The controlled browser proof completed 48 assertions and wrote 23 frames. Its |
| 19 | +fixture intercepted zero external GitHub API requests and made zero queue, |
| 20 | +GitHub, or production mutations. |
| 21 | + |
| 22 | +## Observations |
| 23 | + |
| 24 | +- The real built Bay document rendered a populated **Recent durable events** |
| 25 | + card. The captured frame is |
| 26 | + [`01a-mini-control-board.jpg`](./01a-mini-control-board.jpg): the fixture's |
| 27 | + 24-hour aggregate displayed direct `accepted 3`, `deduped 1`, and batch |
| 28 | + `retryable 2` counts. |
| 29 | +- The Worker route test exercised `/api/recent-durable-publication-events` for |
| 30 | + the six-hour window, checked a complete result and public redaction, then |
| 31 | + repeated that request and observed only the first direct/batch source reads |
| 32 | + (the 60-second in-memory per-window cache served the repeat). |
| 33 | +- The aggregate helper tests cover all allowed six-hour, 24-hour, and seven-day |
| 34 | + windows: every response has exactly 24 buckets; an empty complete window is |
| 35 | + idle; malformed, mixed, unavailable, and over-10,000-row sources produce |
| 36 | + `complete: false` and Unknown rather than partial counts. |
| 37 | +- The Worker status test simulates an unavailable aggregate route while a real |
| 38 | + queue `/stats` response succeeds. `/api/status` retains |
| 39 | + `exact_review_queue.pending: 0`, returns HTTP success, and exposes only the |
| 40 | + aggregate as unavailable with `recent_durable_publication_events_error`. |
| 41 | + This demonstrates the optional aggregate cannot turn core queue status into |
| 42 | + a failure. |
| 43 | +- The positive fixture and endpoint assertions contain no repository identity, |
| 44 | + receipt, fence, revision, or run identifier. Workflow-only activity remains |
| 45 | + outside the event schema and is never asserted or rendered as lifecycle |
| 46 | + completion. |
| 47 | + |
| 48 | +## Limits |
| 49 | + |
| 50 | +This is a controlled, synthetic fixture against the real built Worker/Bay |
| 51 | +surfaces, not a production traffic measurement. A cold per-window request can |
| 52 | +still issue the two indexed retained-event scans, each capped at 10,000 + 1; |
| 53 | +at high source rates it intentionally reports Unknown instead of partial data. |
| 54 | +The short-lived cache reduces repeat scans but is not a persistent rollup and |
| 55 | +does not make availability or seven-day source-rate guarantees. |
0 commit comments