|
| 1 | +# Historical proof classification |
| 2 | + |
| 3 | +- Status: historical repair proof recipe; not an execution runbook |
| 4 | +- Owner: ClawSweeper review and publication maintainers |
| 5 | +- Baseline: `f72ea010c1d7fd134b1bd0826b3a707778c312bc` |
| 6 | +- Update when: historical receipt folding, report proof classification, labels, |
| 7 | + ratings, or merge markers change |
| 8 | + |
| 9 | +This proves ClawSweeper's classification of historical artifacts, **not Gateway |
| 10 | +authorization**. Automatic live proof remains retired. The recipe runs the |
| 11 | +retained production CLI and public report projections, without executing a |
| 12 | +target checkout or creating a replacement proof lane. |
| 13 | + |
| 14 | +## Reproduce locally |
| 15 | + |
| 16 | +From this checkout, using existing Node >=24 and pinned pnpm 11.10.0: |
| 17 | + |
| 18 | +```sh |
| 19 | +pnpm run build:all |
| 20 | +node docs/proof/historical-proof-classification/run-proof.mjs .artifacts/historical-proof-classification |
| 21 | +``` |
| 22 | + |
| 23 | +The output directory must not exist. The recipe works with local Node on macOS |
| 24 | +and Linux; it needs no tmux, browser, video toolchain, accounts, or credentials. |
| 25 | +It passes only PATH, a new local HOME, and LANG to the child CLI. Every bundle |
| 26 | +lacks a media manifest, so there is no R2 upload. The production publication |
| 27 | +command rejects live-head lookup and folds local records without syncing GitHub |
| 28 | +comments. The synthetic `clawsweeper:automerge` label tests marker generation |
| 29 | +only; nothing enables or executes automerge. |
| 30 | + |
| 31 | +`result.json` records the source HEAD, production diff hash, recipe and fixture |
| 32 | +hashes, Node/platform/provider, and each observation. Each scenario retains a |
| 33 | +small receipt where applicable, folded report, rendered comment, publication |
| 34 | +result, and markers. Generated outputs are local evidence, not files to commit. |
| 35 | + |
| 36 | +## Input provenance and boundary |
| 37 | + |
| 38 | +[The receipt](help-only-receipt.json) originated in a real PTY capture of a |
| 39 | +synthetic help-only package on 2026-08-28. Its only behavior was printing |
| 40 | +`Usage: openclaw [options] [command]`. No Gateway implementation existed in that |
| 41 | +fixture. The captured output and assertion results are preserved, including |
| 42 | +the historically reported pnpm version; that version is not a setup instruction. |
| 43 | +Only repository, item, and head identity metadata were normalized to |
| 44 | +`openclaw/clawsweeper`, `42`, and forty `a` characters. The original plan digest |
| 45 | +and capture timestamp are retained. |
| 46 | + |
| 47 | +[The sample report](help-only-report.md) is deliberately synthetic. Its claim |
| 48 | +concerns authorization while its ordinary proof assessment is missing. Its |
| 49 | +dummy PR binding is never looked up. The recipe also constructs failed and |
| 50 | +malformed controls and independent reviewer assessments; these are explicitly |
| 51 | +fixture data, not claimed fresh executions or newly verified owner traces. |
| 52 | + |
| 53 | +The exercised production path is `src/clawsweeper-runtime.ts` → |
| 54 | +`src/live-proof/publication-artifacts.ts` → |
| 55 | +`src/live-proof/attach.ts` (`attachReviewLiveProofArtifact`), followed by |
| 56 | +`renderReviewCommentFromReport` and `reviewAutomationMarkersFromReport`. |
| 57 | +Classification comes from `src/clawsweeper-report-parser.ts`, status ownership |
| 58 | +from the label/presentation owners, and merge proof gates from |
| 59 | +`src/clawsweeper-orchestration-foundation.ts`. Schema-v1 plan/identity validation |
| 60 | +is still the unmodified production verifier. |
| 61 | + |
| 62 | +## Before and after |
| 63 | + |
| 64 | +[The compact observations](observations.json) record the same original receipt |
| 65 | +replayed before and after the repair. Both publications attached successfully; |
| 66 | +the erroneous `Verified` and sufficient-label results changed from true to |
| 67 | +false. All 22 maintained recipe cases passed locally. The observations record |
| 68 | +the tested production diff and recipe hashes; rerun after changing either. |
| 69 | + |
| 70 | +On the baseline, replaying the original captured receipt through the actual |
| 71 | +publication CLI returned `published` / `attached`, marked real behavior |
| 72 | +`Verified`, and proposed `proof: sufficient` despite the missing authorization |
| 73 | +assessment. The intended rejection assertion failed. The fresh terminal |
| 74 | +attempts on that baseline instead failed cleanup and produced no receipt; |
| 75 | +they are a separate driver issue and are not evidence for this repair. |
| 76 | + |
| 77 | +The maintained recipe expects publication to remain `published` / `attached`, |
| 78 | +while the same help success leaves missing proof unresolved, proposes no |
| 79 | +sufficient label, and cannot produce a merge-pass marker. It also checks that |
| 80 | +independent recording, linked-artifact, and terminal assessments retain their |
| 81 | +summary, media attribution, patch cap, and rank-up advice across passed and |
| 82 | +failed receipts. Failed/malformed receipts still block merge; unresolved |
| 83 | +authority-chain proof is enforced for trusted and external authors. Exemptions, |
| 84 | +explicit override, invalid identity rejection, and direct publication without |
| 85 | +an attachment are separate controls. Independently sufficient proof clears stale |
| 86 | +contributor and maintainer proof-status justifications for both attached and |
| 87 | +direct publication, without treating receipt success as proof. |
| 88 | + |
| 89 | +Limits: this is local publication/runtime evidence, not a live GitHub, R2, |
| 90 | +Gateway, queue, or terminal-driver test. It does not judge whether a reviewer's |
| 91 | +semantic assessment is correct. Bay needs no change: no observer API, lifecycle, |
| 92 | +telemetry, timing, or action contract changes, and its retired-path display |
| 93 | +switch remains presentation-only. |
0 commit comments