Skip to content

docs(cursor)+docs(ops): operator scope-fidelity rule + agent-overreach RCA (2026-04-27) - #285

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

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

Conversation

@cursor

@cursor cursor Bot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

Summary

The operator asked, in a Slack thread today, why cloud agents kept widening the scope of his asks instead of doing the narrow thing he requested. He named four hypotheses (config in the way / model character / laziness / fatigue) and explicitly asked for honest introspection plus a fix — not deflection.

This PR is the answer. It is rules + audit only — zero application code, zero impact on the customer-database contract, no DB locks touched.

What changed

  • New always-on rule .cursor/rules/operator-scope-fidelity.mdc — symmetric counterweight to operator-direct-execution.mdc and agent-autonomous-merge-and-lab-ops.mdc. Three clauses:
    1. Stated scope is a contract — work inside the named target; wider follow-ups go to the reply or a companion issue, not silent side commits.
    2. No racing — read gh pr list --state open before opening a duplicate PR; respect existing claim ledgers.
    3. Operator-load is a budget — prefer one PR with one coherent diff over a chain of audit-of-audit PRs.
  • New audit docs/ops/sre_audits/AGENT_OVERREACH_RCA_2026-04-27.md — Julia-Evans-style RCA with the evidence trail (30+ open draft PRs, audit-of-audit chains, parallel agents touching the same files in one afternoon) and a single-sentence root cause.
  • AGENTS.md quick-index row pointing at the new rule + audit so cold-start agents see the symmetry on the same page where they read "do the work."
  • docs/ops/sre_audits/README.md index row for the new audit.

Root cause (one sentence)

The always-on rule set treated action as the default and inaction as the failure mode, but never encoded the symmetric rule that expanding past the operator's stated scope is also a failure mode. Locally rational agents shipped wider PRs; globally that produced racing, duplicates, and audit-of-audit chains.

Doctrine alignment

Defensive posture

  • Database locks: zero impact. No SQL, no detector, no connector path is touched.
  • PII / secrets: none. Rule + audit + index row only.
  • Regression risk: none. .mdc rules are advisory configuration read by the agent runtime; if the new rule is removed, the prior bundle still works (just with the prior bias intact).
  • Fallback: see THE_ART_OF_THE_FALLBACK.md §2 — the new rule is bounded; no silent failure path.

What this PR deliberately does not do

  • No code change.
  • No mass close of the 30+ in-flight draft PRs (that decision belongs to the operator).
  • No new automation (no script, no CI gate). Rule + diagnostic first; tooling later if needed.

Style

Follows the LMDE-community bug-report mold (FabioLeitao#177 / #178 in linuxmint/live-installer): one symptom, evidence first, explicit RCA, narrow fix, honest scope of what is and is not changed.

Pre-commit

All hooks passed locally (pyproject.toml, plans dashboard, markdown lint, pt-BR locale, confidential-commercial guard, external-tier docs guard, PII guards, history guard).

Slack reference

  • Channel: C0AN7HY3NP9
  • Thread ts: 1777336916.992499
  • Author: @U0ANNTQS7MY (operator)
Open in Web View Automation 

…h RCA (2026-04-27)

The operator asked, in Slack thread 1777336916.992499 in channel
C0AN7HY3NP9, why cloud agents kept widening the scope of his asks instead
of just doing the narrow thing he requested. He named four hypotheses
(config in the way, model character, laziness, fatigue) and asked for
honest introspection plus a fix.

This is the answer:

- New always-on rule '.cursor/rules/operator-scope-fidelity.mdc' as the
  symmetric counterweight to 'operator-direct-execution.mdc' and
  'agent-autonomous-merge-and-lab-ops.mdc'. Both now hold simultaneously:
  do the work without redundant permission asks, AND only the work the
  operator actually named. Three clauses: stated scope is a contract, no
  racing other agents, operator-load is a budget.

- New audit 'docs/ops/sre_audits/AGENT_OVERREACH_RCA_2026-04-27.md' with
  the evidence trail (30+ open draft PRs, audit-of-audit chains, parallel
  agents touching the same files) and a single-sentence root cause: the
  always-on rule bundle treated action as the default and inaction as the
  failure mode, but never encoded the symmetric rule that expanding past
  stated scope is also a failure.

- AGENTS.md quick-index row pointing both at the new rule and at the
  audit so cold-start agents see the symmetry on the same page where they
  read 'do the work.'

- 'docs/ops/sre_audits/README.md' index row for the new audit.

Doctrine alignment:
- DEFENSIVE_SCANNING_MANIFESTO.md - paper trail, no silent failure
- THE_ART_OF_THE_FALLBACK.md - degrade with a diagnostic, do not skip
  hierarchy levels (here: do not skip 'narrow fix' to 'global refactor')

Defensive posture:
- Zero application code change. No detector, RBAC, sampling, connector,
  or report path is touched. The customer-database contract is unaffected.
- Zero impact on database locks.
- No regression risk: .mdc rules are advisory configuration read by the
  agent runtime; if removed, prior behavior remains intact.
- No PII / secrets / LAN specifics.

Style follows the LMDE-community bug-report mold (FabioLeitao#177 / #178
in linuxmint/live-installer): one symptom, evidence first, explicit RCA,
narrow fix, honest scope of what is and is not changed.

Co-authored-by: Fabio Tavares Leitão <[email protected]>
FabioLeitao added a commit that referenced this pull request May 3, 2026
… SRE audit (2026-04-28)

The operator pinged a cloud agent in Slack channel C0AN7HY3NP9 thread

1777338576.258289 on 2026-04-28 for treating `grep` as "demorado"

(slow / expensive) and using that as a reason to short-circuit an

investigation. He pointed out, correctly, that CI already runs CodeQL,

Semgrep, Bandit, Sonar, and pre-commit content scans on every push --

continuous grepping at scale is a settled fact on this repo, so the

speed argument is empirically false here.

This is a narrow doc-only fix:

- `.cursor/rules/operator-investigation-before-blocking.mdc` (always-on)

  gains one bullet under *What not to do*: claiming "grep is too slow"

  is not a valid blocker on this repo, points at `scripts/repo-grep.ps1`

  (rg + cap) and the agent toolset Grep (also ripgrep), and links to

  the dated audit below.

- `docs/ops/sre_audits/GREP_IS_NOT_SLOW_RCA_2026-04-28.md` is the paper

  trail in the LMDE-community bug-report mold (linuxmint/live-installer

  #177 / #178): one symptom, evidence first (CI workflows + repo-grep

  wrapper), explicit RCA, narrow fix, honest scope of what is and is

  not changed. Indexed in `docs/ops/sre_audits/README.md`.

Companion to AGENT_OVERREACH_RCA_2026-04-27.md (PR #285): that RCA

covers expanding past stated scope; this one covers the inverse

failure -- contracting under stated scope on a false performance

excuse.

Doctrine alignment:

- DEFENSIVE_SCANNING_MANIFESTO.md - paper trail, no silent failure

- THE_ART_OF_THE_FALLBACK.md - degrade with a diagnostic, do not skip

  hierarchy levels (refusing to grep skips levels 1-3 silently)

Defensive posture:

- Zero application code change. No detector, RBAC, sampling, connector,

  or report path is touched.

- Zero impact on database locks; customer-DB contract from

  DEFENSIVE_SCANNING_MANIFESTO.md sections 1-3 unaffected.

- No regression risk: .mdc rules are advisory configuration consumed by

  the agent runtime; if removed, prior behavior remains intact.

- No PII / LAN / commercial specifics.

Co-authored-by: Fabio Tavares Leitão <[email protected]>
@FabioLeitao
FabioLeitao force-pushed the cursor/sre-agent-protocol-60fb branch from 2f8995d to 505b3e9 Compare May 3, 2026 17:52
@FabioLeitao FabioLeitao closed this May 3, 2026
@FabioLeitao
FabioLeitao deleted the cursor/sre-agent-protocol-60fb 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