Repository navigation
0.19.0
Agents can ask typed questions through ctx.decide (D37) — answered with probabilities by TypeSafe's Jev, a new decisions AI provider scope, or by the chat model — recorded per run, scored by evals and shown on the run page.
ctx.decide(key, { state, questions }),ctx.decide.sift,ctx.decide.pickonAgentContextand the pluginAgentCtx; recorded once per(run, key)inagent_run_decisionsand replayed on a retry.- New AI scope
decisionsand providertypesafe(Settings → AI, with a Test button); platform secretTYPESAFE_API_KEY; without either, the chat model answers on prompt keyagent-decide, recordedllm_self_report. resolveDecisionsinservices/ai/resolve.ts; readiness gainsdecisionsand the sourcefallback.- New run event type
decision, projected to AG-UI askit.agent.decision;GET /api/agents/runs/:idreturnsdecisions[]; the run timeline shows a Decided row. ctx.prompt(vars, promptKey?)may resolve another registry prompt.- New example agent
triage-research(screen → triage → answer, "not covered", or escalate toresearch-topic) with an eval suite. - Evals:
expected.decisionsonEvalCase,DecisionJudge,decisionScore(accuracy + Brier). - Retrieval: the lexical half of
searchChunksmatches ANY query word (ranked byts_rank_cd) instead of ALL of them, so a question typed as a sentence finds passages by its key terms. - Fix: the Run modal's schema-generated form (any agent with no hand-written form) remounted its fields on every keystroke, losing focus;
RunAgentModalnow builds the form once. - Why:
docs/CONCEPTS.md§9, "Decisions (D37)". scripts/lib/kit-manifest.mjs→ the kit contract's optionallaunchProvides.oidc.callbackPath(default/auth/oidc/callback) andsignedOutPath(default/login?signedOut=1) must each be a path on the app's origin: one leading/, no scheme, host, whitespace or#(launch-kit 0.1.4).
Porting note: docs/upgrades/0.19.0.md — pnpm kit:upgrade or /rf-upgrade in a copy.
Full changelog: 0.18.1...0.19.0