Repository navigation
Description
Overview
Changes to seeded skills and prompts are undeliverable to any database that has ever been seeded. This blocks shipping the skill-description rewrite, and it is a standing source of invalid measurements.
Problem Statement
packages/core/src/services/node_service/mod.rs:1307 seed_nodes_from_templates skips at type granularity — its own doc comment states that if any node of a given node_type already exists, the entire type is skipped. One pre-existing skill node freezes every skill permanently.
Two consequences:
- Content fixes never ship. The skill-description rewrite and any seeded guidance change reach only fresh installs.
- Evals silently measure stale guidance. Guidance is compiled in, seeded once, then frozen. Any eval run without a full DB purge and daemon rebuild measures whatever was seeded first. This has already produced recorded-but-wrong numbers, and it is why the current agent baseline is untrustworthy.
The second point makes this a measurement-integrity issue, not only a delivery one.
Proposed design
Classify seeded content into two tiers:
system— engineering artifacts that happen to be stored as nodes: skill descriptions tuned for embedding retrieval, tool-selection guidance. Not user-editable; always replaced when the template changes. A user editing an embedding-tuned description is as out-of-contract as editing a tool schema.starter— example prompts, templates, workspace content. Genuinely the user's; protected once modified.
Per-node reconciliation at startup, replacing the type-level skip:
| state | action |
|---|---|
| absent | create |
present, system, hash differs |
replace |
present, starter, not user-modified, hash differs |
replace |
present, starter, user-modified |
skip, log once |
Each seeded node carries a seed_version (template content hash). The user-modified flag is set by the edit path and applies to starter only.
Rejected alternatives
- Purge on upgrade. Destroys user-authored skills and prompts. The pre-release stance licenses breaking formats; it does not license building a mechanism that is known-wrong the day the product has users.
- Compile all guidance in and drop user-editable prompts. The compiled-in resident block is precisely what measurement shows is harmful; "more of that" is the wrong lesson. The
systemtier captures the defensible part of this option without the rest.
Evidence
packages/core/src/services/node_service/mod.rs:1307and its idempotency doc comment- The skill-description rewrite (rank-1 retrieval 35% → 75%) is undeliverable without this
- Recorded prior incidents of evals measuring stale guidance because seeding skipped existing nodes
Acceptance Criteria
- Seeded nodes carry
seed_version(content hash) and a tier marker - Reconciliation is per-node; the type-level skip is deleted
- A
system-tier content change reaches an already-seeded DB on next start — verified by test - A user-edited
starternode survives re-seeding — verified by test - An unedited
starternode is updated — verified by test - Reconciliation cost is bounded and does not measurably affect startup
- Per the pre-release stance: no migration path, no dual-mode. Existing databases converge on first run via hash mismatch
Architecture Impact
Amends ADR-030's assumption that all seeded content is uniformly user-editable — most of it should not be. Prerequisite for treating any guidance as graph data, and it removes the purge-before-eval requirement that currently invalidates measurements.
Activity
malibio commentedon Jul 30, 2026
Frontend baseline: 171 test files passed, 4112 tests passed (59.10s)
Add fetch-at-activation guidance mechanism for external agent skill s…