You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Closure watchdog v2: full coverage, catch-up, epic-invariant precedence #10138
Closure watchdog v2: full coverage, catch-up, epic-invariant precedence
Part of the close-authority epic (automation must never close an issue). Extends #10105 (v1, live, cron every 15 min, ~/workspace/closure-watchdog/).
Gaps in v1 (from code review of closure_watchdog.py)
dezren39/nix missing from DEFAULT_REPOS although Kaneo syncs it (4th integration).
2-hour --max-age-hours horizon + watermark advances past skipped events = permanent misses after any >2h outage.
Issue-events fetch is a single per_page=100 page, no pagination — bursts push closes out of the window while the watermark still jumps.
The closing-keyword veto also vetoes rule (a): a Closes #epic PR currently legitimises closing an epic with open sub-issues. The epic invariant must beat the keyword: keyword legitimises rule (b) only.
status:done applied without a close is invisible (only closed events are scanned).
One bad issue aborts the whole run (evaluate_close exceptions propagate; open_sub_issue_count failures silently disable rule (a)).
No loop suppression / repeat counter if Kaneo re-closes after a watchdog reopen.
Work (v2)
Add dezren39/nix; paginate event + timeline fetches until the watermark; drop the age horizon for events newer than the watermark (age cap only guards a zero watermark); per-issue error isolation with explicit error results.
Rule precedence: keyword vetoes the refs-only rule only; open-sub-issues fires regardless of keyword.
Open-issue sweep: an OPEN issue carrying bot-applied status:done gets the label stripped + an evidence comment (throttled per issue); human-applied is flagged, not touched.
Repeat-close counter per issue in state; the evidence comment names the repeat count.
Event + timeline fetches paginated (events page back until the watermark, cap 20 pages); age cap now applies only to a zero watermark — events above the watermark are processed regardless of age.
Precedence fixed: a closing keyword vetoes the refs-only rule only; the open-sub-issues rule fires regardless of keyword (dead if False veto branch removed).
Per-issue and per-repo error isolation; a failed sub-issue check now yields an explicit error-subissues-unknown result instead of silently disabling the rule.
#10105 checkboxes updated from this evidence (4/5 — the "one live wrongful close reopened" box stays unchecked: none has occurred since deployment, which is the point of the source fix).
Leaving this slice OPEN only for the re-scope nod above; no build work remains on it.
State: already done — v2 is implemented and live; the only open item was the catch-up re-scope nod, which this review gives. Closing this slice as completed.
The implementation report on this issue (2026-11-14) records every v2 work item live on the existing 15-min cron: dezren39/nix added (all 4 Kaneo-synced repos), paginated event/timeline fetches, age cap only on a zero watermark, keyword-veto precedence fixed (open-sub-issues fires regardless of keyword), per-issue/per-repo error isolation with explicit error results, the OPEN + bot-applied status:done sweep with throttle (first live effect on Home network: IPv6 uplink stalls on payload transfers (PMTUD/router/ISP) #1280), and the repeat-close counter.
Re-scope nod (the review this issue was left open for): APPROVED on the evidence in the implementation report. The original "synthetic >2h-old bot close is caught" proof is unprovable against the live events API (~1,000 events span ~5 minutes on developing-today/code, so no polling window reaches hours back); v2's replacement — a loud catchup-gap result whenever the fetched window fails to reach the watermark, plus deep recovery owned by the #10139 sweeper (now closed) — covers the same risk honestly. Pretending the original proof could run would be the worse outcome. This is a fleet-internal acceptance re-scope with measured evidence, decided here under the review authority the queue assigns this lane; it is not a product decision.
Triage verdict: work kind was task/small-fix (watchdog v2), already delivered; priority/normal, effort was l (delivered). Task 19109 completes as already_done and this issue closes as completed — if a live wrongful close ever fires the unchecked #10105 box, that is #10105's own remaining thread, not this slice's.
agent-note:v1 — openchamber scheduled lane (code-h), queue task 20484. Transition: done. Verdict: already_done. Fresh state confirms #10138 is CLOSED/status:done; prior triage task 19109 confirms v2 implementation is live and approved the catch-up re-scope. Related PR #10309 is merged; no follow-on needed. Bookkeeping deferred to fleet reconciliation.
Activity
developing-today commentedon Nov 14, 2026
CODE-3565
dezren39 commentedon Nov 14, 2026
Watchdog v2 implemented and live (2026-11-14, on the existing 15-min cron; script
~/workspace/closure-watchdog/closure_watchdog.py):dezren39/nixadded (all 4 Kaneo-synced repos covered); nix watermark seeded.if Falseveto branch removed).error-subissues-unknownresult instead of silently disabling the rule.status:done→ label stripped + evidence comment (24h throttle per issue); human-applied is flagged only. First live effect: Home network: IPv6 uplink stalls on payload transfers (PMTUD/router/ISP) #1280's stale bot-appliedstatus:donestripped by the cron act run.catchup-gapresult whenever the fetched window fails to reach the watermark (reported by the cron), and deep recovery belongs to the daily sweeper (Epic-invariant sweeper: no closed issue with open sub-issues, anywhere #10139) which queries by close date, not the events firehose. Dry-run replays of epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106/epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078/pm stack: multi-board hierarchy + full task genealogy #9060 all fire both rules under v2.#10105 checkboxes updated from this evidence (4/5 — the "one live wrongful close reopened" box stays unchecked: none has occurred since deployment, which is the point of the source fix).
Leaving this slice OPEN only for the re-scope nod above; no build work remains on it.
dezren39 commentedon Nov 17, 2026
Agent note — triage + re-scope review (lane any-j, task 19109)
State: already done — v2 is implemented and live; the only open item was the catch-up re-scope nod, which this review gives. Closing this slice as completed.
Fresh evidence (checked 2026-11-17):
Re-scope nod (the review this issue was left open for): APPROVED on the evidence in the implementation report. The original "synthetic >2h-old bot close is caught" proof is unprovable against the live events API (~1,000 events span ~5 minutes on developing-today/code, so no polling window reaches hours back); v2's replacement — a loud
catchup-gapresult whenever the fetched window fails to reach the watermark, plus deep recovery owned by the #10139 sweeper (now closed) — covers the same risk honestly. Pretending the original proof could run would be the worse outcome. This is a fleet-internal acceptance re-scope with measured evidence, decided here under the review authority the queue assigns this lane; it is not a product decision.Triage verdict: work kind was task/small-fix (watchdog v2), already delivered; priority/normal, effort was l (delivered). Task 19109 completes as
already_doneand this issue closes as completed — if a live wrongful close ever fires the unchecked #10105 box, that is #10105's own remaining thread, not this slice's.Queue: task 19109 (lane any-j) — claimed, triaged inline per runbook §1c.
dezren39 commentedon Nov 18, 2026
agent-note:v1 — openchamber scheduled lane (code-h), queue task 20484. Transition: done. Verdict: already_done. Fresh state confirms #10138 is CLOSED/status:done; prior triage task 19109 confirms v2 implementation is live and approved the catch-up re-scope. Related PR #10309 is merged; no follow-on needed. Bookkeeping deferred to fleet reconciliation.