Module 11 Activity
Scenario
The capstone. An approval-aware research workflow, with the evidence that it behaves as designed.
What you build
A complete graph with conditional and error paths, a human gate before the irreversible step, checkpointing verified across processes, and an evidence record.
Steps
- Write the design as data - state with reducers, nodes, terminals, gate position, irreversible steps - and run the four structural checks.
- Implement the routing as one function with ordered early returns. State what each ordering decision means.
- Add the human gate before the irreversible node, and have that node check both approval and its own guard flag.
- Test the duplicate resume explicitly and confirm one effect.
- Verify a resume from a genuinely separate process, and confirm the expensive node ran once.
- Produce the evidence record: path taken, human intervention, proof the irreversible step ran once, branch coverage, and known limits.
Evidence to hand in
- The design as data with the four check results.
- The single routing function, with precedence explained.
- Evidence that a duplicate resume produced one effect.
- Evidence of a cross-process resume with the expensive-node count.
- The complete evidence record including
known_limits.
Review checklist
- All four structural checks pass before implementation.
- Routing precedence is readable in one function.
- The irreversible node checks both approval and its guard flag.
- The cross-process resume is genuine, not a second call in one script.
- Branch coverage includes the error path.
known_limitsis populated and specific.
