Skip to content

fix: register /admin/calibration route + post-migration verification - #35

Merged
criptogus merged 1 commit into
mainfrom
claude/vigilant-clarke-TMUjV
May 29, 2026
Merged

criptogus merged 1 commit into
mainfrom
claude/vigilant-clarke-TMUjV

Conversation

@criptogus

Copy link
Copy Markdown
Owner

Post-migration verification (after the user applied the Trust v2 + judge-telemetry migrations in Lovable)

Cross-checked code ↔ schema and found one gap, fixed here.

✅ Verified correct

  • All columns the code reads exist in the applied migrations:
    • package_trust_scores: trust_version, confidence, verified, dim_safety, dim_competence, dim_freshness, dim_coverage ✓
    • adversarial_runs: judge_model, judge_cases, judge_overrides, judge_agreement, judge_kappa ✓
    • package_evaluations.judge_calibration (older migration, idempotent) ✓
  • recompute_trust_scores_v2() defined + nightly cron scheduled ✓

🔧 Fixed in this PR

  • /admin/calibration was missing from src/routeTree.gen.ts (committed without regenerating). Registered it (mirrors admin.funnel) so the calibration dashboard resolves even if the build doesn't regenerate routes. Parity verified (8 = 8 refs), syntax checked.

⚠️ Non-migration steps still needed (DB migration alone doesn't do these)

  1. bun run sync:content — the 3 new + 38 updated skills are files; they must be synced to the registry to appear in the marketplace and enter the Forge pipeline.
  2. Run select public.recompute_trust_scores_v2(); once — to backfill Trust v2 now instead of waiting for the 03:17 cron. (Until adversarial runs exist, packages correctly show Unverified — by design.)
  3. The calibration dashboard is empty until judged adversarial runs exist — trigger one via the dashboard's "Run judged eval".

https://claude.ai/code/session_01BnYrQNoKNNxPCSmV2suWna


Generated by Claude Code

The route file shipped but routeTree.gen.ts was committed without regenerating,
so the calibration dashboard would 404 unless the build regenerates routes.
Wire it in (mirrors admin.funnel) so it resolves regardless of the build path.
@criptogus
criptogus marked this pull request as ready for review May 29, 2026 23:38
@criptogus
criptogus merged commit 1109a0e into main May 29, 2026
1 check 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.

2 participants