Skip to content

feat(skills): add prove and jstack-setup with install-time rig rendering - #17

Merged
justcarlson merged 1 commit into
mainfrom
feat/wave1-prove-and-setup
Nov 28, 2026
Merged

justcarlson merged 1 commit into
mainfrom
feat/wave1-prove-and-setup

Conversation

@justcarlson

@justcarlson justcarlson commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds the prove evidence skill and the jstack-setup skill, 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.

skills/
├── prove/
│   ├── SKILL.md              # L0-L4 ladder, gate, refusal fallback, rig slot
│   ├── references/surfaces.md
│   └── scripts/proof-pack.py # init, run, attach, block, verify, --markdown
└── jstack-setup/
    ├── SKILL.md
    └── scripts/jstack-rig.py # discover, write, check

rig.example.json              # placeholder shape, schema jstack.rig/1

~/.config/jstack/rig.json (0600, never committed)
  └─ install.py renders slot ─> ~/.local/share/jstack/rendered/skills/prove/
       └─ client skills dir symlinks (or copies) the rendered folder

Evidence

  • Before: validate_skills.py said "17 skills valid". The installer only linked or copied stock folders. A rig.json or profile.toml was not blocked by the privacy scanner.
    After:
$ python3 scripts/validate_skills.py
ok: 19 skills valid, version 0.2.1
$ python3 scripts/check_privacy.py --all
privacy: clean (tree + all history, without private pattern)
$ uv run --with pytest --with pyyaml pytest -q tests/
273 passed in 7.62s
$ ruff@0.17.3 check --isolated scripts tests skills/prove/scripts skills/jstack-setup/scripts
All checks passed!

CLI smoke in a scratch folder: jstack-rig.py write made a 0600 file and check exited 0. proof-pack.py ran init, run, attach and verify to "verified" at L3. A different --head made verify exit 1 with stale step and stale artifact. An unredacted auth attach on a public repo exited 3. A block with no lanes tried exited 4. verify --markdown printed the PR evidence table.

New tests in tests/test_prove_and_rig.py cover 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 for rig.json and profile.toml versus example names. Fixtures build secrets and private-looking strings at run time.

Out of the listed file scope: tests/test_install.py and tests/test_validate_skills.py changed 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 --uninstall removes only entries jstack owns.

Blast Radius: Installer

install.py changed 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

Id Reviewer Round Severity Decision Reason
S1 Gemini 4 Neon 1 should accepted
S2 Gemini 4 Neon 1 should accepted
S3 Gemini 4 Neon 1 should accepted
S4 Gemini 4 Neon 1 should accepted
S5 Gemini 4 Neon 1 nit accepted
S6 Gemini 4 Neon 1 nit accepted
S7 Gemini 4 Neon 1 nit accepted
S8 Gemini 4 Neon 1 nit accepted

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T04:19:35.812686Z af851b9 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +56 to +58
KEY_VALUE = re.compile(
r"(?i)\b(password|passwd|secret|token|api[_-]?key|authorization)\b(\s*[:=]\s*)([^\s\"',;&]+)"
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment on lines +461 to +463
for block in data.get("blocks", []):
if block.get("surface") in proven_surfaces:
continue

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment thread scripts/install.py Outdated
"""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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@justcarlson
justcarlson force-pushed the feat/wave1-prove-and-setup branch 3 times, most recently from 1a34f2d to b9ce223 Compare November 28, 2026 04:38
@justcarlson
justcarlson force-pushed the feat/wave1-prove-and-setup branch from b9ce223 to cd5c310 Compare November 28, 2026 04:40
@justcarlson
justcarlson merged commit bcefd34 into main Nov 28, 2026
5 of 6 checks passed
@justcarlson
justcarlson deleted the feat/wave1-prove-and-setup branch November 28, 2026 04:42
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.

feat: add prove and jstack-setup skills with install-time rig rendering

1 participant