Repository navigation
Description
Overview
Every Playbook — Linear-style (shipped, PR #2777), Jira-style (#2652, Backlog), spec-driven development (#2659, Backlog) — installs schemas, vocabulary extensions, Plays, and skills, but none installs a default view: a pre-configured board/list a user sees immediately, with no setup of their own. A Linear-style install today gives you issue/cycle schemas and working validation Plays, but no "Issues by Status" Kanban board — a user has to build one by hand from the generic query UI.
This issue was rewritten after the original design's assumptions were checked against the real, now-shipped implementation (packages/core/src/methodology/, not the pre-implementation packages/desktop-app/src/lib/methodology-recipes/*.ts TS-step-array design #2596 originally specified). The mechanism is Rust, not TypeScript, and its actual shape — MethodologyPlaybook's four typed Vec fields, install_playbook's tiered execution with id-collision re-keying — is more concrete than this issue's first draft assumed. This version targets that real shape directly.
Problem Statement
MethodologyPlaybook (packages/core/src/methodology/mod.rs:37-58) has exactly four content fields — schemas: Vec<SchemaStep>, field_value_extensions: Vec<FieldValueExtension>, plays: Vec<PlayStep>, skills: Vec<NodeTemplate> — confirmed via direct inspection. There is no views field. install_playbook (packages/core/src/methodology/install.rs:39-149) executes exactly these four tiers in order and nothing else. A Playbook install therefore structurally cannot produce a seeded view today — not a missing content item, a missing field on the struct itself.
QueryNode (see ../nodespace-docs/components/query-node.md, written alongside this issue) is a real, already-shipped, general-purpose mechanism: a plain node (node_type: "query") with properties.targetType/filters/sorting/limit defining what it shows, and properties.viewConfig: { lastView, kanban?: { groupBy } } defining how it renders — confirmed current-and-authoritative via packages/desktop-app/src/lib/components/query/query-node-model.ts's own doc comment. Because view config travels on the node's own properties rather than per-user local storage, a Playbook can seed a fully pre-configured board the same way it seeds any other node.
A Playbook is not limited to one view — different schemas within the same bundle warrant different boards (Linear's issue-by-status Kanban is a different view from a cycle-by-date list), so the new field must be a Vec, not a single optional view.
Proposed Solution
1. Add a views tier to MethodologyPlaybook
/// One `create_node` call producing a seeded `query` node.
pub struct ViewStep {
/// Stable id for the view node.
pub view_id: &'static str,
/// Display name, stored as the node's content.
pub name: &'static str,
/// A `QueryDefinition` + `viewConfig` payload — `targetType`, `filters`,
/// `sorting`, and `properties.viewConfig` (list/table/kanban, `groupBy`
/// for kanban).
pub params: serde_json::Value,
}Added as a fifth field on MethodologyPlaybook, after skills (views may plausibly want to reference a skill's existence in a future iteration, and schemas/plays must exist first regardless — ordered last is the conservative choice, no known reason it must run earlier).
2. Wire the tier into install_playbook
A views loop follows the same shape as the existing plays loop (install.rs:90-108) almost exactly: create_node_resolving_collisions(node_service, view.view_id, "query", view.name, params) — this function (install.rs:240) is already fully general over node_type, so it needs zero changes, only a new call site.
3. Add re-key propagation: rewrite_view_step_ids
A view's targetType (and any filters[].property-adjacent id reference, though filters target field names within a type, not other schema ids, so likely only targetType needs rewriting — confirm during implementation) must follow the same renames map every other tier already threads through (schemas/field_value_extensions/plays each have their own rewrite_*_step_ids helper — see rewrite_update_schema_step_ids at install.rs:367, rewrite_play_step_ids at install.rs:398 — for the established pattern: rewrite only known id-bearing keys, never a blanket walk, since a filter's content/value position is free-form vocabulary that could coincidentally contain a schema id string). If a Playbook's issue schema collides and gets suffixed to issue__2, a seeded "Issues by Status" view must follow, not silently filter a stranger's schema.
4. Seed at least one view for the shipped Linear Playbook
packages/core/src/methodology/linear.rs's playbook() function gains views: vec![...] — at minimum an Issues-by-Status Kanban (targetType: "issue", viewConfig: { lastView: "kanban", kanban: { groupBy: "status" } }). A Cycles list is a plausible second view; decide count/shape during implementation, this issue does not mandate a specific number.
5. Add view-seeding to Jira (#2652) and spec-driven development (#2659)
Both are still Backlog/unimplemented. Add a view-seeding acceptance criterion to each so their eventual implementation includes views: vec![...] from the start rather than needing a second retrofit pass. Note: a natural Jira Sprint board ("tasks in the active sprint") filters by the related sprint's own status — that shape needs #3137 (cross-relationship QueryFilter) first; #2652's seeded view(s) may need to be scoped to same-node-property filters only (e.g. an Issues-by-Status board) until #3137 lands, or block that specific view on it.
Architecture Impact
No ADR governs MethodologyPlaybook/QueryNode view-config today — confirmed via search of ../nodespace-docs/decisions/ for both terms, none found specific to either mechanism. This issue does not reverse or extend an existing decision; it's new Playbook-content-authoring capability on top of two existing, unrelated mechanisms (the Playbook install pipeline, QueryNode). No companion ADR required.
Acceptance Criteria
-
ViewStepstruct added;MethodologyPlaybookgainsviews: Vec<ViewStep> -
install_playbookexecutes aviewstier afterskills, reusingcreate_node_resolving_collisionswithnode_type: "query"— no changes needed to that function itself -
rewrite_view_step_ids(or equivalent) follows a schema re-key into a view'stargetType, mirroring the existing per-tier rewrite-helper pattern (key-targeted, not a blanket walk) - The shipped Linear Playbook (
packages/core/src/methodology/linear.rs) seeds at least one view (an Issues-by-Status Kanban board) - Add methodology recipe: Jira-style work tracking (Epic/Story/Bug hierarchy, Sprints) #2652 (Jira-style Playbook) gains a view-seeding acceptance criterion, noting the sprint-board caveat above
- Add methodology recipe: Spec-driven development (Spec/Plan/Task lineage with approval gating) #2659 (spec-driven development Playbook) gains a view-seeding acceptance criterion, or an explicit documented decision that no default view suits its shape
- A re-keyed schema (e.g.
issuecolliding, becomingissue__2) produces a correctly-retargeted seeded view, not one silently filtering the pre-existing stranger schema (test) - Tests pass (
bun run test:all) - Code passes
bun run quality:fix
Technical Specifications
Reference Files
packages/core/src/methodology/mod.rs:37-58—MethodologyPlaybook,SchemaStep/FieldValueExtension/PlayStep— the patternViewStepfollowspackages/core/src/methodology/install.rs:39-149—install_playbook's four existing tiers; theplaysloop (~90-108) is the closest structural precedent for the newviewslooppackages/core/src/methodology/install.rs:240—create_node_resolving_collisions— already general overnode_type, reused as-ispackages/core/src/methodology/install.rs:367,398—rewrite_update_schema_step_ids,rewrite_play_step_ids— the per-tier rewrite-helper patternrewrite_view_step_idsfollowspackages/core/src/methodology/linear.rs:51-—playbook(), the shipped Linear Playbook gaining aviewsfield../nodespace-docs/components/query-node.md—QueryNode/viewConfigdata shape (written alongside this issue's rewrite)packages/desktop-app/src/lib/components/query/query-node-model.ts—QueryViewConfigState, the authoritativeviewConfigshape
Dependencies
None — the underlying QueryNode/install_playbook mechanisms are already shipped; this is additive to both.
Related Issues
- Add methodology recipe mechanism (TS source, generated CLI reference doc) with Linear-style as first recipe #2596 (original Playbook-mechanism design issue, closed/superseded by the real Rust implementation this issue targets)
- Add methodology recipe: Jira-style work tracking (Epic/Story/Bug hierarchy, Sprints) #2652 (Jira-style Playbook, Backlog) — gains a view-seeding acceptance criterion from this issue
- Add methodology recipe: Spec-driven development (Spec/Plan/Task lineage with approval gating) #2659 (spec-driven development Playbook, Backlog) — gains a view-seeding acceptance criterion from this issue
- Add cross-relationship QueryFilter: filter nodes by a related node's own properties #3137 (cross-relationship
QueryFilter) — Jira's most natural default view (Sprint board, filtered by the sprint's own status) needs this; see Proposed Solution §5 - Serve Playbook usage guidance from the graph, not a shipped file #2852 (serve Playbook usage guidance from the graph) — same "Playbook install is incomplete without X" pattern, different X; no direct dependency
Non-Goals
- New view types beyond list/table/kanban — all three already exist (
kanban-view.svelte/table-view.svelte/list-view.svelte) and are sufficient for every Playbook designed so far - Per-user view-config override behavior — unaffected;
viewConfig's existing "travels with the query, last-view-wins" design is unchanged, this issue only seeds an initial default PlaybookNode/bundle-identity tracking (Implement PlaybookNode as installable bundle record with display identity #2570, deferred) — a seededquerynode is ordinary graph data like any other Playbook-seeded content, no dependency
Activity
malibio commentedon Sep 27, 2026
Frontend: 281 files / 5444 tests passed
Seed saved views as part of a Playbook install (closes #3135)