Skip to content

fix(admin): point calibration dashboard at this brain's holder (brain, not garry)#40

Merged
spinsirr merged 1 commit into
mainfrom
fix/calibration-holder-brain
Jun 27, 2026
Merged

fix(admin): point calibration dashboard at this brain's holder (brain, not garry)#40
spinsirr merged 1 commit into
mainfrom
fix/calibration-holder-brain

Conversation

@spinsirr

Copy link
Copy Markdown
Collaborator

The Calibration panel showed Cold start / No profile despite a real profile existing.

Root cause: gbrain's /admin/api/calibration/profile (+ chart endpoints) default the holder to garry (its personal-brain origin). This team brain holds its calibration profile under brain (the take-extractor default — no people/garry here), so the dashboard read an empty garry profile.

Fix: adminConfig.calibrationHolder (env ADMIN_CALIBRATION_HOLDER, default brain); adminFetch injects it on the profile endpoint when no holder is given, adminFetchChart sets it on the chart SVGs.

Verified: typecheck clean, vitest 71 pass, next build ok. Server-only lib change; no client/secret surface touched. Deploys to gbrain-ui on merge.

…lways garry)

The admin calibration panel showed "Cold start / No profile" even though a
profile exists. gbrain's `/admin/api/calibration/profile` (and the chart
endpoints) default the holder to `garry` (its personal-brain origin), but this
team brain holds its calibration profile under `brain` (the take-extractor
default — there is no people/garry here). So the dashboard was reading an empty
garry profile.

adminConfig gains `calibrationHolder` (env ADMIN_CALIBRATION_HOLDER, default
`brain`); adminFetch injects it on the calibration profile endpoint when the
caller didn't specify a holder, and adminFetchChart sets it on the SVG chart
endpoints. typecheck + vitest (71) + next build all green.

Co-Authored-By: Zypher Agent <zypher@corespeed.io>
@spinsirr spinsirr force-pushed the fix/calibration-holder-brain branch from 9126379 to b4b6600 Compare June 27, 2026 23:17
@spinsirr spinsirr merged commit c5ac17f into main Jun 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant