Repository navigation
Closed
Labels
Description
Overview
Make tool an abstract base with a tool-native core subtype for NodeSpace's built-in tools, and remove the source field: the subtype says where a tool comes from (ADR-086 §12).
Problem Statement
toolhas seeded nodes and a behaviour but no schema; its fields (handler,description,parameter_schema,source,enabled) are undeclared.- The trust gate is a string comparison. In
available_tools()(packages/agent/src/local_agent/tools.rs) it issource == "internal" || enabled. With remote tools coming (MCP, REST, CLI), each kind needs its own binding fields and its own trust rule, which one flat type with asourcestring can't express.
Proposed Solution
tool(abstract) declares name (content),description(embedded),parameter_schema(JSON Schema; nesting depth ≤ 9, no openadditionalProperties, per ADR-038) andenabled.tool-nativedeclareshandler(the Rust handler key). It is always trusted. The seeded tool nodes becometool-native.- Delete
source. The trust gate becomes a per-subtype behaviour rule: native tools are always offered; future remote subtypes are offered only whenenabled. available_tools()lists every tool subtype through the subtype-aware query ontool.tool-mcp,tool-restandtool-cliare added when remote bindings are designed; none exists in this issue.
Architecture Impact
Implements decisions/086-core-node-types-defined-once-typed-by-category.md §12 (nodespace-docs), with ADR-038 (tools as registry nodes generated into typed tools). Update architecture/prompt-skill-system.md in the same PR.
Acceptance Criteria
-
toolis abstract andtool-nativeis a core subtype, each with a declared schema; creating a baretoolis refused (tests) - No
sourcefield exists; the trust gate is the subtype's behaviour rule (test with a fixture remote-style subtype that isn'tenabled) - Seeded tools are
tool-nativenodes, andavailable_tools()builds the tool surface from them (test) - Follows
development/node-type-sequence.md; thenode-types.mdtool sheets updated in the same PR -
bun run test:changedpasses;bun run quality:fixclean
Technical Specifications
Reference Files
packages/core/src/models/core_schemas.rs,packages/core/src/behaviors/mod.rs(ToolNodeBehavior)packages/agent/src/skill_pipeline.rs(seed_tool_nodes)packages/agent/src/local_agent/tools.rs(available_tools)
Dependencies
- Make the agent's tool list come from the tool nodes it reads, not the hardcoded fallback #3429 (the tool list reads the tool nodes at all)
- Add the core node type registry, shared envelope, closed schemas and extends-aware rules #3439 (abstract types and the registry)
- Seed built-ins from fixed-UUID tables with Markdown bodies, order agent guidance, and link skills to their schemas #3418 (seed tables with fixed UUIDs; the tool table gains the subtype)
Non-Goals
- Remote tool subtypes and their bindings
- A tool search surface
Activity
malibio commentedon Oct 2, 2026
Baseline — Frontend: 309 test files passed, 5606 tests passed
malibio commentedon Oct 2, 2026
Node type sequence — classification:
toolbecomes an abstract base (structured:parameter_schemais an object), andtool-nativeis a new core subtype of it (structured through the inherited field; generic wire shape, liketoolhad). State:description,parameter_schema,enabledstay ontool(buckettool);handlermoves totool-native(buckettool-native);sourceis deleted — the subtype says where a tool comes from. No relationships, no lifecycle fields. Structural rule (no children) and participation (embedded) stay declared ontooland reach the subtype through the chain.Make tool an abstract base with a tool-native subtype and drop source (…