Repository navigation
Let agents fetch NodeSpace's skills and schemas by task, embed schemas, and render built-in skills per audience - #3538
Conversation
Pragmatic code review: PR #3538 (issue #3502)Review Type: Initial Review Reviewed by reading code. No Rust suites were run by the reviewer, and the SummaryA clear net improvement, and the design matches the issue. No Critical issues. Four Important findings: one verified scope leak, one coverage gap on the new selection logic, one audience divergence on user-extended seeded skills, and one unevaluated in-app behaviour change. Checked and found clean:
Requirements Check
Findings1. 🟡 Important: an empty
2. 🟡 Important: Every test reaching it is 3. 🟡 Important: a seeded skill the user extended is served to external agents without the extension
4. 🟡 Important: the in-app agent now gets unfloored schema candidates on every turn, unevaluated With schemas embedded, 5. 🟢 Suggestion: 6. 🟢 Suggestion: the SCHEMA banner drops the trust caveat. 📁 7. 🟢 Suggestion: the requeue comment overstates. 📁 8. 🟢 Nit: 9. 🟢 Nit: the listing decision is duplicated in the CLI ( RecommendationREQUEST CHANGES, narrowly. Finding 1 is a one-line fix plus a test case. Finding 2 is a small refactor that gives the 0.85 bar a gate-run test. Findings 3 and 4 need a decision. The rest are optional. |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: REQUEST CHANGES (posted as a comment — GitHub blocks self-review verdicts). Full findings in the review comment above.
Review addressed (commit b927a01)Addressed
Not changed
Tests: Re-Review DecisionDecision: RE-REVIEW NEEDED Rationale: Findings 2 and 3 changed logic, not wording: the schema choice was restructured, and what decides whether a built-in skill is served in its CLI form changed from a flag to a content comparison. |
Pragmatic code re-review: PR #3538, commit b927a01Review Type: Re-Review (read the code only; no suites run by the reviewer) Previous Review Summary
On the content comparison: the gate-run New FindingsA. 🟡 Important (not blocking): no gate-run test proves an untouched seeded skill still compares equal after a real database round trip The CLI form depends on a comparison that fails soft: one differing line and the fetch silently serves the in-app body. The gate-run round-trip test skips the database, and the daemon unit tests feed the template straight in. Recommendation: in B. 🟢 Suggestion: The fixtures are hand-written, so a key renamed in Suspicion, not verified, not introduced here: if a child added under a seeded skill does not stamp RecommendationAPPROVE. Finding A is a cheap test worth folding in before merge. Finding B is 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). Findings in the re-review comment above.
Re-review addressedA (🟡). Added B (🟢). Reworded the test comment: it documents that an entry missing the keys contributes nothing, and says a renamed key is caught by the live fetch tests, not by it. Not changed: the reviewer's unverified suspicion that a child added under a seeded skill does not stamp Tests: Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: The re-review approved. This round adds one test and rewords one comment, with no change to product code. |
…render seeded skills per audience (#3502) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…reference, and add fetch, schema-embedding and exact-scan tests (#3502) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…d log schema scores (#3502) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ribe the fetch on the skill command (#3502) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…he fetch's schema choice, and serve a changed built-in skill as stored - An empty node_types list no longer drops the default search scope. - The fetch's schema choice is a pure function with tests the gate runs. - A built-in skill is rendered in its CLI form only while its stored guidance is the seed's, so an added or removed paragraph is served too. - The schema banner says its descriptions are user-authored. - cli.md points skill lookups at skill guidance. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… is still served in its CLI form Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
55f683b to
a0341a1
Compare
Closes #3502.
An external agent (Claude Code, Codex) can now fetch NodeSpace's skills by task, with the schemas of the types the task touches.
SKILL.mdteaches the fetch and no longer restates the procedures.What changed
Retrieval
nodespace skill guidance "<task>"is served by a newNodeService.GetSkillGuidanceRPC overskill_ops::find_skills, so ranking is the in-app agent's: no 0.7 floor, exclusion re-rank. It previously rode the generic node search, whose default scope drops everyskillnode, so it matched nothing.applies_to), the ones the task names, and schema-search matches scoring 0.85 or more.search_embeddings_by_node_type) is now an exact scan over the type. It was documented as one but took a KNN window over all embeddings and filtered by type afterwards, so a small type fell out of the window in a large graph.nodespace search "<query>" --type <type>returns that type's matches: an explicit type filter replaces the defaultKnowledgescope for a query, as it already did for a listing. An unfiltered search still excludes system types.Schema embeddings
create_schema(so also a workflow install), byupdate_schemawhen it commits or renames a field, and by core schema seeding. None of these queued before, so no schema was ever embedded.find_skillsand the workspace context rank every schema and apply their cap after dropping core types, since core schemas are now embedded too.One body, two audiences
ProcedureRulekind with an agent form and a CLI form.# <Name> Guidanceheading is gone, and Relationship Management's TRAVERSING line is replaced by therelationship-reverse-traversalrule, which no skill included before.relationship-direction), also rendered intoreferences/cli.md.SKILL.md
cli.mdis fixed.Things to know
find_skills' schema candidates now receive semantic hits on real databases, where before they only had the lexical backstop. This is the designed behaviour that never worked. I did not run the agent matrix eval against it.update_task_status, and an external agent sees it in thedescription:line. Descriptions are the embedded retrieval text, so rewording one moves routing scores; I left it and pinned the exception with a test.invoice, 0.789) falls below it.skill_md_key_phraseand its test are removed. Interaction rules now reach external agents through the skills that include them, and a new test fails if any registered rule is included by no skill.Verification
bun run test:changedpasses.live_skill_guidance_fetch, 1 new infind_skills_schema_discovery_test, 1 new end-to-end through the daemon incli_integration, plus the 24 existinglive_skill_retrieval_stabilityguards. All pass.skill guidancereturned skills and schemas.SKILL.md, Linear-style setup installed, five requests. 5 of 5 fetched before the first write, 5 of 5 carried the operation out, 5 of 5 correct. Five runs on one harness; recorded in the ADR-064 amendment with that limit.Docs
Companion changes in
nodespace-docs(pushed tomainat merge time): ADR-064 amendment,prompt-skill-system.md,seeded-nodes.md,data-layer.md, and a note on ADR-057.🤖 Generated with Claude Code