Skip to content

Release v1.53.0 - #316

Merged
professorpalmer merged 12 commits into
mainfrom
dev
Nov 20, 2026
Merged

professorpalmer merged 12 commits into
mainfrom
dev

Conversation

@professorpalmer

Copy link
Copy Markdown
Owner

Release v1.53.0: flow event log with lineage and gate approval records, a read-only tap, a published event schema with a checker, and run compare. No worker, judge or pilot prompt changes.

Release audit gate: hpf audit on v1.52.1..de4ed0ac (20 functions, 11 confirmed bugs, $4.34 API-equivalent on the Claude plan). hpf gate --ref 3c9fbb4e (dev tip): pass, 11 closed, 0 open, 0 waived.

See docs/CHANGELOG.md.

Each flow run writes events.jsonl next to run.json: run.started, one
step for each node visit, gate.waiting and run.finished. Each event
names its parent event. A step records the edge that led to it (via),
so a repair step points back at the failed check. A map step lists its
item runs. Events have deterministic keys, so a restarted walker fills
a gap and never writes an event two times. A failed append is logged
and never fails the walk.

A gate answer records who answered (cli or mcp, plus login), when, the
options and a digest of the question text.

New CLI actions: flow events (read-only tap, --follow), flow schema,
flow check-events, flow compare (shape score, revisits, usage and wall
ratios). No worker, judge or pilot prompt changes.
Flow event log with lineage, gate approval records, and run compare
Each fix has a test in tests/test_hpfix_flow_1_53.py that fails on the
code before it.

- flow events --children follows nested maps.
- check-events: a boolean is not the integer 1; the schema types v.
- Edge conditions compare only plain decimal text as numbers (float()
  also read nan and 1_0).
- A run that ends at a node with no edges is failed when an earlier
  failure was carried on by an always edge. A conditional edge still
  handles a failure, and the last node's verdict is still its result.
- Restart of an interrupted run applies --extra-steps and --reset-loops.
- An explicit --worker-mode wins over the continued run's mode.
- Bad stdin JSON, an unreadable --input-file, or no graph is a usage
  error, not a traceback or a bare KeyError.
- Event log: drop non-finite usage values, skip a line with a bad seq;
  compare treats a timestamp with no offset as UTC.
Flow: fixes from the 1.53.0 release audit
Each store call closes its connection, and the last close deletes the
-wal/-shm pair. When that close falls between the helper's first stamps
and its lock, the helper reports "source changed" with
launch_topology_change: the main file is unchanged, only the sidecars
are gone. Only attach reads retried it. Ordinary and reuse reads raised
it at once, which made test_stop_receipt flake on macOS CI.

Ordinary and reuse reads now retry it in their own window, like "live
sidecars". After a write race or a turnover the retry waits 10 ms, not
50 ms, so a slow first answer does not use the 100 ms reuse window.

Stress (store.job_ref against a thread that opens and closes store
connections): source changed 18 in 9,000 reads before, 0 after (2 ms
writer gap); 4 in 30,000 before, 0 after (10 ms gap).
The writer thread released its claim after a fixed 0.4 s sleep. On a
slow Windows runner the judge started later than that, saw no live
writer, and never recorded review_waits_for (KeyError, test-windows
shard 2 of release PR #316). The writer now waits until the judge saves
its wait record, then writes and releases.
@professorpalmer
professorpalmer merged commit 8a764d0 into main Nov 20, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant