nomos
·NOMOS-SPEC-001 → 010
nomos_version 1.0.0GitHub ↗← Docs

NOMOS-SPEC-001

The .nomos specification: Governance Artifact Protocol

Status:Active
Version:2.1.0
Published:2026-01-15
Updated:2026-07-27

Abstract

NOMOS-SPEC-001 defines a portable, vendor-neutral format for packaging organisational governance policies as sealed, machine-executable artifacts (.nomos files). The specification covers artifact structure, the rule expression language, confidence classification, the cryptographic sealing procedure, the execution model, the audit trail schema, and conformance requirements for compliant runtimes.

The goals are reproducibility (identical inputs produce identical outputs), auditability (every decision is traceable to a sealed rule), and interoperability (any compliant runtime can execute any conformant artifact without access to the original policy documents). Sealed artifacts may be distributed and verified independently of the producing platform; the official TypeScript SDK (@nomosprotocol/sdk) and the NOMOS Exchange provide reference implementations of the distribution and execution layers described here.

2.0.0 was a breaking correction, not an addition. §3–§4 of v1.1.0 described an artifact structure and condition format that did not match any artifact ever produced by a conformant implementation — a real, sealed EU AI Act artifact failed validation against v1.1.0's own schema. That version replaced §3–§4 with the structure real conformant producers actually emit, verified directly against a live sealed artifact. 2.1.0 corrected §4.1 further, found by re-running the corrected parser against all 701 decisions of the same live artifact: in/contains/between never took an array literal, between and scientific-notation numbers were real and undocumented, and only exists/matches are real functions. §4.1 now matches the reference evaluator exactly, re-verified with zero parse errors across all 701 real decisions.
Amendment 2.2.0 (Draft, proposed 2026-09-27). Three additive changes, all required by NOMOS-SPEC-008; every 2.1.0 artifact stays valid. (1) data_contract.inputs.<name>.source declares where a fact may come from: action, testimony, relying_party or presenter. (2) governance.escalations[].required_consents sets how many distinct approver keys satisfy an escalation (default 1; dual control is 2). (3) New §4.6: logic.resolution.default_outcome (allow | block | escalate, with default_escalation_id for escalate) is the sealed outcome when no decision matches. A runtime MUST apply it when present and MUST report a default it applied, so a permitted-by-default result is never presented as permitted-by-rule. A NOMOS-SPEC-008 relying party MUST treat an absent default_outcome as block.
Amendment 2.3.0 (Draft, proposed 2026-10-26). Unambiguous escalation. A producer MUST NOT seal an artifact in which two escalate decisions of equal priority name different escalation_id values: whichever was listed first would govern when both apply, so an author who happened to list the dual-approval rule second would get single approval. The author gives the two decisions distinct priorities instead. A NOMOS-SPEC-008 relying party MUST refuse such an artifact for a new authorization as MALFORMED (ambiguous_escalation); historical verification under an artifact sealed earlier is unaffected. Equal-priority escalations naming the same escalation remain valid. The reference platform enforces this as the AMBIGUOUS_ESCALATION sealing gate of scripts/lint-artifact.ts; none of its 139 repository artifacts, 5 public demonstration authorities or the EU AI Act authority contains the pattern.

1–2. Conventions & Terminology

The key words MUST, MUST NOT, REQUIRED, SHALL, SHOULD, RECOMMENDED, MAY, and OPTIONAL in this document are to be interpreted as described in RFC 2119. All examples use JSON; string values MUST be UTF-8 encoded; all timestamps MUST be ISO 8601 in UTC.

ArtifactA sealed .nomos file — the output of the NOMOS compilation step. MUST be valid UTF-8 JSON.
DecisionA single declarative governance statement: a condition (when), one or more outcomes (then), and a priority. Called a "Rule" with a condition tree before v2.0.0 — the condition is a string expression, not a tree object (§4).
Verification tierHow much confidence a runtime should place in an artifact’s rules, stamped at meta.verification_tier: compiled, proven, or sovereign (§5.1). Distinct from confidence_band (§5.2) — a runtime MUST NOT conflate the two.
SealA cryptographic block appended to a frozen artifact, binding all fields (except itself and attestations) to a specific key and timestamp.
RuntimeAny system that loads a .nomos artifact and evaluates decisions against its rules.
VerdictThe outcome of a single execution. The vocabulary differs by API surface (§6).
Audit hashA SHA-256 digest that chains consecutive execution entries for a given artifact into a tamper-evident log (§7).

3. Artifact Structure

A .nomos artifact SHOULD be saved with the .nomos extension and served with media type application/vnd.nomos+json — a registered IANA media type, reviewed and approved by the IESG-designated media type expert (2026-08-14): an independently reviewed, permanent registration, citable by any implementation without reference to this repository. Implementations MUST NOT serve a sealed artifact as a bare .json file with generic Content-Type: application/json — doing so loses the distinction between "some JSON" and "a portable governance artifact" this specification exists to establish.

3.1 Top-level structure

{
  "nomos_version":  "1.0.0",
  "meta":           { ... },
  "scope":          { ... },
  "data_contract":  { ... },
  "logic":          { ... },
  "governance":     { ... },
  "execution":      { ... },
  "audit":          { ... },
  "seal":           { ... }
}
These nine keys MUST be present. An artifact MAY additionally carry agents (NOMOS-SPEC-002), provenance (compilation lifecycle record), and attestations (NOMOS-SPEC-004). Runtimes MUST ignore top-level keys they do not recognise rather than rejecting the artifact. nomos_version MUST equal "1.0.0" for artifacts conformant with this specification's structure requirements (§3–§4) — a runtime that does not recognise it MUST refuse to execute the artifact.

3.2 The eight sections

Section
Required
Carries
meta
REQUIRED
artifact_id, version (both REQUIRED), owner {org_name, org_id REQUIRED, contact REQUIRED}, tags, description, industry, jurisdictions (OPTIONAL), verification_tier (REQUIRED once sealed). Any change affecting verdict output for any previously valid input REQUIRES a meta.version increment and a new seal.
scope
REQUIRED
workflow {domain, workflow_name, workflow_key, intent} and boundaries {in_scope, out_of_scope, assumptions} — both REQUIRED; out_of_scope/assumptions MAY be empty arrays.
data_contract
REQUIRED
inputs (typed field map) and required_fields (both REQUIRED), provenance {allowed_sources, verification_methods}, confidence_policy {min_confidence_for_autonomy, min_confidence_per_field, on_low_confidence}. A runtime MUST check every required_fields entry is present before evaluating decisions, and MUST NOT evaluate with an incomplete input set.
logic
REQUIRED
variables, decisions (the ordered array — §4), resolution {conflict_policy, tie_breaker}. resolution is REQUIRED; RECOMMENDED default is collect_and_resolve + deny_wins.
governance
REQUIRED
constraints, escalations, roles (each MAY be empty), compliance {requirements, logging_level, retention_days}. Constraints MUST be enforced on every execution, independent of decisions evaluation.
execution
REQUIRED
actions {type, connector, request, idempotency} and connectors {id, kind, endpoint, auth}. connectors[].auth MUST NOT contain secrets in plaintext — reference an external secret store only.
audit
REQUIRED
event_schema, emit_on, redaction {pii_fields, strategy, hash_salt_ref} — the redaction policy a runtime MUST apply before persisting audit entries (§7); it does not itself contain entries.
seal
REQUIRED
status, hash, canonicalization, signed_by, signature, signature_algorithm — see §8. If status is sealed, signed_by and signature MUST both be non-null; a hash-only artifact is not conformant.

4. Rule Expression Language ("Nomos-Expr v1")

Each decision's when field is a string in a small, deterministic expression language — not a condition-tree object. This section is normative against the reference implementation's actual parser (server/lib/rule-evaluator.ts), re-verified directly against 701 decisions of a real, live sealed artifact — not an idealised design that was never implemented.

Category
Syntax
Example
Boolean
and, or, not
a > 5 and b == "x"
Comparison
==, !=, >, >=, <, <=
invoice_amount > 25000
Membership
in "v1,v2,v3"
item_type in "reference,periodical"
Substring
contains (case-insensitive)
applicant_notes contains "flagged"
Range
between "low,high" (inclusive)
annex_iii_point between "2,8"
Functions
exists(field), matches(field, "regex")
exists(vendor_risk_score)
in, contains, and between all take a single quoted string, not an array literal — [...] is not valid syntax; multiple values are comma-joined inside one string. Numbers MAY use scientific notation (real extracted thresholds routinely need it). There is no arithmetic — +/-/*// as binary infix operators do not exist; a threshold requiring arithmetic MUST be pre-computed into a single comparable field by the producer. Only exists and matches are real functions — no other name (len, lower, startsWith) is implemented; a when string calling one fails to parse. A runtime MUST evaluate deterministically and MUST NOT fail silently on an unparseable expression.

4.1 Decision object

{
  "id":          "<string>",
  "description": "<string>",
  "when":        "<Nomos-Expr v1 string>",
  "then":        [ { "type": "allow | block | escalate | set | emit | action", "...": "..." } ],
  "else":        [ { ... } ],
  "priority":    100,
  "provenance": {
    "source_id": "<optional>", "source_name": "<optional>",
    "extractor_version": "<optional>", "extraction_timestamp": "<optional>"
  }
}
id, description, when, then, and priority are REQUIRED; else MAY be an empty array. provenance is OPTIONAL but RECOMMENDED for any decision derived from a source document. A runtime MUST evaluate eligible decisions in descending priority order and apply outcomes per logic.resolution.conflict_policy when more than one is eligible.
A decision carries no agent permissions. Which agents may act, in which roles and under which constraints, is declared once at artifact level in the agents manifest (NOMOS-SPEC-002 §1), which the seal covers like every other section.
Outcome type
Meaning
Additional fields
allow
Permits the action
—
block
Denies the action
reason (RECOMMENDED)
escalate
Routes to human review
escalation_id referencing governance.escalations
set
Assigns a logic.variables value
variable, value
emit
Emits an audit/event record
event payload
action
Invokes a named execution.actions entry
action_name
An earlier internal execution path represents when as a structured tree object rather than a string — a distinct, older internal representation, MUST NOT be produced by new conformant producers. A runtime encountering it internally MUST convert it to the string form before treating an artifact as spec-conformant.

5. Confidence Classification

Two separate, non-interchangeable vocabularies exist in the reference deployment. A runtime MUST NOT conflate them, and a conformant producer MUST use the one appropriate to what it is producing.

5.1 Verification tier — sealed artifacts (meta.verification_tier)

Tier
Meaning
compiled
Rules extracted from policy documents (and, if provided, behavioral data), schema-valid, seal-valid. The baseline for any sealed artifact.
proven
compiled, plus measurable evidence references and a performance ledger from real behavioral data.
sovereign
proven, plus a verified compliance profile, forensic-level audit logging, and enforced governance constraints.
A runtime MUST preserve meta.verification_tier verbatim from the sealed artifact and MUST NOT infer or override it independently.

5.2 Confidence band — un-sealed public demo artifacts only

The reference deployment's public demo catalog uses a separate field, confidence_band, with values DECLARED | VALIDATED | CERTIFIED. These artifacts do not go through §8's sealing procedure and carry no seal block in the §3.2 sense. DECLARED means the rules reflect standard industry practice, not empirically validated thresholds — every artifact currently in the public demo catalog is DECLARED. VALIDATED/CERTIFIED are reserved for a forked, behaviourally-triangulated version; none is shipped as of this version.

6. Execution Model

The reference deployment exposes two separate, real execution APIs, serving different artifact populations with different authentication and response shapes. A conformant runtime implementing only one is not thereby non-conformant with the other — pick the surface matching your artifact population; do not assume the two are interchangeable.

6.1 Domain execution — POST /api/nomos/execute

Session-authenticated, for artifacts loaded via the enterprise "Domain" model. Version negotiation: send Accept-Nomos-Version: 1.0.0 for the spec-compliant ExecutionReceipt (fields include execution.status: allowed | blocked | escalated | deferred, trace.{constraints, decisions, actions, escalation}, inputs.{missing_required, confidence}); omit it for the legacy format. Content-Nomos-Version echoes which was returned.

6.2 Exchange execution — POST /api/v1/verify and POST /api/v1/verify-decision

API-key (X-Nomos-Api-Key) or session-authenticated. /verify serves the public demo catalog only (pub_* ids, no auth); /verify-decision serves everything else (art_*, Exchange catalog slugs, dom_* domain routing), routed by artifact_id prefix. The response carries verdict: approved | rejected | escalated, the matched rule, an evaluation breakdown, confidence, audit.hash, and — only when applicable, omitted otherwise rather than null — classifications, obligations, incomplete_inputs, paths_to_approval, expired_rules, replay, active_decision_type.

Disclosed gap: caller.correlation_id is accepted on both APIs and recorded in the audit trail, but neither API deduplicates or caches a response by it as of this version — a repeated call re-executes and produces a new audit entry. Treat correlation_id today as a trace identifier only, not a dedup key.
A conformant response from /api/v1/* MUST include X-Verifications-Used, X-Verifications-Limit, X-Overage, and X-Overage-Count headers.

7. Audit Trail

Every execution appends one entry to a hash chain, keyed per artifact (Domain execution) or per Studio session (Exchange execution):

entryHash   = SHA-256( previousHash + "|" + JCS(eventData) + "|" + timestamp )
genesisHash = SHA-256( "genesis:" + chainId + ":" + timestamp )   // used as previousHash for the first entry
JCS(eventData) is the RFC 8785-canonicalised event payload for that entry; "|" is a literal delimiter preventing length-extension ambiguity between the three concatenated components. A verifier MUST walk the chain from genesis to tip and confirm each entryHash recomputes correctly — any gap or mismatch indicates chain corruption.

The Exchange's separate public-query surface (a read-oriented "ask this artifact a question" endpoint, not an execution API under §6) computes a simpler, non-chained integrity hash per query: audit_hash = SHA-256(JCS({ query_id, seal_hash, inputs, verdict, queried_at })) — suitable for confirming one query response was not altered, but not a hash chain and does not itself detect a missing or reordered query.

8. Sealing Procedure

Sealing is a one-way operation. Once sealed, an artifact's payload MUST NOT be modified — any modification invalidates the seal.

Canonicalisation: runtimes MUST canonicalise using JCS (RFC 8785) for both hashing and signing — object keys sorted lexicographically at every nesting level, no insignificant whitespace, UTF-8 string escaping per the JSON spec.
seal.hash = SHA-256( JCS(artifact_without_seal_and_attestations) )
payload   = JCS({ hash: seal.hash, signed_by: seal.signed_by })   // this is what gets signed
seal and attestations (NOMOS-SPEC-004) are excluded from the hash input — seal cannot cover itself, and attestations are added after sealing by third parties without invalidating the original seal.

A conformant producer signs payload using one of, in order of preference: Ed25519 (RECOMMENDED — asymmetric, publicly verifiable with only the published public key, no shared secret); RS256/EC (asymmetric, caller-supplied key); HMAC-SHA256 (symmetric, dev/fallback only — MUST NOT be represented as publicly verifiable, since the verifier needs the same secret as the signer).

A producer that stamps status: "sealed" MUST have actually executed a signing step and populated a non-null signature — a hash-only artifact (hash populated, signature: null) is not conformant, however common a coding mistake it may be.

Ed25519 public keys are published at /.well-known/nomos-signing-keys as [{ kid, algorithm: "Ed25519", public_key_pem }]. kid is a deterministic content hash of the public key (first 16 characters of base64url-SHA-256 of the SPKI-encoded key), allowing key rotation without invalidating verification of seals made under a retired key, as long as its public key remains available.

Verification: hash_match (recompute the canonical hash, compare to seal.hash) and signature_valid (verify against the resolved public key) MUST both use timing-safe comparison, and a verifier MUST report them as distinct booleans, not only a combined verified — a hash-only artifact is a real, distinguishable state (content pinned, not signed), not identical to "verification failed."

9. Conformance

A compliant runtime: refuses to execute an artifact whose nomos_version it does not recognise; evaluates logic.decisions per §4 in descending priority order, applying conflict_policy when multiple are eligible; enforces governance.constraints on every execution independent of decision evaluation; verifies required_fields before evaluating, per whichever API surface (§6) it implements; appends a hash-chained audit entry (§7) for every execution, or a per-query audit hash for every read-oriented query; preserves meta.verification_tier verbatim (§5.1) without inferring or overriding it.

A compliant producer: generates artifacts that validate against schema/artifact.schema.json; seals per §8, populating a real, non-null signature whenever seal.status is "sealed" — never hash-only; assigns meta.verification_tier per §5.1's ascending criteria, never claiming proven or sovereign without the evidence those tiers require; populates decision provenance for every decision derived from a source document.

10. Security Considerations

Signing key protection

The signing key is the root of trust for all artifacts. For Ed25519, the private key MUST be stored in a secrets manager and never embedded in code, version control, or the artifact; only the public key is published, safely, since it cannot forge a seal. For HMAC, the shared secret is both signer and verifier and MUST be treated as a top-level secret. Making seals publicly verifiable removes the verification secret, not the signing secret.

Key provenance

Publishing a public key at /.well-known/nomos-signing-keys binds trust to the domain's TLS certificate. Deployments requiring a stronger anchor SHOULD pin the key out of band or record its publication in an append-only transparency log.

Context injection

Runtimes MUST NOT evaluate user-supplied strings as arbitrary code — when/constraint expression evaluation (§4) MUST be performed by the deterministic Nomos-Expr v1 evaluator only.

Audit trail integrity

The hash-chain audit trail (§7) is append-only. Runtimes MUST NOT expose a deletion endpoint for audit entries.

Verification tier downgrade

Altering meta.verification_tier without re-sealing constitutes misrepresentation of provenance. Runtimes MUST preserve it verbatim from the sealed artifact.

Idempotency gap

Per §6, correlation_id is not currently a dedup key on either execution API — a caller relying on it for exactly-once semantics will not get them. A real, disclosed gap, not a documentation omission.

11. Error Catalog

The two execution APIs (§6) do not share a single error-code vocabulary — a real, disclosed inconsistency, not papered over with an idealised unified table.

11.1 Domain execution

Returns { "error": "<message>" } with an HTTP status and no machine-readable code field. A caller must match on HTTP status and message text: 400 (invalid request/domain id), 401 (authentication required), 403 (access denied), 404 (not found).

11.2 Exchange execution

Returns { "error": "<message>", "code": "<UPPER_SNAKE_CASE>" } — both fields REQUIRED on this surface:

Code
HTTP
Trigger
VALIDATION_ERROR
400
Request body fails schema validation
WRONG_ENDPOINT
400
pub_* artifact id sent to /verify-decision (must use /verify)
NOT_FOUND
404
artifact_id not found
AUTH_REQUIRED
401
Non-public artifact requested without a key or session
FORBIDDEN
403
API key does not have access to this artifact
NO_RULES
400
Artifact has no governance rules to evaluate
DATA_CONTRACT_VIOLATION
422
None of the provided inputs are referenced by any rule
SCHEMA_MISMATCH
422
One or more required_fields missing from inputs
INVALID_EXECUTION_AT
422
execution_at is not a valid, non-future ISO 8601 timestamp
INVALID_KEY
401
X-Nomos-Api-Key is invalid or revoked
ALLOTMENT_EXCEEDED
402
Free monthly query allotment reached, no active paid plan
A caller integrating with both surfaces MUST branch on which one it is calling rather than assuming a shared error shape — Domain execution does not include code.

12. SDK & Distribution

The official SDK (@nomosprotocol/sdk, on npm) is a zero-dependency, fetch-based typed client, auto-retrying on rate limits and transient errors.

Method
Calls
nomos.decisions.verify(params)
POST /api/v1/verify (public) or /verify-decision (everything else), chosen by artifact_id prefix
nomos.artifacts.retrieve(id)
GET /api/v1/artifacts/:id
nomos.artifacts.list(params)
GET /api/v1/artifacts — filter by band, domain, jurisdiction
nomos.artifacts.schema(id)
GET /api/v1/artifacts/:id/schema — field names/types the rules reference
nomos.governance.generate(params)
POST /api/v1/generate-governance — compile an artifact from policy text
nomos.governance.detectContradictions(params)
POST /api/v1/detect-contradictions
Typed errors (NomosAuthenticationError, NomosAuthorizationError, NomosRateLimitError, NomosValidationError, NomosNotFoundError, NomosAPIError, NomosNetworkError) all extend NomosError, carrying a lowercase_snake_case code from NomosErrorCode — distinct from the transport-level code values in §11.2.

The NOMOS Exchange is the distribution layer for sealed Studio artifacts: publishers list a sealed artifact, consumers query it via §6.2 or fork it into their own Studio session. The reference deployment ships five pre-built, un-sealed demo artifacts callable via POST /api/v1/verify with no authentication — pub_lending_v1, pub_refund_v1, pub_fraud_v1, pub_hr_leave_v1, pub_kyc_v1 — all currently DECLARED (§5.2).

End of NOMOS-SPEC-001 v2.1.0
NOMOS-SPEC-002ACTIVE

Multi-Agent Governance Extension

Extends NOMOS-SPEC-001 v2.0.0 · Agents manifest · Runtime guard algorithm

Status

Active

Version

1.2.0

Published

2026-06-05

Updated

2026-07-27

Abstract

NOMOS-SPEC-001 defines a sealed governance artifact and a deterministic execution model. It specifies what decisions to make. It does not specify who may request those decisions.

This document extends NOMOS-SPEC-001 with an agents manifest — a top-level field that registers the per-agent permissions, deny lists, and audit requirements that a compliant runtime MUST enforce before rule evaluation begins. It also defines the runtime guard algorithm and the permissive-mode default for artifacts that omit the manifest.

NOMOS-SPEC-001 artifacts remain valid under a NOMOS-SPEC-002 runtime without modification. The agents field is optional and defaults to permissive mode.

The key words MUST, MUST NOT, SHOULD, and MAY in this document are to be interpreted as described in RFC 2119.

1. Agents Manifest

The agents field is a top-level object in the artifact, keyed by agent identifier. Each value is an AgentDefinition. The field MUST be included in the seal hash computation.

There is no separate version marker for this extension — NOMOS-SPEC-001 v2.0.0 fixed nomos_version to a single protocol version ("1.0.0") shared by every artifact, extended or not. A runtime detects NOMOS-SPEC-002 support requirements structurally, by the presence of the agents field itself: absent or empty ({}), any conformant NOMOS-SPEC-001 runtime — including one with no NOMOS-SPEC-002 support at all — MAY execute it directly; present and non-empty, a runtime that does not implement the guard MUST NOT execute the artifact as if agents were absent — doing so would silently drop every cannot_call restriction the artifact declares. It MUST instead refuse execution with an error such as agents_manifest_unsupported, naming the specific gap rather than a generic version mismatch. This replaced an earlier spec_version field mechanism (pre-2026-07-27) that depended on a field NOMOS-SPEC-001 v2.0.0 no longer has — the safety property is unchanged, only the detection mechanism moved.

1.1 Agent Identifier

Agent identifiers are stable strings used by callers to identify themselves. They MUST match the pattern [a-zA-Z0-9_-]+, maximum 128 characters.

1.2 AgentDefinition fields

Field
Type
Description
display_name
string (optional)
Human-readable label. Not used by the runtime.
permissions
string[] (required)
Action names from execution.actions the agent may propose. Any unlisted action is blocked.
cannot_call
string[] (optional)
Explicit deny list. Blocked regardless of permissions. Deny list takes precedence over allow list.
audit_level
"minimal"|"standard"|"forensic"
Overrides the global logging level for this agent. Defaults to "standard".
authority
object (RESERVED)
Named authority overrides. MUST be stored. MUST NOT gate execution in this version.
output_contract
object (RESERVED)
Required output fields for downstream propagation. MUST be stored. MUST NOT gate execution in this version.
constraints
SpecAgentConstraint[] (optional)
Structured input constraints evaluated by the runtime guard (Phase 5) before rule evaluation. Each entry: { field, operator, value }. Operators: lt lte gt gte eq neq. Missing field → skip. Type mismatch on numeric operator → skip.
"agents": {
  "loan-processor": {
    "display_name": "Loan Processing Agent",
    "permissions":  ["flag", "hold", "calculate"],
    "cannot_call":  ["auto_approve"],
    "constraints":  [
      { "field": "risk_score",   "operator": "lt",  "value": 0.6 },
      { "field": "jurisdiction", "operator": "eq",  "value": "US" }
    ],
    "audit_level":  "standard"
  },
  "compliance-reviewer": {
    "display_name": "Compliance Review Agent",
    "permissions":  ["auto_approve", "reject", "escalate"],
    "cannot_call":  [],
    "constraints":  [],
    "audit_level":  "forensic"
  }
}

2. Runtime Guard

A NOMOS-SPEC-002 conformant runtime MUST execute the following six phases, in order, before calling the rule evaluation pipeline. The guard runs on every execution request.

2.1 Guard modes

Advisory mode (recommended default) — Phase 3 hard-blocks; Phases 2, 4, and 6 produce an escalation tag on the result but execution proceeds. Enforce mode — all BLOCK results terminate execution. Mode MUST NOT require artifact re-sealing.

2.2 Phase definitions

Phase
Name
Behaviour
1
Manifest presence
No agents field → permissive pass. Emits guard_permissive.
2
Agent registration
agent_id not in manifest → ESCALATE (advisory) / BLOCK (enforce).
3
Deny list
Action in cannot_call → BLOCK in both modes. Cannot be downgraded.
4
Allow list
Action not in permissions → BLOCK (enforce) / ESCALATE tag (advisory).
5
Constraints
Evaluate each SpecAgentConstraint against the incoming request inputs. Missing field → skip. Type mismatch on numeric operator → skip. Violation → BLOCK (enforce) / ESCALATE (advisory).
6
Audit level
Call does not meet agent audit_level → ESCALATE in both modes.
Phase 3 (deny list) MUST produce a hard block in both advisory and enforce mode. It MUST NOT be downgraded to an advisory tag. This is the only phase with this property.

2.3 Guard audit events

All guard decisions MUST be emitted to the artifact's audit stream. Guard events MUST be included at all audit levels, including minimal. They MUST NOT be suppressible.

Event type
Phase
Condition
guard_permissive
1
No manifest; permissive pass-through
guard_unknown_agent
2
agent_id not in manifest
guard_deny_list_hit
3
Action in cannot_call — always blocks
guard_permission_denied
4
Action not in permissions
guard_constraint_violated
5
Input value fails a SpecAgentConstraint check
guard_audit_insufficient
6
Call does not satisfy audit_level
guard_pass
—
All phases cleared

3. Permissive Mode

An artifact with agents: {} or no agents key runs in permissive mode. In permissive mode a compliant runtime:

MUST skip Phases 2–6.
MUST emit a guard_permissive event for each execution.
MUST tag each result with guard_mode: "permissive".
MUST NOT reject the execution request.

Compliant authoring tools SHOULD present a non-blocking advisory when producing a permissive-mode artifact. The advisory MUST NOT prevent sealing.

NOMOS-SPEC-001 artifacts processed by a NOMOS-SPEC-002 runtime are treated as permissive-mode artifacts. No modification, re-sealing, or migration is required.

4. Execution Request Extension

Execution requests to a NOMOS-SPEC-002 runtime MUST include an agent_id field when the artifact's agents manifest is non-empty:

{
  "artifact_id": "art_1c76283d-fecc-4dd6-b33e-0e3a13407933",
  "agent_id":    "risk-scorer",
  "action":      "escalate",
  "context":     { ... }
}
If agent_id is absent and the manifest is non-empty: in advisory mode the call is treated as an unregistered agent (Phase 2, escalate) and proceeds; in enforce mode it is blocked at Phase 2. If agent_id is absent and the artifact is in permissive mode, the call proceeds normally and agent_id is recorded as null in the audit trail.

5. Immutability

The agents manifest is included in the seal hash. A sealed artifact's agent permissions, deny lists, and audit levels are cryptographically bound to the same hash as the rules — changing an agent's permissions REQUIRES creating a new sealed version with a new artifact_id or incremented version. The audit trail can then unambiguously record which agents manifest was in effect for any historical decision.

A future specification MAY define a mutable agents manifest — a separately signed document linked by artifact_id but excluded from the seal hash, letting the caller set evolve without re-sealing the rules. Until that specification is published, compliant runtimes MUST treat the agents field as sealed and immutable.

6. Conformance

A runtime is NOMOS-SPEC-002 conformant if it satisfies all NOMOS-SPEC-001 conformance requirements and the following additional requirements:

MUST execute the six-phase guard before every rule evaluation call.
MUST hard-block Phase 3 (deny list) in both advisory and enforce mode.
MUST evaluate Phase 5 (constraints): walk each SpecAgentConstraint, skip on missing field or type mismatch, block or escalate on violation.
MUST emit all guard event types defined in §2.3, including guard_constraint_violated.
MUST include guard events in the audit trail at all audit levels.
MUST tag permissive-mode executions with guard_mode: "permissive".
MUST store and expose authority and output_contract without modification.
MUST include the agents field in seal hash computation.
MUST NOT gate execution on authority or output_contract values.
MUST NOT suppress guard audit events.
MUST NOT allow agent_id omission to bypass Phase 2 in enforce mode.
SHOULD default to advisory mode.
SHOULD warn authoring tools when sealing a permissive-mode artifact.
SHOULD validate permissions and cannot_call against execution.actions at seal time (warning, not error).

7. Security Considerations

Agent ID spoofing

The agent_id field in execution requests is caller-supplied. A malicious caller can claim any agent identity — the guard does not authenticate the caller, it only checks whether the claimed identity is allowed to perform the requested action. Authentication of the caller's claimed identity is outside the scope of this specification; deployments requiring it SHOULD use transport-layer credentials (API keys, mutual TLS, signed JWTs) to bind the authenticated identity to agent_id before the request reaches the runtime.

Permissive mode exposure

Artifacts sealed in permissive mode provide no caller verification. The audit trail records all calls, but there is no mechanism to detect unauthorized callers — only to observe their behaviour after the fact. Operators SHOULD monitor the guard_permissive event rate and migrate to a registered agents manifest once the caller set stabilises.

Deny list completeness

The deny list (cannot_call) is only as complete as the author makes it — an agent with permissions: ["approve", "escalate"] and an empty cannot_call is not blocked from approve, it is explicitly permitted. The allow list is the primary control; the deny list is a belt-and-suspenders check for high-risk actions where the author wants a hard guarantee that overrides any future permission additions.

8. SDK Support

The official TypeScript SDK (@nomosprotocol/sdk) surfaces agent fields transparently — callers pass agent_id as part of the decisions.verify() call, forwarded to the runtime via an x-agent-id header when the SDK detects a NOMOS-SPEC-002 artifact. The SDK does not validate agent manifests client-side; guard evaluation is runtime-only (§2).

Guard phase failures are surfaced as typed NomosAuthorizationError responses with a guard_phase field indicating which phase blocked the call. Runtimes SHOULD include guard_mode ("permissive" | "advisory" | "enforce") in every verdict response so SDK consumers can detect the active guard posture.
End of NOMOS-SPEC-002 v1.2.0
NOMOS-SPEC-003ACTIVE

Temporal Validity and Staleness Signalling

Extends NOMOS-SPEC-001 v2.0.0 · NOMOS-SPEC-002 v1.2.0 · Time-bounded rules · Artifact freshness advisory

Status

Active

Version

1.3.1

Published

2026-06-24

Abstract

NOMOS-SPEC-001 defines governance rules as static — once sealed, a rule applies until the artifact is deprecated. Many institutional rules are not timeless: compliance deadlines, promotional windows, and regulatory transition periods are inherently temporal. Without first-class time bounds, authors must create and deprecate entire artifacts to handle transitions that are structurally just date ranges.

This document adds valid_from and valid_until optional fields to the Rule schema, allowing a single artifact to express multiple time-bounded rule sets sealed together. It also introduces the staleness signal — a passive advisory in the execution response envelope that fires when an artifact's behavioral baseline has grown stale. The signal is informational only and never changes the verdict.

NOMOS-SPEC-001 and NOMOS-SPEC-002 artifacts remain valid under a NOMOS-SPEC-003 runtime without modification.

The key words MUST, MUST NOT, SHOULD, and MAY in this document are to be interpreted as described in RFC 2119.

1. Temporal Validity — Rule Schema Extension

1.1 New fields

Two optional fields are added to the Rule object defined in NOMOS-SPEC-001 §3:

Field
Type
Required
Description
valid_from
string (ISO 8601 UTC)
OPTIONAL
Rule is inactive before this instant. Format: "2026-01-01T00:00:00Z".
valid_until
string (ISO 8601 UTC)
OPTIONAL
Rule is inactive at and after this instant.

1.2 Interval semantics

The temporal validity interval is half-open: [valid_from, valid_until).

1.

valid_from present, execution instant before valid_from → rule MUST be skipped.

2.

valid_until present, execution instant at or after valid_until → rule MUST be skipped.

3.

Neither field present → rule is unconditionally active (all SPEC-001/002 behavior preserved).

4.

Only valid_from → activates at that instant, never expires.

5.

Only valid_until → active from the beginning of time until that instant.

1.3 Seal integrity

valid_from and valid_until are part of the rule object and are covered by the artifact seal. They MUST NOT be modified after sealing. Any modification invalidates the seal hash.
// Regulatory cutover — two rules, one artifact
{
  "id": "legacy_threshold",
  "text": "Approve if amount <= 50000 (pre-2026 threshold)",
  "condition": { "op": "lte", "field": "amount", "value": 50000 },
  "action": "ALLOW",
  "priority": 10,
  "source": "policy",
  "valid_until": "2026-01-01T00:00:00Z"
},
{
  "id": "updated_threshold",
  "text": "Approve if amount <= 35000 (2026 threshold)",
  "condition": { "op": "lte", "field": "amount", "value": 35000 },
  "action": "ALLOW",
  "priority": 10,
  "source": "policy",
  "valid_from": "2026-01-01T00:00:00Z"
}

2. Runtime Evaluation Algorithm

A NOMOS-SPEC-003 compliant runtime MUST extend the rule evaluation loop from NOMOS-SPEC-001 §3.5:

1.

Capture the execution instant as a single timestamp at the start of the execution call. This value MUST NOT change during evaluation of any rule in this execution. The same value MUST be used for the ts field in the response.

2.

For each rule, before evaluating the condition tree: check valid_from and valid_until against the execution instant per §1.2. If the rule is outside its temporal window, record a trace entry with result: "expired" and continue to the next rule.

3.

Rules that pass temporal bounds proceed to condition evaluation per NOMOS-SPEC-001 §3.5.

// Pseudocode — extended rule loop
execution_now = capture_utc_timestamp()  // once, before any rule

for rule in artifact.rules.sort(priority):
  if rule.valid_from  and execution_now < rule.valid_from:
    trace.append({ rule_id: rule.id, result: "expired" })
    continue
  if rule.valid_until and execution_now >= rule.valid_until:
    trace.append({ rule_id: rule.id, result: "expired" })
    continue
  // normal condition evaluation ...

3. Audit Trace Extension

3.1 Extended result values

The result field in a decision trace entry (NOMOS-SPEC-001 §12) is extended:

Value
Meaning
"matched"
Rule condition evaluated to true (existing)
"not_matched"
Rule condition evaluated to false (existing)
"error"
Condition evaluation produced an error (existing)
"expired"
Rule was skipped due to temporal bounds — NEW in SPEC-003

3.2 Audit requirement

A compliant runtime MUST record a trace entry with result: "expired" for every rule skipped due to temporal bounds. The audit trail MUST reflect the complete rule set considered at execution time — including rules that were present but outside their active window. A verifier MUST be able to determine, from the audit trace alone, which rules were active and which were expired at the moment of each past decision.
// Audit trace — execution on 2026-06-01 (after regulatory cutover)
"decision_trace": [
  { "decision_id": "legacy_threshold",  "result": "expired"      },
  { "decision_id": "updated_threshold", "result": "matched",
    "outcome": "allow"                                            }
]

4. Staleness Signal

4.1 Triangulation baseline

When an artifact is sealed following a triangulation run (validation against real decision data), the compliant runtime SHOULD record a triangulation baseline:

Field
Type
Description
triangulated_at
string (ISO 8601 UTC)
Timestamp of the triangulation run
decision_volume_at_triangulation
integer
Execution count against this artifact at triangulation time

This baseline is stored by the runtime, not embedded in the sealed artifact — keyed by artifact_id + artifact_version.

A new baseline record MUST be created when a new artifact version is sealed; it MUST NOT overwrite the baseline of a prior version. A baseline record MUST NOT be modified after it is written — a re-triangulation creates a new baseline for the new version produced by re-sealing. A forked artifact does not inherit the source artifact's baseline; it has none until it is sealed following its own triangulation run.

4.2 Delta computation and threshold

delta = current_execution_count - decision_volume_at_triangulation

default staleness_threshold = 500
Approximate counting is acceptable. The staleness signal is advisory; exact global consistency of the execution counter is not required. In distributed or multi-region deployments, counters may drift — a delta that is occasionally imprecise produces false positives or late false negatives, neither of which affects the verdict. Implementations MUST NOT block or delay execution responses to achieve a strongly consistent count.
If delta ≥ staleness_threshold AND a triangulation baseline exists, the runtime MUST include a staleness_advisory in the execution response. The advisory MUST NOT affect the verdict, audit hash, or any other required response field. If no baseline exists (e.g. artifact sealed in policy-only Quick Mode), the signal MUST NOT be emitted.

5. Execution Response Extension

One optional field is added to the execution response defined in NOMOS-SPEC-001 §12:

5.1 staleness_advisory

Field
Type
Required
Description
triangulated_at
string (ISO 8601 UTC)
REQUIRED (when present)
Timestamp of the last triangulation run
decisions_since_triangulation
integer
REQUIRED (when present)
Staleness delta at time of this execution
threshold
integer
REQUIRED (when present)
The threshold that was exceeded
recommendation
string
REQUIRED (when present)
Always "consider_retriangulation"
{
  "verdict":    "proceed",
  "allowed":    true,
  "artifact_id": "art_1c76283d-...",
  "ts":         "2026-06-24T14:00:00Z",
  "audit_hash": "a3f9c1d2e4b5f6...",
  "contradictions": 0,

  "staleness_advisory": {
    "triangulated_at":              "2026-05-30T09:41:00Z",
    "decisions_since_triangulation": 503,
    "threshold":                    500,
    "recommendation":               "consider_retriangulation"
  }
}

6. Conformance

A runtime claims NOMOS-SPEC-003 conformance if it satisfies all NOMOS-SPEC-001 requirements and the following:

MUST capture the execution instant once per call and use it for all temporal bound checks in that call.
MUST check valid_from / valid_until before evaluating any rule's condition tree.
MUST record result: "expired" in the trace for every temporally skipped rule.
MUST record the triangulation baseline when sealing after a triangulation run.
MUST include staleness_advisory when delta ≥ threshold and a baseline exists.
MUST NOT allow the staleness advisory to affect the verdict or audit hash.
MUST execute NOMOS-SPEC-001 and NOMOS-SPEC-002 artifacts identically to prior spec versions.

6.1 Conformance levels

Level
Requirements
Temporal-only
§1, §2, §3 — temporal bounds implemented; staleness not required
Full
§1, §2, §3, §4, §5 — temporal bounds + staleness signal

7. Deterministic Replay

A NOMOS-SPEC-003 compliant runtime MUST support an optional execution_at field in the execution request. When present, the runtime uses that timestamp as the execution instant instead of the current clock. This enables a caller to reconstruct exactly what verdict would have been produced at any past moment — a requirement for regulatory audit, incident investigation, and backtesting.

7.1 execution_at field

Field
Type
Required
Description
execution_at
string (ISO 8601 UTC)
OPTIONAL
The instant to use for temporal bound evaluation. MUST be ≤ the server's current clock. Future timestamps MUST be rejected with 422.

7.2 Runtime behaviour

1.

If execution_at is present, parse it as an ISO 8601 UTC datetime. If parsing fails, return 422 INVALID_EXECUTION_AT.

2.

If execution_at is in the future (strictly after the server clock), return 422 INVALID_EXECUTION_AT. Future replay is not permitted.

3.

Set executionNow = execution_at. Use this value for all temporal bound checks per §2. The same value MUST be used for the ts field in the response.

4.

Persist execution_at to the audit record so a verifier can confirm which instant was used.

5.

Include replay: true in the response envelope when execution_at was supplied.

7.3 Determinism guarantee

Given the same sealed artifact, the same inputs, and the same execution_at, a conformant runtime MUST produce an identical verdict on every invocation. This guarantee holds as long as the artifact is unmodified. Implementations MUST NOT introduce any non-deterministic state (random seeds, external service calls that may differ) into the rule evaluation path during replay.
Replay executions SHOULD be written to the audit trail with a distinct marker (replay: true). They SHOULD NOT increment quota counters, staleness deltas, or drift metrics — they are observations, not new decisions.
// Replay request — "what verdict would have fired on 2026-01-01?"
POST /api/v1/verify-decision
{
  "artifact_id":  "art_7f3c9a...",
  "decision":     "loan_application_review",
  "inputs":       { "amount": 45000, "credit_score": 730 },
  "execution_at": "2026-01-01T00:00:00Z"
}

// Response
{
  "allowed":     false,
  "outcome":     "escalated",
  "ts":          "2026-01-01T00:00:00Z",
  "replay":      true,
  "execution_at": "2026-01-01T00:00:00Z",
  "expired_rules": ["updated_threshold"],
  "audit_hash":  "c9d6e3f0a7b4c1d8..."
}

8. Security Considerations

Clock integrity

Temporal bounds depend on the runtime clock. A compromised or manipulated clock can cause active rules to appear expired, or expired rules to appear active. Runtimes operating in high-integrity environments SHOULD use a trusted time source (NTP with authentication, HSM clock); the execution instant recorded in the audit trace and the response's ts field lets a verifier cross-reference it against external time sources. In architectures where the calling service and the policy runtime are separate processes, clock skew between hosts can make the same rule appear active on one node and expired on another — the correct mitigation is not to fix clocks (drift is unavoidable) but to use execution_at (§7): the initiating service captures one timestamp from its own clock and propagates it, eliminating inter-service skew. Implementations operating as policy sidecars or remote services SHOULD document this pattern and encourage callers to supply execution_at explicitly.

Staleness advisory integrity

The staleness_advisory is computed from the runtime's own execution log and is not part of the sealed artifact — it cannot be forged by an artifact author, but it can be omitted by a non-compliant runtime. Consumers relying on it for governance assurance SHOULD verify the runtime is NOMOS-SPEC-003 conformant before treating its absence as evidence of freshness.

Replay integrity

The execution_at field is caller-supplied and not part of the sealed artifact. A malicious caller could supply any past timestamp to observe how the artifact would have behaved at a different moment — by design, since historical verdicts are not secret. Runtimes MUST reject future timestamps to prevent speculation about rules not yet active; replay executions SHOULD be marked in the audit trail so auditors can distinguish live decisions from retrospective reconstructions. The determinism guarantee means the verdict for a given (artifact, inputs, execution_at) triple is reproducible by anyone holding the artifact and inputs — treat the artifact as a public document if replay transparency is a concern.

NOMOS-SPEC-004ACTIVE

Composable Artifacts and Third-Party Attestations

Extends NOMOS-SPEC-001 v2.0.0 · NOMOS-SPEC-002 v1.2.0 · NOMOS-SPEC-003 v1.3.1 · One base rule set, many children · Regulator/auditor co-signing

Status

Active

Version

1.4.0

Published

2026-07-13

Abstract

Two optional, backward-compatible capabilities. Composition solves a maintenance problem: the same rule — "a teacher needs a Bachelor's degree", "escalate cross-border transactions over AED 10,000" — is copied across many artifacts, and the copies drift. A base artifact owns the shared rules; a child declares extends and carries only its overlay (the rules it overrides, adds, or removes). The child's effective rule set is resolved at build time into a single self-contained sealed artifact — the runtime and verifier need nothing but the child.

Attestations add a second signature: a seal proves the issuer produced an artifact and it has not changed; an attestation is a detached signature by a different party (a regulator, auditor, or governing authority) recording that they reviewed and stand behind one specific version. Neither feature changes how a sealed artifact evaluates — composition is a pre-seal transform, attestation is a post-seal annotation.

The key words MUST, MUST NOT, SHOULD, and MAY in this document are to be interpreted as described in RFC 2119.

1. Composition — the extends overlay

A child artifact is produced from a base artifact and an overlay. The overlay is the child's only original content:

{
  "extends":  { "artifact_id": "khda_teacher_base", "version": "2.0.0", "seal_hash": "…" },
  "overlay": {
    "decisions": [ /* auto-classified against the base by id: same id ⇒ override, new id ⇒ local */ ],
    "removed":   [ "police_clearance" ],
    "variables": { /* derived values to add/override on the base's */ }
  }
}
A composed artifact MUST carry a composition provenance block recording what was inherited, overridden, removed, and local, plus extends.seal_hash pinning the exact base version inherited. It is written before sealing and is therefore covered by the seal.
The sealed child is self-contained. A runtime MUST NOT require the base to evaluate it; a verifier MUST NOT require the base to verify it. "Change the shared rule once, everywhere" is realised by re-composition — when the base advances, each child is re-composed against the new base with its overlay re-applied, so base updates flow in while the child's own overrides survive.

2. Merge Algorithm

Given the base's ordered decisions and an overlay, a conformant composer MUST produce the merged list deterministically: walk the base in order — drop ids in removed; where an overlay decision shares a base id, emit the overlay decision in the base's position (an override); otherwise emit the base decision (inherited). Then append overlay decisions with no base counterpart, in overlay order (local). Merge variables (overlay wins).
Given the same base, overlay, and a pinned composed_at, output MUST be byte-identical. A removed id absent from the base is a no-op recorded as a warning, not an error.
Because composition flattens base and overlay into one set, a producer MUST be able to run contradiction detection over the merged set before sealing, so a child override or addition that conflicts with an inherited base rule is caught. Conflicts spanning the inherited/child boundary SHOULD be reported distinctly (cross-tree).

3. Attestations

An attestation is a detached signature, in a top-level attestations array, added after sealing by a party other than the issuer:

{
  "attester":         { "name": "KHDA", "org_id": "27", "role": "regulator" },
  "statement":        "Reviewed and approved for AY2026",
  "artifact_hash":    "a3f9c1d2e4b5…",   // MUST equal the artifact's seal.hash
  "artifact_version": "1.2.0",
  "algorithm": "Ed25519",
  "kid":       "…",                      // attester public-key id
  "signature": "…",                      // base64 Ed25519 over the canonical payload
  "attested_at": "2026-07-13T00:00:00Z",
  "revoked_at":  null
}
The signature is over JCS({ artifact_hash, artifact_version, attester, statement, attested_at }) — and nothing else. A producer MUST persist the exact attested_at string that was signed.
A verifier MUST check both: (1) the Ed25519 signature against the attester's public key (resolved by kid at /.well-known/nomos-signing-keys, where org-scoped keys carry an org_id), and (2) the binding — artifact_hash == seal.hash. The binding check prevents replaying a genuine attestation onto a different version.
An attester MAY withdraw an attestation via revoked_at. A revoked attestation remains cryptographically genuine but MUST be treated as not valid for reliance.

4. Seal-Hash Exclusion

The seal-hash computation MUST exclude both seal and attestations. The seal covers the artifact minus these two fields. This is what allows an attestation to be appended (or removed) without invalidating the seal.
This is backward compatible: a NOMOS-SPEC-001 artifact has no attestations field, so the computation is unchanged for every existing artifact. Verifiers MUST strip attestations before recomputing the hash.

5. Conformance

Either feature MAY be implemented independently; both are optional. If composition is present, the merged logic MUST be consistent with §2 against the referenced base. If attestations is present, every entry MUST verify under §3 or be reported as invalid — a consumer MUST NOT treat an unbound or signature-invalid attestation as an endorsement. A producer that supports attestations MUST exclude attestations from the seal hash (§4).

6. Security Considerations

Composition does not launder authority

A child that extends a base still stands on its own seal — inheriting a base rule is not a claim that the base's authority signed the child. composition.extends.seal_hash records which base version was the input, for audit.

Attestations are additive, not gating

Presence of an attestation does not change evaluation; absence does not block it. A relying party decides how much an attestation is worth.

Replay

The binding check (§3) is mandatory precisely because a signed attestation is portable — without it, a valid attestation for version A could be presented alongside version B.

NOMOS-SPEC-005DRAFT

Public Query Extension

Extends NOMOS-SPEC-001 v2.0.0 · Keyless queries · Transcripts · Guided interaction · Decision atlas

Status

Draft

Version

1.5.0

Published

2026-07-22

Abstract

NOMOS-SPEC-001 §6 specifies an authenticated execution model — API key or session, domain_id scoping, a caller object. It is not the right shape for asking a public artifact — a published, sealed policy anyone should be able to query — whether an action is allowed, with zero setup. This document specifies that mode: wholly additive, no existing required field touched, a runtime implementing only the authenticated model remains fully conformant without it.

Four capabilities: public query (§1, MUST) — a keyless request/response for a verdict; transcript retrieval (§2, MUST) — fetching a past query by id, unchanged, any time; guided interaction (§3, RECOMMENDED) — a stateless endpoint compiling an artifact's rules into progressive plain-language screens; and the decision atlas (§4, OPTIONAL) — the whole rule set as browsable data. None change how a sealed artifact evaluates — this is an alternative transport and authentication mode around NOMOS-SPEC-001 §6.4's existing evaluation semantics, not a redefinition of them.

The key words MUST, MUST NOT, SHOULD, and MAY in this document are to be interpreted as described in RFC 2119.

1. Public Query

Submit POST /query against a public artifact — no API key, session, domain_id, or caller required or accepted:

{
  "inputs": { "<field>": "<value>", ... },
  "action": "<optional label, ≤ 200 chars>"
}
Field names in inputs SHOULD match the artifact's data contract; a runtime MUST NOT reject unknown keys, and MUST NOT silently default an absent field to false/0/"" when evaluating a condition that depends on it.
{
  "verdict":                    "AUTHORIZED | DENIED | ESCALATED",
  "verdict_description":        "<string>",
  "matched_rule_id":            "<string | null>",
  "open_higher_priority_count": "<integer>",
  "query_id":                   "<string>",
  "audit_hash":                 "<string>",
  "queried_at":                 "<ISO 8601 UTC>",
  "latency_ms":                 "<integer>"
}
verdict is one of three: AUTHORIZED — permitted under the artifact's rules; DENIED — a blocking rule matched, and the caller MUST NOT proceed; ESCALATED — no rule reached a definitive outcome, or a rule explicitly requires human review. query_id MUST be unguessable (≥ 80 bits of entropy) — a bearer capability to one past query, not a sequential id. audit_hash binds query_id, the artifact's seal hash, inputs, verdict, and queried_at, and MUST be independently re-computable by any transcript holder without calling the runtime.

1.1 Completeness disclosure

A query MAY be submitted with inputs that leave some rule conditions unresolved — deliberately, so a caller who does not yet know every fact still gets a real verdict rather than an exhaustive form first. open_higher_priority_count is the count of rules with priority strictly higher than the matched rule whose condition evaluates to unknown given the supplied inputs.

open_higher_priority_count > 0 is a disclosure, not an error, and MUST NOT block returning a verdict. It MUST be computed once, at evaluation time, from the exact rule set bound in audit_hash — never recomputed later against a possibly-revised rule set — and MUST NOT be included in the audit_hash computation itself, since it is independently re-derivable and not itself a fact being attested to.

2. Transcript Retrieval

GET /queries/{query_id}, no authentication, returns the same object as §1's response, unchanged, at any point after the original query.

Transcripts are permanent and MUST NOT be mutated or deleted by the runtime once minted. An id the runtime never minted, or one whose artifact has since been withdrawn, MUST return HTTP 404 — a runtime MUST NOT fabricate a plausible-looking response for an unknown id.
audit_hash MUST be a content hash (e.g. SHA-256) over exactly { query_id, seal_hash, inputs, verdict, queried_at }, canonically serialised — independently recomputable by any transcript holder from the artifact's public seal hash and the transcript's own fields, without calling the runtime. This is a spot-check of transcript integrity; it is not the artifact's own NOMOS-SPEC-001 §8.1 seal and does not substitute for it.

3. Guided Interaction (RECOMMENDED)

A stateless endpoint that compiles an artifact's own rules into a small number of screens, so a form, wizard, or chat flow can be built without hardcoding field names. Statelessness is normative: the response depends only on which fact keys are present in inputs (a field being null counts as present — "asked, not sure" — distinct from absent). A runtime MUST NOT require session state to interpret the next call.

Exactly one of three screens per request, chosen as a pure function of which fields are present: situation (ranked, high-signal fields, offered first), checklist (single-condition gate rules, grouped by consequence), and conditional_verdict (a provisional or firm verdict plus every still-open higher-priority condition as a resolvable caveat).

A situation option's source field MUST honestly reflect its provenance — definition, annex, rule_graph, authored, or unsourced — and a runtime MUST NOT present a derived or authored label as if it came from the artifact's own defined text. Labels MUST be produced deterministically from the artifact's own contents, and MUST NOT be generated by a language model at request time.
A conditional_verdict's firm MUST be true if and only if caveats is empty, and when firm is true, submitting the same inputs to §1 MUST produce the identical verdict and matched_rule_id — a conditional verdict MUST NOT diverge from the real evaluation it summarises.
A runtime MUST NOT expand one caller choice into multiple asserted facts unless each is independently shown and confirmable — the same principle as §1's prohibition on defaulting missing fields. A fact enters inputs only when a caller actually provided it.

4. Decision Atlas (OPTIONAL)

GET /atlas, no authentication. Every decision-bearing rule in the artifact, grouped by the verdict it produces if matched, using the rule's own description text. Informational/non-decision rules MUST be excluded from every count and group.

This endpoint deliberately carries no provenance/citation data unless the runtime has independently verified that provenance against the source document — an unverified citation is worse than none.

5. Conformance & Security

A runtime MAY implement any subset of §1–4 and describe itself as conformant to the sections it implements; implementing any part of this document has no effect on NOMOS-SPEC-001–004 conformance.
No authentication is not no accountability: a public query still mints a permanent transcript, and runtimes SHOULD apply rate limiting independent of this specification. Because open_higher_priority_count is excluded from audit_hash, a runtime MUST compute it server-side at evaluation time — never accept it as caller-supplied, never omit it to imply completeness that was not verified.
NOMOS-SPEC-006ACTIVE

Artifact Revocation

Extends NOMOS-SPEC-001 v2.1.0, NOMOS-SPEC-004 v1.4.0 · Detached, issuer-signed withdrawal of a sealed version

Status

Active

Version

1.6.0

Published

2026-08-25

Abstract

A seal (NOMOS-SPEC-001 §8) proves an artifact was produced by a given issuer and has not been altered since. It says nothing about whether that issuer still stands behind it today. NOMOS-SPEC-003 §6's staleness signal is adjacent but not this — advisory drift, computed by the runtime, never affecting the verdict. NOMOS-SPEC-004 §2.5 is adjacent but not this either — it lets a third party withdraw its own endorsement of a version it does not own. Neither gives the issuer itself a way to say "this artifact is no longer authoritative": a compromised signing key, an artifact sealed from corrupted source data, a regulatory order to withdraw a ruleset.

This document specifies that mechanism as a detached signed statement — never a mutation of the sealed artifact, for the same reason NOMOS-SPEC-004 attestations are detached: the seal must never need to change after sealing. It defines the statement (§1), a signed, dated aggregation for offline bulk-checking (§2, the CRL-equivalent), normative verifier behaviour including the honest handling of an unreachable revocation source (§3), and a cache-freshness hint for callers holding a verdict in memory (§4). Revocation is issuer-only in this version — only the key that sealed a version may revoke it, mirroring NOMOS-SPEC-004 §2.5's attester-revokes-its-own-attestation model exactly. No new authority concept.

The key words MUST, MUST NOT, SHOULD, and MAY are to be interpreted as described in RFC 2119. This document deliberately does not reuse the field name revoked_at — NOMOS-SPEC-004 §2.3 already defines it as an unsigned annotation on an already-signed object, and a revocation statement's timestamp is signed content. This document uses issued_at throughout.

1. The Revocation Statement

A standalone object, produced once by the issuer, never embedded in or mutating the artifact it revokes:

{
  "artifact_id":      "khda_teacher_licensing",
  "artifact_version": "1.2.0",
  "artifact_hash":    "a3f9c1d2e4b5…",   // MUST equal that version's seal.hash
  "reason":           "Signing key rotated after suspected compromise.",
  "algorithm":        "Ed25519",
  "kid":              "…",               // the ISSUER key that sealed the artifact
  "signature":        "…",
  "issued_at":        "2026-08-25T00:00:00Z"
}
The signature is over JCS({ artifact_id, artifact_version, artifact_hash, reason, issued_at }) — algorithm, kid, and signature describe or annotate the signature and MUST NOT be part of the signed message. A verifier MUST check both binding (statement.artifact_hash == artifact.seal.hash for the version being checked) and authenticity (the signature verifies against the key resolved by kid). An unbound statement — right artifact_id, wrong artifact_hash — MUST be treated as not applicable to the version being verified, not as revoking it.
kid MUST resolve to the same key that produced the artifact's own seal. A verifier MUST reject a statement signed by any other key — including a third-party attester's NOMOS-SPEC-004 key — as not a valid revocation. An attester who disagrees with an artifact's continued validity has exactly one lever: revoke their own attestation; this document defines no mechanism for anyone but the original issuer to revoke an artifact.

2. The Revocation List

The statement is authoritative but does not solve discovery — a verifier holding only a .nomos file has no way to learn one exists. A conformant issuer that supports revocation MUST publish its current list at GET /.well-known/nomos-revocations, sibling to the signing-keys endpoint (NOMOS-SPEC-001 §8.4):

{
  "generated_at": "2026-08-25T00:00:00Z",
  "algorithm":    "Ed25519",
  "kid":          "…",
  "statements":   [ /* every currently-active statement, §1, verbatim */ ],
  "signature":    "…"   // Ed25519 over JCS({ generated_at, statements })
}
An empty statements array is a normal, well-formed response asserting "nothing has been revoked as of generated_at," and MUST be signed like any other list. The list signature attests completeness and currency as of generated_at; each statement's own signature independently attests its own authenticity and remains verifiable even if extracted from the list. A given endpoint's list covers only artifacts sealed by keys belonging to that deployment — there is no cross-issuer aggregation in this version.

3. Verifier Behaviour

When a revocation statement or list is reachable, a verifier MUST check binding and authenticity (§1), and if a bound, authentic statement exists for the exact artifact_hash being verified, report the artifact as REVOKED — a distinct result from verified: false; revocation is not the same finding as a tampered or forged seal. If checking a list, its own signature MUST be verified before trusting its contents — but an individually-valid statement extracted from a list whose signature fails MUST still be honoured if it independently passes the binding/authenticity check; a corrupted list transport must not hide a genuine revocation, though the list as a whole MUST be reported as untrusted.

Offline verification (NOMOS-SPEC-001 §8.5's model: no network call, artifact and public key only) is first-class and MUST NOT be broken by a silent hard revocation-checking requirement. A verifier with no revocation source available MUST continue to report hash_match/signature_valid unaffected, and MUST print or return an explicit, unmissable notice that revocation was not checked and the artifact's current standing is unknown — it MUST NOT represent an unchecked artifact as equivalent to one confirmed not-revoked. This is a deliberate fail-open-but-loud design: failing closed on an unreachable list would turn a transient network problem, or ordinary offline verification, into a hard block on results NOMOS-SPEC-001 already fully supports.

4. Cache Freshness for Query Responses

A public query (NOMOS-SPEC-005) or execution response is point-in-time — correct when issued, silent on how long a caller holding it in memory may keep trusting it before re-checking revocation. NOMOS-SPEC-003 §6's staleness_advisory is not this signal; it reports drift since triangulation, not revocation risk.

A conformant response MAY include max_age (integer seconds) — the RECOMMENDED maximum time a caller SHOULD hold a verdict before re-checking. Absent max_age, callers SHOULD apply a conservative default (RECOMMENDED: 300 seconds) rather than caching indefinitely. It MUST NOT be required for conformance; a runtime unable to derive a meaningful value SHOULD omit it entirely rather than emit a fixed value implying a guarantee it is not making.
Disclosed implementation gap: the reference deployment emits max_age on the public query path (nomos.can() / POST /api/exchange/artifacts/:id/query) but not yet on the authenticated execution path (verify-decision) — this section's normative text covers both; the implementation currently covers one.
max_age tells a caller how long to trust a verdict before re-checking. A constraint whose value depends on cumulative history (a spending limit consumed across many calls) is a different question, and a stateless per-call check cannot conserve it. It is answered by conserved state: a ledger that holds, spends and returns capacity through reserve, settle and release, and supplies its own consumed total to the rules as a relying_party fact (NOMOS-SPEC-008 §7; Computable Authority R-12 and R-13). Cache freshness and conserved state stay separate mechanisms.

5. Deprecation, Conformance & Security

Two unrelated things share the word "deprecation" and neither is revocation. Spec-version deprecation governs when a specification document itself moves toward end of life — sealed artifacts remain forever valid regardless. Registry-level version deprecation (e.g. a newer policy version superseding an older one) has no normative definition in this spec family — a version in that state remains genuinely valid for verifying decisions made under it unless separately, explicitly revoked. Routine version supersession and "this should not have been relied upon" are different claims.

A producer or verifier MAY implement revocation independently of every other capability here. A produced statement MUST satisfy §1's field set and signed payload; a published list MUST satisfy §2's list-level signing; a verifier claiming conformance MUST implement both branches of §3 — a verifier that silently omits revocation checking without the fail-open-but-loud notice MUST NOT claim conformance. A verifier MUST reject a statement whose kid does not resolve to the artifact's own issuer key.
Revocation is not deletion: a revoked artifact's historical decisions remain in the audit trail exactly as they were, unaffected. Signing the list proves it was produced by the issuer and unaltered in transit — it does not prove the list is complete or current; a compromised or coerced host could serve an old, genuinely-signed list predating a real revocation. This is a real, disclosed gap, not a solved problem. Once a compromised issuer key can also be used to falsely revoke legitimate artifacts or suppress a real revocation, the key-protection guidance in NOMOS-SPEC-001 §8 applies with correspondingly higher stakes.
NOMOS-SPEC-007DRAFT

Chain-of-Trust Key Certificates

Extends NOMOS-SPEC-001 v2.2.0 · Uses NOMOS-SPEC-010 · Recognising an issuer, a witness or an approver with no prior relationship, entirely offline

Status

Draft

Version

1.9.0

Published

2026-08-27

Revised

2026-10-26

Abstract

Every trust mechanism NOMOS-SPEC-001 through 006 resolves a key the same way: a flat lookup, published from one place — /.well-known/nomos-signing-keys for seals, an org's own published key for an attestation, the artifact's own issuer key for a revocation. That is sufficient when the relying party already knows to ask a specific deployment. It does not generalise to a foreign system that has never heard of that deployment and has no reason to call it.

Paper 5, "Bounded Contextual Authority," names this gap precisely: none of the existing mechanisms let an independent system with no prior relationship to the issuer recognise that issuer, live, at the moment of an action, without a call home. This document specifies the primitive that closes it — a key certificate: one key certifying that another key is authorised to sign, within an optional scope and until an expiry, chained back to a root the relying party has independently decided to trust. Verification resolves entirely from the presented material and one pinned public key — no directory lookup, no prior registration, no network call. Deliberately the same delegation pattern a browser uses against its pinned root certificate store, built on NOMOS's existing primitives (Ed25519, RFC 8785 JCS) and the same detached-statement discipline NOMOS-SPEC-004 and NOMOS-SPEC-006 already established.

Revision 1.8.0 extends the same certificates to the two other kinds of key an authority decision depends on: witnesses, certified to state particular facts, and approvers, certified to consent in particular roles (§2). It replaces the 1.7.0 root-first walk with target-first resolution (§3), because a certificate set covering several keys is a tree, and the walk's verdict depended on the order of a tree's certificates.

Revision 1.9.0 makes path selection scope-aware: a candidate path whose scope does not admit the purpose is a failed candidate and the next is tried, so a valid extra certificate can no longer turn an authorisation into OUT_OF_SCOPE (§3). It fixes the order of the per-certificate checks, so two verifiers report the same failure for the same presentation (§1); admits ES256 signatures and P-256 keys from NOMOS-SPEC-010; and adds two scope dimensions, suite and approver (§2).

Status of this document. Draft, published with the 1.7.0 interop vectors and 41 rev. 1.11 cases (chain-of-trust-vectors/vectors-1.11.json), each run in every presentation order it lists. The Python reference, the TypeScript prototype and @nomosprotocol/verify, which the hosted platform runs, pass every case. All are by the authors; second-party implementations are invited: run the vectors and report the result.

1. The Key Certificate

{
  "parent_kid":           "V3HqL9zM2Nk4pQrT",
  "child_kid":            "8kR2Xw5dF7hJmN1s",
  "child_public_key_pem": "-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----\n",
  "scope":                "industry:financial/lending",
  "issued_at":            "2026-08-27T00:00:00Z",
  "expires_at":           "2027-08-27T00:00:00Z",
  "algorithm":            "Ed25519",
  "signature":            "MEUCIQD…"
}
child_kid MUST equal computeKid(child_public_key_pem) — a verifier MUST NOT trust a child_kid that doesn't match the material carried in the same certificate. child_public_key_pem carries the certified key inline — there is no central directory to resolve it from; that absence is the entire point of a chain that verifies without calling home. The signature is over JCS({ parent_kid, child_kid, child_public_key_pem, scope, issued_at, expires_at }), signed by the parent's private key — algorithm and signature describe or carry the signature itself and MUST NOT be part of the signed message.
Given a certificate and a caller-supplied parent public key, a verifier MUST: recompute child_kid and reject on mismatch; verify the Ed25519 signature against the supplied parent key; and reject if now > expires_at or now < issued_at. This check alone resolves nothing about trust — it only establishes that this one certificate is a genuine, unexpired statement by whoever holds the named parent's key. §3 defines how a sequence of these becomes an actual trust decision.
Suites (rev. 1.9). algorithm is Ed25519 or ES256 and names the suite of the parent's signature; a certificate is never WebAuthn-ES256-signed. child_public_key_pem is an Ed25519 or P-256 key in the canonical encoding of NOMOS-SPEC-010 §3.1. algorithm stays outside the signed payload, so every existing certificate keeps its fingerprint; the parent's key type fixes the suite, so changing the field can only make a certificate fail.

On a candidate path, given the parent's key and effective scope, a verifier MUST apply these checks in this order and stop at the first that fails:

#
Check
On failure
1
child_public_key_pem is a canonical Ed25519 or P-256 key
ISSUER_NOT_RECOGNIZED, invalid_key
2
kid(child_public_key_pem) equals child_kid
ISSUER_NOT_RECOGNIZED, kid_mismatch
3
The parent's effective scope permits algorithm (§2, suite)
OUT_OF_SCOPE, suite_not_permitted
4
signature verifies under the parent key, suite algorithm
ISSUER_NOT_RECOGNIZED, bad_signature / bad_encoding / high_s / suite_key_mismatch
5
issued_at ≤ now ≤ expires_at
ISSUER_NOT_RECOGNIZED, bad_time / not_yet_valid / expired
6
The certificate's fingerprint is not revoked
CERTIFICATE_REVOKED
7
child_kid is not revoked
KEY_REVOKED
8
scope parses
OUT_OF_SCOPE, malformed_scope
9
scope does not widen any dimension of the parent's
OUT_OF_SCOPE, widening
A malformed scope is OUT_OF_SCOPE, not MALFORMED: it is signed content of a certificate its issuer really made, so it fails that candidate path while another, well-formed path may still resolve the key. MALFORMED is reserved for the shape of the presentation itself.

2. Scope

A certificate's scope states the limits of the delegation, part of the signed payload. A scope is a space-separated set of dimension:value terms, all of which must hold; a dimension MUST NOT appear twice; an absent or empty scope means unrestricted. Three dimensions are matched against fields the artifact declares, and two are matched against the statement a key signs:

Dimension
Matched against
Comparison
artifact
meta.artifact_id
Exact equality only — never a prefix or glob.
industry
meta.industry
Hierarchical, /-delimited: "financial" contains "financial/lending"; a match must fall on a segment boundary.
jurisdiction
meta.jurisdiction_codes
ISO 3166 codes; a country contains its subdivisions ("US" contains "US-CA").
claim
the claim of a testimony statement (NOMOS-SPEC-008 §2)
Comma-separated set of fact names, e.g. claim:credit_score,dti_ratio. A child set must be a subset of its parent's. No wildcards.
consent
the role of a consent statement (NOMOS-SPEC-008 §3)
Comma-separated set of role ids from governance.roles. Subset narrowing. No wildcards.
suite
the suite of every signature the key makes (rev. 1.9)
Comma-separated set of NOMOS-SPEC-010 suite names, spelled as the registry spells them. Subset narrowing.
approver
the person a consent counts for (rev. 1.9)
One opaque person identifier, no comma. Equality: a child may repeat its parent's value, never change it. Admitted only on consent keys.
Suite. A key with a suite term signs only under those suites. A key without one may sign under any suite its key type supports except WebAuthn-ES256, and WebAuthn-ES256 MUST stand alone in any set. Together these make an enrolled passkey an approval key and nothing else: it cannot certify, seal or testify. Approver. The identifier need not reveal who the person is; it is the same across one person's keys and different between people. An institution typically certifies a person's enrolment key with approver:<id>, and that key certifies each of the person's passkeys. NOMOS-SPEC-008 0.6.0 counts consents by this term.
Effective scope and admission (rev. 1.9). A key's effective scope is ordered: each term sits where its dimension first appears along the path, root first, and keeps that position when narrowed. Every resolution has a purpose that admits or refuses the scope, examining terms in that order and reporting the first that refuses. For an artifact, artifact/industry/jurisdiction must match its meta, suite must contain the seal's suite, and any other dimension refuses. For a statement of kind claim or consent, the scope must name it in that kind's term; approver is admitted only for consent; the other statement kind and any unknown dimension refuse.
Statement authority from the root (rev. 1.11). A claim or consent term may be introduced only on a certificate signed by the pinned root; below the root it may only narrow. A path that introduces one lower is OUT_OF_SCOPE with reason_code: "statement_below_root", so a key that may seal can never certify a witness or an approver. Candidates whose fingerprints tie are ordered by signature, so the result never depends on presentation order. Found by the machine-checked proof of Part II, Theorem 9; fixed in @nomosprotocol/verify 1.5.0.
jurisdiction reads meta.jurisdiction_codes, never the free-prose meta.jurisdictions — matching the latter would pass silently on a variant spelling. Every jurisdiction an artifact declares MUST be in scope: an artifact declaring ["US-CA","GB"] under a jurisdiction:US delegation is out of scope, because requiring only an overlap would let an artifact launder any jurisdiction by also declaring one in-scope code.
Fail closed in two directions: if a scope constrains a dimension the artifact does not declare, the artifact is out of scope; if a scope constrains a dimension the verifier does not recognise, the artifact is out of scope — a verifier MUST NOT skip a constraint it cannot evaluate, mirroring X.509's critical-extension rule. Narrowing is monotonic: the effective scope of a chain is the accumulation of every certificate's scope along it. A certificate MAY narrow its parent's scope; it MUST NOT widen it — a verifier encountering a widening certificate MUST fail the path with OUT_OF_SCOPE rather than silently intersecting it.
Key purpose. A key whose effective scope contains a claim or consent term is a statement key. A statement key MUST NOT be accepted as an artifact's sealing key (OUT_OF_SCOPE), and a key with no claim term MUST NOT be accepted as a witness for any fact, including a key whose scope is otherwise unrestricted. Unrestricted scope means unrestricted authority to issue rules, not authority to state facts: the party that writes the rules and the parties permitted to testify to the facts they read are separated by construction. A 1.7.0 verifier meeting a claim or consent term does not recognise the dimension and fails closed.

3. Chain Verification

A relying party has three inputs: the sealed artifact, the chain (a set, not a sequence, of certificates), and a root public key it has independently pinned out-of-band — never sourced from the request itself. The set may certify several keys at once (the issuer, each witness, each approver), so it is generally a tree, not a path. To resolve a target key T (for an artifact, its seal kid), a verifier MUST resolve target-first:

Step
Target-first resolution
1
If the pinned root's kid is revoked, return KEY_REVOKED.
2
Enumerate candidate paths from T toward the root: the candidate parents of a key K are the certificates whose child_kid is K. Never revisit a key on the current path (cycle); abandon any path longer than 20 certificates.
3
Try candidate certificates in ascending order of their SHA-256 fingerprint, so the first path tried never depends on presentation order.
4
Validate each candidate path root-first with the §1 checks in order, then apply the purpose's admission (§2) to the target's effective scope. A candidate that fails any check, or whose scope the purpose refuses, is a failed candidate, and the next is tried (rev. 1.9).
5
The first path that validates and is admitted resolves T; its hops determine the effective scope.
6
If none validates, return the failure of the first path tried. If no structural path exists: ISSUER_NOT_RECOGNIZED, reason chain_broken when some certificate is issued by the root, otherwise no_certificate_for_root.

Once the artifact's sealing key resolves, its seal is checked against the resolved key, once, after path selection; a hash mismatch is SEAL_INVALID, never ISSUER_NOT_RECOGNIZED. This is sound because every candidate path ends at the same key (the kid is a hash of the key), so OUT_OF_SCOPE is always decided before SEAL_INVALID. The seal MUST carry signature_algorithm Ed25519 or ES256; an HMAC seal, or none, is MALFORMED (seal_algorithm), because a chain of public keys cannot vouch for a seal that is not publicly verifiable. A witness or approver key is resolved the same way, with the statement's own signature as the final check and statement scope (§2) in place of artifact scope; its failures are reported by NOMOS-SPEC-008 as testimony or consent failures, never as an unrecognised issuer.

The same certificate set presented in any order MUST reach an identical verdict for every key resolved from it, including when the set is a tree. The 1.7.0 walk took the first certificate whose parent matched; with one root certifying both an issuer and a witness, presenting the witness's certificate first led the walk into a dead branch, so the same certificates resolved in one order and failed in the other. For a set that forms a single path, target-first resolution returns the 1.7.0 verdict.
A conformant verifier MUST distinguish seven outcomes, never collapsing any two: ALLOWED (resolves and seals verify); ISSUER_NOT_RECOGNIZED (chain doesn't connect to the root — re-presenting a different chain may fix it); KEY_REVOKED (resolves, but a key on the path was revoked — re-presenting the same chain never fixes it); CERTIFICATE_REVOKED (one certificate withdrawn, but the key remains validly certified elsewhere — a different certificate for the same key can still resolve it); OUT_OF_SCOPE (issuer recognised, but not delegated for this artifact — only a broader delegation resolves it, and it MUST NOT be collapsed into ISSUER_NOT_RECOGNIZED); SEAL_INVALID (chain resolves, artifact tampered after sealing); MALFORMED (request not well-formed — a client defect, not a trust finding). A caller needs to react differently to each. Rev. 1.9 also fixes the reason_code each failure carries, and an ALLOWED verdict reports leaf_kid, path, effective_scope and revocation_checked; two conformant verifiers produce the same values for all of them.
A verifier MUST reject a set of more than 20 certificates without attempting resolution, returning MALFORMED. Because a kid is bound to exactly one key (§1), a certificate's validity against its parent is independent of the path it appears on, so a verifier MAY memoise certificate checks within one resolution; the reference deployment's worst case with twenty duplicated certificates is about 8 ms.

4. Key Revocation and Freshness Staples

Distinct from NOMOS-SPEC-006, which withdraws an artifact's validity, signed by the key that sealed it. This withdraws a key's standing to sign at all, signed by that key's own certifying parent — mirroring NOMOS-SPEC-006 §5's issuer-only model one level down.

Revocation MUST be checked by kid at every hop of a candidate path, not only against the chain's terminal target — a relying party checking a revoked key only at the final position would miss every other path a presenter might construct through that same key via a different certificate set. A certificate MAY also be individually revoked by fingerprint (SHA-256 over its canonical signed payload) — withdrawing one delegation while leaving the key able to act under any other certificate it holds; the outcome is CERTIFICATE_REVOKED, which MUST NOT be reported as KEY_REVOKED.

Freshness staples address the relying party this document was written for: an independent system verifying entirely offline, with no revocation source of its own. A staple is a short-lived "this key is not revoked as of T" proof, signed by the kid's own certifying parent (never a platform-wide key), that a presenter attaches to what it presents.

Confidence per kid is a tri-state, combined as the weakest link across the whole path: live (checked against the verifier's own source), staple (no source of its own, but a valid staple was used), unchecked (neither — fail-open, but never fail-silent; it MUST be disclosed, never collapsed into live or staple). One uncovered kid pulls the entire path's confidence down — a verifier MUST NOT report the best result among several kids as if it applied to all of them. A verifier holding its own revocation source — even an explicitly empty one — MUST NOT consult staples at all; a staple can only ever raise confidence in a kid that would otherwise be unchecked, never override a real source. The pinned root itself is never staple-coverable — nothing certifies a root; only the relying party's own decision to un-pin it can answer whether it's still good. An ALLOWED verdict MUST carry revocation_checked: "live" | "staple" | "unchecked", and this MUST also be present on a composed §6 AUTHORIZED/DENIED/ESCALATED response. Staples cover key revocation only — a verifier MUST NOT let a staple suppress a CERTIFICATE_REVOKED result. Since rev. 1.9 a staple is Ed25519 or ES256 and counts for a hop only if the parent's effective scope permits that suite.

5. The Verification Request/Response

POST /verify
{
  "version":             "1",
  "artifact":            { /* sealed .nomos artifact */ },
  "key_certs":           [ /* key certificate objects, §1, any order */ ],
  "root_public_key_pem": "-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----\n",
  "freshness_staples":   [ /* optional, §4 */ ],
  "facts":               { /* optional, §6 */ },
  "action":              "optional human-readable label"
}
root_public_key_pem MUST NOT be sourced from anything in the request body — it is the relying party's own configuration, never presenter-supplied. A verifier MUST reject a version value it does not recognise with MALFORMED rather than guess at an unfamiliar shape.
decision
HTTP status
ALLOWED / AUTHORIZED
200
ESCALATED
202
ISSUER_NOT_RECOGNIZED / CERTIFICATE_REVOKED / KEY_REVOKED / OUT_OF_SCOPE / DENIED
403
SEAL_INVALID
422
MALFORMED
400
HTTP status is a hint for generic middleware; decision in the response body is what a conformant caller MUST branch on. Collapsing two outcomes into the same wire-level status is permitted; collapsing them in the body's decision field is not.

6. Combining Chain Verification with Rule Evaluation

Chain verification alone answers "is this artifact's issuer recognised and its seal intact" — authenticity, not permission. When facts is supplied, a verifier evaluates the artifact's own rules once — and only once — §3 resolves to a recognised, unrevoked issuer.

If §3 resolves to anything other than ALLOWED, that result MUST be returned as-is — rule evaluation MUST NOT be attempted. This ordering is the entire point of this section: "the rules say no" and "we never established who's asking" MUST remain distinguishable claims a caller reacts to differently. Once resolved, the verdict is normalised to AUTHORIZED, DENIED, or ESCALATED, using the same evaluation semantics NOMOS-SPEC-001 §6–7 define for an authenticated request — no separate dialect for this rail. missing_inputs and obligations follow the same vocabulary NOMOS-SPEC-005 §1 already defines.

7. Conformance & Security

A verifier claiming conformance MUST implement target-first, scope-aware resolution exactly, with the §1 check order, including order-independence and all seven distinguishable outcomes (§3) — collapsing any two forfeits the conformance claim. Scope (§2) MUST be enforced as specified, both fail-closed directions and monotonic narrowing; storing or displaying scope without enforcing it does not qualify. Revocation (§4) and rule-evaluation composition (§6) are each independently OPTIONAL relative to the §1/§3 normative core.
Boundaries of this document. Scope binds what an artifact declares (meta.industry / meta.jurisdiction_codes), not the actual content of its rules — the same property X.509 name constraints have. An issuer that scopes by jurisdiction forces every artifact under that delegation to carry meta.jurisdiction_codes, or fail closed. Root governance is out of scope of this document entirely — who should operate a shared root is a named, unresolved institutional question (Paper 5's R-09), deliberately not answered here to avoid conflating a cryptographic primitive with a governance decision.
An ISSUER_NOT_RECOGNIZED or KEY_REVOKED result MUST NOT be represented as equivalent to a rule-evaluated DENIED — the two require different caller action. root_public_key_pem is the whole trust boundary: a relying party that pins a root it does not actually control, or accepts one supplied by the presenter, has gained nothing over an unconditional accept. Compromising an intermediate key compromises every leaf certified under it; revoking that intermediate is the only way to sever all of those paths at once.
NOMOS-SPEC-008DRAFT

Act Binding

Extends NOMOS-SPEC-001 v2.2.0 + amendment 2.3.0 · NOMOS-SPEC-007 rev. 1.9 · NOMOS-SPEC-010 · An exact change, proven where it lands

Status

Draft

Version

0.6.0

Proposed

2026-09-27

Revised

2026-10-26

Abstract

NOMOS-SPEC-001 makes an institution's rules a sealed, portable object. NOMOS-SPEC-007 lets a system that has never met the institution establish that those rules are genuine. Neither binds anything to the action: a verdict is computed over caller-supplied facts, and nothing ties it to the change made later. That leaves five gaps an autonomous agent can exploit without breaking any cryptography:

Gap
What the agent does
Skip the check
Acts through an interface that does not demand a verdict.
Lie to the check
Supplies the facts itself, so the rules evaluate its story, not the world.
Change the action after the check
Presents a verdict for $4,000 in support of $400,000.
Withhold a fact
Leaves out the statement that would have made a deny rule fire.
Present yesterday's rules
Presents a genuine, unrevoked version of the authority that has since been replaced.

This document defines the Act: a self-verifying package carrying one exact change together with everything needed to prove it legitimate: the sealed rules, the certificates, facts as signed testimony from certified witnesses, and human consents signed over this Act alone. The relying party, the ledger, registry or API that would commit the change, verifies the Act itself, locally and deterministically, and commits exactly the change it verified or nothing. An agent is free to bypass every NOMOS component; its act still cannot take effect, because the only system able to make the change is the one that demands the proof.

Status of this document. Draft, published with a Python reference verifier, 43 test vectors and two in-memory cases. The reference verifier and @nomosprotocol/verify, the TypeScript verifier the hosted platform runs, pass every vector and return identical results on 1,693 mutants derived from them. The platform's conserved-state ledger accepts Acts as a relying party in production. How a carrier finds a relying party and submits an Act is NOMOS-SPEC-009. Second-party implementations are invited.

1. The Act

{
  "act_version":   "1",
  "act_id":        "act-7f3c…",
  "nonce":         "<base64, at least 128 bits of entropy>",
  "issued_at":     "2026-10-01T11:59:00.000Z",
  "expires_at":    "2026-10-01T12:04:00.000Z",
  "relying_party": "acme-bank:core-ledger",
  "action": {
    "type":    "approve_loan",
    "subject": "APP-1042",
    "params":  { "amount": 75000, "loan_purpose": "home_improvement", "has_cosigner": false }
  },
  "authority": {
    "artifact":  { /* sealed .nomos, NOMOS-SPEC-001 */ },
    "key_certs": [ /* one unordered set: the sealing key, every witness, every approver */ ]
  },
  "testimony":       [ /* §2 */ ],
  "consents":        [ /* §3 */ ],
  "presenter_facts": { /* OPTIONAL, §7 */ }
}
act_version, act_id, nonce, issued_at, expires_at, relying_party, action.type, action.params (which MAY be empty), authority.artifact and authority.key_certs are REQUIRED. action.params are both what gets committed and facts in their own right (§7). An Act has no presenter signature: who assembled it is irrelevant to whether it is legitimate, and a relying party MAY log presenter identity from its transport but MUST NOT let it affect the verdict.

2. Testimony

{
  "claim":       "dti_ratio",
  "value":       0.31,
  "about":       "APP-1042",
  "as_of":       "2026-10-01T11:30:00.000Z",
  "valid_until": "2026-10-02T11:30:00.000Z",
  "kid":         "<witness key id>",
  "algorithm":   "Ed25519",
  "signature":   "<base64>"
}
The signed payload is JCS({ claim, value, about, as_of, valid_until, kid }), with about as null when absent. A relying party MUST reject the whole Act if any statement's kid does not resolve (NOMOS-SPEC-007 §3) or its effective scope has no claim term naming this fact (TESTIMONY_OUT_OF_SCOPE), or its signature fails, or it is outside [as_of, valid_until], or its about differs from action.subject (TESTIMONY_INVALID). Invalid testimony is never silently dropped: a presenter that includes a forged or stale statement has shown something about itself.
Suites (0.6.0). algorithm is Ed25519 or ES256; a witness whose key is in a KMS or HSM signs ES256, which MUST be low-S, because testimony signatures are inside the binding digest and a second encoding would change the digest without changing a fact. A key enrolled as a passkey never testifies. Signature failures carry the NOMOS-SPEC-010 reason.
Testimony is not bound to one Act; a witness attests a fact about the world, and the same statement MAY support several Acts inside its validity window. What binds it to a particular Act is the binding digest (§3).
binding_core = {
  act_version, act_id, nonce, issued_at, expires_at, relying_party,
  action,
  artifact_hash:    authority.artifact.seal.hash,
  testimony_digest: SHA-256( JCS( testimony, sorted by the JCS encoding of each statement ) )
}
binding_digest = hex( SHA-256( JCS(binding_core) ) )

consent = { binding_digest, role, decision: "approve", signed_at, kid, algorithm, signature }
signed payload: JCS({ binding_digest, role, decision, signed_at, kid })

The binding digest fixes the exact change, the exact rules, the exact facts, the audience and the single-use nonce. An approver's signature over it approves that combination and nothing else: changing any parameter, swapping the rules, substituting a fact or readdressing the Act invalidates every consent (binding_mismatch).

Counting by person (0.6.0). When the rules escalate with escalation E, the approver key MUST resolve with an effective scope that admits consent for E.role_required under the statement's suite and carries an approver term (NOMOS-SPEC-007 rev. 1.9); a key certified to consent but not tied to a person is CONSENT_OUT_OF_SCOPE. The escalation is satisfied by consents from at least E.required_consents (default 1) distinct approvers, each with a valid signature, this Act's binding digest, decision: "approve" and role equal to E.role_required. Two keys of one person count once: an approver who signs from a laptop key and a phone passkey is still one approver. A consent that fails signature, scope or binding rejects the Act (CONSENT_INVALID, CONSENT_OUT_OF_SCOPE); a valid consent for a different role is ignored.
Path independence. The relying party MUST evaluate every candidate path to the approver key that validates and is admitted. If they do not all carry the same approver, the consent is CONSENT_INVALID (approver_ambiguous); otherwise the presenter could choose who a consent counts for by choosing which certificates to send.

Consent by passkey

A consent with algorithm: "WebAuthn-ES256" is a WebAuthn assertion carrying authenticator_data, client_data_json and a DER signature, base64url. Let P be the consent's signed payload. The relying party accepts it only if the key's effective scope contains suite:WebAuthn-ES256; client_data_json has type "webauthn.get" and challenge equal to base64url(SHA-256(P)); the authenticator data has both the user-present and user-verified flags set; and the signature verifies over authenticator_data ‖ SHA-256(client_data_json). The challenge commits to the exact Act, role, decision and time. The signature counter is not checked: approvals are single-use through the Act's nonce. A relying party SHOULD record client_data_json.origin in its receipt.

4. Window, Audience, Replay and the Authority in Force

Window. expires_at MUST be later than issued_at, and the window SHOULD NOT exceed 300 seconds. A relying party MUST reject an Act before issued_at (NOT_YET_VALID) or after expires_at (EXPIRED), and MAY reject a window longer than its own configured maximum (MALFORMED); one that commits under human approval advertises a maximum long enough for a person to approve (NOMOS-SPEC-009). Nonce. A relying party MUST keep the nonces of committed Acts for as long as those Acts could still be valid and reject a used one (REPLAYED); recording the nonce and committing the action MUST be one atomic operation. Audience. A relying party MUST reject an Act whose relying_party is not its own identifier (WRONG_RELYING_PARTY): an Act approved for one ledger cannot be replayed against another.

The authority in force

A genuine authority is not necessarily a current one. An issuer that replaces version 1.2 of its rules with 1.3 has not said 1.2 was wrong, and the seal on 1.2 remains genuine. Two questions follow, and a relying party MUST keep them apart:

Question
Answered by
Was this version valid for a decision made at time t? (historical verification)
The seal, the issuer's chain, and revocation statements dated before t
May this version authorize a new action at time t? (new authorization)
The version the issuer designates as in force at t
A superseded version remains valid for historical verification and cannot authorize a new action; a revoked version (NOMOS-SPEC-006) is withdrawn for both. After resolving the issuer, a relying party MUST establish that the artifact is the version in force from exactly one source: its own record of the in-force seal hash for that artifact_id (when it keeps one, it MUST use it and MUST NOT consult a statement; a different hash is SUPERSEDED), or otherwise an in-force statement carried at authority.in_force: { artifact_id, version, seal_hash, as_of, valid_until, kid, signature }, signed by the artifact's sealing key over JCS({ artifact_id, version, seal_hash, as_of, valid_until, kid }), matching the artifact, live at verification time, and valid for at most 86,400 seconds. Neither: VERSION_UNVERIFIED. A seal hash listed by the relying party's revocation source is ARTIFACT_REVOKED whatever the in-force source says. An issuer that supersedes a version stops issuing statements for it, so the old version stops authorizing within a day at most, without a call to the issuer.

Currency policy (0.6.0)

For each authority it accepts, a relying party MUST declare exactly one rule by which the version in force is established. There is no default; a verifier configured without one is misconfigured and falls back to neither.

Policy
Version in force established from
Authority with no record
record
The relying party's own record only; an in-force statement is never read
VERSION_UNVERIFIED, not_in_record
record_or_statement
Its record where it keeps one, otherwise an in-force statement
As above
record is RECOMMENDED wherever compromise would be material: it is the only policy under which a stolen sealing key authorizes nothing new. Under record_or_statement a stolen key can seal a new version and sign a statement declaring it in force, and both verify; under record the forged version is not the one recorded. In-force statements may be Ed25519 or ES256, within the sealing key's permitted suites. An authorized result reports currency_policy alongside in_force_source.
A hold already authorized under the version in force at its own verification time is not undone by a later supersession: a relying party that rechecks before final settlement MUST recheck revocation and MUST NOT reject for supersession alone. The in-force statement is outside the binding digest, which already fixes the rules by artifact_hash.

5. Verification at the Relying Party

A relying party MUST perform these steps in order and stop at the first failure:

Step
Check
Failure
1
Envelope well-formed and canonicalizable under RFC 8785 (no non-finite numbers); act_version known; artifact sealed; at most 20 certificates
MALFORMED
2
relying_party is this system
WRONG_RELYING_PARTY
3
Now is inside the window
NOT_YET_VALID, EXPIRED
4
Nonce not already used
REPLAYED
5
The sealing key resolves for the artifact (NOMOS-SPEC-007 rev. 1.9, scope admission included, so a statement key cannot seal), then the seal verifies under it
any NOMOS-SPEC-007 rev. 1.9 outcome
5a
The artifact is not revoked and is the version in force, under the declared currency policy (§4)
ARTIFACT_REVOKED, SUPERSEDED, VERSION_UNVERIFIED
5b
No two escalate decisions of equal priority name different escalations (NOMOS-SPEC-001 amendment 2.3.0)
MALFORMED, ambiguous_escalation
6
Every testimony statement is valid (§2)
TESTIMONY_INVALID, TESTIMONY_OUT_OF_SCOPE
7
Every fact arrived through its declared channel and has its declared type (§7)
FACT_SOURCE_VIOLATION, FACT_TYPE_VIOLATION
8
Evaluate the sealed rules over exactly those facts, three-valued (§6)
INCOMPLETE
9
If the result is ESCALATED, count consents (§3)
CONSENT_INVALID, CONSENT_OUT_OF_SCOPE
Verdict
Meaning
Commit
AUTHORIZED
The rules permit the action, or an escalation was satisfied by consent (by_consent: true)
Yes, exactly action
DENIED
The rules forbid it, or no rule matched under default_outcome block (absent means block)
No
ESCALATED
Consent is required and not yet sufficient; reports consents_valid and consents_required
No
INCOMPLETE
A rule that could block or escalate, and outranks the result, cannot be decided on the facts presented; reports open_rules and open_facts
No
An escalated Act was not committed, so its nonce is unrecorded: the presenter MAY resubmit the same Act with consents added while it is unexpired, since the binding digest does not cover consents (NOMOS-SPEC-009 §6.3), or build a new Act whose binding digest approvers sign. An incomplete action is resubmitted with the missing testimony as a new Act. An Act that proves nothing commits nothing.

6. Three-Valued Evaluation

Every decision's when condition evaluates to TRUE, FALSE or UNDECIDED:

Rule
Semantics
1
A fact is absent when no channel supplied it, or it was supplied as null.
2
A comparison, in, contains, between, matches or bare field reference that reads an absent fact is UNDECIDED. exists(f) is TRUE if f is present; if f is absent it is FALSE for action and relying_party inputs, where absence is authoritative, and UNDECIDED for any other source, because a missing witness statement says nothing about the world.
3
A primitive whose present operands are outside its domain is UNDECIDED: ordering needs two numbers or two strings; == and != need two values of the same JSON type; between needs a number; matches a string; in and contains a string, number or boolean; a bare field reference a boolean. Booleans are not numbers.
4
and, or and not follow Kleene's strong three-valued logic.
Resolution (NOMOS-SPEC-001 §4) runs unchanged over the decisions that are TRUE. Let D be the deciding decision, or none when default_outcome applied; X outranks D when D is none, when X.priority > D.priority, or when priorities are equal and the tie-breaker ranks X's outcome higher. If the outcome is allow or escalate and any block or escalate decision that outranks D is UNDECIDED, the relying party MUST return INCOMPLETE, MUST NOT commit, and does not count consents: no approval stands in for a fact the Act does not establish. open_rules lists those decisions, highest priority first; open_facts lists only the fields that were absent and left them undecided, never a present operand beside an absent one (vector 43). An UNDECIDED escalate decision at the deciding decision's priority that names a different escalation also returns INCOMPLETE (0.5.0).
The consequence: an Act cannot gain an authorization by withholding facts. If the verdict is AUTHORIZED, then for every way of supplying the withheld testimony or presenter facts, no block or escalate decision that outranks D becomes TRUE. The remedy for INCOMPLETE is a new Act with testimony for the open facts; a witness that knows a fact is absent says so (bankruptcy_active: false, not nothing).

7. Fact Channels and Types

Every fact the rules read arrives through exactly one of four channels, and the sealed artifact declares the permitted channel of each input in data_contract.inputs.<name>.source (NOMOS-SPEC-001 amendment 2.2.0):

Channel
Comes from
Controlled by
action
action.params, plus action_type = action.type
The presenter proposes it, and it is exactly what gets committed
testimony
Valid testimony statements (§2)
Certified witnesses
relying_party
The relying party's own state at verification time
The system of record
presenter
presenter_facts
The presenter alone
A relying party MUST reject the Act with FACT_SOURCE_VIOLATION if a fact arrives through a channel other than the one its input declares, through more than one channel, or for an input that declares no source. A presenter can propose any change it likes; it cannot supply the facts that decide whether the change is legitimate unless the institution's own rules say it may. Relying-party facts are read from the state being changed, so no one supplies them at all.
Types. Every input that declares a source MUST declare a type. A present fact whose value does not have that type rejects the Act with FACT_TYPE_VIOLATION before any rule is read: number and integer are finite and never booleans; date and datetime are RFC 3339 strings; enum is a member of the input's enum. An unknown or missing type fails closed. This is what stops "amount": "300000" from making amount > 50000 fall silent while a coercing relying party commits $300,000. Fields nested inside an object- or array-typed input are covered by §6 rule 3.

8. Commit and Receipts

On AUTHORIZED the relying party MUST apply exactly action (the same type, subject and params it verified) and nothing else; record the nonce in the same atomic operation; and re-read any relying_party facts inside that operation, aborting if they differ from the values evaluated. That last step closes the time-of-check to time-of-use gap for the system's own state. On any other verdict it MUST NOT apply any part of action.
{ "act_id": "act-7f3c…", "act_digest": "<binding digest>", "decision": "AUTHORIZED",
  "rule": "R6", "by_consent": true,
  "verified_at": "2026-10-01T11:59:40.000Z", "committed_at": "2026-10-01T11:59:41.000Z",
  "relying_party_facts": { "is_first_loan": false }, "in_force_source": "record",
  "currency_policy": "record", "consent_origins": ["https://approve.acme-bank.example"] }
A receipt MUST record verified_at, relying_party_facts, in_force_source and currency_policy, the inputs to the verdict the Act does not carry, and SHOULD record the origin of each passkey consent. With them, the receipt and a retained copy of the Act let any third party re-run §5 and reach the same verdict, given the relying party's pinned root and the revocation statements dated before verified_at. An auditor needs no access to the agent, the presenter or any NOMOS service.

9. Conformance & Security

A conformant relying party implements §4 to §8 in full; a conformant presenter produces Acts that follow §1 to §3. Test vectors, the deterministic generator and the reference verifier are in act-vectors/ of the specification repository.

The relying party is the enforcement point

Every property here depends on the system of record refusing changes that do not arrive as a verified Act. A relying party that accepts the same change through another interface has not adopted this specification for that interface.

The presenter is untrusted by design

Nothing in §5 depends on the presenter's honesty, competence or identity. A hallucinating, compromised or adversarial agent can at worst submit Acts that fail.

Rules, facts and approvals are separate authorities

A sealing key cannot testify or consent (NOMOS-SPEC-007 §2). Compromise of the rule issuer alone cannot fabricate the facts the rules read; compromise of a witness alone cannot change the rules.

Witness honesty is a governance choice

Certification bounds which facts a key may assert, not whether its assertions are true. Institutions choose their witnesses; this document makes that choice explicit, signed, scoped and revocable.

Revocation is not supersession

A verifier that asks only "is this authority genuine and unrevoked?" accepts an obsolete rule set for a new action: the issuer replaced it without ever saying it was wrong. Currency is a condition of its own. A superseded Act is re-presented under the version in force; a revoked authority has nothing to re-present.

Silence and malformed values are not evidence

A verifier that read a missing fact, or a value of the wrong kind, as false would let the presenter decide which rules apply. §6 and §7 remove that choice. The cost falls on witnesses, who state negative facts explicitly, and on rule authors, whose permissive rules commit nothing until every rule above them is decided.

Effects that are not state changes

Sending a message or publishing a statement has no system of record that can refuse it. Such effects need a relying party at an outbound gateway, which inherits every duty of §4 to §8. A system that cannot run §5 itself needs an adapter that holds the only credential able to change it.

NOMOS-SPEC-009DRAFT

Discovery and Submission

Extends NOMOS-SPEC-008 0.6.0 · NOMOS-SPEC-007 rev. 1.9 · NOMOS-SPEC-010 · How a carrier finds a relying party, gathers what an Act needs, and hands it over

Status

Draft

Version

0.1.0

Proposed

2026-10-26

Abstract

NOMOS-SPEC-008 makes an Act verifiable by any relying party. It does not say how a carrier that has never met a relying party finds it, learns what it accepts, gathers the testimony and approvals an Act needs, or hands the Act over. This document specifies four things: discovery documents published by a relying party, an issuer and a witness at well-known paths; the statement request, by which a carrier asks a witness for testimony; the approval request, by which it asks an approver for consent over one exact Act; and the submission binding, by which an Act is sent over HTTP and each verdict comes back as one status and one body.

Documents are hints. A carrier MAY use any field of a document to plan, gather and submit an Act. A relying party MUST NOT treat a document, or anything in it, as evidence for a verdict: NOMOS-SPEC-008 §6 is evaluated over the Act alone. A relying party MUST generate its own document from the same configuration its verifier enforces. A false document can make an Act fail, never succeed, so carrier indifference (R-19, Definition 1) is unchanged.

1. Discovery Documents

Path
Published by
Carries
/.well-known/nomos-relying-party
Relying party
relying_party_id, act_endpoint, the roots it pins, each accepted authority (artifact_id, issuer, actions, currency_policy, in_force_seal_hash), local_facts, max_window_seconds, max_act_bytes, consent_suites
/.well-known/nomos-issuer
Issuer
Each authority in force (artifact_id, version, seal_hash, artifact_url, in_force_url), the certificate pool carriers present as authority.key_certs, witness origins, approval endpoints by role, revocations_url
/.well-known/nomos-witness
Witness
witness_id, the kid it signs with, the claims it states, statement_endpoint, and a human-readable note on access
Every document carries nomos_document (its kind) and version ("1"), and a reader MUST reject one it does not recognise. A document SHOULD carry valid_until; an expired one is authoritative for nothing, and because documents decide nothing it can cause no wrong verdict, only an Act sent to a place that refuses it. act_endpoint MUST be https, except on a loopback host during development. Whether a witness discloses a subject's facts to a requester is the witness's own access-control decision.

2. Statement and Approval Requests

POST <statement_endpoint>
{ "claim": "budget_remaining", "about": "DEPT-17", "valid_for_seconds": 900 }
→ 200 { "testimony": <NOMOS-SPEC-008 statement> }   404 claim not served or subject unknown   401/403 not entitled

POST <approval endpoint for the role>
{ "role": "MANAGER", "act": { /* the Act, consents not required */ } }
→ 202 { "approval_id", "status": "pending", "poll_url", "approval_url" }
→ 200 { "status": "approved", "consent": <NOMOS-SPEC-008 consent> }   (an automated approver)
GET <poll_url> → { "status": "pending" | "approved" | "refused" | "expired", "consent"? }
The witness chooses as_of and valid_until; valid_for_seconds is a request. A carrier MUST check that the statement names the claim and subject it asked for. An approver MUST compute the binding digest from the Act itself, show the person the exact change, rendered from the Act and never from text the carrier supplies, and sign nothing but a consent over that digest for that role. It answers expired once the Act's expires_at has passed.

3. The Submission Binding

POST act_endpoint with Content-Type: application/nomos-act+json and one Act. Any other media type is 415; a body longer than max_act_bytes is 413. Every response is JSON and carries decision:

Verdict
Status
Body, in addition to decision
AUTHORIZED, committed
201
receipt (NOMOS-SPEC-008 §9), and result: what the commit returned
ESCALATED
202
act_digest, escalation_id, role, consents_valid, consents_required, retry_until (the Act's expires_at)
INCOMPLETE
422
open_rules, open_facts
DENIED
403
rule, and reason_code when the verifier gives one
REPLAYED
409
act_id, and the receipt stored when that Act was committed
NOT_ACCEPTED
400
reason_code authority_not_accepted or action_not_accepted
Any other NOMOS-SPEC-008 §6 outcome
400
Exactly the fields the verifier returned
The nonce is the idempotency key. Only a committed Act's nonce is recorded; a relying party MUST store the receipt of every committed Act and answer a resubmission with 409 and that receipt, never a second commit. An Act answered 202 was not committed, so a carrier MAY resubmit the same Act with consents added while it is unexpired; after expires_at it builds a new Act and approvals are requested again. A carrier that expects escalation SHOULD choose a window up to max_window_seconds and request testimony valid across it.
The commit. On AUTHORIZED, in one transaction: record the nonce; re-read the relying party's own facts and re-verify if any differ; apply exactly action; store the receipt. The code that applies the change MUST receive only the verified action. A relying party MAY add hint and docs to a body; neither changes a verdict, and a carrier MUST NOT branch on either.
Planning (non-normative). A carrier derives what to bring from the authority's data_contract: action inputs from the action, testimony inputs from a witness whose document lists the claim, relying_party inputs from the relying party itself, presenter inputs from the carrier. Running the NOMOS-SPEC-008 verifier to plan means a carrier and a relying party cannot disagree about what an Act needs; only the relying party's verdict commits.

4. Conformance & Security

JSON Schemas for the three documents are in schema/; submission-vectors/status.json maps every NOMOS-SPEC-008 §6 outcome to its status. submission-vectors/run.mjs builds fresh Acts from published test keys and submits them to any relying party configured with the conformance profile, over HTTP only, so it tests an implementation in any language: discovery, authorization, replay, incomplete, denial, the relying party's own fact, escalation then resubmission with consent, a tampered authority, a wrong audience, an altered action, wrong media type and oversized body. The SDK's accept() and the spec's reference relying party, written separately from it on the same verifier, pass all 17 checks.
A forged document misdirects; it cannot authorize. Witness and approver endpoints are where facts are disclosed and consent signed, so both authenticate requesters as their owners require. max_act_bytes, the 20-certificate bound and ordinary rate limiting bound the cost of a submission, and verification needs no outbound call.
NOMOS-SPEC-010DRAFT

Signature Suites

Used by NOMOS-SPEC-007 rev. 1.9 · NOMOS-SPEC-008 0.6.0 · NOMOS-SPEC-009 · One closed set of signature rules for every NOMOS verifier

Status

Draft

Version

0.2.0

Proposed

2026-10-26

Abstract

Every signature a NOMOS verifier accepts is made under one of three suites, defined once here so that every NOMOS specification applies the same rules: which key types exist, which bytes are signed, how a signature is encoded, and when it is refused. It exists because the keys that confer authority must stay in their holders' custody. Issuers and witnesses hold keys in KMS and HSM products, where ECDSA P-256 is universal and Ed25519 support uneven; approvers hold passkeys, which sign through WebAuthn.

1. The Registry

Suite
Key type
Message signed
Encoding
Ed25519
Ed25519
The payload
64 bytes, base64
ES256
ECDSA P-256
SHA-256 of the payload
IEEE P1363 r ‖ s, 64 bytes, low-S, base64
WebAuthn-ES256
ECDSA P-256
authenticator_data ‖ SHA-256(client_data_json)
DER Ecdsa-Sig-Value, base64url
The registry is closed: there is no none suite, no negotiation and no fallback, and a signature that fails under its declared suite MUST NOT be retried under another. Every base64 value MUST be canonical (decode, re-encode, compare). WebAuthn-ES256 is defined for consent statements only.

2. Keys

A key has exactly one encoding and therefore one key id. The canonical SPKI forms are fixed byte for byte: Ed25519 is a 12-byte prefix plus the 32-byte key (44 bytes); P-256 is a 27-byte prefix plus the uncompressed X and Y (91 bytes). Anything else, including a compressed point or explicit curve parameters, is invalid_key, whatever a library would accept. A P-256 point MUST be on the curve.
Ed25519 key validity (0.2.0). The 32-byte key MUST be a canonical point encoding, on the curve, and not of small order. Under a small-order key, a signature with small-order R and S = 0 verifies against every message; OpenSSL accepts it and @noble/curves rejects it, so two conformant verifiers disagreed about whether a signature was genuine. Found by differential testing; checking the key at load makes every verifier reject it identically. The key id is unchanged: base64url(SHA-256(SPKI DER)), first 16 characters. A suite MUST belong to the key's type, determined from its SPKI, never from a field.

3. ES256 and WebAuthn-ES256

ES256. Exactly 64 bytes, r and s in [1, n − 1], s ≤ n/2, verifying over SHA-256(payload). Low-S because ECDSA is malleable and some NOMOS digests cover signature bytes; a signer producing high-S replaces s with n − s. Deterministic nonces (RFC 6979) are recommended.
WebAuthn-ES256. client_data_json is JSON with type "webauthn.get" and challenge equal to base64url(SHA-256(payload)); authenticator_data is at least 37 bytes with the user-present and user-verified flags set; the DER signature verifies over authenticator_data ‖ SHA-256(client_data_json) using the exact decoded bytes. User verification is required because a consent is an approval by a person, not a touch. The origin is recorded for audit but not needed for correctness, since the key itself is certified; the signature counter is not checked.

4. Errors & Conformance

Reason
Meaning
unknown_suite
The declared suite is not in the registry
suite_key_mismatch
The suite does not belong to the key's type
invalid_key
The key is not exactly one of the canonical forms, or is an invalid Ed25519 point
bad_encoding
The signature or a WebAuthn field cannot be decoded as required
high_s
An ES256 signature is not low-S
bad_client_data
client_data_json is not JSON, or its type is wrong
challenge_mismatch
The WebAuthn challenge does not commit to this payload
user_not_verified
The user-present or user-verified flag is not set
bad_signature
The signature does not verify
A consuming specification reports failure in its own terms (CONSENT_INVALID, bad_signature) and passes these reasons through unchanged. suite-vectors/ holds 30 deterministic vectors; the Python reference, an independent Node verifier, the NOMOS-SPEC-007 TypeScript prototype and @nomosprotocol/verify pass all of them. Whether a key is authorized to sign a given object is decided by NOMOS-SPEC-007 and the calling specification, not here.