Repository navigation
fix: expose closed Coverage acceptance operation faults - #2173
Conversation
Add bounded authenticated ACCEPT operation/fault diagnostics without changing admission, SQL budgets, original throws, or observer behavior. Include a synthetic native workerd proof; production cause remains unknown. Co-authored-by: brokemac79 <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
Worked on by: - @brokemac79 Co-authored-by: brokemac79 <[email protected]> OpenClaw-Publication: 0c8c5178-c03e-47a4-9bf2-82f9d8caa07a
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Resolve the normal CI install rejection for the new proof-only dependencies by explicitly denying esbuild and workerd install scripts. No build scripts are approved and no broad install guard is disabled. Co-authored-by: brokemac79 <[email protected]>
Worked on by: - @brokemac79 Co-authored-by: brokemac79 <[email protected]> OpenClaw-Publication: 7df1120a-b49b-4e2c-a4b4-eabfa8dabc4b
|
Codex review: needs maintainer review before merge. What this changesThis PR adds bounded operation and fault fields to otherwise unclassified Coverage acceptance failures. Example: A signed ACCEPT request fails while inserting its receipt with a TypeError.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR provides useful diagnostic detail that current main lacks, with no concrete correctness or security finding. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Coverage producer submits signed checkpoints to the Worker and queue-owned SQLite census store; rejected checkpoints return bounded diagnostics that the producer renders as operational warnings. flowchart LR
A[Coverage producer] --> B[Signed Worker route]
B --> C[ExactReviewQueue]
C --> D[Census SQLite store]
D --> E[Closed failure metadata]
E --> C
C --> F[Producer warning]
Technical reviewBest possible solution: Retain the bounded instrumentation in the existing census owner and use its eventual production diagnostics to guide a separate causal repair. Do we have a high-confidence way to reproduce the issue? Current main maps an actual census checkpoint-conflict exception to accept/unclassified; the committed native fixture supplies a controlled request that reaches that guard. Is this the best way to solve the issue? The change extends the established closed-diagnostic mechanism at its existing owner and preserves the underlying failure semantics, making it a focused solution to the stated observability problem. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 45203ef5dbf5. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 6, 2026, 2:21 PM ET / 19:21 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
What Problem This Solves
Authenticated Coverage ACCEPT failures can collapse to
phase=accept category=unclassified, leaving operators unable to identify the failing bounded operation.User Impact
User impact: operators get a closed operation/fault pair without exception text, identifiers or credentials leaking into diagnostics. Admission, checkpoint fences, original throws, SQL budgets, retry behavior and the observer-only dashboard remain unchanged. This is diagnostic instrumentation, not a production recovery or root-cause fix.
Why This Change Was Made
The census owner tracks a bounded operation locally and rethrows the original value unchanged. The existing signed Worker → queue → census route adds only registered operation/fault fields after authorization/method/domain validation. Untrusted getters and exception messages are not copied into warnings.
There are multiple production failure boundaries: https://github.com/openclaw/clawsweeper/actions/runs/42263146247 reported ACCEPT/unclassified warnings; https://github.com/openclaw/clawsweeper/actions/runs/42266026561 instead reported START/invalid_checkpoint with zero queries. This change does not explain the latter, establish rate limiting, or claim all current errors occur during acceptance. Production cause and recovery remain unknown.
Documentation Impact
Adds the Linux native-runtime investigation and executable proof under
docs/proof/ui-live-coverage/coverage-accept-operations.{md,mjs,worker.ts}and one changelog fragment. Release-ownedCHANGELOG.mdand the public Bay observer-only contract are unchanged.Evidence
pr-behavior-proof
queries=217, accepted=736, failed=0, 145 complete repository states and 8,149 inventory rows. A separate 25,000-identity fence remains blocked. Controlled checkpoint rejection and an injected receipt TypeError preserve rollback; later uninjected requests succeed. Baseline responses contain only accept/unclassified; candidate adds checkpoint/checkpoint or receipt/type_error. Unsigned denials expose no operation. All 58 non-census SQL tables, KV and null alarm remain unchanged; outbound requests are zero; no R2 binding exists.pnpm install --frozen-lockfilenow succeeds with dependency scripts explicitly denied; thennode docs/proof/ui-live-coverage/coverage-accept-operations.mjs c1d3aebd59790a33e7fc18e61631c06bc5b0761c. Actually executed on Linux, Node v26.12.1, Miniflare 5.20260911.0-alpha, workerd 1.20260911.1, esbuild 0.28.1, compatibility date 2026-05-11, providerlocal-workerd-not-container. Not a Windows/Crabbox/container qualification.955e2507bf59e3f4c0f8b799bfbcdee447413276, treeac7ef4bd9e6cdb1973f9189efe9d38a7466bf906, against intended review/merge basec1d3aebd59790a33e7fc18e61631c06bc5b0761c. Published headd56dd0703a2812d007567bd478d9e432a6ae450eis the managed publisher's directly parented empty provenance marker: parentage, empty parent diff and exact source tree were verified. The proof was not represented as rerun at that marker; a fresh complete branch review was run at the actual published head..openclaw/tmp/accept-operations/native-AFvklZ/evidence.json, with copied manifest, hash verification and recovery/CI/review records under.openclaw/tmp/accept-final-review/. Originalb4dc20e7b73d6187a7b27ec33e5b211ac8839229proof and old worktree are preserved. Harness SHA-256aa12928c5980b07bf5f5da0903698d3de4245f1e874feb2a778c7cb75c70be63; Worker fixture SHA-256fdddd9e04ca57a0b86a0ebe7b35717ddba781c2398b0bf6ddce5d65bebcd9bf3; both runtime bundle hashes and manifest source/cleanliness were verified. These are retained local artifacts, not hosted proof links; the committed command is reproducible.Validation and finding disposition
d56dd0703a2812d007567bd478d9e432a6ae450e; 24 total check contexts, 22 passed, 2 skipped, 0 failed/pending. Four test shards total 7,136 tests: 7,114 passed, 22 skipped, 0 failed/cancelled. Fast gates, coverage gate, canonical local-package consumers, Windows launcher, sparse builds, both containment smoke samples and CodeQL passed. No manual dispatch or rerun was used.ERR_PNPM_IGNORED_BUILDS. The only follow-up source change is four lines inpnpm-workspace.yaml:allowBuildsexplicitly setsesbuild: falseandworkerd: false. Scripts remain denied; no approvals, broad ignore flag, host configuration or production behavior change was introduced. Normal frozen install now exits 0, and naturally triggered updated-head CI passes.pnpm run checkwas run after that fix and exited 1: 7,136 tests, 7,103 passed, 11 failed, 22 skipped, 0 cancelled. The failures were shell/scanner fixture surfaces; one isolated fixture also invoked real pnpm in a synthetic cwd and reportedNO_IMPORTER_MANIFEST_FOUNDwhere a fake pnpm was expected. No broader apply/scanner/host repair or unverified baseline claim was made. The normal CI run above passes the same full test count on its supported runners. Earlier focused proof had 84 passing tests and a 45-pass dashboard suite.d56dd0703a2812d007567bd478d9e432a6ae450e,--mode branch --base c1d3aebd59790a33e7fc18e61631c06bc5b0761c --max-priority P3, all 12 cumulative changed files, clean index/worktree; actual exit 0 andautoreview scoped-clean, no accepted/actionable findings. It included the denial-only CI fix and full-check limitations. The earlier oversized preparation failure is not counted as a clean review. No local findings remain.45203ef5dbf5118bf5cd8aa5f7ca0e125ce1d1ea, adding only independent containment-smoke workflow/test/fragment changes after the pinned base. Read-only merge-tree composition succeeds (3accf183a476dead59ad390e1435b34f36240d2a); no rebase or automatic fix was applied. The runtime proof is for the pinned source/base, not a separately executed composed tree.Optional Rank-up disposition: full native evidence/traces remain local to avoid publishing host-specific paths and bulk logs. The committed reproducible harness, hashes and results above remain inspectable; no hosted-artifact proof is claimed. Source and runtime proof are unchanged. Obtain a fresh review for this body. No merge, automerge or deployment is authorized here.
Credit: @brokemac79 and Vincent Koc (original commit co-author trailers preserved). Prepared with OpenClaw/Roboclaw.
Worked on by