Repository navigation
Description
Overview
NodeSpace ships three installable methodologies (Linear-style, Jira-style, spec-driven) that a user picks at onboarding. ADR-092 replaces them with one model that is part of core and needs no install: spec, plan and decision are core types, criteria are checkbox children, and the rules are seeded Plays. This issue builds that model and removes the methodology layer.
Problem Statement
specandplanare created throughcreate_schemaat install time, so they have no registry entry, no typed wire struct and no generated TypeScript, and the field the bundle adds totaskcarries acustom:prefix.- A spec's success criteria are one free-text field. No rule can tell whether a spec has criteria or whether a task met them.
- Decisions have no type, so an ADR is reachable from a task only through a mention in prose.
- A project has no repository and a task has nowhere to record its pull request or commits.
- Three bundles mean every rule, procedure and test is written for three vocabularies, and two of them (sprints, cycles, estimates) are not about agentic development.
Proposed Solution
Implement ADR-092 §1 to §6 and §9:
- Three core types
spec,plan,decision, registered inCoreNodeType, seeded with every database, with typed wire structs and updates. - Criteria are direct
checkboxchildren of a spec or task. There is no criterion type and nosuccess_criteriafield. - Relationships as ADR-092 §3 declares them.
- Core fields using
link:project.repository,task.pull_request,task.commits, all optional. task.statusgainsin_review.- Six seeded core Plays enforce the rules.
- Removed: the
methodologymodule, theplaybookbundle record, the methodology RPCs and app surfaces, the bundle reference files, the Linear-style and Jira-style types, andcustom:verification_method.
The seeded skills and saved queries for the model are a separate issue.
Documentation
- ADR-092 - the whole decision; §1 types and fields, §2 checklists, §3 relationships, §4 link fields, §5
in_review, §6 the Plays, §9 what is removed - ADR-094 - the workflow is data: the rules are Plays, and no operation in code knows when a task is ready or what its context is; the checklist rules read
checked - Node type sequence - mandatory for every type, field and relationship here
- ADR-086 - registry, one wire definition, generated TypeScript
- ADR-089 - structural rules (all three types keep the defaults)
- ADR-087 - participation;
spec_status,plan_statusanddecision_statusare type fields, neverlifecycle_status - ADR-076 - task status vocabulary and enforcement, amended by ADR-092 §5
- ADR-072 - seeded nodes and user edits, for the seeded Plays
- Seeded Nodes and Playbook system - how core Plays are seeded and run
- Updates:
components/node-types.md(sheets forspec,plan,decision;taskandprojectfields; the registry list),components/seeded-nodes.md,architecture/playbook-system.mdandarchitecture/data-layer.md(remove installable bundles), ADR-076 (the five status values)
Architecture Impact
Implements ADR-092, which supersedes ADR-075 (decisions/075-playbooknode-installable-bundle-record.md, the playbook bundle record) in full and amends ADR-076's task status vocabulary. Both are already recorded in ADR-092; the docs listed under Updates change with the code.
Acceptance Criteria
Checklist conditions
- The checklist rules read each checkbox child's derived
checkedattribute (ADR-094 §5), see direct children only, and match no content prefix
Types
-
spec,plananddecisionareCoreNodeTypevariants with seeded schemas carrying exactly the fields and defaults of ADR-092 §1, typed wire structs and typed updates innodespace-types, and regenerated TypeScript - The relationships of ADR-092 §3 are declared, with the listed names, cardinalities and reverse names
-
projecthas an optionalrepositorylink field;taskhas optionalpull_request(link) andcommits(list of links) - The built-in agent's write tools declare a list-of-links field (
task.commits) with its item shape, an object withtitleandurl, not as a bare array, so the model does not learn the shape from a validation error. A single link field is already declared this way. The Stage-2 tool-surface golden is regenerated and its diff reviewed - Where
packages/skill/references/cli.mdand thenodespace queryhelp useproject.repositoryas their example of a dotted path, they describe it as a link field read byrepository.urlandrepository.title, not as an object field with aurlinside it;bun run skill:checkpasses -
task.statushas five core values in the orderopen,in_progress,in_review,done,cancelled; every surface that enumerates task statuses handlesin_review(status control, kanban columns,nodespace node set-status, the built-in agent's tools);started_atis stamped on the first move toin_progressorin_review -
custom:verification_methodno longer exists - The three types are in the frontend plugin list, render and open like other typed nodes with no bespoke viewer, and follow
projectin not being slash-command-creatable -
components/node-types.mdhas a sheet for each type andbun run node-types:checkpasses
Rules
- Six core Plays with fixed ids are seeded into every database and reject exactly what ADR-092 §6 lists: spec approval, plan approval, task lineage, task blockers, task criteria, superseded lock
- The lineage and blocker rules guard the move to
in_reviewas well asin_progress - A task with no plan and no spec, and with no checkbox child, can move through every status; the same task with one unchecked checkbox child cannot move to
done - A superseded spec, plan or decision cannot have its fields edited or leave
superseded - Each Play has an execution test for the rejected case and for the allowed case next to it
- A user's edit to a seeded Play survives a restart (ADR-072)
Removal
-
packages/core/src/methodology/is deleted, with its install machinery, the three bundle definitions and their skills and views - The
playbookbundle record, the methodology list and install RPCs, the Tauri commands and the frontend service are deleted - Onboarding and Settings no longer offer a methodology; the Labs flag and the Plays surfaces keep working
-
packages/skill/references/{linear,jira,spec-driven}-playbook.md, their generator block, and the work-tracking line inSKILL.mdare removed;bun run skill:checkpasses - No
issue,cycle,story,bug,epicorsprinttype, status value or Play remains - Tests for task subtypes through
extendsand for status-vocabulary extension stand on fixtures of their own - Agent goldens, evals and live tests that used a Linear-style or Jira-style setup use the core model; prompt goldens regenerated with
UPDATE_GOLDEN=1and the diff reviewed - No migration or backfill code: the shape changes and the database is reset
- A database created before this change is refused cleanly, not crashed on: if it already holds a non-core schema whose id is
spec,planordecision, or seeded content this change replaces, the daemon detects it before any DDL, seeding or write, records the incompatible-database marker, leaves the file byte-identical and exits as for today's shape refusal. A test opens such a database and asserts the marker and the unchanged file
General
- Docs updated as listed under Documentation
- Code passes
bun run quality:fix - Tests pass (
bun run test:changed)
Technical Specifications
Reference Files
packages/nodespace-types/src/-CoreNodeType, the task wire type andTaskStatus, the generator inbin/gen_ts.rspackages/core/src/models/core_schemas.rs- the seeded core schemas;taskandprojectare the patterns to followpackages/core/src/playbook/core_plays.rs,packages/core/src/playbook/seeded.rs- seeded core Plays and their fixed idspackages/core/src/playbook/cel.rs,packages/core/src/playbook/graph_resolver.rs- what a condition can read;has_childtraversalpackages/core/src/methodology/spec_driven.rs- the plan approval, task lineage and superseded-lock rules to carry over;linear.rs- the blocker rule to rewrite fortaskpackages/core/src/methodology/(all),packages/core/tests/it/methodology_*- to deletepackages/proto/proto/node_service.proto,packages/daemon/src/services/node_service.rs-ListMethodologies,InstallMethodologypackages/desktop-app/app-lib/src/commands/methodology.rs,packages/desktop-app/src/lib/services/methodology-service.ts,packages/desktop-app/src/lib/components/onboarding/onboarding-wizard.svelte,packages/desktop-app/src/lib/components/settings/sections/playbooks-settings.svelte- app surfacespackages/desktop-app/src/lib/plugins/core-plugins.ts- the frontend plugin listpackages/cli/examples/gen_skill_md.rs(render_playbook_block),packages/agent/src/agent_catalog/context_assembly.rs(SKILL_*_PLAYBOOK),packages/skill/SKILL.md,packages/skill/references/packages/agent/tests/it/andpackages/agent/src/golden/- goldens and live tests that install a methodologypackages/agent/src/local_agent/tools.rs(declared_field_values_properties) andpackages/core/src/ops/entity_types_block.rs(EntityFieldDescriptor, which carries a field's type but not an array's item type) - how a field's shape is declared to the model's write toolspackages/skill/references/cli.md(the dotted-path sections under queries) andpackages/cli/src/commands/query.rs(the filter help text) - theproject.repositoryexample
Implementation Details
- Kind and category for each type go in the PR description (node type sequence).
specandplanare flat concrete core types;decisionis a flat concrete core type whose body is its children. - A Play's
property_keyis namespaced (task.status,spec.spec_status); a bare key never fires. - The existing rules use
has()guards before reading a related node's status; keep them. - Resolve types through the registry (
type_is_a,is_a_sql,isA), never a literalnode_typecomparison outside a Play's own selector. - Seeded Plays use fixed literal UUIDs.
- Detect an older database by its shape (a core type id held by a non-core schema, a seeded core node with fields the current schema does not declare), never by a stored version number: there is no schema version.
- The
nodespace playbookcommand manages Plays and stays.
Dependencies
- Add a link field type: a title and URL pair for schema fields #3541 (the
linkfield type) - Let rules and queries read a checkbox's checked state, and let the CLI's update and status commands name the version they change #3556 (a checkbox's
checkedreadable in rules; a version on the CLI's status command)
Related Issues
- Keep Playbooks out of the agent's vocabulary: agents work Plays and schemas, and Playbooks install only from the app #3506 (overtaken by this)
- Implement PlaybookNode as installable bundle record with display identity #2570 (overtaken by this)
- Add a 'Plays' navigation section: list plays with their state and open them (Labs Playbooks-gated) #3270 (Plays navigation, which stays)
- Re-theme the decision eval's scenarios and seeded workspace into NodeSpace's developer-workflow domain #3513 (eval scenarios that should use this model)
- Refuse a database whose table set doesn't match before any DDL or seeding runs (a v0.3.3 database crash-loops the daemon) #3564 (refuses a database whose table set differs; this change alters seeded content, which that check does not see)
Non-Goals
- The seeded skills and saved queries for the model
- The saved queries, skills, skill links and context paths for the model
- Restricting who may approve on a shared database
Activity
malibio commentedon Oct 5, 2026
Baseline — Frontend: 320 test files passed, 5797 tests passed
Address review: fail closed on a cleared superseded status; decline a…
Address re-review: a refused for_each item declines that item alone; …
Fix the adapter contract test: a spec needs a criterion before it is …
WIP: Workflow skills, queues and task context paths are seeded; routi…
WIP: Workflow skills, queues and task context paths are seeded; routi…