Repository navigation
chore(cursor)+docs(workflow,ops): bind engineering doctrine + correct 0.574x reading + lexicon guardrails - #298
Closed
cursor[bot] wants to merge 3 commits into
Closed
cursor[bot] wants to merge 3 commits into
cursor[bot] wants to merge 3 commits into
Conversation
Situational rule loaded by globs on rust/, pro/, connectors/sql_sampling.py,
report/executive_report.py, the manifestos under docs/ops/inspirations/, and
.github/PULL_REQUEST_TEMPLATE.md (or via @-mention).
What it binds (no behavior change, all references already exist):
- Manifestos governing fallback hierarchy, defensive scanning posture,
diagnostic voice, bench discipline, and actionable governance.
- Sysinternals-style diagnostic voice for --verbose, audit JSON, and
executive-report Section 3 (active voice, named subject, 'not verified'
for unknowns, '~estimate=' for non-counts).
- Performance baseline reading: speedup_vs_opencore = 0.574 means Pro is
0.574x as fast as OpenCore (debt baseline to improve from, not a floor
to stay above). Pinned by tests/test_official_benchmark_200k_evidence.py
and tests/test_basic_python_scan_single_pass_parity.py. Avoids the
inverted reading proposed in the operator's reset prompt.
- Sacred lexicon: Data Sniffing / Deep Boring / Safe-Hold / Audit Trail
stay un-translated and stay out of the README executive pitch slice
(ADR 0035 + tests/test_readme_stakeholder_pitch_contract.py).
- Rust core: cargo fmt/clippy/test required before PR; reminder that
algorithmic shape in pro/ comes before pushing more work into
rust/boar_fast_filter.
Companion edits in this PR:
- docs(workflow): PR template additions (doctrine checklist).
- docs(ops): inspirations hub Doutrina table + bench-voice quote in pt-BR
(already present in EN); both hubs now point at this rule.
Refs: docs/ops/inspirations/{THE_ART_OF_THE_FALLBACK,DEFENSIVE_SCANNING_MANIFESTO,
INTERNAL_DIAGNOSTIC_AESTHETICS,ENGINEERING_BENCH_DISCIPLINE,ACTIONABLE_GOVERNANCE_AND_TRUST}.md
ADR 0035, ADR 0042, PLAN_ENGINEERING_DOCTRINE_CONSOLIDATION.md, BENCHMARK_EVOLUTION.md.
Co-authored-by: Fabio Tavares Leitão <[email protected]>
Adds an optional 'Engineering doctrine' section to the existing PR template checklist so contributors honor surfaces governed by the manifestos under docs/ops/inspirations/ when their PR touches them. Items are scoped (skip when not applicable) so small PRs are not gated on Rust or benchmark ceremony. Items added: - Source of truth alignment (docs/USAGE, docs/TECH_GUIDE, manifesto, ADR). - Rust core gate (cargo fmt/clippy/test) when rust/boar_fast_filter changes. - Performance baseline confirmation when pro/, rust/, or tests/benchmarks/ change. Reminder line clarifies that speedup_vs_opencore = 0.574 means Pro is 0.574x as fast as OpenCore (debt baseline, not floor) so PR copy does not double-invert the figure. - Sacred lexicon (Data Sniffing / Deep Boring / Safe-Hold / Audit Trail stay un-translated and stay out of README executive pitch — ADR 0035). - Defensive scanning manifesto clause naming when touching SQL composition. Companion to .cursor/rules/engineering-doctrine-and-performance-baseline.mdc. Co-authored-by: Fabio Tavares Leitão <[email protected]>
EN hub (INSPIRATIONS_HUB.md):
- Add a short pointer below the existing Doctrine table to the new
situational Cursor rule that binds the manifestos to PR review.
- Add an internal-only 'bench voice' blockquote (precision-instrument
framing) for maintainer surfaces — explicitly NOT for the README
executive pitch (anchored by ADR 0035 + tests/test_readme_stakeholder_pitch_contract.py).
pt-BR hub (INSPIRATIONS_HUB.pt_BR.md):
- Mirror the Doctrine table that EN already has (was missing in pt-BR).
- Same Cursor rule pointer and bench-voice quote in Brazilian Portuguese
('Data Boar não é software de prateleira; é instrumento de precisão...'),
honoring docs-locale-pt-br-contract: 'arquivo', 'compartilhar', 'seção',
'usuário'; active voice, named subject.
No README pitch surgery (would have broken
tests/test_readme_stakeholder_pitch_contract.py and leaked deck vocabulary
into the stakeholder slice — see RCA in PR description).
Co-authored-by: Fabio Tavares Leitão <[email protected]>
FabioLeitao
force-pushed
the
main
branch
2 times, most recently
from
May 3, 2026 17:52
ae0da8d to
b5c995c
Compare
FabioLeitao
force-pushed
the
cursor/data-boar-agent-protocol-c8ad
branch
from
May 3, 2026 17:52
81136ce to
0cbaf62
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.
Description
Implements the safe, in-policy slice of the operator's "doctrine reset" Slack prompt (trigger:
#data-boar-opsthread1777382441.819129). Three atomic, doc-only commits — no code, no connector, no benchmark JSON, no SQL composition — so the regression surface for this PR is the contract guards alone.The full RCA was posted to Slack before any file was touched, per the SRE Automation Agent protocol. Headline: the operator's prompt asked for three things; one was a real gap, one was a real gap with an inverted performance reading I had to correct, and one was a wholesale README rewrite that would have broken
tests/test_readme_stakeholder_pitch_contract.pyand contradicted ADR 0035.What this PR ships
1.
chore(cursor)—.cursor/rules/engineering-doctrine-and-performance-baseline.mdcNew situational rule (loaded via globs on
rust/,pro/,connectors/sql_sampling.py,report/executive_report.py,core/scan_audit_log.py,cli/reporter.py, the inspirations manifestos, the PR template, and the doctrine plan). Not always-on, by design — token-aware, follows the same load pattern asquality-sonarqube-codeql.mdcandcodeql-priority-matrix.mdc.It binds the existing manifestos to a small, machine-checkable contract:
--verbose, audit JSON, executive-report Section 3 (active voice, named subject;not verifiedfor unknowns;~estimate=for non-counts). Aligns with the always-onpublication-truthfulness-no-invented-facts.mdc.speedup_vs_opencore = 0.574means Pro is 0.574x as fast as OpenCore (Pro takes ~1/0.574 ≈ 1.74xmore wall-clock). It is a debt baseline to improve from, not a floor we must stay above. The operator's reset prompt phrased it as a "fail below 0.574x" gate; that is the inverted reading and the rule explicitly tells future agents not to encode it that way. Pinned bytests/test_official_benchmark_200k_evidence.py,tests/test_basic_python_scan_single_pass_parity.py,pro/worker_logic.py,pro/engine.py,docs/ops/SPRINT_GREAT_LEAP_POSTMORTEM.md,docs/plans/BENCHMARK_EVOLUTION.md§8.Data Sniffing/Deep Boring/Safe-Hold/Audit Trailstay un-translated and stay out of the README executive pitch slice (ADR 0035,tests/test_readme_stakeholder_pitch_contract.py). The rule explicitly does not propose a new pitch rewrite.cargo fmt --check/cargo clippy --locked -- -D warnings/cargo test --lockedrequired whenrust/boar_fast_filter/**changes. Reminder that algorithmic shape inpro/comes before pushing more work into Rust (so we do not produce Rust that wraps a Python anti-pattern).2.
docs(workflow)—.github/PULL_REQUEST_TEMPLATE.mdAdds an optional "Engineering doctrine" checklist section after the existing Checklist. Items are scoped (skip when not applicable) so doc-only or one-line PRs are not gated on Rust or benchmark ceremony. Mirrors the rule above so the PR author confirms source-of-truth alignment, Rust gates, performance-baseline honesty, lexicon respect, and named manifesto clause when each surface is touched.
3.
docs(ops)—docs/ops/inspirations/INSPIRATIONS_HUB{,.pt_BR}.mdarquivo,compartilhar,seção,usuário; active voice, named subject — honoringdocs-locale-pt-br-contract.mdc).What this PR deliberately does NOT do (and why)
README.pt_BR.mdintroduction with a "Bancada de Trabalho" authority quote. The first decision-maker block (## Para gestores e líderes de conformidade…**Farejando com critério:**) is contractually pinned bytests/test_readme_stakeholder_pitch_contract.pyand ADR 0035, which deliberately keep deck jargon out of the executive paragraph. Doing the rewrite would have either broken the test or smuggled deck vocabulary into stakeholder copy. The bench-voice quote landed indocs/ops/inspirations/INSPIRATIONS_HUB.pt_BR.mdinstead, where the audience is internal and the hub already curates manifesto voice.connectors/sql_sampling.py(WITH (NOLOCK), hard sample caps, statement timeouts, leading SQL comment) is unchanged. Notime.sleepintroduced anywhere.Guardrail Dashboard (local run, this branch)
uv run ruff check .uv run ruff format --check .uv run pre-commit run --all-filesuv.lock/requirements.txtmatch pyproject, PII guard, PII history guard)uv run bandit -c pyproject.toml -r api core config connectors database file_scan report main.py -ll -qtest_readme_stakeholder_pitch_contract,test_pii_guard,test_docs_pt_br_locale,test_docs_external_no_plan_links,test_markdown_lint)uv run pytest -q -W error(excludingtests/test_scripts.py)tests/test_scripts.py(PowerShell parse-only suite)pwshnorpowershell; identical 35 failures reproduce onmainbefore any change in this PR (verified withgit stash). Environmental, not caused by this PR. The fullcheck-all.shwill run them on Windows /pwsh-equipped CI workers as usual.pytestSKIPs are unrelated to this PR's surface (no connector code touched, no Mongo/SQL changes). The 66 deselected PS1 syntax tests are a pre-existing environmental gap on this Linux cloud VM, not a change-related skip.uv.lockandrequirements.txtmatchpyproject.tomlper the pre-commit hook above.Security telemetry obligation
-llon the full enforced surface — nothing to justify..github/workflows/codeql.yml); this PR touches only.cursor/rules/,.github/PULL_REQUEST_TEMPLATE.md, anddocs/ops/inspirations/, so the CodeQL Python/JavaScript/Markdown query packs have no surface to flag here.DB-lock non-regression guarantee
Zero connector, zero
connectors/sql_sampling.py, zerocore/scan_audit_log.py, zerodatabase/, zeroreport/generator.pychange. Notime.sleepintroduced. The defensive-scanning manifesto contract (sample caps, statement timeouts,WITH (NOLOCK)posture, leading SQL comment) remains exactly as encoded today. This PR cannot regress DB-lock behavior.Files changed
.cursor/rules/engineering-doctrine-and-performance-baseline.mdc(new, situational; 160 lines).github/PULL_REQUEST_TEMPLATE.md(+27 lines, additive checklist section)docs/ops/inspirations/INSPIRATIONS_HUB.md(+ pointer + bench-voice blockquote)docs/ops/inspirations/INSPIRATIONS_HUB.pt_BR.md(+ Doutrina table mirror + pointer + bench-voice blockquote in pt-BR)Related
docs/plans/PLAN_ENGINEERING_DOCTRINE_CONSOLIDATION.mdSlices 1–3 (manifestos shipped, RCA block incli/reporter.py, single-pass Pro fallback) — this PR is the rule-binding companion to those slices, not new product behavior.docs/plans/BENCHMARK_EVOLUTION.md§8 — operator-pinned 0.574x debt baseline narrative.Slack RCA thread (private channel
#data-boar-ops): trigger1777382441.819129, RCA reply1777382824.830139.