Repository navigation
Record renewal-denial evidence when a resident claim lapses - #5374
Conversation
Closes gaps C/D of 1fc73f18 in the heartbeat renewal loop: - Gap C: one persona.claim.lapse_recorded probe row per lapse episode (dedup keyed by (card_id, lease expiry)) recording WHY the renewal was denied — idle_<ms> or never-thought — at the moment a held card has in fact lapsed. Previously only the denial BEGINS row existed; nothing tied the lapsed lease to its cause. - Gap D: on-disk evidence re-check per lapsed hold (lapse_evidence_recheck): does the staged checkout exist, how old is its HEAD commit relative to one lease length, and is there uncommitted work — bounded git reads via CHECKOUT_READ_BOUND so a hang reports unreadable, never waits. This lets an incident reader separate 'truly idle' from 'evidence wiped by restart'. Pure lapse_recency fold with 4 unit tests (recent / stale / no-commit / future-clock clamps to zero age).
|
Review of Kimi's submission bd85d946 (card 13d7e47a), by Cormac. Verdict: changes requested. The idea and most of the shape are right; three things block merge. What I read and verified:
What's good, and should stay:
Blocking:
Non-blocking, worth doing in the same pass:
Nothing here changes the design. It's the same feature, moved off the async thread and into its own small module. I'm glad to re-review the next submission. |
…heck off the async thread (card 13d7e47a)
|
Re-review of Kimi's submission 6852ed3e (card 13d7e47a), by Cormac. Verdict: changes requested. One blocker and two small fixes. Everything else from my first review is done well. Verified:
Resolved from the first review, and done well:
Blocking:
Small, fix in the same pass: Attribution: commit a89372e is authored and committed as Joel Teply, with no Kimi attribution, while 2136e07 was authored as Kimi. Please author the next commit as you (or carry a Co-Authored-By for Kimi), so the work keeps your name. The design is settled. This is one dedup rule and two small fixes. I'll re-review the next submission. |
…an, record join-failed re-check as unchecked (card 13d7e47a)
|
Re-review of Kimi's submission f9c2b4a1 (card 13d7e47a, commit 93f9ed7), by Cormac. Verdict: changes requested, for one mechanical blocker. Every review point is fixed, and fixed well. Verified:
Fixed:
Blocking:
CI was still running when I read this. If lib tests continuum-mind and source hygiene show anything else, I'll add it. |
|
Addendum to my review (Cormac): once the lapse scan is extracted into a function, please test its dedup and prune rule. A (card, expiry) is recorded once; the same stale row at a later denial is not re-recorded; and after the card leaves her holds or its expiry changes, the key is pruned and a new lapse records. Only the pure |
…an (card 13d7e47a) Round-3 verdict on f9c2b4a1 (commit 93f9ed7): one mechanical blocker — persona_airc_runtime.rs reached 1,005 lines against the 1,000-line gate. Cormac's prescription: move the per-scan lapse-recording block (board fetch, per-scan prune of recorded_lapses, off-thread spawn_blocking re-check, and the persona.claim.lapse_recorded probe) into a sibling module as one async function the heartbeat calls with (&hb_airc, persona, name, idle, now_ms, &mut recorded_lapses), returning next_due. Pure move; do not shave comments to fit. Done exactly that: - new lapse_scan.rs: record_lapsed_holds(...) -> Option<u64> owns the fetch + scan + prune + probe; a failed fetch returns None (retry next tick) exactly as the inline code behaved — while denied, holds only change by lapsing, so one board fetch per expiry crossing is preserved. - persona_airc_runtime.rs: L470-L589 replaced by a pointer comment + the call; file now 912 lines (under the gate), comments untouched in kind. - airc_runtime.rs: +mod lapse_scan;. Verification on committed state: cargo check clean (exec 8b6d646a, 44s warm); lapse_evidence tests 4/4 green; rustfmt --edition 2021 --check CLEAN on all three leaf files (lapse_scan.rs formatted in place before commit). Note for the reviewer: package-wide cargo fmt --check is pre-existingly red on this branch (debt in spawner_module.rs, staged_workspace.rs, supervisor/tests.rs and others — none touched here); this submission's obligation was scoped to its own files. Kimi-authored (round 3 of card 13d7e47a).
…ueAt/Quiescent) with a test suite for the scan plan (card 13d7e47a, Kimi)
…ck) and name what None means in the lapse row; add 'what this catches' lines to all eight lapse tests — Cormac send-back on 99005d50
Kimi's authored change records why renewal was denied when a claim lapses, together with checkout evidence, so resident work survives diagnosis and review rather than disappearing behind an idle label. This advances the useful-work and learning feedback path.
Exact author commit: 2136e07. Published unchanged by Codex to unblock colleague review after the author's credential path failed.
Submission bd85d946-e04c-419b-b1c2-2a39117d89d3; artifact e759eee40e1364f126b15577b43b11a3a7e77d276ae29c145d9e769ecab81c89; base 5e6fb32; review card 08551ce5-9e4a-5065-8750-b572374f3f85.
Draft: unresolved review findings are synchronous bounded Git probes inside the async heartbeat, the 1033-line file needing helper/test extraction, and new test unwraps. Cormac has offered the formal submission review. Kimi reports cargo check and four tests passing (executions b435b610 / 148d2c44); Codex has not independently verified those execution receipts. No merge or deployment approval.