Decompose the reviewed architecture specs into taskgraph-managed tasks: - 2 setup tasks (project init, test infrastructure) - 4 schema tasks (enums, node attrs, edge attrs, graph schemas) - 1 error hierarchy task - 6 graph tasks (FlowGraph class, 3 construction paths, queries, validation) - 5 analysis tasks (type-compat, build-type-edges, ordering, template-validation, defaults) - 5 component tasks (Operation, Sequential, Parallel, Conditional, Map) - 2 host config tasks (GraphologyHostConfig, ReactiveHostConfig) - 4 reactive tasks (WorkflowRoot, node-status, max-concurrency, retry-semantics) - 3 review tasks (foundation, reactive-and-hosts, complete-library) - 5 meta cluster tasks (schema, graph, component, reactive, analysis layers) - 1 API exports task Validated with taskgraph: zero cycles, 38 tasks, 12 parallel generations. Critical path: 12 tasks through reactive execution layer.
39 lines
1.2 KiB
Markdown
39 lines
1.2 KiB
Markdown
---
|
|
id: analysis/defaults
|
|
name: Implement default value resolution for CallStatus, EdgeType, and node attributes
|
|
status: pending
|
|
depends_on:
|
|
- schema/enums
|
|
- schema/node-attrs
|
|
- schema/edge-attrs
|
|
scope: single
|
|
risk: trivial
|
|
impact: isolated
|
|
level: implementation
|
|
---
|
|
|
|
## Description
|
|
|
|
Implement the defaults module that provides default values and resolution functions for categorical enums and node attributes. Used by construction and mutation methods to fill in unspecified fields.
|
|
|
|
## Acceptance Criteria
|
|
|
|
- [ ] `src/analysis/defaults.ts` exports default status, edge type, and attribute resolution functions
|
|
- [ ] `defaultCallStatus: CallStatus` = `"pending"`
|
|
- [ ] `defaultNodeStatus: NodeStatus` = `"idle"`
|
|
- [ ] `defaultEdgeType(edgeType?: string): EdgeType` — returns the provided type or `"typed"` (operation graph default)
|
|
- [ ] `resolveDefaultNodeAttrs(attrs: Partial<...>, defaults): NodeAttrs` — fills in missing required fields
|
|
- [ ] Unit tests: each default value is correct, resolution with partial input
|
|
|
|
## References
|
|
|
|
- docs/architecture/analysis.md — defaults section
|
|
- docs/architecture/schema.md — default values for NodeStatus, CallStatus
|
|
|
|
## Notes
|
|
|
|
> To be filled by implementation agent
|
|
|
|
## Summary
|
|
|
|
> To be filled on completion |