Repository navigation
feat(ui): explain decision receipts in Activity - #126007
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 21, 2026, 1:17 PM ET / 17:17 UTC. ClawSweeper reviewWhat this changesThe PR replaces raw audit decision receipts with bounded safe display records for Gateway, CLI, and Control UI consumers, including receipt-detail deep links. Merge readinessThe safe public projection is coherent and no discrete patch defect was found, but this protected maintainer PR intentionally replaces a V1 Gateway response and needs protocol-owner confirmation before merge. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherGateway audit inspection reads retained execution decision records and supplies CLI and Control UI diagnostics. This change inserts a safe public projection between stored receipts and those clients. flowchart LR
A[Stored decision records] --> B[Audit projection]
B --> C[Gateway audit response]
C --> D[CLI output]
C --> E[Activity inspector]
B --> F[Safe display records]
Decision needed
Why: This is an intentional public response replacement with coordinated in-repository client updates, but independently deployed beta clients may exist. Before merge
Agent review detailsSecurityNone. PR surfaceSource +928, Tests +1135, Docs +25, Other +46. Total +2134 across 37 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep a single Gateway-owned safe display contract, cut all in-repository clients over together, and document the beta-client upgrade expectation. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug report; focused source and regression tests define the public serialization path, but this read-only review did not execute it. Is this the best way to solve the issue? Yes, conditionally: Gateway-side projection is safer than client-side stripping because all public consumers receive the same bounded allowlist. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 98ff2294a93f. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (18 earlier review cycles; latest 8 shown)
|
5a0bc8e to
5ccf35f
Compare
|
@clawsweeper re-review Please review exact head The prior navigation/docs item is disposed at this head: Activity retains two visible tabs (Sessions and Live activity), Run inspector remains deep-link-only, and |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Apply the reviewer-environment rule in prompts/review-item.md: an unavailable dependency checkout is a maintainer-facing reviewer limitation and must not lower proof or overall rating solely for that limitation. The PR body now records the protocol-owner cutover approval and exact Codex commit/file/line evidence. There are no actionable findings. Reassess the scores against those facts; do not convert ClawSweeper's missing sibling checkout into author action. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞👀 Pull request received. I will update this pull request when review starts. |
* fix(audit): project safe decision receipt displays * docs(agents): preserve audit display privacy * fix(ci): satisfy audit receipt guardrails
What Problem This Solves
audit.run.inspectis a diagnostic surface over owner-native decision records. Raw receipts contain private identifiers and receipt-controlled prose that must never become display-safety inputs, public selectors, or client-visible fallback data.The final candidate closes two owner-boundary failures:
AuditRunInspectResultwithdecisionDisplaysand never rawdecisions; andCanonical Safe-Only Fix
decisionDisplays; neither has UI-side inference or a raw-receipt fallback.receipt_rowid, execution binding, payload bounds, and projection fields in one SQLite statement and snapshot, then emitsapproval-decision:<receipt_rowid>directly from that row.message-decision:<owned-row-id>from the same merged owner snapshot.{ receipt, selectorId }pairs directly. There is no second lookup, receipt-controlled key, raw-ID hash, optional selector,flatMap, row drop, or TOCTOU pairing.Non-goals remain unchanged: no storage or migration change, SQLite/schema-version bump, collection default, configuration/environment surface, approval-authority change, compatibility reader, alternate mode/endpoint, or protocol-version expansion.
Exact Published Candidate
124afe2abad76dde8823be54d5f33f763e6e750d242830bba734f0b1e34fc5d18cbd0d4b6b0a1017916eef4e996008d387207c53044afd8cf02dcc30916eef4e996008d387207c53044afd8cf02dcc30..124afe2abad76dde8823be54d5f33f763e6e750d13c908b2cb6a03e78ed3dd6ffb206b9b32b628123f9b702e836511fa78fd7c64120eeee08f4d47f1bf542ebab2da1d32d17a86b4to this exact object.Framework-v1 candidate custody:
0b3bd0ab750764e6a5c45dfef0dc4dfb2871952eae3d46c25f1c83af62187bc6813ca2c98896499078e5e45f010465d1fd5e57a4805bc8c4ecebd2fdbceebeb7b9b2199163c7f7d8dcf15775a13ceafafeaff4f0063680983d190fe935e88189a9a9b0fc1c920d277ad06ad80d58f100ea0d00ef25111edab113aab154b24bdb71af3d673fb51587e8828befebd3fce09636077cdc692ee150c0a83b35d6cdbe5c7122648ba7075e65a785428cfa666dcb3a941b56be13484d2080efe8667e3cIndependent candidate verifier
01a022ca-8633-76c2-85ee-b0a5daab5f0caccepted this exact candidate. Its transcript is 489 records / 13,644,506 bytes / SHA-25646c5307a728fe012ef376b536e7d24ec7595cd55aff26a7adbf3f46ac6e346ab; final response ordinal 486 and task-complete ordinal 488 are exactlyU2_R6_CANDIDATE_ACCEPTED.Privacy and Behavioral Proof
fac6f3314d1567ad20d6bdf646ee77fca380b6577221591603a144660ba2ad8d/f5d107b151d26b3f19a8fe7c3338e879387fd3d9847cf9b6ac812d18509c95d8.decisions,receiptId,resolutionRef,eventId, hostile sentinels, forged owner/prose, and transforms of private identifiers are absent from serialized Gateway output, CLI human/JSON, visible text, DOMtextContent, accessibility/ARIA names, links/hrefs, receipt URLs, browser location, history, screenshots, and video artifacts.6d82adfb09f1acaf4f73ba026afd6e41397a6bfa7737ecf152b89c73f603c5f9. All PNGs and two local video frames were visually inspected.Browser proof uses a deterministic mocked Gateway rather than a live authenticated deployment. Earlier pre-amend, stale-lease, and harness-defect artifacts remain diagnostic only.
Visual Evidence
Bounded safe receipt detail
Normal detailed receipt inspector showing fixed verified-producer explanations and bounded evidence fields.
Unverified/privacy state
Unverified receipt privacy state with unsafe receipt prose and private identifiers omitted.
Ambiguous-run selection state
Ambiguous run selection with an exact-execution link and bounded evidence guidance.
Frozen-Main Integration Audit
The serialized acceptance observation froze main at
bed80ee645595247aa3fda0f2af587578a6482af, tree8cb7215a71e0594e69e7314d250d3808a59ecf2a. It is advisory and was not used as a publication target.Conflict-free synthetic integration commit
a4d738650e9c67070b8e2b2fed4f0e40fd86d3e2has treefe109b664259b0cf11dd7597e7ee41486a5898baand sole parent the frozen observation. It preserves the candidate patch and observed-main movement. The only exact candidate-path overlap is the generated Swift Gateway model; the main-only and candidate patches are disjoint and compose without conflict.No moving-main query or refresh occurred during publication.
Protocol Owner Decision
Approved in place by protocol owner @joshavant on 2026-08-21: The former
audit.run.inspectV1 response with required rawdecisionsexists in release tagsv2026.8.1-beta.1andv2026.8.1-beta.2, so it is shipped under the repository any-release-tag rule. Compatibility for that exact beta contract introduced by #117034 is explicitly waived. This PR is authorized to retainschemaVersion: 1and replacedecisionsin place with required safe-onlydecisionDisplays. Do not add a version, compatibility shim, alternate mode or endpoint, deprecated raw field, or fallback. All in-repo consumers—Gateway, CLI, Activity, and generated Swift—cut over together.Direct Codex dependency proof: the sibling
../codexcheckout was personally inspected at commit38b064c31b1f7464b281006316ec878ed23fea77.codex-rs/app-server-protocol/src/protocol/v2/item.rs:1439-1443definesapprovalIdas a distinct opaque callback/routing UUID;codex-rs/app-server-protocol/src/protocol/common.rs:1469-1472bindsitem/commandExecution/requestApproval; andcodex-rs/app-server/src/bespoke_event_handling.rs:2019-2055submits the decision usingapprovalIdor the parentitemId. These are live transport/correlation identifiers, not public audit display selectors. The PR therefore mints independent same-snapshot row-based display selectors instead of exposing or transforming those IDs.ClawSweeper and Rank-up Disposition
Historical findings are addressed by the exact published head:
AuditRunInspectResultcontainsdecisionDisplays, never rawdecisions; andThe fresh exact-head ClawSweeper review requested after this publication is authoritative. Older-head comments and runs are historical only.
Dependency and Owner Inspection
Direct sibling Codex inspection covered
codex-rs/protocol/src/approvals.rs,codex-rs/app-server-protocol/src/protocol/v2/item.rs, andcodex-rs/core/src/session/mcp.rs. Approval IDs are opaque live routing/correlation identifiers, not public audit display selectors.Direct OpenClaw ACP relay, ACP SDK 1.3.0, and acpx 0.13.0 inspection confirmed permission and tool-call data are transport/lifecycle facts, not display-safety provenance.
LOC
+1309/-517(net+792)+1556/-285(net+1271)+43/-19(net+24)+50/-4(net+46)Production growth establishes the typed safe-only privacy boundary, single-snapshot opaque selector ownership, total receipt projection, canonical CLI/Activity consumers, and cohesive evidence rendering. The obsolete raw-receipt Activity module remains absent.
Process Disclosures and Holds
pnpm installwas mistakenly started after this linked worktree was initially misclassified. Its ignorednode_modulesremains untouched; the install is not proof.node_modules/.bin/vitestinvocation is disclosed as non-proof. Trusted focused checks used the repository harness; authoritative heavy proof ran on Testbox.HEAD^, raw-base, and artifact-capture defects were diagnostic only and never promoted.Agent Transcript
Sanitized transcript anchors are included under the explicit publication authorization. Raw logs, tool output, system/developer prompts, credentials, browser/session details, broad local paths, and unrelated turns are omitted.
Redacted U2 R6 worker transcript anchor
Session
01a01cfa-83b8-7430-8616-1ec96d282e66; completed candidate-gate prefix: 10,242 records, 89,612,844 bytes, SHA-2568d6c4d809f3fb2697eff561040d143e7209d5b54ac467d1780e08d03ddfd1bc3. Final response ordinal 10239 and task-complete ordinal 10241 are exactlyAWAITING_U2_R6_CANDIDATE_VERDICT.Redacted independent candidate-verifier transcript anchor
Session
01a02038-edd5-7b50-b3c3-16ee770007fd; 588 records, 28,769,105 bytes, SHA-256165e3b629ceed28d6611e04c2a1ac0378572ca107eda0bfcf68b857c84750b42. Final response ordinal 585 and task-complete ordinal 587 are exactlyU2_R6_CANDIDATE_ACCEPTED.