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.
38 lines
1.1 KiB
Markdown
38 lines
1.1 KiB
Markdown
---
|
|
id: component/operation
|
|
name: Implement <Operation> ujsx component
|
|
status: pending
|
|
depends_on:
|
|
- schema/node-attrs
|
|
- setup/project-init
|
|
scope: single
|
|
risk: low
|
|
impact: component
|
|
level: implementation
|
|
---
|
|
|
|
## Description
|
|
|
|
Implement the `Operation` ujsx component function. It's a `UComponent` that produces a `UElement` with `type: "operation"` and workflow-specific props. Operation is a leaf node — it has no children.
|
|
|
|
## Acceptance Criteria
|
|
|
|
- [ ] `src/component/operation.ts` exports `Operation` component function
|
|
- [ ] `Operation` produces `UElement` with `type: "operation"`
|
|
- [ ] Props: `name: string` (required), optional `input`, optional `retries: number`, optional `timeout: number`
|
|
- [ ] Operation has no children (leaf node — documented as validation error if children provided)
|
|
- [ ] Re-exported from `src/component/index.ts`
|
|
- [ ] Unit tests: produces correct UElement shape, type guard works
|
|
|
|
## References
|
|
|
|
- docs/architecture/workflow-templates.md — Operation component definition, props
|
|
- docs/architecture/host-configs.md — component-to-tag mapping
|
|
|
|
## Notes
|
|
|
|
> To be filled by implementation agent
|
|
|
|
## Summary
|
|
|
|
> To be filled on completion |