Active user attribute set, latest activities, guarded changes to used values, artefact links, durations and averages; irreversible showcase step
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: sonnet Assistant-Process: 295952@bnt-lap001 Assistant-Session: e93f64ad-516c-46eb-9666-aad8d300c477
This commit is contained in:
parent
6716cee921
commit
8d62c1fbe8
22 changed files with 1025 additions and 35 deletions
5
runbooks/showcase-lighthouse-v2/REVIEWS.yaml
Normal file
5
runbooks/showcase-lighthouse-v2/REVIEWS.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
reviews:
|
||||
- by: Bernd
|
||||
at: '2026-09-29T13:19:03+00:00'
|
||||
digest: 18e2c938b35bf59c
|
||||
note: This is my first try.
|
||||
|
|
@ -116,7 +116,7 @@ stages:
|
|||
requires: [warn]
|
||||
uses: [keeper_name, weather, lamp_fuel, motto, logdir]
|
||||
produces: [logbook-file]
|
||||
command: mkdir -p {{logdir}} && echo "Night watch by {{keeper_name}} - {{weather}}, {{lamp_fuel}} lamp. {{motto}}." >> {{logdir}}/logbook.txt
|
||||
command: mkdir -p {{logdir}} && echo "Night watch by {{keeper_name}} at $(date -u +%H:%M:%S) UTC - {{weather}}, {{lamp_fuel}} lamp. {{motto}}." >> {{logdir}}/logbook.txt
|
||||
reversible: true
|
||||
rollback: rm -rf {{logdir}}
|
||||
verify: {done_when: The logbook exists, command: 'test -s {{logdir}}/logbook.txt', expect: exit-0}
|
||||
|
|
@ -130,6 +130,7 @@ stages:
|
|||
idempotent: conditional
|
||||
idempotent_note: Safe to repeat only while the log file exists; a second run fails on the read.
|
||||
title: Close the log for good
|
||||
description: The entry carries the exact time it was written, to the second. Once the scratch folder is removed it cannot be written again the same way, so this step cannot be undone.
|
||||
auto_confirm: manual-only # never confirmed by the engine on its own
|
||||
actor: harbourmaster
|
||||
owner: the-lighthouse
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ steps:
|
|||
title: Write tonight's entry in the logbook
|
||||
owner: the-lighthouse
|
||||
description: The only step that changes anything, and only a file under /tmp/rtut-. Reversible, so it needs a confirm, not a typed phrase.
|
||||
command: mkdir -p {{logdir}} && echo "Night watch by {{keeper}} - {{weather}}, {{lamp}} lamp, signal {{signal}}. {{motto}}." >> {{logdir}}/logbook.txt
|
||||
command: mkdir -p {{logdir}} && echo "Night watch by {{keeper}} at $(date -u +%H:%M:%S) UTC - {{weather}}, {{lamp}} lamp, signal {{signal}}. {{motto}}." >> {{logdir}}/logbook.txt
|
||||
risk: changes-state
|
||||
rollback: rm -rf {{logdir}}
|
||||
verify:
|
||||
|
|
@ -87,10 +87,10 @@ steps:
|
|||
- id: dawn
|
||||
title: Put out the lamp and tidy up
|
||||
owner: the-lighthouse
|
||||
description: Removes the scratch folder. A run in which every step is done can offer to mark this pack exercised.
|
||||
description: Removes the scratch folder. The entry carries the exact time it was written, so once it is gone it cannot be written again the same way.
|
||||
command: rm -rf {{logdir}}
|
||||
risk: changes-state
|
||||
rollback: Repeat write-the-logbook to rebuild the entry.
|
||||
risk: destructive
|
||||
rollback: Not reversible. The logbook entry contains the exact time it was written, which cannot be reproduced.
|
||||
verify:
|
||||
done_when: The scratch folder is gone
|
||||
command: test ! -e {{logdir}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue