Files
flowgraph/tasks/component-conditional.md
glm-5.1 466b121f77 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.
2026-05-21 20:24:44 +00:00

1.5 KiB

id, name, status, depends_on, scope, risk, impact, level
id name status depends_on scope risk impact level
component/conditional Implement <Conditional> ujsx component pending
schema/edge-attrs
setup/project-init
narrow low component implementation

Description

Implement the Conditional ujsx component function. Represents conditional branching — children only execute if the test passes. Supports an optional else prop for the alternative branch.

Acceptance Criteria

  • src/component/conditional.ts exports Conditional component function
  • Conditional produces UElement with type: "conditional"
  • Props: test: ((results: Record<string, CallResult>) => boolean) | string (required), optional else: UNode
  • children of Conditional are the then-branch
  • else prop is the alternative branch
  • String condition: operation name whose completion status determines the branch
  • Function condition: receives predecessor results, returns boolean
  • Conditional.test cannot reference an Operation inside the Conditional itself (would create circular dependency)
  • Re-exported from src/component/index.ts
  • Unit tests: correct UElement shape with test as function, test as string, else prop

References

  • docs/architecture/workflow-templates.md — Conditional component, else-branch behavior, string condition resolution
  • docs/architecture/schema.md — TemplateEdgeAttrs.condition representation

Notes

To be filled by implementation agent

Summary

To be filled on completion