Repository navigation
fix(ci): retain safe dirty-source diagnostics for desktop proof - #149085
Conversation
|
🦞👀 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. |
|
Codex review: blocked before merge. Reviewed September 15, 2026, 6:50 PM ET / 22:50 UTC (Revision 3). ClawSweeper reviewWhat this changesRecords bounded, sanitized tracked filenames and omission counts when desktop CI refuses a dirty source checkout. Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this remains a useful, focused diagnostic improvement with no actionable correctness findings. The previous migration blocker is unsupported: the added field belongs to a per-run proof artifact, not persisted product state. Priority: P3 Review scores
Verification
How this fits togetherDesktop proof CI checks source identity and cleanliness before and after exercising desktop connections. Its public receipt gives maintainers diagnostic facts while raw command output stays in private logs. flowchart TD
A[Checked-out source] --> B[Verify commit identity]
B --> C[Read committed filenames and Git status]
C --> D[Filter and bound diagnostic entries]
D --> E[Public CI receipt]
C --> F{Checkout clean?}
F -->|Yes| G[Continue desktop proof]
F -->|No| H[Refuse proof and retain diagnostics]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +189, Other +71. Total +260 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep source admission strict while publishing only bounded diagnostic facts through the existing CI receipt. Do we have a high-confidence way to reproduce the issue? Yes, from source: a dirty checkout reaches main's cleanliness assertion without adding changed filenames to the public receipt. No runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Yes. The patch extends the existing receipt owner, preserves rejection and cleanup behavior, and avoids publishing private filenames or raw output; no product migration is needed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 14b8ad1d1871. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
Related: #148962
What Problem This Solves
Desktop CI can reject a dirty source checkout without recording which tracked files changed, leaving the failure impossible to diagnose from its public receipt.
User Impact
No product UI or runtime behavior changes. Maintainers get bounded, sanitized source-status evidence when desktop proof refuses a dirty checkout; that refusal remains mandatory.
Why This Change Was Made
Source admission records status before asserting cleanliness and clears stale status before each read. It publishes only safe paths already present in the verified commit, with counts for omitted entries. Untracked files, private staged additions, raw command output, and new rename destinations stay out of the public receipt. The existing source identity and process cleanup checks remain in place.
Evidence
git diff --checkpassed. Production delta: +88/-17 (net +71), for the bounded diagnostic projection; tests: +190/-1.2209c816800f17e7b659d224573e93b96b5e8969: the hosted build, all tooling groups, and real-gateway desktop proof passed, including four source-admission checks across Node and SSH carriers and final cleanup. The aggregate failed only in two unrelated test groups, whose fixes are included from current main.6c28739b1aca420df0c753acb79f065085cc7229. Current CI35028796996 passed on656f29c1: 51 successful jobs, 14 skipped, no failures, including the required aggregate. Build and real-Gateway proof passed; the latter completed 30 files and 60 tests, both Node and SSH carriers, source guards, and cleanup. Native hosted-evidence preparation passed, and this PR was squash-merged as60c24d7192c1. The native workflow verified the attempted head and retained its completed merge receipt.sourceStatusis an additive field in an existing per-run CI proof receipt. It changes no product state store, SQLite schema, schema version, or upgrade reader.Current signed head:
656f29c1efb0be685569d4bdb23566ac93ff43a9. The inherited fixture line-cap failure is repaired by merged #149423, now incorporated. The superseded CI attempt was cancelled after preserving its completed results and known failure. The feature delta is byte-identical after this main integration; current exact-head hosted qualification passed. The completed current-head ClawSweeper review reports no actionable source finding; its generated migration checkbox is addressed by the per-run artifact explanation above.