Context Debug
Context Debug explains why the bundle contains current results.
What You Can Inspect
- Active persona and recommended persona
- Recommendation reasons and confidence
- Global rule routing mode and selected rules
- Active Work candidates with score breakdown
- Retrieval score breakdown (FTS/vector + boosts)
- Token budget allocations across sections
- Active Work policy (
stale_days,auto_close)
Context Bundle Debug Contract
Use:
GET /v1/context/bundle?...&mode=debug
Debug includes:
persona_appliedpersona_recommendedweight_adjustmentsactive_work_candidatesactive_work_policytoken_budget
Overrides
From Admin UI Context Debug:
- Apply recommended persona (manual action)
- Confirm/Pin active work
- Close/Reopen active work
These controls are intentionally explicit to keep automation transparent and admin-controlled.