code wiki / apistack

topic: apistack

41 modules sharing the apistack name family (derived from the tree's prefix discipline).

The apistack topic family provides foundational capabilities for building robust, scalable, and secure API systems within the Nishi sovereign ecosystem. Modules like nx_apistack_audit ensure traceability of privileged actions, nx_apistack_breaker manages resilience through circuit-breaking, and nx_apistack_bulkhead enforces concurrency limits. Together, these modules support deterministic traffic management, configuration updates, and content negotiation, forming a cohesive layer for reliable API operations.

auto-narrated by the local model from this topic's module headers; links verified against the wiki index.

narrated overview -- maintained by the narration lane, module links verified against this wiki.

moduledescriptionlinesfuncs
nx_apistack_audit.nxCAP-API-AUDIT: the control-plane must-have -- a who/what/when trail for every privileged1047
nx_apistack_audit_gate.nx434
nx_apistack_breaker.nxCAP-API-BREAKER: per-dependency circuit-breaker for /api downstream calls. Pure state342
nx_apistack_breaker_gate.nxhermetic gate for CAP-API-BREAKER. Proves the CLOSED->OPEN->HALF->CLOSED/OPEN473
nx_apistack_bulkhead.nxCAP-API-BULKHEAD: concurrency isolation for /api. A bulkhead caps concurrent in-flight162
nx_apistack_bulkhead_gate.nxhermetic gate for CAP-API-BULKHEAD. Proves the concurrency cap: acquire up to max,403
nx_apistack_canary.nxCAP-API-CANARY: canary / blue-green traffic splitting for /api deploys. Deterministic242
nx_apistack_canary_gate.nxhermetic gate for CAP-API-CANARY. Proves pct=0 all-stable, pct=100 all-canary, an473
nx_apistack_census.nxthe HONEST MEASURED scorecard for making /api THE CONTROL SYSTEM (operate the whole1364
nx_apistack_configpush.nxCAP-API-CONFIGPUSH: declarative config push + hot-reload over /api. A caller POSTs new314
nx_apistack_configpush_gate.nxhermetic gate for CAP-API-CONFIGPUSH. Proves apply writes + returns a gen,455
nx_apistack_content.nxCAP-API-CONTENT: content-negotiation for /api. Reads the Accept header and picks the234
nx_apistack_content_gate.nxhermetic gate for CAP-API-CONTENT. Proves Accept matching, first-supported choice,464
nx_apistack_cors.nxCAP-API-CORS: cross-origin control for /api. DENY-BY-DEFAULT: an Origin is allowed only if443
nx_apistack_cors_gate.nxhermetic gate for CAP-API-CORS. Proves deny-by-default: allowlisted origin allowed,436
nx_apistack_idempotency.nxCAP-API-IDEMPOTENCY: exactly-once writes over /api. A control plane's write actions674
nx_apistack_idempotency_gate.nx434
nx_apistack_metrics.nxCAP-API-METRICS: request/action counters for /api observability, emitted to the264
nx_apistack_metrics_gate.nxhermetic gate for CAP-API-METRICS. Proves integer counters increment/add, stay515
nx_apistack_migrate.nxCAP-API-MIGRATE: wire /api/migrate (was 501) = ingest external HTML into a sovereign171
nx_apistack_migrate_gate.nxhermetic gate for CAP-API-MIGRATE. Proves HTML tags stripped, '|' sanitized, text415
nx_apistack_mtls.nxCAP-API-MTLS: mutual-TLS client authentication for /api via certificate-fingerprint292
nx_apistack_mtls_gate.nxhermetic gate for CAP-API-MTLS. Proves pinned fingerprint allowed, unknown denied,395
nx_apistack_oidc.nxCAP-API-OIDC: OAuth2/OIDC bridge for /api -- parse a JWT (header.payload.signature),646
nx_apistack_oidc_gate.nx465
nx_apistack_paginate.nxCAP-API-PAGINATE: deterministic cursor pagination for /api list endpoints (shards,202
nx_apistack_paginate_gate.nxhermetic gate for CAP-API-PAGINATE. Proves page counts, the walk to the last383
nx_apistack_problem.nxCAP-API-PROBLEM: RFC 7807 / RFC 9457 error contract (application/problem+json) for /api.384
nx_apistack_problem_gate.nx414
nx_apistack_ratelimit.nxCAP-API-RATELIMIT: request quotas over /api (429 on exhaustion). Deterministic553
nx_apistack_ratelimit_gate.nx533
nx_apistack_schema.nxCAP-API-SCHEMA: machine-readable request validation for /api (OpenAPI/JSON-Schema role).452
nx_apistack_schema_gate.nx404
nx_apistack_slo.nxCAP-API-SLO: service-level objective + error budget for /api, computed from the deterministic244
nx_apistack_slo_gate.nxhermetic gate for CAP-API-SLO. Proves allowed-errors, budget, breach detection, and401
nx_apistack_svctoken.nxCAP-API-SVCTOKEN: scoped machine-to-machine tokens for /api (service accounts that484
nx_apistack_svctoken_gate.nx426
nx_apistack_trace.nxCAP-API-TRACE: distributed tracing for /api via W3C traceparent354
nx_apistack_trace_gate.nxhermetic gate for CAP-API-TRACE. Proves the W3C traceparent is well-formed, the right484
nx_apistack_version.nxCAP-API-VERSION: API version negotiation for /api. Reads the requested version from a312
nx_apistack_version_gate.nxhermetic gate for CAP-API-VERSION. Proves version extraction from media-type + URL,394