Repository navigation
docs(ops): SRE Dependency Guardian verdict ledger (2026-04-27) - #242
Merged
Merged
Conversation
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
marked this pull request as ready for review
April 27, 2026 19:18
This was referenced Apr 27, 2026
1 of 3 tasks
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Slack-triggered SRE Automation Agent V3 pass on the five Dependabot PRs open against
mainon 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)
pyo3(Cargo)rust/boar_fast_filter/src/lib.rs)cryptographycore/licensing/verify.py, Ed25519)chardettzdatapip-minor-patch×35* Same systemic finding (PR #234 / #239): Dependabot pip flow does not regen
uv.lock/requirements.txt, sotests/test_dependency_artifacts_sync.pygoes 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"):
WITH (NOLOCK),SAMPLE, dialect hints — verified by reading the per-PR file lists;requirements.txtonly on the four pip PRs,Cargo.{toml,lock}only 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).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)
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.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.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
scripts/dependabot-resync.{sh,ps1}+ audit doc on its own branch). If feat(workflow,docs): dependabot-resync helper + SRE Dependency Guardian audit (2026-04-27) #239 lands first, the merge order in this ledger becomes mechanical.pull_request_targetworkflow). Adding a third issue would be GTD churn.