internal/

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 agentfacts contains stable client identity facts shared by root-module features.
Package agentfacts contains stable client identity facts shared by root-module features.
tools/changesurface
Package changesurface reports extension blast radius from Git paths.
Package changesurface reports extension blast radius from Git paths.
Package capabilityfacts provides neutral capability extraction, turn shape facts, and hash derivation matching canonical lipapi semantics without materializing a lipapi.Call.
Package capabilityfacts provides neutral capability extraction, turn shape facts, and hash derivation matching canonical lipapi semantics without materializing a lipapi.Call.
Package compactionfacts provides protocol-neutral semantic facts extraction, deterministic item hashing, start-rule matching, and streaming fact builder primitives for compaction recognition without prompt retention.
Package compactionfacts provides protocol-neutral semantic facts extraction, deterministic item hashing, start-rule matching, and streaming fact builder primitives for compaction recognition without prompt retention.
core
accessmode
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.
accounting
Package accounting contains pure usage and cost accounting helpers.
Package accounting contains pure usage and cost accounting helpers.
admin
Package admin provides operator-facing diagnostics surfaces.
Package admin provides operator-facing diagnostics surfaces.
affinity
Package affinity Session affinity store and missing-identity policy.
Package affinity Session affinity store and missing-identity policy.
auth
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.
authorityattribution
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.
authoritycoord
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).
auxreq
Package auxreq Auxiliary request client for executor-runner binding.
Package auxreq Auxiliary request client for executor-runner binding.
b2bua
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.
capabilities
Package capabilities provides the core-owned capability negotiation boundary.
Package capabilities provides the core-owned capability negotiation boundary.
concurrencyauthority/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.
concurrencyauthority/domain
Package domain contains the pure concurrency-lease policy model.
Package domain contains the pure concurrency-lease policy model.
config
Package config owns typed runtime configuration for the core only.
Package config owns typed runtime configuration for the core only.
configreload
Package configreload owns typed field-level reloadability policy for runtime configuration changes.
Package configreload owns typed field-level reloadability policy for runtime configuration changes.
continuation
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.
continuity
Package continuity provides the core-owned B2BUA and lineage boundary.
Package continuity provides the core-owned B2BUA and lineage boundary.
continuity/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).
controlplane
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.
conversationprojection
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.
diag
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.
execbackend
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).
execctx
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+).
extensions
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.
geoip
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.
hooks
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.
http
Package http provides shared server wiring and middleware helpers.
Package http provides shared server wiring and middleware helpers.
identity
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.
ingressdefense
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.
interleavedstate
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.
jsonpresence
Package jsonpresence JSON null-vs-empty round-trip preservation for encoded shapes.
Package jsonpresence JSON null-vs-empty round-trip preservation for encoded shapes.
jsonshape
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.
largebody
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).
leglifecycle
Package leglifecycle owns A-leg scoped cancellation and B-leg teardown policy.
Package leglifecycle owns A-leg scoped cancellation and B-leg teardown policy.
lineage
Package lineage A-leg/B-leg lineage identifiers and records.
Package lineage A-leg/B-leg lineage identifiers and records.
metering
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.
metering/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).
metering/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.
metering/normalize
Package normalize maps provider-family fields onto neutral V2 metering measures.
Package normalize maps provider-family fields onto neutral V2 metering measures.
metering/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.
metering/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).
metering/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.
modelcatalog
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.
modelregistry
Package modelregistry Model registry runtime and cache for backend model inventory.
Package modelregistry Model registry runtime and cache for backend model inventory.
modelview
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).
policy
Package policy Orchestration policy rules including circuit breaker.
Package policy Orchestration policy rules including circuit breaker.
routeoverride
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.
routeoverride/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).
routing
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.
runtime
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).
safety
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.
securesession/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.
securesession/adapters/diag
Package diag implements operator HTTP diagnostics for secure sessions (driving adapter).
Package diag implements operator HTTP diagnostics for secure sessions (driving adapter).
securesession/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.
securesession/storecontract
Package storecontract holds reusable contract tests for app.Store implementations.
Package storecontract holds reusable contract tests for app.Store implementations.
snapshotgen
Package snapshotgen publishes immutable runtime policy/rating generations.
Package snapshotgen publishes immutable runtime policy/rating generations.
state
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).
stream
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.
streamrecovery
Package streamrecovery Stream recovery policy after interruptions.
Package streamrecovery Stream recovery policy after interruptions.
terminal
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).
terminalwork
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).
terminalwork/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.
tokenaccounting/domain
Package domain reconciles already-emitted token usage into billing-plane choices.
Package domain reconciles already-emitted token usage into billing-plane choices.
tokenaccounting/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.
tokenaccounting/preflight
Package preflight evaluates token-accounting admission checks before a backend attempt.
Package preflight evaluates token-accounting admission checks before a backend attempt.
tokenaccounting/streamusage
Package streamusage reconstructs scoped usage for completed streaming calls.
Package streamusage reconstructs scoped usage for completed streaming calls.
traffic
Package traffic Traffic observation, capture, and redaction contracts.
Package traffic Traffic observation, capture, and redaction contracts.
usageauthority/domain
Package domain contains the pure accounting-authority policy model.
Package domain contains the pure accounting-authority policy model.
workspace
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).
Package infra reserves shared non-domain infrastructure helpers.
Package infra reserves shared non-domain infrastructure helpers.
authevent
Package authevent provides composition-root implementations of core auth event delivery, such as a structured-log github.com/matdev83/go-llm-interactive-proxy/internal/core/auth.EventSink.
Package authevent provides composition-root implementations of core auth event delivery, such as a structured-log github.com/matdev83/go-llm-interactive-proxy/internal/core/auth.EventSink.
backendplugins/adapter
Package adapter is the anti-corruption layer between public backendplugin DTOs and core-consumed execbackend.Backend / lipapi streams.
Package adapter is the anti-corruption layer between public backendplugin DTOs and core-consumed execbackend.Backend / lipapi streams.
backendplugins/diagnostics
Package diagnostics provides non-serving inspect and explicit doctor checks for external backend plugins (manifest/catalog without launch; selected Activate).
Package diagnostics provides non-serving inspect and explicit doctor checks for external backend plugins (manifest/catalog without launch; selected Activate).
backendplugins/processhost
Package processhost owns the project-selected supervised backend-plugin process host: lazy activation, process-model ownership, peer-gated local channels, generation invalidation, and composition BuildResult cleanup.
Package processhost owns the project-selected supervised backend-plugin process host: lazy activation, process-model ownership, peer-gated local channels, generation invalidation, and composition BuildResult cleanup.
billingbinding
Package billingbinding adapts one validated public billing.Binding to the existing internal runtime chokepoints: the cheap pre-route credit screen, the quote/atomic exposure admission authority, and the terminal evidence handoff.
Package billingbinding adapts one validated public billing.Binding to the existing internal runtime chokepoints: the cheap pre-route credit screen, the quote/atomic exposure admission authority, and the terminal evidence handoff.
billingspool
Package billingspool owns the process-local durable terminal handoff.
Package billingspool owns the process-local durable terminal handoff.
compactiondetect
Package compactiondetect implements the proxy-derived coding-agent session compaction detector: a concrete, process-owned detector that inspects the effective canonical baseline after an upstream B-leg opens and every canonical event actually released by the retry stream, and derives typed started/completed lifecycle observations for fail-open SDK observers.
Package compactiondetect implements the proxy-derived coding-agent session compaction detector: a concrete, process-owned detector that inspects the effective canonical baseline after an upstream B-leg opens and every canonical event actually released by the retry stream, and derives typed started/completed lifecycle observations for fail-open SDK observers.
concurrencyauthority/leasestore
Package leasestore provides memory, SQLite, and PostgreSQL backends for the concurrency-authority LeaseStore port.
Package leasestore provides memory, SQLite, and PostgreSQL backends for the concurrency-authority LeaseStore port.
configsource
Package configsource provides the bounded fixed-path configuration source for runtime reload (versioned-runtime-reloadable-proxy-configuration).
Package configsource provides the bounded fixed-path configuration source for runtime reload (versioned-runtime-reloadable-proxy-configuration).
continuation
Package continuation contains the small durable continuation adapter used by the standard contract tests and local deployments.
Package continuation contains the small durable continuation adapter used by the standard contract tests and local deployments.
controlplane/ledgerstore
Package ledgerstore provides control-plane event-store adapters: an in-memory store for deterministic local recording and tests, and a Bun-backed durable store for SQLite and Postgres deployments.
Package ledgerstore provides control-plane event-store adapters: an in-memory store for deterministic local recording and tests, and a Bun-backed durable store for SQLite and Postgres deployments.
controlplane/ledgerstore/contract
Package contract provides a reusable store-contract test suite for control-plane event stores (spec control-plane-persistence-query-event-ledger, tasks 2.1–2.5).
Package contract provides a reusable store-contract test suite for control-plane event stores (spec control-plane-persistence-query-event-ledger, tasks 2.1–2.5).
controlplane/ledgerstore/fields
Package fields owns the canonical filter-field string names reported by control-plane ledger stores in cp.UnsupportedFilter.Field.
Package fields owns the canonical filter-field string names reported by control-plane ledger stores in cp.UnsupportedFilter.Field.
controlplane/observers
Package observers hosts the control-plane source adapters that fan existing runtime evidence seams (auth event sink, policy/usage observers, secure- session store, B2BUA store) into the core control-plane recorder without requiring those seams to understand the query capability (design "Source Adapters"; requirements 1.1–1.6, 3.1, 5.1–5.7, 8.1–8.6, 10.7).
Package observers hosts the control-plane source adapters that fan existing runtime evidence seams (auth event sink, policy/usage observers, secure- session store, B2BUA store) into the core control-plane recorder without requiring those seams to understand the query capability (design "Source Adapters"; requirements 1.1–1.6, 3.1, 5.1–5.7, 8.1–8.6, 10.7).
conversationview
Package conversationview provides mutable steering CRUD/state, placement and anchor-missing policies, writer/registrar services, persistence and store contracts, and feature diagnostics outside the core conversation projection kernel.
Package conversationview provides mutable steering CRUD/state, placement and anchor-missing policies, writer/registrar services, persistence and store contracts, and feature diagnostics outside the core conversation projection kernel.
conversationview/sdkadapter
Package sdkadapter bridges trusted SDK contracts to the authoritative conversation-view domain ports.
Package sdkadapter bridges trusted SDK contracts to the authoritative conversation-view domain ports.
conversationview/storecontract
Package storecontract holds reusable contract tests for conversationview.Store implementations (ReferenceStore, MemoryStore, Bun).
Package storecontract holds reusable contract tests for conversationview.Store implementations (ReferenceStore, MemoryStore, Bun).
db
Package db provides internal-only database infrastructure: opening managed connections, wrapping *sql.DB with Bun for supported dialects, connection pool tuning, and secret-safe DSN and error redaction.
Package db provides internal-only database infrastructure: opening managed connections, wrapping *sql.DB with Bun for supported dialects, connection pool tuning, and secret-safe DSN and error redaction.
endpoint
Package endpoint defines the immutable compatible-mode base URL contract.
Package endpoint defines the immutable compatible-mode base URL contract.
extensiontrace
Package extensiontrace hosts minimal OpenTelemetry helpers for internal/core/extension stages without importing the full internal/infra/tracing package (which depends on internal/core and would cycle with packages such as internal/core/diag that reference extensions).
Package extensiontrace hosts minimal OpenTelemetry helpers for internal/core/extension stages without importing the full internal/infra/tracing package (which depends on internal/core and would cycle with packages such as internal/core/diag that reference extensions).
geoip
Package geoip contains process-owned Country MMDB infrastructure.
Package geoip contains process-owned Country MMDB infrastructure.
logging
Package logging builds slog handlers from validated operator logging config.
Package logging builds slog handlers from validated operator logging config.
metering/journalstore
Package journalstore provides append-only metering fact journal adapters: in-memory for tests/local use, and Bun-backed SQLite/Postgres for durable deployments.
Package journalstore provides append-only metering fact journal adapters: in-memory for tests/local use, and Bun-backed SQLite/Postgres for durable deployments.
modelcatalog/modelsdev
Package modelsdev implements models.dev catalog ingestion: JSON parse, normalize to modelcatalog.ModelFacts, HTTP fetch, and filesystem cache.
Package modelsdev implements models.dev catalog ingestion: JSON parse, normalize to modelcatalog.ModelFacts, HTTP fetch, and filesystem cache.
osidentity
Package osidentity resolves the current OS user (or explicit env hints) for local no-op auth.
Package osidentity resolves the current OS user (or explicit env hints) for local no-op auth.
routinghealth
Package routinghealth supplies composition-root implementations of policy.CandidateHealth for the standard bundle without embedding core routing policy types at call sites.
Package routinghealth supplies composition-root implementations of policy.CandidateHealth for the standard bundle without embedding core routing policy types at call sites.
runtimebundle
Package runtimebundle is the standard-distribution composition root: BuildHost, inspection, ValidateDistribution, and generation compile/publish wiring.
Package runtimebundle is the standard-distribution composition root: BuildHost, inspection, ValidateDistribution, and generation compile/publish wiring.
runtimehost
Package runtimehost hosts the generation manager, leases, retirement scheduling, dispatcher, and serialized reload coordinator for versioned runtime reload.
Package runtimehost hosts the generation manager, leases, retirement scheduling, dispatcher, and serialized reload coordinator for versioned runtime reload.
terminalwork/workstore
Package workstore provides memory, SQLite, and PostgreSQL backends for durable terminal-work intent, claims, retry, and quarantine (requirements 8.1–8.9).
Package workstore provides memory, SQLite, and PostgreSQL backends for durable terminal-work intent, claims, retry, and quarantine (requirements 8.1–8.9).
tokenizers/imageestimator
Package imageestimator provides bounded local estimates for multimodal image parts.
Package imageestimator provides bounded local estimates for multimodal image parts.
tracing
Package tracing wires OpenTelemetry tracers, propagators, and optional OTLP export.
Package tracing wires OpenTelemetry tracers, propagators, and optional OTLP export.
usageauthority/authoritystore/contract
Package contract defines the shared authority-store contract test helpers.
Package contract defines the shared authority-store contract test helpers.
usageauthority/evidencesink
Package evidencesink projects usage-authority application outcomes into the policydecision observer chain and the control-plane accounting-authority event ledger.
Package evidencesink projects usage-authority application outcomes into the policydecision observer chain and the control-plane accounting-authority event ledger.
integration
openresponses
Package openresponses hosts the reusable full-path conformance deployment harness integration tests (spec Phase 7, Task 7.3).
Package openresponses hosts the reusable full-path conformance deployment harness integration tests (spec Phase 7, Task 7.3).
Package jsonbody owns HTTP-adapter JSON body bounds and decode policy: bounded body read, shape preflight against the request-envelope profile (which also enforces exactly one JSON document), then typed decode.
Package jsonbody owns HTTP-adapter JSON body bounds and decode policy: bounded body read, shape preflight against the request-envelope profile (which also enforces exactly one JSON document), then typed decode.
Ownership contracts for composed backend kind/prefix reservation.
Ownership contracts for composed backend kind/prefix reservation.
plugins
backends/alibabatokenplanintl
Package alibabatokenplanintl implements Alibaba Cloud's international Token Plan backend.
Package alibabatokenplanintl implements Alibaba Cloud's international Token Plan backend.
backends/anthropic
Package anthropic implements the Anthropic Messages API backend connector using github.com/anthropics/anthropic-sdk-go.
Package anthropic implements the Anthropic Messages API backend connector using github.com/anthropics/anthropic-sdk-go.
backends/compatmode
Package compatmode holds shared helpers for custom-compatible backend modes.
Package compatmode holds shared helpers for custom-compatible backend modes.
backends/credpool
Package credpool re-exports the public credential pool from pkg/credpool.
Package credpool re-exports the public credential pool from pkg/credpool.
backends/gemini
Package gemini implements the Google Gemini generateContent backend connector using google.golang.org/genai.
Package gemini implements the Google Gemini generateContent backend connector using google.golang.org/genai.
backends/httpidentity
Package httpidentity applies B-leg User-Agent identity policy at the final HTTP wire boundary for approved hosted connectors.
Package httpidentity applies B-leg User-Agent identity policy at the final HTTP wire boundary for approved hosted connectors.
backends/localstub
Package localstub implements a deterministic no-network backend for local dogfood and smoke tests.
Package localstub implements a deterministic no-network backend for local dogfood and smoke tests.
backends/openaicaps
Package openaicaps holds small, shared capability rules for OpenAI-hosted backends.
Package openaicaps holds small, shared capability rules for OpenAI-hosted backends.
backends/openaicompat
Package openaicompat contains shared adapter-layer helpers for backend plugins that talk to OpenAI-compatible APIs through the openai-go SDK.
Package openaicompat contains shared adapter-layer helpers for backend plugins that talk to OpenAI-compatible APIs through the openai-go SDK.
backends/openailegacy
Package openailegacy implements the legacy OpenAI Chat Completions backend connector using github.com/openai/openai-go/v3.
Package openailegacy implements the legacy OpenAI Chat Completions backend connector using github.com/openai/openai-go/v3.
backends/openairesponses
Package openairesponses implements the OpenAI Responses API backend connector using github.com/openai/openai-go/v3.
Package openairesponses implements the OpenAI Responses API backend connector using github.com/openai/openai-go/v3.
backends/openresponsescompat
Package openresponsescompat implements the generic remote OpenResponses backend mode for remote OpenResponses-capable providers and routers.
Package openresponsescompat implements the generic remote OpenResponses backend mode for remote OpenResponses-capable providers and routers.
backends/protocols/anthropicmessages
Package anthropicmessages provides shared Anthropic Messages protocol execution.
Package anthropicmessages provides shared Anthropic Messages protocol execution.
backends/protocols/geminigenerate
Package geminigenerate provides shared Gemini generateContent protocol execution.
Package geminigenerate provides shared Gemini generateContent protocol execution.
backends/protocols/mediaurl
Package mediaurl extracts media URLs from protocol JSON payloads.
Package mediaurl extracts media URLs from protocol JSON payloads.
backends/transporterr
Package transporterr classifies transport-level failures (network timeouts, DNS errors, refused/reset/aborted connections) shared by backend adapters when deciding whether an upstream failure is a transient retry/failover candidate.
Package transporterr classifies transport-level failures (network timeouts, DNS errors, refused/reset/aborted connections) shared by backend adapters when deciding whether an upstream failure is a transient retry/failover candidate.
features
Package features contains the standard-distribution feature plugins.
Package features contains the standard-distribution feature plugins.
features/agentloopguard/causepolicy
Package causepolicy contains the provider-independent ALG eligibility policy for canonical terminal causes and bounded evidence.
Package causepolicy contains the provider-independent ALG eligibility policy for canonical terminal causes and bounded evidence.
features/agentloopguard/progress
Package progress contains the pure ALG progress breaker and bounded recovery-intent policy.
Package progress contains the pure ALG progress breaker and bounded recovery-intent policy.
features/agentloopguard/protocolpolicy
Package protocolpolicy holds the preferred-strategy missing-completion-signal policy as pure values.
Package protocolpolicy holds the preferred-strategy missing-completion-signal policy as pure values.
features/agentloopguard/protocolstate
Package protocolstate owns the preferred-strategy missing-signal protocol state: a bounded progress fingerprint, bounded counters, and an independent opaque state token.
Package protocolstate owns the preferred-strategy missing-signal protocol state: a bounded progress fingerprint, bounded counters, and an independent opaque state token.
features/compactioncontinuity/augmentation
Package augmentation owns the deliberately narrow response-side continuation-carrier allowlist.
Package augmentation owns the deliberately narrow response-side continuation-carrier allowlist.
features/compactioncontinuity/capsule
Package capsule contains the provider-neutral, bounded continuity capsule.
Package capsule contains the provider-neutral, bounded continuity capsule.
features/compactioncontinuity/carriers
Package carriers recognizes a small, versioned catalog of canonical structured plan shapes.
Package carriers recognizes a small, versioned catalog of canonical structured plan shapes.
features/compactioncontinuity/extractor
Package extractor builds the one canonical child call used for semantic continuity extraction and validates its bounded result.
Package extractor builds the one canonical child call used for semantic continuity extraction and validates its bounded result.
features/compactioncontinuity/injection
Package injection applies a bounded, provider-neutral continuity projection to a canonical call.
Package injection applies a bounded, provider-neutral continuity projection to a canonical call.
features/compactioncontinuity/observability
Package observability provides the content-free diagnostics seam for the compaction-continuity feature.
Package observability provides the content-free diagnostics seam for the compaction-continuity feature.
features/compactioncontinuity/policy
Package policy resolves the continuity egress policy at request time.
Package policy resolves the continuity egress policy at request time.
features/compactioncontinuity/resultmerge
Package resultmerge consumes one bounded background result and applies it to the authoritative parent continuity branch.
Package resultmerge consumes one bounded background result and applies it to the authoritative parent continuity branch.
features/compactioncontinuity/source
Package source prepares a small, canonical and privacy-bounded source window for continuity extraction.
Package source prepares a small, canonical and privacy-bounded source window for continuity extraction.
features/compactioncontinuity/state
Package state contains the process-owned state coordination used by compaction preservation.
Package state contains the process-owned state coordination used by compaction preservation.
features/keepwarm
Package keepwarm owns bounded, generation-local prompt-cache maintenance policy.
Package keepwarm owns bounded, generation-local prompt-cache maintenance policy.
features/reasoningpreservation
Package reasoningpreservation owns the official reasoning-output-preservation feature domain.
Package reasoningpreservation owns the official reasoning-output-preservation feature domain.
features/secretguard/engine
Package engine provides the concrete secret catalog, Aho-Corasick exact pattern matching automaton, credential inventory discovery, and source policy implementation for the secretguard feature plugin.
Package engine provides the concrete secret catalog, Aho-Corasick exact pattern matching automaton, credential inventory discovery, and source policy implementation for the secretguard feature plugin.
features/sessionclassification
Package sessionclassification owns the session-classification feature policy.
Package sessionclassification owns the session-classification feature policy.
features/sessionclassification/testfixtures
Package testfixtures exposes the shared, data-driven evidence matrix used by session-classification acceptance tests.
Package testfixtures exposes the shared, data-driven evidence matrix used by session-classification acceptance tests.
features/toolcallrepair
Package toolcallrepair holds YAML config decode and bundle construction for the standard-distribution tool-call-repair feature (ADR 0007 / issue #152).
Package toolcallrepair holds YAML config decode and bundle construction for the standard-distribution tool-call-repair feature (ADR 0007 / issue #152).
features/toolcallrepair/repair
Package toolcallrepair holds the deterministic native tool-call repair engine contract (ADR 0007, issue #152).
Package toolcallrepair holds the deterministic native tool-call repair engine contract (ADR 0007, issue #152).
features/toolcallrepair/repair/jsonshape
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.
frontends/anthropic
Package anthropic implements the Anthropic Messages–compatible HTTP frontend.
Package anthropic implements the Anthropic Messages–compatible HTTP frontend.
frontends/execerr
Package execerr classifies errors returned from lipsdk.ExecutorView.Execute for HTTP frontends.
Package execerr classifies errors returned from lipsdk.ExecutorView.Execute for HTTP frontends.
frontends/frontendpipe
Package frontendpipe provides a shared HTTP create pipeline for wire frontends.
Package frontendpipe provides a shared HTTP create pipeline for wire frontends.
frontends/gemini
Package gemini implements the Gemini generateContent–compatible HTTP frontend.
Package gemini implements the Gemini generateContent–compatible HTTP frontend.
frontends/identitywire
Package identitywire captures protocol-neutral client identity carriers into canonical invocation metadata.
Package identitywire captures protocol-neutral client identity carriers into canonical invocation metadata.
frontends/jsonguard
Package jsonguard provides low-cost preflight checks for untrusted frontend JSON bodies.
Package jsonguard provides low-cost preflight checks for untrusted frontend JSON bodies.
frontends/openailegacy
Package openailegacy implements the legacy OpenAI Chat Completions–compatible HTTP frontend: JSON decode to lipapi.Call, core execution, and JSON or SSE encode for official clients.
Package openailegacy implements the legacy OpenAI Chat Completions–compatible HTTP frontend: JSON decode to lipapi.Call, core execution, and JSON or SSE encode for official clients.
frontends/openairesponses
Package openairesponses implements the OpenAI Responses–compatible HTTP frontend: JSON decode to lipapi.Call, core execution, and JSON or SSE encode for official clients.
Package openairesponses implements the OpenAI Responses–compatible HTTP frontend: JSON decode to lipapi.Call, core execution, and JSON or SSE encode for official clients.
frontends/reqbody
Package reqbody centralizes bounded HTTP request body reads for frontend handlers.
Package reqbody centralizes bounded HTTP request body reads for frontend handlers.
frontends/routeselect
Package routeselect derives explicit route selectors from model identifiers.
Package routeselect derives explicit route selectors from model identifiers.
frontends/sessionwire
Package sessionwire holds shared LIP session carrier keys and decode helpers for frontends.
Package sessionwire holds shared LIP session carrier keys and decode helpers for frontends.
openrouterwire
Package openrouterwire provides shared extension keys and helpers for OpenRouter-specific data that flows from frontend decoders through lipapi.Call.Extensions to backend adapters.
Package openrouterwire provides shared extension keys and helpers for OpenRouter-specific data that flows from frontend decoders through lipapi.Call.Extensions to backend adapters.
Package providerprofiles contains the bounded, declarative provider-profile seam.
Package providerprofiles contains the bounded, declarative provider-profile seam.
Package qa holds repository hygiene and non-domain quality tests.
Package qa holds repository hygiene and non-domain quality tests.
Package refbackend provides spec-shaped HTTP emulators for remote inference APIs.
Package refbackend provides spec-shaped HTTP emulators for remote inference APIs.
acp
Package acp is a reference backend emulator for the Agent Client Protocol (ACP) prompt-turn subset used by integration tests.
Package acp is a reference backend emulator for the Agent Client Protocol (ACP) prompt-turn subset used by integration tests.
anthropicmessages
Package anthropicmessages is a reference backend emulator for the Anthropic Messages API.
Package anthropicmessages is a reference backend emulator for the Anthropic Messages API.
bedrock
Package bedrock is a reference backend emulator for Amazon Bedrock Runtime Converse and ConverseStream.
Package bedrock is a reference backend emulator for Amazon Bedrock Runtime Converse and ConverseStream.
gemini
Package gemini is a reference backend emulator for the Google Gemini generateContent API.
Package gemini is a reference backend emulator for the Google Gemini generateContent API.
jsonprobe
Package jsonprobe inspects JSON request bodies for reference backend servers.
Package jsonprobe inspects JSON request bodies for reference backend servers.
llamacpp
Package llamacpp provides a spec-faithful HTTP emulator of the llama.cpp OpenAI-compatible API server for use in tests.
Package llamacpp provides a spec-faithful HTTP emulator of the llama.cpp OpenAI-compatible API server for use in tests.
nvidia
Package nvidia is a reference backend emulator for NVIDIA NIM's API surface.
Package nvidia is a reference backend emulator for NVIDIA NIM's API surface.
ollama
Package ollama is a reference backend emulator for Ollama's API surface.
Package ollama is a reference backend emulator for Ollama's API surface.
openaichat
Package openaichat is a reference backend emulator for the OpenAI Chat Completions API.
Package openaichat is a reference backend emulator for the OpenAI Chat Completions API.
openaicodex
Package openaicodex is a reference backend emulator for the OpenAI Codex internal Responses endpoint (POST /backend-api/codex/responses).
Package openaicodex is a reference backend emulator for the OpenAI Codex internal Responses endpoint (POST /backend-api/codex/responses).
openairesponses
Package openairesponses is a reference backend emulator for the OpenAI Responses API.
Package openairesponses is a reference backend emulator for the OpenAI Responses API.
openresponses
Package openresponses is an independent OpenResponses remote backend emulator.
Package openresponses is an independent OpenResponses remote backend emulator.
openrouter
Package openrouter is a reference backend emulator for OpenRouter's API surface.
Package openrouter is a reference backend emulator for OpenRouter's API surface.
vllm
Package vllm provides a spec-faithful HTTP emulator of the vLLM OpenAI-compatible API server for use in tests.
Package vllm provides a spec-faithful HTTP emulator of the vLLM OpenAI-compatible API server for use in tests.
Package refclient provides official-SDK-based reference client emulators for integration and conformance tests.
Package refclient provides official-SDK-based reference client emulators for integration and conformance tests.
anthropicmessages
Package anthropicmessages is a reference client emulator for the Anthropic Messages API, built on github.com/anthropics/anthropic-sdk-go.
Package anthropicmessages is a reference client emulator for the Anthropic Messages API, built on github.com/anthropics/anthropic-sdk-go.
gemini
Package gemini is a reference client emulator for the Google Gemini generateContent API, built on google.golang.org/genai.
Package gemini is a reference client emulator for the Google Gemini generateContent API, built on google.golang.org/genai.
openaichat
Package openaichat is a reference client emulator for the OpenAI Chat Completions API (legacy OpenAI-compatible chat surface), using github.com/openai/openai-go/v3.
Package openaichat is a reference client emulator for the OpenAI Chat Completions API (legacy OpenAI-compatible chat surface), using github.com/openai/openai-go/v3.
openairesponses
Package openairesponses is a reference client emulator for the OpenAI Responses API, built on github.com/openai/openai-go/v3.
Package openairesponses is a reference client emulator for the OpenAI Responses API, built on github.com/openai/openai-go/v3.
openresponses
Package openresponses is an independent OpenResponses reference client emulator.
Package openresponses is an independent OpenResponses reference client emulator.
refclienttest
Package refclienttest holds helpers shared by refclient emulator tests.
Package refclienttest holds helpers shared by refclient emulator tests.
Package safecast provides bounded conversions for numeric values at protocol boundaries.
Package safecast provides bounded conversions for numeric values at protocol boundaries.
contrib
Package contrib contains immutable, metadata-only extension facets.
Package contrib contains immutable, metadata-only extension facets.
featurehost/reasoning
Package reasoningcompose provides dedicated runtime composition for reasoning semantic compression.
Package reasoningcompose provides dedicated runtime composition for reasoning semantic compression.
featurehost/sessionclassification
Package sessionclassification provides the standard featurehost's bounded process-local adapter for feature-owned session classification state.
Package sessionclassification provides the standard featurehost's bounded process-local adapter for feature-owned session classification state.
featurehost/sessionpolicy
Package sessionpolicy provides the standard featurehost-owned, bounded policy store for terminal-decision session overrides.
Package sessionpolicy provides the standard featurehost-owned, bounded policy store for terminal-decision session overrides.
Package stdhttp registers bundled frontend HTTP handlers on a ServeMux (standard distribution wiring).
Package stdhttp registers bundled frontend HTTP handlers on a ServeMux (standard distribution wiring).
admin/configreload
Package configreload implements the process-owned management HTTP adapter for explicit configuration reload and status (spec versioned-runtime-reloadable-proxy-configuration task 5.3; requirements 1.3, 1.7, 12.1-12.11, 13.1-13.2).
Package configreload implements the process-owned management HTTP adapter for explicit configuration reload and status (spec versioned-runtime-reloadable-proxy-configuration task 5.3; requirements 1.3, 1.7, 12.1-12.11, 13.1-13.2).
admin/controlplane
Package controlplane mounts the protected operator status and query HTTP surface for the control-plane persistence/query/event-ledger capability (spec control-plane-persistence-query-event-ledger; tasks 5.3, 5.4).
Package controlplane mounts the protected operator status and query HTTP surface for the control-plane persistence/query/event-ledger capability (spec control-plane-persistence-query-event-ledger; tasks 5.3, 5.4).
auth
Package auth integrates transport-layer httpauth.Provider chains into stdhttp.
Package auth integrates transport-layer httpauth.Provider chains into stdhttp.
contract
Package contract defines the cycle-neutral HTTP composition input value types shared by runtimebundle (canonical construction) and stdhttp (canonical and transitional composition).
Package contract defines the cycle-neutral HTTP composition input value types shared by runtimebundle (canonical construction) and stdhttp (canonical and transitional composition).
selfdefense
Package selfdefense is the standard-HTTP driving adapter for ingress self-defense.
Package selfdefense is the standard-HTTP driving adapter for ingress self-defense.
terminalpolicy
Package terminalpolicy provides the provider-neutral HTTP adapter for the process-owned terminal-decision policy.
Package terminalpolicy provides the provider-neutral HTTP adapter for the process-owned terminal-decision policy.
Package testkit reserves shared testing helpers, stubs, and fixtures.
Package testkit reserves shared testing helpers, stubs, and fixtures.
backendplugin
Package backendplugin provides a deterministic in-process fake backend plugin and a future executable command skeleton name for host launch tests.
Package backendplugin provides a deterministic in-process fake backend plugin and a future executable command skeleton name for host launch tests.
billsem
Package billsem is a self-contained, test-only reference implementation of component-schema quantity semantics.
Package billsem is a self-contained, test-only reference implementation of component-schema quantity semantics.
compatibleparity
Package compatibleparity holds deterministic canonical parity and instance-isolation fixtures for the three built-in compatible backend modes.
Package compatibleparity holds deterministic canonical parity and instance-isolation fixtures for the three built-in compatible backend modes.
conformance
Package conformance hosts the bundled frontend × backend conformance matrix (spec tasks 12.x).
Package conformance hosts the bundled frontend × backend conformance matrix (spec tasks 12.x).
contract/metering
Package metering contains a bounded family-level contract test for provider normalizers and the shared V2 reducer.
Package metering contains a bounded family-level contract test for provider normalizers and the shared V2 reducer.
dbparity/cmd command
nativecontext
Package nativecontext contains deterministic, content-safe evidence helpers for the experimental Codex native-context integration and quality suites.
Package nativecontext contains deterministic, content-safe evidence helpers for the experimental Codex native-context integration and quality suites.
reasoninge2e
Package reasoninge2e provides a deterministic client-transcript model and backend-request oracle for reasoning-preservation full HTTP E2E phases.
Package reasoninge2e provides a deterministic client-transcript model and backend-request oracle for reasoning-preservation full HTTP E2E phases.
terminaldecision
Package terminaldecision contains deterministic coordination fixtures for terminal-decision platform tests.
Package terminaldecision contains deterministic coordination fixtures for terminal-decision platform tests.

Jump to

Keyboard shortcuts

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