Skip to content

feat(calibration): per-repo knob overrides — storage scheme, resolution seam, status listing#8259

Merged
JSONbored merged 1 commit into
mainfrom
feat/per-repo-knob-overrides
Jul 23, 2026
Merged

feat(calibration): per-repo knob overrides — storage scheme, resolution seam, status listing#8259
JSONbored merged 1 commit into
mainfrom
feat/per-repo-knob-overrides

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

What

Epic #8211 track B (#8216): repos can carry individually-earned knob values.

  • Storage: one system_flags key per (knob, repo) — <knob>:repo:<owner/repo> beside the global key. Migration-free on the schemaless flag table; enumerable with one LIKE for the status surface.
  • ONE resolution seam (getKnobOverrideForRepo) with the documented precedence: explicit .loopover.yml setting > per-repo earned > global earned > shipped. Identical loosening-only validation per scope; the knob's autotune flag gates every scope — off restores shipped everywhere instantly. The gate-policy threading gains the repo dimension at all four call sites; the pure twins are untouched.
  • Status: GET /v1/internal/calibration/knobs lists each knob's validated per-repo overrides (sorted, invalid rows excluded) — a lingering row is always visible.
  • Docs: the precedence table on the backtest-calibration page.
  • Evaluation stays global-only by design — the per-repo LOOP is calibration: per-repo loosening evaluation — repos earn overrides on their own evidence #8217, now unblocked.

Validation

Full npm run test:ci green (TEST_CI_EXIT=0, zero failed files); 100% line+branch on the module including the full precedence matrix (repo wins, invalid-repo-row fall-through, flag-off zeroes all scopes).

Closes #8216

…on seam, status listing (#8216)

Epic #8211 track B: repos can now carry individually-earned knob values.

- Storage: one system_flags key per (knob, repo) — <knob>:repo:<owner/repo>
  beside the global key; migration-free on the schemaless flag table and
  enumerable with one LIKE for the status surface.
- ONE resolution seam (getKnobOverrideForRepo) with the documented
  precedence: explicit yml setting > per-repo earned > global earned >
  shipped. Identical loosening-only validation per scope; the knob's
  autotune flag gates every scope — off restores shipped everywhere
  instantly. The gate-policy threading gains the repo dimension at all
  four call sites; the pure twins are untouched (they still consume one
  resolved number).
- GET /v1/internal/calibration/knobs lists each knob's validated per-repo
  overrides, sorted, invalid rows excluded — a lingering row is always
  visible to the operator.
- Docs: the precedence table on the backtest-calibration page.

Evaluation stays global-only by design — the per-repo LOOP is #8217.

Closes #8216
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 23, 2026

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 9d92d3d Commit Preview URL

Branch Preview URL
Jul 23 2026, 03:47 PM

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Bundle Report

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

Detailed changes
Bundle name Size Change
loopover-ui 7.44MB 4.27kB (0.06%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: loopover-ui

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/add-scalar-classes-D6JRte0y.js (New) 2.17MB 2.17MB 100.0% 🚀
assets/tanstack-vendor-rmwHyRxL.js (New) 740.2kB 740.2kB 100.0% 🚀
assets/docs.fumadocs-spike-api-reference-CilzkSkJ.js (New) 442.92kB 442.92kB 100.0% 🚀
assets/AgentScalarChatInterface.vue-CrPc3yH8.js (New) 201.71kB 201.71kB 100.0% 🚀
assets/modal-T3XdvK2d.js (New) 184.38kB 184.38kB 100.0% 🚀
assets/client-BcrwwClT.js (New) 146.06kB 146.06kB 100.0% 🚀
assets/maintainer-panel-BpV67s52.js (New) 78.99kB 78.99kB 100.0% 🚀
assets/ui-vendor-UCUuXtav.js (New) 57.04kB 57.04kB 100.0% 🚀
assets/routes-CSJmTgd_.js (New) 34.98kB 34.98kB 100.0% 🚀
assets/backtest-calibration-55auBfWB.js (New) 28.47kB 28.47kB 100.0% 🚀
assets/owner-panel-CmGMLxsv.js (New) 27.36kB 27.36kB 100.0% 🚀
assets/app-D-HsH-Oa.js (New) 25.7kB 25.7kB 100.0% 🚀
assets/app.runs-w7v3Ev-m.js (New) 23.56kB 23.56kB 100.0% 🚀
assets/miner-panel-hRQvT1az.js (New) 20.28kB 20.28kB 100.0% 🚀
assets/api._op-VlGKWY58.js (New) 17.57kB 17.57kB 100.0% 🚀
assets/self-hosting-docs-audit-Bpu6EVQC.js (New) 16.61kB 16.61kB 100.0% 🚀
assets/app.index-WRQXMH9y.js (New) 15.62kB 15.62kB 100.0% 🚀
assets/docs._slug-BjrBLAj5.js (New) 15.37kB 15.37kB 100.0% 🚀
assets/playground-panel-5spcLF85.js (New) 14.49kB 14.49kB 100.0% 🚀
assets/fairness-wwG8mdjc.js (New) 10.6kB 10.6kB 100.0% 🚀
assets/app.audit-C8JHmJUo.js (New) 10.11kB 10.11kB 100.0% 🚀
assets/app.config-generator-DywikU9g.js (New) 10.09kB 10.09kB 100.0% 🚀
assets/extension-DxhsldYp.js (New) 10.04kB 10.04kB 100.0% 🚀
assets/maintainers-DPuv6LYK.js (New) 8.09kB 8.09kB 100.0% 🚀
assets/miners-B5A4yYLC.js (New) 7.91kB 7.91kB 100.0% 🚀
assets/agents-DtFeA4dL.js (New) 7.8kB 7.8kB 100.0% 🚀
assets/commands-panel-CWeQlAi1.js (New) 6.65kB 6.65kB 100.0% 🚀
assets/maintainer-workflow-CP3qmHTq.js (New) 6.52kB 6.52kB 100.0% 🚀
assets/roadmap-CsDCb4ZX.js (New) 6.33kB 6.33kB 100.0% 🚀
assets/digest-panel-BykrP3lO.js (New) 6.18kB 6.18kB 100.0% 🚀
assets/repos._owner._repo.quality-DXmSigxD.js (New) 6.14kB 6.14kB 100.0% 🚀
assets/docs.index-BINgfvMV.js (New) 5.79kB 5.79kB 100.0% 🚀
assets/docs-nav-D4ayP-42.js (New) 5.59kB 5.59kB 100.0% 🚀
assets/api.index-CMsMW2yP.js (New) 4.7kB 4.7kB 100.0% 🚀
assets/docs-PvOtZJTk.js (New) 2.7kB 2.7kB 100.0% 🚀
assets/api-COtlRSQa.js (New) 2.69kB 2.69kB 100.0% 🚀
assets/docs-page-TVAw6mPb.js (New) 2.1kB 2.1kB 100.0% 🚀
assets/table-BosHzanL.js (New) 1.75kB 1.75kB 100.0% 🚀
assets/app.workbench-DlAVjuAE.js (New) 1.58kB 1.58kB 100.0% 🚀
assets/session-CROFXbY6.js (New) 1.45kB 1.45kB 100.0% 🚀
assets/tooltip-CcOl-_WP.js (New) 1.45kB 1.45kB 100.0% 🚀
assets/tabs-ynLqO_8M.js (New) 1.39kB 1.39kB 100.0% 🚀
assets/app.repos-CPoSHZYb.js (New) 1.07kB 1.07kB 100.0% 🚀
assets/input-CRXrLx2R.js (New) 796 bytes 796 bytes 100.0% 🚀
assets/file-cog-BtKcxoYS.js (New) 758 bytes 758 bytes 100.0% 🚀
assets/app.maintainer-CQU-717r.js (New) 502 bytes 502 bytes 100.0% 🚀
assets/sparkles-Cpqxlwht.js (New) 494 bytes 494 bytes 100.0% 🚀
assets/app.owner-C8nzQNMu.js (New) 474 bytes 474 bytes 100.0% 🚀
assets/app.commands-BYbruw2Y.js (New) 455 bytes 455 bytes 100.0% 🚀
assets/app.playground-DKb5IcL_.js (New) 442 bytes 442 bytes 100.0% 🚀
assets/reveal-6NPQnOk0.js (New) 442 bytes 442 bytes 100.0% 🚀
assets/index-UnjWs-d0.js (New) 438 bytes 438 bytes 100.0% 🚀
assets/app.digest-ByjcRXon.js (New) 430 bytes 430 bytes 100.0% 🚀
assets/eye-off-6Svm9UB6.js (New) 430 bytes 430 bytes 100.0% 🚀
assets/app.miner-BtK6P7V9.js (New) 422 bytes 422 bytes 100.0% 🚀
assets/key-round-Cfm3bHVN.js (New) 355 bytes 355 bytes 100.0% 🚀
assets/bot-COcpFhP_.js (New) 328 bytes 328 bytes 100.0% 🚀
assets/trash-2-B75dbYsZ.js (New) 328 bytes 328 bytes 100.0% 🚀
assets/save-82y3I3gs.js (New) 327 bytes 327 bytes 100.0% 🚀
assets/git-pull-request-arrow-BSx9-1wA.js (New) 321 bytes 321 bytes 100.0% 🚀
assets/wrench-BV00nwFQ.js (New) 303 bytes 303 bytes 100.0% 🚀
assets/list-checks-CAztyQK2.js (New) 279 bytes 279 bytes 100.0% 🚀
assets/shield-Cbekv1ww.js (New) 272 bytes 272 bytes 100.0% 🚀
assets/workflow-DR1oqpK4.js (New) 265 bytes 265 bytes 100.0% 🚀
assets/compass-Dq0K5KLz.js (New) 251 bytes 251 bytes 100.0% 🚀
assets/history-CcweAnqR.js (New) 237 bytes 237 bytes 100.0% 🚀
assets/activity-DwjbitZn.js (New) 234 bytes 234 bytes 100.0% 🚀
assets/message-square-lvgr5_5m.js (New) 233 bytes 233 bytes 100.0% 🚀
assets/lock-BhHYwz_C.js (New) 206 bytes 206 bytes 100.0% 🚀
assets/rotate-cw-C8evH-La.js (New) 201 bytes 201 bytes 100.0% 🚀
assets/play-C4zBebD1.js (New) 190 bytes 190 bytes 100.0% 🚀
assets/circle-check-CUQMkNej.js (New) 178 bytes 178 bytes 100.0% 🚀
assets/search-CZeF9fLY.js (New) 174 bytes 174 bytes 100.0% 🚀
assets/circle-CoiM1DY8.js (New) 130 bytes 130 bytes 100.0% 🚀
assets/add-scalar-classes-CZyBe6NM.js (Deleted) -2.17MB 0 bytes -100.0% 🗑️
assets/tanstack-vendor-Bmq9zl0P.js (Deleted) -740.2kB 0 bytes -100.0% 🗑️
assets/docs.fumadocs-spike-api-reference-CBLdO8yr.js (Deleted) -442.92kB 0 bytes -100.0% 🗑️
assets/AgentScalarChatInterface.vue-DugxleMP.js (Deleted) -201.71kB 0 bytes -100.0% 🗑️
assets/modal-ivehbEGI.js (Deleted) -184.38kB 0 bytes -100.0% 🗑️
assets/client-C2RSWKo-.js (Deleted) -146.06kB 0 bytes -100.0% 🗑️
assets/maintainer-panel-CP1tJKD2.js (Deleted) -78.99kB 0 bytes -100.0% 🗑️
assets/ui-vendor-CscdDd5Z.js (Deleted) -57.04kB 0 bytes -100.0% 🗑️
assets/routes-CJai1YCr.js (Deleted) -34.98kB 0 bytes -100.0% 🗑️
assets/owner-panel-ZU34z8xi.js (Deleted) -27.36kB 0 bytes -100.0% 🗑️
assets/app-DJjc_MCd.js (Deleted) -25.7kB 0 bytes -100.0% 🗑️
assets/backtest-calibration-DiK-ileJ.js (Deleted) -24.2kB 0 bytes -100.0% 🗑️
assets/app.runs-BDGoDw1k.js (Deleted) -23.56kB 0 bytes -100.0% 🗑️
assets/miner-panel-CQJnTllh.js (Deleted) -20.28kB 0 bytes -100.0% 🗑️
assets/api._op-DHD9Oe79.js (Deleted) -17.57kB 0 bytes -100.0% 🗑️
assets/self-hosting-docs-audit-CmedtBk3.js (Deleted) -16.61kB 0 bytes -100.0% 🗑️
assets/app.index-DJjrIxre.js (Deleted) -15.62kB 0 bytes -100.0% 🗑️
assets/docs._slug-AwJnAcG8.js (Deleted) -15.37kB 0 bytes -100.0% 🗑️
assets/playground-panel-HhACiuaC.js (Deleted) -14.49kB 0 bytes -100.0% 🗑️
assets/fairness-Blj3EVNw.js (Deleted) -10.6kB 0 bytes -100.0% 🗑️
assets/app.audit-CVlY8pmX.js (Deleted) -10.11kB 0 bytes -100.0% 🗑️
assets/app.config-generator-DxI05zrz.js (Deleted) -10.09kB 0 bytes -100.0% 🗑️
assets/extension-CxicDZ92.js (Deleted) -10.04kB 0 bytes -100.0% 🗑️
assets/maintainers-CSrOnrOF.js (Deleted) -8.09kB 0 bytes -100.0% 🗑️
assets/miners-D-J-t3iJ.js (Deleted) -7.91kB 0 bytes -100.0% 🗑️
assets/agents-hD-moQT7.js (Deleted) -7.8kB 0 bytes -100.0% 🗑️
assets/commands-panel-CRJDf8zz.js (Deleted) -6.65kB 0 bytes -100.0% 🗑️
assets/maintainer-workflow-Z7IpXcbE.js (Deleted) -6.52kB 0 bytes -100.0% 🗑️
assets/roadmap-BV2P1TuK.js (Deleted) -6.33kB 0 bytes -100.0% 🗑️
assets/digest-panel-DHeESTpp.js (Deleted) -6.18kB 0 bytes -100.0% 🗑️
assets/repos._owner._repo.quality-COPejAUn.js (Deleted) -6.14kB 0 bytes -100.0% 🗑️
assets/docs.index-Dn61qEqy.js (Deleted) -5.79kB 0 bytes -100.0% 🗑️
assets/docs-nav-BQQucfyv.js (Deleted) -5.59kB 0 bytes -100.0% 🗑️
assets/api.index-BphmEexd.js (Deleted) -4.7kB 0 bytes -100.0% 🗑️
assets/docs-CY29U39R.js (Deleted) -2.7kB 0 bytes -100.0% 🗑️
assets/api-BA-LpT6M.js (Deleted) -2.69kB 0 bytes -100.0% 🗑️
assets/docs-page-D7rnFihT.js (Deleted) -2.1kB 0 bytes -100.0% 🗑️
assets/table-C9ryAS5Z.js (Deleted) -1.75kB 0 bytes -100.0% 🗑️
assets/app.workbench-CNCqNu3o.js (Deleted) -1.58kB 0 bytes -100.0% 🗑️
assets/session-li1FSBo9.js (Deleted) -1.45kB 0 bytes -100.0% 🗑️
assets/tooltip-DNuXWdoI.js (Deleted) -1.45kB 0 bytes -100.0% 🗑️
assets/tabs-CzeT1yKr.js (Deleted) -1.39kB 0 bytes -100.0% 🗑️
assets/app.repos-xKNsU2V5.js (Deleted) -1.07kB 0 bytes -100.0% 🗑️
assets/input-BRzR9aAe.js (Deleted) -796 bytes 0 bytes -100.0% 🗑️
assets/file-cog-r5rSziEq.js (Deleted) -758 bytes 0 bytes -100.0% 🗑️
assets/app.maintainer-NChDMA-O.js (Deleted) -502 bytes 0 bytes -100.0% 🗑️
assets/sparkles-DDhWx29t.js (Deleted) -494 bytes 0 bytes -100.0% 🗑️
assets/app.owner-DubwCx2j.js (Deleted) -474 bytes 0 bytes -100.0% 🗑️
assets/app.commands-Dxv0vIHv.js (Deleted) -455 bytes 0 bytes -100.0% 🗑️
assets/app.playground-dBiOoUg6.js (Deleted) -442 bytes 0 bytes -100.0% 🗑️
assets/reveal-jqqesvPl.js (Deleted) -442 bytes 0 bytes -100.0% 🗑️
assets/index-Caa9fqTZ.js (Deleted) -438 bytes 0 bytes -100.0% 🗑️
assets/app.digest-DsqVBA2S.js (Deleted) -430 bytes 0 bytes -100.0% 🗑️
assets/eye-off-BOgyU4TZ.js (Deleted) -430 bytes 0 bytes -100.0% 🗑️
assets/app.miner-Oxdxkupb.js (Deleted) -422 bytes 0 bytes -100.0% 🗑️
assets/key-round-qZOdRUUH.js (Deleted) -355 bytes 0 bytes -100.0% 🗑️
assets/bot-DTIOa7gC.js (Deleted) -328 bytes 0 bytes -100.0% 🗑️
assets/trash-2-_IUz4w1T.js (Deleted) -328 bytes 0 bytes -100.0% 🗑️
assets/save-DwfYTQUT.js (Deleted) -327 bytes 0 bytes -100.0% 🗑️
assets/git-pull-request-arrow-B_L_mvex.js (Deleted) -321 bytes 0 bytes -100.0% 🗑️
assets/wrench-Ky98vut-.js (Deleted) -303 bytes 0 bytes -100.0% 🗑️
assets/list-checks-PKqYf1vE.js (Deleted) -279 bytes 0 bytes -100.0% 🗑️
assets/shield-Cz8chWMn.js (Deleted) -272 bytes 0 bytes -100.0% 🗑️
assets/workflow-Du1EQDbz.js (Deleted) -265 bytes 0 bytes -100.0% 🗑️
assets/compass-Cab0Q16j.js (Deleted) -251 bytes 0 bytes -100.0% 🗑️
assets/history-D8iXmlKt.js (Deleted) -237 bytes 0 bytes -100.0% 🗑️
assets/activity-nCGW5St2.js (Deleted) -234 bytes 0 bytes -100.0% 🗑️
assets/message-square-Cix9Lzy2.js (Deleted) -233 bytes 0 bytes -100.0% 🗑️
assets/lock-CfZT3Lr5.js (Deleted) -206 bytes 0 bytes -100.0% 🗑️
assets/rotate-cw-D84PCxxQ.js (Deleted) -201 bytes 0 bytes -100.0% 🗑️
assets/play-vvDRKs_5.js (Deleted) -190 bytes 0 bytes -100.0% 🗑️
assets/circle-check-CuygVZ_K.js (Deleted) -178 bytes 0 bytes -100.0% 🗑️
assets/search-B_eBPZQb.js (Deleted) -174 bytes 0 bytes -100.0% 🗑️
assets/circle-BqJ0rIBn.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 91.61%. Comparing base (8e34212) to head (9d92d3d).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8259      +/-   ##
==========================================
- Coverage   92.14%   91.61%   -0.53%     
==========================================
  Files         785      785              
  Lines       78715    78728      +13     
  Branches    23759    23759              
==========================================
- Hits        72531    72129     -402     
- Misses       5062     5524     +462     
+ Partials     1122     1075      -47     
Flag Coverage Δ
shard-1 50.88% <83.33%> (-0.58%) ⬇️
shard-2 55.14% <16.66%> (-0.69%) ⬇️
shard-3 54.27% <27.77%> (-0.59%) ⬇️

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

Files with missing lines Coverage Δ
src/queue/processors.ts 95.73% <100.00%> (ø)
src/services/knob-loosening-run.ts 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

@JSONbored
JSONbored merged commit 180cef7 into main Jul 23, 2026
17 checks passed
@JSONbored
JSONbored deleted the feat/per-repo-knob-overrides branch July 23, 2026 15:57
@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 23, 2026
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.

calibration: per-repo knob overrides — storage scheme, resolution seam, and full settings wiring

1 participant