Repository navigation
fix(review): prove hosted tool round in canary - #1419
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
9a14d07 to
cc9eff6
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 4, 2026, 6:59 AM ET / 10:59 UTC. ClawSweeper reviewWhat this changesThe PR strengthens the dispatch-only hosted review canary to prove that the production review path reads a synthetic committed diff, uses the result in a structured decision, and uploads only scrubbed boolean/count evidence. Merge readiness✅ Ready for maintainer review Keep this current, draft member-authored PR open. The introduced canary uses the production review runner, validates its ordered tool trace and schema output, and has supplied successful hosted-run evidence; no actionable defect was found in the patch. Priority: P3 Review scores
Verification
How this fits togetherThe hosted review canary is a manually dispatched CI check that runs ClawSweeper’s production review path against a synthetic Git repository. It turns the private runner trace into a small public-safe artifact that tells maintainers whether the hosted review transport completed its intended tool-to-decision flow. flowchart LR
A[Synthetic committed diff] --> B[Hosted CI canary]
B --> C[Production review runner]
C --> D[Read-only diff command]
D --> E[Structured review decision]
E --> F[Private trace checks]
F --> G[Scrubbed proof artifact]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep the narrowly scoped production-path canary and its privacy-safe primitive artifact, with the focused trace tests guarding its one-command contract. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR strengthens internal hosted validation rather than reporting a user-facing failure. Its stated production-path scenario is directly evidenced by the supplied successful hosted run. Is this the best way to solve the issue? Yes. Reusing the production review runner with a committed synthetic diff is the narrowest way to prove the missing tool-to-decision behavior without expanding into external review, publication, or queue coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 70a0a787eaf8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
What Problem This Solves
Resolves a gap where the hosted review canary could pass without proving that the production review path completed a genuine tool round and consumed its result before returning a schema-valid decision.
Why This Change Was Made
The canary now runs the production
runCodexForTestpath against a synthetic two-commit repository, requires one exact read-only diff command, validates the raw decision against the checked-in schema, and verifies the JSONL event order throughturn.completed. Raw prompts, commands, output, transcripts, fixture values, and runtime identities remain ephemeral.This does not change provider selection, authentication routing, queues, publication, or workflow configuration. The repository remains in
proxymode.User Impact
Maintainers get a stronger dispatch-only signal that hosted Codex review can perform a real second model round after a tool result. The uploaded proof remains restricted to booleans and integer counts.
OpenClaw Bay Impact
OpenClaw Bay is unaffected. This changes only a dispatch-only CI canary and its private proof parser; no observer, status, queue, lifecycle, or dashboard contract changes.
Documentation Impact
Updated the active hosted-canary descriptions in
README.mdanddocs/private-inference.mdto state the production review path, privacy boundary, and explicit non-coverage. No changelog entry: this is operational validation infrastructure, not a released user-facing behavior change.Evidence
cc9eff63ce1345f5a848a7c97d6d992ea1fd7c4c70a0a787eaf8fa3424d88a7a07302fd4a7e0d783Hosted native review scan smoke: successWindows Codex launcher: successnode --test test/hosted-review-canary-proof.test.ts(8 passed)node_modules/.bin/tsc -p tsconfig.json --noEmitoxlintandoxfmt --checknode scripts/check-docs.mjs;git diff --checkThe operational-script delta is +233 net production lines; tests add +297 net lines and docs add +10 net lines. The production growth implements the new owner boundary: exact JSONL tool-attempt/order validation, checked-in schema validation, failure-diagnostic withholding, unchanged-checkout proof, and primitive-only artifact enforcement.
Real Behavior Proof
Claim: The hosted
proxyroute exercises the production review runner, performs exactly one successful fixture diff command, consumes that command output in a valid final decision, reachesturn.completed, and leaves the checkout unchanged without publishing private content.Exercised surface: GitHub-hosted Ubuntu 24.04; repository
proxyauth mode; pinned Codex CLI0.151.0; productionrunCodexForTest; checked-in ClawSweeper decision schema.Scenario: The canary creates a synthetic repository with base and head commits. A random marker exists only in the committed diff. The model must run the exact bounded
git diff --no-ext-diff --unified=0 <base> <head> -- review-fixture.jscommand, then include the observed marker in its structured final review.Command and environment: Workflow dispatch
ci.ymlat exact headcc9eff63ce1345f5a848a7c97d6d992ea1fd7c4c, inputcodex_auth_mode=configured, with repository variableCLAWSWEEPER_CODEX_AUTH_MODE=proxy.Observable result: The hosted job succeeded. The artifact records two production Codex launches, one tool attempt, one completed fixture command, one final review after the command, one terminal turn, a schema-valid decision, and an unchanged checkout.
Artifact or trace: The run uploads
hosted-review-scan-proof. Its exact key/type/value allowlist was checked locally; every value is a boolean or integer. Private Codex JSONL, command text, output, prompt, transcript, fixture marker, and runtime/model identity are not uploaded.Limits: This is one synthetic committed-diff scenario. The artifact explicitly reports
externalRepositoryCovered=false,reviewPublicationCovered=false, andqueueLifecycleCovered=false. It does not attest external repository review, GitHub mutation/publication, queue behavior, or universal provider egress.