Repository navigation
Closed
Labels
Description
Overview
The task spec Play refuses to start any task that links no approved spec, and the task type carries a requires_spec boolean as the way out for chores. This is a decision change: the rule is narrowed to tasks that link a spec, and the field is removed. A task with no spec is a plain to-do again.
Problem Statement
- Every to-do has to be marked
requires_spec: falsebefore it can be started, including work that has nothing to do with development. - A piece of one workflow sits on the core task type (schema, wire type, proto, daemon, app-lib, generated TypeScript).
- An extension field named after a declared field of a core type (
custom:statuson a task) is accepted on write, but a rule reads fields by bare name and the declared field wins, so no Play can ever read it. Nothing tells the user.
Proposed Solution
- Task spec Play: reject moving a task to
in_progresswhen it links at least one spec and none hasspec_statusapproved. Drop therequires_speccondition. A task that links no spec is not touched. - Delete the
requires_specfield everywhere. No replacement field, no compatibility read. - Rejection message and the seeded skills: no marker wording. The next step is to ask the user to approve the spec.
- Refuse a write that sets
custom:/org:/plugin:+ the name of a field the core type declares, naming the declared field.
Documentation
- ADR-097 §1, §2, §6, §8 - the rule, its edge cases, no field on the task, the rejection text, and the shadowed extension field refusal
- ADR-092 §6 and §7 - the Plays table and Ready tasks
- ADR-063 - extension fields on a core type
- Node type sequence, ADR-086 - mandatory for the field removal
- playbook-system.md - the Plays NodeSpace ships
- Updates: the
tasksheet incomponents/node-types.md(field table row, the light-lane bullet, the Rules and Typed update bullets). Pushed just beforebun run merge; everything else is already on docsmain.
Architecture Impact
Reverses the second version of ADR-097 ("every task needs an approved spec, with a marker for the exceptions") and its §6 statement that the field is core and cannot be removed. The ADR is already rewritten and pushed; this issue brings the code in line. Kind of change under the node type sequence: removing a declared scalar field from a flat core type (task, category unchanged). No new type, relationship or structural rule.
Acceptance Criteria
- A task that links a draft spec and no approved spec cannot move to
in_progress; with one approved spec among several it can - A task that links no spec moves to
in_progresswith nothing set on it -
requires_specappears nowhere inpackages/(schema, wire type, proto, daemon, app-lib, adapter contract, generated TypeScript, skills, tests) - The rejection message and the two seeded skills name no marker
- Ready tasks offers a task with no spec and withholds one whose spec is a draft
- Writing
custom:status(or any prefixed name matching a declared field) on a core type is refused with a message naming the declared field; a prefixed name that matches no declared field is still accepted -
bun run gen:typesoutput committed;bun run types:checkandbun run node-types:checkpass - Fixtures that were marked
requires_spec: falseonly to be startable no longer set it - Code passes
bun run quality:fix -
bun run test:changedpasses
Technical Specifications
Reference Files
packages/core/src/playbook/core_plays.rs-task_spec_rules(), its doc comment (also says the gate asks through the dry run, which is stale) and its unit testpackages/core/src/models/core_schemas.rs- therequires_specSchemaFieldand its testpackages/nodespace-types/src/task.rs,convert.rs- wire struct, typed update and testspackages/proto/proto/node_service.proto,packages/daemon/src/services/node_service.rs,packages/desktop-app/app-lib/src/commands/nodes.rs,packages/desktop-app/app-lib/tests/it/adapter_contract_test.rspackages/desktop-app/src/lib/types/generated/(regenerate, never hand-edit),packages/desktop-app/src/tests/services/node-normalize.test.tspackages/core/src/services/query_service/core_queries.rs- Ready tasks commentpackages/agent/src/seeds/skills/breaking-a-plan-into-tasks.md,implementing-a-task.md,packages/agent/tests/it/workflow_seeds.rspackages/core/tests/it/core_model_plays_test.rs,permitted_filter_test.rs,parent_task_completion_play_test.rs,playbook_invariant_integration_test.rspackages/core/src/services/node_service/crud.rs-reject_undeclared_core_keys(the shadow refusal belongs here);is_extension_field_nameinnode_service/mod.rspackages/core/src/playbook/cel.rs- why a shadowed field is unreadable (unprefixed keys win the bare name)
Implementation Details
- Play conditions become:
node.status == 'in_progress', andhas(node.spec) && size(node.spec) > 0 && !node.spec.exists(s, has(s.spec_status) && s.spec_status == 'approved')(confirm how an empty relationship reads in CEL; a task with no spec must not be rejected). - No migration and no fallback read of the old field: change the shape, reset the database.
- Model-facing text in
packages/agentis pinned by the prompt snapshot test; regenerate withUPDATE_GOLDEN=1and review the diff. - Mutation-check the two new rule tests: each must fail with the rule's condition reverted.
Related Issues
- Refuse repo writes until the session has an in-progress task with an approved spec #3710 (the rule and field this changes)
- Run this repository's work through NodeSpace's built-in playbook and the adopted community workflow skills #3712 (uses the rule; its marker criterion is reworded)
Non-Goals
- Checking an agent's repository writes
- A strict "every task needs a spec" mode in core; a team edits the Play for that
- Refusing a shadowing field name at schema-edit time, if that turns out to be a separate path
Activity
malibio commentedon Oct 11, 2026
Sequencing: this lands before the v0.3.5 release, so the release does not ship a task field that is about to be removed, and before the trial in #3712 starts collecting counts (a later change to the field would mean resetting the trial's database).
malibio commentedon Oct 11, 2026
Baseline — Frontend: 324 test files passed, 5874 tests passed
Remove requires_spec from task; the spec rule applies only to a task …