Skip to content

a11oy API (package surface)

a11oy is consumed as TypeScript packages, not a public HTTP API — its governance surface is reached exclusively through the szl-holdings/platform layer. This page documents the package interface.

Packages

PackagenpmKey exports
@szl-holdings/a11oy-policypublishedCovenantPolicy, ApprovalGate, PolicyDecision
@szl-holdings/a11oy-measurementpublishedSignalScore, PRISMFrame, DriftReport
packages/knowledgeworkspaceKnowledgeGraph, OntologyQuery, DomainNode
packages/qec-integrityworkspaceQECLineage, IntegrityProof, CSSVector

CovenantPolicy.evaluate

ts
import { CovenantPolicy, type PolicyDecision } from '@szl-holdings/a11oy-policy'

const policy = new CovenantPolicy()
const decision: PolicyDecision = policy.evaluate({
  action: 'deploy-model',
  axes: {
    moralGrounding: 0.97,        // sacred, floor 0.95
    measurabilityHonesty: 0.96,  // sacred, floor 0.95
    empiricalGrounding: 0.93,    // structural, floor 0.90
    // ...remaining structural + introspection axes
  },
})

// decision.passed       → boolean (conjunctive AND over all 13 axes)
// decision.failedAxes   → string[] of axes below floor
// decision.continuumHash → receipt hash

The Λ-invariant constrains evaluation: no recommendation below the configured confidence threshold reaches the approval gate without escalation. See the a11oy flagship page for the 7-layer pipeline.

No public HTTP API is exposed by design — all calls go through the platform governance layer. An OpenAPI surface, if one is published in future, will be rendered on the API Reference index.

Doctrine v11 LOCKED · 749/14/163 · kernel c7c0ba17 · Λ = Conjecture 1 · SLSA L1 honest. Math-grounded, Quechua-rooted, zero mysticism (PURIQ v12 agentic layer is additive).