Skip to content

Releases

0.23.9 (2026-11-24) - the re-check follow-up wave: pq1 JOSE interop proof, guarantee v2.0.0, publisher pinning

Choose a tag to compare

@craigamcw craigamcw released this 24 Nov 19:42
  • pq1 independent JOSE interoperability proof (re-check finding 143): tests/test_pq_interop.py mints a real pq1 receipt through the shipped ProvenanceLogger sign path (strict quantum mode) and hands the untouched Compact JWS to joserfc - pinned in the [dev] extra at the verified span >=1.7.7,<2 (1.8.0 verified 24 Nov 2026, the verify-path crit rejection re-verified on 1.7.7 which is the py3.10 resolution; PyJWT 2.10.1 was probed first and DISQUALIFIED: it silently accepts a valid-signature receipt whose header carries unknown crit entries). The external library parses the three-segment framing and decodes the protected header including the raucle/pq1 crit entry, and asked to verify it REJECTS the unknown-crit payload with UnsupportedHeaderError naming both raucle entries before any signature work (RFC 7515 §4.1.11: no silent acceptance of an unrecognised critical mark); under out-of-the-box defaults the library refuses the 3373-byte slot even earlier, at its documented 1024-byte signature bound (ExceededSizeError). The same receipt verifies with raucle's ProvenanceVerifier only when BOTH signature components are verifiable: an unknown PQ key fails closed and a flipped ML-DSA byte invalidates the receipt. Red-first: the test failed collection with ModuleNotFoundError: No module named 'joserfc' before the dependency was wired, then greened under the pinned install.

  • security-guarantee v2.0.0 (re-check findings 144, 149): the authentication-failure claim in the section 2 authorisation bullet is narrowed to the receipt boundary - the shipped three-way truth is that an unauthenticated request is refused pre-gate before any gate decision and earns no receipt (receipt_id null; a transport-layer refusal is not receipted evidence), an authenticated request the gate denies earns a receipted DENY carrying the reason, and an ALLOW whose receipt cannot be written still downgrades to deny (PR #330's verified live boundary; the old "every authentication failure returns a receipted DENY" wording was false and is withdrawn). The OpenClaw fail-mode wording is corrected (finding 144): the plugin DEFAULTS failureMode to closed (verified in plugins/openclaw/src/types.ts), and the fail-open surface is the host's exception-swallowing hook runner, not the plugin, which is why the plugin never relies on host exceptions and emits explicit block decisions instead. The same-class overclaim in docs/gateway-security.md is truthed up with it. The document's own semver rules (section 7: narrowing a claim is MAJOR) drive v1.0.0 -> v2.0.0 with the version history row itemising every correction class.

  • residual-list scope precision (re-check findings 145, 146): the guarantee's Known residual risks now state that approval exactly-once consumption holds within one ApprovalManager and a shared transactional store across gateway workers is future work (multi-replica deployments must not consume the section 2 replay-refusal wording as distributed exactly-once), and that the replay store enforces at the handshake acceptance seam with A2A task/message/invocation paths separately tracked until path-level restart-replay tests exist for them.

  • supply-chain pinning (re-check finding 147): both pypa/gh-action-pypi-publish uses in .github/workflows/publish.yml are pinned to the reviewed commit 7245906fb61fa33a13554f9d5fb856fe61758086 (the release/v1 branch, resolving to release tag v1.14.3 at pin time), matching the SHA-pinning discipline every other action in that workflow already had.

  • Foundry sidecar Bicep image pin bump (re-check finding 148): deploy/foundry-mcp-sidecar/bicep/main.bicep moves the raucleImage default v0.23.7 -> v0.23.8 with the provenance comment updated to commit 27fce30497ad07e6605558c2566ccd0da1b9c658 (verified against the PEP 740 provenance attestation of the raucle 0.23.8 PyPI release); the honest no-GHCR-image deviation note is unchanged, and tests/test_sidecar_artefacts.py pins the new tag, the new commit and the absence of both superseded pins.

  • Version reconcile for 0.23.9: pyproject.toml and the module constant reconciled at 0.23.9 with the sonar.yml distribution pin re-keyed (install line raucle==0.23.9); uv.lock refreshed for the 0.23.9 entry (re-resolution drift: none - the lock diff is the raucle entry alone, no added, removed or re-versioned packages); conformance data regenerated (generated equals committed, digest sha256:7ed5a71b841dcbc888e9d7db208ec325095f5fbe408bb9afb4f427612a4134c4); README capability refresh: the published security guarantee bullet re-keyed to v2.0.0 with the three-way receipt boundary and a new pq1 JOSE interop proof bullet.

  • The shipped demo bundle regenerated with a fresh custodian key 43bc059e82435e80 (the 0.23.8 key 28c2096320baaf1f deleted) and the published digest re-pinned in .github/workflows/ci.yml AND tests/test_demo_verify.py in the same commit per the D12 discipline.

Security guarantee v2.0.0 and the checker-verdict trail ship in this release (docs/security-guarantee-v1.md, docs/checker-verdicts/). The pq1 JOSE interoperability proof (joserfc crit rejection pinned; the PyJWT silent-accept disqualification recorded) rides tests/test_pq_interop.py. Release provenance: annotated tag v0.23.9 at the release commit (GitHub-tag verified) with the publish run from that exact head.

0.23.8 (2026-11-24) - adversarial hardening wave: eleven checker-closed security lanes, pq1 JOSE conformance, artefact honesty, verdict remedies

Choose a tag to compare

@craigamcw craigamcw released this 24 Nov 17:26
  • The published security guarantee, v1 (docs/security-guarantee-v1.md): a one-page statement of exactly what the receipted gate decision layer guarantees at a pinned source revision and what it does not, with every claim naming the test pin that fails if the claim regresses; the source revision row pins the v0.23.8 release commit.

  • The checker verdict trail (docs/checker-verdicts/): the per-PR checker verdict records from the hardening wave review rounds (raucle PRs #310 to #328 plus raucle-agent-red #45, including the superseded unsound-pass tombstone for #310), committed as the audit trail of the review cycle.

  • Security remediation (RED-039, a second external review of the main branch): the TrustRegistry constructor verifies integrity BY DEFAULT, so every construction path (the gateway boot issuer map, the cross-org registry loader, the CLI registry commands) refuses a parseable-but-tampered history - reordered entries, swapped key material, broken operator signatures - with the same named RegistryIntegrityError instead of silently folding attacker-issued keys into the issuer map. The one escape hatch is an explicit verify=False for authoring/repair tooling, used nowhere in an authorisation path. Honest limit: for SIGNED registries without the operator key present, the documented integrity-only model applies (chain, key-id binding and issuer uniqueness still enforced; authentication requires the operator key).

  • RED-039 continuation: the operator-key-registry boot guard (KeyStoreRegistryMismatch) now records the registry head it serves on in a <registry>.head-pin file and refuses a registry that moved BACKWARD (truncated or rolled-back tail, which verifies on its own) or SIDEWAYS (same index, different head hash). Forward growth (an operator append between boots) passes and re-records the head; deleting the pin is the documented consumer reset for a legitimately re-initialised registry. The production gap this closes: gateway._ensure_caller_gate previously built TrustRegistry(path=...) directly and loaded ANY parseable registry unverified.

  • RED-039 continuation: handshake replay protection is production-grade. accept_call now REQUIRES a persistent, atomic replay store (new raucle.replay_store: ReplayStore interface + SqliteReplayStore on the receipt-index sqlite idiom, WAL, uniqueness enforced by the database primary key, retention opt-in with a retain-forever default). The optional process-local seen set is gone; a request without a nonce is refused unconditionally; the consume happens BEFORE any gate decision, so a nonce consumed for a request whose handling crashed cannot be re-executed after a restart. Concurrent duplicate requests accept exactly once.

  • The agent passport's ttl_seconds refuses 0, negative and non-integer values with a named ValueError (previously ttl_seconds=0 silently meant never-expiring); None keeps the documented no-expiry mode (the CLI --ttl default). verify_passport now refuses a passport whose issued_at sits in the future beyond the registry's 300s clock-skew allowance, and runs the vouched statement through the production CapabilityStatement parser (unknown fields and wrong shapes fail with a named structural-validation reason, distinct from unknown statements/issuers).

  • The cross-org demo and the handshake docs route every responder call through the replay store; the demo's revoked-key scene uses a fresh nonce (its old shape replayed scene 1's nonce, which the mandatory store now refuses as a replay before the registry check).

  • Audit multi-process safety (Q11 D): HashChainSink appends run under an inter-process file lock with a head refresh inside the same critical section, so a writer that slept while another process wrote adopts the true chain tail from disk instead of forking the chain; a SIGKILLed writer leaves the torn last line named in the sink's status channel (and again on the next verify), never a silent skip, and the chain continues from the last complete record. A four-process stress test pins one chain, unique strictly increasing indices and verifier green on the merged chain, plus the SIGKILL-mid-append case through real processes.

  • Audit advisory single-writer mode (Q11 D): RAUCLE_AUDIT_SINGLE_WRITER=1 records the operator's promise that the chain file has exactly one writer; boot then holds an exclusive lock for the sink's lifetime and a second writer refuses boot by name (the receipts sidecar's single-writer discipline, applied to the audit chain).

  • Signed audit production strict mode (Q11 F): RAUCLE_REQUIRE_SIGNED_AUDIT=1 refuses boot by name when the signer is unavailable or the audit chain's genesis is unsigned, naming raucle rotate-chain as the recovery path; unset keeps the development affordances (an unsigned chain warns and runs). Checkpoint generation failures surface on the sink's named status channel (checkpoint_skipped) instead of a log-only skip, and a writer that adopts a foreign head names the adoption and degrades checkpoint anchoring visibly rather than emitting an unverifiable checkpoint.

  • The /health readiness payload gains an honest audit_chain field (state and the genesis key id) reporting what the chain on disk actually is, set from the chain's chain_meta header at boot, never from the config's wish.

  • Capability delegation strict ancestry mode (Q11 E): RAUCLE_REQUIRE_ANCESTRY_RESOLVER=1 refuses a token that cites a parent by name when no parent resolver is configured (root tokens stay servable), and a boot with the strict flag refuses when no delegation ledger backs the resolver, so delegations deeper than one level are never served without resolvable ancestry. With the resolver wired, root, child and grandchild revocation each deny the descendant tree, the denial survives a gateway restart, and the ledger resolver is read-only with appends visible on the next call.

  • HashChainSink.event_count now counts the records this sink instance appended; the adopted chain head is HashChainSink.head_index (and status head_index), honest in a multi-writer deployment where one sink's local count and the shared chain head diverge. The verifier's no-key mode reports a hash-intact chain as valid with signed_mode unverifiable, matching its documented best-effort contract and the checkpoint path's behaviour, while a key-carrying verifier still refuses anything not signed.

  • RAUCLE_DELEGATIONS_FILE is now loaded by the environment config: it was documented in prod.env.example but was never read, and the strict ancestry mode depends on it. The three enforcement flags are documented in docs/deployment-security.md and listed in deploy/prod.env.example.

  • The enforcement control plane closes: a policy file, revocation registry or delegation ledger carrying an operator-signed .meta sidecar seal (canonical SHA-256, Ed25519 signature over the raw file bytes, key id, sealed-at) is verified at boot and at reload, and a seal that does not match the current bytes refuses with the named PolicySealRefused in every sealing mode - the RAU-02/M5 filesystem-write-equals-enforcement-control path (residual 5) now needs the signing key, not the filesystem.

  • New raucle policy seal|verify CLI writes and checks the sidecar seals; verification trusts only the keys configured via RAUCLE_POLICY_SEAL_PUBLIC_KEY (key ids follow the house sha256(PEM)[:16] convention; an unreadable configured key file refuses the boot). New RAUCLE_POLICY_SEALING=required|advisory|off (default advisory for one release cycle: unsigned policy boots behind a named POLICY SEAL ADVISORY banner and nothing denies; required refuses unsigned policy at boot; off is the explicit opt-out). This mirrors the shipped M2 detection half (unsealed deployments unaffected; divergence still fails closed) rather than bricking existing deployments on upgrade - required is the named flip documented for the next cycle (RED-036's sibling residual 5, M5).

  • Gate receipts now bind x_gate.policy_hash when the deciding policy file carries a verified seal: an auditor can prove WHICH sealed policy made each decision. The field is optional-when-unsealed, so legacy receipts and legacy verifiers verify byte-identically (RAU-02 receipts leg).

  • The revocation-list and delegation-ledger file-cache paths now share the SAME seal mechanism: a registry the operator marks with a .meta seal refuses a diverging load into the deny path, in any mode; unmarked registries are unaffected (RAU-02 registries leg).

  • _FileCache keys registry entries on (content_sha256, size) instead of (mtime_ns, size), closing the R16 same-size-edit staleness (a same-size write with a preserved mtime no longer serves a stale revocation set); the stamp is the hash of the bytes the loader parses, so a concurrent write cannot tear an entry across two reads. Parsing stays memoised; read failures still raise into the deny path (RAU-05).

  • SIEM target validation resolves DNS and refuses when ANY resolved address lands in loopback/link-local/private/reserved/multicast space (the RED-036/R15 hostname hole), refusing unresolvable targets fail-closed; the forwarder's new pinned transport (raucle.siem_pinned) re-resolves and re-judges immediately before each dial and connects to the validated address while SNI, the Host header and certificate verification keep the operator's hostname - a DNS rebinding race between validation and request now hits a connect-time refusal, never a request (RAU-04).

  • OpenClaw plugin hardening (Q14, fourth review): the OpenClaw plugin now registers every hook through the TYPED hook API (api.on) - the previous api.registerHook("before_tool_call", ...) registration is never invoked by the typed runner (a silent no-op on current hosts), the tool gate registers with no matcher restriction so every registered tool is covered, and package.json pins openclaw.install.minHostVersion: ">=2026.4.22" (the release that introduced typed hooks). Ho...

Read more

0.23.7 (2026-11-23) - receipts v1.2 evidence lanes, X2 cross-org + transparency-log verification, X3 receipted operator key rotation

Choose a tag to compare

@craigamcw craigamcw released this 23 Nov 17:58

raucle 0.23.7

The first release assembled under the per-lane changelog convention. Content summary from the CHANGELOG (full details in CHANGELOG.md).

Receipts v1.2: evidence lanes (EPIC W + H3)

  • State-verified write receipts (W1): x_state on the authority-receipt mint path binds the runtime's read-back digest to the write's receipt (cited receipt, closed field set, state_evidence: absent literal sentinel, never a fake digest); the pairing registry is an operator-declared policy section bound fail-closed at boot. The paper's false-success class is now offline-checkable.
  • Definition-drift evidence (W2): every gate receipt for a schema-registered tool carries a versioned x_gate.tool_definition digest; a receipted manifest reload supersedes drift, and the offline verifier's chain-end pin fails silently-drifted chains with a named error.
  • Counterfactual evidence blocks and revocation-event receipts: version-gated, closed field sets; a revocation is a new link in the chain, never an edit.
  • New public specs: state-verification.md, content-dlp.md, counterfactual-evidence.md, revocation-receipts.md.

X2: verification beyond the operator's word

  • Offline verification of the hosted transparency log (slice 2): inclusion and consistency proofs with named STATUS_LOG_* statuses and every refusal reason reported, a cross-repo dogfood fixture against the real raucle-cloud log.
  • Cross-org receipt verification (slice 3): a validating party resolves keys from the Trust Registry and verifies another organisation's chain offline; statements missing keys fail closed with the honest-unstated verdict, never a silent clean.

X3: operator trust plane

  • Receipted operator signing-key rotation (slice 3): raucle operator rotate-keys with key retirement (still verifiable, never deleted), the boot split-brain guard, and a runbook.
  • Single-writer receipt sidecar (slice 4) and the optional OIDC/SSO admin federation (slice 2, per-process admin sessions with the residual named).
  • Enterprise proxy runtime specification (Q7b): the versioned wire contract for the closed EE content-plane runtime, built entirely over existing OSS gate surfaces; spec + receipts + verifier stay OSS, the runtime is EE, disclosed rather than left ambiguous.

Session behaviour family (EPIC Q1/Q3 + demo lanes D2/D5/D14-D17)

  • Deterministic session behavioural rules (runaway_tool_loop) enforced at the gate with a signed deny receipt and a session-monitor finding citing the cut-off call; rules only ever see calls that declare a session id.
  • Gate receipts carry an optional session_id and the receipt index moves to schema v3 (active_session_ids / session_receipts); continuity exists only where the caller declared it.
  • Per-participant scoping across the tool_call and tool_response_taint planes; the D2 Data Protection screen and the MCP scanner tab run the real engines with payload-free, content-absent findings.

Reliability and honesty fixes

  • J1/J2 operator reliability: raucle rotate-chain (archive, never delete, signed rotation receipt, boot verification) plus the boot memory preflight that refuses the 18 Nov OOM-killed-boot class before it happens; the receipt-index migration now runs as ONE transaction with deterministic crash recovery instead of a permanent crash-loop.
  • Attribution honesty: the crewai bearer-mode regression fixed (unattributed calls deny, deny receipts carry an honest null agent_id, never a placeholder), plus the agent_framework and langgraph legs; P2a adapters for OpenAI Agents SDK, Pydantic AI and Google ADK with verified spans and new CI slots so extras regressions can no longer hide behind importorskip.
  • CI toolchain pinning (ruff, sonar distribution pin) so gates cannot drift between local and CI.

Release mechanics note

The suite's distribution pin makes PyPI propagation a pre-merge requirement, so this tag was published from the release commit immediately after the CI run; the merge to main adds no content (a single-commit PR over the current tip).

Full Changelog: v0.23.6...v0.23.7

Post-tag note

The 0.23.7 heading fold to CHANGELOG.md landed on main minutes after the tag (PR #315); the sdist-bundled CHANGELOG ships with the content under Unreleased until 0.23.8 folds it.

0.23.6 (2026-11-12) - demo panels: read-only operator surfaces for the demo visitor

Choose a tag to compare

@craigamcw craigamcw released this 23 Nov 17:10
645f5de

Honest note: this release entry was missed at ship time. The tag v0.23.6 (645f5de) and the PyPI 0.23.6 distribution existed from 12 November 2026; only the GitHub release note was never cut. Backfilled 23 November 2026, summarised from the CHANGELOG section of the same release.

Highlights (section headings from the changelog)

  • Added - demo panels: read-only operator surfaces for the demo visitor
  • Added - H3 slice 1: TEE / hardware-attested signer path
  • Added - X1: OpenAPI as the named secondary schema source
  • Added - X5: hot-path bench harness + async receipt sink
  • Added - X3 slice 1: optional OIDC/SSO federation for the admin plane
  • Added - EPIC S5: gate chaos mode (default-off)
  • Added - EPIC S2: the receipt-bound bilateral policy diff
  • Added - EPIC S3: threat model as code, with a CI guard
  • Fixed - Helm chart: demo key could not render, and two knobs were unwired
  • Tests - RED-038: seam coverage for the classes the suite missed
  • Fixed - RED-037: rate limits that exist, mean the right thing, and are documented
  • Fixed - RED-036: per-call registry cost, export memory, SIEM target
  • Fixed - RED-035: evidence paths are guarded, the demo key is a posture
  • Fixed - RED-034: the receipt index is fed on every sink
  • Fixed - RED-033: panel output escaping and security headers
  • Fixed - RED-032: admin identity durability, hashed keys, MFA honesty
  • Fixed - RED-031: approval thresholds evaluate fail-closed
  • Tests - dark-corners remediation round 2
  • Fixed - M026/M027: round-3 bypass remediations (RED-026 / AV-02, RED-027 / AV-10)
  • Fixed - Round-3 bypass remediations (RED-029, RED-030)
  • Added - N2: SCITT transparency anchoring of receipt-chain heads
  • Added - N3: Nelson-14 delegation-receipt gate (Python profile)
  • Added - N1: x_bilateral execution-boundary co-signed receipts
  • Added - O1: data-flow-aware policy rule kinds
  • Added - I1: counterfactual proofs (the z3 leg)

Full changelog: https://github.com/epic28-ltd/raucle/blob/v0.23.6/CHANGELOG.md

Full Changelog: v0.23.5...v0.23.6

0.23.5 (2026-10-30) - records lifecycle, counterfactual replay, authorship receipts, time-source anchoring

Choose a tag to compare

@craigamcw craigamcw released this 30 Oct 17:43

Added - I1: counterfactual replay (the incident-review question, answered deterministically)

  • raucle counterfactual policy --chain ... --inputs ... --policy alt.yaml:
    re-run every recorded gate decision under an alternative policy and
    answer, per action, whether the stricter policy would have denied it.
    The verdict is replayed from the receipts and the input store, not
    inferred: authority held constant, the question is a policy question.
  • Bounded disclosure holds in the report: no denial reasons, no arg
    values; each row cites its receipt hash. Receipts without a stored
    input are unreplayable, never guessed. The replay never writes to the
    incident chain it examines (pinned by test).

Added - G3: records lifecycle (retention stamps + tamper-evident disposal)

  • Gate receipts stamp retention_until when retention_days is configured
    (a records schedule on every decision; zero when unset).
  • raucle records destroy writes a signed destruction receipt (x_destruction)
    binding the span, count and digest of what left, an escrow copy of the
    removed records, and the re-anchored surviving chain. raucle records verify re-checks the signature offline, and re-checks the span digest
    against the escrow when supplied - each escrow record's own hash is
    recomputed first, so a payload edited after the fact fails before the
    digest comparison. Disposal is evidence, like every other lifecycle event.

Added - I3 + H4: auditor exports over the pack, and SBOM per release

  • raucle compliance export --pack DIR --format csv|json: auditor-facing
    coverage.csv, extracts.csv and a combined pack-export.json over an
    existing pack bundle. The exports derive from the bundle; they carry
    nothing the bundle does not.
  • .github/workflows/sbom.yml: a CycloneDX SBOM for every tagged release,
    validated and uploaded as a workflow artefact. Isolated from the publish
    pipeline so an SBOM failure can never block a release.

Added - E1b: the compliance evidence pack (dora first, the x_compliance certificate)

  • raucle compliance pack --chain ... --framework dora --pubkey ... --operator-key ... --out DIR builds the regime bundle: report.md,
    coverage.json (control results with regulation citations), extracts.jsonl
    (bounded decision extracts, no args, no reasons, no constraint values,
    every line citing its receipt id), retention.json (observed span vs the
    regime expectation), and the x_compliance verification certificate.
  • The certificate is a signed JWS receipt the auditor verifies offline with
    the public verifier and the operator public key: no account, no trust in
    the vendor. A chain that fails verification gets verifier_result invalid,
    the report says so on its first line, and the CLI exits non-zero. The
    pack never upgrades bad evidence.
  • The dora framework joins the registry (RTS 2024/1774 Article 12 controls,
    with the FSB attribution expectation): RTS-12(2)(d) is satisfied only by
    signature verification actually run against the provided key, never by
    assertion.
  • Spec: docs/spec/compliance/pack-v1.md.

Added - EPIC D: harness findings as verifiable evidence (x_finding)

  • A QM/Pentagon-class harness running its security tests through the
    raucle gate reports every finding as a signed receipt citing the gate
    receipt that covered the request (RaucleGateway.emit_finding).

  • The offline verifier replays the claim: a finding citing a receipt not
    in the chain, or misreporting the gate's decision, fails verification
    with a named error. Emission is the harness's claim; verification is
    the truth check.

  • Verdict vocabulary closed: confirmed, refuted, expected_pass. Finding
    ids deterministic per (harness, test_id, cited receipt).

  • Spec: docs/spec/provenance/v1.2/harness-findings.md.

  • Release note: the first release carrying the H1-era evidence tooling -
    raucle records destroy|verify (tamper-evident disposal), raucle
    counterfactual policy (the incident-review question answered
    deterministically), the Claude Code authorship hooks, the RFC 3161
    three-mode time-source model, the receipt-chain-to-audit-chain
    projection, and the SonarCloud hardening (validated bundle writes,
    temp-dir verifier chains).

0.23.4 (2026-10-30) - credential-lease receipts (the x_lease evidence layer)

Choose a tag to compare

@craigamcw craigamcw released this 30 Oct 17:43

Added - C1: credential-lease receipts (the x_lease evidence layer)

  • A credential lease - a gate-minted, time-limited grant of a vault
    secret's USE, scoped by the delegated authority that authorised it - is
    now a receipted event: granted, denied, redeemed, revoked, each carrying
    an x_lease extension (capability chain, secret by HASH only, scopes
    narrowed from the capability's constraints, TTL).
  • The verifier re-checks redemptions offline without vault access: a
    redemption must cite a grant, fall inside its TTL window, and never
    widen its scope.
  • Spec: docs/spec/provenance/v1.2/lease-extension.md. The vault, lease
    manager and injection proxy ship in raucle-cloud (the 16.3 split).
  • Found and fixed while landing this: authority receipts (suspend,
    revocation) carried an empty ruleset_hash, which the standard chain
    verifier rejects on truthiness - they now bind the extension block's
    hash and verify through the standard verifier like every other receipt.
  • Tests: tests/test_lease_receipts.py.

0.23.3 (2026-10-30) - intent binding, cascade revocation, pair permissioning

Choose a tag to compare

@craigamcw craigamcw released this 30 Oct 17:43

Added - B1: agent+user pair permissioning (OSS evidence half)

  • The principal becomes the (agent, acting-for user) pair: a capability may
    bind to a user via acting_for (user:-prefixed principal grammar); tokens
    without a pair stay byte-identical to v1.1.
  • The gate refuses cross-pair use - a pair-bound token used with a
    different (or undeclared) acting-for user denies, attributable, and the
    receipt records both halves of the pair (x_gate.acting_for).
  • A delegated child inherits the pair and may never re-target a different
    user; narrowing an unpaired parent to a pair is allowed (setting a user
    narrows the authority).
  • /gate gains an acting_for request field. The per-pair policy resolution
    and minting workflows ship in raucle-cloud (the 16.3 split); the
    two-user demo (same agent, different permission sets, different
    receipts) is exercised there.
  • Tests: tests/test_pair_permissioning.py; raucle-cloud
    tests/test_pair_resolution.py.

Added - A3: cascade revocation with evidence

  • Revoking a capability now cascades: the whole subtree is walked from the
    delegation ledger, persisted to a revocations file (RAUCLE_REVOCATIONS_FILE,
    loaded per call so revocations propagate immediately), and receipted. The
    revocation itself is a signed, attributable receipt (x_revocation:
    revoked-by-whom, when, which subtree) that verifies offline like every
    other receipt.
  • The gate refuses new actions on the subtree: token ids, their direct
    parents, and every ancestor are checked against the live revocation set.
  • The verifier marks revoked-at-H: a receipt minted AFTER a revocation of
    its cited authority is INVALID with a named reason; receipts minted
    before it remain valid evidence - the authority was live when they
    minted. Single-pass temporal order, no trust in the gate's own
    enforcement story.
  • Owner-departure operation: POST /api/agents/{id}/revoke-chains revokes
    every delegated chain of an identity in one receipted action (the
    lifecycle audit trail); POST /api/revocations revokes a single subtree.
  • Tests: mid-chain cascade, verifier marking, owner departure
    (tests/test_cascade_revocation.py).

Added - receipts v1.2: task-intent binding (A1)

  • A capability token may carry an intent: the approved task statement plus
    structured constraints (resource class via tools, data bound via the
    standard constraint vocabulary). Tokens without an intent stay
    byte-identical to v1.1.
  • The gate enforces the intent deterministically on every call (no model
    involvement): the tool must sit inside the approved class and the
    arguments must satisfy the intent constraints. Denials are attributable.
  • Receipts carry x_gate.intent (the approved purpose, signed) plus a
    bounded x_gate.intent_check disclosure - only the constrained fields'
    values, nothing else.
  • The verifier re-checks ALLOW receipts against their own intent and
    rejects a chain-valid receipt whose action violates the approved
    purpose, with a named reason. DENY receipts are exempt (a denial for an
    out-of-intent attempt IS the enforcement).
  • A delegated child inherits its parent's intent and may only narrow it;
    widening is refused (the same monotonicity as every other dimension).
  • Spec: docs/spec/provenance/v1.2/intent-binding.md. Fixtures: the
    calendar-vs-archive and recipient-allowlist cases in
    tests/test_intent_binding.py.
  • Found and fixed while landing this: the verifier's v1.1 chain-digest
    re-check never fired (it read x_gate off the envelope, which only
    carries {receipt_hash, jws}) and the recompute used the wrong field
    names. Both now live: the verifier decodes the JWS payload and
    recomputes the digest from the block's own fields.

Changed - B2 attribution audit: unattributed calls deny across all adapters

  • The invariant: every ALLOWED execution carries a real acting identity,
    and no minted receipt carries a fabricated placeholder. The same
    fail-closed doctrine as the gateway (v0.23.2), prerequisite for
    agent+user pair permissioning (B1).
  • langchain: require_agent_id now defaults True (bearer-mode trust is an
    explicit opt-out); the "" placeholder is gone - unattributed
    attempts deny with the reason recorded and receipts carry an honest null.
  • crewai: bearer mode (agent_id=None) is closed; unattributed attempts
    deny with "no acting agent identity".
  • autogen: an empty agent_id denies. Found and fixed a latent adapter bug
    surfaced by the audit: the gated wrapper's bare **kwargs signature made
    autogen's FunctionTool build a broken args model ("kwargs: Field
    required") - the wrapper now preserves the original signature via
    functools.wraps.
  • agent_framework: accepted, documented - the caller id comes from the
    framework context with a documented bearer fallback to the token's own
    agent_id; B1 should surface the acting-for user so the fallback never
    triggers.
  • a2a: audited clean (identity required by construction).

0.23.2 (2026-10-29) - attributable token denials are receipted, not pre-gate

Choose a tag to compare

@craigamcw craigamcw released this 30 Oct 17:43

Fixed - the evidence gap found by the QM live integration

  • A validly-signed token whose call exceeds its delegated authority (wrong
    tool binding, agent mismatch, constraint violation, proof mismatch) was
    rejected during authentication: deny with the reason echoed but no
    receipt, no persisted evidence. Who tried what is exactly what an auditor
    needs, so the denial is now receipted with the delegated-authority chain
    bound (x_gate.authorization). Fail-closed semantics unchanged.
  • GateDecision.attributable distinguishes per-call authorization failures
    (identity established, authority refuses) from identity-stage failures
    (unknown key, bad signature, expiry, unverifiable chain), which stay
    pre-gate denials: there is no trustworthy chain to bind.
  • _deny_result now threads the authorization block into the receipt, so
    every denial where identity is known carries the chain.
  • Found by exercising the constraint-deny path against a real socket
    through the QM deployment-directory gate tool (raucle-cloud Move 3).

0.23.1 (2026-10-29) - receipts v1.1: delegated-authority binding, delegation ledger, verifier digest check

Choose a tag to compare

@craigamcw craigamcw released this 30 Oct 17:43

Added - receipts v1.1: delegated-authority binding in gate receipts

  • Gate receipts carry an x_gate.authorization block (capability_id,
    issuer, key_id, parent_id, attenuated, chain_digest) binding each
    decision to the delegated-authority chain that authorised it. The
    chain_digest is SHA-256 over the canonical chain; the verifier fails
    closed on any mismatch.
  • raucle/capability.py: DelegationLedger, an append-only JSONL of signed
    capability records. register() refuses any record its stated issuer did
    not sign; resolver() satisfies CapabilityGate's parent_resolver.
  • GatewayConfig delegations_file: token-auth mode resolves attenuated
    chains through the ledger when set. Fail-closed when unset: an
    attenuated token without a resolvable parent denies.
  • Calls without any capability token remain byte-identical v1 receipts.
  • docs/spec/provenance/v1/delegation-extension.md specifies the format;
    tests/test_delegated_receipts.py pins the semantics (attenuated child
    allowed through the chain, ledger holds both hops, digest tamper
    fails, no-resolver deny).

Fixed - admin panel and demo reliability

  • Demo entry button dead in production: an over-escaped quote pair in the
    receipt-ancestry link broke the whole script block. Hashes moved to a
    data-hash attribute with one shared click handler. CI now parses every
    shipped script block with node --check, so parse breakage cannot ship
    silently.
  • Live topology rendered empty: the layout helper returned a cache
    wrapper instead of the position map, so every node drew at undefined
    coordinates. Scroll now pans (clamped to the graph extents) instead of
    silently zooming; first launch frames the five busiest chains as
    aligned rows.
  • Connections page: live tailing off by default, one example connection
    shown, click a row to reveal its path; connection-log entries carry
    receipt_id.
  • Public aggregate /api/live-pulse endpoint served by both the
    agent-facing and admin apps; RAUCLE_GATE_RATE_LIMIT knob (default
    1000/minute per source) for load-test headroom.

0.23.0 (2026-10-21) - receipt store, chain projections, authority attribution

Choose a tag to compare

@craigamcw craigamcw released this 30 Oct 17:43

Fixed — SonarCloud findings sweep: one real security gap, 49 hygiene items

  • REAL BUG (python:S1172 on audit_pack._verify_pack_chain): the pack's
    require_pq declaration was accepted but never enforced. A pack whose
    index declared require_pq=True but whose receipts carried only
    classical signatures verified as valid - the exact field-stripping
    downgrade the strict mode exists to close. ProvenanceVerifier gains
    require_pq strict mode (mirror of AuditVerifier's): every receipt in
    the chain must be a 4-segment pq1 hybrid. Regression test:
    test_declared_require_pq_with_classical_chain_fails. Pack verdicts now
    surface the verifier's specific errors (bounded) instead of only the
    generic chain-invalid reason.
  • handshake.accept_call: removed the unused require_unrevoked parameter
    (documented behaviour is fail-closed on revoked keys; nothing passed
    the override).
  • Receipt-page and export collection logic extracted to module helpers
    (cognitive complexity: _register_receipt_routes 74, check_tool_call,
    gate_tool_call, _verify_chain_header, _check_issuer_uniqueness,
    _verify_operator_signatures, _verify_signature all now under the 15
    threshold; behaviour unchanged, 1003 tests pass).
  • Receipt vocabulary constants (sha256:/provenance-receipt/v1/raucle/v1/
    agent:gate; CLI default store path) extracted (S1192).
  • Undocumented HTTPException status codes added to route "responses"
    (health 401 x2, policies 400, ancestry 501) (S8415).
  • Redundant exception classes removed (binascii.Error subclasses
    ValueError; FileNotFoundError subclasses OSError) (S5713).
  • Duplicate A-Z ranges removed from (?i) regexes in mcp_scanner (S5869);
    fuzz PRNG made an explicit seeded random.Random instance with the
    security rationale documented (S2245); slice-comparisons restructured
    (S6659); dict() constructor -> literal (S7498); consecutive appends ->
    extend (S9409); dead pq1_count removed (S1481); commented-out-code
    false positive rephrased (S125); corrupt-key log now logger.exception
    (S8572); unused gateway param removed from _register_user_routes
    (S1172); single-return restructures (S3516 x2).
  • TypeScript reference ports (behaviour-neutral; conformance re-verified
    in CI): async-without-await dropped from import helpers, redundant
    ?? {} spread removed, unknown-absorbing union simplified.

Added — authority attribution: approval receipts, policy ledger, envelope, kill switch (PR-E)

  • raucle/approvals.py: ApprovalManager. Escalated calls now create a
    receipted human approval request (x_approval); decisions through the
    admin API are receipted with the named approver; the approval binds to
    the exact tool, agent and canonical args hash and is consumed once.
    Re-submitted call with X-Approval-Id allows through the threshold and
    the action receipt cites the approval (full authority chain:
    request → human decision → action).
  • Policy change ledger: every admin panel policy write appends a
    hash-chained entry (seq, actor, action, content sha256, prev_hash) to
    RAUCLE_POLICY_LEDGER; GET /api/policy-ledger returns entries and
    recomputed-chain integrity. Receipts already bind ruleset hashes; the
    ledger closes the loop upward: who changed the rules, and when.
  • Authority envelope: GET /api/agents/{id}/authority returns a signed
    statement (raucle/authority-envelope/v1) of what the agent could use:
    policies (tools, constraints, TTL) and credential status, verifiable
    offline with the gate identity's public key.
  • Kill switch: POST /api/agents/{id}/suspend (admin-only) revokes the
    agent's credential and writes an x_stop receipt (agent, reason, actor,
    revoked). The stop itself is evidence: who stopped the agent, when, why.
  • GatewayConfig: approval_ttl_seconds (RAUCLE_APPROVAL_TTL, default 300),
    policy_ledger_path (RAUCLE_POLICY_LEDGER, empty = disabled).
  • tests/test_authority_attribution.py: 16 tests across all four features
    (full approval flow, args binding, single consumption, expiry, denial,
    tamper detection, envelope signature, suspend RBAC).

Added — key operations, deployment topologies, Helm chart (PR-D)

  • docs/security/key-operations.md: rotation (versioned-issuer zero-downtime
    procedure; the registry's one-active-key-per-issuer impersonation control
    is the reason), escrow, recovery, split PQ-key posture, fail-closed list.
    Maps 1:1 to the executable test.
  • tests/test_key_rotation_e2e.py: the runbook's proof. Old receipts verify
    after rotation (archival property: revoke != erase), new mints use the new
    key, revocation fails new authorisation closed while old signatures still
    verify; gateway signing-key restart rotation with both generations in one
    chain.
  • docs/deployment-topologies.md: where raucle sits (not the model path),
    the trust boundary stated plainly (in-process = observability; the
    boundary is out-of-process gate + credential isolation), single node /
    hot standby / namespace sharding, edge patterns (TLS/mTLS/OIDC), the
    Postgres trigger, retention as a file operation.
  • docs/getting-started/20-production-hardening.md: the 90-minute evaluator
    path (auth on, segments+index, restart test, offline verify, query,
    checklist, runbooks).
  • deploy/helm/raucle-gateway: chart with REQUIRED adminKey (renders fail
    without it), replicaCount pinned to 1 (one writer per chain), PVC,
    probes, ingress; CI job lints + kubeconform-validates templates and
    asserts the no-adminKey render fails.

Added — receipt query index, ancestry API and bulk egress (PR-C)

  • ReceiptIndex: SQLite (WAL) projection over the segmented store; rebuild
    from chain at any time; never a trust decision.
  • /api/receipts upgraded to real query: agent/tool/decision/trace/time
    filters with keyset pagination (tie-safe composite cursor).
  • /api/receipts/{hash}/ancestors: parents-DAG walk, nodes+edges JSON,
    cycle-safe, depth-capped.
  • /api/receipts/export: JSONL streaming egress for the caller's data
    platform.
  • Admin panel Receipts tab: filter bar, paginated table, ancestry
    drill-down.

Added — signed gate receipts and segmented storage (PR-B, production readiness)

  • Every /gate decision (allow, deny, escalate) emits a signed provenance
    receipt (guardrail_scan + x_gate extension) written as a minimal envelope;
    receipt_id returned in the response and verifiable offline with the
    standard verifier, CLI, MCP tool and all five reference ports.
  • X-Trace-Id threads caller traces through receipts; generated and echoed
    when absent.
  • Fail-closed accountability: an unwritable receipt downgrades the
    decision to deny.
  • SegmentedReceiptStore: size-based segments with read-only sealing and
    .meta sidecars; sealed segments are pure receipt chains (verify and
    audit-pack directly); bounded-memory newest-first queries. Opt-in via
    RAUCLE_RECEIPT_STORE_DIR; the legacy flat file remains the default.
  • RAUCLE_EMIT_RECEIPTS=0 restores pre-PR-B behaviour exactly.

Added — gateway identity and key persistence (PR-A, production readiness)

  • Gate authentication modes (RAUCLE_GATE_AUTH=off|apikey|token): per-agent
    API keys (X-Api-Key, hashed at rest, constant-time verify, instant
    revocation) and capability-token authentication (X-Capability-Token,
    verified against the trust registry with per-call revocation propagation).
    off preserves the previous declared-identity behaviour (compat).
    Auth failures return a receipted DENY with the reason, not a bare 401.
  • raucle agents issue-key|revoke-key|list CLI for credential management.
  • Gateway signing key persistence: local signers persist the Ed25519 key
    (0600, default <data-dir>/gateway-signing-key.pem); tokens and receipts
    now verify across restarts; corrupt key material fails closed instead of
    silently regenerating.
  • Admin user persistence (RAUCLE_USERS_FILE): users and MFA secrets
    survive restarts; demo-mode users remain in-memory by design.
  • docs/gateway-security.md: auth-mode selection table, fail-closed
    semantics, in-process vs out-of-process trust boundary guidance.

Added — conformance re-verification layer (raucle.conformance)

  • Field-level Merkle commitments over call arguments (JCS-canonical leaves,
    UTF-16 code-unit ordering, domain-separated SHA-256 throughout; the scheme
    is deliberately zk-proof-system-portable).
  • Selective disclosure: the operator opens only the fields a verifier
    requests, with Merkle paths; verify_disclosure fails closed on any
    tamper or root mismatch.
  • Partial constraint re-check: per-constraint SATISFIED / VIOLATED /
    UNKNOWN verdicts re-derived independently of the operator's runtime.
    UNKNOWN is fail-closed and never counts as conformance.
  • Design document: docs/spec/provenance/v1/conformance-reverification.md
    (Layer 1 of a three-layer roadmap; Layer 2 is a zkVM proof of the gate
    check with zero disclosure).

Documentation

  • NCSC Cyber Assessment Framework (CAF v3.2) and NCSC ML-security-principles
    control mapping: docs/security/ncsc-caf-mapping.md.
  • Repository URLs updated across docs, package metadata, reference ports,
    and CI after the organisation move to epic28-ltd/raucle.
  • Paper (§5, §8, author's note): conformance layer, remote-key signing, and
    policy-DSL gateway recorded as post-freeze engineering additions; the
    evaluation's pre-registration scope is unchanged.