Skip to content

Commit 468dab4

Browse files
authored
fix(review): stop historical smoke from granting proof credit (#1282)
Keep historical execution results diagnostic so they no longer overwrite reviewed behavioral proof. Retain independent failure and owner gates while preserving contributor evidence, media attribution, and status. Automatic live-proof generation and execution remain retired.
1 parent f72ea01 commit 468dab4

15 files changed

Lines changed: 830 additions & 130 deletions

‎docs/live-proof.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,21 @@ age out:
9393
These publication paths consume trusted workflow artifacts; they do not inspect
9494
a new plan or execute target code.
9595

96+
Historical receipts are diagnostic execution evidence. A passed command or
97+
assertion does not establish that the changed behavior was exercised. The
98+
ordinary recorded `realBehaviorProof` assessment owns that judgment, including
99+
relevant deterministic owner evidence assessed by the reviewer. Attaching a
100+
receipt cannot manufacture sufficient proof, replace contributor evidence or
101+
its media attribution, or waive required authority-chain proof. Reviewer patch
102+
ratings and rank-up advice remain independent; stale receipt-era proof credit
103+
may only be capped against the recorded behavioral assessment.
104+
105+
Failed or malformed receipts still block merge independently of proof
106+
exemptions and overrides. When independent behavioral proof is valid, the
107+
receipt failure belongs to the maintainer, not the contributor. Identity and
108+
plan validation, bounded output, historical media publication, and retraction
109+
remain unchanged. No new execution or assessment lane is introduced.
110+
96111
## OpenClaw Bay
97112

98113
OpenClaw Bay remains observer-only. Its default beach and one-hour review-time
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"schema_version": 1,
3+
"repo": "openclaw/clawsweeper",
4+
"item": 42,
5+
"head_sha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
6+
"plan_sha256": "7a2d40142f1e6bcff31424265a58859bfbc06175894666cc7a13ce5be2e1140f",
7+
"surface": "terminal",
8+
"entry": "pnpm openclaw --help",
9+
"drive_status": "completed",
10+
"steps": [
11+
{
12+
"action": "expect_output",
13+
"status": "completed",
14+
"detail": "ok",
15+
"subject": "Usage: openclaw [options] [command]",
16+
"assertion": "Usage: openclaw [options] [command]",
17+
"present_at_start": false,
18+
"satisfied": true
19+
}
20+
],
21+
"output": "Already up to date\nDone in 2.3s using pnpm v11.24.0\n$ node cli.mjs --help\nUsage: openclaw [options] [command]\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
22+
"overall_pass": true,
23+
"verified_at": "2026-08-28T07:43:51.756Z"
24+
}
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
repository: openclaw/clawsweeper
3+
type: pull_request
4+
decision: keep_open
5+
close_reason: none
6+
confidence: high
7+
action_taken: kept_open
8+
number: 42
9+
review_status: complete
10+
author: synthetic-contributor
11+
author_association: CONTRIBUTOR
12+
labels: ["clawsweeper:automerge"]
13+
pull_head_sha: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
14+
pull_files: ["src/gateway/http-auth-utils.ts","src/gateway/server-methods/device-scope-upgrade.ts","src/gateway/server/plugin-route-runtime-scopes.ts"]
15+
pull_files_truncated: false
16+
work_candidate: none
17+
review_activity_cursor: v1:0:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
18+
---
19+
20+
## Summary
21+
22+
Synthetic claim: Gateway role ceilings, scope-upgrade approval, demotion and plugin runtime authorization changed. This fixture contains no Gateway implementation.
23+
24+
## What This Changes
25+
26+
Gateway authorization policy changes; CLI help is unchanged.
27+
28+
## Real Behavior Proof
29+
30+
Status: missing
31+
32+
Evidence kind: none
33+
34+
Needs contributor action: true
35+
36+
Summary: No authorization scenario has been exercised in this synthetic fixture.
37+
38+
## PR Rating
39+
40+
Overall tier: F
41+
42+
Proof tier: F
43+
44+
Patch tier: A
45+
46+
Overall label: 🧂 unranked krab
47+
48+
Proof label: 🧂 unranked krab
49+
50+
Patch label: 🦞 diamond lobster
51+
52+
Summary: This synthetic report lacks authorization proof.
53+
54+
Next rank-up steps:
55+
56+
- none
57+
58+
## Live Proof
59+
60+
Status: recommended
61+
62+
Surface: terminal
63+
64+
Terminal completion: exit_zero
65+
66+
Reason: Startup smoke only; this does not exercise role ceilings, upgrades, demotion, or plugin authorization.
67+
68+
Payoff: static_text
69+
70+
Payoff justification: The help header is short terminal output.
71+
72+
Entry: pnpm openclaw --help
73+
74+
Steps:
75+
76+
- {"action":"expect_output","text":"Usage: openclaw [options] [command]"}
77+
78+
## Review Findings
79+
80+
Overall correctness: patch is correct
81+
82+
Overall confidence: 0.98
83+
84+
Full review comments:
85+
86+
- none
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"claim": "A captured help-only PASS cannot replace a missing authorization proof assessment.",
3+
"command": "node dist/clawsweeper.js live-proof-publish-artifacts --artifact-dir <local-artifact-dir>",
4+
"projection": ["renderReviewCommentFromReport", "reviewAutomationMarkersFromReport"],
5+
"originalCapturedReceiptSha256": "0499c0147dadce3fd0d42fad65f5176218d0ca134a8ef48e5c671fc41f60e502",
6+
"before": {
7+
"head": "f72ea010c1d7fd134b1bd0826b3a707778c312bc",
8+
"productionDiff": "clean",
9+
"publication": "published",
10+
"attachment": "attached",
11+
"realBehaviorVerified": true,
12+
"addsSufficient": true,
13+
"rejectionAssertion": "failed"
14+
},
15+
"after": {
16+
"head": "f72ea010c1d7fd134b1bd0826b3a707778c312bc",
17+
"productionDiffSha256": "dd38978f9d2aacc44d4bcd249f498106423c012b01c6b3bf81bceab94ca5e667",
18+
"publication": "published",
19+
"attachment": "attached",
20+
"realBehaviorVerified": false,
21+
"addsSufficient": false,
22+
"rejectionAssertion": "passed"
23+
},
24+
"portableRecipe": {
25+
"runtime": {
26+
"node": "v26.7.0",
27+
"platform": "darwin",
28+
"architecture": "arm64",
29+
"provider": "local-process",
30+
"image": null,
31+
"lease": null
32+
},
33+
"recipeSha256": "e1087687a8f052ec8ad89623eba1b0a77ecace84b43f116b806f43b2b175ad3f",
34+
"normalizedReceiptSha256": "6b9d4e33bd92c731c959e541d455a8be79d3efd596390123b951e9232882ba19",
35+
"reportSha256": "5d1694f1a28efb78b8bc1aa6e59d96f633c7cae5ad6ec89673c91ba9da32d419",
36+
"cases": 22,
37+
"passed": 22
38+
},
39+
"limits": "Before/after replay the same original captured receipt bytes. The public fixture normalizes identity metadata and adds a synthetic automerge label for marker coverage. Other controls are constructed, not fresh executions. No Gateway code, GitHub, R2, queue, or terminal driver was exercised.",
40+
"statusReconciliation": {
41+
"beforeProductionDiffSha256": "33edc78fbc9768a0c4bb3d5145ff676a3336fa3fe67475a9cb498eb3ccf9efdb",
42+
"redRegression": "Sufficient recording plus passed receipt incorrectly justified the existing needs-proof status.",
43+
"after": [
44+
{
45+
"case": "stale-contributor-attached",
46+
"justifiedStatuses": ["status: 🚀 automerge armed"],
47+
"passed": true
48+
},
49+
{
50+
"case": "stale-contributor-direct",
51+
"justifiedStatuses": ["status: 🚀 automerge armed"],
52+
"passed": true
53+
},
54+
{
55+
"case": "stale-maintainer-attached",
56+
"justifiedStatuses": ["status: 🚀 automerge armed"],
57+
"passed": true
58+
},
59+
{
60+
"case": "stale-maintainer-direct",
61+
"justifiedStatuses": ["status: 🚀 automerge armed"],
62+
"passed": true
63+
}
64+
]
65+
}
66+
}

0 commit comments

Comments
 (0)