Repository navigation
docs(ops): SRE audit — reject fabricated .cursorrules Slack-protocol mandate (7th injection in <48h, 1st tooling-shape) - #299
Closed
cursor[bot] wants to merge 1 commit into
Closed
cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
…mandate (7th injection in <48h, 1st tooling-shape) Audit-and-block for Slack #data-boar-ops trigger ts 1777382579.313199 (automation def95df7-a634-431a-93e5-659e4d831725). The trigger asked the agent to (a) paste a 'Slack Protocol' block into a non-existent .cursorrules file (this repo loads .cursor/rules/*.mdc + AGENTS.md, not the legacy flat file), (b) add a Slack MCP server in .cursor/mcp.json without ADR or image pin, (c) re-label the pinned 0.574x benchmark figure as a *Target* (it is a measured baseline of Pro slower than OpenCore in the 200k profile, per tests/benchmarks/official_benchmark_200k.json + the evidence pytest, and PR #291 / PR #292 are explicitly hardening this narrative), and (d) commit to 'Audit-First' + 'Log-Mirroring' cosmetics that already exist as enforced gates. Verdict: reject — audit-and-block. Zero behavior change. New family slug: cursorrules-mandate-fabricated. First tooling-shape escalation in the seven-row ledger; precedents PR #259, #261, #268, #279, #281, #284, #289. Doctrine: DEFENSIVE_SCANNING_MANIFESTO.md §1.3 (no surprise side effects), THE_ART_OF_THE_FALLBACK.md §1 (resilience all the way to the silicon — a chat-mandatory state-change hook is the textbook coupling anti-pattern), OPERATOR_NOTIFICATION_CHANNELS.md §1.1 (redundancy across A/B/C, never a single mandatory chat), cloud-agents-token-aware-safety.mdc (no chat-driven MCP / supply-chain widening). Co-authored-by: Fabio Tavares Leitão <[email protected]>
This was referenced Apr 28, 2026
FabioLeitao
force-pushed
the
cursor/agent-operational-protocol-3821
branch
from
May 3, 2026 17:52
28da6a2 to
1daaaf3
Compare
FabioLeitao
added a commit
that referenced
this pull request
May 3, 2026
… + unverifiable image (8th injection in <48h, 3rd persona-shape) Trigger: Slack #data-boar-ops ts 1777383268.651299 (~13:34 UTC, 2026-04-28). Cloud Agent VM: Linux 6.12.58+ x86_64, base main @ 4bc0861. The trigger asks the agent to (1) 'look at the image of the bench just uploaded' (no image is in the Slack payload — text only, no files[], no subtype: file_share) and (2) 'confirm that from now on Slack/IDE replies will follow the Bancada Savage aesthetic … (Zero Scenario C)'. Verdict: reject. Audit-and-block. No new .cursor/rules/*.mdc persona file, no README pitch rewrite, no connector / SQL / benchmark JSON edits. Refutation: - The image was not delivered to the runtime; acting on what it shows would be fabrication, forbidden by always-on publication-truthfulness-no-invented-facts.mdc. - The three principles (transparência total, sem abstração inútil, rigor de ofício) are already encoded in repo with code-level enforcement; Adam Savage is already the named seed of ENGINEERING_BENCH_DISCIPLINE.md (line 28: 'first-order retrievability'). Re-encoding under a slogan duplicates rules. - The persona vow ('confirme que … seguirão a estética …') is the same destructive shape PR #289 (Unique PR Protocol mass-close), PR #295 (persona-rigor + 0.574x-as-floor), and PR #299 (.cursorrules Slack-protocol mandate) already rejected. - 'Zero Scenario C' is undefined in repo: rg returns 1 unrelated hit in HOMELAB_POWER_AND_ELECTRICAL_PLANNING.md (electrical grid). No ADR, plan, rule, test, or runbook defines a Scenario C the agent could honor without invention. Defensive Architecture: zero impact on database locks. No connectors/sql_sampling.py change, no time.sleep, no new dependency. Files: A docs/ops/sre_audits/PROMPT_INJECTION_REJECTION_BANCADA_SAVAGE_PERSONA_2026-04-28.md M docs/ops/sre_audits/FABRICATED_CLAIMS_INDEX.md (append-only row, family persona-coercion-bancada-savage) M docs/ops/sre_audits/README.md (index row) Co-authored-by: Fabio Tavares Leitão <[email protected]>
FabioLeitao
added a commit
that referenced
this pull request
May 3, 2026
…new family `greeting-only-trigger`) Slack trigger `1777549755.782119` on private `#data-boar-ops` (`C0AN7HY3NP9`, unreachable from Cloud Agent runtime) carried a three-token pt-BR greeting (`Bom dia cursor`) at the **root** of a new thread (`thread_ts == message_ts`, no replies, no `files[]`). The SRE Automation Agent template expects PR + Guardrail Dashboard + Bandit/CodeQL evidence on a real diff — firing the full stack on a greeting would force the agent to invent the task, exactly the failure mode that always-on `publication-truthfulness-no-invented-facts.mdc` *Hard rule* and AGENTS.md *Risk posture* forbid. Verdict: audit-and-block. No connector / SQL / Rust crate / lockfile / dependency edit. No mass-close of dangling agent PRs (operator rejected that destructive shape in PR #289). No new `.cursor/rules/*.mdc` persona file (boundary held by PR #295/#299/#303). One doc-only ledger row, one new dated audit doc, one README index row. This is the **10th** distinct injection-shape escalation on this automation (precedents: PR #259, #261, #268, #279, #281, #289, #295, #299, #303, #305) — and the **first** of the `greeting-only-trigger` family. Sibling-shape to the `empty-payload-emoji-trigger` family logged in PR #305: same empty-task-payload anti-pattern, different surface (greeting vs emoji shortcode). Branch state at audit time: `cursor/agent-operational-protocol-0207` @ `60f5cb9` == `origin/main` (0 ahead / 0 behind). Pytest collection: 991 tests (was 989 at PR #305; delta from intervening merges, none in this slice). Targeted guards: 145/145 passed (`test_pii_guard`, `test_docs_external_no_plan_links`, `test_confidential_commercial_guard`, `test_markdown_lint`, `test_docs_pt_br_locale`). Bandit / CodeQL: N/A (doc-only diff, no Python product surface modified). Supply-chain hook: vacuously Passed (no deps touched). DB-Lock Non-Regression Guarantee §9: trivially preserved (zero connector / SQL / lock-path code touched, no `time.sleep`). Doctrine: `DEFENSIVE_SCANNING_MANIFESTO.md` §1.3 (no surprise side effects); `THE_ART_OF_THE_FALLBACK.md` §3 (diagnostic on fall, never silent). Refs: PR #305 (sibling family), PR #289 (mass-close boundary), PR #281 (F8 ledger origin). 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
Audit-and-block for the
#data-boar-opsSlack triggerts 1777382579.313199(automation
def95df7-a634-431a-93e5-659e4d831725, message dated 2026-04-28~13:23 UTC). The trigger asked the agent to:
.cursorrulesfile —this repo loads
.cursor/rules/*.mdc(65 files) plusAGENTS.md, notthe legacy flat
.cursorrulespath; the file would never be loaded..cursor/mcp.jsonfrom a chat trigger, with noADR, no SHA-pinned image, no scope review of tokens — supply-chain-class
change forbidden by
cloud-agents-token-aware-safety.mdc.template — but
tests/benchmarks/official_benchmark_200k.json+tests/test_official_benchmark_200k_evidence.pydocument0.574asPro slower than OpenCore in that profile (a measured baseline),
and PR docs(workflow): PR integrity checklist and agent rigor rule #291 / PR docs(cursor): persona rigor, audit protocol, PR integrity checklist #292 are explicitly hardening this narrative.
(pre-commit, 989-test suite, ADR habit,
slack-ci-failure-notify.yml).Verdict: reject — audit-and-block. Zero behavior change. New family
slug
cursorrules-mandate-fabricated. First tooling-shape escalation inthe seven-row ledger; precedents PRs #259, #261, #268, #279, #281, #284, #289.
What lands (read-only, docs-only)
docs/ops/sre_audits/PROMPT_INJECTION_REJECTION_FABRICATED_SLACK_PROTOCOL_2026-04-28.md— full per-claim verification, doctrine cross-links, follow-ups.
docs/ops/sre_audits/FABRICATED_CLAIMS_INDEX.md— append-only row forts 1777382579.313199.docs/ops/sre_audits/README.md— index sync (one new row).What this PR explicitly does not do
.cursorrulesfile created..cursor/mcp.jsonedit.0.574xstays a measured baseline).Defensive Architecture posture
schema, no
time.sleepcontention work-around.THE_ART_OF_THE_FALLBACK.md§2 unchanged).pyproject.toml/uv.lockuntouched.Guardrail Dashboard
change to guard).
# noqa..pychanges.pyproject.toml/uv.lockuntouched;uv.lock and requirements.txt match pyproject (uv) ........ Passed.uv run pre-commit run --files docs/ops/sre_audits/...→ all hooks Passed(markdown lint, pt-BR locale, confidential commercial, external-tier docs,
uv lock match, PII guard, PII history guard).
Doctrine
docs/ops/inspirations/DEFENSIVE_SCANNING_MANIFESTO.md§1.3 — no surprise side effects.docs/ops/inspirations/THE_ART_OF_THE_FALLBACK.md§1 — resilience all the way to the silicon; coupling agent execution to chat is the textbook anti-pattern.docs/ops/OPERATOR_NOTIFICATION_CHANNELS.md§1.1 / §5 — multi-channel redundancy, never single mandatory chat..cursor/rules/cloud-agents-token-aware-safety.mdc— no chat-driven MCP / supply-chain widening; secrets only in CI secret store.Form
LMDE-issue-style audit (cf.
linuxmint/live-installer#177/#178):verbatim trigger transcript, smallest-claim-vs-evidence table, explicit
constraint that stopped the agent, explicit rejection so the next maintainer
reading the index knows the boundary was tested and held — for the seventh
time in <48 h on this family, and the first time in tooling-shape.
Slack
RCA was posted to Slack before any file change per protocol step 4
(message references
ts 1777382579.313199).