core/

directory
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: Apache-2.0

Directories

Path Synopsis
Package accessmode implements deployment access posture: access mode normalization, listen-address classification, and cross-field posture validation used by core config.
Package accessmode implements deployment access posture: access mode normalization, listen-address classification, and cross-field posture validation used by core config.
Package accounting contains pure usage and cost accounting helpers.
Package accounting contains pure usage and cost accounting helpers.
Package admin provides operator-facing diagnostics surfaces.
Package admin provides operator-facing diagnostics surfaces.
Package affinity Session affinity store and missing-identity policy.
Package affinity Session affinity store and missing-identity policy.
Package auth defines core-owned consuming ports for authentication and auth/session event delivery.
Package auth defines core-owned consuming ports for authentication and auth/session event delivery.
Package authorityattribution holds shared attribution dimensions, matchers, and readiness aggregation used by usage authority, concurrency authority, and authority coordination.
Package authorityattribution holds shared attribution dimensions, matchers, and readiness aggregation used by usage authority, concurrency authority, and authority coordination.
Package authoritycoord orchestrates multi-provider logical-request and backend-attempt authority admission with reverse compensation (Phase 6).
Package authoritycoord orchestrates multi-provider logical-request and backend-attempt authority admission with reverse compensation (Phase 6).
Package auxreq Auxiliary request client for executor-runner binding.
Package auxreq Auxiliary request client for executor-runner binding.
Package b2bua holds core-owned B2BUA session store contracts: A-leg resolution, B-leg allocation, attempt lineage rows, and in-memory TTL semantics.
Package b2bua holds core-owned B2BUA session store contracts: A-leg resolution, B-leg allocation, attempt lineage rows, and in-memory TTL semantics.
Package capabilities provides the core-owned capability negotiation boundary.
Package capabilities provides the core-owned capability negotiation boundary.
concurrencyauthority
app
compatible
Package compatible wires generation-local per-instance compatible backend concurrency limits into the attempt authority coordinator.
Package compatible wires generation-local per-instance compatible backend concurrency limits into the attempt authority coordinator.
domain
Package domain contains the pure concurrency-lease policy model.
Package domain contains the pure concurrency-lease policy model.
Package config owns typed runtime configuration for the core only.
Package config owns typed runtime configuration for the core only.
Package configreload owns typed field-level reloadability policy for runtime configuration changes.
Package configreload owns typed field-level reloadability policy for runtime configuration changes.
Package continuation provides in-memory contract implementations for protocol-neutral proxy-owned response continuation ports.
Package continuation provides in-memory contract implementations for protocol-neutral proxy-owned response continuation ports.
Package continuity provides the core-owned B2BUA and lineage boundary.
Package continuity provides the core-owned B2BUA and lineage boundary.
bunstore
Package bunstore implements b2bua.Store using Bun over database/sql for managed durable continuity (PostgreSQL) and for dialect-backed tests (SQLite).
Package bunstore implements b2bua.Store using Bun over database/sql for managed durable continuity (PostgreSQL) and for dialect-backed tests (SQLite).
Package controlplane owns the core control-plane normalization, recording policy, query semantics, status state, validation, and runtime policy for the LLM Interactive Proxy.
Package controlplane owns the core control-plane normalization, recording policy, query semantics, status state, validation, and runtime policy for the LLM Interactive Proxy.
Package conversationprojection implements the pure kernel for semantic message identity, never_backend exclusion filtering, deterministic projection/reassertion, anchor/provenance primitives, and immutable projection DTOs at the A-leg/B-leg boundary.
Package conversationprojection implements the pure kernel for semantic message identity, never_backend exclusion filtering, deterministic projection/reassertion, anchor/provenance primitives, and immutable projection DTOs at the A-leg/B-leg boundary.
Package diag provides request-scoped trace propagation, structured logging helpers, and minimal HTTP surfaces for health and B2BUA attempt diagnostics.
Package diag provides request-scoped trace propagation, structured logging helpers, and minimal HTTP surfaces for health and B2BUA attempt diagnostics.
Package execbackend defines the executor-consumed outbound seam for opening canonical backend attempts (introduce-hexagonal-architecture).
Package execbackend defines the executor-consumed outbound seam for opening canonical backend attempts (introduce-hexagonal-architecture).
Package execctx attaches stable plugin-facing view snapshots to request context (tasks 4+).
Package execctx attaches stable plugin-facing view snapshots to request context (tasks 4+).
Package extensions publishes per-request extension runtime seams: the hook bus, plugin-facing service facades, and narrow views used by the executor without pulling concrete feature plugins into orchestration packages.
Package extensions publishes per-request extension runtime seams: the hook bus, plugin-facing service facades, and narrow views used by the executor without pulling concrete feature plugins into orchestration packages.
Package geoip owns protocol-neutral ingress policy semantics and the narrow country-lookup port.
Package geoip owns protocol-neutral ingress policy semantics and the narrow country-lookup port.
Package hooks executes submit, part, and tool-reactor chains with deterministic ordering and validation of canonical mutations.
Package hooks executes submit, part, and tool-reactor chains with deterministic ordering and validation of canonical mutations.
Package http provides shared server wiring and middleware helpers.
Package http provides shared server wiring and middleware helpers.
Package identity holds the core-owned proxy identity policy model: upstream User-Agent / OpenRouter app attribution and downstream Server presentation.
Package identity holds the core-owned proxy identity policy model: upstream User-Agent / OpenRouter app attribution and downstream Server presentation.
Package ingressdefense owns provider- and protocol-neutral ingress self-defense policy plus the bounded, process-local, exact-address hostile source state it drives.
Package ingressdefense owns provider- and protocol-neutral ingress self-defense policy plus the bounded, process-local, exact-address hostile source state it drives.
Package interleavedstate holds pure, serializable value types shared by routing, continuity, and runtime for interleaved thinking.
Package interleavedstate holds pure, serializable value types shared by routing, continuity, and runtime for interleaved thinking.
Package jsonpresence JSON null-vs-empty round-trip preservation for encoded shapes.
Package jsonpresence JSON null-vs-empty round-trip preservation for encoded shapes.
Package jsonshape provides protocol-neutral JSON size and shape preflight using encoding/json.Decoder.Token.
Package jsonshape provides protocol-neutral JSON size and shape preflight using encoding/json.Decoder.Token.
Package largebody defines the internal provider-neutral DTO contracts for the large-payload streaming fast path (#503, work order #532).
Package largebody defines the internal provider-neutral DTO contracts for the large-payload streaming fast path (#503, work order #532).
Package leglifecycle owns A-leg scoped cancellation and B-leg teardown policy.
Package leglifecycle owns A-leg scoped cancellation and B-leg teardown policy.
Package lineage A-leg/B-leg lineage identifiers and records.
Package lineage A-leg/B-leg lineage identifiers and records.
Package metering implements immutable metering checkpoint capture and fact drafting for dual-plane economics.
Package metering implements immutable metering checkpoint capture and fact drafting for dual-plane economics.
aggregate
Package aggregate applies metering fact kinds onto a stream aggregate without mutating journal history (requirements 3.2, 3.3, 3.5, 13.6).
Package aggregate applies metering fact kinds onto a stream aggregate without mutating journal history (requirements 3.2, 3.3, 3.5, 13.6).
ledgercompat
Package ledgercompat projects neutral metering facts onto the legacy token ledger record.
Package ledgercompat projects neutral metering facts onto the legacy token ledger record.
normalize
Package normalize maps provider-family fields onto neutral V2 metering measures.
Package normalize maps provider-family fields onto neutral V2 metering measures.
plane
Package plane holds pure dual-plane usage projection helpers used by runtime metering and settlement without importing the executor.
Package plane holds pure dual-plane usage projection helpers used by runtime metering and settlement without importing the executor.
reconcile
Package reconcile exposes bounded journal reconciliation helpers over a metering Querier (requirements 13.6, 13.7, 14.5, 15.3).
Package reconcile exposes bounded journal reconciliation helpers over a metering Querier (requirements 13.6, 13.7, 14.5, 15.3).
replay
Package replay provides the source-event replay boundary shared by metering reducers.
Package replay provides the source-event replay boundary shared by metering reducers.
Package modelcatalog holds source-neutral model capability facts, match metadata, and consumer-owned snapshot ports used by the core catalog runtime.
Package modelcatalog holds source-neutral model capability facts, match metadata, and consumer-owned snapshot ports used by the core catalog runtime.
Package modelregistry Model registry runtime and cache for backend model inventory.
Package modelregistry Model registry runtime and cache for backend model inventory.
Package modelview holds cycle-free aggregate request model-view identity: config generation/fingerprint, registry generation, catalog generation, and a stable digest for diagnostics and /v1/models ETag (req 9.6).
Package modelview holds cycle-free aggregate request model-view identity: config generation/fingerprint, registry generation, catalog generation, and a stable digest for diagnostics and /v1/models ETag (req 9.6).
Package policy Orchestration policy rules including circuit breaker.
Package policy Orchestration policy rules including circuit breaker.
Package routeoverride holds A-leg-scoped routing-override state and the focused persistence ports used by core runtime and the protected admin adapter.
Package routeoverride holds A-leg-scoped routing-override state and the focused persistence ports used by core runtime and the protected admin adapter.
storecontract
Package storecontract holds reusable contract tests for routeoverride.Store implementations (memory, SQLite, PostgreSQL).
Package storecontract holds reusable contract tests for routeoverride.Store implementations (memory, SQLite, PostgreSQL).
Package routing parses route selector strings and expands them into ordered attempt candidates.
Package routing parses route selector strings and expands them into ordered attempt candidates.
Bounded, attempt-local capture of the one proxy-owned control call for task 4.1 of agent-loop-explicit-completion-protocol (spec: .kiro/specs/agent-loop-explicit-completion-protocol, design Response Interception / Capture State; requirements 3.2, 3.5, 5.1-5.6, 8.5, 10.3).
Bounded, attempt-local capture of the one proxy-owned control call for task 4.1 of agent-loop-explicit-completion-protocol (spec: .kiro/specs/agent-loop-explicit-completion-protocol, design Response Interception / Capture State; requirements 3.2, 3.5, 5.1-5.6, 8.5, 10.3).
Package safety provides internal crash-isolation helpers for turning recovered panics into typed errors with bounded, server-side metadata.
Package safety provides internal crash-isolation helpers for turning recovered panics into typed errors with bounded, server-side metadata.
securesession
adapters/b2bualineage
Package b2bualineage implements app.LineageStore over b2bua.Store.
Package b2bualineage implements app.LineageStore over b2bua.Store.
adapters/bunstore
Package bunstore implements securesession app.Store and app.SessionUsageRollup using Bun over database/sql.
Package bunstore implements securesession app.Store and app.SessionUsageRollup using Bun over database/sql.
adapters/diag
Package diag implements operator HTTP diagnostics for secure sessions (driving adapter).
Package diag implements operator HTTP diagnostics for secure sessions (driving adapter).
adapters/lipapidenial
Package lipapidenial maps secure-session domain errors to canonical pkg/lipapi session denials.
Package lipapidenial maps secure-session domain errors to canonical pkg/lipapi session denials.
app
storecontract
Package storecontract holds reusable contract tests for app.Store implementations.
Package storecontract holds reusable contract tests for app.Store implementations.
Package snapshotgen publishes immutable runtime policy/rating generations.
Package snapshotgen publishes immutable runtime policy/rating generations.
Package state provides the in-memory plugin state store implementation (design §8, tasks 6–6.1).
Package state provides the in-memory plugin state store implementation (design §8, tasks 6–6.1).
Package stream provides canonical streaming primitives for the execution engine, including keepalive injection during recovery and idle waits.
Package stream provides canonical streaming primitives for the execution engine, including keepalive injection during recovery and idle waits.
Package streamrecovery Stream recovery policy after interruptions.
Package streamrecovery Stream recovery policy after interruptions.
Package terminal implements the pure-domain request/attempt terminal owner state machine (requirements 7.1–7.8, design D8, D13).
Package terminal implements the pure-domain request/attempt terminal owner state machine (requirements 7.1–7.8, design D8, D13).
Package terminalwork implements the pure-domain durable terminal-work item state machine and store command shapes (requirements 8.1–8.9, design D9).
Package terminalwork implements the pure-domain durable terminal-work item state machine and store command shapes (requirements 8.1–8.9, design D9).
app
Package app implements the bounded terminal-work processor and provider router (requirements 8.4–8.8, design D9).
Package app implements the bounded terminal-work processor and provider router (requirements 8.4–8.8, design D9).
tokenaccounting
app
Package app coordinates token counting through provider and local tokenizer ports.
Package app coordinates token counting through provider and local tokenizer ports.
domain
Package domain reconciles already-emitted token usage into billing-plane choices.
Package domain reconciles already-emitted token usage into billing-plane choices.
observability
Package observability builds safe, bounded token-accounting observations for future metrics and logging adapters.
Package observability builds safe, bounded token-accounting observations for future metrics and logging adapters.
preflight
Package preflight evaluates token-accounting admission checks before a backend attempt.
Package preflight evaluates token-accounting admission checks before a backend attempt.
streamusage
Package streamusage reconstructs scoped usage for completed streaming calls.
Package streamusage reconstructs scoped usage for completed streaming calls.
Package traffic Traffic observation, capture, and redaction contracts.
Package traffic Traffic observation, capture, and redaction contracts.
usageauthority
app
domain
Package domain contains the pure accounting-authority policy model.
Package domain contains the pure accounting-authority policy model.
Package workspace implements core-owned workspace resolution chains for the execution snapshot (design §9, R5).
Package workspace implements core-owned workspace resolution chains for the execution snapshot (design §9, R5).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL