Repository navigation
Release v1.53.0 - #316
Merged
Merged
Release v1.53.0#316
Conversation
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.
…test Review binding test: release the writer after the judge waits
…ged-flake Read helper: retry a WAL cohort that closes during the open
Changelog: two fixes in 1.53.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
flow events,flow schema,flow check-events,flow compare.Release audit gate:
hpf auditonv1.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.