Decision Interface Core
runtime kernel · strategy · acceptance
DI Core bez dekoracji. Sam silnik.
Realna ścieżka requestu: guard, strategia, runtime, acceptance i zapis wyniku. UI pokazuje stan pracy silnika, jego bramki i evidence — bez changelogu przebranego za produkt.
Engine
ready
20/20 checks ready
Kernel
100
sealed posture
Providers
1/6
configured routes
Engine lanes
Intencja → decyzja → wykonanie.
Guard
Normalize request, cap context and record warnings.
Preflight
Check kill switch, estimate cost and block unsafe runs early.
Kernel
Collapse invariants into one runtime eligibility decision before execution.
Intelligence
Classify intent, context pressure, risk signals and profile fit.
Strategy
Resolve profile, provider, council mode and cost guard.
Runtime
Build context, plan, run tools and generate result.
Acceptance
Evaluate quality, run contract checks and repair if needed.
Quality gate
Fuse evaluator, acceptance, density, hardening and trace into one verdict.
Memory
Record trace, actions, outcome and self-healing plan.
Control loop
Resolve post-run verdict and next hops from deterministic engine signals.
Supervisor
Fuse runtime evidence into commit/observe/repair/reroute/escalate/reject and attach an operations runbook.
Verifier
Cross-check runtime output against route, quality, acceptance and trace evidence.
Failover
Prepare deterministic repair/reroute/context-shrink/escalation branches.
Autopilot
Choose whether to return, watch, repair, retry, escalate or block.
Decision ledger
Persist deterministic decision evidence and hash the final engine directive.
Recovery
Build an actionable recovery plan when the engine does not produce a clean ship verdict.
Governor
Resolve the final return/retry policy from recovery and control-loop evidence.
Contract verifier
Verify the engine envelope before product surfaces trust the result.
Flight recorder
Attach compact execution evidence to every engine response.
Control plane
Jedna tablica dowodzenia
Engine kernel
20/20 engine checks ready.
Runtime surface
7/12 surface checks ready.
Product gate
6/11 product gate checks ready.
Ops recovery
0 archived ops files remain recoverable.
Full public Core gate
npm run ci:build
Engine hardening report
npm run core:engine:report
Brand surface report
npm run core:brand:report
Max hardening report
npm run core:max:report
Public API
Jeden import
import { DI_CORE } from "@/lib/di-core/interface";
await DI_CORE.engine.run(input);
await DI_CORE.engine.stream(input, onDelta);
DI_CORE.engine.kernel();
DI_CORE.engine.controlPlane();
DI_CORE.controlPlane.snapshot();Aktywne ścieżki chatu idą przez fasadę silnika, a niższy runtime zostaje jako warstwa wykonawcza. Mniej spaghetti, więcej sterowności.
Runtime map
Warstwy DI Core
20/20 checks · 85 control · 85 readiness
Runtime
run, stream, trace
Strategy
chat control + council
Provider mesh
routing, fallback, BYOK
Contracts
tools, actions, acceptance
Gateway
quality gates and evidence
Self-healing
outcome and repair plan
Entrypoints
2
engine run + stream
Profiles
9
visible AI profiles
Core pages
0
public operator surface
Capabilities
9
blocked public control
Capability registry
Co wystawia DI_CORE
Core engine preflight, route preview and runtime facade
DI_CORE.engine.kernel
DI_CORE.engine.preflight
DI_CORE.engine.inspect
DI Core runtime and streaming runtime
DI_CORE.runtime.run
DI_CORE.runtime.stream
Runtime gateway acceptance and release gates
DI_CORE.gateway.buildAcceptance
DI_CORE.gateway.recordAcceptance
DI_CORE.gateway.run
Chat control strategy preparation
DI_CORE.chatControl.prepare
DI_CORE.chatControl.summarize
Model Council response strategy runner
DI_CORE.modelCouncil.run
DI_CORE.modelCouncil.recommendStrategy
Model/profile/provider control surface
DI_CORE.modelControl.resolve
DI_CORE.modelControl.previewRoute
Provider registry and routing plan
DI_CORE.providers.listMatrix
DI_CORE.providers.plan
Tools, contracts and action proposal layer
DI_CORE.tools.registry
DI_CORE.contracts.list
DI_CORE.actions.compile
Public product surface and control-plane reports
DI_CORE.productBuild.laneReport
DI_CORE.productBuild.surfaceReport
DI_CORE.controlPlane.snapshot