Repository navigation
feat(models): make GPT-6.1 Sol the Sol default and admit ultra (#102) - #115
Conversation
The Sol row moves to gpt-6.1-sol and offers ultra, which Codex lists for that model. Setup rejects ultra on rows that do not list it. Sheets that still name codex:gpt-5.6-sol keep running it until setup replaces it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merge Protections🟢 All 2 merge protections satisfied — ready to merge. Show 2 satisfied protections🟢 Queue ready pull requestsAutomatically queue non-draft pull requests targeting main after verify, Unfret, and live-gate pass on the head.
🟢 🚦 Auto-queueWhen all merge protections are satisfied and these conditions match, this pull request will be queued automatically.
|
|
| export const PARENTS = ["claude", "codex"] as const; | ||
| export const PROVIDERS = ["claude", "codex", "grok"] as const; | ||
| export const EFFORTS = ["low", "medium", "high", "xhigh", "max"] as const; | ||
| export const EFFORTS = ["low", "medium", "high", "xhigh", "max", "ultra"] as const; |
There was a problem hiding this comment.
Unsupported effort reaches providers
A direct pstack-runner call can pair ultra with Grok or Claude, although their matrix rows do not offer it. The runner accepts the pair and sends ultra to the provider CLI. Check the model's selectable efforts before launching so the runner rejects unsupported requests itself.
Greptile on #115: step 3 matched only the matrix model and step 6 refused models outside the matrix, so declining the replacement stopped setup. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # CHANGES.md # tests/skill-collision-repro.sh
Live evidence: Open Pstack
|
In claude -p the poteto-mode dispatch rule started the launcher as a background task, the session ended, and the receipt read cancelled. Co-Authored-By: Claude Opus 5.5 <[email protected]>
) The setup snapshot refused ~/.claude/CLAUDE.md when it is a link into a config repository, so every setup check failed before running. Existing links are now kept with their target's bytes; links that appear during the run are still refused. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude's dontAsk mode denied setup's write to ~/.claude/pstack-models.md because the folder was outside the session's directories, so setup stopped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Live evidence: Open Pstack
|
Under claude -p, arena ended its turn while its judge ran in the background, the session exited and stopped the task, and result.md was never written. The shared prompt rules now cover every skill; the runner-only wording goes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Live evidence: Open Pstack
|
The Sol @ultra lane completed, but the session called the launcher through a shell variable, so the absolute-path match reported runner-not-run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Live evidence: Open Pstack
|
dontAsk refuses Write into ~/.claude even with --add-dir, so setup stopped before writing the sheet; 26c1912 passed only when a session wrote it through the shell. The --add-dir for the config home goes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Live evidence: Open Pstack
|
| if (!(await lstat(path).catch(() => undefined))?.isSymbolicLink() || await readlink(path) !== link) { | ||
| await rm(path, { force: true, recursive: true }); | ||
| await symlink(link, path); |
There was a problem hiding this comment.
| const setup: Case[] = [{ | ||
| id: 'configure', | ||
| codexSandbox: 'danger-full-access', | ||
| claudePermission: 'bypassPermissions', |
There was a problem hiding this comment.
The Claude setup case now uses bypassPermissions with the operator’s real HOME. A candidate session can write other files there without a permission check, but snapshotSetup restores only three named config files per directory. Those other changes remain after the verifier finishes. Keep the setup session’s writes within what the verifier can restore.
How this was verified: The setup case selects bypassPermissions, the launcher passes it to Claude, and the candidate environment retains the operator’s HOME while restoration covers only named files.
| - Rerun: start from the normalized complete role map from step 2, with the step 2 role changes applied, preserving each loaded row's lane order and family (or alias) per lane. | ||
|
|
||
| Rewrite every matrix-family descriptor to `provider:model@<requested effort for that family>`. Leave `inherit-parent` and `auto` unchanged. An effort-only rerun cannot change a role's family. Changing Grok's effort updates every Grok occurrence and does not move a Sol role onto Grok. Refuse an unqualified slug, an unavailable route, a model outside the model matrix, or a provider/model mismatch. | ||
| Rewrite every matrix-family descriptor to `provider:model@<requested effort for that family>`, using the Sol model chosen in step 2. Leave `inherit-parent` and `auto` unchanged. An effort-only rerun cannot change a role's family. Changing Grok's effort updates every Grok occurrence and does not move a Sol role onto Grok. Refuse an unqualified slug, an unavailable route, a model outside the model matrix other than a kept `gpt-5.6-sol`, or a provider/model mismatch. |
There was a problem hiding this comment.
If a sheet contains both Sol models and the operator declines replacing its old-model entries, step 6 rewrites every Sol entry with gpt-5.6-sol. Entries already set to gpt-6.1-sol move back to the old model without the operator choosing that change. Preserve each loaded model choice unless the operator agrees to change it.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
✅ Accepted riskAccepted by ericlitman: GH-102 (authority 48fa77b) 🟡 Medium · Foreground override imposes an implicit timeout on verifier lanes 🟡 Medium · Keep tool assertions bound to the installed candidate paths 🟡 Medium · Declined Sol migration downgrades already-updated Advisories (2)
DetailsRun: @unfret review · @unfret status · @unfret help |
There was a problem hiding this comment.
🛑 6 blocking findings
🔴 Critical · Restore the effective symlink target, not only the outer link
🔴 Critical · Do not run candidate setup with all permissions bypassed
🟡 Medium · Do not override required background dispatch
🟡 Medium · Keep tool assertions bound to the installed candidate paths
🟡 Medium · Declining migration can downgrade already-updated Sol lanes
🟡 Medium · Dispatch now invalidates legacy grok-4.6 rows promised to keep running
Check
| const SETUP_DESCRIPTOR = 'claude:opus@high'; | ||
|
|
||
| const rules = (dir: string): string => `Work only inside ${dir}. Do not push, post, open, merge, or modify pull requests, issues, or remote branches, and do not write outside ${dir}. Do not edit any skill, plugin, or configuration file outside ${dir}. Do not ask questions: where the skill would ask, choose its documented default and continue.`; | ||
| const rules = (dir: string): string => `Work only inside ${dir}. Do not push, post, open, merge, or modify pull requests, issues, or remote branches, and do not write outside ${dir}. Do not edit any skill, plugin, or configuration file outside ${dir}. Do not ask questions: where the skill would ask, choose its documented default and continue. This is a headless session that ends at your first final reply and stops any background work still running, so run every command and subagent in the foreground, even where the skill says to use the background, and finish all work before you reply.`; |
There was a problem hiding this comment.
🟡 Medium · Foreground override imposes an implicit timeout on verifier lanes
Still present at d71158e. rules() now tells every recipe session to run every command and subagent in the foreground, 'even where the skill says to use the background'. provider-dispatch.md requires background Bash with a retained handle because a foreground Claude Bash call has an automatic ten-minute ceiling, and it says valid lanes can run 90+ minutes. Scenario: a Claude-parent runner, arena or interrogate case has a healthy Codex or Grok lane that runs past the ceiling. The tool kills it, the receipt is cancelled or missing, and the case fails, so a correct candidate cannot get live-gate. This is the implicit runtime timeout that AGENTS.md forbids. The recipe also stops exercising the background-handle dispatch that users actually run. Also reported for this defect: - Do not override required background dispatch (.claude/skills/verify-open-pstack/features/recipes.ts:39): The global recipe rule now forces every command and subagent into the foreground, including runner and fan-out recipes whose provider contract requires retained background handles. Claude foreground Bash calls have an automatic ten-minute ceiling, so a healthy external lane lasting longer than ten minutes is cancelled and the live verification fails, effectively introducing the implicit timeout prohibited by the repository contract. - Foreground override imposes Claude's implicit ten-minute ceiling (.claude/skills/verify-open-pstack/features/recipes.ts:39): This blanket foreground instruction also reaches external-runner and fan-out recipes. Claude foreground Bash calls are automatically stopped after ten minutes, while supported lanes may run much longer. A healthy lane exceeding ten minutes is therefore cancelled and fails exact-head live verification despite the repository's no-implicit-timeout contract. - Do not override required background dispatch (.claude/skills/verify-open-pstack/features/recipes.ts:39): This prompt forces every command and subagent into the foreground even where the runtime contract requires retained background handles. A valid Claude external lane lasting over ten minutes then encounters the documented foreground Bash ceiling despite having no explicit timeout, causing a healthy candidate's live verification to fail and violating the repository's no-implicit-timeout mandate. Also reported for this defect: - Foreground override imposes Claude's implicit ten-minute ceiling (.claude/skills/verify-open-pstack/features/recipes.ts:39): The blanket instruction to run every command in the foreground also applies to runner and fan-out recipes. provider-dispatch.md explicitly states that foreground Claude Bash calls have an automatic ten-minute ceiling and that valid lanes may run 90 minutes or longer. A healthy external lane exceeding ten minutes will therefore be cancelled and fail the live gate despite having no requested timeout; the recipe also stops exercising the required retained-background-handle behavior.
Now at .claude/skills/verify-open-pstack/features/recipes.ts:39
| const launcher = join(f.location, 'skills/poteto-mode/scripts/runner/pstack-runner'); | ||
| if (!record.commands.some(c => c.includes(launcher))) throw new Error('runner-not-run'); | ||
| // Sessions often call the launcher through a shell variable; the receipt below is written only by the runner. | ||
| if (!record.commands.some(c => c.includes('pstack-runner'))) throw new Error('runner-not-run'); |
There was a problem hiding this comment.
🟡 Medium · Keep tool assertions bound to the installed candidate paths
The basename-only command check accepts a stale or unrelated pstack-runner found through PATH or find, and the same weakening appears for log.sh at line 200. Such a tool can produce artifacts satisfying the remaining assertions, so the exact-SHA live gate can pass without exercising the installed candidate helper that the feature contract requires. Also reported for this defect: - Runner/log.sh liveness checks no longer bind to the candidate install (.claude/skills/verify-open-pstack/features/recipes.ts:163): Deleted check: c.includes(join(f.location, 'skills/poteto-mode/scripts/runner/pstack-runner')). It is replaced by c.includes('pstack-runner'). The receipt fields asserted next carry no candidate identity, so any other installed runner writes an identical passing receipt. Claude runs with the operator's real home, which can hold an installed stable copy under ~/.claude/plugins/cache/open-pstack/pstack//. Scenario: the candidate launcher fails before reserving the receipt, and the session runs that other copy with the same arguments. The case then passes and live-gate records success for a broken candidate runner. The comment's claim that the receipt is 'written only by the runner' does not identify which runner. Line 200 loosens the log.sh check the same way: c.includes('log.sh') replaces the candidate path. Also reported for this defect: - Basename checks can certify an unrelated installed helper (.claude/skills/verify-open-pstack/features/recipes.ts:163): Checking only for pstack-runner accepts a stale runner found through PATH or another plugin installation. That runner can produce receipts and output with all asserted fields, allowing the live gate to pass without exercising the candidate helper. The basename-only log.sh assertion at line 200 has the same failure mode. - Bind helper checks to the installed candidate paths (.claude/skills/verify-open-pstack/features/recipes.ts:163): Checking only for pstack-runner accepts any same-named launcher invoked from PATH or another installed plugin copy; the receipt identifies the requested route and session, but not the candidate installation. Thus a stale runner can produce passing artifacts while the exact-head helper is never exercised. The basename-only log.sh check at line 200 has the same false-pass path. - Runner and log.sh checks no longer bind to the candidate install (.claude/skills/verify-open-pstack/features/recipes.ts:163): Deleted: c.includes(join(f.location, 'skills/poteto-mode/scripts/runner/pstack-runner')). Line 200 likewise replaces the candidate log.sh path with c.includes('log.sh'). The remaining receipt and TSV assertions bind to the session and its arguments, not to the installed candidate. Claude runs with the operator's real HOME, which holds a stable copy under ~/.claude/plugins/cache/open-pstack/pstack//. Scenario: the candidate launcher fails, so its is_error Bash call is excluded, and the session then runs the cached runner with the same arguments. That writes a complete, matching receipt after record.started, the case passes, and live-gate succeeds for a broken candidate helper. For log.sh, any successful command that merely names log.sh satisfies the check.
Now at .claude/skills/verify-open-pstack/features/recipes.ts:163
| @@ -84,7 +84,7 @@ Build the new sheet in memory. Do not write it yet. | |||
| - First run: start from the complete role assignments in step 7, with the step 2 role changes applied. | |||
| - Rerun: start from the normalized complete role map from step 2, with the step 2 role changes applied, preserving each loaded row's lane order and family (or alias) per lane. | |||
|
|
|||
There was a problem hiding this comment.
🟡 Medium · Declined Sol migration downgrades already-updated gpt-6.1-sol lanes
Still present. Step 2 (line 38) makes a declined replacement family-wide: 'the Sol family's model stays gpt-5.6-sol'. Step 3 maps both gpt-5.6-sol and gpt-6.1-sol to the Sol family without flagging mixed models. This line then rewrites every Sol descriptor 'using the Sol model chosen in step 2'. Scenario: a sheet has bug-fix: codex:gpt-5.6-sol@max and perf-issue: codex:gpt-6.1-sol@max, and the operator declines replacing the old occurrence. Setup then writes perf-issue as codex:gpt-5.6-sol@max. That silently downgrades a lane the operator never asked to change, contrary to step 7's rule that only explicit role or effort changes may alter assignments. Also reported for this defect: - Declining migration downgrades mixed Sol sheets (plugins/pstack/skills/setup-pstack/SKILL.md:86): Given a sheet containing both gpt-5.6-sol and gpt-6.1-sol lanes at the same effort, step 3 accepts them as one Sol family. If the operator declines replacing the old occurrence, step 2 selects the old model and this family-wide rewrite changes every Sol descriptor to GPT-5.6, downgrading the existing GPT-6.1 lane despite no requested model change. - Preserve already-updated Sol lanes when migration is declined (plugins/pstack/skills/setup-pstack/SKILL.md:87): For a mixed sheet containing both gpt-5.6-sol and gpt-6.1-sol, declining replacement selects 5.6 as the family-wide Sol model. This render rule then rewrites every Sol descriptor with that model, downgrading the already-updated 6.1 lanes even though the operator declined rather than requested that change. - Declining migration can downgrade already-updated Sol lanes (plugins/pstack/skills/setup-pstack/SKILL.md:86): Step 3 accepts both the compatibility gpt-5.6-sol value and the matrix's gpt-6.1-sol value as the same family, so a mixed but otherwise valid sheet is not rejected. If such a sheet contains one old lane and one already-updated lane and the operator declines replacing the old occurrence, this family-wide rewrite uses the chosen old model for every Sol descriptor, silently changing the existing GPT-6.1 lane back to GPT-5.6 despite the operator declining rather than requesting that downgrade.
Now at plugins/pstack/skills/setup-pstack/SKILL.md:87
Also affects:
| const path = join(directory, name), info = await setupFile(path); | ||
| snapshot.push(info ? { path, bytes: await readFile(path), mode: info.mode & 0o777 } : { path }); | ||
| const path = join(directory, name); | ||
| // An operator's existing link (for example CLAUDE.md kept in a config repository) is restored as |
There was a problem hiding this comment.
🔴 Critical · Restore the effective symlink target, not only the outer link
Flattening a linked setup file with realpath loses any intermediate symlink chain. For example, with CLAUDE.md -> ../current/CLAUDE.md, if the candidate redirects current during setup, restoration rewrites the old canonical target and verifies only the unchanged outer readlink; CLAUDE.md still resolves to the redirected file and publication is allowed despite the mandatory exact restoration failing.
|
|
||
| This read-time rule makes an older installed sheet use the latest family revision immediately without writing user files. Once per parent run, report that the persisted sheet is stale and that `/setup-pstack` will rewrite it after its normal probes and confirmation. Unknown versioned Claude models remain invalid. The external runner rejects a missed Fable or Opus version pin instead of silently executing it. | ||
|
|
||
| `codex:gpt-5.6-sol@<effort>` is the previous Sol default. Match it to the Sol row and dispatch it unchanged, with the sheet's model and effort, until `/setup-pstack` replaces it. Do not rewrite it in memory. Any other model outside the matrix remains invalid. |
There was a problem hiding this comment.
🟡 Medium · Dispatch now invalidates legacy grok-4.6 rows promised to keep running
Line 28 adds 'Any other model outside the matrix remains invalid.' Before this diff, dispatch invalidated only unknown versioned Claude models. CHANGES.md (1.5.0) documents that 'A grok:grok-4.6 row keeps running until setup asks for its replacement.' Scenario: a user upgrades with an untouched 1.4.x sheet containing grok:grok-4.6@xhigh rows (feature/refactoring, how explorer, swarm workers, the Grok panel lane). The parent now classifies those descriptors as invalid instead of routing them to the Grok runner, so the lanes drop out until setup is rerun. Only gpt-5.6-sol received a keep-running exception.
| const setup: Case[] = [{ | ||
| id: 'configure', | ||
| codexSandbox: 'danger-full-access', | ||
| claudePermission: 'bypassPermissions', |
There was a problem hiding this comment.
🔴 Critical · Do not run candidate setup with all permissions bypassed
The setup case now runs candidate-controlled skill content under bypassPermissions, so tools outside CLAUDE_TOOLS are no longer denied. Because Claude retains the operator's normal configuration, a candidate setup skill can invoke configured MCP tools or modify unsnapshotted operator files without approval; cleanup restores only the named setup files and can still publish the gate. This is a security regression from the previous dontAsk boundary.
…tup (#102) Unfret on c3f8e45: - provider-dispatch.md declared every non-matrix model invalid, breaking the 1.5.0 promise that grok:grok-4.6 rows keep running. The sentence goes. - Setup restoration now checks that a linked file still resolves to the snapshot target through the whole chain, not only the outer link. - The bypass-mode setup session starts with --strict-mcp-config, so candidate setup cannot reach the operator's MCP tools. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🛑 3 blocking findings
🟡 Medium · Foreground override imposes an implicit timeout on verifier lanes
🟡 Medium · Keep tool assertions bound to the installed candidate paths
🟡 Medium · Declined Sol migration downgrades already-updated gpt-6.1-sol lanes
Check
|
Unfret waiver for head d71158e. Ticket
The verdict-changing grok-4.6 regression and both criticals from c3f8e45 were fixed in d71158e, and the latest review withdrew all three. |
Live evidence: Open Pstack
|
Merge Queue Status
This pull request spent 9 seconds in the queue, including 1 second running CI. Required conditions to merge
|
Closes #102
What changed
provider-dispatch.mdusesgpt-6.1-sol. Every role or panel default that names Sol now sayscodex:gpt-6.1-sol@max: the setup-pstack first-run sheet, the bug-fix, perf-issue and hillclimb playbooks, arena, architect, interrogate,codex-tools.md,docs/reference.mdand theUPSTREAM.mdexclusion. That exclusion still keeps those three roles on Sol. The "Upstream pstack choice" cell staysgpt-5.6-sol-max, because it names Cursor's upstream selector.ultraeffort.EFFORTSinrunner/types.tsaddsultra. Only the Sol row offers it.~/.codex/models_cache.json(Codex CLI 0.160.0) listsultraforgpt-6.1-sol, but not forgpt-6-lunaorgpt-5.6-luna. Setup step 3 rejectsultraon any row whose Selectable efforts cell lacks it. The runner passesultrathrough unchanged.codex:gpt-5.6-sol@<effort>matches the Sol row and runs unchanged, with no in-memory rewrite. On a rerun,/setup-pstackproposescodex:gpt-6.1-sol@<same effort>and asks. If the operator declines, setup probes, renders and writesgpt-5.6-solunchanged.model-matrix.test.tschecks the effort universe, that onlycodex:gpt-6.1-soloffersultra, and the previous-default rule in dispatch and setup.commands.test.tschecks that Codex argv carriesmodel_reasoning_effort="ultra".cli.test.tsaccepts--effort ultra. The existinggpt-5.6-solfixtures stay, because they show that an old model is forwarded unchanged.quad_ofintests/skill-collision-repro.shmatches@ultra.CHANGES.mdrecords the change under Unreleased.Design review: Astra (
gpt-6-astra, high, read-only) reviewed the plan before implementation. I accepted all five of its corrections. The main one: a declined replacement must carrygpt-5.6-solthrough the probe and render steps, not only through parsing. I also took its two cuts: no per-run migration reminder, and no blanket renaming of the test fixtures.Greptile review on the first head:
codex:gpt-5.6-solto the Sol row, and step 6 no longer refuses it.grok@ultrafails loudly at the provider CLI.Verifier fixes carried in this PR
This PR was the first full run of the headless verifier from #137 (#112). That run selects 58 features in each harness, and it found six problems in verifier recipes nobody had run before. The fixes are in this branch, per Eric on 2026-10-04, and none of them touches
plugins/pstack/**:claude -p, the session ended its turn while background work was still running, which stopped that work. The runner lane hit this first (the receipt readcancelled), then arena's judge. The shared prompt rules now keep every command and subagent in the foreground.~/.claude/CLAUDE.mdwhen it is a link into a config repository. An existing link is now restored as the same link plus its target's bytes. A link that appears during the run is still refused.Writeinto~/.claude, even with--add-dir. c3f8e45 runs only the Claude setup case in bypass mode, and removes the--add-dirfrom 26c1912. The snapshot and byte-exact restoration still protect the daily files.log.shchecks matched the tool's absolute path, so a call through a shell variable failed the check. They now match the file name, and they still require the output each tool alone writes.Unfret adjudication, head c3f8e45 (6 findings)
Fixed in d71158e:
provider-dispatch.md:28declared every model outside the matrix invalid. That broke the 1.5.0 promise inCHANGES.mdthatgrok:grok-4.6rows keep running, so a 1.4 sheet would lose its Grok lanes. The sentence is deleted.Writeinto~/.claudeeven with an explicitWrite(//...)orEdit(//...)allow rule; I measured each one. So setup keeps bypass mode. The bypass session now starts with--strict-mcp-configand no MCP servers. The other part of the claim, that candidate setup can modify unsnapshotted files, already holds in dontAsk mode: every case pre-authorizesBash(CLAUDE_TOOLS,recipes.ts:33). The verifier documents that state separation is not an OS boundary (features/isolation.md).Not fixed. These go in an exact-head waiver once no material finding remains:
Verification
Local gate on d71158e. All seven steps exit 0:
bun install --frozen-lockfile,bun run test,bun run typecheck, the manifest parse,PSTACK_STATIC_ONLY=1 bash tests/skill-collision-repro.sh,claude plugin validate plugins/pstackandclaude plugin validate ..Live gate. An agent ran
verify.sh run --pr 115 --runner-route codex:gpt-6.1-sol@max --runner-route codex:gpt-6.1-sol@ultrafrom this PR's head c3f8e45, from a non-TTY shell. It exited 0. All 58 features passed in Claude Code 2.1.289, and all 58 passed in Codex CLI 0.160.0. The verifier setlive-gate=successwith this evidence comment. In the Claude half, the runner feature dispatched external Codex lanes atgpt-6.1-sol@maxand@ultra. Each receipt wascompleteand namedgpt-6.1-solat the requested effort. Codex does not report the model, so the evidence ismodelEvidence: pinned-argv. The Claude half took 86 minutes and $28.46 in Claude spend on the earlier attempt at 26c1912. #138 tracks cutting that.Native Codex probes (#102 acceptance). These ran on the installed candidate. c3f8e45 was installed with
codex plugin marketplace addandcodex plugin add pstack@open-pstackinto a throwawayCODEX_HOME, whoseauth.jsonlinks to the daily one. Acodex execsession invoked$pstack:poteto-modeand dispatched one native subagent for each effort.pstack:poteto-modeskill andspawn_agentwithmodel: gpt-6.1-sol, reasoning_effort: max. The child rollout's turn context ismodel=gpt-6.1-sol effort=max, and the child repliedSOL-max-OK.spawn_agentwithreasoning_effort: ultra. The child rollout ismodel=gpt-6.1-sol effort=ultra, and the child repliedSOL-ultra-OK.🤖 Generated with Claude Code