From c4e0193bc739304c0378c10f4b44ff45a8e89483 Mon Sep 17 00:00:00 2001 From: Justin Carlson <40642470+justcarlson@users.noreply.github.com> Date: Fri, 27 Nov 2026 23:47:42 -0500 Subject: [PATCH 1/2] feat(skills): gate full-send, sol-loop, epic and council on proof packets, bump to 0.4.0 full-send and sol-loop leave the grandfathered size budget; epic ratchets down. full-send and epic now depend on prove. Patch 10 records the tstack divergence. Closes #16 Created with Claude Sonnet 5.5 in Claude Code. --- .claude-plugin/marketplace.json | 2 +- .claude-plugin/plugin.json | 2 +- .codex-plugin/plugin.json | 2 +- patches/10-proof-gate-and-fallback.patch | 294 +++++++++++++++++++++++ scripts/install.py | 3 +- size-budget.json | 8 +- skills/council/SKILL.md | 8 +- skills/epic/SKILL.md | 180 +++++++------- skills/full-send/SKILL.md | 60 ++--- skills/pr/SKILL.md | 2 + skills/sol-loop/SKILL.md | 103 ++++---- tests/test_install.py | 6 +- tests/test_prove_and_rig.py | 2 + tests/test_validate_skills.py | 6 +- 14 files changed, 477 insertions(+), 201 deletions(-) create mode 100644 patches/10-proof-gate-and-fallback.patch diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 79073ea..f311d8d 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -9,7 +9,7 @@ "name": "jstack", "source": "./", "description": "18 agent skills for shipping pull requests: patched t3dotgg/tstack core, the pr body standard, and companions.", - "version": "0.3.0", + "version": "0.4.0", "author": { "name": "justcarlson" }, diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 6ee170b..5dec4c5 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "jstack", "displayName": "jstack", - "version": "0.3.0", + "version": "0.4.0", "description": "18 agent skills for shipping pull requests: patched t3dotgg/tstack core, the pr body standard, and companions.", "author": { "name": "justcarlson" diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 61a40f5..432da6f 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "jstack", - "version": "0.3.0", + "version": "0.4.0", "description": "18 agent skills for shipping pull requests: patched t3dotgg/tstack core, the pr body standard, and companions.", "author": { "name": "justcarlson" diff --git a/patches/10-proof-gate-and-fallback.patch b/patches/10-proof-gate-and-fallback.patch new file mode 100644 index 0000000..323ae8c --- /dev/null +++ b/patches/10-proof-gate-and-fallback.patch @@ -0,0 +1,294 @@ +Gate full-send, sol-loop, and council on a verified proof packet and route +refused or punted proof steps through prove's fallback worker +(local jstack patch, applies on top of patches/01..09; no upstream PR). + +diff --git c/skills/council/SKILL.md w/skills/council/SKILL.md +index c366217..e771556 100644 +--- c/skills/council/SKILL.md ++++ w/skills/council/SKILL.md +@@ -26,7 +26,8 @@ report it instead of substituting. + + Give each delegate the user's request as given, including any lead the user + offers, and the context it needs: the diff or files, the intent, the scope, +-and check results. For review or feedback, keep their work read-only. Tell ++and check results. Include the `proof-pack.py` packet path and its artifacts ++when proof exists. For review or feedback, keep their work read-only. Tell + each delegate not to start subagents or delegates of its own. Collect their + responses and summarize the useful findings, disagreements, and recommended + next steps. +@@ -37,8 +38,9 @@ files while a delegate still reviews the same checkout. If the user's + instructions mark a delegate as non-blocking, do not wait for it; treat a + late result as feedback and do not record its score. + +-For a code review, ask each delegate for a score out of 10. +-Count each full review pass as one round. ++For a code review, ask each delegate for a score out of 10. Tell them to score ++at most 6/10, with an in-scope blocker, when testable behavior has no direct ++proof (missing, stale, or mocked). Count each full review pass as one round. + A fresh review after fixes starts a new round. Start each round with a new + delegate per member. In T3 Code that is a new `delegate_task`, and elsewhere + a new subagent. Brief the new delegate as in round 1, with the current diff. +diff --git c/skills/full-send/SKILL.md w/skills/full-send/SKILL.md +index 341d102..6fa07e4 100644 +--- c/skills/full-send/SKILL.md ++++ w/skills/full-send/SKILL.md +@@ -21,24 +21,16 @@ The user grants you permission to: + + ## Testing permission + +-A "full send" request is the permission. If a project file or other +-instruction says to ask before a test method, or to leave testing to the +-user, this request replaces that rule for this task. ++A "full send" request replaces any project or other rule that says to ask ++before a test method or leave testing to the user. That covers computer use, ++browser automation, simulators and devices, running the app or a dev server, ++screenshots, and visual checks. Use the method that gives direct proof. List it ++in the report. + +-That includes ask-first rules for computer use, browser automation, +-simulators and devices, running the app or a dev server, screenshots, and +-visual checks. Use the method that gives direct proof. List it in the +-report. +- +-Rules about how to test still apply. Follow rules that name the correct +-command, fixture, or check. This permission only removes the ask-first or +-leave-it-to-the-user step. If a preferred method cannot prove the change, +-use a gated method under this permission. +- +-It covers only the tests needed for this task. It does not add permission +-for the steps under "Asking the user", such as production changes or data +-deletion. It also does not bypass a harness or system approval prompt if +-one appears. ++Rules that name the correct command, fixture, or check still apply. If a ++preferred method cannot prove the change, use a gated one. This covers only the ++tests this task needs. It does not cover the steps under "Asking the user" or ++bypass a harness or system approval prompt. + + ## Steps + +@@ -46,7 +38,7 @@ one appears. + smallest change that works. Fix the case that happened, not every case + that could. If you are on the default branch, create a branch first. + 2. **Prove it.** Get proof for every change you made. See "Proof". +-3. **Get feedback.** Use the `sol-loop` skill to verify changes. ++3. **Get feedback.** Use the `sol-loop` skill, with the proof packet. + 4. **File the PR** with the `file-pr` skill. Rebase onto the latest default + branch first. Add one short line to the description that says how you proved + the change. +@@ -66,22 +58,22 @@ settle. + + ## Proof + +-Proof is evidence you observed yourself in this session: command output, a +-reproduction, a screenshot. Use the most direct proof the change allows: ++Proof is evidence you observed yourself in this session, gathered per ++[prove](../prove/SKILL.md): reproduce the failure and watch it pass, run the ++repo's CI checks, add a focused test if none covers it. For UI and runtime ++behavior, run the app and look: green mocked tests prove nothing. + +-- Reproduce the original failure, apply the fix, then watch the same +- reproduction pass. +-- Run the checks that the repo's CI runs (typecheck, lint, tests). +-- Add one focused test that fails without the fix, when the behavior has none +- and the repo has a test setup. +-- For UI and runtime behavior, run the app and look at the change. Green mocked +- tests do not prove that the user experience works. Attach screenshots to the +- PR when they help and you have a way to upload them. ++Record it in a `proof-pack.py` packet. `proof-pack.py verify` must exit 0 on the ++current head before `sol-loop` or `file-pr`. Put `verify --markdown` in the PR ++Evidence. + +-When you cannot find a way to prove a change, you do not have full confidence. +-Do not ask the user: try a more direct method (run it, reproduce it, add a +-test). If nothing proves it, leave that PR open and unmerged, say why in the +-report, and move on to the rest of the work. ++If a worker or tool punts or refuses a user-authorized test or proof step, do ++not leave it unproven and do not retry the same prompt. Hand it to `prove`'s ++configured fallback worker. An unapproved gate, a CAPTCHA, anti-bot or 2FA ++check, or an access or approval denial is not routed around: `prove` says how. ++ ++If nothing proves it, you lack full confidence. Do not ask the user: leave that ++PR open and unmerged, say why in the report, and move on. + + ## Merge gate + +diff --git c/skills/sol-loop/SKILL.md w/skills/sol-loop/SKILL.md +index 76240af..5cc4385 100644 +--- c/skills/sol-loop/SKILL.md ++++ w/skills/sol-loop/SKILL.md +@@ -5,28 +5,25 @@ description: Use when the user says "sol loop". + + # sol-loop + +-This is a workflow for making your code changes more correct before (or +-sometimes after) filing a pull request. tl;dr - use OpenAI's GPT Sol to review +-your code in a loop. +- +-Make the most minimal possible changes to appease the Sol reviewers. Be careful +-of scope creep and don't be scared to push back. ++Make code changes more correct before (or after) filing a PR: have OpenAI's GPT ++Sol review in a loop. Make the smallest changes that satisfy Sol. Resist scope ++creep and push back. + + ## Budget + +-- Default: 3 rounds total. Round 1 is full. Later rounds check only +- changed code and open findings. ++- Default: 3 rounds. Round 1 is full. Later rounds check only changed code and ++ open findings. + - Extend to 5 only for security, permissions, auth, data loss, or +- state/concurrency, while a blocker or should stays open with evidence. Or when ++ state/concurrency while a blocker or should stays open with evidence, or when + the user asks. + - A narrow confirm is not a round. Sol checks one diff: a fix it prescribed + that you applied as written, or evidence it asked for. At most one after +- each round. Send it like a next round, with only that diff or evidence. +- Anything but APPROVE from it is an open finding. +-- Stop early if a round returns only nits. Declined nits and comment, +- doc, or format-only fixes need no new round. ++ each round, sent like a next round with only that diff or evidence. Anything ++ but APPROVE from it is an open finding. ++- Stop early if a round returns only nits. Declined nits and comment, doc, or ++ format-only fixes need no new round. + - One reviewer only. Sol must not start subagents or reviewers. +-- Keep a ledger: id, severity, outcome, usage if returned. Never guess it. ++- Keep a ledger: id, severity, outcome, usage if returned. Never guess. + + ## 1. Scope + +@@ -37,48 +34,45 @@ Otherwise stop and ask. + Find the base after `git fetch origin`: + + - PR: `gh pr view --json baseRefName,headRefOid`. Check out the branch +- only if clean. Confirm `HEAD` is the PR head, or ahead only by this +- change. Base: `git merge-base HEAD origin/`. ++ only if clean. `HEAD` must be the PR head, or ahead only by this change. ++ Base: `git merge-base HEAD origin/`. + - Local: `git merge-base HEAD origin/`. No remote: a base + the user names, or `HEAD` for uncommitted changes only. + + The change is base to working tree in those paths, with untracked files. + Use one diff command all rounds. State intent and out-of-scope in 1-2 +-sentences. Run covering checks. Do not send code this change breaks. Note +-missing or pre-failing checks in the brief. ++sentences. Run covering checks; note missing or pre-failing ones in the brief. + + ## 2. Start Sol + + In T3, call `orchestrator_capabilities`. Pick the latest Sol unless the user +-named a version. Do not hardcode an ID. Record provider, model, and effort +-only if exposed. Use `delegate_task` every round (`role: "review"`, +-`mode: "async"`). Save `taskId`. New `clientRequestId` per round. +-`childThreadId` is storage, not the next target. Do not use +-`t3_thread_send`, `create_threads`, or `t3_thread_launch` for review. ++named a version. Never hardcode an ID. Record provider, model, and effort only ++if exposed. Use `delegate_task` every round (`role: "review"`, `mode: ++"async"`). Save `taskId`. New `clientRequestId` per round. `childThreadId` is ++storage, not the next target. Never use `t3_thread_send`, `create_threads`, or ++`t3_thread_launch` for review. + + If T3 tools are not listed, try one direct capability call. Outside T3, use +-a native Sol subagent and keep its ID. In Claude Code, use a custom subagent +-only if it is set up to run Sol. If no route runs Sol, report the blocker. Do +-not substitute a model. ++a native Sol subagent and keep its ID (in Claude Code, a custom subagent set ++up to run Sol). If no route runs Sol, report the blocker. Never substitute. + +-Do not edit scoped files while review runs. Wait for the notice. Do not +-poll or start a second reviewer. Timeout, error, no reply, or a reply +-without a `VERDICT:` line is not approval. On failure, cancel, verify stop, +-restart with the ledger. On a missing verdict, if Sol named a check it was +-waiting on and this round's narrow confirm is unused, run the check and +-send the result as that confirm. Otherwise start the next budgeted round or +-stop without approval. ++Do not edit scoped files while review runs. Wait for the notice; do not poll. ++Timeout, error, no reply, or no `VERDICT:` line is not approval. On failure, cancel, verify stop, restart with the ledger. On a missing verdict, if Sol named a check it awaited ++and this round's narrow confirm is unused, run it and send the result as that ++confirm. Otherwise start the next budgeted round or stop without approval. + + Round 1 brief (T3 children get no history): + + ``` + Review only. Do not edit, commit, push, comment on PRs, or start subagents. + Repo: Base: Scratch: Intent: Out of scope: Checks: ++Proof: + See: git diff [-- ]; git status --short (read untracked). + Read surrounding code. Find bugs, broken callers, mismatch with intent. + Skip style unless it hides a bug. Hold to the smallest change. Flag code, + tests, or guards the intent does not need. Other paths, rare cases, small + perf, extra compat: nits. ++Missing, stale, or mocked proof of testable runtime, UI, or ops behavior: blocker. + If you reproduce a finding, save a runnable script in Scratch (the only place you may write) and give its path. + blocker = intended case wrong. should = real bug callers will hit, in intent. nit = rest. + Reply: +@@ -88,40 +82,38 @@ S1 [blocker|should|nit] : . Fix: . Repro: `. If +-review grew the diff, cut first. Do not agree just to end the loop. ++Update the ledger. Re-run checks and `git diff --shortstat `. If review ++grew the diff, cut first. Never agree just to end the loop. + + ## 4. Next round + + Start one only if budget remains and a blocker or should is open, behavior code + changed, or approval does not cover the current behavior diff. Use a fresh + `delegate_task` in T3, or follow up the saved native ID. Send the round 1 brief, +-the ledger (`fixed:` / `disagree:` / `declined:` + evidence and repro paths), the same base +-diff, and the change since last round. Tell Sol: open ids and changed code only. +-Mark each old id `resolved` or `still open: `. ++the ledger (`fixed:` / `disagree:` / `declined:` + evidence and repro paths), ++the same base diff, and the change since last round. Sol checks open ids and ++changed code only, marking each old id `resolved` or `still open: `. + + ## 5. Stop and ship + + Agreed: APPROVE on the current behavior diff, no blocker or should open, + no concern of your own. Stuck: an item stays disputed after two replies, +-or budget ends. Show both sides in 2-3 lines each. The user decides. +-Budget end is not approval. ++or budget ends (not approval). Show both sides in 2-3 lines; the user decides. + + Diverging: a later round returns new findings of a class you already + fixed, usually because the code imitates another tool. Stop patching. + Offer the user a design that supports only what it matches exactly and +-refuses the rest. If taken, later briefs state it: a refusal is correct, +-only a wrong definitive result is a blocker. ++refuses the rest. If taken, later briefs say a refusal is correct and only a ++wrong definitive result is a blocker. + + Do not push during the loop. Push after agreement only if the user asked + to push, ship, or update the PR. If you push to a PR, add above the model +@@ -129,9 +121,10 @@ blurb: + + `Reviewed with sol-loop: rounds with . Sol verdict: approved at `. + +-`` is the pushed commit whose tree Sol approved. After `rounds` +-add `plus a narrow confirmation` (or `plus narrow confirmations`) when +-any ran, and `on ` only if verified. ++`` is the pushed commit Sol approved. After `rounds` add `plus a ++narrow confirmation` (or `plus narrow confirmations`) if any ran, and `on ++` only if verified. + +-Report: rounds and narrow confirms, model, what Sol changed, diff size before/after, fixed and +-declined findings with reasons, usage if exposed (else say not), pushed or not. ++Report: rounds and narrow confirms, model, what Sol changed, diff size ++before/after, fixed and declined findings with reasons, usage (or "not ++exposed"), pushed or not. diff --git a/scripts/install.py b/scripts/install.py index 5ebc0bd..b571a27 100755 --- a/scripts/install.py +++ b/scripts/install.py @@ -44,7 +44,7 @@ # Sibling skills each skill calls. Resolved transitively. DEPS: dict[str, tuple[str, ...]] = { - "full-send": ("sol-loop", "file-pr", "babysit-pr", "leaving-pr-comments", "pr"), + "full-send": ("sol-loop", "file-pr", "babysit-pr", "leaving-pr-comments", "pr", "prove"), "full-stop": ("full-send",), "file-pr": ("babysit-pr", "leaving-pr-comments"), "babysit-pr": ("leaving-pr-comments",), @@ -53,6 +53,7 @@ "bug": ("council", "leaving-pr-comments"), "epic": ( "full-send", + "prove", "council", "sol-loop", "file-pr", diff --git a/size-budget.json b/size-budget.json index 12b7635..bc8cb2e 100644 --- a/size-budget.json +++ b/size-budget.json @@ -6,17 +6,11 @@ }, "grandfathered": { "epic": { - "body_bytes": 8326 - }, - "full-send": { - "body_bytes": 6428 + "body_bytes": 8076 }, "omarchy-dev": { "description_bytes": 380, "body_bytes": 7929 - }, - "sol-loop": { - "body_bytes": 6346 } } } diff --git a/skills/council/SKILL.md b/skills/council/SKILL.md index c366217..e771556 100644 --- a/skills/council/SKILL.md +++ b/skills/council/SKILL.md @@ -26,7 +26,8 @@ report it instead of substituting. Give each delegate the user's request as given, including any lead the user offers, and the context it needs: the diff or files, the intent, the scope, -and check results. For review or feedback, keep their work read-only. Tell +and check results. Include the `proof-pack.py` packet path and its artifacts +when proof exists. For review or feedback, keep their work read-only. Tell each delegate not to start subagents or delegates of its own. Collect their responses and summarize the useful findings, disagreements, and recommended next steps. @@ -37,8 +38,9 @@ files while a delegate still reviews the same checkout. If the user's instructions mark a delegate as non-blocking, do not wait for it; treat a late result as feedback and do not record its score. -For a code review, ask each delegate for a score out of 10. -Count each full review pass as one round. +For a code review, ask each delegate for a score out of 10. Tell them to score +at most 6/10, with an in-scope blocker, when testable behavior has no direct +proof (missing, stale, or mocked). Count each full review pass as one round. A fresh review after fixes starts a new round. Start each round with a new delegate per member. In T3 Code that is a new `delegate_task`, and elsewhere a new subagent. Brief the new delegate as in round 1, with the current diff. diff --git a/skills/epic/SKILL.md b/skills/epic/SKILL.md index 35d1abd..898e0e3 100644 --- a/skills/epic/SKILL.md +++ b/skills/epic/SKILL.md @@ -6,15 +6,15 @@ description: Research, plan and ship ambitious multi-issue or multi-repo work en # Epic Take an ambitious idea from bold research to verified production rollout across -one or more repos, with one human review stop at the plan. +repos, with one human review stop at the plan. -`epic` composes existing skills (`council`, `sol-loop`, `full-send`, `file-pr`, -`pr`, `babysit-pr`, `t3-launch-worktrees`, and any plan-publishing skill). Use -the models your `AGENTS.md` or `CLAUDE.md` configures, with cross-family review -and multi-model `council` per `sol-loop` and `council`. +`epic` composes `council`, `sol-loop`, `full-send`, `prove`, `file-pr`, `pr`, +`babysit-pr`, `t3-launch-worktrees`, and any plan-publishing skill. Use the +models your `AGENTS.md` or `CLAUDE.md` configures, with cross-family review and +multi-model `council`. "The plan" is a reviewable artifact (Tailplan/taildoc, Postplan, Markdown, or a -gist) updated **in place** across revisions so the reader keeps one link. +gist) updated **in place** so the reader keeps one link. ## Entry points @@ -25,37 +25,32 @@ gist) updated **in place** across revisions so the reader keeps one link. `epic` thread): run Stages 3–6 autonomously to production and close with an updated plan. -Do not use `full send` as the epic trigger; `full-send` runs per deliverable -issue, while `ship epic` starts multi-issue orchestration. - ## Stage 1: Bold, multi-model discovery -Stay read-only. Understand the real system before proposing anything. +Stay read-only. Understand the real system first. 1. Audit live state first: code, upstream repos and releases, prior agent - threads, and telemetry or log history when relevant (e.g. `hindsight` or - `logs`). -2. Fan out read-only research or design delegates in parallel using configured + threads, and telemetry or log history when relevant (`hindsight`, `logs`). +2. Fan out read-only research or design delegates in parallel on configured models. Use `council` to compare major architectures. Tell each delegate to stay read-only and start no subagents. -3. Be bold: include high-leverage options beyond today's wiring alongside the - simplest maintainable design. Stress-test assumptions rather than agreeing. +3. Be bold: include high-leverage options beyond today's wiring next to the + simplest maintainable design. Stress-test assumptions. ## Stage 2: Decision-ready plan (stop here) -1. Publish the proposal as the plan artifact. Delegate rich layout refinement - to the configured design model when another model drives. Keep a concise top - verdict, charts or diagrams over dense tables, deep specs in collapsible - sections, and a 390 px mobile check. +1. Publish the proposal as the plan artifact. Delegate rich layout to the + configured design model when another model drives. Keep a concise top + verdict, diagrams over dense tables, deep specs collapsible, and a 390 px + mobile check. 2. Lead with the recommended design, core primitives, and an explicit **Skip / Not Now** list. -3. Keep architectural simplicity, zero-downtime cutover, and observability - (metadata-only unless asked) in scope by default; do not punt without a hard - blocker. -4. Ask only blocking architecture, cost, or account questions upfront, numbered - with recommended defaults so the user can reply `defaults` or override. -5. Update the **same plan link in place** across revisions until the user - replies `ship epic` (or an explicit go-ahead). +3. Keep simplicity, zero-downtime cutover, and observability (metadata-only + unless asked) in scope; do not punt without a hard blocker. +4. Ask only blocking architecture, cost, or account questions, numbered with + recommended defaults so the user can reply `defaults` or override. +5. Update the **same plan link** until the user replies `ship epic` or gives an + explicit go-ahead. ## Stage 3: Issue decomposition into waves @@ -63,93 +58,94 @@ Once confirmed: 1. File clear GitHub issues across every touched repo before editing code. 2. Group issues into **non-overlapping parallel waves** by repo and file scope. - Mark shared-file dependencies so dependent waves start only after their + Mark shared-file dependencies: dependent waves start only after their prerequisite merges and deploys cleanly to `main`. -3. Include every cross-repo touchpoint: telemetry or logging, upstream upgrade - compatibility, public mirror syncs, rollouts to each target host or - environment, and docs. +3. Include every cross-repo touchpoint: telemetry, upstream upgrade + compatibility, public mirror syncs, rollouts to each host, and docs. ## Stage 4: Orchestrate isolated `tstack` worktrees -1. The parent thread acts as **pure orchestrator**: launch waves, track worker - state, resolve blockers, and own merge order. Keep direct feature edits out - of the coordinator checkout during parallel fan-out. +1. The parent thread is the **pure orchestrator**: launch waves, track workers, + resolve blockers, own merge order. No feature edits in its checkout. 2. When `ship epic` starts, check `t3_thread_list` (`currentThreadId`, `pinned`). If unpinned, pin it (`t3_thread_organize`, `action: "pin"`, no - `threadId`) so no T3 sweep settles it between waves or post-merge proof. - Follow T3's PR linking and watching rules for PRs the orchestrator owns; do - not link PRs a `t3_thread_launch` worker owns. -3. Run each non-overlapping issue in its own worktree: use `delegate_task` - (`isolation: "worktree"`) so workers stay out of the top-level sidebar, or - `t3_thread_launch` (`t3-launch-worktrees`) only when top-level issue threads - are requested. Use the configured default worker model, or a stronger design - model when the user asks or the issue is design-heavy. -4. Give each worker an explicit file scope, issue link, proof bar, and the rule - that the orchestrator owns final merge order when waves depend on each other. + `threadId`) so no sweep settles it between waves or post-merge proof. Follow + T3's PR linking and watching rules for PRs you own; do not link PRs a + `t3_thread_launch` worker owns. +3. Run each non-overlapping issue in its own worktree: `delegate_task` + (`isolation: "worktree"`) keeps workers out of the sidebar; + `t3_thread_launch` (`t3-launch-worktrees`) only for requested top-level issue + threads. Use the configured worker model, or a stronger design model when + asked or the issue is design-heavy. +4. Give each worker a file scope, issue link, proof bar, and the rule that the + orchestrator owns merge order across dependent waves. 5. Every deliverable PR follows `tstack`: - - `full-send` execution per deliverable (implement, prove, review, file PR, - babysit CI and bot findings). - - `sol-loop` (cross-family review) for routine feature and issue PRs. - - `council` (multi-model, per your configured roster) for architectural, - security, multi-repo, or high-risk PRs, or whenever a worker is blocked or - uncertain. - - `pr` body format, `file-pr`, and `babysit-pr`. When your repository uses - them, add a `## Review ledger` table to the PR body and host screenshots - with a `pr-image` helper. -6. Keep execution unattended using `full-send`'s four-gate rule: interrupt the - user only for (1) irreversible data deletion, (2) money, accounts, signing, - or external publishing, (3) unsanctioned production changes, or (4) a secret - or login via `request_secret`. Default everything else and record each call. + - `full-send` per deliverable (implement, prove, review, file PR, babysit). + - `sol-loop` (cross-family review) for routine PRs. + - `council` for architectural, security, multi-repo, or high-risk PRs, or + when a worker is blocked or uncertain. + - `pr` body, `file-pr`, `babysit-pr`. Where the repo uses them, add a + `## Review ledger` table and host screenshots with `pr-image`. +6. Worker output is a claim ([prove](../prove/SKILL.md)). Before a PR merges + or counts as done, run `proof-pack.py verify` on its head and open the + attached screenshots, video, or audio yourself. If a worker punts or refuses + a user-authorized task or proof step, dispatch `prove`'s configured fallback + worker with a neutral brief (goal, authorization, packet path) minus prior + refusal text, one at a time for single-slot limits. Never escalate an + unapproved `full-send` user gate, a CAPTCHA, anti-bot or 2FA challenge, or an + access or approval denial: stop and ask. +7. Stay unattended under `full-send`'s four-gate rule: interrupt the user only + for (1) irreversible data deletion, (2) money, accounts, signing, or + external publishing, (3) unsanctioned production changes, or (4) a secret or + login via `request_secret`. Default the rest and record each call. ## Stage 5: Zero-downtime sequential merge and live proof 1. Merge **one PR or non-overlapping wave at a time**, owned by the - orchestrator, only after required CI checks, preview deploys, and automated - reviews pass. After merging a PR from a `t3_thread_launch` worker you - launched, check `t3_thread_read`: if `status` is not `running`/`preparing`/ - `starting`/`queued`, `pinned` is `false`, `openPullRequestCount` and - `pendingRequestCount` are `0`, and `pendingBackgroundTasks` is empty, settle - it (`t3_thread_organize`, `action: "settle"`, `threadId`). + orchestrator, only after required CI, preview deploys, automated reviews, + and the Stage 4 proof gate pass. After merging a PR from a `t3_thread_launch` + worker you launched, check `t3_thread_read`: if `status` is not `running`/ + `preparing`/`starting`/`queued`, `pinned` is `false`, `openPullRequestCount` + and `pendingRequestCount` are `0`, and `pendingBackgroundTasks` is empty, + settle it (`t3_thread_organize`, `action: "settle"`, `threadId`). 2. Wait for production deploy health before rebasing and launching dependent waves. 3. Protect uptime: additive-first migrations, backwards-compatible cutovers, - and rollback or dead-man guards for infra or network changes. Clean up after - merge: prune stale deploy snapshots if storage is tight, remove temporary - worktrees, and fast-forward local `main`. + rollback or dead-man guards for infra or network changes. After merge, prune + stale deploy snapshots if storage is tight, remove temporary worktrees, and + fast-forward local `main`. 4. Prove every deliverable live before calling it done: production health, real - tool or UI execution, telemetry rows arriving when telemetry changed, PR - screenshots, and clean drift checks (`--check` or equivalent) across online - targets. Green unit tests or mocks alone do not close an epic. + tool or UI execution, telemetry rows when telemetry changed, PR screenshots, + and clean drift checks (`--check` or equivalent) on online targets. Run + `proof-pack.py verify` on the merged head and inspect the artifacts. Mocks + and green unit tests alone do not close an epic. ## Stage 6: Close the loop -1. Update the original **plan in place** with shipped status, PR links, deploy - URLs, live proof, decisions made, and any remaining manual user step. -2. Settle any remaining `t3_thread_launch` workers you launched whose PRs - merged (passing the Stage 5 `t3_thread_read` check). On clean Stage 6 - completion with no open PRs or user steps left, settle this thread last if - Stage 4 added the pin (keep any user pin; `t3_thread_organize`, - `action: "settle"`, no `threadId`). On a blocker, abort, or user step, do - not settle this thread; `unpin` only if Stage 4 added the pin. -3. Send a brief report: lead with any blocker, link the updated plan and key - PRs or deploys, confirm zero open PRs or issues remain (or list what stayed - open and why), and end with one or two plain sentences on what is live and - what, if anything, still needs the user. +1. Update the **plan in place** with shipped status, PR links, deploy URLs, + live proof, decisions made, and any remaining manual user step. +2. Settle remaining `t3_thread_launch` workers you launched whose PRs merged + (after the Stage 5 `t3_thread_read` check). On clean completion with no open + PRs or user steps, settle this thread last if Stage 4 added the pin (keep + any user pin; `t3_thread_organize`, `action: "settle"`, no `threadId`). On a + blocker, abort, or user step, do not settle it; `unpin` only if Stage 4 + added the pin. +3. Send a brief report: lead with any blocker, link the plan and key PRs or + deploys, confirm zero open PRs or issues (or list what stayed open and why), + and end with one or two plain sentences on what is live and what still needs + the user. ## Traps -- Do not treat `full send` as the epic confirmation trigger; `full-send` belongs - to each deliverable PR. -- Do not run `ship epic` unpinned: T3's merge, close, and inactivity sweeps - settle unpinned threads (closed PRs settle even with +- `full send` is not the epic trigger; `full-send` belongs to each deliverable. +- Never run `ship epic` unpinned: T3's merge, close, and inactivity sweeps + settle unpinned threads (even closed PRs with `sidebarAutoSettleOnMerge: false`), clearing watches and cutting off waves. - Never settle another thread blindly: settling by `threadId` acts at once, - even mid-run, clearing pins, watches, and pending questions. Settle only - `t3_thread_launch` workers you launched whose PRs merged, after the Stage 5 - `t3_thread_read` check passes. -- Do not merge overlapping PRs together; serialize merges across shared files - and live deploys to preserve zero downtime. -- Do not stop at "PR opened" while CI, deploys, or later waves are still active. + clearing pins, watches, and pending questions. Settle only workers you + launched whose PRs merged, after the Stage 5 `t3_thread_read` check. +- Never merge overlapping PRs together; serialize across shared files and deploys. +- Never stop at "PR opened" while CI, deploys, or waves are active. - Behind a chat bridge (such as `t3-slack`), chat posts only the final text of - the turn answering a user message. If background turns continue, state what - is running and what finishes next before ending the turn. + the turn answering a user message. If background turns continue, say what + runs and what finishes next before ending the turn. diff --git a/skills/full-send/SKILL.md b/skills/full-send/SKILL.md index 341d102..6fa07e4 100644 --- a/skills/full-send/SKILL.md +++ b/skills/full-send/SKILL.md @@ -21,24 +21,16 @@ The user grants you permission to: ## Testing permission -A "full send" request is the permission. If a project file or other -instruction says to ask before a test method, or to leave testing to the -user, this request replaces that rule for this task. +A "full send" request replaces any project or other rule that says to ask +before a test method or leave testing to the user. That covers computer use, +browser automation, simulators and devices, running the app or a dev server, +screenshots, and visual checks. Use the method that gives direct proof. List it +in the report. -That includes ask-first rules for computer use, browser automation, -simulators and devices, running the app or a dev server, screenshots, and -visual checks. Use the method that gives direct proof. List it in the -report. - -Rules about how to test still apply. Follow rules that name the correct -command, fixture, or check. This permission only removes the ask-first or -leave-it-to-the-user step. If a preferred method cannot prove the change, -use a gated method under this permission. - -It covers only the tests needed for this task. It does not add permission -for the steps under "Asking the user", such as production changes or data -deletion. It also does not bypass a harness or system approval prompt if -one appears. +Rules that name the correct command, fixture, or check still apply. If a +preferred method cannot prove the change, use a gated one. This covers only the +tests this task needs. It does not cover the steps under "Asking the user" or +bypass a harness or system approval prompt. ## Steps @@ -46,7 +38,7 @@ one appears. smallest change that works. Fix the case that happened, not every case that could. If you are on the default branch, create a branch first. 2. **Prove it.** Get proof for every change you made. See "Proof". -3. **Get feedback.** Use the `sol-loop` skill to verify changes. +3. **Get feedback.** Use the `sol-loop` skill, with the proof packet. 4. **File the PR** with the `file-pr` skill. Rebase onto the latest default branch first. Add one short line to the description that says how you proved the change. @@ -66,22 +58,22 @@ settle. ## Proof -Proof is evidence you observed yourself in this session: command output, a -reproduction, a screenshot. Use the most direct proof the change allows: - -- Reproduce the original failure, apply the fix, then watch the same - reproduction pass. -- Run the checks that the repo's CI runs (typecheck, lint, tests). -- Add one focused test that fails without the fix, when the behavior has none - and the repo has a test setup. -- For UI and runtime behavior, run the app and look at the change. Green mocked - tests do not prove that the user experience works. Attach screenshots to the - PR when they help and you have a way to upload them. - -When you cannot find a way to prove a change, you do not have full confidence. -Do not ask the user: try a more direct method (run it, reproduce it, add a -test). If nothing proves it, leave that PR open and unmerged, say why in the -report, and move on to the rest of the work. +Proof is evidence you observed yourself in this session, gathered per +[prove](../prove/SKILL.md): reproduce the failure and watch it pass, run the +repo's CI checks, add a focused test if none covers it. For UI and runtime +behavior, run the app and look: green mocked tests prove nothing. + +Record it in a `proof-pack.py` packet. `proof-pack.py verify` must exit 0 on the +current head before `sol-loop` or `file-pr`. Put `verify --markdown` in the PR +Evidence. + +If a worker or tool punts or refuses a user-authorized test or proof step, do +not leave it unproven and do not retry the same prompt. Hand it to `prove`'s +configured fallback worker. An unapproved gate, a CAPTCHA, anti-bot or 2FA +check, or an access or approval denial is not routed around: `prove` says how. + +If nothing proves it, you lack full confidence. Do not ask the user: leave that +PR open and unmerged, say why in the report, and move on. ## Merge gate diff --git a/skills/pr/SKILL.md b/skills/pr/SKILL.md index 317acd1..92b77b2 100644 --- a/skills/pr/SKILL.md +++ b/skills/pr/SKILL.md @@ -165,6 +165,8 @@ Concrete evidence that the change works. Show a before and after. Screenshots are S-tier - when the environment is set up for it and the change is visual. +When a `prove` packet exists, run `proof-pack.py verify --markdown` and paste its output into Evidence rather than retyping it. Upload attached screenshots or media with the rig's configured media uploader and link them under `**Before:**` / `**After:**`. Keep the three headings above exactly; `templates/pr-body.yml` checks them. + Execution-based evidence is A-tier. Test results, console output. Show the exact test that now fails and passes, using pseudocode. ### Merge Danger diff --git a/skills/sol-loop/SKILL.md b/skills/sol-loop/SKILL.md index 76240af..5cc4385 100644 --- a/skills/sol-loop/SKILL.md +++ b/skills/sol-loop/SKILL.md @@ -5,28 +5,25 @@ description: Use when the user says "sol loop". # sol-loop -This is a workflow for making your code changes more correct before (or -sometimes after) filing a pull request. tl;dr - use OpenAI's GPT Sol to review -your code in a loop. - -Make the most minimal possible changes to appease the Sol reviewers. Be careful -of scope creep and don't be scared to push back. +Make code changes more correct before (or after) filing a PR: have OpenAI's GPT +Sol review in a loop. Make the smallest changes that satisfy Sol. Resist scope +creep and push back. ## Budget -- Default: 3 rounds total. Round 1 is full. Later rounds check only - changed code and open findings. +- Default: 3 rounds. Round 1 is full. Later rounds check only changed code and + open findings. - Extend to 5 only for security, permissions, auth, data loss, or - state/concurrency, while a blocker or should stays open with evidence. Or when + state/concurrency while a blocker or should stays open with evidence, or when the user asks. - A narrow confirm is not a round. Sol checks one diff: a fix it prescribed that you applied as written, or evidence it asked for. At most one after - each round. Send it like a next round, with only that diff or evidence. - Anything but APPROVE from it is an open finding. -- Stop early if a round returns only nits. Declined nits and comment, - doc, or format-only fixes need no new round. + each round, sent like a next round with only that diff or evidence. Anything + but APPROVE from it is an open finding. +- Stop early if a round returns only nits. Declined nits and comment, doc, or + format-only fixes need no new round. - One reviewer only. Sol must not start subagents or reviewers. -- Keep a ledger: id, severity, outcome, usage if returned. Never guess it. +- Keep a ledger: id, severity, outcome, usage if returned. Never guess. ## 1. Scope @@ -37,48 +34,45 @@ Otherwise stop and ask. Find the base after `git fetch origin`: - PR: `gh pr view --json baseRefName,headRefOid`. Check out the branch - only if clean. Confirm `HEAD` is the PR head, or ahead only by this - change. Base: `git merge-base HEAD origin/`. + only if clean. `HEAD` must be the PR head, or ahead only by this change. + Base: `git merge-base HEAD origin/`. - Local: `git merge-base HEAD origin/`. No remote: a base the user names, or `HEAD` for uncommitted changes only. The change is base to working tree in those paths, with untracked files. Use one diff command all rounds. State intent and out-of-scope in 1-2 -sentences. Run covering checks. Do not send code this change breaks. Note -missing or pre-failing checks in the brief. +sentences. Run covering checks; note missing or pre-failing ones in the brief. ## 2. Start Sol In T3, call `orchestrator_capabilities`. Pick the latest Sol unless the user -named a version. Do not hardcode an ID. Record provider, model, and effort -only if exposed. Use `delegate_task` every round (`role: "review"`, -`mode: "async"`). Save `taskId`. New `clientRequestId` per round. -`childThreadId` is storage, not the next target. Do not use -`t3_thread_send`, `create_threads`, or `t3_thread_launch` for review. +named a version. Never hardcode an ID. Record provider, model, and effort only +if exposed. Use `delegate_task` every round (`role: "review"`, `mode: +"async"`). Save `taskId`. New `clientRequestId` per round. `childThreadId` is +storage, not the next target. Never use `t3_thread_send`, `create_threads`, or +`t3_thread_launch` for review. If T3 tools are not listed, try one direct capability call. Outside T3, use -a native Sol subagent and keep its ID. In Claude Code, use a custom subagent -only if it is set up to run Sol. If no route runs Sol, report the blocker. Do -not substitute a model. - -Do not edit scoped files while review runs. Wait for the notice. Do not -poll or start a second reviewer. Timeout, error, no reply, or a reply -without a `VERDICT:` line is not approval. On failure, cancel, verify stop, -restart with the ledger. On a missing verdict, if Sol named a check it was -waiting on and this round's narrow confirm is unused, run the check and -send the result as that confirm. Otherwise start the next budgeted round or -stop without approval. +a native Sol subagent and keep its ID (in Claude Code, a custom subagent set +up to run Sol). If no route runs Sol, report the blocker. Never substitute. + +Do not edit scoped files while review runs. Wait for the notice; do not poll. +Timeout, error, no reply, or no `VERDICT:` line is not approval. On failure, cancel, verify stop, restart with the ledger. On a missing verdict, if Sol named a check it awaited +and this round's narrow confirm is unused, run it and send the result as that +confirm. Otherwise start the next budgeted round or stop without approval. Round 1 brief (T3 children get no history): ``` Review only. Do not edit, commit, push, comment on PRs, or start subagents. Repo: Base: Scratch: Intent: Out of scope: Checks: +Proof: See: git diff [-- ]; git status --short (read untracked). Read surrounding code. Find bugs, broken callers, mismatch with intent. Skip style unless it hides a bug. Hold to the smallest change. Flag code, tests, or guards the intent does not need. Other paths, rare cases, small perf, extra compat: nits. +Missing, stale, or mocked proof of testable runtime, UI, or ops behavior: blocker. If you reproduce a finding, save a runnable script in Scratch (the only place you may write) and give its path. blocker = intended case wrong. should = real bug callers will hit, in intent. nit = rest. Reply: @@ -88,40 +82,38 @@ S1 [blocker|should|nit] : . Fix: . Repro: `. If -review grew the diff, cut first. Do not agree just to end the loop. +Update the ledger. Re-run checks and `git diff --shortstat `. If review +grew the diff, cut first. Never agree just to end the loop. ## 4. Next round Start one only if budget remains and a blocker or should is open, behavior code changed, or approval does not cover the current behavior diff. Use a fresh `delegate_task` in T3, or follow up the saved native ID. Send the round 1 brief, -the ledger (`fixed:` / `disagree:` / `declined:` + evidence and repro paths), the same base -diff, and the change since last round. Tell Sol: open ids and changed code only. -Mark each old id `resolved` or `still open: `. +the ledger (`fixed:` / `disagree:` / `declined:` + evidence and repro paths), +the same base diff, and the change since last round. Sol checks open ids and +changed code only, marking each old id `resolved` or `still open: `. ## 5. Stop and ship Agreed: APPROVE on the current behavior diff, no blocker or should open, no concern of your own. Stuck: an item stays disputed after two replies, -or budget ends. Show both sides in 2-3 lines each. The user decides. -Budget end is not approval. +or budget ends (not approval). Show both sides in 2-3 lines; the user decides. Diverging: a later round returns new findings of a class you already fixed, usually because the code imitates another tool. Stop patching. Offer the user a design that supports only what it matches exactly and -refuses the rest. If taken, later briefs state it: a refusal is correct, -only a wrong definitive result is a blocker. +refuses the rest. If taken, later briefs say a refusal is correct and only a +wrong definitive result is a blocker. Do not push during the loop. Push after agreement only if the user asked to push, ship, or update the PR. If you push to a PR, add above the model @@ -129,9 +121,10 @@ blurb: `Reviewed with sol-loop: rounds with . Sol verdict: approved at `. -`` is the pushed commit whose tree Sol approved. After `rounds` -add `plus a narrow confirmation` (or `plus narrow confirmations`) when -any ran, and `on ` only if verified. +`` is the pushed commit Sol approved. After `rounds` add `plus a +narrow confirmation` (or `plus narrow confirmations`) if any ran, and `on +` only if verified. -Report: rounds and narrow confirms, model, what Sol changed, diff size before/after, fixed and -declined findings with reasons, usage if exposed (else say not), pushed or not. +Report: rounds and narrow confirms, model, what Sol changed, diff size +before/after, fixed and declined findings with reasons, usage (or "not +exposed"), pushed or not. diff --git a/tests/test_install.py b/tests/test_install.py index ff757e6..0f29c47 100644 --- a/tests/test_install.py +++ b/tests/test_install.py @@ -47,7 +47,7 @@ def test_twenty_skills_and_deps_exist(): def test_resolve_is_transitive(): assert install.resolve(["full-stop"]) == sorted( - {"full-stop", "full-send", "sol-loop", "file-pr", "babysit-pr", "leaving-pr-comments", "pr"} + {"full-stop", "full-send", "sol-loop", "file-pr", "babysit-pr", "leaving-pr-comments", "pr", "prove"} ) assert install.resolve(["file-pr"]) == ["babysit-pr", "file-pr", "leaving-pr-comments"] assert install.resolve(["babysit-pr"]) == ["babysit-pr", "leaving-pr-comments"] @@ -55,7 +55,7 @@ def test_resolve_is_transitive(): assert install.resolve(["hindsight-setup"]) == ["hindsight", "hindsight-setup"] assert install.resolve(["full-stop"], with_deps=False) == ["full-stop"] epic = install.resolve(["epic"]) - assert {"full-send", "council", "hindsight", "t3-launch-worktrees", "pr"} <= set(epic) + assert {"full-send", "prove", "council", "hindsight", "t3-launch-worktrees", "pr"} <= set(epic) def test_resolve_rejects_unknown(): @@ -95,7 +95,7 @@ def test_copy_mode_writes_marker(home: Path): def test_only_adds_deps(home: Path, capsys): assert run(home, "--client", "claude", "--only", "full-send") == 0 assert entries(home / ".claude" / "skills") == sorted( - ["full-send", "sol-loop", "file-pr", "babysit-pr", "leaving-pr-comments", "pr"] + ["full-send", "sol-loop", "file-pr", "babysit-pr", "leaving-pr-comments", "pr", "prove"] ) assert "adding dependencies" in capsys.readouterr().out diff --git a/tests/test_prove_and_rig.py b/tests/test_prove_and_rig.py index 56fda76..3cd2a3f 100644 --- a/tests/test_prove_and_rig.py +++ b/tests/test_prove_and_rig.py @@ -501,6 +501,8 @@ def test_invalid_rig_stops_the_install(home: Path, tmp_path: Path): def test_deps_and_exclusive_flags(home: Path, tmp_path: Path): assert install.DEPS["jstack-setup"] == ("prove",) + assert "prove" in install.DEPS["full-send"] + assert "prove" in install.DEPS["epic"] assert install.resolve(["jstack-setup"]) == ["jstack-setup", "prove"] with pytest.raises(SystemExit): run_install(home, "--check", "--reconcile") diff --git a/tests/test_validate_skills.py b/tests/test_validate_skills.py index d2676d1..405b6b2 100644 --- a/tests/test_validate_skills.py +++ b/tests/test_validate_skills.py @@ -159,7 +159,7 @@ def test_manifest_version_mismatch(repo: Path): def test_manifests_share_version(): - assert set(vs.manifest_versions(ROOT).values()) == {"0.3.0"} + assert set(vs.manifest_versions(ROOT).values()) == {"0.4.0"} def test_pr_body_workflow_must_match(repo: Path): @@ -225,9 +225,9 @@ def test_long_description_fails(repo: Path): def test_shrink_requires_ratchet(repo: Path): - p = repo / "skills/sol-loop/SKILL.md" + p = repo / "skills/epic/SKILL.md" p.write_text(p.read_text()[:-10]) - assert any("sol-loop.body_bytes shrank" in e for e in errors(repo)) + assert any("epic.body_bytes shrank" in e for e in errors(repo)) assert vs.main(["--root", str(repo), "--write-budget"]) == 0 assert errors(repo) == [] From 0a0b22792b2a34637bd42dc99d9a02960cdfce78 Mon Sep 17 00:00:00 2001 From: Justin Carlson <40642470+justcarlson@users.noreply.github.com> Date: Fri, 27 Nov 2026 23:56:41 -0500 Subject: [PATCH 2/2] fix: resolve sol-loop round 1 findings on proof gates and manifests --- .claude-plugin/marketplace.json | 2 +- .claude-plugin/plugin.json | 2 +- .codex-plugin/plugin.json | 2 +- README.md | 2 +- patches/10-proof-gate-and-fallback.patch | 22 +++++++++++++--------- skills/pr/SKILL.md | 2 +- skills/prove/scripts/proof-pack.py | 2 +- skills/sol-loop/SKILL.md | 11 ++++++----- tests/test_prove_and_rig.py | 2 +- 9 files changed, 26 insertions(+), 21 deletions(-) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index f311d8d..7b8ba4e 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -8,7 +8,7 @@ { "name": "jstack", "source": "./", - "description": "18 agent skills for shipping pull requests: patched t3dotgg/tstack core, the pr body standard, and companions.", + "description": "20 agent skills for shipping pull requests: patched t3dotgg/tstack core, the pr body standard, and companions.", "version": "0.4.0", "author": { "name": "justcarlson" diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 5dec4c5..918a82f 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -2,7 +2,7 @@ "name": "jstack", "displayName": "jstack", "version": "0.4.0", - "description": "18 agent skills for shipping pull requests: patched t3dotgg/tstack core, the pr body standard, and companions.", + "description": "20 agent skills for shipping pull requests: patched t3dotgg/tstack core, the pr body standard, and companions.", "author": { "name": "justcarlson" }, diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 432da6f..2045860 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "jstack", "version": "0.4.0", - "description": "18 agent skills for shipping pull requests: patched t3dotgg/tstack core, the pr body standard, and companions.", + "description": "20 agent skills for shipping pull requests: patched t3dotgg/tstack core, the pr body standard, and companions.", "author": { "name": "justcarlson" }, diff --git a/README.md b/README.md index eb2dc59..410f1bf 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ cd jstack | `antigravity` | `~/.gemini/config/skills` (plus real `~/.t3/userdata/providers/antigravity/*/config/skills` folders) | `~/.gemini` or T3's `~/.t3/userdata/providers/antigravity` | | `opencode` | `$XDG_CONFIG_HOME/opencode/skills` (default `~/.config/opencode/skills`) | `$XDG_CONFIG_HOME/opencode` or `~/.config/opencode` | -`--only` adds the sibling skills a skill calls, so `--only full-send` also installs `sol-loop`, `file-pr`, `babysit-pr`, `leaving-pr-comments` and `pr`. Pass `--no-deps` to skip them, or `--mode copy` to copy instead of link (pair `--check` with `--mode copy` when checking copies). The installer needs only Python 3 and puts nothing on your `$PATH`. +`--only` adds the sibling skills a skill calls, so `--only full-send` also installs `prove`, `sol-loop`, `file-pr`, `babysit-pr`, `leaving-pr-comments` and `pr`. Pass `--no-deps` to skip them, or `--mode copy` to copy instead of link (pair `--check` with `--mode copy` when checking copies). The installer needs only Python 3 and puts nothing on your `$PATH`. As a plugin: diff --git a/patches/10-proof-gate-and-fallback.patch b/patches/10-proof-gate-and-fallback.patch index 323ae8c..b2fb9db 100644 --- a/patches/10-proof-gate-and-fallback.patch +++ b/patches/10-proof-gate-and-fallback.patch @@ -113,7 +113,7 @@ index 341d102..6fa07e4 100644 ## Merge gate diff --git c/skills/sol-loop/SKILL.md w/skills/sol-loop/SKILL.md -index 76240af..5cc4385 100644 +index 76240af..df2d849 100644 --- c/skills/sol-loop/SKILL.md +++ w/skills/sol-loop/SKILL.md @@ -5,28 +5,25 @@ description: Use when the user says "sol loop". @@ -156,7 +156,7 @@ index 76240af..5cc4385 100644 ## 1. Scope -@@ -37,48 +34,45 @@ Otherwise stop and ask. +@@ -37,49 +34,47 @@ Otherwise stop and ask. Find the base after `git fetch origin`: - PR: `gh pr view --json baseRefName,headRefOid`. Check out the branch @@ -171,7 +171,8 @@ index 76240af..5cc4385 100644 Use one diff command all rounds. State intent and out-of-scope in 1-2 -sentences. Run covering checks. Do not send code this change breaks. Note -missing or pre-failing checks in the brief. -+sentences. Run covering checks; note missing or pre-failing ones in the brief. ++sentences. Run covering checks; do not send code this change breaks. Note ++missing or pre-failing checks. ## 2. Start Sol @@ -210,18 +211,21 @@ index 76240af..5cc4385 100644 ``` Review only. Do not edit, commit, push, comment on PRs, or start subagents. - Repo: Base: Scratch: Intent: Out of scope: Checks: -+Proof: +-Repo: Base: Scratch: Intent: Out of scope: Checks: ++Repo: Base: Scratch: Intent: Out of scope: Checks: ++Proof: See: git diff [-- ]; git status --short (read untracked). Read surrounding code. Find bugs, broken callers, mismatch with intent. Skip style unless it hides a bug. Hold to the smallest change. Flag code, tests, or guards the intent does not need. Other paths, rare cases, small perf, extra compat: nits. -+Missing, stale, or mocked proof of testable runtime, UI, or ops behavior: blocker. - If you reproduce a finding, save a runnable script in Scratch (the only place you may write) and give its path. +-If you reproduce a finding, save a runnable script in Scratch (the only place you may write) and give its path. ++Missing, stale, or mocked proof of testable behavior: blocker. ++Save any repro script in Scratch (the only writable dir) and give its path. blocker = intended case wrong. should = real bug callers will hit, in intent. nit = rest. Reply: -@@ -88,40 +82,38 @@ S1 [blocker|should|nit] : . Fix: . Repro: : . Fix: . Repro: rounds with . Sol verdict: approved at `. diff --git a/skills/pr/SKILL.md b/skills/pr/SKILL.md index 92b77b2..9f3a625 100644 --- a/skills/pr/SKILL.md +++ b/skills/pr/SKILL.md @@ -165,7 +165,7 @@ Concrete evidence that the change works. Show a before and after. Screenshots are S-tier - when the environment is set up for it and the change is visual. -When a `prove` packet exists, run `proof-pack.py verify --markdown` and paste its output into Evidence rather than retyping it. Upload attached screenshots or media with the rig's configured media uploader and link them under `**Before:**` / `**After:**`. Keep the three headings above exactly; `templates/pr-body.yml` checks them. +When a `prove` packet exists, upload attached screenshots or media with the rig's configured media uploader, link them under `**Before:**` / `**After:**`, then paste `proof-pack.py verify --markdown` below them (`### Proof packet` nests inside `## Evidence`). Keep the three level-2 headings above exactly; `templates/pr-body.yml` checks them. Execution-based evidence is A-tier. Test results, console output. Show the exact test that now fails and passes, using pseudocode. diff --git a/skills/prove/scripts/proof-pack.py b/skills/prove/scripts/proof-pack.py index b703f07..7dd7ae5 100755 --- a/skills/prove/scripts/proof-pack.py +++ b/skills/prove/scripts/proof-pack.py @@ -517,7 +517,7 @@ def cell(text: object, limit: int = 90) -> str: def markdown(report: dict) -> str: status = "PASS" if report["ok"] else "FAIL" lines = [ - "## Proof packet", + "### Proof packet", "", f"**Task:** {cell(report['task'], 200)}", f"**Head:** `{short(report['head'])}` · **Level:** {report['reached'] or 'none'} reached, {report['required']} required · **{status}**", diff --git a/skills/sol-loop/SKILL.md b/skills/sol-loop/SKILL.md index 5cc4385..df2d849 100644 --- a/skills/sol-loop/SKILL.md +++ b/skills/sol-loop/SKILL.md @@ -41,7 +41,8 @@ Find the base after `git fetch origin`: The change is base to working tree in those paths, with untracked files. Use one diff command all rounds. State intent and out-of-scope in 1-2 -sentences. Run covering checks; note missing or pre-failing ones in the brief. +sentences. Run covering checks; do not send code this change breaks. Note +missing or pre-failing checks. ## 2. Start Sol @@ -65,15 +66,15 @@ Round 1 brief (T3 children get no history): ``` Review only. Do not edit, commit, push, comment on PRs, or start subagents. -Repo: Base: Scratch: Intent: Out of scope: Checks: -Proof: +Repo: Base: Scratch: Intent: Out of scope: Checks: +Proof: See: git diff [-- ]; git status --short (read untracked). Read surrounding code. Find bugs, broken callers, mismatch with intent. Skip style unless it hides a bug. Hold to the smallest change. Flag code, tests, or guards the intent does not need. Other paths, rare cases, small perf, extra compat: nits. -Missing, stale, or mocked proof of testable runtime, UI, or ops behavior: blocker. -If you reproduce a finding, save a runnable script in Scratch (the only place you may write) and give its path. +Missing, stale, or mocked proof of testable behavior: blocker. +Save any repro script in Scratch (the only writable dir) and give its path. blocker = intended case wrong. should = real bug callers will hit, in intent. nit = rest. Reply: VERDICT: APPROVE or CHANGES diff --git a/tests/test_prove_and_rig.py b/tests/test_prove_and_rig.py index 3cd2a3f..43d262d 100644 --- a/tests/test_prove_and_rig.py +++ b/tests/test_prove_and_rig.py @@ -102,7 +102,7 @@ def test_lifecycle_passes_and_prints_markdown(work: Path): assert ver.returncode == 0 and "verified" in ver.stdout md = pp(work, "verify", "--markdown", rig=rig) assert md.returncode == 0 - assert "## Proof packet" in md.stdout and "PASS" in md.stdout and "| s1 | L1 |" in md.stdout and "| a1 | L3 |" in md.stdout + assert "### Proof packet" in md.stdout and "PASS" in md.stdout and "| s1 | L1 |" in md.stdout and "| a1 | L3 |" in md.stdout def test_stale_head_is_rejected(work: Path):