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.
1.7 KiB
1.7 KiB
id, name, status, depends_on, scope, risk, impact, level
| id | name | status | depends_on | scope | risk | impact | level | |
|---|---|---|---|---|---|---|---|---|
| graph/construction-operation | Implement operation graph construction (fromSpecs, addOperation, addTypedEdge) | pending |
|
moderate | medium | phase | implementation |
Description
Implement the construction methods specific to operation graphs: FlowGraph.fromSpecs(), addOperation(), and addTypedEdge(). These build the static type-compatibility graph from OperationSpec arrays.
Acceptance Criteria
FlowGraph.fromSpecs(specs: OperationSpec[]): OperationGraph— creates nodes for each operation (key:${namespace}.${name}), adds type-compatibility edges viabuildTypeEdges(), throwsCycleErrorif resulting graph has cyclesaddOperation(spec: OperationSpec): void— adds operation node, key is${spec.namespace}.${spec.name}, throwsDuplicateNodeErrorif key existsaddTypedEdge(source, target, attrs: { compatible, detail?, mismatches? }): void— adds edge withedgeType: "typed", validates endpoints exist, validates no cycle createdfromSpecs()callsbuildTypeEdges()internally after adding all operation nodesbuildTypeEdges()must be callable separately for incremental construction afteraddOperation()- Operation graph is conventionally immutable after
fromSpecs()— documented in JSDoc - Unit tests: fromSpecs with valid specs, duplicate operations, cycle detection, incremental addOperation + buildTypeEdges
References
- docs/architecture/operation-graph.md — fromSpecs construction, incremental construction, immutability
- docs/architecture/flowgraph-api.md — fromSpecs, addOperation, addTypedEdge signatures
Notes
To be filled by implementation agent
Summary
To be filled on completion