Repository navigation
Seed a core Play that completes a parent task when all its children are done (closes #2636) - #2752
Conversation
…re done (closes #2636) Adds the rollup Play from ADR-079: when every has_child child of a task reaches a terminal status, the parent is set to done. Seeded unconditionally as a user-modifiable play node carrying _seed.default_rules (ADR-060 section 8), reconciled per id so a user's edits survive startup and a later release still reaches an existing database. Semantics, per ADR-079: - cancelled counts as terminal alongside done. The rollup asks whether work remains under the parent, not whether everything succeeded; excluding it strands a parent whose last child was abandoned. The parent is always set to done, never cancelled. - A childless task never auto-completes, guaranteed by the engine's empty-collection-is-false rule rather than a count guard. - Completion cascades up the ancestor spine: the Play's own write is itself a task status change, re-firing the rule with the parent in the child position. Reactive, not invariant - ADR-060 section 2 restricts invariants to non-chaining depth 1. Four bugs surfaced while building this, each fixed with a regression test that fails without its fix: - maps_to was never applied to nodes reached by traversal. enrich_context built related nodes with node_to_cel_value, so a base-scoped Play comparing a subtype child's extended enum value never matched - a silent false, no error. scoped_node_value is now shared rather than reimplemented, per ADR-078's one-shared-resolution-function rule. This is item 4 of #2747, triaged there as non-breaking; it was live. - Play path validation rejected built-in relationships. has_child and child_of have no SchemaRelationship behind them, so validation refused paths the resolver walks perfectly well. - A related node's core fields did not resolve. id/node_type/content are struct fields in no bucket, so node.child_of.id returned Missing and failed the action - which disables the whole Play - though node.child_of alone resolved fine. - check_schema_change_impact flagged any Play whose trigger named the schema, regardless of what changed. With a core Play on task, every task schema edit - including adding a status value - demanded force=true from every user for a change that provably cannot break it. Now classified additive vs destructive; its TODO called this out. Also adds the play core schema, which playbook-system.md specifies as isCore but was never present. No log/playbook_log schema alongside it: that surface writes nine properties today and declaring them would switch on enforcement over drifted data, the ADR-076 ai-chat.status hazard. Tracked separately. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Pragmatic Code Review — PR #2752 (Initial Review)Verdict: REQUEST CHANGES — one correctness gap that silently defeats the feature (multi-parent), and one that disables the shipped Play on an ordinary, explicitly-blessed schema edit. Both are narrow, local fixes. Everything else here is genuinely strong work: the diff is tightly scoped to ADR-079, the four incidental bug fixes are each real and each carry a regression test that fails without the fix, and the doc comments explain why at a standard well above the bar. I verified the load-bearing claims empirically rather than by reading, including two throwaway probe tests (since deleted; working tree is clean). What is right, and worth saying so
Findings🔴 [Critical/Blocker] 1. A node with two parents rolls up to neither — silently
So the Play's shape is load-bearing on a node having exactly one parent, and the failure is the silent-false mode ADR-079 §2 explicitly calls a correctness bug rather than a cosmetic one. I confirmed this with a probe: parent A and parent B both Whether
Recommendation: at minimum, add a test pinning the current behavior and record the single-parent assumption in ADR-079 and in Principle: a correctness property that holds only for a data shape nobody has written down is an accident waiting to be promoted to a bug. 🔴 [Critical/Blocker] 2. The additive/destructive split fixes the prompt but not the runtime disable
The PR's stated motivation is that with a core Play on
.filter(|(_, pb)| {
play_references_node_type(pb, schema_node_type)
|| play_has_paths_through_schema(pb, schema_node_type)
})So the exact scenario the PR describes — a user calls Mitigating: Recommendation: thread the same Principle: when you introduce a classification to stop an over-broad guard, apply it at every consumer of that guard — a half-applied invariant reads as fixed while still failing. 🟡 [Improvement] 3.
|
| Severity | Count | Items |
|---|---|---|
| 🔴 Critical | 2 | Multi-parent silent no-op; additive/destructive not applied to the runtime drift path |
| 🟡 Improvement | 4 | extends misclassified additive; core-field shadowing scope + unpinned key-set agreement; action-path scope asymmetry; two test holes |
| 🟢 Nit | 4 | Duplicated builtin helper; empty-guard comment; ADR §4 overstatement; seed failure mode |
The architecture is sound and the ADR alignment is unusually careful — this is a net improvement to code health and the four incidental bug fixes are each worth having on their own. The blockers are narrow: Finding 3 is one line, Finding 2 is threading an enum that already exists into a second call site, and Finding 1 may be resolvable by documenting-and-testing rather than by code. My scope-cache concern from the brief checked out clean, and so did the is_core_key agreement.
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.
Two blockers, both narrow: (1) a node with two has_child parents rolls up to neither, verified empirically — silent false, no log; (2) the new additive/destructive split fixes the force=true prompt but not lifecycle.rs's schema-drift path, which still disables the seeded Play on an ordinary add_field_values edit. Plus one line missing from the destructive predicate (params.extends).
The scope-cache safety claim and the is_core_key/core_field_value agreement both checked out clean.
Review addendum — correcting my own Nit 8 upward to an ImprovementA follow-up verification pass (probing The empty-collection rationale in ADR-079 §3 is wrong about its own mechanismADR-079 §3 and the doc comment at CEL Why this matters more than a comment nit: that guard is the only thing preventing mass auto-completion. Binding an empty list instead of omitting the key reads like a harmless normalization — and would flip Recommendation: correct ADR-079 §3 and the
|
…isabling Review findings from PR #2752. Critical 2 (runtime disable): check_schema_change_impact's additive/ destructive split fixed the force=true prompt but left a second path. handle_schema_updated disabled every play referencing the changed type, so an ADR-076-blessed add_field_values passed the prompt and disabled the seeded Play anyway. Candidates are now re-validated against the new schema and only genuinely-broken plays are disabled. Validation needs store access, so it runs outside the lifecycle lock. A FIFTH bug surfaced while writing the subtype test the review asked for, and it is the one that made acceptance criterion 2 quietly false: ancestor_keys rewrote a trigger key's node_type but carried its property_key through verbatim. A real PropertyChanged event is type-namespaced, so a bug.status change fanned out to (task, "bug.status") - a key nothing is registered under. No property-scoped Play has ever fired on a subtype. The existing fan-out test used a bare "status", the one spelling where this cannot fail. Critical 1 (multi-parent): not a defect. The outline is single-parent by construction - get_parent and get_parent_id both resolve with LIMIT 1 - so a two-parent node is already malformed and nothing in the product creates one. The Play declines to act rather than completing whichever parent sorts first. Documented in ADR-079 section 3 and pinned by a test. Also: extends re-targeting reclassified as destructive (it removes the previous parent's fields from the effective set); core-field shadowing documented as applying to the trigger node too; the load-bearing empty-collection guard commented; is_reserved_relationship_name reused instead of open-coded. Tests: the childless-task negative gained a positive control (it would have passed with the Play disabled entirely), plus multi-parent and subtype-integration cases. Each new fix has a regression test verified to fail without it. Skipped: threading scope through the three resolvers outside the condition path (actions.rs, workflow_state.rs). Real per ADR-078, but no current caller needs it and it widens an already-large PR - belongs with the remaining #2747 items. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Review addressed — 8 of 10 findings, plus a fifth bug the review's test request uncoveredCommit 🔴 Critical 2 — runtime disable path — fixedCorrect and important. The additive/destructive split fixed the Candidates are now re-validated against the new schema via 🆕 A fifth bug, found writing the subtype test this review asked forThe most consequential finding of the round, and it made acceptance criterion #2 quietly false:
No property-scoped Play has ever fired on a subtype. The existing fan-out test used a bare Fixed with This is the honest correction to my earlier claim that criterion #2 was satisfied: the 🔴 Critical 1 — multi-parent — not a defect; documented and tested insteadRespectfully pushing back. The outline is single-parent by construction: The Play no-ops there rather than completing whichever parent sorts first, which is the safer failure. Now documented in ADR-079 §3 (including that it is an assumption, not an enforced invariant — nothing rejects a second edge at write time) and pinned by 🟡 Addressed
🟢 Nits
⏭️ Skipped — 5, scope threading beyond the condition pathReal per ADR-078, but no current caller needs it ( DocsADR-079 updated and pushed ( Re-review requested: two criticals with substantive changes to shared engine paths, plus a bug fix the first pass never saw. |
Pragmatic Code Review — PR #2752 (Re-review of
|
| Severity | Count | Items |
|---|---|---|
| 🔴 Critical | 1 | Multi-parent pushback contradicted by the write path (CLI + agent tool) |
| 🟡 Improvement | 2 | Dead handle_schema_update; discarded validation errors / mis-attributed cause |
| 🟢 Nit | 2 | Empty-collection mechanism still misstated; bare property_key never matches |
Eight of ten prior findings are properly closed, and the lock restructuring, the extends classification and the shadowing documentation are all correct as written. The subtype fan-out bug is a genuinely valuable catch — a whole class of Play never fired on a subtype, and the honest correction of the earlier acceptance-criterion claim is the right way to have handled it.
Finding 11 is the only blocker. It is narrow and has a cheap resolution: either add the single-parent guard at the one write site, or make the ADR say what is actually true about the write path. What cannot ship is the current combination, where the documentation asserts unreachability that two supported product surfaces contradict.
Findings 12–15 are all small and none needs a re-review on its own.
Skipped item (scope threading to actions.rs / workflow_state.rs) — the deferral to #2747 is reasonable. id is scope-invariant, it is the only thing this Play binds from an action, and the asymmetry is now recorded rather than silent. I would not hold the PR for it.
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review (re-review): REQUEST CHANGES — full findings in the comment above.
8 of 10 prior findings properly closed. The lock restructuring is sound (I checked the TOCTOU — benign in all three directions), and the new subtype fan-out fix is the most valuable change in the PR; I confirmed both its tests fail with the fix reverted. 34/34 core test binaries pass.
One blocker: the multi-parent pushback is contradicted by the write path. I reproduced a two-parent node through rel_ops::create_relationship — the exact entry point the CLI (relationship create --type has_child) and the agent create_relationship tool both call. has_child resolves as a builtin and skips the cardinality check entirely. get_parent's LIMIT 1 hides the second parent rather than preventing it. Either guard it at the write site or correct ADR-079 §3 to say what is true.
Re-review findings from PR #2752. Finding 11 (blocker) - I was wrong, and the reviewer proved it by running the write path rather than reading it. My claim that 'nothing in the product creates' a two-parent node was false: a built-in relationship has no SchemaRelationship, so it skips the declared-cardinality check, and two shipped surfaces reach that gap - the CLI's 'relationship create --type has_child' (free-text name, no allowlist) and the agent's create_relationship tool. Both added a second parent with no error. The reasoning error is worth naming: I read get_parent's LIMIT 1 as evidence a second parent could not exist. It is the opposite - it is the mechanism that silently hides one, making a node's parent depend on row order. A LIMIT 1 in a read path is not an enforced invariant. create_relationship now rejects a second has_child edge onto a node that already has a parent, at the one point every surface converges. Re-asserting the SAME edge stays legal, so callers re-attaching an existing child are unaffected. Single-parent is now true by construction, which get_parent and the whole outline UI already assumed. Finding 12: handle_schema_update was dead after the previous commit - pub on a pub type, so dead_code never fired. Deleted, and its six tests converted to plays_referencing_schema with assertions matching the new contract: identifying a candidate must NOT disable it. They had been asserting the superseded behavior while calling orphaned code. Finding 13: the disable warning discarded the validation errors. Now logged - validate_play checks the whole play against every schema it references, not just the changed one, so without them the warning misattributes a pre-existing break to whichever schema was touched first. Finding 14: my empty-collection comment repeated the mechanism error it was meant to fix. CEL's .all() over an empty list returns true, per spec. The false comes from the key being ABSENT, raising NoSuchKey, which the evaluator maps to Fail. Corrected in the code and in ADR-079 section 4, which now flags that playbook-engine.md's phrasing is inaccurate. Finding 15 (bare property_key never matches a real event): pre-existing, not introduced here, and the shipped Play correctly uses 'task.status'. Left for a separate issue rather than widening this PR. ADR-079 updated: section 3 rewritten from 'assumed' to 'enforced', the now-impossible silent-skip consequence replaced with the real one (a second edge is now rejected where it previously succeeded), and the LIMIT-1 reasoning error recorded so the next reader does not repeat it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Re-review addressed — blocker fixed at the root, 4 of 5 findings closedCommit 🔴 Finding 11 — multi-parent — you were right, I was wrong; fixed at the write pathThe pushback was based on a bad inference and the probe disproved it. Verified independently before acting: The reasoning error, stated plainly: I read Fixed at the root rather than documented around it.
🟡 Finding 12 — dead
|
Pragmatic Code Review — PR #2752 (Round 3 re-review of
|
| Path | Reaches the guard? | Can it create a second parent? |
|---|---|---|
create_relationship (CLI, agent tool, daemon gRPC) |
✅ yes | ❌ now rejected — this was the hole |
NodeService::move_node (drag-drop, indent/outdent) |
❌ bypasses | ❌ store deletes old edge + inserts new in one tx |
move_node_unchecked (upsert reparent) |
❌ bypasses | ❌ same store tx |
create_node_with_parent → create_parent_edge_in_tx |
❌ bypasses | ❌ child is created in the same tx; cannot pre-hold a parent |
bulk_create_has_child_edges (sync cold-sweep) |
❌ bypasses | ❌ store skips any already-parented child (relationships.rs:1074) |
move_children_to_parent |
❌ bypasses | ❌ version-gated DELETE then INSERT in one tx |
So the guard sits at the one converging surface that was actually reachable, and every bypassing path is already structurally single-parent — either delete-then-insert, or skip-if-parented, or a same-transaction fresh node. Placing it beside the member_of cycle check in the is_builtin branch is right: that is where built-ins get their type-specific validation, and it is the reason a built-in skipping the declared-cardinality check needed compensating there rather than in each caller. The doc comment states exactly this, correctly.
2. The reparent regression — checked directly, not by reading. This was the highest-risk outcome, since a "add new parent, then remove old" reparent would now hard-fail. It is not implemented that way. SqliteStore::move_node (nodes.rs:2556-2578) does DELETE-then-INSERT inside one transaction, with a comment explaining the atomicity requirement. Probes confirmed:
- reparent A→B via
move_nodewith OCC: ✅ lands on B; moving back to A: ✅ - reparent via
move_node_unchecked: ✅ create_node_with_parent: ✅bulk_create_has_child_edgesonto an already-parented child: returns0created, parent unchanged — correctly skipped, not an error
No legitimate flow breaks. Drag-and-drop, indent/outdent, and paste/duplicate-subtree all route through move_node/create_node_with_parent, never through create_relationship.
3. The idempotent re-assert is genuinely safe, and narrower than "allow re-asserts". The guard compares existing != source_id, so it permits only the same (parent, child) pair and rejects every different parent. It cannot mask a second-parent attempt — a different source_id is precisely what trips it. I also confirmed the allowed re-assert does not duplicate the edge: with no order, append_child_edge is INSERT OR IGNORE; with an explicit order, the earlier already_exists idempotency check short-circuits. Three re-asserts (bare, bare, explicit-order) left exactly one child.
I also confirmed the guard applies on the explicit-order path, not just the auto-order one — it runs before the edge_data.get("order") branch, so --edge-data '{"order":2}' is rejected too. That is easy to get wrong and is right here.
4. Error type and message. invalid_update → NodeServiceError::InvalidUpdate → Display as Invalid update: Node 'X' already has parent 'Y'; the outline is single-parent. Move the node instead of adding a second has_child edge. It reaches CLI and agent callers intact through service_error_to_status. The variant is a reasonable fit (a rejected write on validation grounds, same as the adjacent member_of target-type rejection) and the message names both ids and the remedy. This is the right shape for an agent caller, which needs to be told to use move_node rather than retry.
Revert check: removing the guard makes a_second_parent_edge_is_rejected fail with a second has_child parent must be rejected: (). It is a real regression test, not one that happens to pass. Guard restored; tree clean.
Other findings verified
Finding 12 — dead handle_schema_update: fixed. Deleted; workspace-wide grep for handle_schema_update\b returns zero hits. The six tests are converted to plays_referencing_schema and — importantly — their assertions now pin the new contract, not just the new method name. schema_change_flags_directly_referencing_play_as_a_candidate asserts PlayStatus::Active with the message "identifying a candidate must not itself disable it", which is exactly the behavior change that made the old tests vacuous. They pin something meaningful now: previously they asserted the superseded disable-everything policy against an orphaned method.
Finding 13 — discarded errors: fixed. engine.rs:924-944 joins the errors into the warning. The doc comment records point (b) — that validate_play checks the whole play against every referenced schema, so the triggering schema is not necessarily the culprit — which is the more valuable half and was the subtler part of the finding.
Finding 14 — empty-collection mechanism: now accurate. The resolver comment (graph_resolver.rs:491-500) and ADR-079 §4 both now state absent key → NoSuchKey → Fail, and explicitly concede that CEL's .all() over an empty list returns true per spec. I re-confirmed at cel.rs:758: Err(ExecutionError::NoSuchKey(_)) | Err(ExecutionError::UndeclaredReference(_)) => ConditionResult::Fail. The comment's named function evaluate_conditions_at_scope exists (cel.rs:703) and is the right referent. ADR-079 §4 additionally flags playbook-engine.md:223 as the inaccurate root without editing a shared architecture doc from this PR — the right call.
Finding 15 — deferred: reasonable. Normalising registration keys changes trigger matching for every existing Play; that is the same blast radius as the fan-out fix and deserves its own review. Nothing shipped depends on it (the Play writes task.status), and asking the reviewer to choose between normalise-at-registration and reject-at-save is the right way to hand off an open design question rather than guessing.
ADR-079 §3 and §4 now match the code. §3 is rewritten from "assumed" to "enforced", names both reachable surfaces, records the idempotent-re-assert carve-out, and keeps the collection-walk no-op as defence in depth. The negative consequence ("a second has_child edge is now rejected where it previously succeeded") is recorded. The "Discovered while implementing" section records the LIMIT 1 reasoning error as a general lesson — that is the sort of note that stops the mistake recurring, and it is unusual to see an author write it down.
Regression: cargo test -p nodespace-core --tests → 34/34 binaries pass, 0 failures (1575 in the lib binary).
Findings
🟢 [Nit] 16. create_relationship_in_tx does not carry the guard, so a Play add_relationship action can still add a second parent
packages/core/src/services/node_service/relationship.rs:786-816
The tx-scoped twin mirrors the member_of target-type and cycle checks but not the new has_child single-parent check. It is reachable: execute_add_relationship_in_tx (actions.rs:1973) calls it, so an invariant rule with action_type: add_relationship, relationship_type: "has_child" and an explicit order would insert a second parent edge, bypassing the guard.
Why this is a Nit and not a blocker:
- It is not a new hole — it existed identically before this commit, so nothing regresses.
- It is not reachable from the surfaces the finding was actually about (CLI, agent tool, daemon), which all route through the non-tx
create_relationship. - It requires a user to hand-author an invariant Play that deliberately writes
has_childwith an explicit order —validation.rs:993already rejects that action without an explicitorder, so the shape is narrow and deliberate. - No shipped Play does this.
Still worth closing, because the stated justification for the placement is "enforce here, where every surface converges" — and this is the one surface that does not converge there. The two methods are already maintained as deliberate twins (the doc comment on create_relationship_in_tx enumerates exactly which behaviors are and are not reproduced, and why), so the honest options are to add the check or to add it to that enumeration.
Recommendation: either lift the check into the tx twin using get_parent_id_in_tx-style access, or add one line to create_relationship_in_tx's doc comment noting the single-parent guard is deliberately not reproduced and why. The second costs nothing and keeps the twins' divergence documented, which is the existing convention in that file. I would not hold the PR for the code change.
Principle: when a guard's rationale is "this is where everything converges," any path that does not converge there needs to be either covered or named.
Verdict
| Severity | Count |
|---|---|
| 🔴 Critical | 0 |
| 🟡 Improvement | 0 |
| 🟢 Nit | 1 |
Approve. The round-2 blocker is fixed at the write path rather than documented around, which is the stronger of the two options offered and makes ADR-079 §3's "true by construction" claim literally true. Findings 12–14 are properly closed with assertions that pin real contracts, and 15's deferral is well reasoned.
The thing I most expected to go wrong — a reparent implemented as add-then-remove, which this guard would have broken outright — does not exist in this codebase; reparenting is delete-then-insert in a single transaction at the store layer, and every non-converging write path is already structurally single-parent by its own mechanism. I checked that by running the flows, not by reading them.
Finding 16 is genuinely optional and needs no re-review.
Automated pragmatic-code-review, round 3. All probe files deleted; working tree clean.
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review (round 3): APPROVE — full findings in the comment above.
Round-3 review nit 16, and a fair one: the guard's own comment claimed 'enforce here, where every surface converges', but the in-tx twin was the one surface it did not cover. An invariant Play's add_relationship action reaches create_relationship_in_tx, so the claim was false for exactly the path that runs inside a transaction. Added get_parent_id_in_tx as the proper _in_tx twin of get_parent_id (ADR-069 section 1a). check_relationship_exists_in_tx could not serve: it counts by in_node, the parent side, and this asks the child side. Also corrected the non-tx comment to say what is actually true - enforce at the service entry point every external caller reaches - and to record why the reparenting paths need no guard: move_node is delete-then-insert in one transaction, bulk_create_has_child skips already-parented children, and create_parent_edge_in_tx creates the child in the same transaction. New test pins that reparenting still works. A guard rejecting a second parent is precisely the shape that breaks a move implemented as 'attach new, detach old', and nothing else in the file would have caught that regression. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Nit 16 closed —
|
| # | Defect | Found by |
|---|---|---|
| 1 | maps_to not applied to traversed nodes |
implementation |
| 2 | Play validation rejected built-in relationships | implementation |
| 3 | Related node's core fields didn't resolve | implementation |
| 4 | Over-broad schema-change impact check | implementation |
| 5 | Subtype fan-out dropped the property namespace | round-2's test request |
| 6 | Nothing enforced single-parent on has_child |
round-2's probe |
Defects 5 and 6 are the ones worth calling out. Both were invisible to reading: #5 made acceptance criterion #2 quietly false — the Play never fired on a subtype at all — and #6 disproved a pushback I'd argued confidently from LIMIT 1. Neither would have been caught without someone executing the path.
The recurring lesson, now recorded in ADR-079: a LIMIT 1 in a read path is not evidence the second row cannot exist — it is usually evidence someone assumed it couldn't, and the query is what hides the counterexample.
One item deferred to its own issue (Finding 15): a bare property_key can never match a real event. Pre-existing, nothing shipped depends on it, but it is the same trap that concealed #5 — a test asserting a match that cannot occur in production.
Implements the parent-task completion rollup from ADR-079: when every
has_childchild of a task reaches a terminal status, the parent is set todone.The Play
Seeded unconditionally as a user-modifiable play node carrying
_seed.default_rules(ADR-060 §8), so it can be inspected, edited, disabled or reset. Reconciled per id, so a user's edits survive startup and a Play added in a later release still reaches an existing database. Its node id is stable and hardcoded — ADR-060 §5 keys cross-Play rule ordering on it.Semantics, each recorded in ADR-079 and covered by a test:
cancelledcounts as terminal alongsidedone. The rollup asks whether work remains under the parent, not whether everything succeeded; excluding it would strand a parent whose last remaining child was abandoned. The parent is always set todone, nevercancelled— propagating cancellation upward would assert an intent the Play has no basis to claim.falserule (a deliberate departure from vacuous truth) rather than by a count guard.Four bugs found while building it
Each has a regression test that I verified fails when its fix is reverted.
maps_towas never applied to nodes reached by traversal.enrich_contextbuilt related nodes withnode_to_cel_value, so a base-scoped Play comparing a subtype child's extended enum value never matched — a silentfalse, no error. This is item 4 of Cleanup deferred from ADR-078 extends implementation (#2598) #2747, triaged there as "not a known-live correctness bug"; it was live.scoped_node_valueis now shared rather than reimplemented, per ADR-078's one-shared-resolution-function rule. Items 1, 2, 3 and 5 of Cleanup deferred from ADR-078 extends implementation (#2598) #2747 remain open.has_child/child_ofhave noSchemaRelationshipbehind them, so validation refused paths the resolver walks perfectly well. This blocked seeding outright.id/node_type/contentare struct fields in no bucket, sonode.child_of.idreturnedMissingand failed the action — which disables the whole Play — thoughnode.child_ofalone resolved fine.check_schema_change_impactwas over-broad. It flagged any Play whose trigger named the schema, regardless of what changed. With a core Play ontask, everytaskschema edit — including adding a status value — demandedforce=truefrom every user for a change that provably cannot break it. Now classified additive vs destructive; the function's ownTODOhad called this out as "acceptable for v1".Also
Adds the
playcore schema, whichplaybook-system.mdspecifies asisCorebut was never present. Nolog/playbook_logschema alongside it: that surface writes nine properties today, and declaring them would switch on enforcement over drifted data — the ADR-076ai-chat.statushazard that broke 16 tests. Worth its own issue.Behavior change worth reviewer attention
Two existing tests now pass
force: true. That is the real consequence of shipping atask-triggered core Play: destructivetaskschema edits (removes, renames) now require confirmation for every user. Additive ones do not, after fix 4.Testing
test:all+cargo build+ e2e).Closes #2636
🤖 Generated with Claude Code