Skip to content

fix: require complete secret scans for hosted reviews - #1293

Merged
steipete merged 5 commits into
mainfrom
fix/hosted-review-secret-scan
Aug 29, 2026
Merged

steipete merged 5 commits into
mainfrom
fix/hosted-review-secret-scan

Conversation

@steipete

@steipete steipete commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes hosted ClawSweeper reviews reporting an unavailable TruffleHog prerequisite without a host-owned scan-completion gate. The shared Ubuntu bootstrap installed Codex and its Responses proxy, but not the scanner expected by a repository-bundled autoreview helper.

The native structured decision still existed; the failed nested helper was not evidence that its separate scan/review completed. This was reported in the ClawSweeper review of Crabbox's UUID inspection repair. No Crabbox implementation is changed here.

Why This Change Was Made

The existing native structured review now owns mandatory secret-scan admission. Shared Codex/OpenClaw bootstrap installs the official TruffleHog 3.97.1 Linux amd64 archive after pinned SHA-256 verification and a real benign scan. Runtime resolution rejects scanner executables supplied by either checkout, including symlink and ..name containment cases.

The host scans the exact explicit initial prompt/schema, full introduced diff, and complete raw before/after content. Repair includes HEAD, index, and current worktree states, so staging a value and restoring the working file cannot hide it. Existing Git merge-base and snapshot owners supply pinned identities; private quarantine lifetimes and pre/post scan plus post-model fences prevent stale acceptance. Raw bytes remain scanned when legitimate Git line-ending normalization differs from stored blobs. Host configuration is read only for normalization/attribute queries; object reads and canonicalization cannot execute target/global filters.

Missing tools, findings, scanner errors, incomplete input, source drift, and expired budgets fail closed before model invocation or cached success. Historical cache outcomes are invalidated by the existing policy version; semantic reuse still scans raw comment changes. Stale output is retired, diagnostics are redacted, and refusal is nonretryable infrastructure failure—not a finding-repair or fallback prompt.

Generated prompt diagnostics retire the previous attempt's copy and are written only after successful admission, with mode 0600. Unused commit-review, assist, and close-coverage copies are removed instead of maintaining another persistence path. Original inputs and explicit repair render/dry-run exports remain operator-owned.

Installing the binary alone would leave the nested helper's sandbox/proxy-auth incompatibility unresolved. This keeps one native reviewer instead of adding a second review framework or widening worker privileges. Auth, model versions, sandbox/network permissions, and persistence schemas are unchanged.

User Impact

Hosted reviews either pass the supported scan and native review path or produce an explicit refusal. Local native-review users need a trusted TruffleHog installation outside the source and ClawSweeper checkouts. Workers never install dependencies themselves, and there is no scan-disable option.

Maintainer decision — local upgrade: the approved implementation contract intentionally applies fail-closed admission immediately to existing local native-review workflows as well as hosted workers. The added prerequisite and its support impact are accepted for this repair: install a trusted TruffleHog binary, then rerun the same review command. There is no grace period or legacy unscanned path; staging enforcement only for hosted workers would contradict the selected no-unscanned-review boundary.

The supported scan scope is the explicit initial payload and complete introduced content, with a 256 MiB staging cap and the existing review deadline. This is not universal scanning of later tool results, automatically loaded project instructions, resumed/steered history, or all repository history. Planning, assist, and close-coverage calls scan their explicit payload/schema rather than claiming complete source-review coverage.

CI Repair Included

PR-only CI exposed two additional owning-boundary defects. The hermetic automerge harness omitted its scanner fixture; its external tool-bin producer now supplies the existing fake scanner and requires a fresh matching prompt receipt before each fake model call. Its real container workflow passed without changing production scanner trust or isolation.

The failed full-check run also exposed retained terminal-proof races: tmux publishes process status and PTY closure independently, a watchdog's secondary child status could obscure the original wrapper's signal, and pipe-pane rejects an exited pane before closing its existing pipe. The terminal owner now waits for both exit observations and the exact zero-survivor cleanup receipt, preserves the original failure, and removes only the verified dead pane to deliver real capture EOF. The fixture uses a causal kill handshake instead of racing a sleep. Production growth for this correction is seven lines; no timeout, survivor check, lease/nonce binding, or signal permission was relaxed.

OpenClaw Bay Impact

No Bay schema, observer API, controls, or UI changes. Existing failed/cached lifecycle fields carry the result; scan refusals retain their nonretryable classification. No sensitive scanner diagnostics are added to public projections.

Documentation Impact

Updated the existing README, local commit-review, repair, and cache documentation and native review prompts. They describe provisioning, local prerequisites, coverage limits, failure behavior, and the host-managed review contract without claiming a target helper ran. Added ClawSweeper changelog context following this repository's existing practice; unrelated release files are untouched. The retained terminal-proof reference also documents the CI-discovered exit/drain ordering and verified dead-pane capture cleanup.

Evidence

  • Exact reviewed head: efd611760cf18ec855f8717873b0184be6a6b55c.
  • Full hosted pnpm run check passed in both the dispatch proof run and pull-request CI on the exact head. The first clean-runner pass exposed 30 fake-model fixture paths relying on the Mac's installed scanner; the fixture producers were completed without changing production scanning or weakening assertions, then rerun without a host scanner.
  • Local build, static/documentation checks, lint, and the focused scanner/snapshot/cache regressions passed. Regression proof covers missing/error/finding scanners, stale output, deletion-only and multiline content, content beyond display limits, staged-only input, raw drift, local/global CRLF settings, callback exclusion, cache refusal, deadlines, cleanup, and redacted diagnostics.
  • Fresh Codex autoreview ran with mandatory TruffleHog scanning and reviewer isolation on a byte-identical frozen uncommitted diff and the committed branch. No findings at the default P0 threshold.
  • Source-blind CLI validation: seven replayed refusal/artifact-preservation checks passed with zero provider execs; rejected and stale prompt copies were absent, original inputs remained unchanged, and all 100 introduced file hashes matched scanner input. This operator-only lane did not independently audit installer policy or claim universal context coverage. Its synthetic-marker probe caught the pre-admission diagnostic copy; that producer/lifecycle defect was repaired across sibling paths before landing.
  • Native Windows launcher proof passed in hosted CI. Sparse repair build fixtures passed locally and remain part of pull-request CI.
  • Direct Codex contract inspection: hosted read-only permission profile and restricted Linux networking; local schema/config CLI contract and runtime sandbox override. The tmux ordering/pipe behavior was checked against the 3.4 format callbacks and dead-pane pipe handling, plus 3.7c source and actual native runs.

Early full-check attempts on the heavily loaded Mac exceeded the execution window; source-loader attempts also hit filesystem/startup stalls. Those runs are not reported as green. The later hosted terminal failures were root-caused and repaired above; the final compiled owner suite (147/147), real Mac cases, and exact-head Ubuntu checks now pass. A separate follow-up remains for host filesystem latency. The complete hosted gate above is the full-suite evidence.

Real Behavior Proof

Claim and surface: the shared hosted bootstrap and production native runner refuse unavailable/failing scans before inference, then complete a clean scanned structured review through the unchanged Responses proxy and read-only Codex runtime.

Scenario: isolated synthetic Git base/head; missing scanner, scanner failure, findings, and unexpected output use a no-inference provider probe. They leave zero provider starts and cannot reuse pre-existing valid-looking output. The clean case uses the actual installed scanner and Codex, reads a fixture-specific UUID from the changed file, and returns it in parsed structured output. Checkout identity and scratch cleanup are asserted.

Environment: GitHub-hosted Ubuntu 24.04, image 20260823.283.1, TruffleHog 3.97.1, Codex 0.146.0, existing host proxy/authentication. Scanner archive SHA-256: f863ea3a8d786f7d097870496c977944cce7372a2fe1e56707d965016e543ece.

Command: node scripts/hosted-review-scan-smoke.mjs "$RUNNER_TEMP/hosted-review-scan-proof.json", run by the dispatch-only CI smoke job.

Observed result: zero provider starts and zero retained prompt artifacts across refusal cases; one real clean native run with the correct dynamic marker, unchanged checkout, no remaining scanner scratch data, and an exact admitted diagnostic prompt with mode 0600. Hosted run · sanitized proof artifact.

Local upgrade / Rank-up disposition: immediate universal enforcement is the selected maintainer contract (see User Impact), not a compatibility grace period. On the scanner-identical runtime at 243c9cd4c8, using macOS arm64 with Node 26.7.0, TruffleHog 3.97.1 and Codex 0.150.1, the real review --local-range CLI refused a missing scanner with exit 1 and zero provider starts. With the trusted installed scanner exposed, the same CLI command completed with exit 0, one real provider execution, parsed structured output, and a 0600 prompt diagnostic using existing local Codex authentication without copying credentials. HEAD, the complete stage-0 index identity and every tracked file byte matched the original synthetic fixture; the expected local review-history Markdown artifact was created. The initial extra whole-.git snapshot assertion incorrectly included that intentional artifact, so the source invariants were independently rechecked rather than claiming metadata immutability. A separate fresh-fixture replay stopped at git init timing out on the loaded Mac, before scanning/inference. Fresh-host installation and complete native execution are also proven by the Ubuntu job above. No unscanned transition is introduced.

Terminal runtime proof: deterministic ordering and signal/EOF regressions failed on the pre-fix compiled owner and passed on the repaired owner. The rebuilt driver also passed the actual tmux/PTY mixed-stream case, stale previous-pane assertion case, and target-triggered wrapper SIGKILL case on macOS with Node 24.20.0 and tmux 3.7c. The latter preserves exit 137, clean capture EOF, distinct process groups, and verified disappearance of the background child. Exact commands: node --test --test-name-pattern='terminal cleanup waits for both tmux|terminal wrapper death owns failure|terminal pane status corruption' test/live-proof.test.ts and node --test --test-name-pattern='terminal proof preserves its PTY|terminal proof cleanup survives target-triggered pane wrapper death|terminal proof does not satisfy a command from the previous pane state' test/live-proof-review-environment.test.ts. The wrapper case was replayed alone after correcting the fixture for numeric and named signal formats; the other two real cases passed unchanged. The first final-head Ubuntu runs exposed its numeric 9 format (versus the Mac's kill); only the fixture predicate changed, while exact PID/SIGKILL matching and all outcome/cleanup assertions remained. Earlier source-loader attempts hit local filesystem/startup stalls and are not counted as passing. This exercises real terminal lifecycle/capture behavior, not the retired automatic proof-generation or media-publication lane; no video is required for these terminal traces.

Current-head native terminal scenario trace — copied from the successful Ubuntu runtime job, not a mock-tmux run:

head: efd611760cf18ec855f8717873b0184be6a6b55c
✔ terminal proof preserves its PTY and seals immediate mixed-stream output in order (3040.935426ms)
✔ terminal proof cleanup survives target-triggered pane wrapper death (5615.466657ms)
✔ terminal cleanup waits for both tmux process status and PTY closure (48.0506ms)
✔ terminal wrapper death owns failure status and seals capture after verified cleanup (34.145175ms)

The first two scenarios use real tmux/Bash/Node; the last two deterministically exercise protocol ordering. The real wrapper scenario verifies the original pane's SIGKILL before finalization, exit 137, preserved captured marker, no EOF/cleanup failure, distinct process groups, zero matching survivors, and ESRCH for the child PID. An additional instrumented Mac trace attempt hit the existing cleanup deadline and is not counted as passing; its host/lifecycle timing remains an explicit follow-up, not a reason to loosen cleanup.

Limits: this proves the stated initial-payload/introduced-content admission boundary and the real hosted/native-local flows. It is not a universal provider-egress scan or a live exercise of every cache/repair state; those owner boundaries have dedicated regression coverage.

Size and Scope

Production/provisioning (including runtime prompt text): +952/-133 (net +819). Tests/proof support: +2021/-509 (net +1512). Documentation: +72/-0 (net +72).

The positive production delta supplies the previously absent mandatory byte-complete admission boundary and safe bootstrap. It reuses the existing runner, schemas, cache policy, Git evidence, and repair snapshot owner; no second reviewer, independent snapshot engine, persisted receipt store, compatibility fallback, or permission expansion was added.

Provision pinned TruffleHog in the shared worker bootstrap and require complete native review-input scans before model calls or cached success. Preserve fail-closed scanning, read-only workers, and existing proxy authentication; cover raw before/after/index content, normalization, deadlines, and redacted refusal paths.

The ClawSweeper limitation on Crabbox's UUID inspection repair exposed the missing dependency: openclaw/crabbox#1590 (comment) . No Crabbox implementation changes are included.
Retire generated diagnostic copies before admission, persist retained prompts only after successful scanning with owner-only access, and remove unused copies. Preserve original inputs and explicit render exports. Complete isolated scanner fixtures for fake-model tests and extend hosted proof to diagnostic privacy.
@clawsweeper

clawsweeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 29, 2026 04:33
@steipete
steipete requested a review from a team as a code owner August 29, 2026 04:33
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P1 Urgent regression or broken agent/channel workflow affecting real users now. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 29, 2026
@clawsweeper

clawsweeper Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 2:15 AM ET / 06:15 UTC.

ClawSweeper review

What this changes

The PR installs a checksum-pinned TruffleHog scanner on hosted review workers and refuses native review, repair review, or cache reuse until prompts and complete source inputs pass scanning.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this PR open for normal maintainer merge review. The prior local-upgrade concern is now explicitly resolved by the author’s stated fail-closed contract, and the pinned branch adds the intended host-owned scan boundary with current-head hosted proof.

Priority: P1
Reviewed head: efd611760cf18ec855f8717873b0184be6a6b55c

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Current-head hosted runtime evidence, focused regression coverage, and a checksum-pinned host boundary support a strong merge-ready patch assessment.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The changed production owners are the shared hosted setup action and native runner; supplied current-head GitHub-hosted evidence exercises missing, failing, finding, and unexpected-output scanner refusals before provider start, then an actual clean Codex structured run with a dynamic fixture marker. The proof does not claim universal provider-egress or every repair/cache state.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The changed production owners are the shared hosted setup action and native runner; supplied current-head GitHub-hosted evidence exercises missing, failing, finding, and unexpected-output scanner refusals before provider start, then an actual clean Codex structured run with a dynamic fixture marker. The proof does not claim universal provider-egress or every repair/cache state.
Evidence reviewed 6 items Host-owned admission implementation: The new scanner stages the prompt, schema, raw diff, and complete before/after blobs; unavailable scanners, findings, source drift, and incomplete content raise a nonretryable refusal.
Model invocation is gated: The native runner removes stale outputs, scans inputs before writing the diagnostic prompt or starting either Codex or OpenClaw, and preserves the remaining review deadline.
Hosted supply-chain boundary: The shared installer downloads only TruffleHog 3.97.1, verifies its SHA-256 before extraction, runs a benign scan, and adds only the private tool directory to the job PATH.
Findings None None.
Security None None.

How this fits together

ClawSweeper turns GitHub item context and a checked-out change into a native structured review, then may reuse or publish that result. This PR adds a host-controlled admission scan before the reviewer can inspect the checkout or return a cached decision.

flowchart LR
  A[GitHub review request] --> B[Prompt and pinned source snapshot]
  B --> C[Host-owned TruffleHog scan]
  C -->|clean| D[Native read-only reviewer]
  C -->|refused| E[Nonretryable review refusal]
  D --> F[Structured review decision]
  F --> G[Cache and published report]
Loading

Before merge

  • Resolve merge risk (P1) - Existing local native-review workflows now fail closed until operators install a trusted TruffleHog executable; the hosted bootstrap itself supports Linux amd64 only.
  • Complete next step (P2) - No concrete contributor-facing repair is outstanding; retain this PR for normal maintainer merge review.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Scope 50 files, +3,045/-642 lines The change crosses hosted setup, review and repair runtime boundaries, terminal cleanup, documentation, and regression tests.
Production versus tests production/provisioning +952/-133; tests/proof +2,021/-509 The substantial runtime boundary is paired with more test and proof support than production growth.

Merge-risk options

Maintainer options:

  1. Accept the documented scanner prerequisite (recommended)
    Merge with the intentional fail-closed local upgrade requirement and direct existing operators to install a trusted TruffleHog binary.
  2. Broaden hosted bootstrap support first
    Add and prove another pinned platform installer only if maintainers require hosted native reviews on platforms beyond Linux amd64.

Technical review

Best possible solution:

Retain the single host-owned reviewer and fail-closed scan boundary, with the documented local scanner prerequisite as the supported upgrade path.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is a PR with current-head hosted runtime proof rather than an issue reporting a current-main failure.

Is this the best way to solve the issue?

Yes: scanner installation outside the checkout plus input scanning before the existing native reviewer preserves a single review authority and the intended fail-closed boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against b1d6b8513271.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed production owners are the shared hosted setup action and native runner; supplied current-head GitHub-hosted evidence exercises missing, failing, finding, and unexpected-output scanner refusals before provider start, then an actual clean Codex structured run with a dynamic fixture marker. The proof does not claim universal provider-egress or every repair/cache state.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The changed production owners are the shared hosted setup action and native runner; supplied current-head GitHub-hosted evidence exercises missing, failing, finding, and unexpected-output scanner refusals before provider start, then an actual clean Codex structured run with a dynamic fixture marker. The proof does not claim universal provider-egress or every repair/cache state.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P1: Hosted review availability and the local native-review upgrade path affect active review workflows.
  • merge-risk: 🚨 compatibility: The deliberate no-unscanned-review policy introduces a scanner prerequisite for existing local native-review users.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The changed production owners are the shared hosted setup action and native runner; supplied current-head GitHub-hosted evidence exercises missing, failing, finding, and unexpected-output scanner refusals before provider start, then an actual clean Codex structured run with a dynamic fixture marker. The proof does not claim universal provider-egress or every repair/cache state.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed production owners are the shared hosted setup action and native runner; supplied current-head GitHub-hosted evidence exercises missing, failing, finding, and unexpected-output scanner refusals before provider start, then an actual clean Codex structured run with a dynamic fixture marker. The proof does not claim universal provider-egress or every repair/cache state.

Evidence

What I checked:

  • Host-owned admission implementation: The new scanner stages the prompt, schema, raw diff, and complete before/after blobs; unavailable scanners, findings, source drift, and incomplete content raise a nonretryable refusal. (src/agent-input-scan.ts:98, efd611760cf1)
  • Model invocation is gated: The native runner removes stale outputs, scans inputs before writing the diagnostic prompt or starting either Codex or OpenClaw, and preserves the remaining review deadline. (src/agent-runner.ts:41, efd611760cf1)
  • Hosted supply-chain boundary: The shared installer downloads only TruffleHog 3.97.1, verifies its SHA-256 before extraction, runs a benign scan, and adds only the private tool directory to the job PATH. (.github/actions/setup-review-tools/install.sh:23, efd611760cf1)
  • Regression coverage: Focused tests cover secrets in deletions, multiline and display-truncated files, dirty snapshots, staged-only content, scanner failures, source drift, CRLF normalization, unsafe paths, gitlinks, and LFS pointers. (test/agent-input-scan.test.ts:62, efd611760cf1)
  • Current-head real behavior proof: The supplied PR-body evidence identifies the exact head and a GitHub-hosted Ubuntu run that exercised scanner refusal without provider starts, then a clean native structured review with the fixture UUID; it also supplies current-head terminal cleanup output. (scripts/hosted-review-scan-smoke.mjs:1, efd611760cf1)
  • Feature-history routing: History identifies Peter Steinberger as the recurring owner of the review-runner and live-proof area, with Jesse Merhi contributing the hosted sandbox and checkout-inspection foundations. (src/agent-runner.ts:41, c8ef4d1ad99c)

Likely related people:

  • steipete: Peter Steinberger authored the scanner-admission commits and several prior merged review-runner and terminal-proof changes. (role: introduced behavior and recurring area contributor; confidence: high; commits: c8ef4d1ad99c, 4811fe981247, e4eff74201f5; files: src/agent-input-scan.ts, src/agent-runner.ts, src/live-proof/drivers.ts)
  • Jesse Merhi: History credits Jesse Merhi with the hosted Linux sandbox and checkout-access verification work that the new admission path builds upon. (role: recent adjacent contributor; confidence: medium; commits: 746cb858bf00, ad5cf512a448; files: .github/actions/setup-codex/action.yml, src/agent-runner.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-08-29T04:37:52.802Z sha 243c9cd :: found issues before merge. :: [P1] Preserve an upgrade path for local native reviews
  • reviewed 2026-08-29T05:09:21.414Z sha 5981245 :: found issues before merge. :: [P1] Preserve a local native-review upgrade path
  • reviewed 2026-08-29T05:36:53.136Z sha d2d62d8 :: found issues before merge. :: [P1] Preserve a local native-review upgrade path
  • reviewed 2026-08-29T05:54:28.630Z sha efd6117 :: needs real behavior proof before merge. :: [P1] Preserve a local native-review upgrade path

@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: sufficient Contributor real behavior proof is sufficient. labels Aug 29, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 29, 2026
@steipete

steipete commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Maintainer review complete for efd611760cf18ec855f8717873b0184be6a6b55c. The fresh ClawSweeper review applies to the current head/body, reports no actionable findings, and marks proof sufficient (5/6).

I select the documented prerequisite option: local native reviews require trusted TruffleHog immediately, just like hosted reviews. The one-time installation requirement and support impact are accepted; there is no unscanned compatibility path. Hosted bootstrap remains Linux amd64, the existing worker platform. No additional platform installer or permission expansion is required for this repair.

Exact-head evidence is green: full dispatch CI and native scan proof, PR CI, and hermetic automerge container flow. The full suite recorded 4,021 passes, eight skips and zero failures; the separate focused coverage gate passed 12 tests. Windows, sparse repair builds, and CodeQL passed. The inspected native proof artifact records zero provider starts/retained prompts on refusal, one actual clean native review with its dynamic marker, and a 0600 admitted prompt diagnostic.

Local validation included these commands (Node 24.20.0 for terminal cases):

pnpm run build:node
node --test test/live-proof.test.ts
node --test --test-name-pattern='terminal proof cleanup survives target-triggered pane wrapper death' test/live-proof-review-environment.test.ts
pnpm run check:docs
git diff --check

All 147 compiled terminal-owner tests passed. Real macOS and current-head Ubuntu scenarios verify the changed terminal lifecycle; scanner regressions, source-blind refusal/privacy checks, and an actual local native review cover the admission boundary. Fresh Codex autoreview covered uncommitted changes and the complete committed branch with TruffleHog and reviewer isolation intact; no P0 findings remained.

Limits remain explicit: this scans the initial explicit payload/schema and complete introduced content, not every later tool result or all repository history. Early loaded-Mac full/source-loader runs and an extra instrumented cleanup-deadline refusal are not counted as passing; a host/lifecycle-timing follow-up remains. CI fixture omissions, independent tmux exit/drain ordering, dead-pane EOF, and numeric/named signal recognition were repaired rather than bypassed.

Net scope is +819 production/provisioning lines (+812 for the previously absent admission capability, +7 for the bounded terminal correction), +1,512 test/proof lines and +72 documentation lines. One native review authority is retained; no permissions, advisory workflow, release, or Crabbox UUID/default-key/prepared-lease implementation was changed.

Merged-main verification

Merged as e1eefe217304f0f510acb3890db1155cef61682e on August 29, 2026. A fresh main verification run completed successfully, including the full check, Windows launcher, and actual hosted native review. The earlier push run was superseded by this same-ref run under the existing CI concurrency policy; no gate was disabled.

I downloaded and inspected the merged-main proof artifact. It identifies the merge SHA, Ubuntu image 20260823.283.1, TruffleHog 3.97.1, and Codex 0.146.0; it again records zero provider starts and zero prompt artifacts on refusal, one successful real clean review with a new fixture-specific marker, and diagnostic mode 0600. This verifies the canonical bootstrap and scan boundary from merged main, not only the pre-merge branch.

@steipete
steipete merged commit e1eefe2 into main Aug 29, 2026
32 checks passed
@steipete
steipete deleted the fix/hosted-review-secret-scan branch August 29, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P1 Urgent regression or broken agent/channel workflow affecting real users now. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant