decompose architecture into 38 atomic tasks across 12 parallel generations

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.
This commit is contained in:
2026-05-21 20:24:44 +00:00
parent 907c33650f
commit 466b121f77
38 changed files with 1623 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
---
id: schema/edge-attrs
name: Define edge attribute schemas (Operation, Triggered, Dependency, Template) and CallResult
status: pending
depends_on:
- schema/enums
- schema/node-attrs
scope: narrow
risk: low
impact: component
level: implementation
---
## Description
Define all edge attribute schemas and the CallResult schema. Edge schemas are mode-specific (they do NOT include the universal `edgeType` field — that's stored separately in graphology alongside the mode-specific attributes). TemplateNodeAttrs is a type alias for OperationNodeAttrs.
## Acceptance Criteria
- [ ] `src/schema/edge.ts` exports all edge schemas and types
- [ ] `OperationEdgeAttrs`: `compatible` (boolean), optional `detail` (string), optional `mismatches` (Array of {path, expected, actual})
- [ ] `TriggeredEdgeAttrs`: empty object `Type.Object({})`
- [ ] `DependencyEdgeAttrs`: empty object `Type.Object({})`
- [ ] `CallEdgeAttrs`: union type `TriggeredEdgeAttrs | DependencyEdgeAttrs` (discriminated by `edgeType` at runtime)
- [ ] `TemplateEdgeAttrs`: `edgeType` (union of "sequential" | "conditional"), optional `condition` (Unknown), optional `negated` (boolean), optional `dataFlow` (boolean with default false)
- [ ] `TemplateNodeAttrs`: type alias for `OperationNodeAttrs` (template nodes carry the same attributes as operation nodes)
- [ ] `CallResultSchema`: `status` (NodeStatusEnum), `output` (Unknown), optional `error` ({code, message, details?})
- [ ] `CallResult`: type alias via `Static<typeof CallResultSchema>`
- [ ] `src/schema/index.ts` re-exports all edge schemas, CallResult, and TemplateNodeAttrs
- [ ] Unit tests for each schema: valid/invalid shapes, optional fields
## References
- docs/architecture/schema.md — full edge attribute definitions, CallResultSchema, TemplateNodeAttrs, edge key conventions
- docs/architecture/workflow-templates.md — TemplateEdgeAttrs.condition semantics (string vs function)
## Notes
> To be filled by implementation agent
## Summary
> To be filled on completion