Situace
Worker se v jednom sezení dotkne dvou úloh a učiní dvě rozhodnutí s hodinovým odstupem. Nic nezaznamenává, že obě učinil jeden worker, takže později vypadají nesouvisející a jediným svědkem je konverzace, kterou nikdo nemůže prohledat.
Scénář
setup: installed
given:
- 'Majordomus installed, no session open'
steps:
- id: open
run: ['session', 'start', '--worker', 'some-provider/some-model']
note: 'one execution episode of one worker begins'
expect:
exit: 0
stdout_contains: ['^session s-[0-9]+-[0-9a-f]+ opened at']
- id: refuse-a-second
run: ['session', 'start']
note: 'one session per checkout at a time'
expect:
exit: 15
stdout_contains: ['is open here']
- id: close
run: ['session', 'close']
note: 'the envelope: identity, a temporal boundary, references to what the episode produced'
expect:
exit: 0
stdout_contains: ['^\.ai/repo/sessions/']
- id: an-object-of-the-layer
run: ['knowledge', 'nodes', '--kind', 'session']
note: 'the record is a shared object the moment it is committed: one source class discovers it, and the index, MCP, the object routes, the graph and the site follow without being told'
expect:
exit: 0
- id: ledger
run: ['history']
note: 'the ledger carries both ends of the episode'
expect:
exit: 0
stdout_contains: ['session.started', 'session.closed']
then:
- 'a closed session is an envelope, never a transcript'
- 'the envelope is a shared object of the layer, discovered rather than registered'
- 'which work happened together, and in what order, is answerable'Výsledek
Relace je záznam se začátkem a koncem; dokud je otevřená, je jedinou epizodou provádění tohoto checkoutu, a po uzavření odkazuje na úlohy, záznamy a rozhodnutí, která vytvořila, a žádné z nich nekopíruje.