Skip to content

Support explicitly selected model-family subsets in setup-pstack #33

Closed as not planned

Description

@simonbloom

The current setup requires Fable, Sol, GLM, and Opus to all probe successfully before it writes any configuration. That makes a supported Sol + GLM installation impossible even though the README says core workflows can run with fewer models.\n\nAdd an explicit active-family selection to setup-pstack. Probe, persist, and smoke only the selected families; preserve fail-closed behavior for every selected family; require all documented role rows; and reject descriptors from inactive or unprobed families. Keep the four-family profile as the first-run default.\n\nImmediate user case: Codex parent with GPT-5.6-Sol max as the primary/final lane and Z.ai Coding Plan GLM-5.3-Flash max for implementation/exploration. Claude remains installed but is not a dependency, and Grok remains outside the configured matrix.

Activity

  1. simonbloom commented on Aug 31, 2026

    @simonbloom
    Author

    Implemented the active-family subset contract locally on feature/opencode-glm-adapter, using the explicitly approved existing GLM adapter working tree as the baseline. The source candidate keeps the complete Fable/Sol/GLM/Opus example as the first-run proposal, makes the active set explicit, derives the rerun proposal from the current sheet, asks efforts and probes only active families, requires explicit replacements when deactivating lanes, rejects inactive/unprobed descriptors, and smokes every active family with an independent cross-provider judge when available.

    Source validation completed on the candidate: 163 passing, 0 failing; strict TypeScript checks passed; PSTACK_STATIC_ONLY=1 bash tests/skill-collision-repro.sh passed; git diff --check passed. Candidate binary diff checksum is c951d274af5973cf4c768001d46a5c6e06bd5bfc3f676397f287e9e87ceebda1. Installed-cache and live Sol+GLM verification are being completed before this is considered done. No commit, push, PR, merge, tag, or release was created.

  2. simonbloom commented on Aug 31, 2026

    @simonbloom
    Author

    Installed and live-verified the active-family subset candidate from a real Codex parent. Both existing 1.2.1 caches retain 52 skills, and only setup-pstack/SKILL.md, provider-dispatch.md, and model-matrix.test.ts were refreshed from the validated source candidate.

    Configured the explicit active set codex:gpt-5.6-sol@max + opencode:zai-coding-plan/glm-5.3-flash@max. The native Sol max probe passed. The external OpenCode GLM max probe passed with the exact model and variant and pinned-argv evidence. The installed behavioral smoke passed its native Sol candidate, external GLM candidate, and a separate GLM cross-judge launched only after both candidates were terminal. The Codex sheet contains all 16 documented role rows, Why/Reflect inherit the parent, its bounded AGENTS block is byte-identical, and multi_agent is true. No inactive family was probed or persisted; no Claude sheet was created.

    Model-sheet SHA-256: 34bd2c31deff0ef1d79ef28d884a3207ac3ac0e33d17f63556ab4a6f93210a5d. Evidence directory: /Users/simonbloom/.codex/pstack-setup-receipts/2026-08-31-sol-glm. No commit, push, PR, merge, tag, or release was created.

  3. mast-factory commented on Sep 9, 2026

    @mast-factory
    Type feature request — Add an explicit active-family subset to the supported setup contract.
    Route Await approval
    Severity Medium — supported setup is unavailable unless every default family can be probed.
    Confidence High
    Effort Medium — setup sequencing, matrix invariants, behavioral smoke rules, tests, and user-facing docs must stay aligned.
    Impact Enables installations that have only a supported subset of providers and unblocks optional-family work such as #54.
    Next step Maintainer approval, plus a decision whether to land the overlapping active-family implementation in PR #55 or split that behavior into dedicated work for #33.

    Understanding

    setup-pstack should let the operator explicitly choose a non-empty subset of supported model families. A first run must still propose the existing Fable/Sol/Grok/Opus quartet. A rerun should derive its proposed active set from the current role map. Only active families should require effort selection, availability probes, persisted role descriptors, and behavioral smoke coverage. Selected-family failures must remain fail-closed, all documented role rows must remain present, and descriptors from inactive or unprobed families must be rejected.

    The immediate Sol + GLM example also depends on GLM/OpenCode support being present in the model matrix. That adapter is not on current main; this issue's independently reproducible gap is the inability to select a subset of whichever families the installed matrix supports.

    Evidence

    • Current setup explicitly asks exactly four effort questions and probes all four families: plugins/pstack/skills/setup-pstack/SKILL.md:46-50.
    • It requires every matrix family to remain represented in the final role map: plugins/pstack/skills/setup-pstack/SKILL.md:72-74.
    • Writes are gated on all four probes and the behavioral smoke requires all four descriptors: plugins/pstack/skills/setup-pstack/SKILL.md:112-118.
    • The authoritative matrix currently contains only Fable, Sol, Grok, and Opus: plugins/pstack/skills/poteto-mode/references/provider-dispatch.md:9-18.
    • Structural coverage hard-codes that quartet, four matrix rows, and the four-pair setup heading: plugins/pstack/skills/poteto-mode/scripts/runner/model-matrix.test.ts:24-25, :51-58, and :109-112.
    • README says core workflows can be used with fewer models, while setup documents the four-model default: README.md:35 and README.md:83.

    Reproduction

    At checkout c8481f702c11:

    grep -nE 'Ask exactly four|Probe only the four|at least one descriptor from each matrix family|only after all four probes|all four chosen descriptors' \
      plugins/pstack/skills/setup-pstack/SKILL.md

    This returns the mandatory gates at lines 46, 50, 72, 112, and 118. Therefore removing Fable, Grok, or Opus from a role map cannot produce a valid supported setup: validation requires every family, writes wait for all four probes, and completion waits for a four-family smoke. The contract is declarative, so this reproduces the reported limitation without invoking external providers. The targeted Bun test could not be executed in this triage sandbox because Bun is not installed; inspection of the test shows it intentionally locks the same quartet.

    Related work

    Assumptions

    • Active membership should remain derived from persisted role descriptors rather than introducing a second mutable configuration source.
    • At least one concrete model family must remain active so setup can probe and behaviorally smoke the resulting configuration; inherit-parent/auto alone are insufficient.
    • GLM/OpenCode support is separate from the generic subset contract and should not be added under Support explicitly selected model-family subsets in setup-pstack #33 unless maintainers explicitly include that adapter in scope.

    Proposed solution

    1. Mark matrix rows that belong to the unchanged first-run active quartet; treat other supported families as opt-in.
    2. Derive the current active set from normalized concrete role descriptors, then ask the operator which named families to add or remove.
    3. Build the complete final role map before probing. Require explicit replacement of every lane from a removed family and require each added family to appear in at least one role.
    4. Collect efforts, probe, persist, and smoke only the non-empty target set.
    5. Before writing, require equality among the chosen, rendered, and successfully probed family sets; reject inactive-family and unprobed-family descriptors.
    6. Preserve atomic writes, byte-identical unchanged reruns, all documented role rows, parent-owned routing, and the existing four-family first-run output.
    7. Add structural and behavioral coverage for first-run defaults, subset reruns, family removal/addition, inactive-family rejection, failed selected probes, non-empty active sets, and parent-capacity-bounded smoke fan-out.
  4. ericlitman commented on Oct 1, 2026

    @ericlitman
    Owner

    Open Pstack 1.5.0 (#98, v1.5.0) changes setup to ask about roles first, then ask efforts for and probe only the model families those roles use. Leaving this open for explicitly selected family subsets beyond that.

  5. ericlitman commented on Oct 1, 2026

    @ericlitman
    Owner

    Closing as superseded. Open Pstack 1.5.0 (#98) asks about roles first and then probes only the model families those roles use, which covers setting up with a subset. The remaining Sol + GLM case needs an OpenCode provider, tracked in #68 (external helper provider). simonbloom's active-family and GLM work is noted there as prior art.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions