Skip to content

feat(gate): config-driven backtest-regression gate mode, default advisory#8162

Merged
loopover-orb[bot] merged 1 commit into
mainfrom
feat/backtest-regression-gate
Jul 23, 2026
Merged

feat(gate): config-driven backtest-regression gate mode, default advisory#8162
loopover-orb[bot] merged 1 commit into
mainfrom
feat/backtest-regression-gate

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

  • Resolves Decide + implement whether a REGRESSED backtest verdict should ever gate a merge (Phase 2) #8105's Phase-2 question as a conditional decision, fully wired: the complete gating mechanism ships now as config-as-code — backtestRegressionGateMode: off | advisory | blockdefaulting to advisory, the shipped behavior, so this deploy is behavior-identical and the future flip to block is a one-line config change made when calibration: compute REGRESSED-verdict track-record statistics from ORB's persisted backtest results #8140's persisted track record supports it. This honors the issue's own do-not-gate-before-data boundary (0 calibration rows exist today) while completing the epic's mechanical scope end to end.
  • Wired through every per-repo-setting site per the house checklist: RepositorySettings + Drizzle column + migration 0174 (default 'advisory'), repositories defaults/parse/normalize/both write paths, settings-preview (39-field parity), focus-manifest host apply + engine manifest schema (gate.backtestRegression, all 4 sites), OpenAPI zod schemas ×2 + regenerated artifact (118-field parity), routes PATCH schema, gate-check policy passthrough, isConfiguredGateBlocker in both gate-decision twins (host advisory.ts + engine gate-advisory.ts — parity checks green), .loopover.yml.example + the byte-matched config/examples/loopover.full.yml template, the docs-drift GATE_MODE_MANIFEST row, and real docs coverage (tuning.mdx bullet + the backtest-calibration page's callout updated from "advisory-only today" to the configurable truth).
  • Enforcement lives in resolveThresholdBacktestAdvisory (Scaffold the advisory backtest CI workflow + threshold-only comparison, and persist each run's result #8138's resolver): off silences the advisory entirely (no D1 read, no persist, no section); block pushes a backtest_regression finding when any comparison is REGRESSED. The finding only exists in block mode, so advisory remains byte-identical to today, and the blocker branch is defense-in-depth mirroring content_lane_deliverable_missing's split.

Advances #8105 — the written decision (conditional: advisory until the track record justifies gating; mechanism ready) will be posted on the issue at merge.

Scope

  • The PR title follows type(scope): short summary Conventional Commit format, for example fix(api): restore profile access checks.
  • This PR is focused and does not mix unrelated backend, UI, MCP, docs, dependency, and deploy changes.
  • This follows CONTRIBUTING.md and does not reintroduce GitHub Pages, VitePress, site/, or CNAME.
  • I linked a currently open issue this PR resolves (e.g. Closes #123) — a linked open issue is required for every contributor PR.

Validation

  • git diff --check
  • npm run actionlint
  • npm run typecheck
  • npm run test:coverage locally; codecov/patch requires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.
  • npm run test:workers
  • npm run build:mcp
  • npm run test:mcp-pack
  • npm run ui:openapi:check
  • npm run ui:lint
  • npm run ui:typecheck
  • npm run ui:test
  • npm run ui:build
  • npm audit --audit-level=moderate
  • New or changed behavior has unit/integration tests for new branches, fallback paths, and sanitizer boundaries

If any required check was skipped, explain why:

  • npm run test:ci ran green through the full suite (1108 test files) up to ui:version-audit, which failed only on npm's second mid-session publish (3.5.0, fixed on main in chore(ui): sync MCP_PACKAGE_KNOWN_LATEST_VERSION with npm dist-tags.latest 3.5.0 #8155); after rebasing onto that fix, the audit and every remaining step (docs/branding/manifest/engine-parity/nvmrc/release-manifest/command-reference + ui:lint/ui:typecheck/ui:test/ui:build) re-ran green individually. New coverage: mode behavior (off/advisory-default/advisory-explicit/block-regressed/block-improved/block-without-sink) in the wiring suite, blocker-policy branches in BOTH twins' suites, storage round-trip + junk-value fallback, yml→effective-settings mapping, docs-drift fixtures.

Safety

  • No secrets, wallet details, hotkeys, coldkeys, user PATs, private keys, raw trust scores, private rankings, or private maintainer evidence are exposed.
  • Public GitHub text stays sanitized, low-noise, and does not imply compensation guarantees or optimization tactics.
  • Auth, cookie, CORS, GitHub App, Cloudflare, or session changes include negative-path tests.
  • API/OpenAPI/MCP behavior is updated and tested where needed.
  • UI changes use live API data or real empty/error/loading states, not production mock/demo fallbacks.
  • Visible UI changes include a UI Evidence section below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.
  • Public docs/changelogs are updated where needed; changelogs are only edited for release-prep PRs.

Gate-authority change is opt-in only: an unrecognized stored mode degrades to advisory (never silently to block), and the backtest_regression finding's public text carries only rule ids and backtest language — the leak-guard conventions hold.

UI Evidence

Not applicable — docs-content-only MDX edits (two pages), no layout/visual change.

Notes

  • Flip procedure when the data supports it: set gate.backtestRegression: block in .loopover.yml (or the dashboard field) — no deploy needed.

…sory (#8105)

Resolves #8105's Phase-2 decision as a CONDITIONAL policy: the full gating
mechanism ships now as config-as-code, defaulting to the shipped advisory-only
behavior, so the deploy is behavior-identical and the future flip to block is
a one-line config change made only once #8140's persisted track record
supports it -- honoring the issue's own do-not-gate-before-data boundary
while completing the epic's mechanical scope end to end.

backtestRegressionGateMode (off|advisory|block; DB column + dashboard field +
.loopover.yml gate.backtestRegression override) is wired through every
per-repo-setting site: types, schema + migration 0174, repositories
(defaults/parse/normalize/both write paths), settings-preview, focus-manifest
(host + engine manifest schema), openapi schemas + regenerated artifact,
routes PATCH schema, gate-check policy passthrough, isConfiguredGateBlocker
(host + engine gate-decision twin), and the example yml. Enforcement lives in
resolveThresholdBacktestAdvisory: off silences the advisory entirely; block
pushes a backtest_regression finding when any comparison is REGRESSED; the
finding only exists in block mode, so advisory stays byte-identical.

Advances #8105.
@JSONbored JSONbored self-assigned this Jul 23, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
loopover-ui 4d05fc5 Commit Preview URL

Branch Preview URL
Jul 23 2026, 07:15 AM

@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@github-actions

Copy link
Copy Markdown
Contributor

Logic backtest

Replayed 0 historical case(s) for linked_issue_scope_mismatch through the base (a6362d5) and head (4d05fc5) versions of its detection logic (corpus checksum 4f53cda18c2b).

Backtest comparison: linked_issue_scope_mismatch

Verdict: unchanged — no comparable axis moved.

Advisory only — this check never blocks merge (#8105).

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 1.91kB (0.03%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
loopover-ui 7.45MB 1.91kB (0.03%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: loopover-ui

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/add-scalar-classes-DoMG1MWf.js (New) 2.17MB 2.17MB 100.0% 🚀
assets/tanstack-vendor-DWvrspw9.js (New) 812.72kB 812.72kB 100.0% 🚀
openapi.json 496 bytes 526.07kB 0.09%
assets/docs.fumadocs-spike-api-reference-CSv30828.js (New) 442.92kB 442.92kB 100.0% 🚀
assets/AgentScalarChatInterface.vue-Rj4bOqW-.js (New) 201.71kB 201.71kB 100.0% 🚀
assets/modal-C_ykDaDf.js (New) 184.38kB 184.38kB 100.0% 🚀
assets/client-BK2rdKEU.js (New) 146.06kB 146.06kB 100.0% 🚀
assets/maintainer-panel-CSrbbPU2.js (New) 78.96kB 78.96kB 100.0% 🚀
assets/tuning-CCQKmR9N.js (New) 65.43kB 65.43kB 100.0% 🚀
assets/ui-vendor-DxlHZDYq.js (New) 57.04kB 57.04kB 100.0% 🚀
assets/routes-QoaWhWEq.js (New) 34.83kB 34.83kB 100.0% 🚀
assets/owner-panel-BtE_YQB5.js (New) 27.36kB 27.36kB 100.0% 🚀
assets/app-D3YZg7E3.js (New) 25.7kB 25.7kB 100.0% 🚀
assets/app.runs-Br8Vq1VK.js (New) 23.56kB 23.56kB 100.0% 🚀
assets/miner-panel-c6XL3IQ4.js (New) 20.25kB 20.25kB 100.0% 🚀
assets/api._op-DpSv1Rxk.js (New) 17.55kB 17.55kB 100.0% 🚀
assets/self-hosting-docs-audit-DFlk9ZWN.js (New) 16.63kB 16.63kB 100.0% 🚀
assets/app.index-vQK-HEeU.js (New) 15.62kB 15.62kB 100.0% 🚀
assets/backtest-calibration-DyNIBk9H.js (New) 14.52kB 14.52kB 100.0% 🚀
assets/playground-panel-BvQMhnt4.js (New) 14.49kB 14.49kB 100.0% 🚀
assets/app.audit-BXobjF2W.js (New) 10.11kB 10.11kB 100.0% 🚀
assets/app.config-generator-CCp5Qkst.js (New) 10.09kB 10.09kB 100.0% 🚀
assets/extension-MKAII5CV.js (New) 10.04kB 10.04kB 100.0% 🚀
assets/fairness-DCrABRKT.js (New) 8.34kB 8.34kB 100.0% 🚀
assets/maintainers-B7GmmqDS.js (New) 8.03kB 8.03kB 100.0% 🚀
assets/miners-a0hcwxbL.js (New) 7.85kB 7.85kB 100.0% 🚀
assets/agents-DijuljGB.js (New) 7.76kB 7.76kB 100.0% 🚀
assets/commands-panel-B1ToX1uW.js (New) 6.65kB 6.65kB 100.0% 🚀
assets/maintainer-workflow-CxEfIpZe.js (New) 6.5kB 6.5kB 100.0% 🚀
assets/roadmap-rmj0kdTU.js (New) 6.33kB 6.33kB 100.0% 🚀
assets/digest-panel-KNxp_Ukv.js (New) 6.18kB 6.18kB 100.0% 🚀
assets/repos._owner._repo.quality-uC94JB5W.js (New) 6.14kB 6.14kB 100.0% 🚀
assets/docs.index-tU3Ub-Pt.js (New) 5.61kB 5.61kB 100.0% 🚀
assets/api.index-DCJTfp8K.js (New) 4.7kB 4.7kB 100.0% 🚀
assets/api-BHxelMfq.js (New) 2.69kB 2.69kB 100.0% 🚀
assets/docs-21XmXJCV.js (New) 2.67kB 2.67kB 100.0% 🚀
assets/app.workbench-CNn7UUeU.js (New) 1.58kB 1.58kB 100.0% 🚀
assets/session-CSiLowQ4.js (New) 1.45kB 1.45kB 100.0% 🚀
assets/tooltip-D5bjJgZ2.js (New) 1.45kB 1.45kB 100.0% 🚀
assets/tabs-BnGIuxAi.js (New) 1.39kB 1.39kB 100.0% 🚀
assets/app.repos-6TGsXLSO.js (New) 1.07kB 1.07kB 100.0% 🚀
assets/input-o7J2b3vV.js (New) 796 bytes 796 bytes 100.0% 🚀
assets/file-cog-D0XPr4N3.js (New) 758 bytes 758 bytes 100.0% 🚀
assets/docs.ai-summaries-C_yv-wU-.js (New) 506 bytes 506 bytes 100.0% 🚀
assets/app.maintainer-C_sbkeFj.js (New) 502 bytes 502 bytes 100.0% 🚀
assets/docs.backtest-calibration-BwfBbQIl.js (New) 499 bytes 499 bytes 100.0% 🚀
assets/docs.branch-analysis-B11bvZWY.js (New) 499 bytes 499 bytes 100.0% 🚀
assets/docs.scoreability-CnAw05o4.js (New) 499 bytes 499 bytes 100.0% 🚀
assets/docs.upstream-drift-CuL8Wwep.js (New) 499 bytes 499 bytes 100.0% 🚀
assets/docs.federated-fleet-intelligence-94bZgX7f.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.maintainer-install-trust-DejINKTb.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-ai-providers-r3yaZhkQ.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-backup-scaling-BjBhv-32.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-configuration-DktHxwW5.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-docs-audit-VyB9dcl3.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-github-app-H0ryS-Xr.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-quickstart-BH345jvi.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-rag-vyMMKVYy.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-rees-7t-pG5RM.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-rees-analyzers-D4UmIeJ8.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-release-checklist-BQJPjWZi.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-releases-DSjujzrv.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-security-BfghHqSy.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-troubleshooting-BwOZjM5O.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-unified-ams-orb-BEDfKLzG.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.ams-config-precedence-D_-Yamz1.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-deployment-DN5uc90k.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-discovery-plane-S1OKDzM_.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-env-reference-DXmFiGFZ.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-fleet-manifest-DMlNbyFx.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-goal-spec-B-Vj2c2j.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-kill-switch-incident-l5YlkISY.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-observability-Gnp91tz-.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-operations-runbook-R6qG4-MT.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-sizing-Bb-2IkPb.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-unattended-scheduling-CUTwaVNw.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.beta-onboarding-BaPX36o3.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.capacity-RawBX8ky.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.maintainer-self-hosting-CA_RKD50.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.mcp-clients-CdaHvOrC.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.owner-checklist-EXV_QpZk.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.quickstart-afDS8Uye.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.github-app-Dtp4gN1B.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.maintainer-workflow-DaH5n89N.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.privacy-security-DxSOZ2sZ.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.troubleshooting-FQXJS9hX.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.tuning-DzMzA6c0.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.loopover-commands-CpbWlMUr.js (New) 494 bytes 494 bytes 100.0% 🚀
assets/sparkles-ByQE1gIm.js (New) 494 bytes 494 bytes 100.0% 🚀
assets/docs.how-reviews-work-DYptYCRv.js (New) 493 bytes 493 bytes 100.0% 🚀
assets/app.owner-ehJSzLzs.js (New) 474 bytes 474 bytes 100.0% 🚀
assets/app.commands-Cd8w5pse.js (New) 455 bytes 455 bytes 100.0% 🚀
assets/app.playground-BW0cAJNb.js (New) 442 bytes 442 bytes 100.0% 🚀
assets/reveal-DPT3z331.js (New) 442 bytes 442 bytes 100.0% 🚀
assets/index-Dq4FohIo.js (New) 438 bytes 438 bytes 100.0% 🚀
assets/app.digest-BxipMTZz.js (New) 430 bytes 430 bytes 100.0% 🚀
assets/eye-off-CXVmEQX4.js (New) 430 bytes 430 bytes 100.0% 🚀
assets/app.miner-Rg545f-a.js (New) 422 bytes 422 bytes 100.0% 🚀
assets/key-round-DyPUz58D.js (New) 355 bytes 355 bytes 100.0% 🚀
assets/bot-C10n2klW.js (New) 328 bytes 328 bytes 100.0% 🚀
assets/trash-2-DfGZsIKE.js (New) 328 bytes 328 bytes 100.0% 🚀
assets/save-N3lRqxPd.js (New) 327 bytes 327 bytes 100.0% 🚀
assets/git-pull-request-arrow-Caj62haE.js (New) 321 bytes 321 bytes 100.0% 🚀
assets/wrench-DOj0GZ0G.js (New) 303 bytes 303 bytes 100.0% 🚀
assets/list-checks-0JT2nP7U.js (New) 279 bytes 279 bytes 100.0% 🚀
assets/shield-Bki2mcUJ.js (New) 272 bytes 272 bytes 100.0% 🚀
assets/workflow-6nU41OET.js (New) 265 bytes 265 bytes 100.0% 🚀
assets/compass-0aMzXRw8.js (New) 251 bytes 251 bytes 100.0% 🚀
assets/history-B4CHExgh.js (New) 237 bytes 237 bytes 100.0% 🚀
assets/activity-CQLlBlR7.js (New) 234 bytes 234 bytes 100.0% 🚀
assets/message-square--Ol9wwM1.js (New) 233 bytes 233 bytes 100.0% 🚀
assets/lock-CVWhoEHL.js (New) 206 bytes 206 bytes 100.0% 🚀
assets/rotate-cw-X7hpSOaX.js (New) 201 bytes 201 bytes 100.0% 🚀
assets/play-lgf9Y0QX.js (New) 190 bytes 190 bytes 100.0% 🚀
assets/circle-check-Bu6zCkJ0.js (New) 178 bytes 178 bytes 100.0% 🚀
assets/search-BbqsRtM4.js (New) 174 bytes 174 bytes 100.0% 🚀
assets/circle-Dy8xb1iV.js (New) 130 bytes 130 bytes 100.0% 🚀
assets/add-scalar-classes-Cro996ng.js (Deleted) -2.17MB 0 bytes -100.0% 🗑️
assets/tanstack-vendor-Co92ayrF.js (Deleted) -812.5kB 0 bytes -100.0% 🗑️
assets/docs.fumadocs-spike-api-reference-DzmmzLoA.js (Deleted) -442.92kB 0 bytes -100.0% 🗑️
assets/AgentScalarChatInterface.vue-BNsFREFu.js (Deleted) -201.71kB 0 bytes -100.0% 🗑️
assets/modal-CCISrDtC.js (Deleted) -184.38kB 0 bytes -100.0% 🗑️
assets/client-EqdphIa1.js (Deleted) -146.06kB 0 bytes -100.0% 🗑️
assets/maintainer-panel-C-PftuNq.js (Deleted) -78.96kB 0 bytes -100.0% 🗑️
assets/tuning-BEpwprKw.js (Deleted) -64.47kB 0 bytes -100.0% 🗑️
assets/ui-vendor-4BlEWomF.js (Deleted) -57.04kB 0 bytes -100.0% 🗑️
assets/routes-VdHyUuR7.js (Deleted) -34.83kB 0 bytes -100.0% 🗑️
assets/owner-panel-C5fmsunt.js (Deleted) -27.33kB 0 bytes -100.0% 🗑️
assets/app-C2-DtuBo.js (Deleted) -25.7kB 0 bytes -100.0% 🗑️
assets/app.runs-Dab8Kpul.js (Deleted) -23.56kB 0 bytes -100.0% 🗑️
assets/miner-panel-C4uPflnX.js (Deleted) -20.25kB 0 bytes -100.0% 🗑️
assets/api._op-B7Frkk7m.js (Deleted) -17.55kB 0 bytes -100.0% 🗑️
assets/self-hosting-docs-audit-Bn4oeDz5.js (Deleted) -16.63kB 0 bytes -100.0% 🗑️
assets/app.index-DemULRlb.js (Deleted) -15.62kB 0 bytes -100.0% 🗑️
assets/playground-panel-Df4WWT-Y.js (Deleted) -14.49kB 0 bytes -100.0% 🗑️
assets/backtest-calibration-pfIEDXy_.js (Deleted) -14.31kB 0 bytes -100.0% 🗑️
assets/app.audit-CKkuKMzI.js (Deleted) -10.11kB 0 bytes -100.0% 🗑️
assets/app.config-generator-Cp62kK3m.js (Deleted) -10.09kB 0 bytes -100.0% 🗑️
assets/extension-DTRILId1.js (Deleted) -10.04kB 0 bytes -100.0% 🗑️
assets/fairness-DeLXrzwB.js (Deleted) -8.34kB 0 bytes -100.0% 🗑️
assets/maintainers-BViN_xls.js (Deleted) -8.03kB 0 bytes -100.0% 🗑️
assets/miners-DoWv1gTE.js (Deleted) -7.85kB 0 bytes -100.0% 🗑️
assets/agents-8oP_ugFL.js (Deleted) -7.76kB 0 bytes -100.0% 🗑️
assets/commands-panel-DV_7aa9D.js (Deleted) -6.65kB 0 bytes -100.0% 🗑️
assets/maintainer-workflow-CuzOAhfv.js (Deleted) -6.5kB 0 bytes -100.0% 🗑️
assets/roadmap-BMhSynGr.js (Deleted) -6.33kB 0 bytes -100.0% 🗑️
assets/digest-panel-EbXmqC3m.js (Deleted) -6.18kB 0 bytes -100.0% 🗑️
assets/repos._owner._repo.quality-Do1OWfma.js (Deleted) -6.14kB 0 bytes -100.0% 🗑️
assets/docs.index-J3ZwzGto.js (Deleted) -5.61kB 0 bytes -100.0% 🗑️
assets/api.index-WG09Qgdk.js (Deleted) -4.7kB 0 bytes -100.0% 🗑️
assets/api-DhSn3L4b.js (Deleted) -2.69kB 0 bytes -100.0% 🗑️
assets/docs-B2EvAfPx.js (Deleted) -2.67kB 0 bytes -100.0% 🗑️
assets/app.workbench-XauEn0wP.js (Deleted) -1.58kB 0 bytes -100.0% 🗑️
assets/session-CtSsz79c.js (Deleted) -1.45kB 0 bytes -100.0% 🗑️
assets/tooltip-Dc2WU0_9.js (Deleted) -1.45kB 0 bytes -100.0% 🗑️
assets/tabs-MA1wJ3Zc.js (Deleted) -1.39kB 0 bytes -100.0% 🗑️
assets/app.repos-U6ZkXQnR.js (Deleted) -1.07kB 0 bytes -100.0% 🗑️
assets/input-D1g1ozvJ.js (Deleted) -796 bytes 0 bytes -100.0% 🗑️
assets/file-cog-DorxsVk7.js (Deleted) -758 bytes 0 bytes -100.0% 🗑️
assets/docs.ai-summaries-BlhOtnlM.js (Deleted) -506 bytes 0 bytes -100.0% 🗑️
assets/app.maintainer-Cu2NqBNi.js (Deleted) -502 bytes 0 bytes -100.0% 🗑️
assets/docs.backtest-calibration-C_BdiMrU.js (Deleted) -499 bytes 0 bytes -100.0% 🗑️
assets/docs.branch-analysis-3wGNUFdE.js (Deleted) -499 bytes 0 bytes -100.0% 🗑️
assets/docs.scoreability-BNOjDHxd.js (Deleted) -499 bytes 0 bytes -100.0% 🗑️
assets/docs.upstream-drift-DhuiHnsB.js (Deleted) -499 bytes 0 bytes -100.0% 🗑️
assets/docs.federated-fleet-intelligence-DFcNE-Xj.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.maintainer-install-trust-D2cYgehw.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-ai-providers-DW1IeWZx.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-backup-scaling-Ds9y6U6P.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-configuration-CEhlPVaL.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-docs-audit-B_FVThOr.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-github-app-Da3Uz8xF.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-quickstart-DiZH_OcC.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-rag-r-tvlqiR.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-rees-BcjHAyeM.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-rees-analyzers-IgxatfIJ.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-release-checklist-BP6k2xFs.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-releases-sGuyURm6.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-security-DAXrGf03.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-troubleshooting-iu39l740.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-unified-ams-orb-DDr04SZS.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-config-precedence-BYNOnDxC.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-deployment-H_sBP0kS.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-discovery-plane-3ag8NX2W.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-env-reference-BBDrMnio.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-fleet-manifest-CBj5_9oM.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-goal-spec-7mSQ0zr9.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-kill-switch-incident-B8XV4PvS.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-observability-BhbTqcMF.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-operations-runbook-D4VUddAT.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-sizing-C-0odyBk.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-unattended-scheduling-Dy-pEjDY.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.beta-onboarding-B4g3DVPJ.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.capacity-efflsbov.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.maintainer-self-hosting-CghYFeVo.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.mcp-clients-BXqISgpn.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.owner-checklist-CAAaWog-.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.quickstart-Dq1QSkns.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.github-app-cONK6A6D.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.maintainer-workflow-DBdYH01k.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.privacy-security-QO1e0VC6.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.troubleshooting-BMVwYapF.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.tuning-ttOMKlia.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.loopover-commands-w5R7Z3UP.js (Deleted) -494 bytes 0 bytes -100.0% 🗑️
assets/sparkles-DNSyXXW7.js (Deleted) -494 bytes 0 bytes -100.0% 🗑️
assets/docs.how-reviews-work-CljLbwbj.js (Deleted) -493 bytes 0 bytes -100.0% 🗑️
assets/app.owner-CuI2AiVl.js (Deleted) -474 bytes 0 bytes -100.0% 🗑️
assets/app.commands-B6KVTSBe.js (Deleted) -455 bytes 0 bytes -100.0% 🗑️
assets/app.playground-Bm5BDoeG.js (Deleted) -442 bytes 0 bytes -100.0% 🗑️
assets/reveal-DVM4DzmS.js (Deleted) -442 bytes 0 bytes -100.0% 🗑️
assets/index-BTZP5W0Z.js (Deleted) -438 bytes 0 bytes -100.0% 🗑️
assets/app.digest-BcpWfhm3.js (Deleted) -430 bytes 0 bytes -100.0% 🗑️
assets/eye-off-DG9HrN_B.js (Deleted) -430 bytes 0 bytes -100.0% 🗑️
assets/app.miner-DHozUwjM.js (Deleted) -422 bytes 0 bytes -100.0% 🗑️
assets/key-round-BgrkTpR-.js (Deleted) -355 bytes 0 bytes -100.0% 🗑️
assets/bot-CV46kPRv.js (Deleted) -328 bytes 0 bytes -100.0% 🗑️
assets/trash-2-Cm0Fp74k.js (Deleted) -328 bytes 0 bytes -100.0% 🗑️
assets/save-DUtPSvOE.js (Deleted) -327 bytes 0 bytes -100.0% 🗑️
assets/git-pull-request-arrow-B3T4J4Tp.js (Deleted) -321 bytes 0 bytes -100.0% 🗑️
assets/wrench-WhsKXGcK.js (Deleted) -303 bytes 0 bytes -100.0% 🗑️
assets/list-checks-CmGOJNMe.js (Deleted) -279 bytes 0 bytes -100.0% 🗑️
assets/shield-Cz18uKTV.js (Deleted) -272 bytes 0 bytes -100.0% 🗑️
assets/workflow-gDokfem_.js (Deleted) -265 bytes 0 bytes -100.0% 🗑️
assets/compass-C1z5var0.js (Deleted) -251 bytes 0 bytes -100.0% 🗑️
assets/history-C39SBWqC.js (Deleted) -237 bytes 0 bytes -100.0% 🗑️
assets/activity-mimdyC7k.js (Deleted) -234 bytes 0 bytes -100.0% 🗑️
assets/message-square-_z92r3s3.js (Deleted) -233 bytes 0 bytes -100.0% 🗑️
assets/lock-sqVFKvU9.js (Deleted) -206 bytes 0 bytes -100.0% 🗑️
assets/rotate-cw-DB4ayAv9.js (Deleted) -201 bytes 0 bytes -100.0% 🗑️
assets/play-D8i8gdck.js (Deleted) -190 bytes 0 bytes -100.0% 🗑️
assets/circle-check-3mACkXlI.js (Deleted) -178 bytes 0 bytes -100.0% 🗑️
assets/search-DKDu-FP5.js (Deleted) -174 bytes 0 bytes -100.0% 🗑️
assets/circle-CJ_1ZE5m.js (Deleted) -130 bytes 0 bytes -100.0% 🗑️

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.06%. Comparing base (a6362d5) to head (4d05fc5).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8162   +/-   ##
=======================================
  Coverage   92.05%   92.06%           
=======================================
  Files         766      766           
  Lines       77761    77772   +11     
  Branches    23485    23494    +9     
=======================================
+ Hits        71586    71597   +11     
  Misses       5062     5062           
  Partials     1113     1113           
Flag Coverage Δ
shard-1 57.10% <75.00%> (+2.42%) ⬆️
shard-2 52.73% <25.00%> (-1.03%) ⬇️
shard-3 53.61% <50.00%> (-0.75%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...ages/loopover-engine/src/advisory/gate-advisory.ts 97.56% <100.00%> (+0.01%) ⬆️
packages/loopover-engine/src/focus-manifest.ts 98.45% <ø> (ø)
src/api/routes.ts 95.27% <ø> (ø)
src/db/repositories.ts 96.73% <100.00%> (+<0.01%) ⬆️
src/db/schema.ts 72.97% <ø> (ø)
src/openapi/schemas.ts 100.00% <ø> (ø)
src/queue/gate-checks.ts 100.00% <ø> (ø)
src/queue/processors.ts 95.73% <100.00%> (+<0.01%) ⬆️
src/rules/advisory.ts 97.96% <100.00%> (+<0.01%) ⬆️
src/signals/focus-manifest.ts 99.58% <100.00%> (+<0.01%) ⬆️
... and 2 more

@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 23, 2026
@loopover-orb

loopover-orb Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Tip

✅ LoopOver review result - approve/merge recommended

Review updated: 2026-07-23 07:29:50 UTC

36 files · 1 AI reviewer · no blockers · readiness 100/100 · CI green · clean

✅ Suggested Action - Approve/Merge

  • safe to merge

Review summary
This wires a new backtestRegressionGateMode (off|advisory|block, default advisory) end-to-end for PR #8105: RepositorySettings + migration 0174, both repository read/write paths, focus-manifest parse/apply, OpenAPI schemas, settings-preview, gate-check-policy passthrough, and both gate-decision twins (host advisory.ts + engine gate-advisory.ts) with matching default-advisory fallbacks. The enforcement logic in resolveThresholdBacktestAdvisory correctly gates on mode before any D1 read/persist for 'off', and only pushes the backtest_regression finding in 'block' mode with a REGRESSED verdict, keeping 'advisory' byte-identical to the shipped pre-#8105 behavior. Test coverage is thorough (off/advisory/block paths, unset-default, storage round-trip, unrecognized-value fallback, gate-check-policy blocker/non-blocker cases).

Nits — 5 non-blocking
  • apps/loopover-ui/content/docs/tuning.mdx's YAML example block lost its original indentation (gate:/settings: children are now flush-left) and several inline comments got split across blank lines (e.g. the hardGuardrailGlobs comment, the settings: comment) — this looks like an unintended formatting regression in the doc's illustrative config, not something tied to the backtestRegression feature; worth fixing so the example still reads as valid nested YAML.
  • src/queue/processors.ts's new `options.advisory` push relies on the caller always passing the same `advisory` object other gate findings are accumulated into — worth a one-line comment or type note confirming that invariant since the resolver itself has no compile-time guarantee findings land in the right advisory.
  • Consider adding a short note in migrations/0174 or a code comment cross-referencing the exact next-migration-number check, since the external brief couldn't fully confirm contiguity against the latest existing migration file.
  • Revert the stray reformatting in tuning.mdx's fenced code block to restore original indentation/comment placement.
  • PR author also opened the linked issue — Link an issue that was opened by a different contributor, or provide a rationale for why this self-authored issue represents genuine discovery work.

Decision drivers

  • ✅ Code review — No blockers (1 reviewer)
  • ✅ Gate result — Passing (No configured blocker found.)
Context & advisory signals — never blocks the verdict
Signal Result Evidence
Linked issue ✅ Linked #8105
Related work ✅ No active overlap found No same-issue or scoped active PR overlap found.
Change scope ✅ 20/20 Low review scope from cached public metadata (1 linked issue).
Validation posture ✅ 25/25 PR body includes validation/test evidence.
Contributor workload ✅ 10/10 Author activity: 14 registered-repo PR(s), 14 merged, 253 issue(s).
Contributor context ✅ Confirmed Gittensor contributor JSONbored; Gittensor profile; 14 PR(s), 253 issue(s).
Improvement ✅ Minor risk: clean · value: minor · LLM: significant
Linked issue satisfaction

Addressed
The PR directly answers #8105's core ask by shipping a config-driven backtestRegressionGateMode (off/advisory/block) wired through the gate pipeline in processors.ts, isConfiguredGateBlocker in both host/engine twins, settings, migrations, docs, and tests, while deliberately defaulting to advisory (no gating) since zero calibration rows exist yet — honoring the issue's explicit do-not-gate-before-

Review context
  • Author: JSONbored
  • Role context: owner (maintainer lane)
  • Public audience mode: oss maintainer
  • Lane context: Repository is configured for direct PR review.
  • Public profile languages: Python, TypeScript, Ruby, Go, JavaScript, MDX, Shell, Solidity
  • Official Gittensor activity: 14 PR(s), 253 issue(s).
  • PR-specific overlap: none found.
Contributor next steps
  • Start here: Treat this as maintainer-lane context rather than normal contributor-lane activity.
Signal definitions
  • Related work = same linked issue, overlapping active PRs, or title/path similarity.
  • Change scope = cached public metadata such as size labels, draft state, and review-burden hints.
  • Validation posture = whether the PR provides enough public validation/test evidence for maintainer review.
  • Contributor workload = public contributor activity and cleanup pressure, not a repo-wide quality failure.
  • Contributor context = public GitHub/Gittensor identity context; non-Gittensor status is not a blocker.
🧪 Chat with LoopOver

Ask LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.

  • @loopover ask &lt;question&gt; answers contribution-quality Q&A with source citations and freshness.
  • @loopover chat &lt;question&gt; answers in natural prose from cached decision-pack facts via local inference (maintainer/collaborator; read-only).
  • A plain-language @loopover mention with a real question is routed to the closest matching read-only command automatically — no exact syntax required.

Full command reference: https://loopover.ai/docs/loopover-commands

🧪 Experimental — new and may change.

Visual preview
Route Viewport Before (production) After (this PR's preview) Diff
/ desktop before /
before /
after /
after /
/ mobile before / (mobile)
before / (mobile)
after / (mobile)
after / (mobile)

Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy.

Scroll preview
Route Before (production) After (this PR's preview)
/ before / (scroll)
before / (scroll)
after / (scroll)
after / (scroll)

A short scroll-through clip (desktop) — click either thumbnail to open the full animation. Evidence for scroll-linked behavior a single screenshot can't show.

🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed


💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →.

Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.

  • Re-run LoopOver review

@loopover-orb loopover-orb Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LoopOver approves — the gate is satisfied and CI is green.

@loopover-orb
loopover-orb Bot merged commit 9c303a6 into main Jul 23, 2026
20 checks passed
@loopover-orb
loopover-orb Bot deleted the feat/backtest-regression-gate branch July 23, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decide + implement whether a REGRESSED backtest verdict should ever gate a merge (Phase 2)

1 participant