fix(automation): enforce durable alert closure
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m32s
CD Pipeline / build-and-deploy (push) Successful in 8m2s
CD Pipeline / post-deploy-checks (push) Successful in 2m22s

Restore D037 durable incident readback without weakening database failure semantics.

Fence Agent99 dispatch and terminal learning to canonical identities, durable leases, verifier receipts, and reconciler-owned checkpoints.

Drain backup and restore legacy receipts in bounded cohorts with strict transport, claim, projection, and no-false-green controls.

Keep SSH service refusal visible while separating it from broker network-policy reachability.
This commit is contained in:
ogt
2026-07-14 09:40:53 +08:00
parent 72a167a322
commit 6cf8429d17
56 changed files with 15100 additions and 227 deletions

View File

@@ -0,0 +1,14 @@
-- Durable retry not-before for Agent99 controlled dispatch claims.
-- Prevents the 15-second reconciler tick from consuming every attempt and
-- generation while a Redis flight lease or transport cooldown is active.
BEGIN;
ALTER TABLE awooop_run_state
ADD COLUMN IF NOT EXISTS next_attempt_at TIMESTAMP NULL;
CREATE INDEX IF NOT EXISTS idx_run_state_retry_due
ON awooop_run_state (project_id, next_attempt_at)
WHERE state = 'pending' AND next_attempt_at IS NOT NULL;
COMMIT;

View File

@@ -0,0 +1,6 @@
BEGIN;
DROP INDEX IF EXISTS idx_run_state_retry_due;
ALTER TABLE awooop_run_state DROP COLUMN IF EXISTS next_attempt_at;
COMMIT;