Repository navigation
chore: operator workflow sync (cursor, scripts, docs, guards) - #178
Merged
Merged
Conversation
…F export, hash tools) Made-with: Cursor
…d lengths Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
…ything.es lab Made-with: Cursor
…ial drafts Made-with: Cursor
Made-with: Cursor
… stubs Made-with: Cursor
Made-with: Cursor
| p = ROOT / name | ||
| if p.is_file(): | ||
| found.append(p) | ||
| return sorted(set(found), key=lambda x: str(x)) |
| seen.add(key) | ||
| paths.append(p) | ||
| changed: list[str] = [] | ||
| for p in sorted(paths, key=lambda x: str(x)): |
This was referenced Apr 27, 2026
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
added a commit
that referenced
this pull request
May 3, 2026
…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
…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]>
This was referenced May 9, 2026
Closed
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
Split commits by area: Cursor rules/skills, scripts (es-find, PII audit, legal PDF export, social), tests, ansible, plans, ops docs, ADRs 0021-0022, product/private.example docs, root README/AGENTS.
CI
Note
Commit \4805953\ message says \docs(ops)\ but content is \docs/plans/\ only (race during batch); left as-is to avoid history rewrite.
Made with Cursor