A decision issued in the seconds between a heal and its verification is missing from the kernel until the bouncer's next poll, so verification reported the heal as failed, even though it had fixed the drift it was started for.
Seen on a node: a metadata heal fixed a stale TTL, a new ban arrived inside the 5 s window, and the heal was logged as failed. The next audit found the node in sync.
Change
reconcile() records the decision values it saw (last_truth_values) and takes an optional baseline_truth.
Post-heal verification passes the values the drift was found against. Values whose LAPI membership changed since then (added or removed) are left out of the drift, logged with a count, returned as lapi_changed_values, and checked by the next regular audit.
Drift on decisions that existed when the heal started still fails verification.
The regular audit and the 30 s membership re-check are unchanged; the re-check already waits out the bouncer's poll.
The post-heal result log line gains lapi_changed=N.
Tests
78 passing (9 new): baseline handling in reconcile(), the verification call, and a replay of the logged sequence, which is failed on main and success with this change.
A decision issued in the seconds between a heal and its verification is missing from the kernel until the bouncer's next poll, so verification reported the heal as `failed`, even though it had fixed the drift it was started for.
Seen on a node: a metadata heal fixed a stale TTL, a new ban arrived inside the 5 s window, and the heal was logged as failed. The next audit found the node in sync.
## Change
- `reconcile()` records the decision values it saw (`last_truth_values`) and takes an optional `baseline_truth`.
- Post-heal verification passes the values the drift was found against. Values whose LAPI membership changed since then (added or removed) are left out of the drift, logged with a count, returned as `lapi_changed_values`, and checked by the next regular audit.
- Drift on decisions that existed when the heal started still fails verification.
- The regular audit and the 30 s membership re-check are unchanged; the re-check already waits out the bouncer's poll.
- The post-heal result log line gains `lapi_changed=N`.
## Tests
78 passing (9 new): baseline handling in `reconcile()`, the verification call, and a replay of the logged sequence, which is `failed` on `main` and `success` with this change.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
A decision issued in the seconds between a heal and its verification is
missing from the kernel until the bouncer's next poll, so verification
reported the heal as failed even though it had fixed the drift it was
started for. Seen on a node: a metadata heal fixed a stale TTL, a new
ban arrived inside the 5 s window, and the heal was logged as failed;
the next audit found the node in sync.
reconcile() now records the decision values it saw (last_truth_values)
and takes an optional baseline_truth. Post-heal verification passes the
values the drift was found against; values whose LAPI membership changed
since then are left out of the drift, logged with a count, returned as
lapi_changed_values, and checked by the next regular audit. Drift on
decisions that existed when the heal started still fails verification.
The regular audit and the membership re-check are unchanged.
Tests: baseline handling in reconcile, the verification call, and a
replay of the logged sequence (failed before, success now). 78 tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
patrick
merged commit 05f437e673 into main2026-11-14 04:34:01 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
A decision issued in the seconds between a heal and its verification is missing from the kernel until the bouncer's next poll, so verification reported the heal as
failed, even though it had fixed the drift it was started for.Seen on a node: a metadata heal fixed a stale TTL, a new ban arrived inside the 5 s window, and the heal was logged as failed. The next audit found the node in sync.
Change
reconcile()records the decision values it saw (last_truth_values) and takes an optionalbaseline_truth.lapi_changed_values, and checked by the next regular audit.lapi_changed=N.Tests
78 passing (9 new): baseline handling in
reconcile(), the verification call, and a replay of the logged sequence, which isfailedonmainandsuccesswith this change.🤖 Generated with Claude Code