Repository navigation
Closed
Labels
Description
Want
A new left-navigation section, "Plays", modeled on the AI Chats section. It lists the plays in the database with each one's state. Clicking a play opens it in PlayNodeViewer, which holds the play's on/off switch and Edit (#3518).
Re-scoped 2026-10-03 (ADR-090): navigation only. The on/off switch and the seeded-play warning moved to PlayNodeViewer (#3518). Rule editing is the Edit chat (#3520). Frontend only. The backend it relies on (typed PlayNode, enabled, suspensions, generated TypeScript) has landed.
Re-scoped 2026-10-04 (ADR-092): no starter Playbooks. The installable methodologies are removed (#3542), so the section lists plays and offers nothing to install.
Documentation
- ADR-090: the nav lists plays and opens them in the viewer; the switch lives in the viewer
- ADR-092 §9: installable methodologies are removed, so the section offers none
- Playbook System — Viewing and Editing a Play: the Plays navigation section's role
- ADR-087 and Participation: archived plays are hidden; state comes from
enabledand the suspension, neverlifecycle_status - Frontend State & Persistence — sidebar refresh: the debounced sidebar-refresh pattern for live updates
- ADR-049: reactive store classes, no state-syncing effects
- Updates: none expected
Decisions
- Gated behind the Labs "Playbooks" toggle (
labsFlags.playbooksEnabled), the same way AI Chats is gated bylabsFlags.aiChatEnabled. The toggle only hides UI: plays keep running whether it is on or off. - Plays are the workflows. There are no Playbooks to start from: the rules NodeSpace ships are seeded core plays, listed here like any other.
- The nav row shows state; it doesn't change it. The switch is in
PlayNodeViewer.
What exists to build on
- Pattern: the AI Chats section in
layout/navigation-sidebar.svelte(Collapsible accordion,{#if labsFlags.aiChatEnabled}, expanded state persisted inlayoutStore), plus its list storestores/ai-chats.svelte.ts(load, display cap, database-switch invalidation). - Typed
PlayNode(generated):content(title),description,enabled,suspendedReason/suspendedMessage/suspendedAt. - Labs flag: update the
playbooksEnableddoc comment instores/labs-flags.svelte.ts(it says the flag gates only the Settings category). - Live updates:
utils/collection-refresh.tsdebounced refresh helpers, called fromtauri-sync-listener.tsandbrowser-sync-service.ts, as for AI chats. Add one for plays.
Acceptance criteria
- "Plays" section in the left nav, shown only while Labs "Playbooks" is on; expanded/collapsed state persisted like AI Chats
- Lists every participating play (core and user-written) by title; archived plays are hidden (participation rule)
- Each row shows its state:
- on:
enabled, not suspended; - off:
enabled = false; - suspended:
suspendedAtset. A suspended row showssuspendedMessageas a tooltip
- on:
- Rows have no switch and make no writes
- Clicking a play opens it (in
PlayNodeVieweronce Add PlayNodeViewer: a play's rules as a read-only workflow, with its on/off switch and Edit #3518 lands; the generic viewer until then) - The list updates live when plays are installed, removed, enabled or disabled (CLI or viewer), or suspended by the engine, with no reload (tests drive an out-of-band
node:updatedfor each) - Turning Labs "Playbooks" off hides the section and nothing else: no play's
enabledchanges - The Settings → Playbooks section and its
settings-categories.tsentry are removed, if Make spec, plan and decision core types with checklist criteria and seeded rules; remove the installable methodologies #3542 has not already removed them - Tests:
- gating;
- listing with archived plays excluded;
- the three row states;
- a live update on suspension
-
bun run quality:fixclean;bun run test:changedpasses
Related Issues
- Add PlayNodeViewer: a play's rules as a read-only workflow, with its on/off switch and Edit #3518 (
PlayNodeViewer: the switch and Edit) - Let a native chat pin a skill and a node, and open a play's Edit chat bound to it #3520 (Edit chat)
- Make spec, plan and decision core types with checklist criteria and seeded rules; remove the installable methodologies #3542 (removes the installable Playbooks this section once offered)
Activity
malibio commentedon Sep 29, 2026
Frontend baseline: 294 files / 5357 tests passed
malibio commentedon Sep 30, 2026
Blocked: no implementation started. While planning, we found Play isn't strongly typed and uses the generic lifecycle_status as its on/off switch. The decision is that Play gets its own user-controlled enable property on a typed PlayNode, as part of a broader alignment of core node types (single definition in nodespace-types, typed end to end). This issue will be re-scoped to frontend-only and made dependent on the Play typing/enable issues once they're filed.
malibio commentedon Oct 1, 2026
Re-scoped to frontend only, following the node-type architecture decisions (ADR-086 to ADR-089, accepted 2026-10-01).
The original premise was that "enable/disable needs no new API" because it writes
lifecycle_status. That no longer holds:lifecycle_statusgovernance only. A play gets its ownenabledswitch, and engine failures become device-local suspensions instead of in-memory disables.The backend work is now:
enabled, suspension, the runnable check, CLI and skill guidance;PlayNodeandupdate_play_node;This issue starts once those have merged. It stays Blocked until then.
[-]Add a 'Plays' navigation section: list plays with enable/disable (Labs Playbooks-gated)[/-][+]Add a 'Plays' navigation section: list plays with their state and open them (Labs Playbooks-gated)[/+]malibio commentedon Oct 4, 2026
Baseline — Frontend: 315 test files passed (5690 tests)
Add a Plays navigation section: list plays with their state and open …