Repository navigation
chore(skills): sync autoreview to TruffleHog-based canonical - #130122
Conversation
The mirrored autoreview script was frozen at agent-skills 7ae9260, before the heuristic secret scanner was replaced by TruffleHog pack scanning (agent-skills #145 and follow-ups through ca100e6). The old heuristics refused any branch diff deleting a Swift file with benign status-string cases like `case "ok-empty", "ok-token":` near value returns (reproduced with apps/macos/Sources/OpenClaw/MenuContentView.swift): the "ok-token" key shape stayed risky even after value redaction, so the deletion could never be redacted and the whole review was refused. Sync the complete skill directory from canonical agent-skills main (0f71fd2), which replaces the heuristics with a fail-closed TruffleHog scan and adds a regression fixture for this exact pattern. Every replaced mirror file was byte-identical to upstream 7ae9260, so no repo-local variants existed. Verified in place: the deletion bundle passes validate_review_patch byte-identical and a live TruffleHog pack scan.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 26, 2026, 9:11 AM ET / 13:11 UTC. ClawSweeper reviewWhat this changesThis sync replaces the mirrored autoreview skill with its TruffleHog-based canonical version and adds Amp and Kimi review-engine support. Merge readiness⛔ Blocked by patch quality or review findings - 8 items remain Keep open: the new Kimi engine places the complete review pack in process arguments, exposing reviewed source and datasets to local process inspection before Kimi runs. Priority: P1 Review scores
Verification
How this fits togetherAutoreview turns a repository diff and optional evidence files into a review pack, scans it for credentials, then sends it to an isolated model CLI. Its result is structured findings used by developers and automation. flowchart LR
A[Repository diff and evidence] --> B[Review pack]
B --> C[TruffleHog scan]
C -->|clean| D[Selected review engine]
C -->|finding or error| E[Refuse review]
D --> F[Structured findings]
Decision needed
Why: The correct remedy changes the supported Kimi integration boundary and must be made upstream before downstream synchronization. Before merge
Findings
Agent review detailsSecurityNeeds attention: The Kimi adapter introduces a concrete local review-pack disclosure boundary. PR surfaceDocs -113, Other -8968. Total -9081 across 7 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Repair the canonical agent-skills Kimi adapter to use a private file or stdin prompt transport, or omit Kimi until that interface exists, then re-sync the complete canonical directory and validate the Codex isolation contract from source. Do we have a high-confidence way to reproduce the issue? No: the reported Swift false-positive path was not executed here because TruffleHog is unavailable, although the Kimi command-line exposure is directly established from source. Is this the best way to solve the issue? No: the canonical sync should not expose review packs through Kimi argv; use a private input channel upstream or defer that engine. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 776986f942dc. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Addressing the ClawSweeper review ( Kimi review pack in argv (P1 + security concern + merge risk) — skip stated, follow-up filed. The recommended remedy ("use a Kimi-supported private stdin or file input path") does not exist in the Kimi CLI contract: installed Kimi Code CLI 0.31.1 Sibling Codex source proof (P1) — resolved. Inspected current Maintainer decision on the Kimi boundary (P2). Decision: keep Kimi with the documented argv transport, tracked by openclaw/agent-skills#193; the canonical integration boundary changes upstream when the CLI provides a private input, then re-syncs here. Live scanner evidence. TruffleHog is installed on the verifying host ( |
|
Merged via squash.
|
…w#130122) The mirrored autoreview script was frozen at agent-skills 7ae9260, before the heuristic secret scanner was replaced by TruffleHog pack scanning (agent-skills openclaw#145 and follow-ups through ca100e6). The old heuristics refused any branch diff deleting a Swift file with benign status-string cases like `case "ok-empty", "ok-token":` near value returns (reproduced with apps/macos/Sources/OpenClaw/MenuContentView.swift): the "ok-token" key shape stayed risky even after value redaction, so the deletion could never be redacted and the whole review was refused. Sync the complete skill directory from canonical agent-skills main (0f71fd2), which replaces the heuristics with a fail-closed TruffleHog scan and adds a regression fixture for this exact pattern. Every replaced mirror file was byte-identical to upstream 7ae9260, so no repo-local variants existed. Verified in place: the deletion bundle passes validate_review_patch byte-identical and a live TruffleHog pack scan.
What Problem This Solves
The mirrored autoreview skill (
.agents/skills/autoreview/) was frozen at agent-skills7ae9260, the last pre-TruffleHog version of the script. Its heuristic secret scanner refused any branch diff that deletes a Swift file containing benign status-string cases likecase "ok-empty", "ok-token":near value returns — reproduced withapps/macos/Sources/OpenClaw/MenuContentView.swift:467:secret_text_riskflags the"ok-token"key shape, and the deletion-only redaction pass can never clear it (the post-redaction risk re-check fires even after value redaction), sorefuse_secret_like_review_patchkills the whole review. Any autoreview bundle containing that deletion is unreviewable.Why This Change Was Made
Canonical
openclaw/agent-skillsalready replaced the entire heuristic layer with fail-closed TruffleHog pack scanning (agent-skills #145 throughca100e6), which fixes this false-positive class. Per the skill's own sync policy (validate in canonical first, then sync the complete directory), this syncs.agents/skills/autoreview/to current canonical main plus the new regression fixture landing upstream as openclaw/agent-skills#192.Every replaced mirror file was byte-identical to upstream
7ae9260(verified withgit log --find-objectper file), so no repo-local variants existed or were lost.User Impact
Maintainers/agents running
$autoreviewfrom this repo can again review branches that delete Swift files with status-string switch cases; previously the review refused the entire bundle. Note the synced script hard-requires atrufflehogbinary and refuses to send the review pack without it (fail closed, as designed upstream).Evidence
MenuContentView.swift→refusing to include a known secret-like value in branch diff.validate_review_patchbyte-identical and a live TruffleHog scan accepts it; both new regression tests pass (python3 skills/autoreview/tests/test_autoreview_hardening.py -k swift_status→ 2 OK, including the live-scanner test).