Skip to content

Add a 'Plays' navigation section: list plays with their state and open them (Labs Playbooks-gated) #3270

Closed

Description

@malibio

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

Decisions

  • Gated behind the Labs "Playbooks" toggle (labsFlags.playbooksEnabled), the same way AI Chats is gated by labsFlags.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 in layoutStore), plus its list store stores/ai-chats.svelte.ts (load, display cap, database-switch invalidation).
  • Typed PlayNode (generated): content (title), description, enabled, suspendedReason / suspendedMessage / suspendedAt.
  • Labs flag: update the playbooksEnabled doc comment in stores/labs-flags.svelte.ts (it says the flag gates only the Settings category).
  • Live updates: utils/collection-refresh.ts debounced refresh helpers, called from tauri-sync-listener.ts and browser-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: suspendedAt set. A suspended row shows suspendedMessage as a tooltip
  • Rows have no switch and make no writes
  • Clicking a play opens it (in PlayNodeViewer once 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:updated for each)
  • Turning Labs "Playbooks" off hides the section and nothing else: no play's enabled changes
  • The Settings → Playbooks section and its settings-categories.ts entry 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:fix clean; bun run test:changed passes

Related Issues

Activity

  1. added
    enhancement
    on Sep 28, 2026
  2. self-assigned this
    on Sep 28, 2026
  3. malibio commented on Sep 29, 2026

    @malibio
    CollaboratorAuthor

    Frontend baseline: 294 files / 5357 tests passed

  4. malibio commented on Sep 30, 2026

    @malibio
    CollaboratorAuthor

    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.

  5. malibio commented on Oct 1, 2026

    @malibio
    CollaboratorAuthor

    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:

    • ADR-087 makes lifecycle_status governance only. A play gets its own enabled switch, and engine failures become device-local suspensions instead of in-memory disables.
    • ADR-086 §7: typed clients write a core type's fields only through its typed update.

    The backend work is now:

    This issue starts once those have merged. It stays Blocked until then.

  6. changed the title [-]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)[/+] on Oct 3, 2026
  7. malibio commented on Oct 4, 2026

    @malibio
    CollaboratorAuthor

    Baseline — Frontend: 315 test files passed (5690 tests)

  8. added a commit that references this issue on Oct 4, 2026
    623b78d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementfrontendui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions