Skip to content

feat: shorten cooldown for new outages after confirmed recovery #61

Closed

Description

@abruption

Problem

A new Dots outage can be blocked for a full hour after a previous recovery claim, even when the previous outage has already recovered externally. On2026-10-28 the user reported a cooldown hold until21:37:23KST, followed by a new-event recovery and external SSH/ping confirmation at21:41:51KST. This is an operator report, not independent reconciliation of every claim.

The existing policy-unblocked reminder path already exists and should be reused. This issue narrows #44 to the distinction between a new confirmed outage and repeated attempts on the same outage.

Proposed behavior

  • Keep the existing global cooldown (3600s) and rolling daily claim budget. Production's existing budget12/24h is not raised.
  • Add an explicit optional shorter cooldown for a new incident (proposed operational value600s). Defaults retain existing behavior.
  • Require the most recent claimed incident to have a success report and external recovery evidence: at least3 distinct consecutive fresh healthy SSH+ping observations, spanning at least60s after the claim with gaps no longer than the observation freshness window.
  • Create evidence slots only with claims issued by the new code, and persist the first accepted explicit report separately. Legacy/older-code claims cannot acquire short-path eligibility; an explicit unknown report followed by a later success correction remains on the global interval. Do not infer proof from old closed rows, replayed timestamps, report text, partial health or stale/local-error observations.
  • Apply the shorter interval only to a distinct pending incident created after confirmed recovery. All cooldowns are measured from the prior claim.
  • Preserve one claim per incident, unknown-result handling, fresh state/newclaim requirements, owner checks, daily limits and bounded reminder delivery. retry_at remains advisory, never execution permission.
  • Expose the configured/effective cooldown and its basis in status; keep diagnostic output free of credentials.

Acceptance

  • New opt-in policy and configuration validation; default compatibility.
  • Durable evidence and tests for healthy flapping, timestamp replay/gaps, local errors, restart, legacy rows, unknown/failed results and concurrent claims.
  • Daily cap dominates shortened eligibility; exactly bounded reminder after a block clears; stale status cannot authorize execution.
  • EN/KO operation guidance and explicit rollback, no promise of immediate MCP execution.
  • Isolated tests and review before PR; operating deployment preserves KR mail connector customizations, policy budget, claims and subscriptions. Root changes require operator sudo authentication.

Related #44, #43. No artificial live outage or new recovery command is authorized by this implementation task.

Activity

  1. added this to the v0.8.0 milestone on Oct 28, 2026
  2. added
    enhancement
    on Oct 28, 2026
  3. abruption commented on Oct 29, 2026

    @abruption
    OwnerAuthor

    Development implementation is available in PR #74: #74

    The confirmed-recovery cooldown implementation from PR #62 is included in the aggregate. Daily limits, the durable first report and distinct fresh external recovery evidence remain required; operational ledgers are not rewound. This development work does not newly deploy or independently re-verify the historical KR deployment.

    The reviewed runtime candidate passed Linux core CI on Python 3.11/3.13 (541 tests each, zero skipped), plus the scoped independent Claude/Codex review process. Exact revisions, research checks, fixture limits and remaining gates: https://github.com/abruption/dots-tailscale/blob/feat/v080/docs/validation/v0.8.0-development-review.md

    PR-head checks are recorded on #74. No merge, tag/release or operating deployment is included in this development update.

  4. abruption commented on Oct 29, 2026

    @abruption
    OwnerAuthor

    The operating investigation found a separate producer/consumer mismatch tracked in #75: prior_boot observations could close an external outage without earning sustained confirmation. PR #74 now includes the explicit external-health correction, independent CLI reviews and passing final CI. The original cooldown interval, daily budget, first-report and evidence-slot protections remain intact; operating rollout is still separate. See #75 for the minimized evidence and validation links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions