Skip to content

Make spec, plan and decision core types with checklist criteria and seeded rules; remove the installable methodologies #3542

Closed

Description

@malibio

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

  • spec and plan are created through create_schema at install time, so they have no registry entry, no typed wire struct and no generated TypeScript, and the field the bundle adds to task carries a custom: 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 in CoreNodeType, seeded with every database, with typed wire structs and updates.
  • Criteria are direct checkbox children of a spec or task. There is no criterion type and no success_criteria field.
  • Relationships as ADR-092 §3 declares them.
  • Core fields using link: project.repository, task.pull_request, task.commits, all optional.
  • task.status gains in_review.
  • Six seeded core Plays enforce the rules.
  • Removed: the methodology module, the playbook bundle record, the methodology RPCs and app surfaces, the bundle reference files, the Linear-style and Jira-style types, and custom: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_status and decision_status are type fields, never lifecycle_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 for spec, plan, decision; task and project fields; the registry list), components/seeded-nodes.md, architecture/playbook-system.md and architecture/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 checked attribute (ADR-094 §5), see direct children only, and match no content prefix

Types

  • spec, plan and decision are CoreNodeType variants with seeded schemas carrying exactly the fields and defaults of ADR-092 §1, typed wire structs and typed updates in nodespace-types, and regenerated TypeScript
  • The relationships of ADR-092 §3 are declared, with the listed names, cardinalities and reverse names
  • project has an optional repository link field; task has optional pull_request (link) and commits (list of links)
  • The built-in agent's write tools declare a list-of-links field (task.commits) with its item shape, an object with title and url, 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.md and the nodespace query help use project.repository as their example of a dotted path, they describe it as a link field read by repository.url and repository.title, not as an object field with a url inside it; bun run skill:check passes
  • task.status has five core values in the order open, in_progress, in_review, done, cancelled; every surface that enumerates task statuses handles in_review (status control, kanban columns, nodespace node set-status, the built-in agent's tools); started_at is stamped on the first move to in_progress or in_review
  • custom:verification_method no longer exists
  • The three types are in the frontend plugin list, render and open like other typed nodes with no bespoke viewer, and follow project in not being slash-command-creatable
  • components/node-types.md has a sheet for each type and bun run node-types:check passes

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_review as well as in_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 playbook bundle 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 in SKILL.md are removed; bun run skill:check passes
  • No issue, cycle, story, bug, epic or sprint type, status value or Play remains
  • Tests for task subtypes through extends and 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=1 and 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, plan or decision, 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 and TaskStatus, the generator in bin/gen_ts.rs
  • packages/core/src/models/core_schemas.rs - the seeded core schemas; task and project are the patterns to follow
  • packages/core/src/playbook/core_plays.rs, packages/core/src/playbook/seeded.rs - seeded core Plays and their fixed ids
  • packages/core/src/playbook/cel.rs, packages/core/src/playbook/graph_resolver.rs - what a condition can read; has_child traversal
  • packages/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 for task
  • packages/core/src/methodology/ (all), packages/core/tests/it/methodology_* - to delete
  • packages/proto/proto/node_service.proto, packages/daemon/src/services/node_service.rs - ListMethodologies, InstallMethodology
  • packages/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 surfaces
  • packages/desktop-app/src/lib/plugins/core-plugins.ts - the frontend plugin list
  • packages/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/ and packages/agent/src/golden/ - goldens and live tests that install a methodology
  • packages/agent/src/local_agent/tools.rs (declared_field_values_properties) and packages/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 tools
  • packages/skill/references/cli.md (the dotted-path sections under queries) and packages/cli/src/commands/query.rs (the filter help text) - the project.repository example

Implementation Details

  • Kind and category for each type go in the PR description (node type sequence). spec and plan are flat concrete core types; decision is a flat concrete core type whose body is its children.
  • A Play's property_key is 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 literal node_type comparison 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 playbook command manages Plays and stays.

Dependencies

Related Issues

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions