Repository navigation
Make spec, plan and decision core types with checklist criteria and seeded rules; remove the installable methodologies - #3618
Conversation
Pragmatic Code Review: PR #3618 (issue #3542)Review TypeInitial review. No prior reviews or comments on the PR. Reviewed at What I ran: Findings 1, 2 and 3 are traced through the code, not executed, because the review may not add test files. Each names the lines the trace goes through. Requirements CheckChecklist conditions
Types
Rules
Removal
General
Code Review Findings🟡 Important1. The superseded lock is bypassed by clearing the status field. The "cannot be reinstated" rule's second condition is The typed update refuses The file's own header comment names this hazard ("a missing key fails the whole condition, which on a reject rule means allow, silently") and the plan and lineage rules guard against it. Fix: 2. The new invariants can suspend the shipped roll-up Play for the whole database. The parent-task roll-up is reactive and writes Scenario: a task linked to a spec or plan is broken into sub-tasks, and the sub-tasks carry the checklists. Completing the last sub-task fires the roll-up; Fix options: have the roll-up's condition skip a parent the criteria and lineage rules would refuse, or treat a Related, not introduced here: the roll-up condition is 3. A stored core schema this build cannot parse is an error, not a refusal. Stored fields are deserialized into Fix: map an unreadable 4.
🟢 Suggestions5. Spec approval can be skipped at create. 6. The shape check does not compare relationships. 7. One write that edits a field and supersedes is refused. 8. Stale comment on relationship triggers. 9. Stage-1 now matches the common words "plan", "spec" and "decision". Nits
RecommendationREQUEST CHANGES. Finding 1 leaves an acceptance criterion unmet, and finding 2 is a regression in an existing shipped Play under an ordinary use of the new model. Both are small fixes with a test each. Findings 3 and 4 are worth folding into the same pass. The rest of the change is sound: the layers of the node type sequence are all present, the rule tests are matched on each rule's own message with an allowed case beside every rejected one, and the removal is complete. |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: REQUEST CHANGES (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Address-review summary (commit
|
Pragmatic Code Review: PR #3618 (issue #3542)Review TypeRe-Review. Scope is What I ran, all passing: New findings A, B and C are traced through the code, not executed: the review may not add test files. Each names the lines the trace goes through. Previous Review Summary
The related note under finding 2 (a parent with a checkbox child never rolls up, because Code Review FindingsCriticalNone. 🟡 ImportantA. A declined action silently stops the rest of a
Concrete case: a user Play "when a plan is approved, The shipped roll-up is a single action with no 🟢 SuggestionsB. A Play whose write can never be accepted now looks like a working Play. "The graph may allow the same action next time" is true of the roll-up. It is not true of a reactive rule that creates a plan already C. The flat branch of The branch exists for The loss of flat fields on first update predates this PR and applies to Also here: Nitpicks
What I checked and found sound
RecommendationAPPROVE. Both blocking findings of the first review are fixed, each with a test that fails when the behaviour breaks, and findings 3 and 4 are folded in. Nothing new breaks an acceptance criterion or a shipped Play. Finding A is worth fixing in this PR, since it is a small change in the loop this PR just gave new semantics; it affects user-authored Plays only. B and C are optional. |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review (re-review): APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Address-review summary, re-review (commit
|
|
Merge queue: #3618 was taken out of the queue — the merge gate failed on it, on top of main. Reproduce by merging or rebasing |
…eeded rules; remove the installable methodologies
c447c0a to
fbc402a
Compare
Closes #3542. Implements ADR-092 §1 to §6 and §9.
Node type sequence
specplandecisiontaskandprojectstay flat: alinkis not an object field for the category rule.Fields added
spec:objective(text),boundaries(text),spec_status(closed enumdraft/approved/superseded, defaultdraft)plan:approach(text),risks(text),plan_status(closed enumdraft/approved/superseded, defaultdraft)decision:decision_status(closed enumproposed/accepted/superseded, defaultproposed)task:pull_request(link),commits(array of link);statusgainsin_review(order:open,in_progress,in_review,done,cancelled)project:repository(link)Relationships added (name → target, cardinality, reverse name / cardinality)
spec.tasks→ task, many,spec/ manyspec.decisions→ decision, many,specs/ manyplan.spec→ spec, one,plans/ manyplan.tasks→ task, many,plan/ onetask.decisions→ decision, many,tasks/ manydecision.supersedes→ decision, many,superseded_by/ manyRules added: six seeded core Plays with fixed ids (spec approval, plan approval, task lineage, task blockers, task criteria, superseded lock). The checklist conditions read each direct checkbox child's derived
checked; nothing matches a content prefix.Behaviour added:
started_atis stamped by the write that first moves a task toin_progressorin_review(and on a create that is already started). Nothing stamped it before.Removed:
packages/core/src/methodology/(install machinery, the three bundles, their skills and views), theListMethodologies/InstallMethodologyRPCs, the Tauri commands, the frontend service and onboarding step, the three bundle reference files and their generator block, andcustom:verification_method.Docs:
components/node-types.md(sheets for the three types, task and project fields, registry list),architecture/data-layer.md,components/seeded-nodes.md,components/query-node.md,components/schema-management.md,architecture/playbook-system.md. Pushed to nodespace-docsmainjust beforebun run merge, as the merge gate reads the published sheet.Things a reviewer should look at
packages/core/src/db/core_type_shape.rs): a database with the right tables must also hold this build's core types. It refuses a core type id held by a non-core schema, and a core schema with a difference only another build can have produced (a bare-named field this build does not declare, a missing field core protects, a changed type or core enum values). What a user may do through the schema API is not a difference: a namespaced field, added enum values, and a removeduser-protected field. Nothing reads a stored version. A daemon test opens both shapes and asserts the marker, the byte-identical file and the clean exit.projectexactly: no plugin, listed inSIDENAV_CORE_TYPES, recorded in the registry test's no-plugin list, opened in the generic schema-driven viewer. The issue says "in the frontend plugin list";project, the stated model, has none.taskandproject. As installed types they were embedded by title through the default behaviour.approvedis not refused: ADR-092 §6 lists only the status change for specs (it lists the create case for plans).in_reviewicon. It shows the in-progress icon; the icon's click cycle is unchanged.OptionalJsonClearwrapper; the three new typed updates travel asupdate_json, like collection and skill.Tests
bun run test:changedpasses on every tier (frontend 318 files / 5,789 tests; scripts; skill; browser;types:check;node-types:check; Rust workspace).core_model_plays_test.rs(a rejected and an allowed case for each Play, seeding, an edit surviving a restart,started_at), typed-update tests in core and the daemon, the core-type shape tests, the daemon refusal test, registry and schema pins for ADR-092 §1, §3, §4 and §5.methodology_*core test files, the Linear-bundle skill-retrieval tests, and the generated playbook-doc shell test.🤖 Generated with Claude Code