Record the snapshots the Petri pin and the record positions changed

The pin to Petri 639ce3e moves the run's format version from 6 to 7, which
the attach JSON snapshot records. The other eight snapshots had recorded the
run branch and Git identity lines before the Start stage's completion: the
order the clock gave them before "Place the run branch and git identity
records with their checkpoint" positioned the two records after the firing's
finish. That commit refreshed only two files, and these eight already
differed the same way at the commit before the pin bump; they now record the
one order every run produces.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-09-18 22:17:15 -04:00
parent ac81543482
commit 08b7a4fdd9
No known key found for this signature in database
4 changed files with 8 additions and 8 deletions

View file

@ -392,8 +392,8 @@ fn attach_replays_completed_detached_run() {
----- stdout -----
----- stderr -----
Web UI: http://localhost:3000/runs/[ULID]
Base: [BASE]
✓ Start [TIME]
Base: [BASE]
✓ Run Tests [TIME]
✓ Report [TIME]
✓ Exit [TIME]
@ -637,8 +637,8 @@ fn attach_before_completion_streams_to_finished_state() {
----- stdout -----
----- stderr -----
Web UI: http://localhost:3000/runs/[ULID]
Base: [BASE]
✓ start [DURATION]
Base: [BASE]
✓ wait [DURATION]
✓ exit [DURATION]
");
@ -904,7 +904,7 @@ fn attach_json_errors_without_prompting_for_human_input() {
"recorded_at": "[EPOCH_MS]",
"body": {
"event": "run.started",
"format_version": 6,
"format_version": 7,
"key": "[ULID]",
"root": 0,
"middleware_chain": [

View file

@ -215,9 +215,9 @@ fn events_pretty_formats_small_run() {
[CLOCK] · running
[CLOCK] Engine: petri run started
[CLOCK] ▶ Start
[CLOCK] ✓ Start [DURATION]
[CLOCK] Branch: fabro/run/[ULID] from [SHA]
[CLOCK] Git identity: Fabro <noreply@fabro.sh> default
[CLOCK] ✓ Start [DURATION]
[CLOCK] ⎘ Checkpoint [SHA]
[CLOCK] ▶ Run Tests
[CLOCK] start → run_tests continue

View file

@ -836,8 +836,8 @@ fn dry_run_simple() {
----- stderr -----
Run: [ULID]
Web UI: http://localhost:3000/runs/[ULID]
Base: [BASE]
✓ Start [TIME]
Base: [BASE]
✓ Run Tests [TIME]
✓ Report [TIME]
✓ Exit [TIME]

View file

@ -16,8 +16,8 @@ fn dry_run_branching() {
----- stderr -----
Run: [ULID]
Web UI: http://localhost:3000/runs/[ULID]
Base: [BASE]
✓ Start [TIME]
Base: [BASE]
✓ Plan [TIME]
✓ Implement [TIME]
✓ Validate [TIME]
@ -48,8 +48,8 @@ fn dry_run_conditions() {
----- stderr -----
Run: [ULID]
Web UI: http://localhost:3000/runs/[ULID]
Base: [BASE]
✓ start [TIME]
Base: [BASE]
✓ Decide [TIME]
✓ Path B [TIME]
✓ exit [TIME]
@ -145,8 +145,8 @@ fn dry_run_inferred_command() {
----- stderr -----
Run: [ULID]
Web UI: http://localhost:3000/runs/[ULID]
Base: [BASE]
✓ Start [TIME]
Base: [BASE]
✓ Echo [TIME]
✓ Exit [TIME]