1.6 KiB
1.6 KiB
id, name, status, depends_on, scope, risk, impact, level
| id | name | status | depends_on | scope | risk | impact | level | |
|---|---|---|---|---|---|---|---|---|
| schema/node-attrs | Define OperationNodeAttrs and CallNodeAttrs TypeBox schemas | completed |
|
narrow | trivial | component | implementation |
Description
Define the node attribute schemas for both operation graph nodes and call graph nodes. These are the TypeBox schemas that serve as single source of truth for runtime validation and TypeScript type derivation.
Acceptance Criteria
src/schema/node.tsexportsOperationNodeAttrsandCallNodeAttrsschemas withStatic<typeof>type aliasesOperationNodeAttrs:name(string),namespace(string),version(string),type(OperationTypeEnum),inputSchema(Unknown),outputSchema(Unknown), optionaldescription, optionaltags(Array)CallNodeAttrs:requestId(string),operationId(string),status(CallStatusEnum), optionalparentRequestId(string),input(Unknown), optionaloutput(Unknown), optionalerror(Object with code/message/optional details), optionalidentity(Object with id/scopes/optional resources), optionalstartedAt(string), optionalcompletedAt(string)- Both schemas produce correct TypeScript types via
Static<typeof> src/schema/index.tsre-exports all node schemas and types- Unit tests:
Value.Check()against valid and invalid attribute shapes
References
- docs/architecture/schema.md — OperationNodeAttrs, CallNodeAttrs full definitions
- docs/architecture/call-graph.md — CallNodeAttrs field mappings to call events
Notes
To be filled by implementation agent
Summary
To be filled on completion