Skip to content

docs(ops): SRE pipeline vitals + agent work claims ledger (2026-04-27) - #247

Merged
FabioLeitao merged 1 commit into
mainfrom
cursor/sre-automation-agent-protocol-fb6c
Apr 28, 2026
Merged

FabioLeitao merged 1 commit into
mainfrom
cursor/sre-automation-agent-protocol-fb6c

Conversation

@cursor

@cursor cursor Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Description

Diagnostic + remedy from Slack-triggered SRE protocol run
1777310177.655909 ([OPERATIONAL PROTOCOL: PIPELINE HEALTH-CHECK & DIAGNOSTIC]).

The pipeline is YELLOW, not RED: CI is green on 11 same-day draft PRs,
but zero merges today. The bottleneck is not throughput — it is
work duplication by parallel SRE agents touching the same files in
separate draft PRs.

Specific blockers identified (with gh pr view --json files)

  • Cluster A — doctrine slices triple-overlap:
    • #232 vs #236 both touch cli/reporter.py, docs/plans/BENCHMARK_EVOLUTION.md, docs/plans/PLAN_ENGINEERING_DOCTRINE_CONSOLIDATION.md.
    • #235 vs #236 both touch pro/engine.py, pro/worker_logic.py.
  • Cluster B — docs/ops/sre_audits/README.md quadruple-touch:
    • #234, #239, #241, #242 all create the same README.md for a folder that does not yet exist on main.
  • Dependabot backlog: 5 PRs (#221-#226) open since 2026-04-24, all MERGEABLE, awaiting chore(deps): triage.

Note on the "No-Racing" rule

The operator prompt references ci-fail-* lock files with a 30-min TTL. I
grep-ed the repo: no .cursor-locks/, no ci-fail-* artifacts, no CI step
that creates or honours such a lock. The rule is documented in operator
prompts but not implemented. That gap is the bottleneck.

What this PR ships (zero blast radius, docs-only)

Two new files under docs/ops/sre_audits/ with collision-free filenames
(intentionally avoiding the README.md quadruple-touch):

  • PIPELINE_VITALS_2026-04-27.md — Julia-Evans-style diagnostic with the
    gh + Python one-liner I used, so the next agent can verify in 30s.
  • AGENT_WORK_CLAIMS.md — minimal markdown ledger seeded with all 11
    active claims, plus a suggested merge order to minimise rebase pain.

No source code changes. No database access. No new dependencies.

Type of change

  • Documentation
  • Bug fix
  • New feature
  • Refactor / maintenance

Checklist

  • Pre-commit ran in the commit step (ruff, plans-stats, plans-hub, markdown, pt-BR locale, commercial guard, PII, history) — all green.
  • No new linter/format issues (no Python touched).
  • Docs updated where needed (this is the doc).
  • Security-sensitive: N/A — pure additive Markdown under docs/ops/sre_audits/.

Defensive architecture compliance

  • docs/ops/inspirations/DEFENSIVE_SCANNING_MANIFESTO.md — respected: no scans, no DB reads, no auth surface touched.
  • docs/ops/inspirations/THE_ART_OF_THE_FALLBACK.md — respected: the markdown ledger is the fallback for the real lock primitive that does not yet exist. When scripts/agent-claim.ps1 lands, this file becomes the seed dataset.

Suggested merge order (advisory; full reasoning in PIPELINE_VITALS_2026-04-27.md)

  1. #240 (security, isolated 2-file diff) — any time.
  2. #238 (security, narrow connectors/sql_sampling.py) — before #232.
  3. #233 (CI guard fix, isolated to .github/workflows/slack-*.yml).
  4. #237 (pt-BR doctrine docs, isolated tree).
  5. Cluster B: #234 → #239 → #241 → #242 (first creates README.md; rest rebase).
  6. Cluster A: #235 → #232 → #236 (with #236 trimmed to its non-overlapping diff).
  7. Dependabot backlog (#221-#226) via standard chore(deps): triage.

Reproducibility

git fetch origin
gh pr list --state open --limit 50 --json number,title,isDraft,mergeable,createdAt,headRefName
gh pr view <N> --json files,additions,deletions,statusCheckRollup

That is the entire diagnostic. No magic, no log archeology.

Related issues

None. This PR opens the loop on the agent-coordination gap; if the
maintainer wants to harden the ledger into a real agent-claim.ps1 +
pre-commit hook, that is a follow-up issue/PR explicitly listed in the
Future hardening section of AGENT_WORK_CLAIMS.md.

Open in Web View Automation 

Bottleneck identified: 11 same-day SRE draft PRs all green on CI but none
merged because parallel agents are duplicating each other's file edits.

Two clusters of file overlap, evidenced by 'gh pr view --json files':
- Cluster A (doctrine slices): #232, #235, #236 collide on cli/reporter.py,
  pro/engine.py, pro/worker_logic.py, BENCHMARK_EVOLUTION.md.
- Cluster B (audit ledger): #234, #239, #241, #242 all create the same
  docs/ops/sre_audits/README.md.

The 'No-Racing' rule and ci-fail-* lock files referenced in operator
prompts are not implemented in the repo (no .cursor-locks/, no honour
code in CI). The lack of coordination IS the bottleneck.

Remedy (this PR, additive docs only, zero blast radius):
- PIPELINE_VITALS_2026-04-27.md: Julia-Evans-style RCA with reproducible
  gh + python one-liner.
- AGENT_WORK_CLAIMS.md: pre-flight ledger so the next SRE agent can read,
  in 30 seconds, what scope is already claimed.

No source code or DB-touching changes. Defensive scanning manifesto
respected (no scans, no DB reads). Art-of-the-fallback respected (a
markdown ledger is the fallback for a real lock primitive that does not
yet exist).

Co-authored-by: Fabio Tavares Leitão <[email protected]>
@cursor
cursor Bot deleted the cursor/sre-automation-agent-protocol-fb6c branch April 28, 2026 10:10
@FabioLeitao
FabioLeitao merged commit 469495e into main Apr 28, 2026
1 check passed
FabioLeitao added a commit that referenced this pull request May 3, 2026
…able signal (2026-04-27)

Reconciles the Slack mission ('analyze Dependabot #31, bump, run check-all')

with what the automation token can actually see on the repo today.

Findings:

* No reachable Dependabot alert with id 31 (REST 403 + GraphQL empty).

* PR #31 is unrelated (housekeeping merge from 2026-03-15).

* Five live Dependabot PRs on main (#221-#226). Only #226 (pyo3 0.23.5 ->

  0.24.1, Cargo) is HIGH-confidence MERGE today: 9/9 green checks,

  mergeable=CLEAN at SHA aa38298 (re-verified 21:39 UTC), and edits only

  rust/boar_fast_filter/Cargo.{toml,lock}.

* Two prior dated audits already published the same verdict; this file

  intentionally short (avoids the duplicate-work pattern called out in

  PR #247) and reframes the trigger so future Slack-triggered passes do

  not re-investigate the same five PRs.

Doctrine respect:

* DEFENSIVE_SCANNING_MANIFESTO: zero touch on connector / sampling code.

* THE_ART_OF_THE_FALLBACK: diagnostic-on-fall, no silent failure --

  explains why scripts/check-all.ps1 was NOT run on this VM and why that

  is the honest answer instead of inventing a 986-test pass log.

* SUPPLY_CHAIN_AND_TRUST_SIGNALS: Python uv.lock untouched -> SBOM stays

  coherent through PR #226.

Files:

* docs/ops/sre_audits/SLACK_TRIGGER_RECONCILIATION_2026-04-27.md (new)

* docs/ops/sre_audits/README.md (index +3 rows: this file + the two

  prior 2026-04-27 audits that were missing from the table)

Audit-and-block: no commit pushed to any Dependabot branch from this pass.

Co-authored-by: Fabio Tavares Leitão <[email protected]>
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.

1 participant