Skip to content

Allow per-model effort selection in setup-pstack #15

Closed

Description

@ericlitman

Problem

Open Pstack already carries effort in every provider-qualified descriptor, and the external runner already accepts low, medium, high, xhigh, and max. The supported setup path still fixes the frontier models to Fable=max, Sol=max, Grok=xhigh, and Opus=xhigh. That makes Fable unnecessarily expensive for operators who do not have upstream's token budget, and a manual claude:claude-fable-5@xhigh edit has no matching Claude-native agent today.

This is an Open Pstack adaptation only. Do not change Lauren Tan's Cursor pstack or its defaults.

Fable-reviewed direction

Fable returned Ship: keep the existing <provider>:<model>@<effort> sheet as the only runtime configuration and make rerunning setup-pstack the reconfiguration surface.

  • Load the current parent-specific sheet before probing. Present one effort choice for each current frontier model, using the current choice when present and the upstream levels as first-run defaults.
  • Allow low, medium, high, xhigh, or max only where the selected model/provider supports it. Probe the four exact selected model+effort pairs, not every possible pair. A failed selection must not replace the active sheet.
  • Expand each model's chosen effort into the existing fully qualified per-role descriptors. Do not add an effort-default block, runtime resolver, compatibility alias, daemon, or second source of truth.
  • Treat mixed efforts for the same model in a manually edited sheet as inconsistent setup state and require normalization; do not invent precedence.
  • Preserve same-provider-native routing. Codex continues to pass reasoning_effort dynamically. External routes continue to use the existing generic runner. Claude Code maps each Claude descriptor to a plugin subagent whose frontmatter pins the selected model and effort.
  • Ship the finite Claude-native matrix: pstack-fable-{low,medium,high,xhigh,max} and pstack-opus-{low,medium,high,xhigh,max}. Do not route non-default Claude-parent work through an external Claude CLI and do not generate mutable user-scoped agent files.
  • Keep Fable=max, Sol=max, Grok=xhigh, and Opus=xhigh as first-run defaults. A rerun may change any model; Eric's intended selection is Fable=xhigh.

Fable identified upstream-sync drift as the main risk: a later Cursor sync could silently restore hard-coded Fable=max or leave a descriptor without a native agent. Encode the configurable-effort behavior and complete native mapping in regression checks, and record this local adaptation in the provenance/change documentation used during upstream syncs.

Acceptance criteria

  • setup-pstack loads the current sheet before model probes and presents the current/default effort for each of the four frontier models.
  • The operator can select a supported effort independently for Fable, Sol, Grok, and Opus.
  • Setup probes only the exact selected pairs and does not overwrite a working sheet when a selected pair is unavailable.
  • The generated sheet retains the existing provider-qualified per-role descriptor format and uses one consistent effort per model.
  • Running setup again with no changes produces identical sheet content; changing Fable from max to xhigh updates every Fable role and no unrelated assignment.
  • Claude Code has a native agent for every supported Fable and Opus effort, and provider dispatch maps every Claude descriptor to the exact model/effort definition.
  • Codex-native and all external routes pass the chosen effort exactly; no fallback or same-provider external route is introduced.
  • The upstream frontier effort levels remain the first-run defaults and Lauren's upstream tree is unchanged.
  • Static regression checks fail if configurable setup wording/validation disappears or any supported Claude model+effort pair lacks a matching native agent.
  • The exact packaged candidate is installed and exercised from fresh Claude Code and Codex parents. Fable=xhigh is proven by native transcript evidence in Claude and external argv/receipt evidence in Codex.
  • The reconfiguration smoke runs setup unchanged, then changes Fable effort, then reads back the active sheet and routing block in each harness.
  • Bun tests, strict typecheck, static invariants, plugin validation, and exact-candidate installed behavior pass before merge or release.

Source refs

Activity

  1. added
    enhancement
    on Aug 25, 2026
  2. ericlitman commented on Aug 25, 2026

    @ericlitman
    OwnerAuthor

    Triage decision

    Outcome: Ready. The problem is real, the existing descriptor sheet is the correct configuration boundary, and the work is implementable without another product decision. The acceptance criteria below replace the ambiguous proof claims in the issue body for implementation and review purposes; the issue body itself remains unchanged.

    The lead adjudication keeps the explicitly requested scope: effort is independently configurable for Fable, Sol, Grok, and Opus. A Fable-only patch would leave the same hard-coded policy in three other model families and would not satisfy this issue.

    Why this is still a real problem

    • setup-pstack is intentionally rerunnable and idempotent, but it currently hard-codes Fable=max, Sol=max, Grok=xhigh, and Opus=xhigh. It probes those fixed descriptors before it loads the active parent-specific sheet, so rerunning setup is not yet a reconfiguration surface.
    • The lower layers already carry effort explicitly. The descriptor parser accepts low|medium|high|xhigh|max; the external runner maps effort to Claude --effort, Codex model_reasoning_effort, and Grok --reasoning-effort; Codex-native dispatch is dynamic.
    • Claude-parent dispatch is the missing structural piece. It has only pstack-fable-max and pstack-opus-xhigh, while same-provider external execution is deliberately rejected. Selecting Fable=xhigh on a Claude parent therefore has no valid route today.
    • The user-facing problem is lack of control over requested effort and token budget. The issue's phrase “unnecessarily expensive” is a reasonable motivation, but this review found no repository measurement that quantifies the cost difference. The implementation must not present a measured savings claim unless it adds evidence.

    Corrected scope

    This issue owns:

    1. Loading the active sheet before setup chooses which exact descriptors to probe.
    2. Independent requested-effort selection for Fable, Sol, Grok, and Opus.
    3. Expansion of those four choices into the existing provider-qualified per-role sheet.
    4. The finite Claude-native Fable/Opus agent inventory and exact descriptor-to-agent dispatch map.
    5. Semantic regression checks, runner argument tests, provenance/change documentation, and exact packaged-candidate validation in both supported harnesses.

    This issue does not introduce a second configuration schema, runtime effort resolver, mutable user-scoped agents, compatibility aliases, a daemon, per-role effort selection, implicit timeouts, weaker-model fallback, or same-provider external execution. It does not change Lauren Tan's upstream defaults or tree.

    Acceptance criteria

    • setup-pstack loads and parses the current parent-specific sheet before deciding which model+effort pairs to probe. On first run it uses Fable=max, Sol=max, Grok=xhigh, and Opus=xhigh.
    • Setup presents one independent requested effort choice for each of Fable, Sol, Grok, and Opus. The input domain is low, medium, high, xhigh, and max; the current consistent value is the rerun default.
    • If a manually edited sheet contains multiple efforts for one model family, setup reports the conflicting roles and requires the operator to choose one normalized value. It does not invent a precedence rule and does not write while the choice is unresolved.
    • Setup probes only the four exact selected model+effort pairs. A failed or unavailable pair is reported by provider, and the existing sheet plus mirrored Codex routing block remain byte-for-byte unchanged. A failed first run creates neither artifact.
    • A successful run expands each selected effort into the existing fully qualified per-role descriptors, with one consistent effort per model family and no new source of truth.
    • An unchanged rerun produces normalized-identical sheet and mirrored routing content. Changing each model family separately updates every role assigned to that family and no unrelated assignment; the installed smoke covers Fable, Sol, Grok, and Opus one at a time.
    • Every selectable Fable and Opus pair has a checked-in Claude-native agent whose frontmatter pins that exact model and requested effort, plus one total descriptor-to-agent mapping. A pair that cannot be exercised through the exact installed Claude candidate is not offered or mapped.
    • Codex-native Sol dispatch sets the selected model_reasoning_effort; external Sol, Grok, Fable, and Opus routes pass the selected effort through their existing provider-native flag/config path. No provider dropout is silently replaced by another model, effort, or route.
    • Provider receipts, argv evidence, frontmatter, and transcript agent names are described honestly as proof of the requested effort and exact route. They are not claimed to reveal a provider's hidden applied reasoning depth.
    • Runner tests cover low, medium, and high in addition to the current high-end examples, asserting provider-specific argument/config construction without redesigning the runner.
    • Semantic static checks derive from the declared selectable matrix and fail when a selectable Claude pair lacks an agent, an agent lacks an exact dispatch mapping, a mapping has no declared pair, or the first-run default quartet drifts. Do not use a free-prose grep as the primary invariant.
    • CHANGES.md records configurable effort and preserved first-run defaults. NOTICE.md records the local agent/mapping adaptation and its provenance boundary for later upstream syncs.
    • From a fresh install of the exact candidate commit in both Claude Code and Codex: run unchanged setup, reconfigure all four model families independently with readback, exercise every shipped Claude-native Fable/Opus pair at least once, and capture native transcript agent-name evidence plus external argv/receipt evidence.
    • bun install --frozen-lockfile, Bun tests, strict typecheck, manifest validation, static invariants, and the exact-candidate installed behavior all pass before merge or release.

    Evidence and risks

    Provider capability boundary

    • OpenAI documents GPT-5.6 Sol reasoning values including low, medium, high, xhigh, and max. The repository intentionally excludes none from its shared five-level descriptor grammar.
    • Claude's current effort input domain includes low, medium, high, xhigh, and max, but supported behavior is model-dependent and unsupported values may fall back. The repository's Fable 5/Opus 5 route names are not a substitute for exact installed-candidate proof.
    • The installed Grok CLI accepts --reasoning-effort, and the runner already passes it, but this review did not find a published per-model support matrix. The exact selected-pair probe is therefore the availability gate.

    These facts resolve the review disagreement without blocking on a new product choice: the UI configures requested effort in the existing five-level domain, exact selected routes must probe successfully, and evidence must not overclaim hidden provider behavior.

    Main implementation risks

    • Upstream drift: a later sync could restore fixed setup wording or add a selectable descriptor without a native Claude agent. Guard the declared matrix, defaults, agent inventory, and dispatch mapping semantically; record the adaptation in CHANGES.md and NOTICE.md.
    • Partial write: probing after mutation could strand an invalid sheet. Load current state, collect/normalize choices, probe all four exact pairs, then perform one successful write.
    • Requested versus applied effort: provider flags and receipts prove the request, not internal token allocation. Use that language in setup, tests, receipts, and release evidence.
    • False idempotence: prose-level intent is insufficient. Read back normalized installed artifacts after both unchanged and changed runs in each harness.

    Verification targets

    Repository checks:

    cd plugins/pstack/skills/poteto-mode/scripts
    bun install --frozen-lockfile
    bun run test
    bun run typecheck
    
    cd ../../../../..
    PSTACK_STATIC_ONLY=1 bash tests/skill-collision-repro.sh
    bun -e 'const p = await Bun.file("plugins/pstack/.claude-plugin/plugin.json").json(); if (!p.name || !p.version) process.exit(1)'

    Installed-candidate checks must use a fresh packaged install from the exact commit, not the source checkout. In each Claude Code and Codex harness, retain the before/after sheet and mirrored routing block, the exact provider probe result, and the resulting native transcript or external receipt. A head change invalidates earlier candidate evidence.

    Source references

    Triage provenance

    • Source revision: GitHub issue database ID 5251236888, node ID I_kwDOUCtHVM8AAAABOP-EGA, observed updated_at=2026-08-25T22:19:32Z, normalized body SHA-256 ba75e765b373d9a37e87af393b2842477ce5813378796945918c18b3acb98338.
    • Source comments at review start: none.
    • Repository state reviewed: main at 4b62a7f; no implementation of Issue 15 was present. The unrelated untracked social-preview asset was left untouched.
    • Required explanation pass: Fable 5/max, model verified, read-only; it traced setup order, descriptor parsing, external flags, native dispatch, receipt limits, and static checks.
    • Independent premise review: Fable 5/max, GPT-5.6 Sol/max, Grok 4.6/xhigh, and Opus 5/xhigh all completed; no provider dropped out.
    • Reviewer outcomes before adjudication: Fable ISSUES / READY; Sol ISSUES / BLOCKED; Grok ISSUES / READY; Opus ISSUES / READY.
    • Agreement: keep the sheet as the sole configuration boundary; load it before probes; add Claude-native coverage; probe/fail closed; strengthen semantic and installed-candidate proof; do not call request evidence proof of applied effort.
    • Disagreement resolved by the lead: Sol's block asked for an allowed-effort product decision; current primary-source capability plus exact-pair fail-closed probes make the five-level requested-effort contract executable. Opus's smaller Fable-only alternative was rejected because the authoritative issue scope explicitly includes Sol, Grok, and Opus.
    • Rejected alternatives: Fable-only selection, a second effort-default block, runtime inference, generated user agents, same-provider external Claude, fallback to another effort/model, and receipts as applied-depth proof.

    No implementation was performed during triage.

  3. added a commit that references this issue on Aug 26, 2026
    74c5cb2
  4. added a commit that references this issue on Aug 30, 2026
    4f51bf1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions