Skip to content

Add methodology recipe mechanism (TS source, generated CLI reference doc) with Linear-style as first recipe #2596

Closed

Description

@malibio

Overview

NodeSpace's schema/Play system already lets any user or agent compose custom node types and automation freely (create_schema, update_schema, Play authoring). This issue adds a small, concrete demonstration of that composability using developer work-tracking workflows people already recognize (Linear-style, Jira-style, spec-driven) — not a new platform capability, just canned, well-designed sequences of calls to capabilities that already exist or are separately tracked as prerequisites (see Dependencies).

This issue supersedes its own earlier framing. An earlier draft of this body described a Linear recipe that mutated task.status/task.priority directly, with no distinct issue type — node_type stayed "task" throughout. That framing is now obsolete: ../nodespace-docs/decisions/078-schema-extends-relationship-for-field-composition.md (ADR-078) was designed specifically because a Linear-style Issue and, hypothetically, an unrelated "marketing campaign task" both want to specialize task differently, and nothing let NodeSpace tell them apart or give each its own real identity. This issue is rewritten against that finalized design.

Problem Statement

A new NodeSpace user has no fast way to see the product's value in a workflow they already know. Typing out an issue schema, a cycle schema, extending task's status vocabulary, and writing rollover/validation Plays by hand is a reasonable thing for NodeSpace to demonstrate, but nobody should have to author it from scratch on day one.

A second, related gap surfaced during this recipe's design: schema/field descriptions (see #2653) only ever explain a single schema in isolation ("what is epic.target_date"). Nothing teaches an agent the system-wide narrative a methodology recipe actually represents — how an Issue relates to a Cycle, what "starting a cycle" means as a sequence, why a status change gets rejected by a validation Play. That knowledge is inherently cross-schema and belongs to the recipe, not to any one schema's own description.

Proposed Solution

A canonical, NodeSpace-authored (but user-editable) TypeScript recipe file per methodology — an ordered array of typed steps (create_schema, add_field_values, create_play, etc.) — with exactly two consumers:

  1. GUI (onboarding wizard step + a re-triggerable Settings action): executes the TS step array directly, each step dispatched to the corresponding existing Tauri command (create_schema, update_schema/add_field_values, Play-install), the same pattern configure_skill already uses. Includes collision handling: if a step's target schema id already exists, retry with a deterministic suffix (cycle → cycle__2, first free), and surface what happened in the result shown to the user — never silently adopt or silently overwrite an existing schema, and never block on a confirmation dialog either; auto-resolve and disclose.
  2. External agent (CLI-capable, or MCP-only — both are already-generic transports over the same CLI verbs, packages/skill/shims/* and packages/cli/src/commands/mcp.rs's passthrough tool respectively, so neither needs new capability-specific work): reads a generated reference doc, packages/skill/references/<methodology>-recipe.md, phrased as literal nodespace schema create ...-style CLI-verb steps, produced by a small generator script from the canonical TS source. SKILL.md gets a short pointer entry into it, distributed to .claude/skills/nodespace/references/ via the existing install_skill mechanism at skill-install time — no new packaging logic.

The local/native in-process agent is explicitly NOT a third consumer of this installation mechanism — its tool registry (packages/agent/src/local_agent/tools.rs) has no Tauri access and no CLI/subprocess access (confirmed: it calls straight into nodespace_core primitives), and recipe installation is only reachable via the GUI itself, same as any other end user (i.e., a user triggers the install from Settings/onboarding in the Tauri app — the local agent never runs the install steps). This is scoped narrowly to who executes installation — it says nothing about post-install usage guidance, which is addressed separately below.

Seeded skills for post-install usage guidance

Distinct from the install-time mechanism above: once issue/cycle exist and their Plays are active, any agent (local or external — both reach seeded skill nodes via the existing find_skills/routing mechanism, ADR-038/ADR-057) needs guidance on using them correctly — this is the system-wide, cross-schema narrative #2653's schema-description plumbing cannot provide by itself (see Problem Statement). This is ordinary recipe content, not new core infrastructure: skill is already a core schema, PlaybookNode.seed_node_ids (ADR-075) already has room to track exactly this, and find_skills already discovers whatever skill nodes exist regardless of who authored them.

Seed several small, narrowly-scoped skills — not one broad "Linear methodology" skill — mirroring the existing 11 core skills' own shape (each task-scoped: "Node Creation," "Relationship Management," etc., never one monolithic "how to use NodeSpace" skill) and matching how ADR-038's similarity-threshold retrieval (<0.8 → no skill injected) rewards precise, narrow matches over a single skill diluted across many intents:

  • "Creating an Issue" — issue vs. plain task, estimate, status vocabulary (backlog/in_review and what they collapse to at task scope), priority's extended values.
  • "Working with Cycles" — cycle.tasks relationship (not a bare property), how cycle-creation/rollover Plays behave, that cycle has no stored status (derived from dates).
  • "Issue Validation Rules" — what the two Invariant Plays (sub-issue completion gate, blocker gate) reject and why, so an agent understands a rejected write rather than treating it as a bug.

Exact skill count/boundaries decided during implementation; the above is illustrative, not exhaustive.

Architecture Impact

This issue implements ../nodespace-docs/decisions/078-schema-extends-relationship-for-field-composition.md (ADR-078) for the first time in real recipe content — issue is a genuinely new, real node_type (extends: task), not a relabeling of task. It deliberately does NOT implement ../nodespace-docs/decisions/075-playbooknode-installable-bundle-record.md (ADR-075) — PlaybookNode (bundle-install tracking, narrowed in scope per ADR-078's rewrite of ADR-075) remains separately tracked by #2570, unaffected by this issue; installed schema/Play state is left as ordinary graph data, indistinguishable from anything hand-authored, with no provenance tracking. This is an intentional, accepted scope cut, unchanged from the original framing. The seeded-skills addition above is consistent with ADR-057 (skill nodes as ordinary markdown-child root nodes) and ADR-038 (skill-mediated discovery) — no changes to either mechanism, just new content authored against them.

Implementation Approach

Canonical recipe source

  • One TS file per methodology under packages/desktop-app/src/lib/methodology-recipes/ (e.g. linear.ts), exporting an ordered array of typed steps. NodeSpace ships these as first-party authored content; a user may hand-edit their local copy, though this is the exception path, not the primary one.
  • Step shape covers at minimum: {op: 'create_schema', payload: {...}}, {op: 'add_field_values', payload: {...}}, {op: 'create_play', payload: {...}}, and a new {op: 'create_skill', payload: {...}} step for the seeded skills above — payload shapes should mirror the existing create_schema/update_schema/skill-creation request params already used elsewhere in the frontend, not invent a parallel format.

Generator + CI drift check

  • A generator script under scripts/ (Bun/TS, per this repo's tooling convention) reads a methodology's TS recipe and emits packages/skill/references/<methodology>-recipe.md, phrased as literal CLI-verb call sequences (e.g. nodespace schema create ...).
  • Add a --check/--write pair mirroring packages/cli/examples/gen_skill_md.rs's existing convention (bun run skill:gen / bun run skill:check) — a new pair of package.json scripts, checked in CI (or as part of the existing skill:check gate if that's a cleaner fit — evaluate during implementation) so the generated doc can never silently drift from the TS source it's derived from.
  • SKILL.md gains a short pointer entry referencing the generated doc (does not duplicate its content).

GUI wiring

  • A new onboarding wizard step (the wizard's step sequence is currently hardcoded {#if currentStep === '...'} blocks in packages/desktop-app/src/lib/components/onboarding/onboarding-wizard.svelte — extend its WizardStep union and stepSequence derivation) presenting a single-choice picker: Linear-style / Jira-style (bare) / Spec-driven / Skip. This is the wizard's first non-binary (radio/select) step — no existing pattern to copy structurally, unlike the existing binary act-or-skip skill step.
  • A matching Settings action re-triggers the identical execution path (same TS recipe, same Tauri commands) independently of onboarding — this issue must not couple the execution logic to the wizard specifically.
  • Note in the PR: onboarding is expected to be substantially reworked later; keep this step's wiring as decoupled from the wizard's current ad hoc structure as practical, since it will need to survive that rewrite.

First recipe: Linear-style

issue schema — a real, extends-declared subtype of task (ADR-078), not a relabeling:

  • id: "issue", extends: task. An instance created against this schema gets node_type: "issue" — genuinely, not "task" with a display label bolted on. Its display name ("Issue") is a direct lookup of issue's own content field, per ADR-078's "Relationship to ADR-075" section — no PlaybookNode/marker mechanism needed for this.
  • estimate field, declared directly on issue (numeric or small enum — decide exact type during implementation; Linear's own is points-based, not hour-based). This is a field issue owns outright, not inherited, so it needs no maps_to handling.
  • Status vocabulary: NOT a new issue_status field. Per ADR-078's "Enum-value extension on an inherited field" section, issue extends the inherited task.status field via add_field_values, appending backlog and in_review, each carrying a required maps_to pointing at the pre-existing base value it collapses to at task scope (backlog → todo, in_review → in_progress) — mirroring Jira's status-category model. This keeps the field name identical to task.status, so any Play or query written against task (including the core auto-complete Play, Seed a core Play that completes a parent task when all its children are done #2636) keeps matching issue nodes with zero rewrite, and scope-relative resolution (ADR-078) ensures a base-scoped reader sees todo/in_progress, never the raw extended value, unless it's explicitly reading at issue scope.
  • Triage: not a new concept — just another appended status value (triage, maps_to: "todo"), decided during implementation whether it's worth including for v1 or deferred.
  • Priority: task.priority gains urgent and none directly via add_field_values (no maps_to needed — priority has no Jira-style category requirement the way status does; this is a flat superset extending the existing 5-level scale, see Expand core task.priority to a 5-level scale (Highest/High/Medium/Low/Lowest) #2651).
  • Blocking/relation/creator relationships: issue inherits blocks/blocked_by, relates_to/related_from, duplicates/duplicated_by (task-to-task) and creator (from person) automatically once extends composes relationships the same as fields (ADR-078) — see Add core blocks/blocked_by, relates_to/duplicates, and creator relationships on task #2637, which adds these to core task/person. This recipe declares none of them itself.
  • Sub-issues: require no schema work at all. has_child — NodeSpace's universal outline/hierarchy edge — already supports nesting any node type, including issue, generically. A sub-issue is structurally just an issue nested under another issue via the existing mechanism. Progress roll-up ("3/5 sub-issues done") is a UI/Play-level read concern, not a schema addition.
  • Labels: use the existing Collection/member_of mechanism — a Collection with issue instances as members, no new schema. Teams: same mechanism, Collection with person instances as members (per a separate, broader "Collections as teams" direction, not specific to this recipe).
  • Auto-archive: a scheduled Play transitions stale, inactive Issues to lifecycle_status: "archived" — the existing, universal node-governance field (Node.lifecycle_status, active/archived/deleted), not a Linear-specific concept. Decide staleness threshold during implementation.

cycle schema (schema-only type, not core):

  • start_date, end_date fields. Deliberately NO status field — matches Linear's actual behavior (a Cycle's active/past/upcoming state is derived from comparing dates to now, never stored) and avoids a second Play whose only job would be keeping a stored status in sync with dates. Contrast with the existing core project schema, which correctly DOES have a stored status (Linear's Project genuinely has one) — do not conflate the two patterns.
  • duration_days field, numeric, default: 14 — an ordinary SchemaField.default, user-editable post-install without touching any Play. The cycle-creation Play (below) reads this value rather than hardcoding a day count.
  • cycle declares a tasks relationship (Out, Many; reverse cycle, One) mirroring the existing project → tasks relationship pattern exactly (packages/core/src/models/core_schemas.rs project schema, ~line 371-381) — NOT a bare custom:cycle_id property on task. The relationship targets task (not issue specifically) — subtype-aware querying (ADR-078) means querying/filtering cycle.tasks already reaches issue instances for free, so there is no need to retarget it narrower.
  • (Optional, non-blocking) Cycle estimate totals — a running sum of estimate across the Cycle's linked Issues, kept in sync via a Play using Add collection-aggregation action to the playbook engine (sum/count over a for_each collection) #2639's collection-aggregation capability once it lands. Not required for this issue's core scope; include if Add collection-aggregation action to the playbook engine (sum/count over a for_each collection) #2639 has landed by implementation time, otherwise defer.

Plays:

  1. Cycle-creation Play (scheduled): if no cycle exists covering "today plus N days," create the next one. start_date/end_date computed from the most recent existing cycle's end_date plus its own duration_days field, using Add computed-date arithmetic to the playbook engine (action values, not just CEL conditions) #2640's date-arithmetic capability (add_days-equivalent) — this Play cannot be expressed without Add computed-date arithmetic to the playbook engine (action values, not just CEL conditions) #2640, since neither CEL nor action-value resolution can compute a new date today.
  2. Rollover Play (scheduled): scans cycle nodes where end_date < now, for_eachs incomplete task/issues (status not in a done-category value), reassigns each to the successor cycle (assumes one already exists, created by Play 1). Relies on derived identity (../nodespace-docs/decisions/074-derived-identity-for-scan-based-triggers.md, ADR-074, delivered) so concurrent/multi-device firing collapses correctly.
  3. Validation Play — "can't close with open sub-issues" (Invariant-class, Add a reject/validation action type so an invariant Play can veto a write, not just augment it #2642/Wire RuleClass::Invariant rules into the write path so they actually run synchronously, in-transaction #2643): rejects a status change to a done-category value if any has_child child is not itself done-category. Requires Make graph_resolver.rs direction-aware so Play conditions can walk any relationship's reverse side #2641 (reverse traversal, to read has_child's reverse direction) and Add a reject/validation action type so an invariant Play can veto a write, not just augment it #2642/Wire RuleClass::Invariant rules into the write path so they actually run synchronously, in-transaction #2643 (reject action type + synchronous write-path wiring) to be expressible and enforced at all.
  4. Validation Play — "can't start with an open blocker" (Invariant-class): rejects a status change to in_progress-category if any blocked_by task is not done-category. Same dependencies as (3), plus Add core blocks/blocked_by, relates_to/duplicates, and creator relationships on task #2637 for blocked_by to exist as a relationship at all.
  5. Auto-complete parent and auto-archive stale issues are core/general-purpose, not authored by this recipe — see Seed a core Play that completes a parent task when all its children are done #2636 and the Auto-archive note above, respectively.

No schema changes needed for Project grouping — the existing core project schema and its tasks/project relationship already cover this; the recipe creates no project-related schema at all.

Revision — scope expanded and corrections applied (2026-09-18)

Implementation surfaced four factual errors in the body above, plus two prerequisites this issue cannot land without. Both prerequisites are folded into this issue rather than filed separately, by decision.

Corrections to the body above

  1. maps_to: "todo" is invalid — the correct target is open. Core task.status declares open / in_progress / done / cancelled (packages/core/src/models/core_schemas.rs:58-63), and TaskStatus has matching variants with no Todo (packages/core/src/models/task_node.rs:109-121). There is no todo value anywhere in NodeSpace. ADR-078 requires every mapsTo to name a value the field already carries before the call (packages/core/src/schema/mod.rs:524), so todo would be rejected at write time. The mapping is therefore backlog → open, triage → open, in_review → in_progress.
  2. The JSON key is mapsTo, not maps_to. EnumValue is #[serde(rename_all = "camelCase")] (packages/nodespace-types/src/schema.rs:109).
  3. There is no playbook create CLI verb. PlaybookAction exposes only list/logs/enable/disable/get-workflow-state. A Play is an ordinary node of node_type: "play" carrying a rules property, so the generated reference doc phrases Play installation as node create --type play.
  4. Add collection-aggregation action to the playbook engine (sum/count over a for_each collection) #2639 and Add computed-date arithmetic to the playbook engine (action values, not just CEL conditions) #2640 shipped as binding functions, not action types. sum, count and add_days are usable inside any action's params (packages/core/src/playbook/actions.rs:359-363). ActionType has exactly five variants: create_node, update_node, add_relationship, remove_relationship, reject.

Additionally, the body's packages/desktop-app/src/lib/methodology-recipes/linear.ts path and its Bun-generator instruction are superseded by the established first-party-content pattern: recipe content is typed Rust in packages/core, alongside get_core_schemas() and seed_skill_nodes(), and the generator is a Rust example mirroring packages/cli/examples/gen_skill_md.rs (same GeneratedRegion registry, same --check/--write, same marker splice, joining the existing skill:check gate). This keeps schema steps running through handle_create_schema in-process, so extends cycle detection, mapsTo resolution and reverse-name validation all apply unchanged.

Prerequisite 1 — play becomes a declared core schema

architecture/playbook-system.md:401-409 states that play and log ship as isCore: true schemas registered at engine startup. Neither exists in get_core_schemas(). The playbook engine queries query_nodes_by_type("play", "active") against an undeclared type.

Rule correctness is not the gap — validate_play_rules (packages/core/src/services/node_service/crud.rs:271, :1463) already parses every rule, compiles its CEL conditions and runs the full validate_play pipeline at write time, which is stronger than schema validation would give. What is missing is declared identity: the type is not browsable, not schema-validated, and not visible to the schema-driven surfaces.

This issue adds the play schema because it ships the first real Plays. Backend only — play is deliberately NOT added to SIDENAV_CORE_TYPES; there is no GUI surface for Plays yet. CLI remains the interface.

Prerequisite 2 — Play diagnostics move out of the graph to a general log file

playbook_log nodes are written into the user's knowledge graph as engine self-diagnostics. This is wrong on four counts:

  • One production consumer. Only nodespace playbook logs reads them (packages/cli/src/commands/playbook.rs:104). Everything else referencing the type is test assertions.
  • Already duplicated. The engine emits equivalent warn!/debug! tracing alongside every log node it writes.
  • Self-trigger hazard. Nothing excludes playbook_log from Play triggers, so the engine writes into the substrate it watches, bounded only by MAX_CHAIN_DEPTH: 10.
  • Corrupts under sync. No node-level local-only mechanism exists (localOnly is per-property). The dedup fingerprint deliberately excludes node ids and timestamps so the same structural error fingerprints identically on every device — two devices logging the same failure produce the same fingerprint with independently-incremented occurrences, which then collide. The counter becomes neither a sum nor a max, just whichever write landed last.

Play errors are operational telemetry, not knowledge. This issue deletes the node-write path and routes the same diagnostics to a general log file that any subsystem can write to, under the existing ~/.nodespace/logs/ convention. MAX_CHAIN_DEPTH enforcement, the seven PlayErrorType variants and fingerprint dedup are retained — only the destination changes.

The logs subcommand is removed from nodespace playbook, and a top-level nodespace logs is added in its place, since the log is no longer playbook-specific. This also resolves the log vs playbook_log naming drift by removing the graph type entirely.

Not in scope: a FeedNode giving users a general view of workspace activity is a separate, later direction. It is named here so Play error logs are not re-added to the graph on the assumption they fill that gap — they do not.

Acceptance Criteria

Play as a first-class declared type

  • play added to get_core_schemas() as isCore: true, with the field shape documented in playbook-system.md (description, rules, schema_version)
  • play nodes validate against the schema on write, and existing validate_play_rules behavior is unchanged
  • play is NOT added to SIDENAV_CORE_TYPES — no GUI surface in this issue (test asserts the absence, so a later GUI change is deliberate)

Logging

  • playbook_log node-write path deleted (create_or_update_log_node, create_or_update_repair_log_node); no engine diagnostics reach the graph
  • Diagnostics written to a general log file under ~/.nodespace/logs/, usable by any subsystem, not playbook-specific
  • MAX_CHAIN_DEPTH enforcement, PlayErrorType variants and fingerprint dedup retained
  • logs subcommand removed from nodespace playbook
  • Top-level nodespace logs added
  • Skill guidance updated for both CLI changes: nodespace logs documented in the generated CLI reference, and the removed playbook logs verb no longer referenced anywhere in packages/skill/

Linear recipe

  • Linear recipe content lives in packages/core as typed Rust, following the get_core_schemas() / seed_skill_nodes() pattern
  • Generator (Rust example, mirroring gen_skill_md.rs) produces packages/skill/references/linear-recipe.md from that source
  • --check mode fails when the generated doc is stale relative to its source (test)
  • SKILL.md references the generated doc
  • Onboarding wizard offers a Linear-style / Jira-style / Spec-driven / Skip choice as a new step, executing the Linear recipe when chosen
  • The same execution path is independently triggerable from Settings, not coupled to wizard-only code
  • Schema-id collision during execution is handled by deterministic auto-suffix retry, never silent adoption or silent overwrite, and disclosed in the result shown to the user
  • issue schema created with extends: task, verified to produce real node_type: "issue" instances (not "task")
  • issue's status vocabulary extension uses add_field_values + mapsTo on the inherited status field — no new issue_status field — with backlog → open, triage → open, in_review → in_progress
  • cycle schema created with start_date/end_date/duration_days (no status field) and a tasks relationship mirroring project's pattern, targeting task
  • Cycle-creation and rollover Plays, plus both validation Plays (sub-issue completion gate, blocker gate), implemented as separate Plays, seeded with _seed.default_rules so they are resettable
  • Several narrow, task-scoped skill nodes seeded as recipe content (e.g. "Creating an Issue," "Working with Cycles," "Issue Validation Rules" — not one monolithic skill)
  • Recipe installs on demand only — nothing is added to seed_agent_nodes, so a workspace that never chooses a methodology is unchanged
  • No sample issue/cycle instances are created by the recipe

Gates

  • Tests pass (bun run test:all)
  • Code passes bun run quality:fix

Dropped from the original criteria: PlaybookNode.seed_node_ids tracking — PlaybookNode (ADR-075) remains out of scope per the Architecture Impact section above and is tracked by #2570. Seeded skills are plain skill nodes with no provenance record, consistent with that section's stated scope cut.

Technical Specifications

Reference Files

  • packages/desktop-app/src-tauri/src/skill_setup.rs (install_skill, ~line 386) — precedent for the configure_skill Tauri-command pattern and how SKILL.md/references//shims/ get bundled and installed
  • packages/cli/examples/gen_skill_md.rs — the --check/--write generator pattern to mirror
  • packages/skill/references/ — existing reference-doc examples (cli.md, shared-workspaces.md, graph-authored-guidance.md) showing the doc format/style to match
  • packages/skill/shims/claude-code/nodespace-hook.ts — confirms shims are generic CLI-verb transports (execFile('nodespace', args)), nothing methodology-specific needed here
  • packages/cli/src/commands/mcp.rs — confirms the MCP passthrough tool is also a generic CLI-verb transport, nothing methodology-specific needed here
  • packages/core/src/models/core_schemas.rs — task (~line 44), project (~line 227, especially the tasks relationship at ~line 371-381), person (~line 1258, tasks/assignee relationship) schemas — the exact patterns issue/cycle and their relationships mirror
  • packages/agent/src/skill_pipeline.rs (seed_skill_nodes, ~line 357) — the existing 11-skill seeding pattern this recipe's own seeded skills follow (narrow, task-scoped, markdown children per ADR-057)
  • packages/desktop-app/src/lib/components/onboarding/onboarding-wizard.svelte — WizardStep union (~line 28), stepSequence derivation (~line 116-126), existing binary-choice step pattern (skill step, ~line 463-507) to reference (structurally different — this is a radio/select step, not binary)
  • ../nodespace-docs/decisions/074-derived-identity-for-scan-based-triggers.md (ADR-074), ../nodespace-docs/decisions/076-schema-field-value-extension-and-task-status-enforcement.md (ADR-076), ../nodespace-docs/decisions/078-schema-extends-relationship-for-field-composition.md (ADR-078), ../nodespace-docs/decisions/060-playbook-execution-under-multi-device-sync.md (ADR-060), ../nodespace-docs/decisions/057-skill-node-markdown-children.md (ADR-057), ../nodespace-docs/decisions/038-skill-mediated-tool-routing.md (ADR-038) — mechanisms this recipe depends on

Dependencies

Activity

  1. malibio commented on Sep 13, 2026

    @malibio
    CollaboratorAuthor

    Marked Blocked — not ready for implementation yet:

    1. Several recipe-content sub-decisions are still open: cycle default duration, whether in_review is a distinct status value or folds into in_progress, whether the install seeds any example Cycle/Issue content, and the exact task.priority mapping direction (relabel existing values vs. add urgent/none alongside them unchanged).
    2. This issue's core premise — an Issue as task extends: ... — now depends on ADR-078 (../nodespace-docs/decisions/078-schema-extends-relationship-for-field-composition.md), which is itself still being actively revised (the extends mechanism's node_type semantics are under active architectural review as of this comment — see ADR-078's eventual updated text for the committed design). This issue should not be picked up until ADR-078 is finalized and its own implementation has landed.

    Unblock once both are resolved.

  2. mstomar125 commented on Sep 15, 2026

    @mstomar125
    Contributor

    Board-accuracy check: this issue's blocker, #2585 (`add_field_values` schema op), closed 2026-09-13 — confirmed the op is genuinely implemented (`packages/core/src/schema/mod.rs`, `FieldValueAddition`/`add_field_values` handling). The other referenced dependency, #2565 (derived identity for scan-based triggers), is also already closed. No other blocker is listed in this issue's own Dependencies section.

    Moving to Backlog — genuinely unblocked and pickable now, not held on anything external.

  3. malibio commented on Sep 15, 2026

    @malibio
    CollaboratorAuthor

    Status update: design finalized, dependency chain identified

    The recipe design is now finalized and this issue's body has been fully rewritten to match — superseding the earlier framing (which mutated task.status directly with no distinct issue type). The Linear recipe now specifies issue as a real node_type via extends: task (ADR-078), status/priority vocabulary extension via add_field_values + maps_to, and two Invariant-class validation Plays (sub-issue completion gate, blocker gate) alongside the cycle-creation/rollover Plays.

    Remaining as Blocked, not because the design is unsettled, but because five concrete, cross-linked infrastructure issues — each discovered by direct code inspection while designing this recipe — must land first:

    This issue should move off Blocked once #2598 has landed (the minimum needed to begin implementation) — the remaining dependencies gate specific Plays within the recipe, not the recipe's foundational schema work.

  4. malibio commented on Sep 16, 2026

    @malibio
    CollaboratorAuthor

    Infrastructure update: #2642 (reject action type) and #2643 (synchronous Invariant execution) — both cited inline in this issue's Plays section as dependencies for the two validation Plays — are now merged (#2644, #2650 respectively). Remaining hard blockers for this recipe: #2598 (extends, the issue schema's entire premise), #2640 (date arithmetic, blocks cycle-creation), #2638→#2641 (reverse traversal, blocks both validation Plays' conditions specifically — note this is separate from the reject/execution machinery that just landed; the conditions still cannot read has_child/blocked_by in reverse without it).

  5. malibio commented on Sep 17, 2026

    @malibio
    CollaboratorAuthor

    Baseline before implementation — Frontend: 256 test files passed, 5214 tests passed (Duration 64.65s).

  6. self-assigned this
    on Sep 17, 2026
  7. malibio commented on Sep 17, 2026

    @malibio
    CollaboratorAuthor

    Implementation note — correction to the issue body's status mapping.

    The body specifies backlog -> todo and triage -> todo as the mapsTo targets for the extended task.status vocabulary. There is no todo value in NodeSpace. Core task.status declares open / in_progress / done / cancelled (packages/core/src/models/core_schemas.rs:58-63), and TaskStatus has matching variants Open/InProgress/Done/Cancelled with no Todo (packages/core/src/models/task_node.rs:109-121).

    ADR-078 requires every mapsTo to name a value the field already has, so todo would be rejected at write time. Implementing as:

    • backlog -> open
    • triage -> open
    • in_review -> in_progress (unchanged from the body)

    Also confirmed while mapping the surface:

  8. malibio commented on Sep 18, 2026

    @malibio
    CollaboratorAuthor

    Implementation complete; pushing for review.

    Seven commits, each a coherent unit:

    1. Declare play as a core schema (backend only — a test pins its absence from SIDENAV_CORE_TYPES)
    2. Move Play engine diagnostics out of the graph into tracing; delete logging.rs, remove playbook logs
    3. Linear recipe content + two validate_schema_path fixes
    4. Generated CLI reference + drift check + a no-op rollover fix
    5. install_recipe with disclosed collision re-keying
    6. ListMethodologies/InstallMethodology gRPC + Tauri commands
    7. Onboarding step + Settings action

    Four real bugs surfaced, none reachable before this work:

    • validate_schema_path rejected built-in structural edges (has_child) that GraphResolver walks fine — a condition over sub-issues was refused despite being executable
    • It also rejected inherited reverse names (blocked_by reaching issue through extends), consulting only the concrete type's own declarations
    • The rollover Play used {trigger.node.id} as its add_relationship source — the ending cycle — so it re-added each task to the cycle it was already in. Everything validated; the work simply never moved. Fixed by merging creation and rollover into one Play, since the successor's id is only reachable as {actions[0].result.id}
    • skill:check named a fixed pair of source files, misdirecting anyone hitting recipe drift

    Deferred decisions, as agreed:

    • estimate: enum on a modified-Fibonacci scale (1/2/3/5/8), extensible — points not hours, gaps deliberate
    • triage ships in v1, mapping to open
    • Cycle cadence via duration_days (default 14) read off the ending cycle, so changing it is a field edit not a Play rewrite
    • Three narrow skills rather than one broad one, per ADR-038's similarity threshold
    • Estimate totals deferred — sum() exists, but no field to write it to without a stored total that would need its own Play
    • Auto-archive deferred: it is core/general-purpose per the issue's own framing, not recipe content

    Scope note: two scheduled Plays became one. The cron is 0 5 0 * * * * (daily, 00:05).

    Tests: frontend 258 files / 5231 tests (baseline 256 / 5214); Rust core 34 binaries green; quality:fix clean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions