Repository navigation
docs(cursor)+docs(ops): operator scope-fidelity rule + agent-overreach RCA (2026-04-27) - #285
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
…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
force-pushed
the
cursor/sre-agent-protocol-60fb
branch
from
May 3, 2026 17:52
2f8995d to
505b3e9
Compare
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
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
.cursor/rules/operator-scope-fidelity.mdc— symmetric counterweight tooperator-direct-execution.mdcandagent-autonomous-merge-and-lab-ops.mdc. Three clauses:gh pr list --state openbefore opening a duplicate PR; respect existing claim ledgers.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.mdquick-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.mdindex 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_SCANNING_MANIFESTO.md— paper trail, no silent failure (this audit is the diagnostic).THE_ART_OF_THE_FALLBACK.md— degrade with a diagnostic, do not skip hierarchy levels (here: do not jump from "narrow fix" to "global refactor" without consent).Defensive posture
.mdcrules 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).THE_ART_OF_THE_FALLBACK.md§2 — the new rule is bounded; no silent failure path.What this PR deliberately does not do
Style
Follows the LMDE-community bug-report mold (
FabioLeitao#177/#178inlinuxmint/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
C0AN7HY3NP9ts:1777336916.992499@U0ANNTQS7MY(operator)