You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Agentic Kit already indexes machine-local Claude Code, Codex, and OpenCode activity and presents model, provider, token, cost, session, and routing information in the Dashboard. It can currently identify broad patterns such as premium models handling short sessions, but it cannot yet answer the higher-value questions:
Which models are demonstrably effective for each operation?
Where did a premium model materially improve quality, reduce rework, or prevent escalation?
Which operations could have used a cheaper model for materially equivalent benefit?
Is a routing change actually saving money or plan capacity after retry and escalation overhead?
This proposal adds Route Intelligence: an evidence-backed, local-first learning and findings layer that derives operation outcomes from cross-host transcripts, structured ak run results, deterministic quality gates, reviewer evidence, and user feedback. It uses Ruflo's real MetaHarness-backed model-routing and outcome-learning surfaces to produce per-activity recommendations, while keeping the Dashboard read-only and refusing to make claims when the evidence is insufficient or confounded.
The desired product outcome is a clear Dashboard finding such as:
Cheaper equivalent found for documentation
The lower-cost route stayed within the configured quality tolerance across comparable operations and reduced API-equivalent cost. Evidence: N matched operations, P paired evaluations, no increase in repair or escalation rate.
All numbers in the shipped interface must come from the user's own evidence. The example above is illustrative, not a measured claim.
src/lib/usage-index.mjs incrementally indexes Claude Code, Codex, and OpenCode session evidence and aggregates model, host, provider, tokens, observed/API-equivalent cost, duration, and tool usage.
src/lib/usage-opencode.mjs preserves OpenCode's observed provider, model, token, and metered-cost evidence instead of repricing unknown providers from assumptions.
src/lib/usage-classify.mjs classifies sessions into operational categories with explicit confidence and a first-class Unclassified result.
src/lib/usage-insights.mjs emits ranked Dashboard findings, including premium-on-routine and model-routing.
src/lib/routing.mjs owns the canonical per-activity routing vocabulary and effective host/model routes.
ak run produces structured activity, host, model, duration, status, handoff, and bounded escalation evidence.
The Dashboard already has a Usage → Findings destination and a read-only routing view.
The governing plans are living and must remain accurate:
ADR-0009 is Implemented (2026-07-25; updated 2026-08-04). It owns local transcript analytics, the offline-first Usage contract, graded findings, cost truthfulness, and the three-area Dashboard structure.
ADR-0021 is Accepted (2026-07-31; updated 2026-08-03). It requires execution host, inference provider, provider provenance, and model to remain independent facts.
This feature should extend those contracts. It should not create a fourth Dashboard area, add network activity to ordinary Dashboard reads, infer providers from hosts or model names, or silently turn a heuristic into a learned-routing claim.
Problem statement
The current findings can identify expensive-looking shapes, but session duration and response count are not evidence that a cheaper model would have delivered the same result. Historical routing is also confounded: harder tasks are disproportionately assigned to stronger models, and different hosts expose different prompts, tools, permissions, and harness behavior.
Therefore, transcripts alone can answer what happened, but they cannot automatically establish the counterfactual what would have happened on another model.
The feature needs an evidence model that:
identifies a bounded operation more precisely than an entire interactive session;
separates model, host, provider, reasoning effort, and harness version;
attaches quality outcomes with provenance and confidence;
compares like with like;
verifies high-value recommendations through paired or prospective evidence;
includes retry, repair, escalation, latency, cash cost, and plan pressure in the final result; and
stays silent when a recommendation would be speculative.
Goals
Learn model effectiveness by canonical activity, repository, task shape, complexity, and harness version.
Identify cheaper candidates that are non-inferior within an explicit quality tolerance.
Identify operations where the premium model earns its cost through better quality, fewer repairs, or lower escalation.
Quantify the net effect of cheap-first cascades after fallback overhead.
Surface findings with evidence count, evidence grade, uncertainty, cost basis, and actionable routing commands.
Feed qualified outcomes to Ruflo's real MetaHarness-backed routing loop rather than building a private substitute.
Preserve local-first, rebuildable historical analytics and explicit opt-in for any metered replay or learning write.
Non-goals
Producing a universal public model leaderboard.
Claiming causal equivalence from one successful session.
Treating host, provider, vendor, model, or billing mode as interchangeable.
Sending transcript content to a remote service during normal Dashboard reads.
Automatically rewriting kit.json routing policy from a finding.
Replacing Agentic-QE with transcript sentiment or an assistant's self-reported completion.
Treating API-equivalent cost as subscription billing.
Joining OpenRouter account-level analytics to sessions when the upstream data has no correlation key.
Building another local model router and naming it MetaHarness.
Product principles
No fabricated counterfactuals. A recommendation names the evidence class that supports it.
Quality before price. The selector finds the cheapest candidate that clears the activity's quality bar; it does not merely choose the cheapest model.
Unknown is not zero. Missing cost, provider, quality, or outcome remains unknown.
Model is not harness. Every episode carries a harness fingerprint so a prompt/tooling improvement is not misattributed to the model.
Provider is not host. ADR-0021 provenance remains authoritative.
Read-only findings. The Dashboard explains and offers a copyable command; policy mutation remains an explicit CLI action.
Confidence is visible. Sample size, matching quality, evidence grade, uncertainty, and freshness are part of the finding.
No recommendation is a valid result. Insufficient, stale, or confounded evidence produces a diagnostic, not a guess.
Proposed domain design
Bounded context
Add a Model Intelligence bounded context between Historical Usage and Routing Policy:
Historical Usage ──derived evidence──▶ Model Intelligence ──recommendation──▶ Routing Policy
│ │ │
└──────── transcript/session link ─────┘ └── explicit user action
Historical interactive sessions may yield coarse, low-confidence episodes. Structured ak run workers should yield activity-bounded episodes with stronger identity and outcome evidence.
Outcome evidence
Quality is a composition of observed signals, not a single assistant-generated score:
Signal
Strength
Notes
Deterministic build/test/release gate
Strong
Artifact-backed and reproducible
Agentic-QE test, coverage, mutation, security, or a11y verdict
Strong
Measured quality evidence
Independent reviewer verdict
Strong
Must identify reviewer model/harness separately
Explicit user acceptance or rejection
Strong
Subjective but authoritative for utility
Later repair, revert, regression, or reopened task
Strong negative
Requires a bounded attribution window
Retry or model escalation
Medium negative
Initial route did not complete under the same contract
Successful worker protocol/handoff
Medium
Completion evidence, not correctness by itself
Session ended without an error
Weak
Never sufficient for equivalence
Assistant says “done”
None
Must not train or justify a recommendation alone
Every signal carries source, timestamp, scope, and provenance. Conflicting signals remain visible rather than being silently averaged away.
Evidence grades
Grade
Meaning
Allowed product language
Insufficient
Too little, stale, or conflicting evidence
“No recommendation yet”
Observed
Descriptive statistics from historical episodes
“Model X was used successfully…”
Correlated
Matched historical cohorts with bounded confounding
“Model X is associated with…”
Verified
Paired evaluation against the same fixture and gates
“Model X matched the incumbent within tolerance…”
Proven in routing
Prospective cheap-first route with measured escalation overhead
“This route saved capacity/cost while maintaining the quality bar…”
The UI must never promote an Observed or Correlated result to Verified language.
Cost and capacity model
“Cheaper” has at least three independent meanings:
Observed cash cost — provider-reported metered spend when available.
API-equivalent cost — dated pricing applied to transcript tokens, explicitly not plan billing.
Subscription capacity pressure — effect on independent host limits, resets, and available headroom.
Recommendations must identify the basis they optimize. A subscription-backed model may have zero marginal cash cost while still consuming scarce plan capacity. Unknown cost stays unknown; no fallback price may manufacture a dollar saving.
Transcript-derived historical episodes are rebuildable projections alongside the existing usage index.
Qualified routing decisions and outcomes use Ruflo's real trajectory/outcome-learning surface (including .swarm/model-router-trajectories.jsonl where enabled), not a second private learning store.
AgentDB project memory stores accepted decisions and learned project patterns; it is not used as a substitute for the rebuildable Dashboard index.
The Dashboard API exposes aggregate evidence and bounded references, never raw task embeddings or unmasked transcript content.
Learning and recommendation method
Historical matched cohorts
Group episodes by:
canonical activity;
repository and optional project family;
task embedding/fingerprint similarity;
complexity bucket and relevant features;
harness fingerprint and tool availability;
time window/model generation; and
quality-evidence availability.
Compare models only after matching on these dimensions. Use shrinkage or confidence intervals so thin cohorts regress toward “unknown,” not an extreme recommendation. Report balance diagnostics and exclude cohorts whose model assignment remains strongly confounded by task difficulty.
Historical matching is useful for discovery and prioritizing experiments. It is not sufficient for a high-confidence “same benefit” claim.
Paired evaluation
For eligible read-only, deterministic, or safely sandboxed tasks:
Freeze the task fixture, harness, tools, inputs, and quality gates.
Run the incumbent and candidate model independently.
Grade both with the same deterministic and Agentic-QE evidence.
Compare quality, latency, token use, cash/API-equivalent cost, and repair burden.
Persist the paired provenance and outcome.
Paired replay is explicit opt-in when it consumes a provider API, duplicates meaningful work, or sends repository evidence to another vendor. Subscription execution remains the default where supported, but it still consumes plan allowance and must be described honestly.
Prospective cheap-first cascades
After Verified evidence exists, allow an opt-in route experiment:
select the cheaper candidate for eligible operations;
apply the normal gate;
escalate through the configured bounded ladder on an eligible failure;
include both attempts in the episode; and
compute net value after escalation cost and latency.
The relevant metric is not “cheap-model success rate” alone. It is:
net route value = accepted quality
− initial-route cost/capacity
− escalation cost/capacity
− repair/retry burden
− latency penalty
Recommendation rule
Recommend a cheaper candidate only when:
the activity has enough qualified evidence;
the candidate's conservative quality bound is within the configured non-inferiority tolerance of the incumbent;
the result survives matching or paired/prospective validation;
retry, repair, and escalation do not erase the benefit;
cost/capacity basis is known and shown;
the evidence is fresh for the current model and harness versions; and
uncertainty is below the configured ceiling.
Selection should use Ruflo's MetaHarness-backed router semantics: predict candidate quality and choose the cheapest candidate clearing the quality bar, with the active subscription/headroom policy applied as a separate overlay.
User interactions and scenarios
Scenario 1 — Discover a cheaper equivalent
The user opens Dashboard → Usage → Findings.
A “Cheaper equivalent found” card names the activity, incumbent, candidate, estimated effect, cost basis, evidence grade, sample count, and freshness.
ak host pick --route 'documentation:codex:gpt-5.3-codex'
The Dashboard does not execute the command or modify policy.
Scenario 2 — Confirm that a premium model earns its place
The user sees that architecture or security-analysis work has a materially better gate/review outcome and lower rework rate on the premium route. The finding recommends keeping the current route and explains the evidence rather than presenting all premium usage as waste.
Scenario 3 — Measure a cheap-first cascade
The user enables a bounded experiment for documentation. The lower tier completes most eligible work, some attempts escalate, and the finding reports the net capacity/cost effect after those escalations.
Scenario 4 — Refuse to guess
The testing activity has many sessions but few artifact-backed outcomes. The Dashboard says “Insufficient quality evidence” and identifies what would improve confidence, such as recording test/QE verdicts from ak run.
Scenario 5 — Separate harness improvement from model improvement
Quality rises after a prompt/tool-policy or harness change across several models. The finding attributes the change to the harness cohort and avoids recommending a model switch.
Scenario 6 — Respect subscription headroom
Claude and Codex candidates have similar measured quality. One host is near its weekly limit while the other has headroom. The recommendation explains that it optimizes capacity pressure, not cash billing, and remains bounded to the current limit window.
Scenario 7 — Inspect evidence from an individual operation
From a finding, the user can navigate to the relevant retained session/operation evidence when available. Transcript access continues to use the existing masked, selected-session content plane; aggregate APIs do not acquire transcript bodies.
Dashboard experience
Keep the existing three primary areas and extend Usage → Findings. Add a “Model fit” filter or finding family, not a fourth primary area.
Recommended finding types:
Cheaper equivalent found — candidate clears the quality bar with Correlated, Verified, or Proven evidence.
Premium route justified — stronger model materially improves quality or reduces repair/escalation.
Cheap-first cascade working — net benefit remains positive after escalation.
Escalation tax erased the saving — cheap-first routing costs more or delays work after retries.
Harness change drove the gain — improvement is shared across models.
Evidence drift — recommendation was learned on stale model/harness versions.
Each card should show:
activity and project scope;
incumbent and candidate host/provider/model identities;
recommendation status and evidence grade;
quality metric and non-inferiority tolerance;
matched, paired, and prospective sample counts;
cost/capacity basis and estimated net effect;
retry, repair, and escalation rates;
freshness/model/harness versions;
“Why this finding?” evidence disclosure;
exact copyable route command where actionable; and
“No $ claimed” when cost is unknown or the finding is capacity-only.
A secondary activity × model matrix may show sample count, gate pass rate, rework rate, escalation rate, latency, cost/capacity, and evidence grade. It must not collapse hosts or providers into model names.
Phased technical implementation plan
Phase 0 — Specification, ADR, and domain contract
Deliverables
Add a new Proposed ADR for Model Intelligence.
Extend docs/ddd/ubiquitous-language.md and docs/ddd/context-map.md with OperationEpisode, OutcomeEvidence, HarnessFingerprint, EvidenceGrade, and RouteRecommendation.
Define quality bars, non-inferiority tolerances, minimum evidence, staleness, and attribution windows as explicit policy.
Define the privacy boundary and opt-in write/replay modes.
Record how the new context amends ADR-0009 and relies on ADR-0021 without changing their current status prematurely.
Exit gate
Accepted schema and evidence vocabulary.
No contradiction with the implemented Dashboard/Usage contract.
Representative episode fixtures for all three hosts.
Phase 1 — Read-only historical episode projection
Likely files
src/lib/usage-index.mjs
src/lib/usage-opencode.mjs
src/lib/usage-classify.mjs
new pure modules under src/lib/model-intelligence/
transcript fixtures and usage-index tests
Deliverables
Derive coarse episodes from completed Claude, Codex, and OpenCode sessions.
Carry host, provider provenance, model, reasoning effort when observed, project/revision, activity confidence, usage, duration, and harness fingerprint.
Bump the usage-index schema when persisted record shape changes.
Produce a rebuildable local projection with coverage and missing-evidence diagnostics.
Exit gate
Historical projection is deterministic and idempotent.
Unknown fields remain unknown.
OpenRouter account analytics remains outside session/model outcomes without a correlation key.
No learned recommendations appear yet.
Phase 2 — Prospective ak run outcome instrumentation
Likely files
src/commands/run.mjs
src/lib/execution/runner.mjs
src/lib/execution/schema.mjs
src/lib/execution/handoff.mjs
Ruflo outcome/trajectory integration seam
Deliverables
Emit activity-bounded episodes for each worker and attempt.
Record selected route, harness fingerprint, structured result, duration, handoff, retry/escalation trail, and gate references.
Attach deterministic and Agentic-QE evidence when available.
Write qualified decisions/outcomes through Ruflo's actual trajectory/outcome-learning surface behind an explicit learning-write opt-in.
Preserve subscription execution as the default; do not request provider keys for normal runs.
Exit gate
One successful, one failed, and one escalated worker produce complete, provenance-correct episodes.
Permission/auth/orphaned states never become quality failures or trigger unsafe replay.
Duplicate/replayed subagent evidence is not double-counted.
Phase 3 — Evidence evaluator and matched cohorts
Likely files
new pure matching/statistics modules under src/lib/model-intelligence/
src/lib/usage-insights.mjs
focused unit and property tests
Deliverables
Match episodes by activity, project/task similarity, complexity, harness, tools, and time/model generation.
ruflo/v3/@claude-flow/cli/src/ruvector/neural-router.ts — cost-optimal candidate selection, per-model predicted quality, quality bar, alternatives, calibration, uncertainty, and backend provenance.
ruflo/v3/@claude-flow/cli/src/commands/neural.ts — router trajectory collection, training from trajectories, cost/counterfactual statistics, and operator inspection surfaces.
ruflo/v3/@claude-flow/cli/src/mcp-tools/hooks-tools.ts — structured task success/quality feedback and learning persistence.
These are the real upstream learning/routing surfaces this feature should integrate. If a required upstream contract is missing, the implementation should expose that dependency rather than silently replacing it with an Agentic Kit heuristic.
Executive brief
Agentic Kit already indexes machine-local Claude Code, Codex, and OpenCode activity and presents model, provider, token, cost, session, and routing information in the Dashboard. It can currently identify broad patterns such as premium models handling short sessions, but it cannot yet answer the higher-value questions:
This proposal adds Route Intelligence: an evidence-backed, local-first learning and findings layer that derives operation outcomes from cross-host transcripts, structured
ak runresults, deterministic quality gates, reviewer evidence, and user feedback. It uses Ruflo's real MetaHarness-backed model-routing and outcome-learning surfaces to produce per-activity recommendations, while keeping the Dashboard read-only and refusing to make claims when the evidence is insufficient or confounded.The desired product outcome is a clear Dashboard finding such as:
All numbers in the shipped interface must come from the user's own evidence. The example above is illustrative, not a measured claim.
Table of contents
Background and current state
The foundation is already substantial:
src/lib/usage-index.mjsincrementally indexes Claude Code, Codex, and OpenCode session evidence and aggregates model, host, provider, tokens, observed/API-equivalent cost, duration, and tool usage.src/lib/usage-opencode.mjspreserves OpenCode's observed provider, model, token, and metered-cost evidence instead of repricing unknown providers from assumptions.src/lib/usage-classify.mjsclassifies sessions into operational categories with explicit confidence and a first-classUnclassifiedresult.src/lib/usage-insights.mjsemits ranked Dashboard findings, includingpremium-on-routineandmodel-routing.src/lib/routing.mjsowns the canonical per-activity routing vocabulary and effective host/model routes.ak runproduces structured activity, host, model, duration, status, handoff, and bounded escalation evidence.The governing plans are living and must remain accurate:
This feature should extend those contracts. It should not create a fourth Dashboard area, add network activity to ordinary Dashboard reads, infer providers from hosts or model names, or silently turn a heuristic into a learned-routing claim.
Problem statement
The current findings can identify expensive-looking shapes, but session duration and response count are not evidence that a cheaper model would have delivered the same result. Historical routing is also confounded: harder tasks are disproportionately assigned to stronger models, and different hosts expose different prompts, tools, permissions, and harness behavior.
Therefore, transcripts alone can answer what happened, but they cannot automatically establish the counterfactual what would have happened on another model.
The feature needs an evidence model that:
Goals
Non-goals
kit.jsonrouting policy from a finding.Product principles
Proposed domain design
Bounded context
Add a Model Intelligence bounded context between Historical Usage and Routing Policy:
The contexts retain separate ownership:
Operation episode
An
OperationEpisodeis the minimum comparable unit:Historical interactive sessions may yield coarse, low-confidence episodes. Structured
ak runworkers should yield activity-bounded episodes with stronger identity and outcome evidence.Outcome evidence
Quality is a composition of observed signals, not a single assistant-generated score:
Every signal carries source, timestamp, scope, and provenance. Conflicting signals remain visible rather than being silently averaged away.
Evidence grades
The UI must never promote an Observed or Correlated result to Verified language.
Cost and capacity model
“Cheaper” has at least three independent meanings:
Recommendations must identify the basis they optimize. A subscription-backed model may have zero marginal cash cost while still consuming scarce plan capacity. Unknown cost stays unknown; no fallback price may manufacture a dollar saving.
Proposed architecture
Storage responsibilities:
.swarm/model-router-trajectories.jsonlwhere enabled), not a second private learning store.Learning and recommendation method
Historical matched cohorts
Group episodes by:
Compare models only after matching on these dimensions. Use shrinkage or confidence intervals so thin cohorts regress toward “unknown,” not an extreme recommendation. Report balance diagnostics and exclude cohorts whose model assignment remains strongly confounded by task difficulty.
Historical matching is useful for discovery and prioritizing experiments. It is not sufficient for a high-confidence “same benefit” claim.
Paired evaluation
For eligible read-only, deterministic, or safely sandboxed tasks:
Paired replay is explicit opt-in when it consumes a provider API, duplicates meaningful work, or sends repository evidence to another vendor. Subscription execution remains the default where supported, but it still consumes plan allowance and must be described honestly.
Prospective cheap-first cascades
After Verified evidence exists, allow an opt-in route experiment:
The relevant metric is not “cheap-model success rate” alone. It is:
Recommendation rule
Recommend a cheaper candidate only when:
Selection should use Ruflo's MetaHarness-backed router semantics: predict candidate quality and choose the cheapest candidate clearing the quality bar, with the active subscription/headroom policy applied as a separate overlay.
User interactions and scenarios
Scenario 1 — Discover a cheaper equivalent
The user opens Dashboard → Usage → Findings.
A “Cheaper equivalent found” card names the activity, incumbent, candidate, estimated effect, cost basis, evidence grade, sample count, and freshness.
Expanding “Why?” shows matched/paired evidence, quality tolerance, escalation rate, and excluded confounders.
The card offers a copyable command such as:
ak host pick --route 'documentation:codex:gpt-5.3-codex'The Dashboard does not execute the command or modify policy.
Scenario 2 — Confirm that a premium model earns its place
The user sees that architecture or security-analysis work has a materially better gate/review outcome and lower rework rate on the premium route. The finding recommends keeping the current route and explains the evidence rather than presenting all premium usage as waste.
Scenario 3 — Measure a cheap-first cascade
The user enables a bounded experiment for documentation. The lower tier completes most eligible work, some attempts escalate, and the finding reports the net capacity/cost effect after those escalations.
Scenario 4 — Refuse to guess
The testing activity has many sessions but few artifact-backed outcomes. The Dashboard says “Insufficient quality evidence” and identifies what would improve confidence, such as recording test/QE verdicts from
ak run.Scenario 5 — Separate harness improvement from model improvement
Quality rises after a prompt/tool-policy or harness change across several models. The finding attributes the change to the harness cohort and avoids recommending a model switch.
Scenario 6 — Respect subscription headroom
Claude and Codex candidates have similar measured quality. One host is near its weekly limit while the other has headroom. The recommendation explains that it optimizes capacity pressure, not cash billing, and remains bounded to the current limit window.
Scenario 7 — Inspect evidence from an individual operation
From a finding, the user can navigate to the relevant retained session/operation evidence when available. Transcript access continues to use the existing masked, selected-session content plane; aggregate APIs do not acquire transcript bodies.
Dashboard experience
Keep the existing three primary areas and extend Usage → Findings. Add a “Model fit” filter or finding family, not a fourth primary area.
Recommended finding types:
Each card should show:
A secondary activity × model matrix may show sample count, gate pass rate, rework rate, escalation rate, latency, cost/capacity, and evidence grade. It must not collapse hosts or providers into model names.
Phased technical implementation plan
Phase 0 — Specification, ADR, and domain contract
Deliverables
docs/ddd/ubiquitous-language.mdanddocs/ddd/context-map.mdwithOperationEpisode,OutcomeEvidence,HarnessFingerprint,EvidenceGrade, andRouteRecommendation.Exit gate
Phase 1 — Read-only historical episode projection
Likely files
src/lib/usage-index.mjssrc/lib/usage-opencode.mjssrc/lib/usage-classify.mjssrc/lib/model-intelligence/Deliverables
Exit gate
Phase 2 — Prospective
ak runoutcome instrumentationLikely files
src/commands/run.mjssrc/lib/execution/runner.mjssrc/lib/execution/schema.mjssrc/lib/execution/handoff.mjsDeliverables
Exit gate
Phase 3 — Evidence evaluator and matched cohorts
Likely files
src/lib/model-intelligence/src/lib/usage-insights.mjsDeliverables
Exit gate
Phase 4 — MetaHarness-backed model prediction and feedback loop
Deliverables
Exit gate
Phase 5 — Dashboard findings and evidence disclosure
Likely files
src/lib/dashboard-server.mjssrc/lib/dashboard/client.mjssrc/lib/dashboard/styles.mjssrc/lib/usage-insights.mjstests/dashboard.test.cjsDeliverables
Exit gate
Phase 6 — Paired evaluation and bounded route experiments
Deliverables
Exit gate
Phase 7 — Documentation, ADR reconciliation, and release proof
Deliverables
Updateddate/note when Findings behavior changes.docs/USAGE-SCORECARD-METRICS.md,docs/TRANSCRIPTS.md, Dashboard documentation, and troubleshooting.Exit gate
pnpm run checkpasses.Security privacy and offline-first constraints
kit.json.Risks and mitigations
Acceptance criteria
Domain and evidence integrity
OperationEpisode,OutcomeEvidence,EvidenceGrade,HarnessFingerprint, andRouteRecommendationare defined in DDD/ADR documentation.Historical and prospective ingestion
ak runworkers yield activity-bounded episodes with attempts and escalation.Recommendation correctness
Dashboard and UX
Security and operations
Documentation and closure evidence
Success measures
The feature should report these measures without imposing arbitrary universal targets:
The “withheld” count is a trust metric, not a failure metric: a system that never says “I do not know” is not evidence-backed.
Open product decisions
Related work and source grounding
Agentic Kit
Ruflo / MetaHarness implementation grounding
ruflo/v3/@claude-flow/cli/src/ruvector/neural-router.ts— cost-optimal candidate selection, per-model predicted quality, quality bar, alternatives, calibration, uncertainty, and backend provenance.ruflo/v3/@claude-flow/cli/src/commands/neural.ts— router trajectory collection, training from trajectories, cost/counterfactual statistics, and operator inspection surfaces.ruflo/v3/@claude-flow/cli/src/mcp-tools/hooks-tools.ts— structured task success/quality feedback and learning persistence.These are the real upstream learning/routing surfaces this feature should integrate. If a required upstream contract is missing, the implementation should expose that dependency rather than silently replacing it with an Agentic Kit heuristic.