Repository navigation
feat(skills): add prove and jstack-setup with install-time rig rendering - #17
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: af851b9d03
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| KEY_VALUE = re.compile( | ||
| r"(?i)\b(password|passwd|secret|token|api[_-]?key|authorization)\b(\s*[:=]\s*)([^\s\"',;&]+)" | ||
| ) |
There was a problem hiding this comment.
Redact quoted secret fields before saving command output
When a command emits JSON such as {"password": "hunter2", "token": "opaque-value"}, this pattern leaves both secrets unchanged: it permits neither the closing quote after the key nor the opening quote before the value. cmd_run then writes that output into the evidence log, and embedded JSON in argv is also retained in pack.json. Since these packets are intended as shareable evidence, ordinary JSON responses can leak credentials despite the promised redaction. Handle quoted keys and values and add regression coverage for JSON output.
Useful? React with 👍 / 👎.
| for block in data.get("blocks", []): | ||
| if block.get("surface") in proven_surfaces: | ||
| continue |
There was a problem hiding this comment.
Keep later gate blockers active despite earlier artifacts
If a packet already contains a valid web artifact and a subsequent action records block --surface web --class access-denied, verification skips the blocker solely because that surface has an artifact. I reproduced this sequence: verify exits 0 and omits the access denial entirely. An earlier screenshot does not resolve a later denial, CAPTCHA, or approval gate, so this can incorrectly approve a packet that explicitly requires stopping and asking the user. Require explicit resolution or at least qualifying evidence recorded after the blocker rather than treating any same-surface artifact as resolution.
Useful? React with 👍 / 👎.
| """Opt-in post-merge and post-checkout hooks that run --reconcile. Never replaces a hook it did not write.""" | ||
| rc = 0 | ||
| folder.mkdir(parents=True, exist_ok=True) | ||
| script = f"#!/bin/sh\n{HOOK_MARK}\npython3 {shlex.quote(str(REPO / 'scripts' / 'install.py'))} --reconcile >/dev/null 2>&1 || true\n" |
There was a problem hiding this comment.
Preserve custom rig options in the reconciliation hooks
When installation uses --rig with a non-default path together with --install-hook, the generated hook forgets that path and reconciles using only the default configuration. With no default rig present, running the hook replaces the rendered installation with the stock skill, silently removing the configured tools and fallback. I reproduced this with a custom rig: the initial skill contains its tool, but executing post-merge switches the link back to skills/prove. Persist the relevant installation options and pass them to the hook's reconciliation command.
Useful? React with 👍 / 👎.
1a34f2d to
b9ce223
Compare
b9ce223 to
cd5c310
Compare
Summary
Adds the
proveevidence skill and thejstack-setupskill, and lets the installer render a names-only local rig into skills that have a rig slot, so the public repo stays stock. Closes #15.Evidence
validate_skills.pysaid "17 skills valid". The installer only linked or copied stock folders. Arig.jsonorprofile.tomlwas not blocked by the privacy scanner.After:
CLI smoke in a scratch folder:
jstack-rig.py writemade a 0600 file andcheckexited 0.proof-pack.pyraninit,run,attachandverifyto "verified" at L3. A different--headmadeverifyexit 1 withstale stepandstale artifact. An unredactedauthattach on a public repo exited 3. Ablockwith no lanes tried exited 4.verify --markdownprinted the PR evidence table.New tests in
tests/test_prove_and_rig.pycover stale heads, hash and empty-file rejection, the redaction gate, lane exhaustion, gate classes, secret rejection, 0600 mode, slot rendering, the 1,024 B overlay cap, drift and--reconcile, hooks that never clobber, stock installs with no rig, and the privacy rule forrig.jsonandprofile.tomlversus example names. Fixtures build secrets and private-looking strings at run time.Out of the listed file scope:
tests/test_install.pyandtests/test_validate_skills.pychanged their skill count from 17 to 19. No manifest version bump.Merge Danger
Door: Two-way. Revert the commit. The installer writes only under the user's skills folders and the render folder, and
--uninstallremoves only entries jstack owns.Blast Radius: Installer
install.pychanged for every install. With no rig file the stock path runs unchanged, and an invalid rig stops the run before any write. Wave 2 skills are untouched.Review ledger
Reviewed with sol-loop: 2 rounds with Gemini 4 Neon on high. Sol verdict: approved at cd5c310.
Created with Claude Sonnet 5.5 in Claude Code.