Skip to content

fix: render the challenged file in judge receipt examples - #71

Merged
Patrick-Erichsen merged 1 commit into
mainfrom
fix-judge-required-file-example
Oct 21, 2026
Merged

Patrick-Erichsen merged 1 commit into
mainfrom
fix-judge-required-file-example

Conversation

@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator

Summary

Package judges can correctly read the inspection challenge and hash package.json, then report artifact/* or artifact/ package.json and fail the required-file check. Render the receipt example from the actual challenged file and ask for literal, separate paths.

- "files_inspected": ["artifact/SKILL.md"]
+ "files_inspected": [<JSON-encoded required_file for this artifact>]

Scope

  • CLI behavior
  • Judge/profile/benchmark behavior

Security / Trust Impact

  • Security/trust impact explained

Challenge, SHA-256, and exact required-file validation are unchanged. The prompt supplies only the path; the judge must still read the random challenge and hash the real file. No scanner, sandbox, or publication check is bypassed.

Verification

  • go test -count=1 ./...
  • go vet ./...
  • go run ./cmd/clawscan --help
  • Focused CLI/report tests and live judge-only proof
  • Docs site proof: N/A

Before: the CLI test's package case failed because its receipt example named SKILL.md. On the exact affected archives, Codex 0.160.0 returned artifact/* for consumer-product-recall-coordinator and artifact/ package.json for learning-program-manager; both receipts failed despite correct manifest hashes.

After: the package and skill examples pass. Both identical archives returned the exact artifact/package.json path and completed under unchanged validation. Regression cases still reject both malformed paths and a wrong hash. The live proof used scanner fixtures to isolate the judge, so it is not publication approval or a reliability benchmark.

Independent Sol/high/Standard review through P3: scoped-clean.

Notes

The optional manual verify-clawhub-prompt audit compares static ClawHub and ClawScan sources; this per-artifact prompt update needs coordination when refreshing that audit. Neither repository's CI nor the worker installation runs it. No deployed ClawHub pin is changed here.

Merge Danger

Door: two-way

Blast Radius: judge

Changes the built-in ClawHub judge's example and path instructions; output schema and receipt enforcement remain intact.

@Patrick-Erichsen
Patrick-Erichsen requested a review from a team as a code owner October 21, 2026 00:34
@clawsweeper

clawsweeper Bot commented Oct 21, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

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

@Patrick-Erichsen
Patrick-Erichsen merged commit 00c6605 into main Oct 21, 2026
8 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the fix-judge-required-file-example branch October 21, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant