Skip to content

feat(systems): single-select capabilities — one tool per job - #331

Merged
deepiq2022 merged 8 commits into
mainfrom
feat/exclusive-capabilities
Aug 13, 2026
Merged

deepiq2022 merged 8 commits into
mainfrom
feat/exclusive-capabilities

Conversation

@deepiq2022

Copy link
Copy Markdown
Contributor

Summary

  • Exclusive capability groups over the existing systems set: pure kExclusiveGroups (hex-flavor: Verdant vs generic hexcrawl toolkit) + normalizeExclusive + kExclusiveSystemIds in campaign_surfaces.dart. The creation wizard and Edit-systems dialog render group members as radio ChoiceChips (+ None); normalization runs ONLY on wizard create and dialog save, so legacy both-on campaigns keep working untouched. A guard test pins the wiring against the silent-unreachable trap when a second group is added.
  • One party paradigm per campaign: new SessionMeta.partyTool ('emulator' | 'behavior' | 'sidekick', omitted from JSON at default) with setPartyTool + partyToolProvider; PartyToolsPane now renders exactly the chosen surface (in-pane SegmentedButton retired; switch lives in the wizard's party-tool-<id> row and the edit dialog's edit-party-tool-<id> row). duplicateSetup carries the field. Unchosen panes keep their persisted state.
  • One dungeon generator at a time: the Dungeon pane hides the hexcrawl toolkit's generation controls while classic-dungeon (Roll 4 Ruin) is enabled.
  • Spec Part 2 of docs/superpowers/specs/2026-08-12-streamline-library-exclusive-capabilities-design.md (PR 2 of 3 in the streamline epic).

Test plan

  • flutter analyze clean
  • flutter test passes (2400 tests)
  • Manual: wizard → pick Hexcrawl flavor + Party tool; verify only chosen surfaces show
  • Manual: legacy campaign with both verdant+hexcrawl still shows both until Edit systems → Save

🤖 Generated with Claude Code

jttaylor63 and others added 8 commits August 12, 2026 23:22
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
PartyToolsPane now renders exactly one of Emulator/Behavior/Sidekick
based on partyToolProvider (campaign config), dropping the in-pane
SegmentedButton and initial param — the paradigms answer the same
question, so the choice belongs at campaign config, not pane state.
One dungeon generator at a time: when the classic (Roll 4 Ruin)
crawler owns the Dungeon pane, the hexcrawl toolkit's room/dungeon
generation buttons fold away instead of stacking a second generator.
…p wiring

duplicateSetup copied systems/genre/dndEdition but dropped partyTool, so
duplicating a campaign silently reverted its party paradigm to the emulator
default. Also adds a regression guard: both the wizard and edit-systems
dialog hardcode their exclusive-group radio row to
kExclusiveGroups['hex-flavor'], so a future second group would be silently
unreachable — pin today's kExclusiveSystemIds to a rendered chip in both
dialogs. Plus a stale comment fix in tracking_tab.dart describing the retired
internal-switch party model.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@deepiq2022
deepiq2022 merged commit b6e0308 into main Aug 13, 2026
1 check failed
@deepiq2022
deepiq2022 deleted the feat/exclusive-capabilities branch August 13, 2026 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants