Repository navigation
Put a shipped change to a customised seed to the user instead of only logging it - #3572
Conversation
Pragmatic Code Review: PR #3572 (issue #3558)Review Type: Initial Review SummaryThe change is a clear net improvement and the core mechanism is sound. I found no path where a shipped version is applied without the user's choice, no data-loss path, and no CLAUDE.md violation. There are two Important findings, both about core plays now being reconciled, plus some suggestions. Reviewed by reading the full diff and the surrounding code. I did not run any test suite (the build slot was held), so "tests pass" and What I checked and found correct:
Requirements Check
Code Review Findings🟡 Important1. "Take shipped" (and reset) leaves fields the template does not declare, yet clears the modified flag
2. Core play reconciliation is now a fatal step of every database open, and its main new behaviour is untested
🟢 Suggestions3. The app and CLI offer Compare and Take for seeds this build cannot resolve
4. "Keep mine" is a one-way choice for every kind except skills
5.
6. The pending list in the app goes stale when the CLI settles an item
7. The config comparison reads the two sides from different shapes (suspicion, not confirmed)
8. The cascade test does not prove the cascade
Nitpicks
RecommendationAPPROVE The change is a net improvement and the keep, take and reset logic holds up under the edge cases I traced. Findings 1 and 2 should be addressed or consciously accepted before merge; both are small. Criterion 9 stays partly open for schema declarations, as the PR body already says. |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Address-review summary
Addressed
Also fixed, found by the test run rather than the review: the schema shape test now lists Skipped
Still openAcceptance criterion 9 for seeded schema declarations (context paths) is not met and cannot be from this PR: context paths arrive with #3557 and core schemas are not reconciled after creation. Re-Review DecisionDecision: RE-REVIEW NEEDED Rationale: The fixes add a field across five layers, change a failure from fatal to logged on the database-open path, and change the store's read-failure behaviour. These are small but not trivial, so they get a second look. |
Pragmatic Code Review: PR #3572 (issue #3558)Review Type: Re-Review Scope: Previous Review Summary
Addressed: verified in the code
Skipped: my view on each reason
Open path and store behaviour (the points I was asked to check)
Code Review FindingsNo Critical or Important findings. Three suggestions, none blocking. 1. 🟢 Suggestion: any shipped config change to a core play now clears its suspension
2. 🟢 Suggestion:
3. 🟢 Suggestion: the reload after a failed choice can leave the page reviewing a row that is gone
RecommendationAPPROVE Both Important findings from the first review are fixed correctly, the skipped items are skipped for sound reasons, and the new commits introduce no defect. Finding 1 above is a behaviour change worth a conscious decision, but its effect is bounded and it does not block the merge. Acceptance criterion 9 for seeded schema declarations stays open, as the PR already states. |
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 round)
Addressed
Also added one line to the CLI reference for SkippedNothing from this round. Still openAcceptance criterion 9 for seeded schema declarations (context paths), as stated in the PR body: it depends on #3557. Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: The re-review approved with suggestions only. This round is one narrow change to |
…e core plays (#3558) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… block an open, flag updates this build cannot show (#3558) - The core play template names `enabled`, so taking the shipped version or resetting restores it - A failed core-play reconciliation is logged, not fatal to opening the database - `shipped_available` on a pending update; Compare and Take are disabled without it - The app reloads its list after a failed choice - Tests: a shipped rules change replaces an unedited play; the cascade is read from the table - The schema shape test lists the new table Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…t was (#3558) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ipped change does not lift a suspension (#3558) - replace_seed_config leaves out fields the node already holds at the shipped value - Tests: a suspended play stays suspended through a description-only change; the daemon reports shipped_available from its compiled tables - The page stops comparing a row after a failed choice Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
68efbb2 to
e5f56a2
Compare
Closes #3558.
What this does
When a new version of a built-in item ships and the user has edited that part of it, NodeSpace keeps the user's version. Until now it only wrote a log line. It now records the item as pending and puts the choice to the user, in the app and through the CLI. Nothing is replaced without that choice (ADR-094 §8, amending ADR-072).
How it works
(node, aspect, shipped fingerprint)in a new local table,pending_seed_update, when it keeps a user-modified aspect whose shipped content differs. The row is removed when the aspect is current again. It is not a node or a node property, so search, queries, plays and agent tools never see it. Deleting the seed removes its rows._seedversion and removes the row. The aspect stays settled across restarts and is put to the user again only when the shipped content next changes.nodespace skill resetworks as before and clears anything pending for what it resets.seed_nodes_from_templates. A template's own_seedkeys (a play'sdefault_rules) are kept beside the reconciliation keys.Surfaces
ListPendingSeedUpdates,GetPendingSeedUpdate(shipped version beside the user's),ResolvePendingSeedUpdate(keep or take).nodespace seed pending(and--json),seed show <item>,seed keep <item>,seed take <item> [--yes]. An item is a node id or exact title, with--config/--guidancewhen both parts are pending.takeconfirms, and refuses without a terminal unless--yesis given.Not covered: seeded schema declarations
The issue asks that this work for "a seeded schema declaration a user has edited", such as context paths. It does not yet, and cannot from this PR alone:
The record is keyed by node and aspect, so a reconciled schema declaration records its pending updates the same way once #3557 adds one. That acceptance criterion is left unchecked on the issue.
Node types
No node type, field, relationship or rule changes.
_seed.config_version/guidance_versionkeep their names; their meaning widens from "content hash" to "the shipped version this aspect was last replaced from, or kept against".Tests
packages/core/tests/it/pending_seed_updates_test.rs: a skill body, a skill's settings, a Play and a saved query, each kept and recorded; keep survives restarts until the shipped version changes again; take replaces only that aspect; an unmodified seed is still replaced automatically; reset clears pending state; pending state is not node content.packages/cli: an end-to-end run through the daemon (list, show, keep, take), plus output and argument tests.packages/desktop-app: the store, the Built-in updates page (nothing applied on open, take only after confirmation), the Settings marker and the category's visibility.Docs
components/seeded-nodes.md(new "Pending updates" section), ADR-072 (amendment note),components/node-types.md§1.5, andpackages/skill/references/cli.md. The docs change is pushed to nodespace-docsmainalongside the merge.🤖 Generated with Claude Code