Repository navigation
Embed decision, spec and plan nodes as roots so semantic search finds them - #4242
Conversation
Review (Initial Review): PR #4242, embed decision/spec/plan as rootsRequirements Check
Findings🟡 Important: 🟡 Important:
🟡 Important: tests do not exercise the issue's headline criterion. Add or extend an embedding test so a search for a body phrase returns the decision. A weaker alternative is asserting the embedded text produced for the root through the service, not only through the behavior with a mock accessor. As written, 🟢 Suggestion: 🟢 Suggestion: the registry comment at Other lists of embedded types: a grep across the No node-type-sequence violations: no new field, no literal type comparisons, RecommendationCOMMENT (leaning approve once the change-log class is justified or corrected and a listing test is added). The code change is small, correct and consistent. The open points are the shape-record classification, an unpinned listing side effect, and the missing end-to-end search assertion. Posted as a comment review because GitHub blocks self-approval. |
malibio
left a comment
There was a problem hiding this comment.
Review posted above. Verdict: COMMENT (leaning approve): fix or justify the change-log class (rebuild vs migrate), and add a listing-scope test for spec/plan/decision.
Address-review summaryAddressed
Skipped
Correction to the PR description: not every new test fails without the fix. With the behavior fix reverted, 3 of the 4 new behavior/queue tests fail; Still open: the
Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: This round added one test and changed no production code. The two judgment calls the reviewer raised (change-log class, end-to-end proof) are answered above with evidence. |
|
Merge queue: #4242 was taken out of the queue — the merge gate failed on it, on top of main. Reproduce by merging or rebasing |
|
Merge queue: #4242 was taken out of the queue — the merge gate failed on it, on top of main. Reproduce by merging or rebasing |
8f471be to
70ae0ef
Compare
Summary
decision,specandplanare embedding roots. Their own content is the title (the default), and the root aggregates its subtree the way a text root does (aggregate_children_content, the helper text, header and schema already use).CoreNodeType) and the default Knowledge search scope (KNOWLEDGE_CORE_TYPES) list the three types too. Without the scope entry the types are embedded but a plainnodespace searchstill hides them; only--type decisionfinds them.migrate.Kind/category: no new type, field, relationship or structural rule. The change is participation (embedded) and the behaviour's aggregation. Docs: node-types.md updated in the docs working tree (participation table plus the spec, plan and decision lines); not yet pushed.
Existing databases (measured on a scratch database, never Default)
Nothing marks an existing decision stale. Restarting the daemon queues nothing, and there is no sweep for unembedded roots. An untouched decision stays unembedded until one of these:
nodespace import file|dir --replaceon a decision that came from an import (the replace re-marks the kept root stale)A no-op update (identical content) bumps the version but queues nothing.
Test plan
test_all_behaviors_embeddable_content_decisionstates the three types as embeddablebun run test:changedpasses🤖 Generated with Claude Code