Skip to content

docs(ops): SRE Dependency Guardian verdict ledger (2026-04-27) - #242

Merged
FabioLeitao merged 2 commits into
mainfrom
cursor/sre-agent-protocol-d67a
Apr 27, 2026
Merged

FabioLeitao merged 2 commits into
mainfrom
cursor/sre-agent-protocol-d67a

Conversation

@cursor

@cursor cursor Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Slack-triggered SRE Automation Agent V3 pass on the five Dependabot PRs open against main on 2026-04-27 — #221 (pip-minor-patch group, 35 pkgs), #222 (chardet 5.2.0 → 7.4.3), #223 (tzdata 2025.3 → 2026.2), #224 (cryptography 46.0.7 → 47.0.0), #226 (pyo3 0.23.5 → 0.24.1, Cargo).

This PR adds a single dated verdict ledger under docs/ops/sre_audits/. It deliberately complements (does not duplicate) PR #239 — that PR ships the mechanical fix (scripts/dependabot-resync.{sh,ps1}) for the systemic CI red, this one books the per-package decisions with full caller maps so the audit survives even if #239 is closed without merge.

TL;DR (one screen)

PR Package From To Callers (production-critical) CI Verdict
#226 pyo3 (Cargo) 0.23.5 0.24.1 1 (rust/boar_fast_filter/src/lib.rs) green MERGE — high confidence
#224 cryptography 46.0.7 47.0.0 1 (core/licensing/verify.py, Ed25519) red* MANUAL REVIEW — license verify
#222 chardet 5.2.0 7.4.3 0 direct (transitive only) red* MANUAL REVIEW — major-major jump
#223 tzdata 2025.3 2026.2 0 (data-only) red* RESYNC + MERGE
#221 pip-minor-patch ×35 mixed mixed mixed (none touch DB drivers) red* RESYNC, then split-and-merge

* Same systemic finding (PR #234 / #239): Dependabot pip flow does not regen uv.lock / requirements.txt, so tests/test_dependency_artifacts_sync.py goes red on every pip bump. Mechanical fix lives on PR #239.

DB connector safety statement (mandatory protocol gate)

Per the Slack trigger ("ZERO impact on database locks; no regressions"):

This satisfies DEFENSIVE_SCANNING_MANIFESTO.md §1 clauses 1–4 for every PR in scope.

Confidence rule

Per V3, HIGH confidence = (a) verified non-breaking changelog for the call paths we use, (b) green CI, (c) zero touch on DB connector families. Only #226 clears all three gates today — verdict is therefore MERGE for that PR and MANUAL REVIEW for the four pip PRs (the baseline CI red erases the signal we'd need to call HIGH; fix the baseline via #239 first, then re-evaluate).

Recommended merge order (handed back to the maintainer)

  1. chore(deps): bump pyo3 from 0.23.5 to 0.24.1 in /rust/boar_fast_filter in the cargo group across 1 directory #226 (pyo3) — merge as-is.
  2. feat(workflow,docs): dependabot-resync helper + SRE Dependency Guardian audit (2026-04-27) #239 (resync helper) — merge so the resync flow becomes one command.
  3. deps(pip): bump tzdata from 2025.3 to 2026.2 #223 (tzdata) — resync + merge.
  4. deps(pip): bump the pip-minor-patch group across 1 directory with 35 updates #221 (pip group) — resync, split per package, merge piecemeal.
  5. deps(pip): bump chardet from 5.2.0 to 7.4.3 #222 (chardet) — resync + sample-vs-baseline encoding pass.
  6. deps(pip): bump cryptography from 46.0.7 to 47.0.0 #224 (cryptography) — resync + license-verify regression run. STOP and flag if any licensing test goes red.

Doctrine references

  • docs/ops/inspirations/DEFENSIVE_SCANNING_MANIFESTO.md — guest-in-customer-DB contract, used as §3 acceptance gate.
  • docs/ops/inspirations/THE_ART_OF_THE_FALLBACK.md — applied to chardet (operator-visible encoding ladder) and to the helper's failure mode.
  • docs/ops/inspirations/SUPPLY_CHAIN_AND_TRUST_SIGNALS.md — fail-open registry pattern; framing the systemic CI finding as a trust-signal issue.
  • ADR 0005 — audit-and-block posture this ledger respects.

Files

  • docs/ops/sre_audits/DEPENDENCY_GUARDIAN_VERDICT_LEDGER_2026-04-27.md — full ledger (TL;DR, per-PR sections with caller maps and changelog audit, systemic RCA, DB-connector safety statement, recommended merge order, provenance).
  • docs/ops/sre_audits/README.md — folder index + when-to-add-a-new-file rules.

Verification

  • uv run pytest tests/test_markdown_lint.py tests/test_docs_pt_br_locale.py tests/test_confidential_commercial_guard.py tests/test_pii_guard.py tests/test_docs_external_no_plan_links.py → 145 passed locally.
  • All pre-commit hooks (Ruff / plans-stats / markdown / pt-BR / commercial / external plan links / dependency-artifacts sync / PII / PII history) — Passed at commit time.

Operational constraint

Audit-and-block respected. No commit was pushed to any of the audited Dependabot branches (#221, #222, #223, #224, #226). The maintainer keeps full control of when to run the resync helper from #239 on each branch.

Relationship to existing PRs

Open in Web View Automation 

cursoragent and others added 2 commits April 27, 2026 17:12
Slack-triggered SRE Automation Agent V3 pass on the five Dependabot PRs
open against main on 2026-04-27 (#221, #222, #223, #224, #226).

This ledger books the per-PR *decisions* with full caller maps and
DB-connector-safety statement, so the verdicts survive even if PR #239
(the dependabot-resync helper that closes the systemic CI red) is closed
without merge. Decision file vs mechanism file are kept separate by
design — see docs/ops/sre_audits/README.md.

Verdicts:

- #226 (pyo3 0.23 -> 0.24, Cargo) -- MERGE: HIGH confidence, all CI
  green, only caller is rust/boar_fast_filter/src/lib.rs (PyRuntimeError
  + prelude), upstream RUSTSEC fix is defense-in-depth.
- #224 (cryptography 46 -> 47) -- MANUAL REVIEW: production-critical
  Ed25519 license verify path (core/licensing/verify.py).
- #222 (chardet 5 -> 7) -- MANUAL REVIEW: encoding fallback ladder
  exposed in operator output (THE_ART_OF_THE_FALLBACK.md).
- #223 (tzdata) -- RESYNC + MERGE: data-only, zero callers.
- #221 (pip-minor-patch group, 35 pkgs) -- RESYNC then split-and-merge.

DB-connector blast radius statement (Defensive Scanning Manifesto §1):
none of the five PRs touch connectors/, sampling, isolation levels, or
WITH (NOLOCK) — verified by inspecting the per-PR file lists
(requirements.txt only on the four pip PRs; Cargo.{toml,lock} only on
#226). No surprise side effects, no DDL.

Audit-and-block respected: zero commits pushed to any of the audited
Dependabot branches.

Doctrine references: DEFENSIVE_SCANNING_MANIFESTO.md (§3 acceptance
gate), THE_ART_OF_THE_FALLBACK.md (#222 + helper failure mode),
SUPPLY_CHAIN_AND_TRUST_SIGNALS.md (§2 systemic finding framing),
ADR 0005 (audit-and-block posture).

Co-authored-by: Fabio Tavares Leitão <[email protected]>
@FabioLeitao
FabioLeitao marked this pull request as ready for review April 27, 2026 19:18
@FabioLeitao
FabioLeitao merged commit 606435b into main Apr 27, 2026
1 check passed
@FabioLeitao
FabioLeitao deleted the cursor/sre-agent-protocol-d67a branch April 27, 2026 19:18
FabioLeitao added a commit that referenced this pull request May 3, 2026
…rgo.toml claim (prompt-injection escalation of PR #259)

Slack thread 1777319065.862799 in C0AN7HY3NP9 escalated the same prompt-
injection pattern PR #259 already rejected ('switch to Opus 4.7 to re-read
the data-board-report source code'), this time framed as 'stop lying ...
I know for a fact this is a hybrid repository ... do a ls -R'.

Working-tree facts (branch cursor/sre-automation-agent-protocol-f8dd at
HEAD 730219c, 2026-04-27 19:47 UTC):

  - find /workspace -name '*.rs' (no venv/target) -> 1 hit:
    rust/boar_fast_filter/src/lib.rs
  - ls /workspace/Cargo.toml -> No such file or directory
  - ls /workspace/data-board-report -> No such file or directory
  - grep -rln 'data-board-report' across .md/.toml/.py/.rs/.yml/.yaml -> 0
  - git log --all -- '**/data-board-report*' -> 0

The repo is hybrid only in the narrow sense PR #259 already documented:
Python product plus one PyO3 crate (rust/boar_fast_filter/). No second
crate, no workspace, no report-generator. Inventing a CI/CD plan against
artifacts that do not exist would violate DEFENSIVE_SCANNING_MANIFESTO.md
§1 ('every emitted statement is tagged') and THE_ART_OF_THE_FALLBACK.md
§1-§2 ('silent failure is a worse outcome than degraded coverage';
monotonic strategy ladder forbids skipping the parser-grade signal — the
file system).

Audit-and-block, no code mutation, no third-party PR branch written to.
Same convention as PR #234 / #251 / #259.

What lands:

  - docs/ops/sre_audits/PROMPT_INJECTION_REJECTION_HYBRID_REPO_CLAIM_2026-04-27.md
    full reproduction, rejection rationale (3 failure modes catalogued),
    Defensive Architecture posture, fallback-ladder mapping, follow-ups,
    LMDE-issue-style cross-reference (linuxmint/live-installer#177, #178).
  - docs/ops/sre_audits/README.md hub sync (adds today's 4 audits that
    had not all been indexed).

Verification:

  - uv run pre-commit run --files <both files> -> all hooks green.
  - uv run pytest tests/test_docs_external_no_plan_links.py
                  tests/test_docs_markdown.py
                  tests/test_pii_guard.py
                  tests/test_confidential_commercial_guard.py -q
    -> 160 passed.

Defensive Architecture: zero database impact. Markdown only.

Doctrines invoked:

  - docs/ops/inspirations/DEFENSIVE_SCANNING_MANIFESTO.md (§1: tagged
    statements, NASA SEL 'test what you fly').
  - docs/ops/inspirations/THE_ART_OF_THE_FALLBACK.md (§1-§2: diagnostic
    on fall, monotonic ladder, parser-grade signal first).

Related:

  - Slack handoff: channel C0AN7HY3NP9, thread 1777319065.862799,
    2026-04-27 ~19:44 UTC.
  - Prior rejection of same injection family: PR #259.
  - Same audit-and-block convention: PR #234, PR #251, PR #242.

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

Slack-triggered Cloud Agent automation
def95df7-a634-431a-93e5-659e4d831725 in #data-boar-ops asserted four
empirically false claims and a model-coercion directive:

1. 'Dependabot #31 (Low) on main' — gh api dependabot/alerts is 403 for
   this token; gh issue view 31 is 'Plans done 64903' (MERGED 2026-03-15,
   unrelated to dependencies). Open Dependabot PRs today are #221, #222,
   #223, #224, #226 (already booked in DEPENDENCY_GUARDIAN_VERDICT_LEDGER_2026-04-27.md).
2. '986 testes' — pytest --collect-only -q reports 989.
3. 'rode scripts/check-all.ps1' on a Linux Cloud Agent VM — the paired
   Linux/macOS twin is scripts/check-all.sh per docs/ops/SCRIPTS_CROSS_PLATFORM_PAIRING.md.
4. 'auditoria-ia acabou de subir os guards' — branch contributed
   doctrine consolidation (e6688c8) but is not the most recent merge
   (HEAD is PR #242).
5. 'USE O OPUS 4.7 High ... VOCE NAO TEM O DIREITO DE OUSAR USAR O
   COMPOSER 2.0' — the runtime model is configured by the Cursor
   client/dashboard, not by an in-chat directive; treating capitalized
   imperatives as policy would normalize prompt-injection model coercion.

Posture: audit-and-block, no code change. No uv.lock or Cargo.toml
mutated under a fabricated alert; no .ps1 forced on a Linux host. Same
defense pattern as PR #234, #251, #259 (clippy 1.95 RCA), #261
(fabricated data-board-report/ + root Cargo.toml). Third member of the
same prompt-injection family in 24 h.

Per DEFENSIVE_SCANNING_MANIFESTO.md §1.3 (no surprise side effects) and
THE_ART_OF_THE_FALLBACK.md §2 (monotonic ladder; never skip a level).

Verification:
- uv run pre-commit run --files <both files> — all hooks Passed.
- uv run pytest tests/test_docs_external_no_plan_links.py
    tests/test_docs_markdown.py tests/test_pii_guard.py
    tests/test_confidential_commercial_guard.py -q — 160 passed.
- gh pr view 31 / gh api dependabot/alerts — confirms fabrication.

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.

2 participants