Skip to content

docs(ops): SRE postmortem — audit-PR swarm vs. one mergeable fix (#226) - #273

Closed
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/sre-agent-protocol-2467
Closed

cursor[bot] wants to merge 1 commit into
mainfrom
cursor/sre-agent-protocol-2467

Conversation

@cursor

@cursor cursor Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Why this PR exists

Slack-triggered SRE Automation Agent pass — channel #data-boar-ops, automation def95df7-a634-431a-93e5-659e4d831725, 2026-04-27 ~21:51 UTC. The operator's reply asked the next agent to read its own rules, not refuse, not make it harder, and not repeat the past PII leaks behind ADR 0018 / 0019. Read as a process-correction signal, not a new bug report.

This PR is the postmortem the swarm should have produced once, not eleven times.

What the swarm looked like (2026-04-27, 17:04–21:51 UTC)

Net effect for the maintainer: the one merge-ready PR is buried under refusal text.

What this PR does (zero blast radius)

Pure additive doc. No code, no Cargo bump, no push to a Dependabot branch, no touch on connectors/, sampling, locks, or PII guard surface.

  • New: docs/ops/sre_audits/AUDIT_PR_SWARM_POSTMORTEM_2026-04-27.md — Julia-Evans-style RCA: timeline, root cause (3 angles), defensive-doctrine alignment table, reproducible commands, one GTD recommendation, follow-ups booked here so they do not become the next swarm seed.
  • Index update: docs/ops/sre_audits/README.md adds three rows that were missing from the table (this file plus the two earlier 2026-04-27 audits that already shipped without an index entry).

ADR 0018 / 0019 respected (verified, not claimed)

$ uv run python scripts/pii_history_guard.py
PII history guard: OK (no forbidden literals in origin/main..HEAD).

$ uv run pytest tests/test_pii_guard.py -v
3 passed in ~1.6s

$ uv run pre-commit run --files docs/ops/sre_audits/AUDIT_PR_SWARM_POSTMORTEM_2026-04-27.md docs/ops/sre_audits/README.md
plans status dashboard is fresh.................Passed
markdown lint guard (pytest)....................Passed
pt-BR locale guard (pytest).....................Passed
confidential commercial guard (git index).......Passed
external-tier docs must not link into docs/plans.Passed
uv.lock and requirements.txt match pyproject....Passed
PII guard (tracked files must not contain sensitive patterns)..Passed
PII history guard (forbidden literals must stay purged)........Passed

No real names, no c:\Users\..., no /home/<user>/, no LinkedIn slugs, no family phrases, no SSH user URLs introduced. The only Portuguese text is the operator's verbatim Slack message, included as provenance evidence (public-channel content, no PII).

Defensive doctrine alignment

Manifesto clause How this PR respects it
DEFENSIVE_SCANNING_MANIFESTO.md §1.3 — no surprise side effects Doc-only; zero touch on connectors/sql_sampling.py, sampling caps, WITH (NOLOCK), statement timeouts.
THE_ART_OF_THE_FALLBACK.md §3 — diagnostic on fall, never silent This file is the diagnostic for the swarm. It does not silently produce more audit PRs; it stops, records the reason, and points at one next move.
ADR 0018 — PII anti-recurrence Guards green on this branch (above).
ADR 0019 — verification cadence + manual review gate This PR does not declare itself "SAFE for the public PII tree" without the operator's manual gate.
ADR 0005 — audit-and-block CI posture No commit pushed to a Dependabot branch.

GTD recommendation (one move)

Merge PR #226 (Dependabot, original branch — preserves provenance and auto-resolves the Cargo advisory).

After it lands: close #266 (same patch on a duplicate branch), #267, #268, #269 as superseded by this postmortem. Leave #239, #241, #247 open — those add real artifacts (resync helper, risk-assessor audit, work-claims ledger) that are not redundant with this file.

Form (LMDE-issue style)

Same precedent as PR #259 / #261 / #268 (the three earlier rejection PRs in this same family) and linuxmint/live-installer#177 / #178: exact reproduction (commands + verbatim output), one RCA, the constraint that stopped the agent ("opening a twelfth audit PR around the same Slack trigger would itself be the bug the operator pointed out"), and explicit consolidation so the maintainer's queue collapses to one clear next action.

Type of change

  • Documentation (postmortem / RCA)
  • Behaviour change — explicitly no.
  • Test / regression guard — not in this PR; §6 of the postmortem captures three follow-ups (idempotency key, refusal-as-comment, Slack-trigger consolidation hint), each gated on its own ADR per .cursor/rules/adr-trigger.mdc.
Open in Web View Automation 

Consolidates the 11 draft audit / refusal PRs opened today around a single
Dependabot signal (pyo3 0.23.5 -> 0.24.1) into one blameless RCA. Doc-only;
zero blast radius on connectors / sampling / locks.

- New: docs/ops/sre_audits/AUDIT_PR_SWARM_POSTMORTEM_2026-04-27.md
- Index: docs/ops/sre_audits/README.md (adds 3 missing rows incl. this file)

Respects ADR 0018 / 0019 (PII guards verified green on this branch),
DEFENSIVE_SCANNING_MANIFESTO §1.3 (no surprise side effects), and
THE_ART_OF_THE_FALLBACK §3 (diagnostic-on-fall, not silent re-derivation).

GTD: merge PR #226 (Dependabot, all 9 checks green); close #266 / #267 / #268
/ #269 as superseded once #226 lands.

Co-authored-by: Fabio Tavares Leitão <[email protected]>
@FabioLeitao
FabioLeitao force-pushed the cursor/sre-agent-protocol-2467 branch from e5a24c9 to 86f4fef Compare May 3, 2026 17:52
FabioLeitao added a commit that referenced this pull request May 3, 2026
Dated audit + workflow doc updates for the Slack ts 1777370978.136399
ask: 'git branch -r' does not fit one screen, delete cursor/sre-*
that are 'integradas ou abandonadas', rule 'se nao tem PR aberto, nao
tem por que ter branch no origin'.

RCA (audit doc):
  * After 'git fetch --prune origin' at 2026-04-28T10:19Z (main 4bc0861):
    - total remote refs:                    41
    - backed by an OPEN PR (gh):            40 of 41
    - in keep-list (main):                   1
    - TRULY orphan (no PR, not in keep):     1
        fix-rust-ci-coverage-9061
  * The 40 cursor/sre-* branches are NEITHER 'integradas' NOR
    'abandonadas' -- they back live OPEN PRs (#235-#289). Deleting
    them would auto-close the PRs and lose the audit paper trail
    (FABRICATED_CLAIMS_INDEX.md cross-references).
  * Real screen-bloat lever is the open-PR backlog, not orphans
    (PR #273 covers the 'audit-PR swarm' RCA).

Doc updates:
  * BRANCH_AND_DOCKER_CLEANUP.md S3.1 (EN) / S2.1 (pt-BR): point at
    new lister, reaffirm open-PR rule + qualifier 'sidequest
    investigativa obvia progredindo'.
  * sre_audits/README.md: index sync.

Doctrine: DEFENSIVE_SCANNING_MANIFESTO S1.3 (no surprise side
effects), THE_ART_OF_THE_FALLBACK S2-S3 (monotonic ladder, diagnostic
on fall), AGENTS.md Risk posture.

No behavior change. Zero impact on database locks.

Co-authored-by: Fabio Tavares Leitão <[email protected]>
FabioLeitao added a commit that referenced this pull request May 3, 2026
…ion in 25h)

First vapor-shape escalation in the prompt-injection family on this Slack

automation. Trigger ts 1777382654.185479 declares intent to make

#data-boar-ops a 'NASA cockpit / Terminal de Telemetria de Engenharia'

and ends with 'vou te passar mais alguns prompts:' — preamble, no concrete

target. Two parallel agent runs (PR #293 'Slack mission log protocol'

rule, PR #294 'scripts/ops_notify.py' helper) already manufactured

infra on the same vapor; this PR audits the swarm without closing them

(destructive boundary held in PR #289).

Audit-and-block per DEFENSIVE_SCANNING_MANIFESTO.md §1.3 + THE_ART_OF_THE_FALLBACK.md §3:

no .cursor/rules/cockpit-*.mdc invented, no slack-mission-log.mdc ratified,

no PR closed, no branch deleted, no behavior change. Ships dated audit doc,

FABRICATED_CLAIMS_INDEX.md row under new family vapor-preamble-cockpit-infra,

and README index sync. Adds F12 follow-up: vapor-preamble-no-infra-gate.mdc.

Refs: PRs #259, #261, #268, #279, #281, #284, #289, #273 (swarm postmortem).

Co-authored-by: Fabio Tavares Leitão <[email protected]>
@FabioLeitao FabioLeitao closed this May 3, 2026
@FabioLeitao
FabioLeitao deleted the cursor/sre-agent-protocol-2467 branch May 3, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants