|
| 1 | +# Comment router throttle resilience proof |
| 2 | + |
| 3 | +Production run [31697514690](https://github.com/openclaw/clawsweeper/actions/runs/31697514690) |
| 4 | +failed while prehydrating the full comment history for |
| 5 | +[openclaw/openclaw#120500](https://github.com/openclaw/openclaw/issues/120500). |
| 6 | +The exact repository dispatch had no durable router claim; recovery depended on |
| 7 | +the rolling three-hour scheduled scan, so a long enough throttle window could |
| 8 | +lose the command rather than merely delay it. |
| 9 | + |
| 10 | +The fix gives scheduled scans their own per-repository `updated_at` plus |
| 11 | +same-timestamp-id cursor. Broad scans read bounded, oldest-first repository |
| 12 | +comment pages from that cursor. The wrapper persists a new watermark only after |
| 13 | +the entire router process succeeds; exact routes never advance it. Within a |
| 14 | +throttled cycle, context already fetched remains usable and affected commands |
| 15 | +are retained as waiting before the shared operator-skip classifier turns the |
| 16 | +child failure into an operator-visible exit-0 defer. |
| 17 | + |
| 18 | +The cheap read-economy change applies to repository-wide discovery. Per-item |
| 19 | +comment histories remain complete because they feed source-revision hashes, |
| 20 | +linked-PR discovery, historical command/status idempotency, exact-review lease |
| 21 | +checks, and close guards. Adding `since=<routing cursor>` to those reads would |
| 22 | +silently weaken those contracts, so that more invasive optimization is not part |
| 23 | +of this fix. |
| 24 | + |
| 25 | +OpenClaw Bay is unaffected: this changes an internal router workflow and its |
| 26 | +git-backed progress cursor, not Bay's public observer-only status contract. |
| 27 | + |
| 28 | +## Container proof |
| 29 | + |
| 30 | +The committed [run-proof.sh](run-proof.sh) is the static `jq` recipe used in the |
| 31 | +Docker-backed Crabbox container. It obtains every commit/tree id through |
| 32 | +`git rev-parse`, verifies each with `git cat-file`, runs the production loopback |
| 33 | +CLI and focused tests, and validates the generated JSON receipt. |
| 34 | + |
| 35 | +The successful run used Crabbox `provider=local-container`, lease |
| 36 | +`cbx_6efbcfb3f874` (`coral-barnacle-e30e`), run `run_4fe08202fe1b`, and stopped |
| 37 | +the one-shot lease automatically. The raw Ubuntu image required NodeSource Node |
| 38 | +24 because its default package is Node 22. The raw synced workspace also needed |
| 39 | +a temporary Git bundle containing the already-committed head and base objects; |
| 40 | +the bundle was proof transport only and is not committed. |
| 41 | + |
| 42 | +The receipt commit contains proof artifacts only after tested runtime commit |
| 43 | +`7d991891672e29f6f5d09961a7a34b205e2602cd`; no source, script, test, workflow, |
| 44 | +or operational documentation change follows the tested tree in this push. |
0 commit comments