Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"name": "pstack",
"source": "./plugins/pstack",
"description": "if you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence.",
"version": "1.21.0",
"version": "1.22.0",
"author": {
"name": "Lauren Tan (original)"
},
Expand Down
28 changes: 14 additions & 14 deletions .claude/skills/verify-open-pstack/features/recipes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface Case {
}

export const CLAUDE_TOOLS = 'Skill,Read,Glob,Grep,Write,Edit,Bash,Agent,Task,TodoWrite';
export const DEFAULT_ROLES: Record<CoreHarness, string> = { claude: 'bug-fix', codex: 'judgment and prose' };
export const DEFAULT_ROLES: Record<CoreHarness, string> = { claude: 'arena cross-judge pool', codex: 'judgment and prose' };
export const ROUTE = /^([a-z][a-z0-9-]*):([A-Za-z0-9._/-]+)@([a-z]+)$/;
const SETUP_DESCRIPTOR = 'claude:opus@high';
const DESCRIPTOR = /\b[a-z][a-z0-9-]*:[A-Za-z0-9._/-]+@[a-z]+/g;
Expand Down Expand Up @@ -450,7 +450,7 @@ function runner(harness: CoreHarness, routes: string[]): Case[] {
codexSandbox: 'danger-full-access',
async prepare(f) {
const installed = await readCatalog(f.location);
route ||= installed.defaults.get(DEFAULT_ROLES[harness])?.[0] ?? '';
route ||= installed.defaults.get(DEFAULT_ROLES[harness])?.find(lane => installed.route(harness, lane) === 'external') ?? '';
const parts = ROUTE.exec(route);
if (!parts || installed.route(harness, route) !== 'external') throw new Error(`runner-route-not-external:${route || DEFAULT_ROLES[harness]}`);
[, provider = '', model = '', effort = ''] = parts;
Expand Down Expand Up @@ -540,8 +540,8 @@ function keptPredecessor(): Case {
const installed = await readCatalog(f.location), current = installed.kept.get(KEPT);
if (!current) throw new Error(`catalog-kept-missing:${KEPT}`);
proposed = `${current}@${KEPT_EFFORT}`;
const roles = [...installed.defaults].map(([role, lanes]): [string, string[]] => [role, lanes.map(lane => lane.includes(':') ? `${KEPT}@${KEPT_EFFORT}` : lane)]);
const omitted = roles.find(([, lanes]) => lanes.every(lane => !lane.includes(':')))?.[0];
const omitted = 'judgment and prose';
const roles = [...installed.defaults].map(([role, lanes]): [string, string[]] => [role, role === omitted ? lanes : lanes.map(lane => lane.includes(':') ? `${KEPT}@${KEPT_EFFORT}` : lane)]);
expected = roles.map(([role, lanes]) => `${role}: ${lanes.join(', ')}`).sort();
await writeFile(join(f.configHome, 'pstack-models.md'), sheetText(roles.filter(([role]) => role !== omitted)));
if (f.harness === 'codex') await rm(join(f.configHome, 'AGENTS.md'), { force: true });
Expand All @@ -560,8 +560,8 @@ function keptPredecessor(): Case {

const NEW_FAMILY_LANES: Record<string, [string, string]> = {
'swarm workers': ['codex:gpt-6-luna@max', 'codex:gpt-6-luna@max'],
'hardest tasks': ['claude:claude-opus-5-5@max', 'claude:claude-opus-5-5@max'],
'how explainer': ['claude:claude-sonnet-5-5@max', 'claude:sonnet@max'],
'hillclimb': ['claude:claude-opus-5-5@max', 'claude:claude-opus-5-5@max'],
'perf-issue': ['claude:claude-sonnet-5-5@max', 'claude:sonnet@max'],
'judgment and prose': ['claude:claude-opus-5@max', 'claude:opus@max'],
};
function newFamilies(): Case {
Expand Down Expand Up @@ -592,7 +592,7 @@ function newFamilies(): Case {
};
}

const READ_ONLY_ROLE = 'how explorer', READ_ONLY_LANE = 'opencode:opencode/deepseek-v4.1-flash-free@max';
const READ_ONLY_ROLE = 'arena cross-judge pool', READ_ONLY_LANE = 'opencode:opencode/deepseek-v4.1-flash-free@max';
function readOnlyProvider(): Case {
let expected: string[] = [];
return {
Expand Down Expand Up @@ -655,7 +655,7 @@ function keepSetting(): Case {
claudePermission: 'bypassPermissions',
async prepare(f) {
const roles = [...(await readCatalog(f.location)).defaults];
const omitted = roles.find(([, lanes]) => lanes.every(lane => !lane.includes(':')))?.[0];
const omitted = 'judgment and prose';
expected = roles.map(([role, lanes]) => `${role}: ${lanes.join(', ')}`).sort();
await writeFile(join(f.configHome, 'pstack-models.md'), sheetText(roles.filter(([role]) => role !== omitted)) + `${FULL_ACCESS_SETTING}\n`);
if (f.harness === 'codex') await rm(join(f.configHome, 'AGENTS.md'), { force: true });
Expand All @@ -674,9 +674,9 @@ function keepSetting(): Case {
const CONFIGURED_ROLE = 'judgment and prose', MISSING_ROLES = ['arena runners', 'bug-fix'];
const CATALOG_LANES: Record<string, [string, string]> = {
'swarm workers': ['codex:gpt-6-luna@max', 'codex:gpt-6-luna@max'],
'hardest tasks': ['claude:claude-opus-5-5@max', 'claude:claude-opus-5-5@max'],
'how explainer': ['claude:claude-sonnet-5-5@high', 'claude:sonnet@high'],
'how explorer': ['devin:swe-2@max', 'devin:swe-2@max'],
'hillclimb': ['claude:claude-opus-5-5@max', 'claude:claude-opus-5-5@max'],
'perf-issue': ['claude:claude-sonnet-5-5@high', 'claude:sonnet@high'],
'arena cross-judge pool': ['devin:swe-2@max', 'devin:swe-2@max'],
'interrogate reviewers': ['opencode:opencode/deepseek-v4.1-flash-free@max', 'opencode:opencode/deepseek-v4.1-flash-free@max'],
[WRITER_ROLE]: [WRITER_LANE, WRITER_LANE],
};
Expand Down Expand Up @@ -802,9 +802,9 @@ const t3Dispatch: Case = {
};

const GROK_LANES = [
{ role: 'why investigators, synthesizer', descriptor: 'inherit-parent' },
{ role: 'how explorer', descriptor: 'grok:grok-4.7@low', provider: 'grok', model: 'grok-4.7', effort: 'low', proof: 'provider-report' },
{ role: 'how explainer', descriptor: 'codex:gpt-6-luna@low', provider: 'codex', model: 'gpt-6-luna', effort: 'low', proof: 'pinned-argv' },
{ role: 'judgment and prose', descriptor: 'inherit-parent' },
{ role: 'arena cross-judge pool', descriptor: 'grok:grok-4.7@low', provider: 'grok', model: 'grok-4.7', effort: 'low', proof: 'provider-report' },
{ role: 'perf-issue', descriptor: 'codex:gpt-6-luna@low', provider: 'codex', model: 'gpt-6-luna', effort: 'low', proof: 'pinned-argv' },
] as const;
const GROK_AGENTS = ['pstack:poteto-agent', 'pstack:comment-sicko'];

Expand Down
10 changes: 4 additions & 6 deletions .claude/skills/verify-open-pstack/features/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"principle-redesign-from-first-principles", "principle-separate-before-serializing-shared-state",
"principle-sequence-verifiable-units", "principle-subtract-before-you-add",
"principle-test-behavior-not-implementation", "principle-type-system-discipline",
"recall", "reflect", "setup-pstack", "sharpen", "show-me-your-work", "statechart", "swarm", "tdd", "teach",
"recall", "reflect", "reframe", "setup-pstack", "sharpen", "show-me-your-work", "statechart", "swarm", "tdd", "teach",
"technical-writing", "thermo-nuclear-code-quality-review", "typescript-best-practices",
"unslop", "what-did-i-get-done", "why"
],
Expand All @@ -24,7 +24,7 @@
".claude-plugin/marketplace.json", ".agents/plugins/marketplace.json",
"plugins/pstack/agents/poteto-agent.md", "plugins/pstack/agents/comment-sicko.md",
"plugins/pstack/grok-agents/poteto-agent.md", "plugins/pstack/grok-agents/comment-sicko.md", "plugins/pstack/hooks/**",
"plugins/pstack/skills/poteto-mode/references/**"
"plugins/pstack/skills/poteto-mode/references/**", "plugins/pstack/skills/poteto-mode/worker.md"
],
"catalog": [
"plugins/pstack/skills/poteto-mode/references/model-catalog.md",
Expand Down Expand Up @@ -64,11 +64,9 @@
"tools": [
"plugins/pstack/skills/poteto-mode/scripts/bootstrap.ts",
"plugins/pstack/skills/poteto-mode/scripts/watch-pr/**",
"plugins/pstack/skills/poteto-mode/scripts/check-plan.mjs",
"plugins/pstack/skills/poteto-mode/scripts/worktree-audit.sh",
"plugins/pstack/skills/poteto-mode/scripts/package.json",
"plugins/pstack/skills/poteto-mode/scripts/bun.lock",
"plugins/pstack/skills/poteto-mode/scripts/check-plan.tsconfig.json",
"plugins/pstack/skills/show-me-your-work/scripts/log.sh",
"plugins/pstack/skills/statechart/scripts/**"
],
Expand All @@ -83,8 +81,8 @@
".agents/run-these.md", ".agents/babysit-pr.md", ".agents/triage-backlog.md",
".gitignore", ".mergify.yml", ".github/workflows/unfret-threads.yml", "docs/**", "assets/**",
"plugins/pstack/skills/poteto-mode/scripts/bootstrap.test.ts",
"plugins/pstack/skills/poteto-mode/scripts/check-plan.test.ts",
"plugins/pstack/skills/poteto-mode/scripts/orch/**",
"plugins/pstack/skills/poteto-mode/scripts/resolve-codex-transcript.test.ts", "scripts/release.py", "scripts/release_test.py"
"plugins/pstack/skills/poteto-mode/scripts/resolve-codex-transcript.test.ts", "scripts/release.py", "scripts/release_test.py", "plugins/pstack/skills/poteto-mode/scripts/check-plan.mjs",
"plugins/pstack/skills/poteto-mode/scripts/check-plan.tsconfig.json", "plugins/pstack/skills/poteto-mode/scripts/check-plan.test.ts"
]
}
8 changes: 4 additions & 4 deletions .claude/skills/verify-open-pstack/features/shipped-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

## Sub-features

`watch-pr` observations, `check-plan` verdict boundaries, read-only worktree audit, `statechart` charts and reports, and `show-me-your-work` logging. Exercise every tool and branch touched by selected paths; shared package changes select all tools.
`watch-pr` observations, read-only worktree audit, `statechart` charts and reports, and `show-me-your-work` logging. Exercise every tool and branch touched by selected paths; shared package changes select all tools.

## How to get to it (user POV)

Invoke the installed `poteto-mode` parent for watch/plan/audit, installed `statechart` for a chart and report, or installed `show-me-your-work` for evidence logging, through each harness's native skill surface.
Invoke the installed `poteto-mode` parent for watch/audit, installed `statechart` for a chart and report, or installed `show-me-your-work` for evidence logging, through each harness's native skill surface.

## Driving it with verify-open-pstack

Use the candidate's installed help and documented arguments. Create fixture state/output under the private run root; use an explicitly named safe test PR where remote reads are required. Have the native installed workflow drive the changed tool, then inspect its real structured output and persisted state. For the audit assert no mutation; for logging check the written TSV and escaping; for statechart check the written chart and report; for watch/plan preserve the observed result and verdict. Retain native transcripts and these state artifacts. Label any direct helper invocation `local CLI` separately. Name every touched tool and changed branch in the recipe.
Use the candidate's installed help and documented arguments. Create fixture state/output under the private run root; use an explicitly named safe test PR where remote reads are required. Have the native installed workflow drive the changed tool, then inspect its real structured output and persisted state. For the audit assert no mutation; for logging check the written TSV and escaping; for statechart check the written chart and report; for watch preserve the observed result and verdict. Retain native transcripts and these state artifacts. Label any direct helper invocation `local CLI` separately. Name every touched tool and changed branch in the recipe.

`bootstrap.ts` changes require its real shipped-tool consumer, `watch-pr`, including its clean dependency bootstrap path. They do not select the unrelated external runner.

Expand All @@ -20,4 +20,4 @@ A mock test is not live proof. Never perform PR writes from a candidate process

## Headless

The `shipped-tools` recipe in `recipes.ts` has the installed `show-me-your-work` workflow run its `log.sh` against a fixture TSV. It asserts the helper command ran from the installed plugin and the persisted row, including formula escaping. `watch-pr`, `check-plan`, the worktree audit, and `statechart` have no case yet.
The `shipped-tools` recipe in `recipes.ts` has the installed `show-me-your-work` workflow run its `log.sh` against a fixture TSV. It asserts the helper command ran from the installed plugin and the persisted row, including formula escaping. `watch-pr`, the worktree audit, and `statechart` have no case yet.
Loading