Skip to content

docs(ops): RCA + alert-anchored ledger for Dependabot alert #31 (pyo3 Low → PR #226) - #269

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

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

Conversation

@cursor

@cursor cursor Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Slack-triggered SRE pass anchored on Dependabot alert #31 (Low) — pyo3 PyString::from_object UB on non-str inputs (RUSTSEC; fixed in pyo3 0.24.1). The remediation already exists as PR #226 (pyo3 0.23.5 → 0.24.1 in rust/boar_fast_filter/), CI is all green, and the verdict ledger from PR #239 (DEPENDENCY_GUARDIAN_VERDICT_LEDGER_2026-04-27.md §1.1) already classified it as the only Dependabot PR clearing the V3 HIGH-confidence bar today.

This PR ships the LMDE-style alert-number-anchored RCA companion under docs/ops/sre_audits/ so the alert-number trail survives even if Dependabot force-pushes or closes #226 before merge — same precedent as GHSA-5239 / Dependabot #21 on commit 3aa75f5. Audit-and-block respected: no commit pushed to the Dependabot branch.

Why a separate ledger and not a comment on #226?

If #226 is force-pushed or closed by Dependabot before merge (a known, common Dependabot behavior on a stale base), the alert-number ↔ remediation trail is lost from main. The new ledger keeps alert #31 grep-able in the main history.

Verdict

MERGE PR #226 as-is. Vulnerable API PyString::from_object is not referenced at workspace HEAD (rg --type rust → 0 matches), so the fix is defense-in-depth for this repo. Zero blast radius on the DB connector contract from DEFENSIVE_SCANNING_MANIFESTO.md §3 (cargo path; cannot influence WITH (NOLOCK), sampling, isolation, or DDL). GitHub will auto-resolve alert #31 once #226 lands.

Local validation (audit-and-block, then revert)

$ sed -i 's|pyo3 = { version = "0.23"|pyo3 = { version = "0.24"|' rust/boar_fast_filter/Cargo.toml
$ cd rust/boar_fast_filter && cargo update -p pyo3 --precise 0.24.1
 Downgrading pyo3 v0.24.2 -> v0.24.1 (+ pyo3-build-config / -ffi / -macros / -macros-backend)
$ cargo check
    ...
    Checking boar_fast_filter v0.1.0 (/workspace/rust/boar_fast_filter)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.42s
$ git checkout -- rust/boar_fast_filter/Cargo.toml rust/boar_fast_filter/Cargo.lock

The 986-test gate (per the Slack mission statement):

$ ./scripts/check-all.sh --skip-pre-commit
======= 35 failed, 949 passed, 5 skipped, 108 subtests passed in 48.25s ========

The 35 failures are all tests/test_scripts.py::test_*_ps1_syntax and trip because the SRE-agent Linux container does not ship pwsh. They pre-exist this branch and are environmental, not regressions. All product gates pass, including:

  • tests/test_dependency_artifacts_sync.py — pyproject ↔ uv.lock ↔ requirements.txt SoT guard.
  • tests/test_pii_guard.py — public-tree PII baseline.
  • Targeted post-edit run: tests/test_markdown_lint.py + test_docs_pt_br_locale.py + test_docs_external_no_plan_links.py + test_confidential_commercial_guard.py + test_pii_guard.py + test_dependency_artifacts_sync.py → 147 passed.
  • pre-commit (Ruff, plans-stats, plans-hub, markdown lint, pt-BR locale, commercial guard, external plan links, dependency-artifacts sync, PII, PII history) — all Passed at commit time.

Files

  • NEW docs/ops/sre_audits/DEPENDABOT_ALERT_31_PYO3_RCA_2026-04-27.md — alert-anchored RCA, Julia-Evans-style explanation, verdict, doctrine refs, provenance.
  • MOD docs/ops/sre_audits/README.md — index row for the new ledger.

Doctrine

  • docs/ops/inspirations/DEFENSIVE_SCANNING_MANIFESTO.md — §1 (guest in customer DB, no surprise side effects), §3 (DB-driver blast radius gate). Confirmed zero for this bump.
  • docs/ops/inspirations/THE_ART_OF_THE_FALLBACK.md — applied to the audit itself: local-validation-then-revert is a diagnostic-on-fall (we publish what we tried, even when the result is no change to commit).
  • docs/ops/inspirations/SUPPLY_CHAIN_AND_TRUST_SIGNALS.md — fail-open framing for stale Low alerts.
  • docs/ops/sre_audits/DEPENDENCY_GUARDIAN_VERDICT_LEDGER_2026-04-27.md §1.1 — prior verdict on 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.
  • ADR 0005 — audit-and-block CI posture.

Operational constraint

Audit-and-block respected. No commit pushed to dependabot/cargo/rust/boar_fast_filter/cargo-f9635f71e3 (#226). The maintainer keeps full control of when to merge #226 to close alert #31.

Provenance

Open in Web View Automation 

… Low → PR #226)

Slack-triggered SRE pass anchored on Dependabot alert #31 (Low) for
'pyo3 PyString::from_object' UB on non-str inputs (RUSTSEC, fixed in
pyo3 0.24.1). Open PR #226 already bumps Cargo.toml + Cargo.lock and
all CI is green (Test 3.12, 3.13, Lint, Bandit, Dependency audit,
Semgrep, CodeQL, SonarQube, Analyze).

This commit ships the LMDE-style alert-number-anchored RCA companion
under docs/ops/sre_audits/ so the alert-number trail survives even
if Dependabot force-pushes or closes #226 before merge (precedent:
GHSA-5239 / Dependabot #21 on commit cabf990).

Audit-and-block respected: no commit pushed to the Dependabot branch.
Local validation reproduced the bump on this branch (cargo update -p
pyo3 --precise 0.24.1 + cargo check passed in 7.42s) then reverted
the manifests so the working tree carries only the audit ledger.

Verdict: MERGE PR #226 as-is. Vulnerable API PyString::from_object is
not referenced at workspace HEAD (rg --type rust -> 0 matches), so the
fix is defense-in-depth for this repo. Zero blast radius on the DB
connector contract from DEFENSIVE_SCANNING_MANIFESTO.md \xc2\xa73 (cargo
path; cannot influence WITH (NOLOCK), sampling, isolation, or DDL).

Validation:
- cargo check on pyo3 0.24.1 -> Finished dev profile (7.42s).
- ./scripts/check-all.sh --skip-pre-commit -> 949 passed, 5 skipped.
  35 failures are pre-existing pwsh parse-only environmental failures
  (no pwsh in this Linux container) and unrelated to this change.
- Targeted guards: tests/test_markdown_lint.py +
  tests/test_docs_pt_br_locale.py + tests/test_docs_external_no_plan_links.py
  + tests/test_confidential_commercial_guard.py +
  tests/test_pii_guard.py + tests/test_dependency_artifacts_sync.py
  -> 147 passed.

Doctrine: DEFENSIVE_SCANNING_MANIFESTO.md (NASA SEL / Cloudflare /
Gibson - guest in customer DB, no surprise side effects);
THE_ART_OF_THE_FALLBACK.md (diagnostic-on-fall - we publish what we
tried even when the result is no change to commit);
SUPPLY_CHAIN_AND_TRUST_SIGNALS.md (fail-open framing for stale Low
alerts); ADR 0005 (audit-and-block CI posture).

Co-authored-by: Fabio Tavares Leitão <[email protected]>
@FabioLeitao
FabioLeitao force-pushed the main branch 2 times, most recently from ae0da8d to b5c995c Compare May 3, 2026 17:52
@FabioLeitao
FabioLeitao force-pushed the cursor/sre-agent-protocol-cc4f branch from fd5156e to 472b120 Compare May 3, 2026 17:52
FabioLeitao added a commit that referenced this pull request May 3, 2026
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 closed this May 3, 2026
@FabioLeitao
FabioLeitao deleted the cursor/sre-agent-protocol-cc4f 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