Situace
Plán žije v trackeru, který nikdo z repozitáře nečte, nebo v dokumentu, jehož sloupec stavu je věcí názoru. Co je připraveno ke startu a co blokováno, je spor, ne dotaz.
Scénář
setup: plan-model
given:
- 'a canonical project model with one milestone and two issues, the second depending on the first'
steps:
- id: validate
run: ['plan', 'validate']
note: 'every record parses, every reference resolves, the dependency graph is acyclic'
expect:
exit: 0
stdout_contains: ['milestone', 'issue', '0 failure']
- id: what-is-ready
run: ['plan', 'ready']
note: 'the issues nothing blocks'
expect:
exit: 0
stdout_contains: ['I0001']
- id: what-is-blocked
run: ['plan', 'blocked']
note: 'the issues waiting on another'
expect:
exit: 0
stdout_contains: ['I0002']
then:
- 'status is derived from the records and git, never written into them'
- 'an issue cannot be marked done without the evidence its milestone requires'Výsledek
Milníky a úkoly jsou soubory pod .ai/repo/project/; plan validate odmítne visící závislost i cyklus a plan ready a plan blocked se pokaždé počítají ze stejných záznamů.