Repository navigation
refactor: consolidate scanner evidence checks and judge input handling - #184
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: needs maintainer review before merge. What this changesThis PR consolidates scanner evidence validation, prompt assembly, Decisions input trimming, and test fixture helpers. Example: A standalone partial SkillSpector report contains components: [].
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: it removes meaningful duplication, preserves the reviewed contracts, and has no actionable code findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherScanner reports enter the Go runner as raw JSON, pass evidence checks, and feed judge prompts; the Python Decisions judge bounds its assembled input before submission. flowchart LR
A[Scanner reports] --> B[Runner evidence validation]
B --> C[Raw run artifacts]
B --> D[Judge prompt assembly]
D --> E[Decisions evidence trimming]
E --> F[External judge]
Technical reviewBest possible solution: Retain the consolidation and resolve attribution of the production-contract check before landing. Do we have a high-confidence way to reproduce the issue? No bug reproduction is claimed; review compared introduced hunks with their original implementations without running target code. Is this the best way to solve the issue? The shared helpers stay within existing owners and remove duplication without adding configuration, changing fallback order, or weakening validation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3ae7dde30ffc. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 20, 2026, 4:44 AM ET / 09:44 UTC. |
…/reviewed-function-duplicates * commit '3ae7dde30ffcd355b85f4f1f5f1eb2b275fd502c': ci: limit macOS packaging checks to Darwin binaries (#173) test(cli): drain both output streams during CLI tests (#167) fix(ci): share the JSON file writer with submission scoring (#186) test(runner): synchronize cancellation with scanner progress (#179) refactor(runner): share Cisco and AIG report file handling (#183) test(runner): share stdout scanner contract cases (#178) refactor(runner): build SkillSpector evidence results once (#172) refactor(profiles): share YAML field definitions for scanners and mounts (#171) ci: skip the Go cache when submissions are unchanged (#175) ci: reuse each submission score for its summary (#174) refactor(profiles): resolve scanner and judge options in one place (#168) refactor(runner): remove unused benchmark and workspace entry points (#166) refactor(leaderboard): reuse the Space scoring and JSONL helpers (#163) build(deps): update golang.org/x/text to v0.44.0 (#162) refactor(runner): share JSON output handling across four scanners (#164) refactor(cli): keep benchmark execution in its subcommand (#161) refactor(benchmark): remove the retired README metrics writer (#160)
Summary
Maintaining the evidence passed from a scan to a judge required updating duplicate report checks, prompt builders, and trimming routines. This refactor gives each operation one implementation inside its current package or runtime and reuses the same fixture writers in the scanner tests.
Scope and trust impact
Verification
go test -count=1 ./...andgo vet ./...passed.go run ./cmd/clawscan --helppassed.python3 -m unittest discover -s docker/clawscan-runtime/tests -p test_decisions_judge.py -qpassed all 24 tests.