From 35c6bd628a712c45e53aefec1995674ea94535da Mon Sep 17 00:00:00 2001 From: bordumb Date: Tue, 10 Nov 2026 22:10:38 +0900 Subject: [PATCH 1/5] fix(state): enforce approval and exporter operation ownership --- AGENTS.md | 62 ++ .../typescript/docs/approval-operation.md | 47 ++ bindings/typescript/src/approvals.ts | 313 ++++---- .../src/internal/approval-operation.ts | 125 +++ bindings/typescript/src/internal/signing.ts | 6 +- bindings/typescript/src/workflow-client.ts | 1 + bindings/typescript/src/workflow/approvals.ts | 1 + bindings/typescript/src/workflow/contracts.ts | 7 +- .../test/contract/approval-context.ts | 8 + .../test/helpers/approval-state-contract.mjs | 178 +++++ .../test/integration/workflow/client.test.js | 4 +- .../package/packed-approval-state.test.js | 16 + .../test/unit/approval-state-machine.test.js | 5 + .../test/unit/approvals-elite.test.js | 10 +- .../control-room/src/app.ts | 4 +- docs/plans/0076-implementation-status.md | 40 + ...xplicit-state-ownership-and-concurrency.md | 718 ++++++++++++++++++ .../auths-operations-otel/src/exporter.rs | 284 +++++++ .../src/exporter/tests.rs | 277 +++++++ .../auths-operations-otel/src/lib.rs | 110 +-- release/semantic-freeze-versions.toml | 8 +- release/semantic-freeze.json | 14 +- 22 files changed, 1976 insertions(+), 262 deletions(-) create mode 100644 bindings/typescript/docs/approval-operation.md create mode 100644 bindings/typescript/src/internal/approval-operation.ts create mode 100644 bindings/typescript/test/contract/approval-context.ts create mode 100644 bindings/typescript/test/helpers/approval-state-contract.mjs create mode 100644 bindings/typescript/test/package/packed-approval-state.test.js create mode 100644 bindings/typescript/test/unit/approval-state-machine.test.js create mode 100644 docs/plans/0076-implementation-status.md create mode 100644 docs/specs/0076-explicit-state-ownership-and-concurrency.md create mode 100644 product/operations/auths-operations-otel/src/exporter.rs create mode 100644 product/operations/auths-operations-otel/src/exporter/tests.rs diff --git a/AGENTS.md b/AGENTS.md index 272f3d2ca..1a90178e0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -309,8 +309,70 @@ intentional result of a dependency update. Do not regenerate them gratuitously. - Comments should record non-obvious invariants and design decisions, not narrate implementation steps. + +### Explicit state ownership + +No implicit state machines are allowed in new or changed workflows. If legal +next operations depend on history, identify one authoritative state owner and +enforce its named states, events, guards, required payloads, and transitions. +This includes asynchronous resource ownership, authorization, concurrency, +external effects, and durable recovery. + +Do not distribute a lifecycle across unrelated flags, optional fields, +callback-local variables, filesystem markers, or duplicate status records. +Independent facts may remain booleans and actual absence may remain optional. +Compact two-state or consuming representations are valid when their named +transition contract is enforced in one place and hides no consequential +pending, closing, failed, or uncertain state. Replacing flags with an enum +without fixing transition ownership does not satisfy this rule. + +Claim pending-operation ownership before external I/O or an await. Bind each +completion to that operation; recheck guards that may change while waiting. +Snapshot mutable decision inputs into owner-controlled memory before pending +admission; pass separate copies to external code and validate completions +against the retained snapshot. Readonly fields and shallow freezing do not +establish byte ownership. Specify exact bound fields and ownership transfers. + +Define what each competing or reentrant caller receives: rejection, a shared +operation result, or a new operation. Distinguish cancellation/deadlines of an +individual waiter from cancellation/deadlines of the owned operation. Define +late-completion, cleanup failure/retry, and resource-publication behavior. +A terminal flag must not stand in for unfinished cleanup, and an error or +cancellation must not be treated as proof of non-effect. + +Keep one semantic authority for each managed transition. Extend the existing +kernel, journal, or resource owner; do not add a parallel executor, recovery +ledger, or universal lifecycle framework. Persist necessary recovery facts +through the existing durable boundary and derive status from those facts. +Preserve provider/domain distinctions and the abstraction extraction gates. + +Every change to such a workflow must document its states and ownership boundary +and add deterministic evidence for relevant competing events and failures. +Durable changes require applicable crash/restart and adapter evidence. Review +phase-specific payloads and invalid transitions, not just the happy path. +Before changing a recovery protocol, finish its command/transition tables, +competing-writer results, durable acknowledgement/synchronization ordering, +and interruption matrix. Naming those as future design tasks is insufficient. +Follow AP-SPEC-076 for the initial remediation inventory and acceptance gates. + ## Testing and handoff +### Stateful change review + +The PR description or linked spec must answer: + +1. What history changes the legality of the next operation, and who owns it? +2. What orders competing/reentrant events, what identifies a completion, and + which result does each caller observe? +3. What data/capability is required by each phase, who can construct it, and + which mutable inputs are copied before crossing an asynchronous boundary? +4. How do waiter cancellation and operation cancellation differ? What happens + on timeout, stale completion, late resource creation, and partial cleanup/retry? +5. Where is durable success acknowledged, which synchronization/commit facts + support it, and what happens on repeated commands, competing writers, lost + acknowledgements, and restart immediately after acknowledged success? +6. Which exact tests exercise those schedules and preserve effect/receipt truth? + ### Batch test and assurance hardening Never use incremental write–run cycles when adding or hardening tests, checks, diff --git a/bindings/typescript/docs/approval-operation.md b/bindings/typescript/docs/approval-operation.md new file mode 100644 index 000000000..9808ce2e2 --- /dev/null +++ b/bindings/typescript/docs/approval-operation.md @@ -0,0 +1,47 @@ +# Approval operation ownership + +The maintained approval port accepts an exact request and an explicit operation +context: `approve(request, { signal })`. The signal controls that local operation; +it is not added to the native signed approval format. A caller needing no +cancellation supplies a non-aborted `AbortController` signal. Composite approval +providers propagate cancellation and stop starting children after abort. + +`BoundedApprovalSession` owns an unapproved, pending, approved-at-next-member, or +terminal state. It claims pending ownership before calling the provider. A +competing call is rejected without consuming a member, cancelling the owner, or +starting another provider call. Acceptance advances one exact member once. + +The session copies the plan, policy, member commitments and each request's +binding and display fields. `providerFor` captures its own member commitment. +Providers receive separate copies; responses are compared against the retained +owner snapshot. Caller or provider mutation therefore cannot rewrite the request +being accepted. Shared-memory-backed and detached digest buffers are refused. + +Deadline equality is valid. The effective clock is the maximum sample observed +by the session, so a backward sample cannot undo an observed expiry. An expired +request rejected before pending admission does not consume or close the session. +Expiry during its pending provider approval closes the session, requiring a +fresh approval session. Session expiry is always terminal. A deadline watchdog +checks time even if the provider never completes; timer delivery alone does not +establish expiry. The optional scheduler is paired with the configured clock for +deterministic tests and embedding, and cannot supply approval authority. + +An already-aborted call is cancelled without closing an otherwise usable +session. Cancellation after pending admission closes the session, aborts the +provider signal, and promptly rejects the caller. Disposal has the same pending +invalidation behavior. Providers may ignore abort: late completions cannot +approve a member, and late rejections are consumed. An accepted approval cannot +be retroactively undone by a later abort or disposal. + +Explicit provider refusal returns the validated rejected response and closes the +session. Malformed responses are rejected; typed provider failures preserve +their failure kind, and untyped failures become unavailable. A failed session +never automatically retries. None of these local lifecycle operations revokes an +existing signature or proves that an external provider effect did not occur. + +This describes the existing maintained workflow/binding implementation; it does +not add an approval subpath to the SDK's stable package export topology. Public +entrypoints and the native approval authority retain their existing ownership. + +Regression evidence is shared by unit and source-free installed-package tests in +`test/helpers/approval-state-contract.mjs`, mapped to AP076 A1–A6. diff --git a/bindings/typescript/src/approvals.ts b/bindings/typescript/src/approvals.ts index 857ae0575..6d8708d6c 100644 --- a/bindings/typescript/src/approvals.ts +++ b/bindings/typescript/src/approvals.ts @@ -1,4 +1,5 @@ import { + type ApprovalOperationContext, type ApprovalPolicy, type ApprovalPolicyReference, type ApprovalProvider, @@ -8,6 +9,7 @@ import { copyPolicy, } from "./workflow.js"; import { AuthsWorkflowError, ProviderOperationError } from "./workflow/errors.js"; +import { approvalBytes, approvalResponse, callApproval, captureApprovalContext, checkApprovalSignal, equalApprovalBytes, snapshotApproval } from "./internal/approval-operation.js"; import { loadPackagedWorkflowEngine } from "./verifier/wasm.js"; export interface ApprovalPolicyOptions { @@ -96,13 +98,10 @@ export const approvalPolicy = Object.freeze({ /** Local no-approval provider. It is valid only with an authority committed to `none`. */ export const noApproval: ApprovalProvider = Object.freeze({ - async approve(request: ApprovalRequest): Promise { - return Object.freeze({ - requestId: request.requestId, - transactionDigest: request.transactionDigest.slice(), - policy: copyPolicy(request.policy), - decision: "approved", - }); + async approve(request: ApprovalRequest, context: ApprovalOperationContext): Promise { + checkApprovalSignal(context); + try { return approvalResponse(snapshotApproval(request), "approved"); } + catch { throw new ProviderOperationError("rejected"); } }, }); @@ -111,7 +110,7 @@ export interface ThresholdApprovalOptions { readonly providers: readonly ApprovalProvider[]; } -/** Requires a bounded quorum of independent, exact responses without retrying any provider. */ +/** Independent exact approvals; cancellation stops starting children and never retries them. */ export function thresholdApproval(options: ThresholdApprovalOptions): ApprovalProvider { if (!Number.isSafeInteger(options.threshold) || options.threshold < 1 || options.providers.length < options.threshold || options.providers.length > 16 || @@ -122,29 +121,23 @@ export function thresholdApproval(options: ThresholdApprovalOptions): ApprovalPr const threshold = options.threshold; const providers = Object.freeze([...options.providers]); return Object.freeze({ - async approve(request: ApprovalRequest): Promise { - const settled = await Promise.allSettled( - providers.map((provider) => provider.approve(copyApprovalRequest(request))), - ); + async approve(request: ApprovalRequest, context: ApprovalOperationContext): Promise { + context = captureApprovalContext(context); + let owned: ApprovalRequest; + try { owned = snapshotApproval(request); } + catch { throw new ProviderOperationError("rejected"); } + const settled = await Promise.allSettled(providers.map((provider) => callApproval(provider, owned, context))); + checkApprovalSignal(context); let approved = 0; for (const result of settled) { - if (result.status !== "fulfilled") continue; - const response = result.value; - if (response.requestId !== request.requestId || - !equalBytes(response.transactionDigest, request.transactionDigest) || - response.policy.policyId !== request.policy.policyId || - response.policy.evaluatorVersion !== request.policy.evaluatorVersion || - !equalBytes(response.policy.configurationDigest, request.policy.configurationDigest)) { - throw new ProviderOperationError("rejected", { operation: "threshold-approval" }); + if (result.status === "rejected") { + // A malformed exact response is not a quorum abstention. + if (result.reason instanceof ProviderOperationError && result.reason.causeChain.includes("invalid-response")) throw result.reason; + continue; } - if (response.decision === "approved") approved += 1; + if (result.value.decision === "approved") approved += 1; } - return Object.freeze({ - requestId: request.requestId, - transactionDigest: request.transactionDigest.slice(), - policy: copyPolicy(request.policy), - decision: approved >= threshold ? "approved" as const : "rejected" as const, - }); + return approvalResponse(owned, approved >= threshold ? "approved" : "rejected"); }, }); } @@ -154,13 +147,9 @@ export const approval = Object.freeze({ threshold: thresholdApproval, }); -function copyApprovalRequest(request: ApprovalRequest): ApprovalRequest { - return Object.freeze({ - ...request, - transactionDigest: request.transactionDigest.slice(), - policy: copyPolicy(request.policy), - display: Object.freeze(request.display.map((field) => Object.freeze({ ...field }))), - }); +/** Injectable scheduling of deadline observations, paired with the configured clock. */ +export interface ApprovalDeadlineScheduler { + schedule(callback: () => void, delayMs: number): () => void; } export interface BoundedApprovalSessionOptions { @@ -171,13 +160,24 @@ export interface BoundedApprovalSessionOptions { readonly display: readonly ReviewField[]; readonly now?: () => bigint; readonly startedAt?: bigint; + readonly scheduler?: ApprovalDeadlineScheduler; } -/** - * One finite approval capability bound to one immutable plan commitment. - * The first transaction is shown to the configured provider; subsequent - * members are accepted only while the same frozen session remains active. - */ +type ApprovalState = + | { readonly kind: "unapproved" } + | { readonly kind: "approved"; readonly next: number } + | { readonly kind: "pending"; readonly operation: symbol; readonly stop: (reason: TerminalReason) => void } + | { readonly kind: "terminal"; readonly reason: TerminalReason }; +type TerminalReason = "disposed" | "cancelled" | "session-expired" | "request-expired" | "refused" | "failed" | "exhausted"; + +const realScheduler: ApprovalDeadlineScheduler = { + schedule(callback, delayMs) { + const timer = setTimeout(callback, delayMs); + return () => clearTimeout(timer); + }, +}; + +/** One plan's exclusive approval owner. Terminal sessions cannot be revived. */ export class BoundedApprovalSession implements AsyncDisposable { readonly #planCommitment: Uint8Array; readonly #memberCommitments: readonly Uint8Array[]; @@ -186,137 +186,176 @@ export class BoundedApprovalSession implements AsyncDisposable { readonly #expiresAt: bigint; readonly #display: readonly ReviewField[]; readonly #now: () => bigint; - #uses = 0; - #approved = false; - #disposed = false; + readonly #scheduler: ApprovalDeadlineScheduler; + #effectiveTime: bigint; + #state: ApprovalState = { kind: "unapproved" }; constructor(options: BoundedApprovalSessionOptions) { - if (!(options.planCommitment instanceof Uint8Array) || options.planCommitment.length !== 32) { - throw new AuthsWorkflowError("invalid-provider", "plan commitment must contain 32 bytes"); - } - if ( - options.policy.mode !== "plan-once" || - options.memberCommitments.length === 0 || - options.memberCommitments.length !== options.policy.maxUses || - options.memberCommitments.some((item) => !(item instanceof Uint8Array) || item.length !== 32) - ) { + this.#planCommitment = approvalBytes(options.planCommitment); + if (options.policy.mode !== "plan-once" || options.memberCommitments.length === 0 || + options.memberCommitments.length !== options.policy.maxUses || + !Number.isSafeInteger(options.policy.maxUses) || options.policy.maxUses > 256 || + !Number.isSafeInteger(options.policy.expiresInSeconds) || options.policy.expiresInSeconds < 1 || + options.policy.expiresInSeconds > 86400 || typeof options.provider?.approve !== "function") { throw new AuthsWorkflowError("invalid-provider", "approval policy does not match exact plan membership"); } - if (typeof options.provider?.approve !== "function") { - throw new AuthsWorkflowError("invalid-provider", "approval session provider is missing"); - } - this.#planCommitment = options.planCommitment.slice(); - this.#memberCommitments = Object.freeze(options.memberCommitments.map((item) => item.slice())); - this.#policy = Object.freeze({ - ...options.policy, - reference: copyPolicy(options.policy.reference), - requirements: Object.freeze([...options.policy.requirements]), - }); + this.#memberCommitments = Object.freeze(options.memberCommitments.map(approvalBytes)); + this.#policy = Object.freeze({ ...options.policy, reference: { + ...options.policy.reference, configurationDigest: approvalBytes(options.policy.reference.configurationDigest), + }, requirements: Object.freeze([...options.policy.requirements]) }); this.#provider = options.provider; this.#now = options.now ?? (() => BigInt(Math.floor(Date.now() / 1000))); - const startedAt = options.startedAt ?? this.#now(); + this.#effectiveTime = this.#now(); + if (typeof this.#effectiveTime !== "bigint" || this.#effectiveTime < 0n) throw new TypeError("invalid approval clock"); + const startedAt = options.startedAt ?? this.#effectiveTime; + if (typeof startedAt !== "bigint" || startedAt < 0n) throw new TypeError("invalid approval start"); this.#expiresAt = startedAt + BigInt(options.policy.expiresInSeconds); - this.#display = Object.freeze(options.display.map((field) => Object.freeze({ ...field }))); + // Reuse bounded request validation for presentation as well as policy bytes. + this.#display = snapshotApproval({ requestId: "session", objectKind: "action", transactionDigest: this.#planCommitment, + policy: this.#policy.reference, expiresAt: this.#expiresAt, display: options.display }).display; + this.#scheduler = options.scheduler ?? realScheduler; + if (typeof this.#scheduler.schedule !== "function") throw new TypeError("invalid approval scheduler"); } - get planCommitment(): Uint8Array { - return this.#planCommitment.slice(); - } + get planCommitment(): Uint8Array { return this.#planCommitment.slice(); } providerFor(index: number, memberCommitment: Uint8Array): ApprovalProvider { - if ( - !Number.isSafeInteger(index) || - index < 0 || - index >= this.#memberCommitments.length || - !(memberCommitment instanceof Uint8Array) || - memberCommitment.length !== 32 - ) { + if (this.#state.kind === "terminal") throw this.#terminal(this.#state.reason); + const member = approvalBytes(memberCommitment); + if (!Number.isSafeInteger(index) || index < 0 || index >= this.#memberCommitments.length) { throw new AuthsWorkflowError("invalid-provider", "approval plan member is invalid"); } - const expected = this.#memberCommitments[index]; - if (expected === undefined || !equalBytes(expected, memberCommitment)) { + if (!equalApprovalBytes(this.#memberCommitments[index]!, member)) { throw new AuthsWorkflowError("approval-response-mismatch", "approval plan member commitment mismatch"); } return Object.freeze({ - approve: (request: ApprovalRequest) => this.#approveMember(index, memberCommitment, request), + approve: (request: ApprovalRequest, context: ApprovalOperationContext) => this.#approveMember(index, member, request, context), }); } - async #approveMember( - index: number, - memberCommitment: Uint8Array, - request: ApprovalRequest, - ): Promise { - if (this.#disposed) throw new ProviderOperationError("cancelled"); - const now = this.#now(); - if (now > this.#expiresAt || now > request.expiresAt) { + #time(): bigint { + const sampled = this.#now(); + if (typeof sampled !== "bigint" || sampled < 0n) throw new ProviderOperationError("unavailable"); + if (sampled > this.#effectiveTime) this.#effectiveTime = sampled; + return this.#effectiveTime; + } + + #terminal(reason: TerminalReason): ProviderOperationError { + return new ProviderOperationError(reason === "disposed" || reason === "cancelled" ? "cancelled" + : reason === "session-expired" || reason === "request-expired" ? "timeout" : "rejected"); + } + + #guard(context: ApprovalOperationContext, request: ApprovalRequest): void { + if (this.#state.kind === "terminal") throw this.#terminal(this.#state.reason); + checkApprovalSignal(context); + if (this.#time() > this.#expiresAt) { + this.#state = { kind: "terminal", reason: "session-expired" }; throw new ProviderOperationError("timeout"); } - if (this.#uses >= this.#policy.maxUses || index !== this.#uses) { - throw new ProviderOperationError("rejected"); - } - const expectedMember = this.#memberCommitments[index]; - if (expectedMember === undefined || !equalBytes(expectedMember, memberCommitment)) { + if (this.#effectiveTime > request.expiresAt) throw new ProviderOperationError("timeout"); + } + + async #approveMember(index: number, member: Uint8Array, input: ApprovalRequest, context: ApprovalOperationContext): Promise { + if (this.#state.kind === "terminal") throw this.#terminal(this.#state.reason); + context = captureApprovalContext(context); + let request: ApprovalRequest; + try { request = snapshotApproval(input); } + catch { throw new ProviderOperationError("rejected"); } + // A competing request cannot change or expire the pending owner's request. + if (this.#state.kind === "pending") throw new ProviderOperationError("rejected"); + this.#guard(context, request); + const next = this.#state.kind === "approved" ? this.#state.next : 0; + if (index !== next || !equalApprovalBytes(this.#memberCommitments[index]!, member) || + request.policy.policyId !== this.#policy.reference.policyId || + request.policy.evaluatorVersion !== this.#policy.reference.evaluatorVersion || + !equalApprovalBytes(request.policy.configurationDigest, this.#policy.reference.configurationDigest)) { throw new ProviderOperationError("rejected"); } - if ( - request.policy.policyId !== this.#policy.reference.policyId || - request.policy.evaluatorVersion !== this.#policy.reference.evaluatorVersion || - !equalBytes(request.policy.configurationDigest, this.#policy.reference.configurationDigest) - ) { - throw new ProviderOperationError("rejected"); + if (this.#state.kind === "approved") { + this.#accept(index); + return approvalResponse(request, "approved"); } - if (!this.#approved) { - const response = await this.#provider.approve({ - ...request, - display: Object.freeze([ - ...this.#display, - Object.freeze({ label: "Plan commitment", value: hex(this.#planCommitment) }), - Object.freeze({ label: "Plan member", value: `${index + 1}/${this.#memberCommitments.length}` }), - Object.freeze({ label: "Member commitment", value: hex(memberCommitment) }), - ...request.display, - ]), + let visible: ApprovalRequest; + try { + visible = snapshotApproval({ ...request, display: [ + ...this.#display, + { label: "Plan commitment", value: hex(this.#planCommitment) }, + { label: "Plan member", value: `${index + 1}/${this.#memberCommitments.length}` }, + { label: "Member commitment", value: hex(member) }, ...request.display, + ] }); + } catch { throw new ProviderOperationError("rejected"); } + return new Promise((resolve, reject) => { + const operation = Symbol("approval"); + const controller = new AbortController(); + let cancelTimer: () => void = () => {}; + const current = () => this.#state.kind === "pending" && this.#state.operation === operation; + const clean = () => { cancelTimer(); context.signal.removeEventListener("abort", aborted); }; + const stop = (reason: TerminalReason) => { + if (!current()) return; + this.#state = { kind: "terminal", reason }; + clean(); + controller.abort(); + reject(reason === "failed" ? new ProviderOperationError("unavailable") : this.#terminal(reason)); + }; + const aborted = () => stop("cancelled"); + const deadline = request.expiresAt < this.#expiresAt ? request.expiresAt : this.#expiresAt; + const watch = () => { + if (!current()) return; + try { + const now = this.#time(); + if (now > this.#expiresAt) { stop("session-expired"); return; } + if (now > request.expiresAt) { stop("request-expired"); return; } + const remainingMs = (deadline - now + 1n) * 1000n; + const delay = Number(remainingMs > 2147483647n ? 2147483647n : remainingMs); + cancelTimer = this.#scheduler.schedule(watch, delay); + } catch { + stop("failed"); + } + }; + // Publish the pending owner before listeners, timers, or provider callbacks. + this.#state = { kind: "pending", operation, stop }; + context.signal.addEventListener("abort", aborted, { once: true }); + if (context.signal.aborted) { stop("cancelled"); return; } + watch(); + if (!current()) return; + callApproval(this.#provider, visible, { signal: controller.signal }).then((response) => { + if (!current()) return; + if (context.signal.aborted) { stop("cancelled"); return; } + try { + const now = this.#time(); + if (now > this.#expiresAt) { stop("session-expired"); return; } + if (now > request.expiresAt) { stop("request-expired"); return; } + clean(); + if (response.decision === "rejected") this.#state = { kind: "terminal", reason: "refused" }; + else this.#accept(index); + resolve(approvalResponse(request, response.decision)); + } catch (error) { + clean(); + this.#state = { kind: "terminal", reason: "failed" }; + reject(error instanceof ProviderOperationError ? error : new ProviderOperationError("unavailable")); + } + }, (error: unknown) => { + if (!current()) return; + clean(); + this.#state = { kind: "terminal", reason: "failed" }; + reject(error instanceof ProviderOperationError ? error : new ProviderOperationError("unavailable")); }); - if (response.decision !== "approved") return response; - if ( - response.requestId !== request.requestId || - !equalBytes(response.transactionDigest, request.transactionDigest) || - response.policy.policyId !== request.policy.policyId || - response.policy.evaluatorVersion !== request.policy.evaluatorVersion || - !equalBytes( - response.policy.configurationDigest, - request.policy.configurationDigest, - ) - ) { - throw new ProviderOperationError("rejected"); - } - this.#approved = true; - } - this.#uses += 1; - return Object.freeze({ - requestId: request.requestId, - transactionDigest: request.transactionDigest.slice(), - policy: copyPolicy(request.policy), - decision: "approved" as const, }); } + #accept(index: number): void { + this.#state = index + 1 === this.#memberCommitments.length + ? { kind: "terminal", reason: "exhausted" } : { kind: "approved", next: index + 1 }; + } + async dispose(): Promise { - this.#disposed = true; + if (this.#state.kind === "pending") this.#state.stop("disposed"); + else if (this.#state.kind !== "terminal") this.#state = { kind: "terminal", reason: "disposed" }; this.#planCommitment.fill(0); for (const member of this.#memberCommitments) member.fill(0); } - async [Symbol.asyncDispose](): Promise { - await this.dispose(); - } -} - -function equalBytes(left: Uint8Array, right: Uint8Array): boolean { - if (left.length !== right.length) return false; - let difference = 0; - for (let index = 0; index < left.length; index += 1) difference |= left[index]! ^ right[index]!; - return difference === 0; + async [Symbol.asyncDispose](): Promise { await this.dispose(); } } function hex(value: Uint8Array): string { diff --git a/bindings/typescript/src/internal/approval-operation.ts b/bindings/typescript/src/internal/approval-operation.ts new file mode 100644 index 000000000..31bbd804e --- /dev/null +++ b/bindings/typescript/src/internal/approval-operation.ts @@ -0,0 +1,125 @@ +import type { + ApprovalOperationContext, + ApprovalProvider, + ApprovalRequest, + ApprovalResponse, +} from "../workflow/contracts.js"; +import { ProviderOperationError } from "../workflow/errors.js"; + +/** Decision bytes must belong to this isolate, never concurrently shared memory. */ +export function approvalBytes(value: Uint8Array): Uint8Array { + if (!(value instanceof Uint8Array) || !(value.buffer instanceof ArrayBuffer) || value.length !== 32) { + throw new TypeError("approval digest must contain 32 privately owned bytes"); + } + return value.slice(); +} + +function text(value: string): string { + if (typeof value !== "string" || value.length === 0 || value.length > 4096 || /[\u0000-\u001f\u007f]/u.test(value)) { + throw new TypeError("invalid approval text"); + } + return value; +} + +/** Copy all binding and presentation fields before an asynchronous boundary. */ +export function snapshotApproval(request: ApprovalRequest): ApprovalRequest { + if (!["grant", "action", "principal-status", "grant-status"].includes(request.objectKind) || + typeof request.expiresAt !== "bigint" || request.expiresAt < 0n || + !Array.isArray(request.display) || request.display.length > 64) { + throw new TypeError("invalid approval request"); + } + const display = request.display.map(({ label, value }) => Object.freeze({ label: text(label), value: text(value) })); + if (display.reduce((bytes, field) => bytes + new TextEncoder().encode(field.label + field.value).length, 0) > 65536) { + throw new TypeError("approval display exceeds its bound"); + } + return Object.freeze({ + requestId: text(request.requestId), + objectKind: request.objectKind, + transactionDigest: approvalBytes(request.transactionDigest), + policy: Object.freeze({ + policyId: text(request.policy.policyId), + evaluatorVersion: text(request.policy.evaluatorVersion), + configurationDigest: approvalBytes(request.policy.configurationDigest), + }), + expiresAt: request.expiresAt, + display: Object.freeze(display), + }); +} + +export function approvalResponse(request: ApprovalRequest, decision: "approved" | "rejected"): ApprovalResponse { + return Object.freeze({ + requestId: request.requestId, + transactionDigest: request.transactionDigest.slice(), + policy: Object.freeze({ ...request.policy, configurationDigest: request.policy.configurationDigest.slice() }), + decision, + }); +} + +export function equalApprovalBytes(left: Uint8Array, right: Uint8Array): boolean { + if (left.length !== right.length) return false; + let difference = 0; + for (let i = 0; i < left.length; i += 1) difference |= left[i]! ^ right[i]!; + return difference === 0; +} + +/** Response fields are compared with owner memory, never the provider's input copy. */ +function snapshotResponse(response: ApprovalResponse, request: ApprovalRequest): ApprovalResponse { + if (response.decision !== "approved" && response.decision !== "rejected") throw new TypeError("invalid approval decision"); + const digest = approvalBytes(response.transactionDigest); + const policyDigest = approvalBytes(response.policy.configurationDigest); + if (response.requestId !== request.requestId || !equalApprovalBytes(digest, request.transactionDigest) || + response.policy.policyId !== request.policy.policyId || response.policy.evaluatorVersion !== request.policy.evaluatorVersion || + !equalApprovalBytes(policyDigest, request.policy.configurationDigest)) { + throw new TypeError("approval response does not match the retained request"); + } + return approvalResponse(request, response.decision); +} + +export function captureApprovalContext(context: ApprovalOperationContext): ApprovalOperationContext { + const signal = context?.signal; + if (signal === undefined || typeof signal.addEventListener !== "function" || typeof signal.removeEventListener !== "function") { + throw new ProviderOperationError("rejected"); + } + if (signal.aborted) throw new ProviderOperationError("cancelled"); + return Object.freeze({ signal }); +} + +export function checkApprovalSignal(context: ApprovalOperationContext): void { + captureApprovalContext(context); +} + +/** A provider that ignores abort cannot retain a caller or produce an unhandled late rejection. */ +export function callApproval( + provider: ApprovalProvider, + input: ApprovalRequest, + context: ApprovalOperationContext, +): Promise { + let owned: ApprovalRequest; + try { + context = captureApprovalContext(context); + owned = snapshotApproval(input); + } catch (error) { + return Promise.reject(error instanceof ProviderOperationError ? error : new ProviderOperationError("rejected")); + } + return new Promise((resolve, reject) => { + const abort = () => reject(new ProviderOperationError("cancelled")); + context.signal.addEventListener("abort", abort, { once: true }); + const finish = () => context.signal.removeEventListener("abort", abort); + // Install cancellation first, including for a provider that aborts synchronously. + Promise.resolve().then(() => { + checkApprovalSignal(context); + return provider.approve(snapshotApproval(owned), context); + }).then((response) => { + finish(); + checkApprovalSignal(context); + try { resolve(snapshotResponse(response, owned)); } + catch { reject(new ProviderOperationError("rejected", { causeChain: ["invalid-response"] })); } + }, (error: unknown) => { + finish(); + reject(error instanceof ProviderOperationError ? error : new ProviderOperationError("unavailable")); + }).catch((error: unknown) => { + finish(); + reject(error instanceof ProviderOperationError ? error : new ProviderOperationError("unavailable")); + }); + }); +} diff --git a/bindings/typescript/src/internal/signing.ts b/bindings/typescript/src/internal/signing.ts index 6c33b42c5..33e0d8b6a 100644 --- a/bindings/typescript/src/internal/signing.ts +++ b/bindings/typescript/src/internal/signing.ts @@ -1,3 +1,4 @@ +import { callApproval } from "./approval-operation.js"; import { AuthsWorkflowError, ProviderOperationError, @@ -128,6 +129,7 @@ export class WasmSigningAdapter implements NativeSigningAdapter { } export interface SigningTransactionOptions { + readonly signal?: AbortSignal; readonly objectKind: SigningObjectKind; readonly unsignedObject: Uint8Array; readonly principal: PrincipalDescriptor; @@ -298,14 +300,14 @@ async function approveExact( ): Promise { let response; try { - response = await options.approval.provider.approve({ + response = await callApproval(options.approval.provider, { requestId, objectKind: options.objectKind, transactionDigest: transactionDigest.slice(), policy: copyPolicy(policy), expiresAt: options.expiresAt, display: copyDisplay(display), - }); + }, { signal: options.signal ?? new AbortController().signal }); } catch (error) { if (error instanceof ProviderOperationError) { const code = diff --git a/bindings/typescript/src/workflow-client.ts b/bindings/typescript/src/workflow-client.ts index f58e736a3..7fc008a8f 100644 --- a/bindings/typescript/src/workflow-client.ts +++ b/bindings/typescript/src/workflow-client.ts @@ -9,6 +9,7 @@ export { SignedGrantSource, TrustedContextSource, type AgentIdentity, + type ApprovalOperationContext, type ApprovalConfiguration, type ApprovalExecutionSummary, type ApprovalMode, diff --git a/bindings/typescript/src/workflow/approvals.ts b/bindings/typescript/src/workflow/approvals.ts index 1fc231818..d438e6e98 100644 --- a/bindings/typescript/src/workflow/approvals.ts +++ b/bindings/typescript/src/workflow/approvals.ts @@ -1,4 +1,5 @@ export { + type ApprovalOperationContext, type ApprovalConfiguration, type ApprovalMode, type ApprovalPolicy, diff --git a/bindings/typescript/src/workflow/contracts.ts b/bindings/typescript/src/workflow/contracts.ts index 70c116204..a8304d415 100644 --- a/bindings/typescript/src/workflow/contracts.ts +++ b/bindings/typescript/src/workflow/contracts.ts @@ -100,8 +100,13 @@ export interface ApprovalResponse { readonly decision: "approved" | "rejected"; } +/** Cancellation of the exact approval operation; never part of its signed bytes. */ +export interface ApprovalOperationContext { + readonly signal: AbortSignal; +} + export interface ApprovalProvider { - approve(request: ApprovalRequest): Promise; + approve(request: ApprovalRequest, context: ApprovalOperationContext): Promise; } export interface ApprovalConfiguration { diff --git a/bindings/typescript/test/contract/approval-context.ts b/bindings/typescript/test/contract/approval-context.ts new file mode 100644 index 000000000..d2e34a4ad --- /dev/null +++ b/bindings/typescript/test/contract/approval-context.ts @@ -0,0 +1,8 @@ +import type { ApprovalProvider, ApprovalRequest } from "../../src/workflow.js"; + +declare const provider: ApprovalProvider; +declare const request: ApprovalRequest; + +void provider.approve(request, { signal: new AbortController().signal }); +// @ts-expect-error Approval cancellation context is an explicit required argument. +void provider.approve(request); diff --git a/bindings/typescript/test/helpers/approval-state-contract.mjs b/bindings/typescript/test/helpers/approval-state-contract.mjs new file mode 100644 index 000000000..20eb1e7b7 --- /dev/null +++ b/bindings/typescript/test/helpers/approval-state-contract.mjs @@ -0,0 +1,178 @@ +import assert from "node:assert/strict"; + +const deferred = () => { + let resolve, reject; + const promise = new Promise((yes, no) => { resolve = yes; reject = no; }); + return { promise, resolve, reject }; +}; +const context = () => ({ signal: new AbortController().signal }); +const kind = (expected) => (error) => error?.kind === expected; +const response = (request, decision = "approved") => ({ + requestId: request.requestId, + transactionDigest: request.transactionDigest.slice(), + policy: { ...request.policy, configurationDigest: request.policy.configurationDigest.slice() }, + decision, +}); + +function fixture(BoundedApprovalSession, provider, count = 2) { + let now = 100n; + const jobs = new Map(); + const scheduler = { + schedule(callback, delayMs) { + assert.ok(delayMs > 0 && delayMs <= 2147483647); + const id = Symbol(); jobs.set(id, callback); + return () => jobs.delete(id); + }, + }; + const policy = { mode: "plan-once", maxUses: count, expiresInSeconds: 10, requirements: [], + reference: { policyId: "plan", evaluatorVersion: "1", configurationDigest: new Uint8Array(32).fill(7) } }; + const members = Array.from({ length: count }, (_, i) => new Uint8Array(32).fill(i + 1)); + const session = new BoundedApprovalSession({ planCommitment: new Uint8Array(32).fill(9), memberCommitments: members, + policy, provider, display: [], now: () => now, scheduler }); + const request = (expiresAt = 110n) => ({ requestId: "member", objectKind: "action", transactionDigest: new Uint8Array(32).fill(3), + policy: { ...policy.reference, configurationDigest: policy.reference.configurationDigest.slice() }, expiresAt, + display: [{ label: "Action", value: "exact" }] }); + return { session, members, request, time(value) { now = value; }, wake() { + const [id, callback] = jobs.entries().next().value; + jobs.delete(id); callback(); + }, jobs }; +} + +/** Run unchanged against built source and the installed, source-free package. */ +export async function approvalStateContract(t, { BoundedApprovalSession, noApproval, thresholdApproval }) { + await t.test("A1: one pending request owns the member; successful acceptance advances once", async () => { + const entered = deferred(), completion = deferred(); let calls = 0; + const f = fixture(BoundedApprovalSession, { approve(request, ctx) { + calls++; assert.equal(ctx.signal.aborted, false); entered.resolve(request); return completion.promise; + } }); + const first = f.session.providerFor(0, f.members[0]); + const second = f.session.providerFor(1, f.members[1]); + const pending = first.approve(f.request(), context()); + const visible = await entered.promise; + await assert.rejects(first.approve(f.request(), context()), kind("rejected")); + await assert.rejects(second.approve(f.request(), context()), kind("rejected")); + completion.resolve(response(visible)); + assert.equal((await pending).decision, "approved"); + assert.equal((await second.approve(f.request(), context())).decision, "approved"); + await assert.rejects(first.approve(f.request(), context()), kind("rejected")); + assert.equal(calls, 1); + await f.session.dispose(); + }); + + for (const reason of ["dispose", "abort", "session-expiry", "request-expiry"]) { + await t.test(`A2/A5: ${reason} settles an uncooperative provider and invalidates late completion`, async () => { + const entered = deferred(), completion = deferred(); let providerSignal; + const f = fixture(BoundedApprovalSession, { approve(request, ctx) { providerSignal = ctx.signal; entered.resolve(request); return completion.promise; } }); + const caller = new AbortController(); + const member = f.session.providerFor(0, f.members[0]); + const pending = member.approve(f.request(reason === "request-expiry" ? 105n : 120n), { signal: caller.signal }); + const visible = await entered.promise; + const rejected = assert.rejects(pending, kind(reason.includes("expiry") ? "timeout" : "cancelled")); + if (reason === "dispose") await f.session.dispose(); + if (reason === "abort") caller.abort(); + if (reason.includes("expiry")) { f.time(reason === "request-expiry" ? 106n : 111n); f.wake(); } + await rejected; + assert.equal(providerSignal.aborted, true); + assert.equal(f.jobs.size, 0); + completion.resolve(response(visible)); + f.time(100n); + await assert.rejects(member.approve(f.request(), context()), kind(reason.includes("expiry") ? "timeout" : "cancelled")); + }); + } + + await t.test("A3: refusal, malformed response and provider errors are terminal and typed", async () => { + for (const mode of ["refusal", "mismatch", "invalid-decision", "error", "typed-error"]) { + const f = fixture(BoundedApprovalSession, { async approve(request) { + if (mode === "error") throw new Error("unavailable"); + if (mode === "typed-error") return noApproval.approve(request, { signal: AbortSignal.abort() }); + if (mode === "mismatch") return { ...response(request), requestId: "other" }; + if (mode === "invalid-decision") return { ...response(request), decision: "maybe" }; + return response(request, "rejected"); + } }); + const member = f.session.providerFor(0, f.members[0]); + if (mode === "refusal") assert.equal((await member.approve(f.request(), context())).decision, "rejected"); + else await assert.rejects(member.approve(f.request(), context()), kind(mode === "typed-error" ? "cancelled" : mode === "error" ? "unavailable" : "rejected")); + await assert.rejects(member.approve(f.request(), context()), kind("rejected")); + assert.equal(f.jobs.size, 0); + } + }); + + await t.test("A4: caller and provider mutation cannot rewrite retained approval bindings", async () => { + const entered = deferred(), completion = deferred(); let saved; + const f = fixture(BoundedApprovalSession, { approve(visible) { + saved = response(visible); + visible.transactionDigest.fill(44); visible.policy.configurationDigest.fill(45); + entered.resolve(); return completion.promise; + } }); + const member = f.session.providerFor(0, f.members[0]); + f.members[0].fill(40); // closure and constructor both own a separate commitment. + const request = f.request(); + const pending = member.approve(request, context()); + await entered.promise; + request.transactionDigest.fill(46); request.policy.configurationDigest.fill(47); + request.display[0].value = "changed"; request.requestId = "changed"; + completion.resolve(saved); + const accepted = await pending; + assert.equal(accepted.requestId, "member"); + assert.deepEqual(accepted.transactionDigest, new Uint8Array(32).fill(3)); + assert.deepEqual(accepted.policy.configurationDigest, new Uint8Array(32).fill(7)); + await f.session.dispose(); + }); + + await t.test("A4: shared or detached decision bytes cannot enter pending state", async () => { + const f = fixture(BoundedApprovalSession, { approve: async (request) => response(request) }); + const member = f.session.providerFor(0, f.members[0]); + const shared = f.request(); shared.transactionDigest = new Uint8Array(new SharedArrayBuffer(32)); + await assert.rejects(member.approve(shared, context()), kind("rejected")); + assert.throws(() => f.session.providerFor(0, new Uint8Array(new SharedArrayBuffer(32))), TypeError); + const detached = new Uint8Array(32); structuredClone(detached, { transfer: [detached.buffer] }); + assert.throws(() => f.session.providerFor(0, detached), TypeError); + assert.equal((await member.approve(f.request(), context())).decision, "approved"); + await f.session.dispose(); + }); + + await t.test("A5: pre-abort does not poison the session; post-acceptance abort does not undo acceptance", async () => { + const f = fixture(BoundedApprovalSession, { approve: async (request) => response(request) }); + const first = f.session.providerFor(0, f.members[0]), second = f.session.providerFor(1, f.members[1]); + const cancelled = new AbortController(); cancelled.abort(); + await assert.rejects(first.approve(f.request(), { signal: cancelled.signal }), kind("cancelled")); + const caller = new AbortController(); + assert.equal((await first.approve(f.request(), { signal: caller.signal })).decision, "approved"); + caller.abort(); + assert.equal((await second.approve(f.request(), context())).decision, "approved"); + await f.session.dispose(); + }); + + await t.test("A5: threshold abort stops unscheduled children and consumes late rejections", async () => { + const caller = new AbortController(); let started = 0; + const provider = thresholdApproval({ threshold: 1, providers: [ + { approve() { started++; caller.abort(); return Promise.reject(new Error("late")); } }, + { approve(request) { started++; return Promise.resolve(response(request)); } }, + ] }); + const f = fixture(BoundedApprovalSession, provider); + await assert.rejects(provider.approve(f.request(), { signal: caller.signal }), kind("cancelled")); + assert.equal(started, 1); + }); + + await t.test("A6: equality is valid; effective time does not roll back; pre-admission expiry rejects only its request", async () => { + const entered = deferred(), completion = deferred(); + const f = fixture(BoundedApprovalSession, { approve(request) { entered.resolve(request); return completion.promise; } }); + const member = f.session.providerFor(0, f.members[0]); + await assert.rejects(member.approve(f.request(99n), context()), kind("timeout")); + const pending = member.approve(f.request(105n), context()); + const visible = await entered.promise; + f.time(105n); f.wake(); assert.equal(f.jobs.size, 1); + f.time(104n); f.wake(); assert.equal(f.jobs.size, 1); + completion.resolve(response(visible)); + assert.equal((await pending).decision, "approved"); + f.time(110n); + assert.equal((await f.session.providerFor(1, f.members[1]).approve(f.request(), context())).decision, "approved"); + await f.session.dispose(); + const expiry = fixture(BoundedApprovalSession, noApproval); + const oldMember = expiry.session.providerFor(0, expiry.members[0]); + expiry.time(111n); + await assert.rejects(oldMember.approve(expiry.request(), context()), kind("timeout")); + expiry.time(100n); + await assert.rejects(oldMember.approve(expiry.request(), context()), kind("timeout")); + }); +} diff --git a/bindings/typescript/test/integration/workflow/client.test.js b/bindings/typescript/test/integration/workflow/client.test.js index 067e58811..819bbd4e4 100644 --- a/bindings/typescript/test/integration/workflow/client.test.js +++ b/bindings/typescript/test/integration/workflow/client.test.js @@ -459,10 +459,10 @@ test("the transaction binding comes from the core, not from the binding", async approval: { policy: fixture.options.approval.policy, provider: { - async approve(approvalRequest) { + async approve(approvalRequest, context) { seen.approval = approvalRequest.transactionDigest.slice(); seen.ids.push(approvalRequest.requestId); - return fixture.options.approval.provider.approve(approvalRequest); + return fixture.options.approval.provider.approve(approvalRequest, context); }, }, }, diff --git a/bindings/typescript/test/package/packed-approval-state.test.js b/bindings/typescript/test/package/packed-approval-state.test.js new file mode 100644 index 000000000..215b6ca9d --- /dev/null +++ b/bindings/typescript/test/package/packed-approval-state.test.js @@ -0,0 +1,16 @@ +import test from "node:test"; +import { rm } from "node:fs/promises"; +import { join } from "node:path"; +import { pathToFileURL } from "node:url"; +import { installPackedSdk } from "./helpers/packed-install.mjs"; +import { approvalStateContract } from "../helpers/approval-state-contract.mjs"; + +test("AP076 approval transitions in the installed package without repository source", async (t) => { + const { directory } = await installPackedSdk("auths-approval-state-"); + try { + const approvals = await import(pathToFileURL(join(directory, "node_modules/@auths-dev/sdk/dist/approvals.js")).href); + await approvalStateContract(t, approvals); + } finally { + await rm(directory, { recursive: true, force: true }); + } +}); diff --git a/bindings/typescript/test/unit/approval-state-machine.test.js b/bindings/typescript/test/unit/approval-state-machine.test.js new file mode 100644 index 000000000..5c3777ff1 --- /dev/null +++ b/bindings/typescript/test/unit/approval-state-machine.test.js @@ -0,0 +1,5 @@ +import test from "node:test"; +import * as approvals from "../../dist/approvals.js"; +import { approvalStateContract } from "../helpers/approval-state-contract.mjs"; + +test("AP076 approval transition contract", (t) => approvalStateContract(t, approvals)); diff --git a/bindings/typescript/test/unit/approvals-elite.test.js b/bindings/typescript/test/unit/approvals-elite.test.js index 1afb9eb17..ef45ab786 100644 --- a/bindings/typescript/test/unit/approvals-elite.test.js +++ b/bindings/typescript/test/unit/approvals-elite.test.js @@ -2,6 +2,8 @@ import assert from "node:assert/strict"; import test from "node:test"; import { approvalPolicy, noApproval, thresholdApproval } from "../../dist/approvals.js"; +const context = { signal: new AbortController().signal }; + const request = { requestId: "request-1", objectKind: "action", @@ -18,18 +20,18 @@ const request = { test("approval policies cover optional, risk, and threshold compositions", async () => { assert.equal((await approvalPolicy.none()).mode, "none"); assert.equal((await approvalPolicy.riskBased()).mode, "risk-based"); - assert.equal((await noApproval.approve(request)).decision, "approved"); + assert.equal((await noApproval.approve(request, context)).decision, "approved"); const provider = (decision) => ({ async approve(candidate) { return { ...candidate, policy: candidate.policy, decision }; }, }); assert.equal((await thresholdApproval({ threshold: 2, providers: [provider("approved"), provider("approved"), provider("rejected")], - }).approve(request)).decision, "approved"); + }).approve(request, context)).decision, "approved"); assert.equal((await thresholdApproval({ threshold: 3, providers: [provider("approved"), provider("approved"), provider("rejected")], - }).approve(request)).decision, "rejected"); + }).approve(request, context)).decision, "rejected"); const duplicate = provider("approved"); assert.throws(() => thresholdApproval({ threshold: 2, providers: [duplicate, duplicate] }), /invalid/); const isolated = thresholdApproval({ @@ -46,5 +48,5 @@ test("approval policies cover optional, risk, and threshold compositions", async } }, ], }); - assert.equal((await isolated.approve(request)).decision, "approved"); + assert.equal((await isolated.approve(request, context)).decision, "approved"); }); diff --git a/demos/cross-company-incident-response/control-room/src/app.ts b/demos/cross-company-incident-response/control-room/src/app.ts index 34354d2f4..a4f6edd4f 100644 --- a/demos/cross-company-incident-response/control-room/src/app.ts +++ b/demos/cross-company-incident-response/control-room/src/app.ts @@ -215,7 +215,7 @@ async function liveWithdrawalAttack(): Promise { policy: policy.reference, expiresAt: BigInt(Math.floor(Date.now() / 1000) + 60), display: [], - }); + }, { signal: new AbortController().signal }); await session.dispose(); try { await session.providerFor(1, second).approve({ @@ -225,7 +225,7 @@ async function liveWithdrawalAttack(): Promise { policy: policy.reference, expiresAt: BigInt(Math.floor(Date.now() / 1000) + 60), display: [], - }); + }, { signal: new AbortController().signal }); return { attack: "withdraw-approval", blocked: false, code: "unexpected-authorized" }; } catch (error) { return { attack: "withdraw-approval", blocked: true, stage: "approval", code: "approval-cancelled", detail: (error as Error).message, evidence: { completedSteps: ["firewall-eu-west-2"], unresolved: ["cache-eu-west-2"], sdk: "TypeScript BoundedApprovalSession" } }; diff --git a/docs/plans/0076-implementation-status.md b/docs/plans/0076-implementation-status.md new file mode 100644 index 000000000..265b3f9a6 --- /dev/null +++ b/docs/plans/0076-implementation-status.md @@ -0,0 +1,40 @@ +# AP076 implementation and evidence record + +Objective: implement every requirement of [AP-SPEC-076](../specs/0076-explicit-state-ownership-and-concurrency.md), +obtain successful GitHub CI on the completed revision, and merge that revision. +Partial batches do not close this objective. + +Baseline: `2fa22cc350956a82fe0e770d456f4455e58b6f6c` (merged PR #216). +Branch: `codex/explicit-state-ownership-spec`. + +## Current authoritative status + +No verification result is claimed yet. Approval/exporter implementation and +regressions are being assembled as one batch before hosted verification. +SDK lifecycle, payload and administrative-recovery work remain required. + +| Requirements | Implementation / test owner | Evidence disposition | +| --- | --- | --- | +| A1–A6; sections 4–5 | TypeScript `approvals.ts`, `internal/approval-operation.ts`, `test/helpers/approval-state-contract.mjs`; unit and installed-package consumers | Candidate implementation/tests written; GitHub verification pending. | +| B1–B4; section 6 | `auths-operations-otel/src/exporter.rs`, `exporter/tests.rs` | Candidate implementation/tests written; GitHub verification pending. | +| C1–C7; section 7 | Python and TypeScript client, attached-agent, identity and transport owners | Not implemented. | +| D1; section 8.1 | Submission phases and mutation-journal payloads, native differential corpus | Not implemented. | +| D0; section 8.4 | Administrative-recovery protocol, command/transition and durability/interruption matrices | Design incomplete; no runtime recovery cutover yet. | +| D2–D4; sections 8.2–8.3 | Installation, candidate publication, retirement, qualification import; file/native backend evidence | Not implemented. | +| P1; section 10 | Root `AGENTS.md` explicit state ownership and stateful change checklist | Policy text added; per-batch evidence and final audit pending. | +| Section 11; user objective | Completed-source CI, PR state and merge commit | No PR or merge result claimed. | + +## Verification discipline + +Follow root AGENTS.md: finish each coherent implementation/test batch, push it, +and use GitHub CI as the first default verification. Collect hosted failures +together before bounded local diagnosis and a coherent repair. Do not replace +required checks with narrower checks, or count intentionally gated production +qualification as established by this engineering work. + +## Completion audit + +Before merge, inspect every specification requirement and gate against current +source, tests, fixtures/manifests, hosted job results and PR head identity. Update +this record with exact evidence and unresolved limitations. A successful initial +batch does not prove the unimplemented batches or satisfy the whole objective. diff --git a/docs/specs/0076-explicit-state-ownership-and-concurrency.md b/docs/specs/0076-explicit-state-ownership-and-concurrency.md new file mode 100644 index 000000000..01d0f56e3 --- /dev/null +++ b/docs/specs/0076-explicit-state-ownership-and-concurrency.md @@ -0,0 +1,718 @@ +# AP-SPEC-076: Explicit state ownership and concurrency + +- **Status:** Proposed implementation contract. No fixes, test results, or + repository-wide compliance are claimed by this document. +- **Readiness:** Sections 5–7 specify the first three implementation contracts. + Administrative recovery in sections 8.2–8.3 requires the completed follow-on + protocol design in section 8.4 before its runtime implementation begins. +- **Date:** 10 November 2026. +- **Baseline:** `2fa22cc350956a82fe0e770d456f4455e58b6f6c`, the merged result of + [PR #216](https://github.com/auths-dev/auths-proof/pull/216). +- **Priority:** Approval concurrency, exporter batch ownership, and SDK client + lifecycle first; phase-specific payloads and administrative recovery next. +- **Depends on:** [AP074](0074-bound-effects-and-recovery-state-machine.md), + [AP066](0066-production-gateway-polish-and-recipe-qualification.md), + [AP075](0075-independent-security-boundary-assessment.md), and the + [profile/domain boundary plan](../target-state/PROFILE_AND_DOMAIN_ABSTRACTION_BOUNDARY_PLAN.md). +- **Terms:** MUST and MUST NOT are acceptance requirements. State names below + describe required distinctions; they do not assert that those types exist. +- **Implementation evidence:** [Requirement and delivery record](../plans/0076-implementation-status.md). + +## 1. Objective and scope + +Remove consequential implicit state machines from the maintained paths below. +Legal operations must follow an authoritative state and transition contract, +including competing calls, cancellation, failures, and interruption. Naming an +enum without giving it ownership of those decisions is insufficient. + +The first implementation batch covers: + +1. Bounded plan approval sessions in the TypeScript SDK. +2. Bounded OTLP exporter batch ownership. +3. SDK client opening, closing, and owned-resource cleanup in Python and + TypeScript, including attached agents and owned identity/transport adapters. + +The second batch covers: + +4. Phase-specific submission and mutation-journal payloads. +5. A follow-on protocol design, then implementation, for installation, staged + credential publication, retirement, and qualification-import recovery. + +Implement each owner in its existing architectural layer. Preserve the native +bound-effect, approval, admission, entry, and recovery boundaries established by +AP074. SDK resource management must not become an alternate authorization model. + +Writing this specification does not implement its contract, initiate production +operations, close AP075 assurance gaps, or qualify a provider or deployment. + +## 2. Meaning of “no implicit state machines” + +A state machine is implicit when the legality of an operation depends on +history reconstructed from scattered flags, optional payloads, callbacks, file +existence, or the position of an instruction in a function, without one owner +enforcing the allowed transitions. + +Every maintained workflow involving authorization, concurrent calls, external +effects, asynchronous resource ownership, or durable recovery MUST expose: + +- Its owner and the boundary at which competing events are ordered. +- Named states or sealed stage types and the data valid in each state. +- Allowed events, guards, effects, and next states. +- Rejection behavior for invalid, repeated, stale, and concurrent events. +- Cancellation, timeout, failure, and terminal-state behavior. +- Persistence and restart interpretation where the workflow is durable. + +An explicit representation can be a closed enum with payloads, a discriminated +union, consuming stage types, or a small encapsulated state value with a named +transition contract. No particular framework or library is required. + +Independent facts and configuration values may remain booleans. An optional +value may represent actual absence. A two-state resource or one-shot capability +may use a compact representation when its states, transition, and failure +semantics are named and enforced at one boundary. Such representations MUST NOT +conceal an opening, pending, closing, uncertain, or cleanup-failed state that +changes what callers may do. Rust ownership that consumes a capability is +already an explicit lifecycle mechanism. + +The requirement applies repository-wide to new or changed workflows. The +bounded batches in this spec do not certify existing unreviewed code. Lower-risk +findings may be recorded for later work; that is deferral, not an assertion of +compliance. Do not mechanically replace every flag, cache, or `Option` merely to +increase an enum count. + +## 3. Source findings and evidence boundary + +The initiating review was a static source audit against the pinned baseline. +These schedules are source-derived findings, not completed reproductions and +not evidence of a downstream authorization bypass. Implementers MUST first +retain deterministic regressions that demonstrate the relevant current behavior. + +| Finding | Baseline source | Consequence to reproduce | +| --- | --- | --- | +| Approval checks precede an await, while use advancement follows it. | [`approvals.ts`](../../bindings/typescript/src/approvals.ts), `BoundedApprovalSession.#approveMember` | Two calls for the same index can pass the same initial use check; a provider response can arrive after disposal or expiry. | +| Export snapshots and queue removal have separate critical sections. | [`auths-operations-otel`](../../product/operations/auths-operations-otel/src/lib.rs), `BoundedOtlpExporter::flush` | Two flushes can export the same old batch; after one removes it and another event arrives, the other can remove the new unexported event. | +| Client opening and closing span awaits without a shared pending-operation owner. | Python [`_workflow.py`](../../bindings/python/python/auths/_workflow.py), TypeScript [`orchestrator.ts`](../../bindings/typescript/src/workflow/internal/orchestrator.ts), and owned adapters | Opening can complete after closure begins; repeated close calls can return while cleanup is pending; partial cleanup failure can leave obligations hidden. | + +Other findings are representation and recovery improvements, not demonstrated +vulnerabilities. Existing consistency checks, durable fences, cleanup journals, +restore floors, and conservative unknown outcomes MUST remain effective. + +## 4. Common implementation contract + +### 4.1 State ownership and effects + +A transition consumes the current state, one event, and explicit guard inputs; +it determines the next state and the effects permitted by that transition. +Guard inputs include trusted time, operation identity, and revisions where +applicable. External completions return as events bound to the operation that +started them. An old completion MUST NOT mutate a successor or terminal state. + +Publish ownership of a pending operation before invoking an external provider +or crossing an await. A mutex around individual field reads/writes is not +sufficient when the protected operation spans I/O. Do not hold the state-mutation +lock across external I/O; retain exclusive operation ownership instead. + +Use exhaustive dispatch over closed states. Required payloads belong in their +state or sealed capability. For external wire formats, retain bounded decoding +and explicit integrity validation; typed in-memory states do not authenticate +persisted bytes. + +The owner MUST snapshot mutable decision inputs before publishing pending +state. Keep its private snapshot separate from copies passed to external code; +`readonly`, shallow freezing, and retaining a caller's typed-array reference do +not establish byte ownership. Specify which inputs are bound, when ownership +transfers, and the result each competing caller receives. Waiter cancellation +and cancellation of the underlying operation are separate events. + +An operation/state pair not admitted by its transition contract is rejected +without starting I/O or changing state. Internal stale completion events are +ignored as specified; they must not masquerade as new caller operations. + +### 4.2 Failure and claim preservation + +- Denial and unavailable authority remain fail closed. +- Unknown provider effect remains unknown, with capacity retained according to + the existing owner. Cancellation is not proof of non-effect. +- Closing a client does not revoke a previously issued signature or durable + provider-entry grant. It stops new local work under that client. +- Errors retain stable codes and truthful effect/receipt distinctions. Reuse + existing codes where their meaning applies; specify any new public distinction + and update its registry, bindings, and fixtures atomically. +- Do not widen accepted proofs, approvals, recipes, credential access, or retry + rights as a side effect of a state refactor. +- Keep secret-bearing payloads scoped and zeroized only when no permitted + in-flight operation still needs them. + +## 5. Batch A: Bounded approval sessions + +The owner remains `BoundedApprovalSession`. Preserve its immutable plan, +ordered member commitments, policy, and approval-response binding checks. + +The machine MUST distinguish an unapproved ready session, an approval pending +for one exact member/request, an approved session at its next member, and a +terminal session with a reason such as exhausted, disposed, expired, or refused. +Pending state carries an operation identity and an owned request snapshot. + +### 5.1 Cancellation API and ownership + +Replace the TypeScript approval port with this direct prelaunch contract: + +```typescript +export interface ApprovalOperationContext { + readonly signal: AbortSignal; +} + +export interface ApprovalProvider { + approve( + request: ApprovalRequest, + context: ApprovalOperationContext, + ): Promise; +} +``` + +`providerFor()` returns this same interface. Every maintained approval caller, +provider, threshold/composite provider, signing coordinator, public declaration, +example, and installed-package contract test MUST adopt it in the same batch. +Composite providers propagate the signal and stop starting child calls once +aborted. A caller that needs no cancellation supplies a non-aborted signal. +Remove the superseded interface; add no compatibility overload or legacy path. +This is an SDK operation context, not part of signed approval bytes or a change +to native approval verification. Python approval APIs are not silently given +new semantics: Batch A changes this TypeScript port, and any separately exposed +cross-language adapter must explicitly map cancellation or declare it unsupported. + +Before starting work, check the supplied signal. An already-aborted caller +receives `ProviderOperationError("cancelled")` without consuming a member or +terminating an otherwise usable session. Once admitted, create a session-owned +abort controller for the exact pending operation. Caller abort, session disposal, +or observed expiry invalidates that operation and aborts its provider signal. +Settle the caller promptly without waiting for a provider that ignores abort; +consume any eventual rejection and ignore its stale completion. Provider abort +is best effort and does not assert that an external prompt or action was undone. + +Pending cancellation terminates this session. It differs intentionally from +cancelling a waiter on a shared SDK opening operation in section 7. Cancellation +after member acceptance does not revoke the accepted approval or undo usage. + +### 5.2 Immutable binding snapshot + +Copy a member commitment when creating `providerFor()`, not only when invoking +its returned closure. Before pending admission, validate and defensively copy: + +- Plan identity, exact member index and commitment, and session policy. +- Request ID, object kind, transaction digest, policy ID, evaluator version, + configuration digest, request expiry, and every display label/value. +- The session deadline and next-member position that authorize this operation. + +The provider receives a separate copy, including separate byte buffers. A +provider must not be able to alter the owner's comparison snapshot. Copy and +validate the returned response before accepting its decision, request ID, +transaction digest, and complete policy reference. Construct the returned +approval from the owner's snapshot, never by rereading caller/provider objects. +Object kind, membership, and displayed context remain retained request facts; +do not claim that the existing response signs fields absent from its protocol. + +Shared-memory-backed byte inputs are rejected at this boundary; a copying loop +over concurrently mutable shared memory is not an atomic snapshot. A malformed, +detached, or unsnapshotable byte input raises `TypeError` from `providerFor()` +and `ProviderOperationError("rejected")` from `approve()`, before pending +admission. These ownership rules add no new cryptographic commitment or +alternative wire representation. + +### 5.3 Transition and caller-result contract + +| Current state / event | Required behavior | +| --- | --- | +| Ready / request for the next exact member | Atomically claim the owned snapshot, enter pending, then invoke the provider once with the operation signal. | +| Pending / another member request, including the same index | Return `ProviderOperationError("rejected")` without changing the pending operation, invoking the provider, or advancing usage. | +| Pending / valid matching approval at or before both deadlines | Accept only the matching operation, advance exactly once, and return approval from the owned snapshot; publish approved or exhausted state. | +| Pending / explicit provider refusal | Return the validated rejected response, terminate as refused, and do not advance usage. | +| Pending / malformed response or provider failure | Terminate without advancing usage; malformed responses return `rejected`, typed provider errors preserve their kind, and untyped provider errors become `unavailable`. No implicit retry. | +| Pending / disposal or caller abort | Terminate as disposed or cancelled, invalidate completion, abort the provider signal, and return `cancelled` to the pending caller. | +| Pending / session or request expiry | Terminate with the distinct expiry reason, invalidate completion, abort the provider signal, and return `timeout`. | +| Approved / next exact member | Check policy, membership, cancellation, and time and atomically advance one use under the retained plan approval. | +| Ready or approved / already expired request, while session remains valid | Reject only this call with `timeout`; keep the same next member and retained approval state. | +| Ready or approved / disposal | Terminate as disposed and return disposal success without provider I/O. | +| Any live state / observed session expiry | Permanently terminate the session; return `timeout`. | +| Any terminal state / request or late completion | No work or usage advancement. New calls receive `cancelled` for disposed/cancelled states, `timeout` for expiry states, otherwise `rejected`; stale completions are ignored. | +| Any terminal state / disposal | Return disposal success idempotently; retain the original terminal reason and do not revive or overwrite a prior outcome. | + +Malformed/mismatched membership or policy before pending admission rejects only +that call. On admission and completion, first honor an already committed terminal +state, then caller abort, session expiry, request expiry, and binding/order checks. +Acceptance is the atomic commit after those checks. A later abort cannot win +retroactively. A competing request cannot cancel or time out the pending owner +merely by supplying its own cancelled/expired context. + +Time MUST be checked before invocation and immediately before accepting a +response. Equality is valid: `now <= session.expiresAt` and +`now <= request.expiresAt`; expiry means strictly greater. Observing request +expiry after that request entered pending terminates the entire session; an +expired request rejected before admission does not. This conservative choice +requires a fresh session after an interrupted external approval. + +Track a nondecreasing effective time using the maximum of samples from the +session's configured clock, including construction. A backward sample cannot +extend validity or revive a terminal session; it does not by itself prove that +an unobserved deadline passed. Caller abort and disposal must wake pending work +without a provider completion. A pending deadline watchdog MUST resample the +configured clock after the earliest inclusive deadline can have elapsed and +settle the call when effective time is strictly greater, even if the provider +never completes. Reschedule bounded timer intervals when necessary; timer +delivery alone is not evidence of expiry. Tests control both clock samples and +scheduler wake-ups. Expiry is also checked at every guarded event. No additional +promise of trusted host-clock synchronization is introduced. + +The TypeScript session exposes an optional `ApprovalDeadlineScheduler` paired +with its existing configurable clock for deterministic embedding and tests. +Its `schedule(callback, delayMs)` returns a cancellation function. The production +default uses bounded platform timers. A scheduler wake-up never supplies time or +approval authority; the owner resamples its clock and applies the same guards. + +Only successful member acceptance advances usage. No operation may skip an +index, approve twice for one index, or exceed `maxUses`. The retained plan +approval cannot authorize a different plan, member, request binding, or policy. +Disposal must prevent new approvals immediately and describe whether an +uncooperative provider is still pending; it must not claim that external work +was stopped merely because its completion will be ignored. + +## 6. Batch B: Exporter batch ownership + +The owner remains `BoundedOtlpExporter`; its transport remains an I/O port. +Represent queued events and an optional exclusively owned in-flight batch, +including a batch/cohort identity. Export acknowledgement applies to that batch. +The states are `Idle(queue)`, `Exporting(cohort, batch, queue)`, and +`Unavailable(retainedEvents, cause)`. Completed cohorts retain their result until +their joined callers can observe it, even if a later cohort has already started. + +1. A flush atomically takes ownership of one ordered batch before exporting. +2. At most one export is in flight. A call observing `Exporting` atomically joins + that cohort and waits for its result. It MUST NOT start a second export, + retry a failed batch, or re-evaluate the newer queue as part of that call. +3. Recording may append events while a batch is exported. A success removes + only the acknowledged in-flight batch, never a count of arbitrary queue heads. +4. A normal failure restores or retains the batch ahead of newer queued events. + The initiator and joined callers all receive the same `ExportError`. Retry + requires a new explicit call admitted after that cohort completed. +5. Capacity and readiness count queued plus in-flight events. Moving a batch out + of the queue MUST NOT double the configured memory capacity. Preserve bounded + admission and existing drop accounting under the selected backpressure policy. +6. Export-failure counters and readiness derive from the same authoritative + state; success cannot acknowledge unrelated events. + +An idle flush with no queued events returns success without transport I/O. A +successful cohort acknowledges only its captured batch: events recorded later +remain queued even when joined flush callers return success. Each transport +attempt increments failure accounting at most once, regardless of waiter count. +The API docs must state this snapshot boundary so callers do not interpret flush +success as covering events recorded after their cohort began. + +Direct reentrant `flush()` on the exporting thread returns +`ExportError::Unavailable` immediately; it does not join, wait, poison the +owner, or start I/O. Recording from the transport remains supported. The +`OtlpTransport` contract MUST prohibit synchronously waiting for another thread +to flush the same exporter: general cross-thread dependency cycles cannot be +detected by this owner. Include this restriction in adapter conformance notes. + +If transport panics with unwinding enabled, an ownership guard retains the +batch, marks the exporter `Unavailable`, and wakes joined callers with +`ExportError::Unavailable`; the initiating caller's panic continues unwinding. +Subsequent flushes return unavailable and do not retry. State-lock poisoning has +the same fail-closed readiness/flush result. An unavailable exporter rejects new +recording with drop accounting where its state remains accessible; it cannot +report an empty healthy queue or discard retained events as acknowledged. +Replacing or destroying it is an explicit operational reset of volatile state, +not delivery confirmation. Process abort/crash cannot run an unwind guard and +may lose this in-memory queue; durability is outside this exporter contract. + +Delivery remains subject to transport ambiguity. If the destination accepted a +batch and its acknowledgement was lost, a later retry may duplicate it. This +spec prevents local overlapping ownership and silent local loss; it does not +claim exactly-once remote telemetry delivery or introduce durable telemetry. + +## 7. Batch C: SDK opening, closing, and cleanup + +Each maintained client/resource owner MUST distinguish the applicable states: +`New`, `Opening(operation)`, `Open(resources)`, `Closing(operation, obligations)`, +`ClosingOverdue(operation, obligations)`, `Closed(reason)`, and +`CleanupFailed(obligations, failure)`. Factory-created open clients need no +artificial `New` state. Represent operation outcomes separately from waiter +outcomes: one caller timing out does not mean the resource stopped operating. + +### 7.1 Public wait and retry contract + +Existing TypeScript opening factories, attachment calls, and `dispose`/`close` +methods accept per-call `signal?: AbortSignal` and `timeoutMs?: number` options. +Existing no-argument calls remain normal calls without a deadline, not legacy +overloads. `Symbol.asyncDispose()` delegates with no per-waiter cancellation. +Python `open`, `attach_agent`, and `aclose` accept optional keyword-only +`timeout: float | None`; task cancellation is that caller's cancellation event. +Add `retryCleanup(options?)` / `retry_cleanup(*, timeout=None)` to resource owners +that retain failed owned-resource cleanup. Update affected public protocols, +declarations, fixtures, examples, and package tests in the implementation batch. + +An already-cancelled/expired waiter does not start or join work. Once started, +opening and cleanup tasks belong to the owner. Cancelling or timing out any open +waiter only detaches that waiter, including when it is the last waiter; the +opening operation continues until it succeeds, fails, or the owner is closed. +Use cancellation shielding in Python and equivalent operation ownership in +TypeScript. A late successful factory result with no accepting waiter MUST be +closed and retained by the factory owner until cleanup settles; it must not +become an unreachable live client. + +No implicit default shutdown timeout is introduced. A finite timeout on the +call that starts a close/retry also sets that cleanup generation's monotonic +deadline. Later callers may set shorter deadlines for their own waits but cannot +extend or replace the generation deadline. Timeout values must be finite and +positive; omit them for no deadline. At a generation deadline, unfinished +cleanup becomes `ClosingOverdue`, all current generation waiters receive an +explicit incomplete-cleanup error, and owned work continues. This deadline +neither cancels destructors nor releases their resources. Subsequent close calls +while overdue immediately report incomplete cleanup; they do not start retries. +Late settlement still transitions to `Closed` or `CleanupFailed`. + +Python caller cancellation raises `CancelledError` and per-waiter open/attach +timeouts raise `TimeoutError`. TypeScript uses the existing workflow error +boundary with cancellation/timeout in its bounded cause chain. Failed or overdue +cleanup uses Python's `cleanup-failed` / TypeScript's existing `signer-failed` +cleanup boundary, with `cleanup-incomplete` distinguished from a settled failure +in the bounded cause chain. A closed-owner rejection uses the existing disposed +boundary. Do not report any of these as proof that a provider effect was undone. + +### 7.2 Lifecycle transition table + +| Current state / event | Next state and caller result | +| --- | --- | +| New / open | Publish one `Opening` operation before initialization. Concurrent opens join it. | +| Opening / one waiter cancels or times out | State unchanged; detach only that waiter. Other open waiters remain eligible for the same result. | +| Opening / initialization succeeds, no close committed | Publish `Open` and settle remaining open waiters successfully. | +| Opening / initialization fails | Never retry opening on this instance. Invalidate publication and start one cleanup generation for acquired resources; promptly return the original opening failure to remaining open waiters and retain cleanup progress/failures on the owner. | +| Open / open | Return this open instance without reinitializing. | +| New, Opening, or Open / first close | Atomically enter `Closing`, invalidate opening/attachment publication, reject pending open waiters as disposed, stop new work, and start one cleanup generation. | +| Closing / another close or retryCleanup | Join the same generation and observe the same cleanup result, subject only to this waiter's cancellation/deadline. No duplicate cleanup starts. | +| Closing / one waiter cancels or its earlier private timeout elapses | Detach only that waiter. Shared cleanup and other waiters are unchanged. | +| Closing / generation deadline | Enter `ClosingOverdue`; report incomplete cleanup to its waiters and retain the running operation and obligations. | +| Closing or ClosingOverdue / cleanup settles successfully | Enter `Closed`; cleanup is finished. Late observation after an earlier timeout may report success on a subsequent close. | +| Closing or ClosingOverdue / cleanup settles with failures | Enter `CleanupFailed`; retain only unresolved obligations and the settled failure. | +| CleanupFailed / ordinary close | Return the retained failure; do not implicitly retry. | +| CleanupFailed / explicit retryCleanup | If the adapter contract permits safe retry of the retained obligations, publish one new `Closing` generation. Otherwise return the retained unresolved failure without repeating an ambiguous action. | +| Closed / close or retryCleanup | Return success without repeating cleanup. | +| Opening, Open, New / retryCleanup | Reject invalid lifecycle operation; it does not initiate shutdown. | +| ClosingOverdue / retryCleanup | Return incomplete cleanup; the old generation still owns work. | +| Closing, ClosingOverdue, CleanupFailed, or Closed / open, attach, or new work | Reject as disposed. No reopening or publication. | + +A failed opening with no resources to clean reaches `Closed(open-failed)` +directly. Otherwise its opening failure is retained while closure proceeds, so +error handling cannot hide unfinished cleanup. An initialization completion +invalidated by close becomes an event of the closing owner, not an open result. +Only `Open` admits attachment or new resource-using work; `New` and `Opening` +reject those calls as not open through the existing disposed error boundary. + +### 7.3 Attachment and in-flight ownership + +Register an attachment operation with the client before its first await. +Capture the client's live generation and owned input snapshot. Attachment +success may publish an agent only if that generation is still open at the +publication commit. Close that commits first invalidates publication, rejects +the attachment caller as disposed, and retains any late-created agent, signer, +or material as cleanup obligations. Close cannot finish while a pending +attachment may still return an owned resource. Conversely, an agent published +first is registered before close can snapshot cleanup obligations. There is no +interval in which an agent is live but owned by neither the caller nor client. +Attachment-waiter cancellation/timeout invalidates that attachment's publication +without closing the client; late resources still belong to the client for cleanup. + +Existing authorized operations may drain to their recorded result. Stop starting +new work when close commits, but do not reinterpret cancellation as rollback or +mint a new provider-entry right. Retain an operation/resource ownership token +until each active call finishes. Zeroization, signer destruction, and resource-map +removal follow the last permitted use. Failure or overdue status preserves those +obligations rather than freeing resources still in use. + +Attempt every independently owned cleanup even if one fails. Borrowed adapters +and signers are never closed by the borrower. A retry includes only retained +unresolved obligations whose adapter contract permits it; successful cleanup +and ambiguous non-idempotent destruction are not automatically repeated. + +Apply the contract to `AuthsClient`, attached agents, and the owned adapters +they close. Review the existing Python and TypeScript remote/identity clients +that already name `closing`: a named state alone does not supply a shared close +operation or correct partial-failure behavior. Do not move resource management +into the offline verifier or merge unrelated adapter semantics. + +## 8. Batch D: Phase-specific payloads and administrative recovery + +### 8.1 Submission and mutation journal + +Retain the existing `auths-gateway-kernel` order/transition predicates and +`GatewayAttempts` transaction boundary as the owners. Refactor their consumers +instead of introducing another executor or journal. + +For `submit::Run`, describe which phases require an approved effect, claim, +lease, entry permit, or response. Use closed payload variants or sealed stage +values so a provider-write operation cannot be constructed without its required +acknowledged permit. The driver still performs only effects the existing machine +names. Any fallback for an impossible internal combination must be eliminated +by construction or retained as an explicit fail-closed invariant failure. + +For mutation records, replace independent optional lifecycle payloads where a +closed phase can own the required refusal, response, observation, or recovery +evidence. Keep independent recipe options independent. Acquisition and disclosure +already use payload-carrying phases: compare their mechanisms without conflating +their different evidence or terminal claims. + +Untrusted decoding, canonical bytes, immutable effect identity, revisions, +one-use entry, counters, late evidence, and unknown-effect retention must preserve +their existing meanings. Where a serialized shape intentionally changes, update +schema identities, fixtures, all maintained consumers, formal links, and +obsolete-state rejection together. No compatibility readers or dual journals. + +### 8.2 Installation and credential recovery + +This subsection sets requirements for a follow-on protocol design. It is not +yet a command/transition contract; section 8.4 is a prerequisite to changing +runtime recovery behavior under this batch. + +First map existing facts and owners: installation/draft/proposal files, +`SharedConnection`, credential custody, `CredentialJournal`, generation floors, +and the native candidate-acquisition/publication path. Classify which are +authority, retained evidence, cleanup obligations, and diagnostic projections. + +Expose a closed recovery description that distinguishes at least: + +- Uninitialized, installation inputs retained, and credential candidate staged. +- Candidate checks incomplete/refused, ready for publication, and published. +- Superseded credential awaiting its retirement deadline, deletion pending, + deletion incomplete/uncertain, and deletion confirmed. +- Installation unavailable or inconsistent and quarantined for operator action. + +These are distinguishable conditions, not necessarily one linear enum. Model +orthogonal installation and retirement lifecycles separately. The description +must derive from current authoritative facts; it MUST NOT become a competing +ledger capable of authorizing entry or overriding custody uncertainty. + +Preserve write-ahead cleanup notes, generation/commitment checks, restore floors, +minimum retirement delay, and native approval of credential-bearing reads. +Publication success and cleanup success must remain separate facts. Restart must +not erase an unresolved cleanup obligation or permit deletion earlier than the +existing safety bound. An unreadable journal is unavailable, never empty. + +For each partial condition, specify the existing or revised trusted command +that may advance it, exact required evidence, repeat behavior, and possible +failure result. Operators must not have to infer recovery actions from filenames +or mistake manifest presence for a serviceable installation. + +### 8.3 Qualification import + +This protocol has the same section 8.4 prerequisite. Existing qualification +semantics remain authoritative while its concrete design is being completed. + +Specify prepare, retained revocation-memory advancement, bundle publication, +and cleanup as an explicit import protocol using the existing configuration and +qualification owners. Enumerate interruption before and after each durable +write/rename, including first import and replacement of an existing bundle. + +The recovery description must distinguish staged inputs, current published +inputs, retired inputs, and an unavailable publication. Revocation memory is +monotonic: recovery cannot restore an older bundle by lowering its accepted +floor. Missing current inputs after interruption must remain fail closed until +a valid explicit completion/import succeeds. Do not add automatic security +rollback, grace periods, or a second qualification authority. + +### 8.4 Administrative recovery design gate + +Before implementing sections 8.2–8.3, complete and review a protocol amendment +here or a separately numbered specification under `docs/specs`, and link it +from this section. No such completed protocol is claimed by the current draft. +This is an engineering design gate, not a new user-permission workflow. Runtime +work on sections 5–7 and the payload refactor in 8.1 need not wait for it. + +The design MUST contain all of the following, with no unresolved behavioral +choices in the selected protocols: + +1. **Authority map.** Name each existing owner, record/file, custody generation, + floor, and evidence object; identify which facts authorize which transitions. + Explain how the status projection avoids becoming another authority. +2. **Commands and results.** Give exact CLI/API command names, inputs, required + evidence, authentication boundary, output/error mapping, and repeat behavior. + A lost acknowledgement must have an explicit inspect/retry rule for the same + operation identity, including what distinguishes replay from conflict. +3. **Transition tables.** For each state/command, state guards, revision checks, + durable updates, external effects, successor state, and caller result. Include + invalid transitions, revoked connections, superseded candidates, conflicting + staged generations, partial deletion, and unavailable/corrupt authority. +4. **Competing administrators.** Define the ordering boundary for two installs, + stage/publish, rotate/revoke, enable/disable, retire/rotate, two cleanup calls, + and two qualification imports. Include live entry racing an admin change. + State which caller wins, which sees conflict/replay, and which durable facts + a losing caller must reload. Local file locks alone cannot order hosts + sharing a native store; preserve its revision/fence authority. +5. **Durability contract.** Define the storage topology and supported crash + model. Order file contents, file synchronization, atomic replacement/rename, + affected parent-directory synchronization, journal/floor updates, native + store commit, and custody acknowledgements. State the exact point at which a + command may report durable publication. A successful `rename` or transaction + response alone must not be assumed to persist unrelated filesystem/custody + facts. State same-filesystem requirements and refuse unsupported layouts or + durability guarantees rather than silently weakening them. +6. **Interruption matrix.** At every ordered write, synchronization, rename, + custody mutation, and native commit boundary, record the possible retained + facts, startup classification, permitted recovery command, and forbidden + effects. Include a failed/unknown acknowledgement, interruption immediately + after success was acknowledged, and restart after acknowledged publication. + Specify process-crash versus storage/power-loss evidence separately. Any + monotonic-time retirement deadline needs a conservative restart interpretation + anchored to retained facts, not a freshly reset timer permitting early deletion. +7. **Evidence map.** Map every transition and interrupted condition to its test + owner, adapter/topology, injected fault, and expected observable result. + Repeated commands, competing operators, and monotonic revocation/generation + facts must appear explicitly, not just as generic invariants. + +The review must resolve any contradiction between command acknowledgement, +post-restart interpretation, and cleanup obligations before runtime changes. +If the required atomicity is unavailable across current stores, specify +conservative intermediate states and explicit recovery; do not invent a hidden +distributed transaction or claim that multiple independent commits are atomic. + +## 9. Required evidence and acceptance + +Use controlled completions, barriers, deterministic clocks, and actual durable +fault points. Sleep-based timing tests alone are insufficient. Map tests to +requirements and write each complete implementation/test batch before execution, +following the repository's batch discipline and GitHub-first verification policy. + +| Gate | Required evidence | +| --- | --- | +| A1 | Suspend the first provider approval; submit the same index and a later index concurrently. Exactly one provider request starts and no competing call advances usage. | +| A2 | Hold a matching approval response until after disposal, caller cancellation, session expiry, and request expiry in separate cases. No member is approved by the late completion. | +| A3 | Exercise mismatched response, refusal, provider error, last valid member, exhausted session, and replay. Binding and count invariants hold. | +| A4 | Mutate original member commitments after `providerFor`, request/policy digests and display objects while approval is pending, and provider-visible copies before completion. Only the owner's original snapshot controls comparison and returned approval. Reject shared-memory-backed and detached inputs. | +| A5 | Exercise already-aborted callers, in-flight abort with a provider that ignores the signal, threshold propagation, and abort immediately before/after the acceptance commit. Verify prompt caller settlement, no unhandled late rejection, and no retroactive undo. | +| A6 | Test equality at each deadline, strictly later samples, a backward sample before any observed expiry, and rollback after expiry. With no provider completion, drive deadline watchdog wake-ups explicitly. Pre-admission request expiry leaves the session usable; pending request expiry terminates it. Effective time never decreases. | +| B1 | Reproduce two flushes selecting the same old event, then insert a new event between acknowledgements. The corrected implementation neither overlaps local batch ownership nor discards the new event. | +| B2 | Hold export pending while recording to capacity; exercise both backpressure policies, failure, retry, and exporter unavailability. Total retained events stay bounded and accounting remains truthful. | +| B3 | Join several flush callers to a suspended failing export. All receive its error, exactly one failure is counted, and no waiter retries. A later new call may explicitly retry the retained oldest batch. On success, joined callers do not flush later queued events. | +| B4 | Exercise direct reentrant flush, record-during-export, transport panic/unwind, and state-lock poisoning. Reentry returns unavailable without deadlock; unwind releases waiters, retains the batch in unavailable state, and does not allow implicit retry or false readiness. | +| C1 | Interleave two opens, open/close, and two closes with a suspended adapter. Initialization happens once, closure cannot publish a later open, and close waiters share the cleanup outcome. | +| C2 | Cancel a close waiter, fail one owned adapter while another still needs cleanup, and retry retained obligations. Borrowed resources remain untouched and successful cleanup is not repeated. | +| C3 | Hold an active operation through shutdown and its deadline. Verify the documented drain/cancel policy, safe zeroization order, and absence of false `Closed` success. | +| C4 | Cancel/time out one of multiple open waiters, then all waiters. Remaining waiters still observe the same operation; an abandoned factory success is cleaned up rather than leaked. Failed opening cannot be retried on the same instance. | +| C5 | Suspend attachment and race its publication against close, attachment cancellation, and attachment timeout in both event orders. Every late resource remains owned for cleanup; no disposed client publishes an agent. | +| C6 | Reach cleanup failure, call ordinary close again, then start a safe explicit retry while more close/retry callers arrive. Ordinary close never implicitly retries; all retry participants share one generation and only unresolved safe obligations are repeated. | +| C7 | Distinguish an earlier private waiter timeout from the initiating cleanup generation deadline. After the latter, verify `ClosingOverdue`, retained running work, immediate incomplete result for new close/retry calls, and late success/failure settlement. | +| D0 | Before administrative recovery implementation, link the reviewed section 8.4 protocol with complete command/transition tables, durability assumptions, competing-admin outcomes, and interruption-to-test matrix. A prose task list cannot satisfy this gate. | +| D1 | Differentially compare decisions, compiled commands, entry counts, state projections, receipts, and counters before/after payload refactoring using maintained fixtures. Test hostile invalid persisted combinations. | +| D2 | Interrupt installation, staging, publication, retirement, and cleanup at each durable boundary; restart and perform the documented operator action. No new entry right, premature retirement, or forgotten cleanup results. | +| D3 | Interrupt first and replacement qualification imports around every write/rename. Revocation memory never regresses and missing/invalid current authority refuses entry. | +| D4 | Execute the reviewed protocol's repeat/conflict matrix with two administrative actors and live entry where applicable. Restart immediately after acknowledged publication and after lost acknowledgements; confirm the promised durable result or explicit conservative uncertainty under the stated crash model. | +| P1 | Review each affected workflow against the AGENTS.md rules in section 10 and link its authoritative transition implementation and tests. | + +Durable native journal changes require applicable file and configured TLS +PostgreSQL coverage, including commit/reply-loss histories where affected. Local +installation filesystem protocols require real file/restart evidence; a database +test is not a substitute. SDK changes require installed-package regression +coverage for the affected language and ownership contract. Extend existing test +owners and retained scenarios rather than creating a parallel assurance system. + +Run hosted checks appropriate to each bounded implementation PR and the required +repository gates. Report the exact tested revision, commands/jobs, results, and +remaining limitations. Do not claim a formal proof from an independently written +model or infer whole-repository compliance from this finite matrix. Update +existing translated predicates and proof/semantic manifests when they change; +this spec sets no unrelated formal-coverage target. + +## 10. Required AGENTS.md update + +This specification proposes the following addition under **Implementation +standards**, as a subsection named **Explicit state ownership**. Implementing +the first batch MUST include this policy update. The proposed text is not an +assertion that AGENTS.md has already changed. + +> No implicit state machines are allowed in new or changed workflows. If legal +> next operations depend on history, identify one authoritative state owner and +> enforce its named states, events, guards, required payloads, and transitions. +> This includes asynchronous resource ownership, authorization, concurrency, +> external effects, and durable recovery. +> +> Do not distribute a lifecycle across unrelated flags, optional fields, +> callback-local variables, filesystem markers, or duplicate status records. +> Independent facts may remain booleans and actual absence may remain optional. +> Compact two-state or consuming representations are valid when their named +> transition contract is enforced in one place and hides no consequential +> pending, closing, failed, or uncertain state. Replacing flags with an enum +> without fixing transition ownership does not satisfy this rule. +> +> Claim pending-operation ownership before external I/O or an await. Bind each +> completion to that operation; recheck guards that may change while waiting. +> Snapshot mutable decision inputs into owner-controlled memory before pending +> admission; pass separate copies to external code and validate completions +> against the retained snapshot. Readonly fields and shallow freezing do not +> establish byte ownership. Specify exact bound fields and ownership transfers. +> +> Define what each competing or reentrant caller receives: rejection, a shared +> operation result, or a new operation. Distinguish cancellation/deadlines of an +> individual waiter from cancellation/deadlines of the owned operation. Define +> late-completion, cleanup failure/retry, and resource-publication behavior. +> A terminal flag must not stand in for unfinished cleanup, and an error or +> cancellation must not be treated as proof of non-effect. +> +> Keep one semantic authority for each managed transition. Extend the existing +> kernel, journal, or resource owner; do not add a parallel executor, recovery +> ledger, or universal lifecycle framework. Persist necessary recovery facts +> through the existing durable boundary and derive status from those facts. +> Preserve provider/domain distinctions and the abstraction extraction gates. +> +> Every change to such a workflow must document its states and ownership boundary +> and add deterministic evidence for relevant competing events and failures. +> Durable changes require applicable crash/restart and adapter evidence. Review +> phase-specific payloads and invalid transitions, not just the happy path. +> Before changing a recovery protocol, finish its command/transition tables, +> competing-writer results, durable acknowledgement/synchronization ordering, +> and interruption matrix. Naming those as future design tasks is insufficient. +> Follow AP-SPEC-076 for the initial remediation inventory and acceptance gates. + +Also add a short **Stateful change review** checklist to AGENTS.md's testing and +handoff guidance. The PR description or linked spec must answer: + +1. What history changes the legality of the next operation, and who owns it? +2. What orders competing/reentrant events, what identifies a completion, and + which result does each caller observe? +3. What data/capability is required by each phase, who can construct it, and + which mutable inputs are copied before crossing an asynchronous boundary? +4. How do waiter cancellation and operation cancellation differ? What happens + on timeout, stale completion, late resource creation, and partial cleanup/retry? +5. Where is durable success acknowledged, which synchronization/commit facts + support it, and what happens on repeated commands, competing writers, lost + acknowledgements, and restart immediately after acknowledged success? +6. Which exact tests exercise those schedules and preserve effect/receipt truth? + +These are engineering review requirements, not a new user-approval step. A +regex ban on booleans or optional values cannot establish compliance. Start +with transition ownership and focused regressions; any later automated +inventory must supplement review and avoid duplicating executable state facts. + +## 11. Delivery order and completion boundary + +1. Land the AGENTS.md policy with the first bounded correction. Implement + approval ownership, exporter ownership, and SDK lifecycle handling as + independently reviewable changes with their complete regression batches. +2. Refactor submission/journal payloads against the retained native owners and + differential corpus. Preserve wire semantics unless an explicit direct + cutover is necessary and fully recorded. +3. Complete and review the section 8.4 follow-on protocol, including commands, + competing administrators, durability, and interruption tables. Only after D0 + is satisfied, implement administrative recovery using existing journals and + floors and close its full interruption matrix. +4. Record each gate's evidence and disposition in this spec or a linked + implementation record. Unimplemented batches and deferred audit findings + remain visible; none are silently marked compliant. + +Completion means all five scoped areas satisfy their applicable gates and the +AGENTS.md guidance is in force. Sections 5–7 may be implemented and accepted +independently while administrative recovery remains explicitly design-blocked; +that does not close the whole initiative. It does not mean every state machine +has been audited, every schedule has been proved, remote telemetry is delivered +exactly once, AP075's independent-review gates are closed, or production +qualification has been granted. Caches, simple one-shot wrappers, and demo UI +rewrites are outside these implementation batches unless they expose a required +failure or participate in an affected owner. diff --git a/product/operations/auths-operations-otel/src/exporter.rs b/product/operations/auths-operations-otel/src/exporter.rs new file mode 100644 index 000000000..d379a5525 --- /dev/null +++ b/product/operations/auths-operations-otel/src/exporter.rs @@ -0,0 +1,284 @@ +//! One exclusive batch owner per export. Concurrent callers observe one cohort. +use crate::{BackpressurePolicy, ExportError, ExporterStatus, MAX_BUFFER_CAPACITY, OtlpTransport}; +use auths_operations::{EventSink, OperationalEventV2}; +use std::{ + collections::VecDeque, + sync::{Arc, Condvar, Mutex}, + thread::{self, ThreadId}, +}; + +type Batch = Arc>; + +enum CohortOutcome { + Pending, + Complete(Result<(), ExportError>), +} + +struct CohortState { + outcome: CohortOutcome, + waiters: usize, +} + +struct Cohort { + state: Mutex, + changed: Condvar, +} + +impl Cohort { + fn new() -> Self { + Self { + state: Mutex::new(CohortState { + outcome: CohortOutcome::Pending, + waiters: 0, + }), + changed: Condvar::new(), + } + } + + fn finish(&self, result: Result<(), ExportError>) { + let mut state = self + .state + .lock() + .unwrap_or_else(std::sync::PoisonError::into_inner); + state.outcome = CohortOutcome::Complete(result); + self.changed.notify_all(); + } + + fn wait(&self) -> Result<(), ExportError> { + let mut state = self.state.lock().map_err(|_| ExportError::Unavailable)?; + state.waiters = state.waiters.saturating_add(1); + self.changed.notify_all(); + loop { + if let CohortOutcome::Complete(result) = state.outcome { + return result; + } + state = self + .changed + .wait(state) + .map_err(|_| ExportError::Unavailable)?; + } + } +} + +enum Phase { + Idle, + Retryable(Batch), + Exporting { + cohort: Arc, + batch: Batch, + owner: ThreadId, + }, + Unavailable { + retained: Option, + }, +} + +impl Phase { + fn retained(&self) -> Option<&Batch> { + match self { + Self::Idle => None, + Self::Retryable(batch) | Self::Exporting { batch, .. } => Some(batch), + Self::Unavailable { retained } => retained.as_ref(), + } + } +} + +struct State { + queue: VecDeque, + phase: Phase, + dropped: u64, + export_failures: u64, +} + +impl State { + fn buffered(&self) -> usize { + self.queue.len() + self.phase.retained().map_or(0, |batch| batch.len()) + } +} + +/// Bounded volatile exporter with exact batch acknowledgement and exclusive I/O. +pub struct BoundedOtlpExporter { + transport: T, + capacity: usize, + policy: BackpressurePolicy, + state: Mutex, +} + +enum Admission { + Joined(Arc), + Owner { cohort: Arc, batch: Batch }, +} + +impl BoundedOtlpExporter { + /// Creates an event-count-bounded exporter; queued and in-flight events share capacity. + /// + /// # Errors + /// Rejects zero capacity or a capacity above the hard maximum. + pub fn new( + transport: T, + capacity: usize, + policy: BackpressurePolicy, + ) -> Result { + if capacity == 0 || capacity > MAX_BUFFER_CAPACITY { + return Err(ExportError::InvalidConfiguration); + } + Ok(Self { + transport, + capacity, + policy, + state: Mutex::new(State { + queue: VecDeque::new(), + phase: Phase::Idle, + dropped: 0, + export_failures: 0, + }), + }) + } + + /// Exports one snapshot, or joins the snapshot currently being exported. + /// + /// Events recorded after the snapshot remain queued. A failed cohort does + /// not retry: every joined caller observes its result. A later call may + /// explicitly retry the retained batch, before any newer queued events. + /// + /// # Errors + /// Returns the transport failure, or unavailable on recursive flush, poisoned + /// state, or an exporter whose transport previously unwound. A transport panic + /// continues unwinding for its initiating caller; joined callers are released. + pub fn flush(&self) -> Result<(), ExportError> { + let admission = { + let mut state = self.state.lock().map_err(|_| ExportError::Unavailable)?; + match &state.phase { + Phase::Unavailable { .. } => return Err(ExportError::Unavailable), + Phase::Exporting { owner, .. } if *owner == thread::current().id() => { + return Err(ExportError::Unavailable); + } + Phase::Exporting { cohort, .. } => Admission::Joined(Arc::clone(cohort)), + Phase::Idle | Phase::Retryable(_) => { + let batch = match &state.phase { + Phase::Retryable(batch) => Arc::clone(batch), + _ => { + if state.queue.is_empty() { + return Ok(()); + } + Arc::new(std::mem::take(&mut state.queue).into_iter().collect()) + } + }; + let cohort = Arc::new(Cohort::new()); + state.phase = Phase::Exporting { + cohort: Arc::clone(&cohort), + batch: Arc::clone(&batch), + owner: thread::current().id(), + }; + Admission::Owner { cohort, batch } + } + } + }; + match admission { + Admission::Joined(cohort) => cohort.wait(), + Admission::Owner { cohort, batch } => { + // Dropping this exact ownership capability handles unwind, not transport success. + let guard = ExportGuard { + exporter: self, + owned: Some((cohort, Arc::clone(&batch))), + }; + let result = self.transport.export(&batch); + guard.complete(result) + } + } + } + + fn finish( + &self, + cohort: &Cohort, + batch: Batch, + result: Result<(), ExportError>, + unwound: bool, + ) -> Result<(), ExportError> { + let locked = self.state.lock(); + let unavailable = unwound || locked.is_err(); + let mut state = locked.unwrap_or_else(std::sync::PoisonError::into_inner); + let result = if unavailable { + Err(ExportError::Unavailable) + } else { + result + }; + state.phase = if unavailable { + Phase::Unavailable { + retained: Some(batch), + } + } else if result.is_err() { + Phase::Retryable(batch) + } else { + Phase::Idle + }; + if result.is_err() { + state.export_failures = state.export_failures.saturating_add(1); + } + // Publish queue ownership before waking callers. Cohort identity survives a later flush. + cohort.finish(result); + result + } + + /// Reports total retained events and readiness without treating failure as delivery. + #[must_use] + pub fn status(&self) -> ExporterStatus { + self.state.lock().map_or( + ExporterStatus { + buffered: self.capacity, + dropped: 0, + export_failures: 1, + ready: false, + }, + |state| ExporterStatus { + buffered: state.buffered(), + dropped: state.dropped, + export_failures: state.export_failures, + ready: !matches!(state.phase, Phase::Unavailable { .. }) + && (self.policy == BackpressurePolicy::DropNewest + || state.buffered() < self.capacity), + }, + ) + } +} + +impl EventSink for BoundedOtlpExporter { + fn record(&self, event: &OperationalEventV2) { + let Ok(mut state) = self.state.lock() else { + return; + }; + if matches!(state.phase, Phase::Unavailable { .. }) || state.buffered() == self.capacity { + state.dropped = state.dropped.saturating_add(1); + } else { + state.queue.push_back(event.clone()); + } + } +} + +/// A one-use batch capability. Taking it acknowledges completion; drop retains uncertainty. +struct ExportGuard<'a, T: OtlpTransport> { + exporter: &'a BoundedOtlpExporter, + owned: Option<(Arc, Batch)>, +} + +impl ExportGuard<'_, T> { + fn complete(mut self, result: Result<(), ExportError>) -> Result<(), ExportError> { + let Some((cohort, batch)) = self.owned.take() else { + return Err(ExportError::Unavailable); + }; + self.exporter.finish(&cohort, batch, result, false) + } +} + +impl Drop for ExportGuard<'_, T> { + fn drop(&mut self) { + if let Some((cohort, batch)) = self.owned.take() { + let _ = self + .exporter + .finish(&cohort, batch, Err(ExportError::Unavailable), true); + } + } +} + +#[cfg(test)] +mod tests; diff --git a/product/operations/auths-operations-otel/src/exporter/tests.rs b/product/operations/auths-operations-otel/src/exporter/tests.rs new file mode 100644 index 000000000..008c3ec78 --- /dev/null +++ b/product/operations/auths-operations-otel/src/exporter/tests.rs @@ -0,0 +1,277 @@ +use super::*; +use auths_operations::{ + BuildSemanticId, DeploymentClass, LatencyBucket, OperationalDimensions, OperationalOutcome, + OperationalReasonCode, OperationalStage, OperationalSubsystem, +}; +use std::{ + sync::{ + Weak, + atomic::{AtomicBool, AtomicUsize, Ordering}, + mpsc, + }, + time::Duration, +}; + +fn event(name: &str) -> OperationalEventV2 { + OperationalEventV2::new( + BuildSemanticId::parse(name).unwrap(), + None, + OperationalDimensions::new( + OperationalStage::ProviderResult, + OperationalOutcome::OutcomeUnknown, + OperationalReasonCode::ProviderUnknown, + LatencyBucket::UnderOneSecond, + OperationalSubsystem::Provider, + DeploymentClass::CustomerOperated, + ), + None, + ) +} + +struct Gate { + entered: mpsc::Sender<()>, + release: Mutex>, + batches: Mutex>>, + fail: AtomicBool, + panic: AtomicBool, + calls: AtomicUsize, +} + +impl OtlpTransport for Arc { + fn export(&self, events: &[OperationalEventV2]) -> Result<(), ExportError> { + self.calls.fetch_add(1, Ordering::SeqCst); + self.batches.lock().unwrap().push( + events + .iter() + .map(|event| event.build().as_str().to_owned()) + .collect(), + ); + self.entered.send(()).unwrap(); + self.release.lock().unwrap().recv().unwrap(); + assert!( + !self.panic.load(Ordering::SeqCst), + "injected transport unwind" + ); + if self.fail.load(Ordering::SeqCst) { + Err(ExportError::Unavailable) + } else { + Ok(()) + } + } +} + +fn gate() -> (Arc, mpsc::Receiver<()>, mpsc::Sender<()>) { + let (entered, observed) = mpsc::channel(); + let (release, proceed) = mpsc::channel(); + ( + Arc::new(Gate { + entered, + release: Mutex::new(proceed), + batches: Mutex::new(Vec::new()), + fail: AtomicBool::new(false), + panic: AtomicBool::new(false), + calls: AtomicUsize::new(0), + }), + observed, + release, + ) +} + +fn joined(exporter: &BoundedOtlpExporter, count: usize) { + let cohort = { + let state = exporter.state.lock().unwrap(); + let Phase::Exporting { cohort, .. } = &state.phase else { + panic!("export not pending"); + }; + Arc::clone(cohort) + }; + let mut state = cohort.state.lock().unwrap(); + while state.waiters < count { + let (next, timeout) = cohort + .changed + .wait_timeout(state, Duration::from_secs(30)) + .unwrap(); + state = next; + assert!(!timeout.timed_out(), "flush caller never joined the cohort"); + } +} + +#[test] +fn b1_concurrent_success_acknowledges_only_its_snapshot() { + let (transport, entered, release) = gate(); + let exporter = Arc::new( + BoundedOtlpExporter::new(Arc::clone(&transport), 2, BackpressurePolicy::DropNewest) + .unwrap(), + ); + exporter.record(&event("old")); + let owner = { + let e = Arc::clone(&exporter); + thread::spawn(move || e.flush()) + }; + entered.recv().unwrap(); + let waiter = { + let e = Arc::clone(&exporter); + thread::spawn(move || e.flush()) + }; + joined(&exporter, 1); + exporter.record(&event("new")); + assert_eq!(exporter.status().buffered, 2); + release.send(()).unwrap(); + assert_eq!(owner.join().unwrap(), Ok(())); + assert_eq!(waiter.join().unwrap(), Ok(())); + assert_eq!(transport.calls.load(Ordering::SeqCst), 1); + assert_eq!(exporter.status().buffered, 1); + release.send(()).unwrap(); + assert_eq!(exporter.flush(), Ok(())); + assert_eq!( + *transport.batches.lock().unwrap(), + vec![vec!["old"], vec!["new"]] + ); + assert_eq!(exporter.status().buffered, 0); +} + +#[test] +fn b2_in_flight_events_share_capacity_under_both_policies() { + for policy in [ + BackpressurePolicy::DropNewest, + BackpressurePolicy::FailReadiness, + ] { + let (transport, entered, release) = gate(); + let exporter = Arc::new(BoundedOtlpExporter::new(transport, 1, policy).unwrap()); + exporter.record(&event("old")); + let owner = { + let e = Arc::clone(&exporter); + thread::spawn(move || e.flush()) + }; + entered.recv().unwrap(); + exporter.record(&event("overflow")); + let status = exporter.status(); + assert_eq!(status.buffered, 1); + assert_eq!(status.dropped, 1); + assert_eq!(status.ready, policy == BackpressurePolicy::DropNewest); + release.send(()).unwrap(); + assert_eq!(owner.join().unwrap(), Ok(())); + assert_eq!(exporter.status().buffered, 0); + assert!(exporter.status().ready); + } +} + +#[test] +fn b3_failure_is_shared_and_only_a_later_call_retries_the_oldest_batch() { + let (transport, entered, release) = gate(); + transport.fail.store(true, Ordering::SeqCst); + let exporter = Arc::new( + BoundedOtlpExporter::new(Arc::clone(&transport), 3, BackpressurePolicy::DropNewest) + .unwrap(), + ); + exporter.record(&event("old")); + let owner = { + let e = Arc::clone(&exporter); + thread::spawn(move || e.flush()) + }; + entered.recv().unwrap(); + let waiters: Vec<_> = (0..2) + .map(|_| { + let e = Arc::clone(&exporter); + thread::spawn(move || e.flush()) + }) + .collect(); + joined(&exporter, 2); + exporter.record(&event("new")); + release.send(()).unwrap(); + assert_eq!(owner.join().unwrap(), Err(ExportError::Unavailable)); + for waiter in waiters { + assert_eq!(waiter.join().unwrap(), Err(ExportError::Unavailable)); + } + assert_eq!(transport.calls.load(Ordering::SeqCst), 1); + assert_eq!(exporter.status().export_failures, 1); + assert_eq!(exporter.status().buffered, 2); + transport.fail.store(false, Ordering::SeqCst); + release.send(()).unwrap(); + assert_eq!(exporter.flush(), Ok(())); + assert_eq!(exporter.status().buffered, 1); + release.send(()).unwrap(); + assert_eq!(exporter.flush(), Ok(())); + assert_eq!( + *transport.batches.lock().unwrap(), + vec![vec!["old"], vec!["old"], vec!["new"]] + ); +} + +#[test] +fn b4_unwind_releases_waiters_but_never_claims_delivery_or_retries() { + let (transport, entered, release) = gate(); + transport.panic.store(true, Ordering::SeqCst); + let exporter = Arc::new( + BoundedOtlpExporter::new(Arc::clone(&transport), 2, BackpressurePolicy::DropNewest) + .unwrap(), + ); + exporter.record(&event("old")); + let owner = { + let e = Arc::clone(&exporter); + thread::spawn(move || e.flush()) + }; + entered.recv().unwrap(); + let waiter = { + let e = Arc::clone(&exporter); + thread::spawn(move || e.flush()) + }; + joined(&exporter, 1); + release.send(()).unwrap(); + assert!(owner.join().is_err()); + assert_eq!(waiter.join().unwrap(), Err(ExportError::Unavailable)); + exporter.record(&event("refused")); + assert_eq!(exporter.flush(), Err(ExportError::Unavailable)); + assert_eq!(exporter.status().buffered, 1); + assert_eq!(exporter.status().dropped, 1); + assert_eq!(exporter.status().export_failures, 1); + assert!(!exporter.status().ready); + assert_eq!(transport.calls.load(Ordering::SeqCst), 1); +} + +struct Reentrant { + exporter: Mutex>>>, +} + +impl OtlpTransport for Arc { + fn export(&self, _events: &[OperationalEventV2]) -> Result<(), ExportError> { + let exporter = self.exporter.lock().unwrap().upgrade().unwrap(); + assert_eq!(exporter.flush(), Err(ExportError::Unavailable)); + exporter.record(&event("during-export")); + Ok(()) + } +} + +#[test] +fn b4_direct_reentry_is_refused_but_recording_from_transport_is_supported() { + let transport = Arc::new(Reentrant { + exporter: Mutex::new(Weak::new()), + }); + let exporter = Arc::new( + BoundedOtlpExporter::new(Arc::clone(&transport), 2, BackpressurePolicy::DropNewest) + .unwrap(), + ); + *transport.exporter.lock().unwrap() = Arc::downgrade(&exporter); + exporter.record(&event("old")); + assert_eq!(exporter.flush(), Ok(())); + assert_eq!(exporter.status().buffered, 1); + assert_eq!(exporter.status().export_failures, 0); +} + +#[test] +fn b4_poisoned_state_is_unavailable_and_retains_its_events() { + let (transport, _entered, _release) = gate(); + let exporter = BoundedOtlpExporter::new(transport, 1, BackpressurePolicy::DropNewest).unwrap(); + exporter.record(&event("retained")); + let poisoned = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| { + let _locked = exporter.state.lock().unwrap(); + panic!("injected state poison"); + })); + assert!(poisoned.is_err()); + assert_eq!(exporter.flush(), Err(ExportError::Unavailable)); + assert!(!exporter.status().ready); + assert_eq!( + exporter.state.lock().err().unwrap().into_inner().buffered(), + 1 + ); +} diff --git a/product/operations/auths-operations-otel/src/lib.rs b/product/operations/auths-operations-otel/src/lib.rs index 05de39180..432a2e74b 100644 --- a/product/operations/auths-operations-otel/src/lib.rs +++ b/product/operations/auths-operations-otel/src/lib.rs @@ -7,12 +7,12 @@ use auths_operations::{ OperationalReasonCode, OperationalStage, OperationalSubsystem, }; use std::{ - collections::{BTreeMap, VecDeque}, + collections::BTreeMap, fmt::Write as _, sync::{Arc, Mutex}, }; -const MAX_BUFFER_CAPACITY: usize = 65_536; +pub(crate) const MAX_BUFFER_CAPACITY: usize = 65_536; #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum BackpressurePolicy { @@ -32,6 +32,9 @@ pub trait OtlpTransport: Send + Sync { /// # Errors /// /// Returns unavailable when the destination does not accept the batch. + /// + /// Direct recursive flush is refused. An implementation must not wait for + /// another thread to flush the same exporter: that creates a dependency cycle. fn export(&self, events: &[OperationalEventV2]) -> Result<(), ExportError>; } @@ -43,107 +46,8 @@ pub struct ExporterStatus { pub ready: bool, } -struct ExportState { - buffer: VecDeque, - dropped: u64, - export_failures: u64, -} - -pub struct BoundedOtlpExporter { - transport: T, - capacity: usize, - policy: BackpressurePolicy, - state: Mutex, -} - -impl BoundedOtlpExporter { - /// Creates an exporter with a bounded in-memory queue. - /// - /// # Errors - /// - /// Returns invalid-configuration when capacity is zero or exceeds the - /// hard queue bound. - pub fn new( - transport: T, - capacity: usize, - policy: BackpressurePolicy, - ) -> Result { - if capacity == 0 || capacity > MAX_BUFFER_CAPACITY { - return Err(ExportError::InvalidConfiguration); - } - Ok(Self { - transport, - capacity, - policy, - state: Mutex::new(ExportState { - buffer: VecDeque::with_capacity(capacity), - dropped: 0, - export_failures: 0, - }), - }) - } - - /// Exports every currently buffered event as one batch. - /// - /// # Errors - /// - /// Returns unavailable when the buffer lock or destination is unavailable. - pub fn flush(&self) -> Result<(), ExportError> { - let batch = { - let Ok(state) = self.state.lock() else { - return Err(ExportError::Unavailable); - }; - state.buffer.iter().cloned().collect::>() - }; - if batch.is_empty() { - return Ok(()); - } - if let Err(error) = self.transport.export(&batch) { - if let Ok(mut state) = self.state.lock() { - state.export_failures = state.export_failures.saturating_add(1); - } - return Err(error); - } - if let Ok(mut state) = self.state.lock() { - for _ in 0..batch.len().min(state.buffer.len()) { - state.buffer.pop_front(); - } - } - Ok(()) - } - - #[must_use] - pub fn status(&self) -> ExporterStatus { - self.state.lock().map_or( - ExporterStatus { - buffered: self.capacity, - dropped: 0, - export_failures: 1, - ready: false, - }, - |state| ExporterStatus { - buffered: state.buffer.len(), - dropped: state.dropped, - export_failures: state.export_failures, - ready: self.policy == BackpressurePolicy::DropNewest - || state.buffer.len() < self.capacity, - }, - ) - } -} - -impl EventSink for BoundedOtlpExporter { - fn record(&self, event: &OperationalEventV2) { - let Ok(mut state) = self.state.lock() else { - return; - }; - if state.buffer.len() == self.capacity { - state.dropped = state.dropped.saturating_add(1); - return; - } - state.buffer.push_back(event.clone()); - } -} +mod exporter; +pub use exporter::BoundedOtlpExporter; pub struct CombinedSink { otlp: Arc>, diff --git a/release/semantic-freeze-versions.toml b/release/semantic-freeze-versions.toml index c0c9424f9..c205e8daf 100644 --- a/release/semantic-freeze-versions.toml +++ b/release/semantic-freeze-versions.toml @@ -1,4 +1,4 @@ -freeze_version = 439 +freeze_version = 440 # Semantic identity counters live outside the xtask source tree deliberately. # The formal source closure binds xtask's executable code, while the semantic @@ -47,7 +47,7 @@ freeze_version = 439 "auths.frozen-bytes/product/integrations/auths-stripe/fixtures/v1/manifest.sha256.json" = 1 "auths.identity.protocol" = 173 "auths.modular-components" = 22 -"auths.portable-abi-bindings" = 131 +"auths.portable-abi-bindings" = 132 "auths.product.bounded-domains" = 21 "auths.product.bounded-policy" = 6 "auths.product.configuration-commitments" = 1 @@ -59,7 +59,7 @@ freeze_version = 439 "auths.product.lifecycle" = 17 "auths.product.mcp-closed-execution" = 32 "auths.product.mechanism-profile-conformance" = 13 -"auths.product.operations" = 5 +"auths.product.operations" = 6 "auths.product.public-sdk-contract" = 169 "auths.product.receipts" = 13 "auths.product.release-assurance" = 7 @@ -67,4 +67,4 @@ freeze_version = 439 "auths.product.vocabulary" = 31 "auths.release.benchmark-contract" = 1 "auths.release.evolution-contract" = 89 -"auths.release.public-surface" = 439 +"auths.release.public-surface" = 440 diff --git a/release/semantic-freeze.json b/release/semantic-freeze.json index 9a7798dcf..df332c5d7 100644 --- a/release/semantic-freeze.json +++ b/release/semantic-freeze.json @@ -1,6 +1,6 @@ { "schema": "auths.semantic-freeze/1", - "freezeVersion": 439, + "freezeVersion": 440, "publicSurface": { "rustRoots": [ "auths", @@ -611,7 +611,7 @@ }, { "id": "auths.portable-abi-bindings", - "version": 131, + "version": 132, "classification": "frozen-meaning", "categories": [ "portable-abi", @@ -631,7 +631,7 @@ "core/crates/auths-model/src/lib.rs", "core/spec/v1/auths-proof.cddl" ], - "sha256": "23390af91a6008a5236a308116f729c9151706d9b40aa699ffaedcb520390c79" + "sha256": "94cdb488530e6ad2fb90249380d6d15dda6f6d386c777da2cf87dbf5bf1edec8" }, { "id": "auths.product.bounded-domains", @@ -849,7 +849,7 @@ }, { "id": "auths.product.operations", - "version": 5, + "version": 6, "classification": "frozen-meaning", "categories": [ "privacy-safe-events", @@ -867,7 +867,7 @@ "product/operations/v2", "product/runtime/auths-runtime/src/production.rs" ], - "sha256": "45c5d70fd3d9946b7be6e45b0cf39d1250749d2caa2d4bdfb3ed97d8078705a9" + "sha256": "627affbbb01bd1587c6333259e420c3d26a6ce19835e2e5fae19a3008bbef490" }, { "id": "auths.product.public-sdk-contract", @@ -1011,7 +1011,7 @@ }, { "id": "auths.release.public-surface", - "version": 439, + "version": 440, "classification": "release-metadata", "categories": [ "package-names", @@ -1104,7 +1104,7 @@ "xtask/src/release_launch.rs", "xtask/src/semantic_freeze.rs" ], - "sha256": "53a5f59b102b9e7edf35a28ff0238ae29a086f9c9d69d2cb1da38812eb0c6377" + "sha256": "73d36780d5709bba86f29af4bddf483068beb6f38a848e7e2d0a4875592b1693" } ] } From 0045219ed61ca5790b9fe1510bec212cda81d260 Mon Sep 17 00:00:00 2001 From: bordumb Date: Wed, 11 Nov 2026 00:16:00 +0900 Subject: [PATCH 2/5] fix(state): complete AP076 lifecycle and durable recovery ownership --- .../python/auths/_resource_lifecycle.py | 393 +++++++ bindings/python/python/auths/_workflow.py | 192 ++- .../python/python/auths/identity/__init__.py | 42 +- .../python/python/auths/identity/adapters.py | 18 +- bindings/python/python/auths/protocol.py | 46 +- .../python/tests/test_resource_lifecycle.py | 438 +++++++ bindings/python/tests/test_workflow.py | 25 +- bindings/typescript/api/public-api.txt | 2 +- .../typescript/docs/resource-lifecycle.md | 45 + bindings/typescript/src/identity.ts | 18 +- bindings/typescript/src/identity/adapters.ts | 63 +- .../typescript/src/internal/delegation.ts | 10 - .../src/internal/resource-lifecycle.ts | 329 ++++++ bindings/typescript/src/internal/signing.ts | 1 + bindings/typescript/src/protocol.ts | 42 +- bindings/typescript/src/workflow-client.ts | 3 +- bindings/typescript/src/workflow/contracts.ts | 6 + .../src/workflow/internal/orchestrator.ts | 188 +-- .../helpers/adapter-lifecycle-contract.mjs | 45 + .../helpers/resource-lifecycle-contract.mjs | 189 +++ .../integration/adapter-lifecycle.test.js | 5 + .../test/integration/workflow/attach.test.js | 21 + .../test/integration/workflow/client.test.js | 40 + .../package/packed-adapter-lifecycle.test.js | 14 + .../package/packed-resource-lifecycle.test.js | 13 + .../test/unit/resource-lifecycle.test.js | 4 + docs/plans/0076-implementation-status.md | 71 +- docs/plans/0076-payload-ownership.md | 33 + .../0011-local-resource-ownership.md | 69 ++ ...xplicit-state-ownership-and-concurrency.md | 2 +- .../0077-administrative-recovery-protocol.md | 247 ++++ formal/assurance-manifest-v1.toml | 118 +- .../qualification/aeneas/source-closure.json | 4 +- .../auths-operations-otel/src/exporter.rs | 13 +- .../auths-connections/src/credential.rs | 34 + .../auths-gateway/semantic-closure.json | 2 +- .../runtime/auths-gateway/src/admin_fault.rs | 26 + .../auths-gateway/src/bin/auths-gateway.rs | 1042 ++++++++++++++--- .../auths-gateway/src/candidate_runtime.rs | 116 +- .../runtime/auths-gateway/src/connection.rs | 145 ++- .../auths-gateway/src/credential_journal.rs | 339 +++++- .../src/effect_candidate_staging_tests.rs | 1 + .../src/effect_candidate_tests.rs | 22 + product/runtime/auths-gateway/src/engine.rs | 673 ++++++++++- .../runtime/auths-gateway/src/entry_tests.rs | 28 +- product/runtime/auths-gateway/src/lib.rs | 35 +- .../auths-gateway/src/qualification.rs | 18 + .../auths-gateway/src/semantic_closure.rs | 2 +- product/runtime/auths-gateway/src/store.rs | 437 +++++-- .../auths-gateway/src/store/acquisition.rs | 4 +- .../src/store/acquisition/candidate.rs | 205 +++- .../src/store/acquisition/recovery.rs | 97 +- .../src/store/mutation_phase_tests.rs | 97 ++ product/runtime/auths-gateway/src/submit.rs | 229 +++- .../auths-gateway/tests/candidate_cli.rs | 126 +- .../auths-gateway/tests/qualification_gate.rs | 352 +++++- release/semantic-freeze-versions.toml | 16 +- release/semantic-freeze.json | 30 +- 58 files changed, 5902 insertions(+), 923 deletions(-) create mode 100644 bindings/python/python/auths/_resource_lifecycle.py create mode 100644 bindings/python/tests/test_resource_lifecycle.py create mode 100644 bindings/typescript/docs/resource-lifecycle.md create mode 100644 bindings/typescript/src/internal/resource-lifecycle.ts create mode 100644 bindings/typescript/test/helpers/adapter-lifecycle-contract.mjs create mode 100644 bindings/typescript/test/helpers/resource-lifecycle-contract.mjs create mode 100644 bindings/typescript/test/integration/adapter-lifecycle.test.js create mode 100644 bindings/typescript/test/package/packed-adapter-lifecycle.test.js create mode 100644 bindings/typescript/test/package/packed-resource-lifecycle.test.js create mode 100644 bindings/typescript/test/unit/resource-lifecycle.test.js create mode 100644 docs/plans/0076-payload-ownership.md create mode 100644 docs/research/domains/abstraction-cases/0011-local-resource-ownership.md create mode 100644 docs/specs/0077-administrative-recovery-protocol.md create mode 100644 product/runtime/auths-gateway/src/admin_fault.rs create mode 100644 product/runtime/auths-gateway/src/store/mutation_phase_tests.rs diff --git a/bindings/python/python/auths/_resource_lifecycle.py b/bindings/python/python/auths/_resource_lifecycle.py new file mode 100644 index 000000000..76f592a1e --- /dev/null +++ b/bindings/python/python/auths/_resource_lifecycle.py @@ -0,0 +1,393 @@ +"""Owned async resource lifetimes; no verification, entry, or provider semantics.""" +from __future__ import annotations + +import asyncio +import math +from dataclasses import dataclass +from typing import Awaitable, Callable, Dict, Generic, Literal, Optional, Protocol, Set, TypeVar, Union, cast + +from ._product_errors import AuthsWorkflowError, CauseCategory + +T = TypeVar("T") +Retry = Literal["idempotent", "unsafe"] + + +class CleanupFailure(AuthsWorkflowError): + """The registry cleanup boundary with a bounded local completion reason.""" + def __init__(self, incomplete: bool = False) -> None: + self.cause_chain = ("cleanup-incomplete" if incomplete else "cleanup-failed",) + super().__init__("cleanup-failed", self.cause_chain[0], + causes=(CauseCategory.TIMEOUT if incomplete else CauseCategory.UNAVAILABLE,)) + + +def _disposed() -> AuthsWorkflowError: + return AuthsWorkflowError("disposed", "Auths resource is disposed or not open") + + +def _timeout(value: Optional[float]) -> Optional[float]: + if value is not None and (isinstance(value, bool) or not math.isfinite(value) or value <= 0): + raise ValueError("timeout must be finite and positive") + return value + + +def _future() -> asyncio.Future[None]: + result: asyncio.Future[None] = asyncio.get_running_loop().create_future() + result.add_done_callback(lambda value: None if value.cancelled() else value.exception()) + return result + + +class Timer(Protocol): + def cancel(self) -> None: ... + + +class LifecycleTiming(Protocol): + def now(self) -> float: ... + def schedule(self, callback: Callable[[], None], delay: float) -> Timer: ... + + +class LoopTiming: + def now(self) -> float: + return asyncio.get_running_loop().time() + + def schedule(self, callback: Callable[[], None], delay: float) -> Timer: + return asyncio.get_running_loop().call_later(delay, callback) + + +async def _wait(task: Awaitable[T], timeout: Optional[float], timing: LifecycleTiming) -> T: + # Shield belongs to the waiter, never the owned task. Cancellation and the + # explicit timer settle only this waiter's forwarding future. + shielded = asyncio.shield(task) + if timeout is None: + return await shielded + loop = asyncio.get_running_loop() + result: asyncio.Future[T] = loop.create_future() + deadline = timing.now() + timeout + timer: Optional[Timer] = None + def expired() -> None: + nonlocal timer + if result.done(): + return + remaining = deadline - timing.now() + if remaining > 0: + timer = timing.schedule(expired, remaining) + else: + result.set_exception(asyncio.TimeoutError()) + def settled(value: asyncio.Future[T]) -> None: + if result.done(): + return + if value.cancelled(): + result.cancel() + else: + error = value.exception() + if error is not None: + result.set_exception(error) + else: + result.set_result(value.result()) + shielded.add_done_callback(settled) + timer = timing.schedule(expired, timeout) + try: + return await result + finally: + if timer is not None: + timer.cancel() + shielded.remove_done_callback(settled) + if shielded.done() and not shielded.cancelled(): + shielded.exception() + shielded.cancel() + + +@dataclass(frozen=True) +class New: + pass + + +@dataclass(frozen=True) +class Open: + pass + + +@dataclass(frozen=True) +class Opening: + result: asyncio.Future[None] + + +@dataclass(frozen=True) +class NormalClose: + pass + + +@dataclass(frozen=True) +class OpenFailure: + error: BaseException + + +CloseReason = Union[NormalClose, OpenFailure] + + +@dataclass(frozen=True) +class Generation: + result: asyncio.Future[None] + deadline: Optional[float] + reason: CloseReason + + +@dataclass(frozen=True) +class Closing: + generation: Generation + + +@dataclass(frozen=True) +class ClosingOverdue: + generation: Generation + + +@dataclass(frozen=True) +class CleanupFailed: + failure: CleanupFailure + reason: CloseReason + + +@dataclass(frozen=True) +class Closed: + reason: CloseReason + + +State = Union[New, Opening, Open, Closing, ClosingOverdue, CleanupFailed, Closed] + + +@dataclass(frozen=True) +class Obligation: + run: Callable[[bool], Awaitable[None]] + retry: Retry + order: int + state: Literal["pending", "failed"] = "pending" + + +class ResourceLifecycle: + def __init__(self, *, opened: bool = False, timing: Optional[LifecycleTiming] = None) -> None: + self._timing = timing if timing is not None else LoopTiming() + self.state: State = Open() if opened else New() + self._active: Set[asyncio.Task[object]] = set() + self._obligations: Dict[int, tuple[object, Obligation]] = {} + self._invalidations: Set[asyncio.Future[None]] = set() + self._cleanup: Optional[asyncio.Task[None]] = None + + @property + def is_open(self) -> bool: + return isinstance(self.state, Open) + + @property + def is_closed(self) -> bool: + return isinstance(self.state, (Closing, ClosingOverdue, CleanupFailed, Closed)) + + def assert_open(self) -> None: + if not self.is_open: + raise _disposed() + + def own(self, resource: object, run: Callable[[bool], Awaitable[None]], *, retry: Retry = "unsafe", order: int = 0) -> None: + if isinstance(self.state, Closed): + raise _disposed() + self._obligations.setdefault(id(resource), (resource, Obligation(run, retry, order))) + + def transfer(self, resource: object) -> None: + """Synchronous handoff only, after the next owner registered the destructor.""" + self._obligations.pop(id(resource), None) + + async def dispose_owned(self, resource: object) -> None: + pair = self._obligations.get(id(resource)) + if pair is not None and pair[1].state == "pending": + await self._attempt(*pair) + + def _work(self, operation: Callable[[], Awaitable[T]]) -> asyncio.Task[T]: + async def owned() -> T: + return await operation() + task = asyncio.create_task(owned()) + retained = cast("asyncio.Task[object]", task) + self._active.add(retained) + def settled(value: asyncio.Task[T]) -> None: + self._active.discard(retained) + if not value.cancelled(): + value.exception() + task.add_done_callback(settled) + return task + + async def open(self, initialize: Callable[[], Awaitable[None]], *, timeout: Optional[float] = None, + opened: Optional[Callable[[], None]] = None) -> None: + timeout = _timeout(timeout) + if isinstance(self.state, Open): + return + if isinstance(self.state, Opening): + await _wait(self.state.result, timeout, self._timing) + return + if not isinstance(self.state, New): + raise _disposed() + result = _future() + opening = Opening(result) + self.state = opening + async def start() -> None: + try: + await initialize() + if self.state is opening: + self.state = Open() + if opened is not None: + opened() + if not result.done(): + if self.is_open: + result.set_result(None) + else: + result.set_exception(_disposed()) + except BaseException as error: + if not result.done(): + result.set_exception(error) + if self.state is opening or self.is_open: + self._start_close(None, False, OpenFailure(error)) + self._work(start) + await _wait(result, timeout, self._timing) + + async def run(self, operation: Callable[[], Awaitable[T]], *, timeout: Optional[float] = None) -> T: + timeout = _timeout(timeout) + self.assert_open() + return await _wait(self._work(operation), timeout, self._timing) + + async def publish(self, create: Callable[[], Awaitable[T]], destroy: Callable[[T, bool], Awaitable[None]], + *, timeout: Optional[float] = None, retry: Retry = "unsafe") -> T: + timeout = _timeout(timeout) + self.assert_open() + invalidated = _future() + self._invalidations.add(invalidated) + publication: Literal["waiting", "published", "abandoned"] = "waiting" + deadline = None if timeout is None else self._timing.now() + timeout + async def acquire() -> T: + value = await create() + self.own(value, lambda again: destroy(value, again), retry=retry) + return value + created = self._work(acquire) + # Keep a separate ownership token until either publication or late cleanup. + released = _future() + async def hold() -> None: + await released + self._work(hold) + async def select() -> T: + done, _ = await asyncio.wait((created, invalidated), return_when=asyncio.FIRST_COMPLETED) + if invalidated in done: + invalidated.result() + raise _disposed() + return created.result() + selection = asyncio.create_task(select()) + selection.add_done_callback(lambda value: None if value.cancelled() else value.exception()) + try: + value = await _wait(selection, timeout, self._timing) + if not self.is_open: + raise _disposed() + if deadline is not None and self._timing.now() >= deadline: + raise asyncio.TimeoutError() + publication = "published" + return value + finally: + if publication != "published": + publication = "abandoned" + self._invalidations.discard(invalidated) + async def finish() -> None: + try: + value = await asyncio.shield(created) + if publication != "published": + pair = self._obligations.get(id(value)) + if pair is not None: + await self._attempt(*pair) + except BaseException: + pass + finally: + released.set_result(None) + # Cleanup belongs to the owner; repeated caller cancellation cannot cancel it. + self._work(finish) + + async def close(self, *, timeout: Optional[float] = None) -> None: + timeout = _timeout(timeout) + state = self.state + if isinstance(state, Closed): + return + if isinstance(state, CleanupFailed): + raise state.failure + if isinstance(state, ClosingOverdue): + raise CleanupFailure(True) + if isinstance(state, Closing): + await _wait(state.generation.result, timeout, self._timing) + return + generation = self._start_close(timeout, False) + await _wait(generation.result, None, self._timing) + + async def retry_cleanup(self, *, timeout: Optional[float] = None) -> None: + timeout = _timeout(timeout) + state = self.state + if isinstance(state, (Closed, Closing, ClosingOverdue)): + await self.close(timeout=timeout) + elif isinstance(state, CleanupFailed): + if not any(value.retry == "idempotent" for _, value in self._obligations.values()): + raise state.failure + await _wait(self._start_close(timeout, True, state.reason).result, None, self._timing) + else: + raise _disposed() + + def _start_close(self, timeout: Optional[float], retry: bool, reason: CloseReason = NormalClose()) -> Generation: + if isinstance(self.state, Opening) and not self.state.result.done(): + self.state.result.set_exception(_disposed()) + for pending in self._invalidations: + if not pending.done(): + pending.set_exception(_disposed()) + generation = Generation(_future(), None if timeout is None else self._timing.now() + timeout, reason) + self.state = Closing(generation) + timer: Optional[Timer] = None + def expired() -> None: + nonlocal timer + if not isinstance(self.state, Closing) or self.state.generation is not generation: + return + if generation.deadline is not None and self._timing.now() < generation.deadline: + timer = self._timing.schedule(expired, generation.deadline - self._timing.now()) + return + if isinstance(self.state, Closing) and self.state.generation is generation: + self.state = ClosingOverdue(generation) + if not generation.result.done(): + generation.result.set_exception(CleanupFailure(True)) + timer = None if timeout is None else self._timing.schedule(expired, timeout) + async def cleanup() -> None: + try: + # No new admissions after Closing. Acquisitions register late resources + # before releasing their tokens, so every obligation is visible here. + while self._active: + await asyncio.gather(*tuple(self._active), return_exceptions=True) + for resource, obligation in sorted(tuple(self._obligations.values()), key=lambda pair: pair[1].order): + if obligation.state == "pending" or (retry and obligation.retry == "idempotent"): + await self._attempt(resource, obligation, retry) + if self._obligations: + failure = CleanupFailure() + self.state = CleanupFailed(failure, generation.reason) + if not generation.result.done(): + generation.result.set_exception(failure) + else: + self.state = Closed(reason) + if not generation.result.done(): + generation.result.set_result(None) + finally: + if timer is not None: + timer.cancel() + self._cleanup = asyncio.create_task(cleanup()) + self._cleanup.add_done_callback(lambda value: None if value.cancelled() else value.exception()) + return generation + + async def _attempt(self, resource: object, obligation: Obligation, retry: bool = False) -> None: + try: + await obligation.run(retry) + self._obligations.pop(id(resource), None) + except BaseException: + self._obligations[id(resource)] = (resource, Obligation(obligation.run, obligation.retry, obligation.order, "failed")) + + +def own_adapter(owner: ResourceLifecycle, adapter: object, *, order: int = 0) -> None: + """Optional retry declaration is a capability, not a requirement on borrowed adapters.""" + close = getattr(adapter, "aclose", None) + if not callable(close): + raise TypeError("owned adapter must implement aclose") + retry_operation = getattr(adapter, "retry_cleanup", None) + async def cleanup(retry: bool) -> None: + await (retry_operation() if retry and retry_operation is not None else close()) + owner.own(adapter, cleanup, retry="idempotent" if getattr(adapter, "cleanup_retry", None) == "idempotent" else "unsafe", order=order) diff --git a/bindings/python/python/auths/_workflow.py b/bindings/python/python/auths/_workflow.py index c601c67d9..0a849fb81 100644 --- a/bindings/python/python/auths/_workflow.py +++ b/bindings/python/python/auths/_workflow.py @@ -44,6 +44,7 @@ ProviderOperationError, ) from ._observability import AuthsEvent, Telemetry +from ._resource_lifecycle import ResourceLifecycle, own_adapter SignerLifecycle = Literal["durable", "ephemeral"] SigningObjectKind = Literal["grant", "action", "principal-status", "grant-status"] @@ -659,6 +660,7 @@ async def execute( required_approval: ApprovalPolicyReference, expires_at: int, display: Sequence[ReviewField], + cancelled: Callable[[], bool] = lambda: False, ) -> _SignedTransaction: if self._consumed: raise AuthsWorkflowError( @@ -691,6 +693,8 @@ async def execute( "invalid-provider", "native authoring rejected the signing transaction" ) from None try: + if cancelled(): + raise AuthsWorkflowError("disposed", "delegation caller cancelled") approval_response = await _call_approval( approval.provider, ApprovalRequest( @@ -727,6 +731,8 @@ async def execute( "approval-rejected", "approval provider rejected the signing transaction", ) + if cancelled(): + raise AuthsWorkflowError("disposed", "delegation caller cancelled") signing_response = await _call_signer( signer, SigningRequest( @@ -793,8 +799,13 @@ def __init__( self._telemetry = telemetry self._identity: Optional[AgentIdentity] = None self._agents: Set[AttachedAgent] = set() - self._open = False - self._closed = False + self._lifecycle = ResourceLifecycle() + own_adapter(self._lifecycle, signer, order=10) + async def release(_: bool) -> None: + self._identity = None + self._agents.clear() + self._emit("auths.client.close", "client", "cleanup", "succeeded") + self._lifecycle.own(self, release, retry="idempotent", order=20) @property def identity(self) -> AgentIdentity: @@ -816,41 +827,39 @@ def trusted_authority(self) -> TrustedAuthoritySnapshot: @property def closed(self) -> bool: - return self._closed + return self._lifecycle.is_closed - async def open(self) -> AuthsClient: - if self._closed: - raise AuthsWorkflowError("disposed", "Auths client is disposed") - if self._open: - return self + async def open(self, *, timeout: Optional[float] = None) -> AuthsClient: + await self._lifecycle.open(self._initialize, timeout=timeout, + opened=lambda: self._emit("auths.client.open", "client", "open", "succeeded")) + return self + + async def _initialize(self) -> None: try: - try: - validate_trusted_authority( - self._configured_authority.context, - self._configured_authority.root_principal, - ) - except (TypeError, ValueError): - raise AuthsWorkflowError( - "invalid-trusted-authority", - "trusted authority does not bind the configured root and verifier", - ) from None - descriptor = await _call_public_identity(self._signer, "signer") - self._identity = AgentIdentity( - principal=descriptor, - signer_kind=_bounded_identifier(self._signer.kind, "signer kind"), - signer_lifecycle=_signer_lifecycle(self._signer.lifecycle), + validate_trusted_authority( + self._configured_authority.context, + self._configured_authority.root_principal, ) - self._open = True - self._emit("auths.client.open", "client", "open", "succeeded") - return self - except asyncio.CancelledError: - await self._close_after_failed_open() - raise - except Exception: - await self._close_after_failed_open() - raise + except (TypeError, ValueError): + raise AuthsWorkflowError( + "invalid-trusted-authority", + "trusted authority does not bind the configured root and verifier", + ) from None + descriptor = await _call_public_identity(self._signer, "signer") + self._identity = AgentIdentity( + principal=descriptor, + signer_kind=_bounded_identifier(self._signer.kind, "signer kind"), + signer_lifecycle=_signer_lifecycle(self._signer.lifecycle), + ) - async def attach_agent( + async def attach_agent(self, *, name: str, profile: Profile, authority: SignedGrantInput, + approval: ApprovalConfiguration, timeout: Optional[float] = None) -> AttachedAgent: + return await self._lifecycle.publish( + lambda: self._attach_agent(name=name, profile=profile, authority=authority, approval=approval), + lambda agent, retry: agent.retry_cleanup() if retry else agent.aclose(), + timeout=timeout, retry="idempotent") + + async def _attach_agent( self, *, name: str, @@ -870,6 +879,7 @@ async def attach_agent( "approval-policy-mismatch", "attach approval policy does not match the trusted authority", ) + identity = self.identity material = await _load_signed_grant( authority, SignedGrantLoadRequest( @@ -879,7 +889,7 @@ async def attach_agent( else "direct" ), authority_id=self._configured_authority.authority_id, - subject=self.identity.principal.principal, + subject=identity.principal.principal, profile=profile, ), ) @@ -891,7 +901,7 @@ async def attach_agent( bound = validate_root_authority( material.signed_grant, self._configured_authority.root_principal, - self.identity.principal, + identity.principal, profile.id, profile.version, ) @@ -903,7 +913,7 @@ async def attach_agent( agent = AttachedAgent._create( client=self, name=name, - identity=self.identity, + identity=identity, profile=profile, authority=bound, approval=approval, @@ -922,24 +932,11 @@ async def attach_agent( ) return agent - async def aclose(self) -> None: - if self._closed: - return - self._closed = True - self._open = False - failed = False - for agent in tuple(self._agents): - if not await agent._close(suppress_errors=True): - failed = True - self._agents.clear() - if not await _close_signer(self._signer): - failed = True - self._identity = None - if failed: - raise AuthsWorkflowError( - "cleanup-failed", "one or more signer providers failed during cleanup" - ) - self._emit("auths.client.close", "client", "cleanup", "succeeded") + async def aclose(self, *, timeout: Optional[float] = None) -> None: + await self._lifecycle.close(timeout=timeout) + + async def retry_cleanup(self, *, timeout: Optional[float] = None) -> None: + await self._lifecycle.retry_cleanup(timeout=timeout) def _emit( self, @@ -965,15 +962,8 @@ def _emit( except Exception: return - async def _close_after_failed_open(self) -> None: - self._closed = True - self._open = False - self._identity = None - await _close_signer(self._signer) - def _assert_open(self) -> None: - if self._closed or not self._open: - raise AuthsWorkflowError("disposed", "Auths client is not open") + self._lifecycle.assert_open() async def __aenter__(self) -> AuthsClient: return await self.open() @@ -1024,7 +1014,14 @@ def __init__( self._owns_signer = owns_signer self._grant_chain: Tuple[SignedGrantMaterial, ...] = grant_chain self._delegation = delegation - self._closed = False + self._lifecycle = ResourceLifecycle(opened=True) + client._lifecycle.own(self, lambda retry: self.retry_cleanup() if retry else self.aclose(), retry="idempotent") + if owns_signer: + own_adapter(self._lifecycle, signer, order=10) + async def release(_: bool) -> None: + self._grant_chain = () + self._client._agents.discard(self) + self._lifecycle.own(self, release, retry="idempotent", order=20) @classmethod def _create( @@ -1082,14 +1079,36 @@ def delegation(self) -> Optional[DelegationReview]: @property def closed(self) -> bool: - return self._closed + return self._lifecycle.is_closed - async def delegate( + async def delegate(self, *, name: str, authority: DelegatedAuthority, signer: Signer, + timeout: Optional[float] = None) -> AttachedAgent: + self._assert_active() + cancelled = asyncio.Event() + async def acquire() -> AttachedAgent: + own_adapter(self._client._lifecycle, signer, order=10) + try: + child = await self._lifecycle.run(lambda: self._delegate( + name=name, authority=authority, signer=signer, cancelled=cancelled)) + self._client._lifecycle.transfer(signer) + return child + finally: + await self._client._lifecycle.dispose_owned(signer) + try: + return await self._client._lifecycle.publish(acquire, + lambda agent, retry: agent.retry_cleanup() if retry else agent.aclose(), + timeout=timeout, retry="idempotent") + except BaseException: + cancelled.set() + raise + + async def _delegate( self, *, name: str, authority: DelegatedAuthority, signer: Signer, + cancelled: asyncio.Event, ) -> AttachedAgent: self._assert_active() name = _agent_name(name) @@ -1097,9 +1116,10 @@ async def delegate( raise TypeError("authority must be a DelegatedAuthority") _validate_signer(signer) child_identity: Optional[AgentIdentity] = None - transferred = False try: descriptor = await _call_public_identity(signer, "child signer") + if cancelled.is_set(): + raise AuthsWorkflowError("disposed", "delegation caller cancelled") child_identity = AgentIdentity( principal=descriptor, signer_kind=_bounded_identifier(signer.kind, "signer kind"), @@ -1149,6 +1169,7 @@ async def delegate( required_approval=self._client._configured_authority.required_approval, expires_at=expires_at, display=_delegation_display(name, self, child_identity, review), + cancelled=cancelled.is_set, ) try: bound = bind_delegated_authority( @@ -1178,36 +1199,19 @@ async def delegate( delegation=review, ) self._client._agents.add(child) - transferred = True + self._client._lifecycle.transfer(signer) return child except asyncio.CancelledError: raise - finally: - if not transferred: - await _close_signer(signer) - async def aclose(self) -> None: - if not await self._close(suppress_errors=False): - raise AuthsWorkflowError( - "cleanup-failed", "child signer provider cleanup failed" - ) + async def aclose(self, *, timeout: Optional[float] = None) -> None: + await self._lifecycle.close(timeout=timeout) - async def _close(self, *, suppress_errors: bool) -> bool: - if self._closed: - return True - self._closed = True - self._client._agents.discard(self) - successful = True - if self._owns_signer: - successful = await _close_signer(self._signer) - self._grant_chain = () - if not successful and not suppress_errors: - return False - return successful + async def retry_cleanup(self, *, timeout: Optional[float] = None) -> None: + await self._lifecycle.retry_cleanup(timeout=timeout) def _assert_active(self) -> None: - if self._closed: - raise AuthsWorkflowError("disposed", "attached agent is disposed") + self._lifecycle.assert_open() self._client._assert_open() async def __aenter__(self) -> AttachedAgent: @@ -1392,16 +1396,6 @@ async def _load_signed_grant( return material -async def _close_signer(signer: Signer) -> bool: - try: - operation = signer.aclose() - await asyncio.shield(operation) - return True - except asyncio.CancelledError: - raise - except Exception: - return False - def _validate_signer(signer: Signer) -> None: if ( diff --git a/bindings/python/python/auths/identity/__init__.py b/bindings/python/python/auths/identity/__init__.py index 8c3fa8031..8745b90d2 100644 --- a/bindings/python/python/auths/identity/__init__.py +++ b/bindings/python/python/auths/identity/__init__.py @@ -15,6 +15,7 @@ validate_raw_key_identity_v2 as _validate_raw_key, verify_ed25519_preimage_v1 as _verify_ed25519, ) +from .._resource_lifecycle import ResourceLifecycle as _ResourceLifecycle, own_adapter as _own_adapter from .._public import ErrorInfo as _ErrorInfo, error_info as _error_info _IdentityT = _TypeVar("_IdentityT") @@ -129,34 +130,35 @@ def __init__(self, token: object, methods: _Tuple[_Any, ...], authenticators: _T if len(self._methods) != len(methods) or len(self._authenticators) != len(authenticators): raise ValueError("duplicate identity adapter") self._owns = owns_adapters - self._state = "new" + self._lifecycle = _ResourceLifecycle() + if owns_adapters: + for value in (*self._methods.values(), *self._authenticators.values()): + _own_adapter(self._lifecycle, value) - async def __aenter__(self) -> "IdentityClient": - if self._state != "new": - raise RuntimeError("auths client is not open") - self._state = "open" + async def open(self, *, timeout: _Optional[float] = None) -> "IdentityClient": + async def initialize() -> None: + return None + await self._lifecycle.open(initialize, timeout=timeout) return self + async def __aenter__(self) -> "IdentityClient": + return await self.open() + async def __aexit__(self, *exc: object) -> None: await self.aclose() - async def aclose(self) -> None: - if self._state == "closed": - return - self._state = "closing" - if self._owns: - for value in (*self._methods.values(), *self._authenticators.values()): - close = getattr(value, "aclose", None) - if close is not None: - await close() - self._state = "closed" + async def aclose(self, *, timeout: _Optional[float] = None) -> None: + await self._lifecycle.close(timeout=timeout) + + async def retry_cleanup(self, *, timeout: _Optional[float] = None) -> None: + await self._lifecycle.retry_cleanup(timeout=timeout) def _open(self) -> None: - if self._state != "open": - raise RuntimeError("auths client is not open") + self._lifecycle.assert_open() def decode(self, packet: bytes, /) -> IdentityResult[DecodedIdentity]: from .adapters import DecodedIdentityRecord, VerificationMaterial, VerificationRelationship + self._open() try: raw = _decode_descriptor(bytes(packet)) relationships = tuple( @@ -185,7 +187,7 @@ async def resolve(self, identity: DecodedIdentity, /, *, timeout: _timedelta = _ now = int(_time.time()) record = ResolvedIdentityRecord(identity._record.method_id, identity._record.identity_id, identity._record.method_material, identity._record.relationships, ResolutionEvidence("packet", now, now + 300, ("self-contained",))) else: - result = await _asyncio.wait_for(method.resolve(identity._record), _seconds(timeout)) + result = await _asyncio.wait_for(self._lifecycle.run(lambda: method.resolve(identity._record)), _seconds(timeout)) if not isinstance(result, AdapterOk): return _adapter_result(result, "resolve") successful = _cast(AdapterOk[ResolvedIdentityRecord], result) @@ -212,7 +214,7 @@ async def validate(self, identity: ResolvedIdentity, /, *, timeout: _timedelta = for material in relationship.verification_material: _validate_raw_key(identity.method_id, identity.identity_id, relationship.suite_id, material.bytes) else: - result = await _asyncio.wait_for(method.validate(identity._record), _seconds(timeout)) + result = await _asyncio.wait_for(self._lifecycle.run(lambda: method.validate(identity._record)), _seconds(timeout)) if not isinstance(result, AdapterOk): return _adapter_result(result, "validate") return IdentityOk("ok", ValidatedIdentity(_TOKEN, identity._packet, identity._record)) @@ -235,7 +237,7 @@ async def authenticate(self, identity: ValidatedIdentity, /, *, relationship_id: return IdentityRejected("rejected", _error_info("identity.method-unsupported")) _verify_ed25519(relationship.verification_material[0].bytes, preimage, bytes(signature)) else: - result = await _asyncio.wait_for(authenticator.verify(relationship=relationship, preimage=preimage, signature=bytes(signature)), _seconds(timeout)) + result = await _asyncio.wait_for(self._lifecycle.run(lambda: authenticator.verify(relationship=relationship, preimage=preimage, signature=bytes(signature))), _seconds(timeout)) if not isinstance(result, AdapterOk): return _adapter_result(result, "authenticate") return IdentityOk("ok", AuthenticatedIdentityMessage(_TOKEN, identity, relationship_id, bytes(message))) diff --git a/bindings/python/python/auths/identity/adapters.py b/bindings/python/python/auths/identity/adapters.py index ec003b09e..1e0ef77b2 100644 --- a/bindings/python/python/auths/identity/adapters.py +++ b/bindings/python/python/auths/identity/adapters.py @@ -5,6 +5,8 @@ from typing import Sequence as _Sequence, Tuple as _Tuple, TypeVar as _TypeVar, Union as _Union from . import IdentityClient, _create_client +from .._resource_lifecycle import ResourceLifecycle as _ResourceLifecycle, own_adapter as _own_adapter +from typing import Optional as _Optional @_dataclass(frozen=True) @@ -94,6 +96,7 @@ async def aclose(self) -> None: ... class _ResolverMethod: + cleanup_retry = "idempotent" def __init__(self, method_id: str, version: int, resolver: IdentityResolver, maximum_bytes: int, owns: bool) -> None: if not method_id or not 1 <= len(method_id.encode("utf-8")) <= 128 or version < 1: raise ValueError("invalid identity method descriptor") @@ -103,17 +106,22 @@ def __init__(self, method_id: str, version: int, resolver: IdentityResolver, max self.version = version self._resolver = resolver self._maximum = maximum_bytes - self._owns = owns + self._lifecycle = _ResourceLifecycle(opened=True) + if owns: + _own_adapter(self._lifecycle, resolver) async def resolve(self, descriptor: DecodedIdentityRecord) -> AdapterResult[ResolvedIdentityRecord]: - return await self._resolver.resolve(descriptor, maximum_bytes=self._maximum) + return await self._lifecycle.run(lambda: self._resolver.resolve(descriptor, maximum_bytes=self._maximum)) async def validate(self, record: ResolvedIdentityRecord) -> AdapterResult[None]: + self._lifecycle.assert_open() return AdapterOk("ok", None) - async def aclose(self) -> None: - if self._owns: - await self._resolver.aclose() + async def aclose(self, *, timeout: _Optional[float] = None) -> None: + await self._lifecycle.close(timeout=timeout) + + async def retry_cleanup(self, *, timeout: _Optional[float] = None) -> None: + await self._lifecycle.retry_cleanup(timeout=timeout) def create_client(*, methods: _Sequence[IdentityMethod], authenticators: _Sequence[MessageAuthenticator], owns_adapters: bool = False) -> IdentityClient: diff --git a/bindings/python/python/auths/protocol.py b/bindings/python/python/auths/protocol.py index 78653b41c..e9c45e96a 100644 --- a/bindings/python/python/auths/protocol.py +++ b/bindings/python/python/auths/protocol.py @@ -18,6 +18,9 @@ cast as _cast, ) +from ._resource_lifecycle import ResourceLifecycle as _ResourceLifecycle, own_adapter as _own_adapter +from typing import Optional as _Optional + from ._public import ( auths_error as _auths_error, error_info as _error_info, @@ -159,12 +162,18 @@ async def aclose(self) -> None: ... class _HttpTransport: + cleanup_retry = "idempotent" contract: _Literal["bounded-byte-transport/2"] = "bounded-byte-transport/2" def __init__(self, token: str) -> None: self._token = token + self._lifecycle = _ResourceLifecycle(opened=True) + async def release(_: bool) -> None: + self._token = "" + self._lifecycle.own(self, release, retry="idempotent") async def send(self, request: TransportRequest) -> TransportResponse: + self._lifecycle.assert_open() remaining = max( 0.001, (request.deadline_unix_ms - int(_time.time() * 1000)) / 1000 ) @@ -193,10 +202,10 @@ def send() -> TransportResponse: response.status, response.headers.get_content_type(), body ) - return await _asyncio.to_thread(send) + return await self._lifecycle.run(lambda: _asyncio.to_thread(send)) - async def aclose(self) -> None: - return None + async def aclose(self, *, timeout: _Optional[float] = None) -> None: + await self._lifecycle.close(timeout=timeout) class _NoRedirect(_urlrequest.HTTPRedirectHandler): @@ -245,27 +254,30 @@ def __init__( seconds, maximum, ) - self._state = "new" + self._lifecycle = _ResourceLifecycle() + if self._owns: + _own_adapter(self._lifecycle, self._transport) - async def __aenter__(self) -> "RemoteVerifier": - if self._state != "new": - raise RuntimeError("auths client is not open") - self._state = "open" + async def open(self, *, timeout: _Optional[float] = None) -> "RemoteVerifier": + async def initialize() -> None: + return None + await self._lifecycle.open(initialize, timeout=timeout) return self + async def __aenter__(self) -> "RemoteVerifier": + return await self.open() + async def __aexit__(self, *exc: object) -> None: await self.aclose() - async def aclose(self) -> None: - if self._state == "closed": - return - self._state = "closed" - if self._owns: - await self._transport.aclose() + async def aclose(self, *, timeout: _Optional[float] = None) -> None: + await self._lifecycle.close(timeout=timeout) + + async def retry_cleanup(self, *, timeout: _Optional[float] = None) -> None: + await self._lifecycle.retry_cleanup(timeout=timeout) async def verify(self, input: VerificationInput, /) -> VerificationResult: - if self._state != "open": - raise RuntimeError("auths client is not open") + self._lifecycle.assert_open() correlation = f"auths-{_time.time_ns():x}" digest = bytes.fromhex(_runtime_info().error_registry_digest) body = _encode( @@ -289,7 +301,7 @@ async def verify(self, input: VerificationInput, /) -> VerificationResult: ) try: response = await _asyncio.wait_for( - self._transport.send(request), self._timeout + self._lifecycle.run(lambda: self._transport.send(request)), self._timeout ) except _asyncio.TimeoutError: raise _auths_error("remote.timeout") diff --git a/bindings/python/tests/test_resource_lifecycle.py b/bindings/python/tests/test_resource_lifecycle.py new file mode 100644 index 000000000..816e40f0a --- /dev/null +++ b/bindings/python/tests/test_resource_lifecycle.py @@ -0,0 +1,438 @@ +"""AP076 C1-C7 schedules also run against the installed wheel in binding CI.""" +from __future__ import annotations + +import asyncio + +import pytest + +from auths._resource_lifecycle import ( + ResourceLifecycle, Open, Closing, ClosingOverdue, Closed, CleanupFailed, CleanupFailure, +) +from auths._product_errors import AuthsWorkflowError + + +class ManualTimer: + def __init__(self, clock, callback, due): + self.clock, self.callback, self.due = clock, callback, due + def cancel(self): + if self in self.clock.jobs: + self.clock.jobs.remove(self) + + +class ManualTiming: + def __init__(self): + self.value = 100.0 + self.jobs = [] + def now(self): + return self.value + def schedule(self, callback, delay): + timer = ManualTimer(self, callback, self.value + delay) + self.jobs.append(timer) + return timer + def advance(self, delta): + self.value += delta + for timer in tuple(self.jobs): + if timer.due <= self.value: + timer.cancel() + timer.callback() + + +async def scheduled_turn(): + arrived = asyncio.Event() + asyncio.get_running_loop().call_soon(arrived.set) + await arrived.wait() + + +async def no_init() -> None: + return None + + +def test_shared_open_waiter_cancellation_and_no_reopening() -> None: + async def scenario() -> None: + owner = ResourceLifecycle() + entered, gate = asyncio.Event(), asyncio.Event() + calls = 0 + async def initialize() -> None: + nonlocal calls + calls += 1 + entered.set() + await gate.wait() + first = asyncio.create_task(owner.open(initialize)) + await entered.wait() + second = asyncio.create_task(owner.open(initialize)) + first.cancel() + with pytest.raises(asyncio.CancelledError): + await first + gate.set() + await second + assert isinstance(owner.state, Open) and calls == 1 + await owner.close() + with pytest.raises(AuthsWorkflowError): + await owner.open(initialize) + asyncio.run(scenario()) + + +def test_close_invalidates_opening_and_retains_late_acquisition() -> None: + async def scenario() -> None: + owner = ResourceLifecycle() + entered, gate = asyncio.Event(), asyncio.Event() + calls = 0 + async def destroy(_: bool) -> None: + nonlocal calls + calls += 1 + async def initialize() -> None: + entered.set() + await gate.wait() + owner.own(object(), destroy) + opening = asyncio.create_task(owner.open(initialize)) + await entered.wait() + closing = asyncio.create_task(owner.close()) + with pytest.raises(AuthsWorkflowError): + await opening + assert isinstance(owner.state, Closing) and calls == 0 + gate.set() + await closing + assert isinstance(owner.state, Closed) and calls == 1 + asyncio.run(scenario()) + + +def test_shared_close_does_not_destroy_active_resources_or_cancel_other_waiters() -> None: + async def scenario() -> None: + owner = ResourceLifecycle(opened=True) + entered, gate, destroyed = asyncio.Event(), asyncio.Event(), asyncio.Event() + calls = 0 + async def operation() -> str: + entered.set() + await gate.wait() + return "recorded-result" + async def destroy(_: bool) -> None: + nonlocal calls + calls += 1 + destroyed.set() + owner.own(object(), destroy) + active = asyncio.create_task(owner.run(operation)) + await entered.wait() + first = asyncio.create_task(owner.close()) + second = asyncio.create_task(owner.close()) + # The active gate keeps both close waiters pending; cancellation is local. + first.cancel() + with pytest.raises(asyncio.CancelledError): + await first + assert calls == 0 + gate.set() + assert await active == "recorded-result" + await second + await destroyed.wait() + await owner.close() + assert calls == 1 + asyncio.run(scenario()) + + +def test_open_failure_preserves_original_and_attempts_independent_cleanup() -> None: + async def scenario() -> None: + owner = ResourceLifecycle() + entered, gate = asyncio.Event(), asyncio.Event() + calls = [] + original = ValueError("opening failure") + async def failed(_: bool) -> None: + entered.set() + await gate.wait() + calls.append("failed") + raise ValueError("private provider data") + async def successful(_: bool) -> None: + calls.append("success") + async def initialize() -> None: + owner.own(object(), failed) + owner.own(object(), successful) + raise original + with pytest.raises(ValueError) as raised: + await owner.open(initialize) + assert raised.value is original + await entered.wait() + closing = asyncio.create_task(owner.close()) + gate.set() + with pytest.raises(CleanupFailure): + await closing + assert calls == ["failed", "success"] and isinstance(owner.state, CleanupFailed) + with pytest.raises(AuthsWorkflowError): + await owner.open(no_init) + asyncio.run(scenario()) + + +def test_explicit_retry_shares_generation_and_skips_successful_and_unsafe_obligations() -> None: + async def scenario() -> None: + owner = ResourceLifecycle(opened=True) + entered, gate = asyncio.Event(), asyncio.Event() + counts = [0, 0, 0] + async def safe(retry: bool) -> None: + counts[0] += 1 + if not retry: + raise ValueError() + entered.set() + await gate.wait() + async def unsafe(_: bool) -> None: + counts[1] += 1 + raise ValueError() + async def success(_: bool) -> None: + counts[2] += 1 + owner.own(object(), safe, retry="idempotent") + owner.own(object(), unsafe) + owner.own(object(), success) + for _ in range(2): + with pytest.raises(CleanupFailure): + await owner.close() + assert counts == [1, 1, 1] + retry = asyncio.create_task(owner.retry_cleanup()) + await entered.wait() + ordinary = asyncio.create_task(owner.close()) + other = asyncio.create_task(owner.retry_cleanup()) + gate.set() + outcomes = await asyncio.gather(retry, ordinary, other, return_exceptions=True) + assert all(isinstance(value, CleanupFailure) for value in outcomes) + assert counts == [2, 1, 1] + asyncio.run(scenario()) + + +def test_generation_deadline_retains_unfinished_cleanup_and_late_success() -> None: + async def scenario() -> None: + clock = ManualTiming() + owner = ResourceLifecycle(opened=True, timing=clock) + entered, gate = asyncio.Event(), asyncio.Event() + async def destroy(_: bool) -> None: + entered.set() + await gate.wait() + owner.own(object(), destroy) + first = asyncio.create_task(owner.close(timeout=20)) + await entered.wait() + short = asyncio.create_task(owner.close(timeout=5)) + second = asyncio.create_task(owner.close()) + await scheduled_turn() + clock.advance(5) + with pytest.raises(asyncio.TimeoutError): + await short + assert isinstance(owner.state, Closing) + clock.advance(15) + results = await asyncio.gather(first, second, return_exceptions=True) + assert all(isinstance(value, CleanupFailure) and value.cause_chain == ("cleanup-incomplete",) for value in results) + assert isinstance(owner.state, ClosingOverdue) + for operation in (owner.close, owner.retry_cleanup): + with pytest.raises(CleanupFailure): + await operation() + gate.set() + assert owner._cleanup is not None + await owner._cleanup + await owner.close() + assert isinstance(owner.state, Closed) and not clock.jobs + asyncio.run(scenario()) + + +@pytest.mark.parametrize("event", ["close", "cancel", "publish-first"]) +def test_attachment_publication_ownership(event: str) -> None: + async def scenario() -> None: + owner = ResourceLifecycle(opened=True) + entered, gate, destroyed = asyncio.Event(), asyncio.Event(), asyncio.Event() + child = object() + calls = 0 + async def create() -> object: + entered.set() + await gate.wait() + return child + async def destroy(value: object, _: bool) -> None: + nonlocal calls + assert value is child + calls += 1 + destroyed.set() + attachment = asyncio.create_task(owner.publish(create, destroy)) + await entered.wait() + if event == "publish-first": + gate.set() + assert await attachment is child + await owner.close() + else: + closing = None + if event == "cancel": + attachment.cancel() + else: + closing = asyncio.create_task(owner.close()) + with pytest.raises((asyncio.CancelledError, AuthsWorkflowError)): + await attachment + assert calls == 0 + gate.set() + await destroyed.wait() + if closing is not None: + await closing + else: + await owner.close() + assert calls == 1 and isinstance(owner.state, Closed) + asyncio.run(scenario()) + + +def test_invalid_timeouts_do_not_begin_lifecycle_work() -> None: + async def scenario() -> None: + owner = ResourceLifecycle() + for value in (0, -1, float("inf"), float("nan")): + with pytest.raises(ValueError): + await owner.open(no_init, timeout=value) + with pytest.raises(ValueError): + await owner.close(timeout=value) + await owner.close() + asyncio.run(scenario()) + + +@pytest.mark.parametrize("kind", ["identity", "remote"]) +@pytest.mark.parametrize("owned", [True, False]) +def test_public_adapter_cleanup_ownership_and_safe_retry(kind: str, owned: bool) -> None: + from auths.identity.adapters import create_client + from auths.protocol import remote_verifier_from_transport + + class Adapter: + method_id = "test-method" + suite_id = "test-suite" + version = 1 + contract = "bounded-byte-transport/2" + cleanup_retry = "idempotent" + def __init__(self, fails: bool) -> None: + self.calls = 0 + self.fails = fails + async def aclose(self) -> None: + self.calls += 1 + if self.fails and self.calls == 1: + raise ValueError("private provider failure") + + async def scenario() -> None: + first, second = Adapter(True), Adapter(False) + if kind == "identity": + client = create_client(methods=[first], authenticators=[second], owns_adapters=owned) + else: + client = remote_verifier_from_transport("https://verification.auths.example", first, owns_transport=owned) + await client.open() + if owned: + for _ in range(2): + with pytest.raises(CleanupFailure): + await client.aclose() + assert first.calls == 1 + assert second.calls == (1 if kind == "identity" else 0) + await client.retry_cleanup() + assert first.calls == 2 + assert second.calls == (1 if kind == "identity" else 0) + else: + await client.aclose() + assert first.calls == second.calls == 0 + await client.aclose() + asyncio.run(scenario()) + + +def test_open_waiter_timeouts_detach_one_and_then_all_without_reinitializing() -> None: + async def scenario() -> None: + clock = ManualTiming() + owner = ResourceLifecycle(timing=clock) + entered, gate = asyncio.Event(), asyncio.Event() + calls = 0 + async def initialize() -> None: + nonlocal calls + calls += 1 + entered.set() + await gate.wait() + first = asyncio.create_task(owner.open(initialize, timeout=5)) + second = asyncio.create_task(owner.open(initialize, timeout=10)) + await entered.wait() + clock.advance(5) + with pytest.raises(asyncio.TimeoutError): + await first + assert not second.done() + clock.advance(5) + with pytest.raises(asyncio.TimeoutError): + await second + gate.set() + await owner.open(initialize) + assert calls == 1 and owner.is_open + await owner.close() + asyncio.run(scenario()) + + +def test_active_operation_outlives_shutdown_deadline_before_zeroization() -> None: + async def scenario() -> None: + clock = ManualTiming() + owner = ResourceLifecycle(opened=True, timing=clock) + entered, gate = asyncio.Event(), asyncio.Event() + material = bytearray(b"owned") + async def operation() -> str: + entered.set() + await gate.wait() + assert material == b"owned" + return "recorded-result" + async def erase(_: bool) -> None: + material[:] = b"\x00" * len(material) + owner.own(material, erase) + active = asyncio.create_task(owner.run(operation)) + await entered.wait() + closing = asyncio.create_task(owner.close(timeout=10)) + await scheduled_turn() + clock.advance(10) + with pytest.raises(CleanupFailure): + await closing + assert isinstance(owner.state, ClosingOverdue) and material == b"owned" + gate.set() + assert await active == "recorded-result" + assert owner._cleanup is not None + await owner._cleanup + assert material == b"\x00" * 5 and isinstance(owner.state, Closed) + asyncio.run(scenario()) + + +def test_attachment_timeout_keeps_late_child_owned_until_cleanup() -> None: + async def scenario() -> None: + clock = ManualTiming() + owner = ResourceLifecycle(opened=True, timing=clock) + entered, gate, cleaned = asyncio.Event(), asyncio.Event(), asyncio.Event() + calls = 0 + async def create() -> object: + entered.set() + await gate.wait() + return object() + async def destroy(value: object, retry: bool) -> None: + nonlocal calls + calls += 1 + cleaned.set() + pending = asyncio.create_task(owner.publish(create, destroy, timeout=5)) + await entered.wait() + clock.advance(5) + with pytest.raises(asyncio.TimeoutError): + await pending + assert calls == 0 and owner.is_open + gate.set() + await cleaned.wait() + await owner.close() + assert calls == 1 + asyncio.run(scenario()) + + +def test_late_cleanup_failure_settles_overdue_owner_before_explicit_safe_retry() -> None: + async def scenario() -> None: + clock = ManualTiming() + owner = ResourceLifecycle(opened=True, timing=clock) + entered, gate = asyncio.Event(), asyncio.Event() + calls = 0 + async def destroy(retry: bool) -> None: + nonlocal calls + calls += 1 + if not retry: + entered.set() + await gate.wait() + raise ValueError("private adapter failure") + owner.own(object(), destroy, retry="idempotent") + closing = asyncio.create_task(owner.close(timeout=10)) + await entered.wait() + clock.advance(10) + with pytest.raises(CleanupFailure): + await closing + gate.set() + assert owner._cleanup is not None + await owner._cleanup + assert isinstance(owner.state, CleanupFailed) + with pytest.raises(CleanupFailure): + await owner.close() + assert calls == 1 + await owner.retry_cleanup() + assert isinstance(owner.state, Closed) and calls == 2 + asyncio.run(scenario()) diff --git a/bindings/python/tests/test_workflow.py b/bindings/python/tests/test_workflow.py index 259345d74..dcd2c685a 100644 --- a/bindings/python/tests/test_workflow.py +++ b/bindings/python/tests/test_workflow.py @@ -651,7 +651,15 @@ async def scenario() -> None: with pytest.raises(asyncio.CancelledError): await operation assert parent_signer.sign_calls == 0 + # Caller cancellation invalidates publication, but the provider still + # owns live input. Destruction follows its settlement, not cancellation. + assert child_signer.close_calls == 0 + + assert provider.release is not None + provider.release.set() + await client.aclose() assert child_signer.close_calls == 1 + assert parent_signer.sign_calls == 0 asyncio.run(scenario()) @@ -679,10 +687,18 @@ async def scenario() -> None: operation.cancel() with pytest.raises(asyncio.CancelledError): await operation - assert child_signer.close_calls == 1 + # Caller cancellation invalidates publication, but the provider still + # owns live input. Destruction follows its settlement, not cancellation. + assert child_signer.close_calls == 0 assert provider.calls == 0 assert parent_signer.sign_calls == 0 + assert child_signer.identity_release is not None + child_signer.identity_release.set() + await client.aclose() + assert child_signer.close_calls == 1 + assert parent_signer.sign_calls == 0 + asyncio.run(scenario()) @@ -711,6 +727,13 @@ async def scenario() -> None: await operation assert provider.calls == 1 assert parent_signer.sign_calls == 1 + # Caller cancellation invalidates publication, but the provider still + # owns live input. Destruction follows its settlement, not cancellation. + assert child_signer.close_calls == 0 + + assert parent_signer.sign_release is not None + parent_signer.sign_release.set() + await client.aclose() assert child_signer.close_calls == 1 asyncio.run(scenario()) diff --git a/bindings/typescript/api/public-api.txt b/bindings/typescript/api/public-api.txt index 3a784fc4b..e51d0a619 100644 --- a/bindings/typescript/api/public-api.txt +++ b/bindings/typescript/api/public-api.txt @@ -1,5 +1,5 @@ # Installed @auths-dev/sdk public API v1 -# declaration-sha256 46352c9917b3cd54f775e8f95997885e3477037de52ef063922460ae60a518c9 +# declaration-sha256 44aa7226faa4044127345f4ed6ab7cc3edaeaa8874c446b43b342bafa51d8b5a . AuthsError value+type . AuthsIssue type . EffectState type diff --git a/bindings/typescript/docs/resource-lifecycle.md b/bindings/typescript/docs/resource-lifecycle.md new file mode 100644 index 000000000..0d5812ab3 --- /dev/null +++ b/bindings/typescript/docs/resource-lifecycle.md @@ -0,0 +1,45 @@ +# Resource opening and cleanup + +Workflow, identity and remote clients follow AP-SPEC-076 section 7. Closing +stops new admission, waits for active use, then attempts every independent owned +cleanup. Concurrent callers share the result. Borrowed resources are never +closed; successful destruction is never repeated. + +An exposed closed/disposed property reports that admission has stopped. Await +close/dispose to learn whether owned cleanup finished successfully; a stopped +client may still retain active work or failed cleanup. Python constructors +retain their owner synchronously; concurrent `open()` waiters share that owner. + +TypeScript factories, workflow attachment/delegation and close/dispose accept +`{ signal?, timeoutMs? }`. Python open, attach_agent, delegate and aclose accept +keyword-only `timeout` in seconds. Timeouts must be finite and positive. Omit +them for no lifecycle deadline. Cancellation detaches a waiter, leaving owned +opening/cleanup alive. Cancelled attachments cannot publish; late resources are +retained and cleaned up. A factory losing its caller owns its late result until +cleanup settles. + +The first close caller's timeout is the cleanup generation's monotonic deadline. +Later callers can wait less time but cannot change that deadline. Expiry reports +incomplete cleanup and retains ongoing work. Subsequent calls report incomplete +until late settlement; a subsequent close may then observe success. + +Opening failure returns the original error promptly while cleanup proceeds. +Ordinary close after failed cleanup returns its retained failure. Explicit +`retryCleanup(options?)` / `retry_cleanup(timeout=...)` retries only unresolved +safe obligations. Declare safe destructor repetition with TypeScript +`cleanupRetry: "idempotent"` or Python `cleanup_retry = "idempotent"`. +Absent that capability, an ambiguous failure is retained without repetition. +Nested wrappers use the child's explicit retry method when available. This +capability never authorizes retrying an application/provider mutation. + +TypeScript waiter errors use the disposed workflow boundary and bounded +cancelled/timeout cause; cleanup uses signer-failed and cleanup-incomplete or +cleanup-failed. Python waiters use CancelledError/TimeoutError; cleanup retains +the cleanup-failed workflow boundary with a bounded local cause_chain naming +completion. None proves a provider effect was undone. + +A destructor must not await the completion of an owner currently awaiting that +destructor, including through another thread or nested adapter. That dependency +cycle cannot finish. Resource ownership changes no authorization, native entry, +recovery, or receipt authority. Written schedules and final hosted evidence are +tracked in the AP076 implementation record. diff --git a/bindings/typescript/src/identity.ts b/bindings/typescript/src/identity.ts index c725ac3c2..93d54eca8 100644 --- a/bindings/typescript/src/identity.ts +++ b/bindings/typescript/src/identity.ts @@ -1,3 +1,4 @@ +import { ResourceLifecycle, openResource, type LifecycleWaitOptions } from "./internal/resource-lifecycle.js"; import type { AuthsIssue } from "./index.js"; import { issue } from "./internal/issues.js"; import { loadIdentityEngine } from "./internal/identity-engine.js"; @@ -48,7 +49,8 @@ export interface IdentityClient extends AsyncDisposable { validate(identity: ResolvedIdentity, options?: IdentityOperationOptions): Promise>; authenticate(input: Readonly<{ identity: ValidatedIdentity; relationshipId?: string; message: Uint8Array; signature: Uint8Array; timeoutMs?: number; signal?: AbortSignal }>): Promise>; authenticateMessage(input: Readonly<{ identityPacket: Uint8Array; relationshipId?: string; message: Uint8Array; signature: Uint8Array; timeoutMs?: number; signal?: AbortSignal }>): Promise>; - close(): Promise; + close(options?: LifecycleWaitOptions): Promise; + retryCleanup(options?: LifecycleWaitOptions): Promise; [Symbol.asyncDispose](): Promise; } @@ -71,14 +73,14 @@ const decodedRecords = new WeakMap(); const resolvedRecords = new WeakMap(); const validatedRecords = new WeakMap(); -export async function createRawKeyEd25519IdentityClient(): Promise { - return new RawKeyIdentityClient(await loadIdentityEngine() as unknown as IdentityEngine); +export function createRawKeyEd25519IdentityClient(options: LifecycleWaitOptions = {}): Promise { + return openResource(async (owner) => new RawKeyIdentityClient(await loadIdentityEngine() as unknown as IdentityEngine, owner), options); } class RawKeyIdentityClient implements IdentityClient { readonly #engine: IdentityEngine; - #state: "open" | "closing" | "closed" = "open"; - constructor(engine: IdentityEngine) { this.#engine = engine; } + readonly #lifecycle: ResourceLifecycle; + constructor(engine: IdentityEngine, lifecycle: ResourceLifecycle) { this.#engine = engine; this.#lifecycle = lifecycle; } decode(packet: Uint8Array): IdentityResult { this.#assertOpen(); @@ -159,6 +161,7 @@ class RawKeyIdentityClient implements IdentityClient { } async authenticateMessage(input: Readonly<{ identityPacket: Uint8Array; relationshipId?: string; message: Uint8Array; signature: Uint8Array; timeoutMs?: number; signal?: AbortSignal }>): Promise> { + input = { ...input, identityPacket: input.identityPacket.slice(), message: input.message.slice(), signature: input.signature.slice() }; const decoded = this.decode(input.identityPacket); if (decoded.kind !== "ok") return decoded; const resolved = await this.resolve(decoded.value, input); @@ -168,9 +171,10 @@ class RawKeyIdentityClient implements IdentityClient { return this.authenticate({ identity: validated.value, message: input.message, signature: input.signature, ...(input.relationshipId === undefined ? {} : { relationshipId: input.relationshipId }), ...(input.timeoutMs === undefined ? {} : { timeoutMs: input.timeoutMs }), ...(input.signal === undefined ? {} : { signal: input.signal }) }); } - async close(): Promise { if (this.#state === "closed") return; this.#state = "closing"; this.#state = "closed"; } + close(options: LifecycleWaitOptions = {}): Promise { return this.#lifecycle.close(options); } + retryCleanup(options: LifecycleWaitOptions = {}): Promise { return this.#lifecycle.retryCleanup(options); } async [Symbol.asyncDispose](): Promise { await this.close(); } - #assertOpen(): void { if (this.#state !== "open") throw new TypeError("Auths identity client is not open"); } + #assertOpen(): void { this.#lifecycle.assertOpen(); } } function rejected(code: "identity.packet-malformed" | "identity.method-unsupported" | "identity.resolution-rejected" | "identity.validation-rejected" | "identity.relationship-denied" | "identity.signature-invalid"): IdentityResult { diff --git a/bindings/typescript/src/identity/adapters.ts b/bindings/typescript/src/identity/adapters.ts index f8e9f5583..a46df91b0 100644 --- a/bindings/typescript/src/identity/adapters.ts +++ b/bindings/typescript/src/identity/adapters.ts @@ -1,3 +1,4 @@ +import { ResourceLifecycle, openResource, type LifecycleWaitOptions } from "../internal/resource-lifecycle.js"; import type { AuthsIssue } from "../index.js"; import type { AuthenticatedIdentityMessage, DecodedIdentity, IdentityClient, IdentityOperationOptions, IdentityResult, ResolvedIdentity, ValidatedIdentity } from "../identity.js"; import { issue } from "../internal/issues.js"; @@ -9,26 +10,35 @@ export interface DecodedIdentityRecord { readonly methodId: string; readonly ide export interface ResolutionEvidence { readonly source: string; readonly observedAtUnixSeconds: bigint; readonly expiresAtUnixSeconds: bigint; readonly provenance: readonly string[]; readonly history: readonly string[] } export interface ResolvedIdentityRecord extends DecodedIdentityRecord { readonly evidence: ResolutionEvidence } export interface IdentityResolver extends AsyncDisposable { + /** A failed close may only be repeated when explicitly declared safe. */ + readonly cleanupRetry?: "idempotent"; resolve(input: Readonly<{ descriptor: DecodedIdentityRecord; maximumBytes: number; signal: AbortSignal }>): Promise>; - close(): Promise; + close(options?: LifecycleWaitOptions): Promise; + retryCleanup?(options?: LifecycleWaitOptions): Promise; [Symbol.asyncDispose](): Promise; } export type IdentityAdapterRejection = "not-found" | "malformed" | "not-permitted" | "expired" | "invalid-signature"; export type IdentityAdapterUncertainty = "cancelled" | "timeout" | "unavailable" | "invalid-response"; export type IdentityAdapterResult = Readonly<{ kind: "ok"; value: Value }> | Readonly<{ kind: "rejected"; reason: IdentityAdapterRejection }> | Readonly<{ kind: "indeterminate"; reason: IdentityAdapterUncertainty }>; export interface IdentityMethod extends AsyncDisposable { + /** A failed close may only be repeated when explicitly declared safe. */ + readonly cleanupRetry?: "idempotent"; readonly id: string; readonly version: number; resolve(descriptor: DecodedIdentityRecord, context: Readonly<{ signal: AbortSignal }>): Promise>; validate(record: ResolvedIdentityRecord, context: Readonly<{ signal: AbortSignal }>): Promise>; - close(): Promise; + close(options?: LifecycleWaitOptions): Promise; + retryCleanup?(options?: LifecycleWaitOptions): Promise; [Symbol.asyncDispose](): Promise; } export interface MessageAuthenticator extends AsyncDisposable { + /** A failed close may only be repeated when explicitly declared safe. */ + readonly cleanupRetry?: "idempotent"; readonly suiteId: string; readonly version: number; verify(input: Readonly<{ relationship: VerificationRelationship; preimage: Uint8Array; signature: Uint8Array; signal: AbortSignal }>): Promise>; - close(): Promise; + close(options?: LifecycleWaitOptions): Promise; + retryCleanup?(options?: LifecycleWaitOptions): Promise; [Symbol.asyncDispose](): Promise; } @@ -39,20 +49,29 @@ interface DescriptorEngine { } interface StageRecord { readonly packet: Uint8Array; readonly descriptor: DecodedIdentityRecord; readonly resolved?: ResolvedIdentityRecord; readonly method: IdentityMethod } -export async function createIdentityClient(options: Readonly<{ methods: readonly IdentityMethod[]; authenticators: readonly MessageAuthenticator[]; adapterOwnership?: "borrowed" | "owned" }>): Promise { +export function createIdentityClient(options: Readonly<{ methods: readonly IdentityMethod[]; authenticators: readonly MessageAuthenticator[]; adapterOwnership?: "borrowed" | "owned"; signal?: AbortSignal; timeoutMs?: number }>): Promise { if (options.methods.length < 1 || options.methods.length > 32 || options.authenticators.length < 1 || options.authenticators.length > 32) throw new RangeError("identity adapter count is outside bounds"); - return new AdapterIdentityClient(await loadPackagedWorkflowEngine() as unknown as DescriptorEngine, options); + const snapshot = { ...options, methods: [...options.methods], authenticators: [...options.authenticators] }; + return openResource(async (owner) => { + if (snapshot.adapterOwnership === "owned") for (const adapter of [...snapshot.authenticators, ...snapshot.methods].reverse()) { + owner.own(adapter, (retry) => retry && adapter.retryCleanup !== undefined ? adapter.retryCleanup() : adapter.close(), adapter.cleanupRetry ?? "unsafe"); + } + return new AdapterIdentityClient(await loadPackagedWorkflowEngine() as unknown as DescriptorEngine, snapshot, owner); + }, options); } export function resolverIdentityMethod(options: Readonly<{ id: string; version: number; resolver: IdentityResolver; resolverOwnership?: "borrowed" | "owned"; maximumBytes?: number }>): IdentityMethod { const maximumBytes = options.maximumBytes ?? 128 * 1024; if (!Number.isSafeInteger(maximumBytes) || maximumBytes < 1024 || maximumBytes > 8 * 1024 * 1024) throw new RangeError("resolver maximum bytes is outside bounds"); - let closed = false; + const lifecycle = new ResourceLifecycle(); + const resolver = options.resolver; + if (options.resolverOwnership === "owned") lifecycle.own(resolver, (retry) => retry && resolver.retryCleanup !== undefined ? resolver.retryCleanup() : resolver.close(), resolver.cleanupRetry ?? "unsafe"); return Object.freeze({ - id: parseToken(options.id), version: parseVersion(options.version), - async resolve(descriptor: DecodedIdentityRecord, context: Readonly<{ signal: AbortSignal }>) { if (closed) throw new TypeError("identity method is closed"); return options.resolver.resolve({ descriptor: copyDescriptor(descriptor), maximumBytes, signal: context.signal }); }, - async validate() { return Object.freeze({ kind: "ok", value: undefined }); }, - async close() { if (closed) return; closed = true; if (options.resolverOwnership === "owned") await options.resolver.close(); }, + id: parseToken(options.id), version: parseVersion(options.version), cleanupRetry: "idempotent" as const, + async resolve(descriptor: DecodedIdentityRecord, context: Readonly<{ signal: AbortSignal }>) { const snapshot = copyDescriptor(descriptor); return lifecycle.run(() => resolver.resolve({ descriptor: snapshot, maximumBytes, signal: context.signal })); }, + async validate() { lifecycle.assertOpen(); return Object.freeze({ kind: "ok", value: undefined }); }, + close(options: LifecycleWaitOptions = {}) { return lifecycle.close(options); }, + retryCleanup(options: LifecycleWaitOptions = {}) { return lifecycle.retryCleanup(options); }, async [Symbol.asyncDispose]() { await this.close(); }, }); } @@ -61,13 +80,12 @@ class AdapterIdentityClient implements IdentityClient { readonly #engine: DescriptorEngine; readonly #methods: Map; readonly #authenticators: Map; - readonly #owned: boolean; + readonly #lifecycle: ResourceLifecycle; readonly #decoded = new WeakMap(); readonly #resolved = new WeakMap(); readonly #validated = new WeakMap(); - #closed = false; - constructor(engine: DescriptorEngine, options: Readonly<{ methods: readonly IdentityMethod[]; authenticators: readonly MessageAuthenticator[]; adapterOwnership?: "borrowed" | "owned" }>) { - this.#engine = engine; this.#owned = options.adapterOwnership === "owned"; + constructor(engine: DescriptorEngine, options: Readonly<{ methods: readonly IdentityMethod[]; authenticators: readonly MessageAuthenticator[]; adapterOwnership?: "borrowed" | "owned" }>, lifecycle: ResourceLifecycle) { + this.#engine = engine; this.#lifecycle = lifecycle; this.#methods = uniqueMap(options.methods, (value) => `${parseToken(value.id)}/${parseVersion(value.version)}`.split("/")[0]!); this.#authenticators = uniqueMap(options.authenticators, (value) => `${parseToken(value.suiteId)}/${parseVersion(value.version)}`.split("/")[0]!); } @@ -85,7 +103,7 @@ class AdapterIdentityClient implements IdentityClient { } async resolve(identity: DecodedIdentity, options: IdentityOperationOptions = {}): Promise> { this.#assertOpen(); const record = this.#decoded.get(identity as object); if (record === undefined) return negative("rejected", "identity.resolution-rejected"); - return withAdapter(options, "identity.resolution-indeterminate", async (signal) => { + return withAdapter(this.#lifecycle, options, "identity.resolution-indeterminate", async (signal) => { const outcome = await record.method.resolve(copyDescriptor(record.descriptor), { signal }); if (outcome.kind !== "ok") return mapAdapter(outcome, "identity.resolution-rejected", "identity.resolution-indeterminate"); const resolved = copyResolved(outcome.value); @@ -96,7 +114,7 @@ class AdapterIdentityClient implements IdentityClient { } async validate(identity: ResolvedIdentity, options: IdentityOperationOptions = {}): Promise> { this.#assertOpen(); const record = this.#resolved.get(identity as object); if (record?.resolved === undefined) return negative("rejected", "identity.validation-rejected"); - return withAdapter(options, "identity.validation-indeterminate", async (signal) => { + return withAdapter(this.#lifecycle, options, "identity.validation-indeterminate", async (signal) => { const outcome = await record.method.validate(copyResolved(record.resolved!), { signal }); if (outcome.kind !== "ok") return mapAdapter(outcome, outcome.kind === "rejected" && outcome.reason === "expired" ? "identity.evidence-expired" : "identity.validation-rejected", "identity.validation-indeterminate"); const value = Object.freeze({ validation: "validated" as const, methodId: record.descriptor.methodId, identityId: record.descriptor.identityId, relationships: Object.freeze(record.descriptor.relationships.map((item) => item.id)), toBytes: () => record.packet.slice() }) as ValidatedIdentity; @@ -104,11 +122,12 @@ class AdapterIdentityClient implements IdentityClient { }); } async authenticate(input: Readonly<{ identity: ValidatedIdentity; relationshipId?: string; message: Uint8Array; signature: Uint8Array; timeoutMs?: number; signal?: AbortSignal }>): Promise> { + input = { ...input, message: input.message.slice(), signature: input.signature.slice() }; this.#assertOpen(); const record = this.#validated.get(input.identity as object); if (record === undefined) return negative("rejected", "identity.relationship-denied"); const relationshipId = input.relationshipId ?? "default-signing"; const relationship = record.descriptor.relationships.find((item) => item.id === relationshipId); if (relationship === undefined) return negative("rejected", "identity.relationship-denied"); const authenticator = this.#authenticators.get(relationship.suiteId); if (authenticator === undefined) return negative("indeterminate", "identity.authentication-indeterminate", ["unavailable"]); - return withAdapter(input, "identity.authentication-indeterminate", async (signal) => { + return withAdapter(this.#lifecycle, input, "identity.authentication-indeterminate", async (signal) => { const preimage = this.#engine.identityDescriptorSigningPreimageV1(record.packet.slice(), relationshipId, input.message.slice()); const outcome = await authenticator.verify({ relationship: copyRelationship(relationship), preimage: preimage.slice(), signature: input.signature.slice(), signal }); if (outcome.kind !== "ok") return mapAdapter(outcome, outcome.kind === "rejected" && outcome.reason === "invalid-signature" ? "identity.signature-invalid" : "identity.relationship-denied", "identity.authentication-indeterminate"); @@ -116,20 +135,22 @@ class AdapterIdentityClient implements IdentityClient { }); } async authenticateMessage(input: Readonly<{ identityPacket: Uint8Array; relationshipId?: string; message: Uint8Array; signature: Uint8Array; timeoutMs?: number; signal?: AbortSignal }>): Promise> { + input = { ...input, identityPacket: input.identityPacket.slice(), message: input.message.slice(), signature: input.signature.slice() }; const decoded = this.decode(input.identityPacket); if (decoded.kind !== "ok") return decoded; const resolved = await this.resolve(decoded.value, input); if (resolved.kind !== "ok") return resolved; const validated = await this.validate(resolved.value, input); if (validated.kind !== "ok") return validated; return this.authenticate({ identity: validated.value, message: input.message, signature: input.signature, ...(input.relationshipId === undefined ? {} : { relationshipId: input.relationshipId }), ...(input.timeoutMs === undefined ? {} : { timeoutMs: input.timeoutMs }), ...(input.signal === undefined ? {} : { signal: input.signal }) }); } - async close(): Promise { if (this.#closed) return; this.#closed = true; if (this.#owned) { for (const adapter of [...this.#authenticators.values(), ...this.#methods.values()].reverse()) await adapter.close(); } } + close(options: LifecycleWaitOptions = {}): Promise { return this.#lifecycle.close(options); } + retryCleanup(options: LifecycleWaitOptions = {}): Promise { return this.#lifecycle.retryCleanup(options); } async [Symbol.asyncDispose](): Promise { await this.close(); } - #assertOpen(): void { if (this.#closed) throw new TypeError("Auths identity client is not open"); } + #assertOpen(): void { this.#lifecycle.assertOpen(); } } -async function withAdapter(options: IdentityOperationOptions, fallback: "identity.resolution-indeterminate" | "identity.validation-indeterminate" | "identity.authentication-indeterminate", operation: (signal: AbortSignal) => Promise>): Promise> { +async function withAdapter(lifecycle: ResourceLifecycle, options: IdentityOperationOptions, fallback: "identity.resolution-indeterminate" | "identity.validation-indeterminate" | "identity.authentication-indeterminate", operation: (signal: AbortSignal) => Promise>): Promise> { const timeout = options.timeoutMs ?? 10_000; if (!Number.isSafeInteger(timeout) || timeout < 1 || timeout > 300_000) throw new RangeError("identity timeout is outside bounds"); const controller = new AbortController(); const timer = setTimeout(() => controller.abort(), timeout); const abort = () => controller.abort(options.signal?.reason); options.signal?.addEventListener("abort", abort, { once: true }); - try { options.signal?.throwIfAborted(); return await operation(controller.signal); } catch { return negative("indeterminate", fallback, [controller.signal.aborted ? "timeout" : "unavailable"]); } finally { clearTimeout(timer); options.signal?.removeEventListener("abort", abort); } + try { options.signal?.throwIfAborted(); return await lifecycle.run(() => operation(controller.signal), { signal: controller.signal }); } catch { return negative("indeterminate", fallback, [options.signal?.aborted ? "cancelled" : controller.signal.aborted ? "timeout" : "unavailable"]); } finally { clearTimeout(timer); options.signal?.removeEventListener("abort", abort); } } function mapAdapter(outcome: Exclude, { kind: "ok" }>, rejectedCode: Parameters[1], indeterminateCode: Parameters[1]): IdentityResult { return outcome.kind === "rejected" ? negative("rejected", rejectedCode) : negative("indeterminate", indeterminateCode, [outcome.reason]); } function negative(kind: "rejected" | "indeterminate", code: Parameters[0], causes: AuthsIssue["causes"] = []): IdentityResult { const value = issue(code, { causes }); if (value.effect !== "not-applied") throw new TypeError("invalid identity issue axis"); return Object.freeze({ kind, issue: value as AuthsIssue & Readonly<{ effect: "not-applied" }> }); } diff --git a/bindings/typescript/src/internal/delegation.ts b/bindings/typescript/src/internal/delegation.ts index d92cf260f..fd82090dd 100644 --- a/bindings/typescript/src/internal/delegation.ts +++ b/bindings/typescript/src/internal/delegation.ts @@ -89,7 +89,6 @@ export async function delegateAttachedAgent

( signed.signedObject.fill(0); } } catch (error) { - await cleanupChildSigner(options.signer); if (error instanceof AuthsWorkflowError) throw error; throw new AuthsWorkflowError( "invalid-delegation", @@ -494,12 +493,3 @@ function invalidAuthority(): AuthsWorkflowError { "child authority request is malformed or outside workflow bounds", ); } - -async function cleanupChildSigner(signer: Signer): Promise { - if (signer.dispose === undefined) return; - try { - await signer.dispose(); - } catch { - // Preserve the original fail-closed delegation error. - } -} diff --git a/bindings/typescript/src/internal/resource-lifecycle.ts b/bindings/typescript/src/internal/resource-lifecycle.ts new file mode 100644 index 000000000..07ccffa93 --- /dev/null +++ b/bindings/typescript/src/internal/resource-lifecycle.ts @@ -0,0 +1,329 @@ +import { AuthsWorkflowError } from "../workflow/errors.js"; + +/** Per-caller cancellation is separate from ownership of an asynchronous task. */ +export interface LifecycleWaitOptions { + readonly signal?: AbortSignal; + readonly timeoutMs?: number; +} + +export type CleanupRetry = "idempotent" | "unsafe"; + +interface Completion { + readonly promise: Promise; + resolve(value: T): void; + reject(error: unknown): void; +} + +function completion(): Completion { + let resolve!: (value: T) => void; + let reject!: (error: unknown) => void; + const promise = new Promise((yes, no) => { resolve = yes; reject = no; }); + // An owner survives its last waiter. Retaining its outcome must not raise an + // unhandled rejection when all waiters detached or closing invalidated opening. + void promise.catch(() => {}); + return { promise, resolve, reject }; +} + +function disposed(): AuthsWorkflowError { + return new AuthsWorkflowError("disposed", "Auths resource is disposed or not open"); +} + +function incomplete(): AuthsWorkflowError { + return new AuthsWorkflowError("signer-failed", "Auths cleanup is incomplete", { + causeChain: ["cleanup-incomplete"], effect: "possible", retry: "conditional", + }); +} + +function cleanupFailed(): AuthsWorkflowError { + return new AuthsWorkflowError("signer-failed", "Auths owned resource cleanup failed", { + causeChain: ["cleanup-failed"], effect: "possible", retry: "conditional", + }); +} + +export interface LifecycleTiming { + now(): number; + schedule(callback: () => void, delayMs: number): () => void; +} +const systemTiming: LifecycleTiming = { + now: () => performance.now(), + schedule(callback, delayMs) { const timer = setTimeout(callback, delayMs); return () => clearTimeout(timer); }, +}; + +interface Wait { + readonly signal: AbortSignal | undefined; + readonly deadline: number | undefined; +} + +function captureWait(options: LifecycleWaitOptions, timing: LifecycleTiming): Wait { + const { signal, timeoutMs } = options; + if (signal?.aborted) throw new AuthsWorkflowError("disposed", "Auths wait cancelled", { causeChain: ["cancelled"] }); + if (timeoutMs !== undefined && (!Number.isFinite(timeoutMs) || timeoutMs <= 0)) throw new TypeError("timeoutMs must be finite and positive"); + return { signal, deadline: timeoutMs === undefined ? undefined : timing.now() + timeoutMs }; +} + +function waitError(cause: "cancelled" | "timeout"): AuthsWorkflowError { + return new AuthsWorkflowError("disposed", `Auths wait ${cause}`, { + causeChain: [cause], effect: "possible", retry: "conditional", + }); +} + +/** Bounded timer observations avoid platform overflow on a long explicit deadline. */ +function deadlineTimer(deadline: number | undefined, expired: () => void, timing: LifecycleTiming): () => void { + if (deadline === undefined) return () => {}; + let cancel = () => {}; + const observe = () => { + const remaining = deadline - timing.now(); + if (remaining <= 0) expired(); + else cancel = timing.schedule(observe, Math.min(remaining, 2147483647)); + }; + observe(); + return () => cancel(); +} + +function waitFor(task: Promise, wait: Wait, timing: LifecycleTiming, detached: () => void = () => {}): Promise { + return new Promise((resolve, reject) => { + let state: "waiting" | "settled" = "waiting"; + let cancelTimer = () => {}; + const finish = (action: () => void) => { + if (state !== "waiting") return; + state = "settled"; + cancelTimer(); + wait.signal?.removeEventListener("abort", aborted); + action(); + }; + const aborted = () => finish(() => { detached(); reject(waitError("cancelled")); }); + wait.signal?.addEventListener("abort", aborted, { once: true }); + if (wait.signal?.aborted) aborted(); + if (state === "waiting") cancelTimer = deadlineTimer(wait.deadline, () => finish(() => { detached(); reject(waitError("timeout")); }), timing); + task.then((value) => finish(() => resolve(value)), (error: unknown) => finish(() => reject(error))); + }); +} + +interface CleanupAction { + readonly run: (retry: boolean) => Promise; + readonly retry: CleanupRetry; + readonly order: number; +} + +type Obligation = + | { readonly kind: "pending"; readonly action: CleanupAction } + | { readonly kind: "failed"; readonly action: CleanupAction }; + +type CloseReason = { readonly kind: "closed" } | { readonly kind: "open-failed"; readonly result: Completion }; + +interface Generation { + readonly result: Completion; + readonly deadline: number | undefined; + readonly reason: CloseReason; +} + +type State = + | { readonly kind: "new" } + | { readonly kind: "opening"; readonly result: Completion } + | { readonly kind: "open" } + | { readonly kind: "closing"; readonly generation: Generation } + | { readonly kind: "closing-overdue"; readonly generation: Generation } + | { readonly kind: "cleanup-failed"; readonly failure: AuthsWorkflowError; readonly reason: CloseReason } + | { readonly kind: "closed"; readonly reason: CloseReason }; + +/** + * Local resource ownership only: this class grants no authorization or provider + * entry. Work tokens delay destruction; cleanup generations retain their own + * result independently from waiters and from later explicit cleanup retries. + */ +export class ResourceLifecycle { + #state: State; + readonly #active = new Set>(); + readonly #obligations = new Map(); + readonly #invalidations = new Set<() => void>(); + readonly #timing: LifecycleTiming; + + constructor(initial: "new" | "open" = "open", timing: LifecycleTiming = systemTiming) { this.#state = { kind: initial }; this.#timing = timing; } + + get state(): State["kind"] { return this.#state.kind; } + get isOpen(): boolean { return this.#state.kind === "open"; } + + assertOpen(): void { if (!this.isOpen) throw disposed(); } + + /** Register one owned destructor. Borrowed resources are never registered. */ + own(key: object, run: (retry: boolean) => Promise, retry: CleanupRetry = "unsafe", order = 0): void { + if (this.#state.kind === "closed") throw disposed(); + if (!this.#obligations.has(key)) this.#obligations.set(key, { kind: "pending", action: { run, retry, order } }); + } + + /** Call only after another owner registered the exact cleanup obligation. */ + transfer(key: object): void { this.#obligations.delete(key); } + + async disposeOwned(key: object): Promise { + const obligation = this.#obligations.get(key); + if (obligation !== undefined && obligation.kind === "pending") await this.#attempt(key, obligation); + } + + #work(operation: () => Promise): Promise { + const done = completion(); + this.#active.add(done.promise); + let task: Promise; + try { task = Promise.resolve(operation()); } catch (error) { task = Promise.reject(error); } + return task.finally(() => { + this.#active.delete(done.promise); + done.resolve(undefined); + }); + } + + /** One opening task per instance; detaching a waiter never cancels that task. */ + open(initialize: () => Promise, options: LifecycleWaitOptions = {}, opened: () => void = () => {}): Promise { + const wait = captureWait(options, this.#timing); + if (this.#state.kind === "open") return Promise.resolve(); + if (this.#state.kind === "opening") return waitFor(this.#state.result.promise, wait, this.#timing); + if (this.#state.kind !== "new") return Promise.reject(disposed()); + const result = completion(); + this.#state = { kind: "opening", result }; + void this.#work(initialize).then(() => { + if (this.#state.kind !== "opening" || this.#state.result !== result) return; + this.#state = { kind: "open" }; + try { + opened(); + if (this.isOpen) result.resolve(undefined); + else result.reject(disposed()); + } catch (error) { + result.reject(error); + this.#startClose(undefined, false, { kind: "open-failed", result }); + } + }, (error: unknown) => { + result.reject(error); + if (this.#state.kind === "opening" && this.#state.result === result) this.#startClose(undefined, false, { kind: "open-failed", result }); + }); + return waitFor(result.promise, wait, this.#timing); + } + + /** Existing work drains while shutdown waits for its ownership token. */ + run(operation: () => Promise, options: LifecycleWaitOptions = {}): Promise { + const wait = captureWait(options, this.#timing); + this.assertOpen(); + return waitFor(this.#work(operation), wait, this.#timing); + } + + /** A late attachment cannot be published; its result remains an owned cleanup obligation. */ + publish( + create: () => Promise, destroy: (value: T, retry: boolean) => Promise, + options: LifecycleWaitOptions = {}, retry: CleanupRetry = "unsafe", + ): Promise { + const wait = captureWait(options, this.#timing); + this.assertOpen(); + let publication: "waiting" | "abandoned" | "published" = "waiting"; + const done = completion(); + const invalidated = completion(); + this.#active.add(done.promise); + const invalidate = () => { publication = "abandoned"; invalidated.reject(disposed()); }; + this.#invalidations.add(invalidate); + let created: Promise; + try { created = Promise.resolve(create()); } catch (error) { created = Promise.reject(error); } + const owned = created.then((value) => { + this.own(value, (attempt) => destroy(value, attempt), retry); + return value; + }); + return waitFor(Promise.race([owned, invalidated.promise]), wait, this.#timing, () => { publication = "abandoned"; }).then((value) => { + if (!this.isOpen || publication !== "waiting" || wait.signal?.aborted || + (wait.deadline !== undefined && this.#timing.now() >= wait.deadline)) throw disposed(); + publication = "published"; + return value; + }).finally(() => { + this.#invalidations.delete(invalidate); + // A cancelled waiter releases neither its creation task nor its late result. + void owned.then(async (value) => { + if (publication !== "published") { + const obligation = this.#obligations.get(value); + if (obligation !== undefined) await this.#attempt(value, obligation); + } + }, () => {}).finally(() => { this.#active.delete(done.promise); done.resolve(undefined); }); + }); + } + + close(options: LifecycleWaitOptions = {}): Promise { + const wait = captureWait(options, this.#timing); + switch (this.#state.kind) { + case "closed": return Promise.resolve(); + case "cleanup-failed": return Promise.reject(this.#state.failure); + case "closing-overdue": return Promise.reject(incomplete()); + case "closing": return waitFor(this.#state.generation.result.promise, wait, this.#timing); + default: return waitFor(this.#startClose(wait.deadline, false).result.promise, { signal: wait.signal, deadline: undefined }, this.#timing); + } + } + + retryCleanup(options: LifecycleWaitOptions = {}): Promise { + const wait = captureWait(options, this.#timing); + switch (this.#state.kind) { + case "closed": return Promise.resolve(); + case "closing": return waitFor(this.#state.generation.result.promise, wait, this.#timing); + case "closing-overdue": return Promise.reject(incomplete()); + case "cleanup-failed": + if (![...this.#obligations.values()].some((obligation) => obligation.action.retry === "idempotent")) return Promise.reject(this.#state.failure); + return waitFor(this.#startClose(wait.deadline, true, this.#state.reason).result.promise, { signal: wait.signal, deadline: undefined }, this.#timing); + default: return Promise.reject(disposed()); + } + } + + #startClose(deadline: number | undefined, retry: boolean, reason: CloseReason = { kind: "closed" }): Generation { + if (this.#state.kind === "opening") this.#state.result.reject(disposed()); + for (const invalidate of this.#invalidations) invalidate(); + const generation: Generation = { result: completion(), deadline, reason }; + this.#state = { kind: "closing", generation }; + const cancelDeadline = deadlineTimer(deadline, () => { + if (this.#state.kind === "closing" && this.#state.generation === generation) { + this.#state = { kind: "closing-overdue", generation }; + generation.result.reject(incomplete()); + } + }, this.#timing); + void Promise.resolve().then(async () => { + await Promise.all([...this.#active]); + for (const [key, obligation] of [...this.#obligations].sort((left, right) => left[1].action.order - right[1].action.order)) { + if (obligation.kind === "pending" || (retry && obligation.action.retry === "idempotent")) await this.#attempt(key, obligation, retry); + } + cancelDeadline(); + if (this.#obligations.size === 0) { + this.#state = { kind: "closed", reason: generation.reason }; + generation.result.resolve(undefined); + } else { + const failure = cleanupFailed(); + this.#state = { kind: "cleanup-failed", failure, reason: generation.reason }; + generation.result.reject(failure); + } + }).catch(() => { + cancelDeadline(); + const failure = cleanupFailed(); + this.#state = { kind: "cleanup-failed", failure, reason: generation.reason }; + generation.result.reject(failure); + }); + return generation; + } + + async #attempt(key: object, obligation: Obligation, retry = false): Promise { + try { + await obligation.action.run(retry); + this.#obligations.delete(key); + } catch { + this.#obligations.set(key, { kind: "failed", action: obligation.action }); + } + } +} + +// Retain factory owners after every waiter leaves, including settled cleanup +// failures. A successful publication transfers reachability to the returned owner. +const retainedFactories = new Set(); +export function openResource( + initialize: (owner: ResourceLifecycle) => Promise, options: LifecycleWaitOptions = {}, +): Promise { + const owner = new ResourceLifecycle("new"); + // Validate before creating work, including an already aborted caller. + const wait = captureWait(options, systemTiming); + retainedFactories.add(owner); + let value: T; + const opening = owner.open(async () => { value = await initialize(owner); }); + const closeAbandoned = () => { + void owner.close().then(() => retainedFactories.delete(owner), () => {}); + }; + return waitFor(opening, wait, systemTiming, closeAbandoned).then(() => { + retainedFactories.delete(owner); + return value!; + }, (error: unknown) => { closeAbandoned(); throw error; }); +} diff --git a/bindings/typescript/src/internal/signing.ts b/bindings/typescript/src/internal/signing.ts index 33e0d8b6a..f94c49e34 100644 --- a/bindings/typescript/src/internal/signing.ts +++ b/bindings/typescript/src/internal/signing.ts @@ -311,6 +311,7 @@ async function approveExact( } catch (error) { if (error instanceof ProviderOperationError) { const code = + error.causeChain.includes("invalid-response") ? "approval-response-mismatch" : error.kind === "rejected" ? "approval-rejected" : error.kind === "cancelled" ? "approval-cancelled" : error.kind === "timeout" ? "approval-timeout" : diff --git a/bindings/typescript/src/protocol.ts b/bindings/typescript/src/protocol.ts index 73df4dd18..c46634379 100644 --- a/bindings/typescript/src/protocol.ts +++ b/bindings/typescript/src/protocol.ts @@ -1,3 +1,4 @@ +import { ResourceLifecycle, openResource, type LifecycleWaitOptions } from "./internal/resource-lifecycle.js"; import type { VerificationInput, VerificationResult } from "./verify.js"; import { authsErrorFromIssue } from "./product-errors.js"; import { issue } from "./internal/issues.js"; @@ -18,17 +19,20 @@ export interface BoundedTransportRequest { } export interface BoundedTransportResponse { readonly status: number; readonly mediaType: string; readonly body: Uint8Array } export interface BoundedTransport extends AsyncDisposable { + readonly cleanupRetry?: "idempotent"; readonly contract: "bounded-byte-transport/2"; send(request: BoundedTransportRequest): Promise; - close(): Promise; + close(options?: LifecycleWaitOptions): Promise; [Symbol.asyncDispose](): Promise; } export interface RemoteVerifier extends AsyncDisposable { verify(input: VerificationInput & Readonly<{ signal?: AbortSignal }>): Promise; - close(): Promise; + close(options?: LifecycleWaitOptions): Promise; + retryCleanup(options?: LifecycleWaitOptions): Promise; [Symbol.asyncDispose](): Promise; } interface RemoteVerifierCommonOptions { + readonly signal?: AbortSignal; readonly endpoint: string | URL; readonly timeoutMs?: number; readonly maximumResponseBytes?: number; @@ -46,27 +50,31 @@ export async function connectRemoteVerifier(options: RemoteVerifierOptions): Pro const injected = "transport" in options && options.transport !== undefined; const transport = injected ? options.transport : builtinTransport(options.accessToken); const owned = injected ? options.transportOwnership === "owned" : true; - return new RemoteVerifierImpl(endpoint, timeoutMs, maximumResponseBytes, transport, owned); + return openResource(async (owner) => new RemoteVerifierImpl(endpoint, timeoutMs, maximumResponseBytes, transport, owned, owner), options); } class RemoteVerifierImpl implements RemoteVerifier { - #state: "open" | "closing" | "closed" = "open"; + readonly #lifecycle: ResourceLifecycle; readonly #endpoint: URL; readonly #timeoutMs: number; readonly #maximumResponseBytes: number; readonly #transport: BoundedTransport; - readonly #owned: boolean; - constructor(endpoint: URL, timeoutMs: number, maximumResponseBytes: number, transport: BoundedTransport, owned: boolean) { + constructor(endpoint: URL, timeoutMs: number, maximumResponseBytes: number, transport: BoundedTransport, owned: boolean, lifecycle: ResourceLifecycle) { + this.#lifecycle = lifecycle; + if (owned) lifecycle.own(transport, () => transport.close(), transport.cleanupRetry ?? "unsafe"); this.#endpoint = endpoint; this.#timeoutMs = timeoutMs; this.#maximumResponseBytes = maximumResponseBytes; this.#transport = transport; - this.#owned = owned; } async verify(input: VerificationInput & Readonly<{ signal?: AbortSignal }>): Promise { - if (this.#state !== "open") throw new TypeError("Auths remote verifier is not open"); + return this.#lifecycle.run(() => this.#verify({ ...input, proof: input.proof.slice(), action: input.action.slice(), trustedContext: input.trustedContext.slice() })); + } + + async #verify(input: VerificationInput & Readonly<{ signal?: AbortSignal }>): Promise { + if (input.signal?.aborted) throw authsErrorFromIssue(issue("remote.timeout", { causes: ["cancelled"] })); const controller = new AbortController(); const timer = setTimeout(() => controller.abort(new DOMException("Auths verification timed out", "TimeoutError")), this.#timeoutMs); const abort = () => controller.abort(input.signal?.reason); @@ -99,22 +107,19 @@ class RemoteVerifierImpl implements RemoteVerifier { } } - async close(): Promise { - if (this.#state === "closed") return; - this.#state = "closing"; - if (this.#owned) await this.#transport.close(); - this.#state = "closed"; - } + close(options: LifecycleWaitOptions = {}): Promise { return this.#lifecycle.close(options); } + retryCleanup(options: LifecycleWaitOptions = {}): Promise { return this.#lifecycle.retryCleanup(options); } async [Symbol.asyncDispose](): Promise { await this.close(); } } function builtinTransport(accessToken: string): BoundedTransport { if (typeof accessToken !== "string" || accessToken.length < 1 || accessToken.length > 8192 || /[\u0000-\u001f\u007f]/u.test(accessToken)) throw new TypeError("invalid Auths access token"); - let closed = false; + const lifecycle = new ResourceLifecycle(); return { contract: "bounded-byte-transport/2", + cleanupRetry: "idempotent", async send(request) { - if (closed) throw new TypeError("transport is closed"); + return lifecycle.run(async () => { const response = await fetch(request.url, { method: request.method, redirect: "error", @@ -127,9 +132,10 @@ function builtinTransport(accessToken: string): BoundedTransport { const bytes = new Uint8Array(await response.arrayBuffer()); if (bytes.length > request.maximumResponseBytes) throw new RangeError("remote response exceeds bound"); return Object.freeze({ status: response.status, mediaType: response.headers.get("content-type") ?? "", body: bytes }); + }); }, - async close() { closed = true; }, - async [Symbol.asyncDispose]() { closed = true; }, + close(options = {}) { return lifecycle.close(options); }, + async [Symbol.asyncDispose]() { await lifecycle.close(); }, }; } diff --git a/bindings/typescript/src/workflow-client.ts b/bindings/typescript/src/workflow-client.ts index 7fc008a8f..425649e28 100644 --- a/bindings/typescript/src/workflow-client.ts +++ b/bindings/typescript/src/workflow-client.ts @@ -8,6 +8,7 @@ export { ProviderOperationError, SignedGrantSource, TrustedContextSource, + type LifecycleWaitOptions, type AgentIdentity, type ApprovalOperationContext, type ApprovalConfiguration, @@ -64,5 +65,5 @@ export { export type LoadAuthsOptions = LoadWorkflowOptions; export async function loadAuths(options: LoadAuthsOptions) { - return createWorkflowClient(options, await loadPackagedWorkflowEngine()); + return createWorkflowClient(options, loadPackagedWorkflowEngine); } diff --git a/bindings/typescript/src/workflow/contracts.ts b/bindings/typescript/src/workflow/contracts.ts index a8304d415..cd96e2671 100644 --- a/bindings/typescript/src/workflow/contracts.ts +++ b/bindings/typescript/src/workflow/contracts.ts @@ -63,6 +63,8 @@ export interface ControlEvidence { } export interface Signer { + /** Declares that repeating a failed dispose is safe. Absence forbids automatic repetition. */ + readonly cleanupRetry?: "idempotent"; readonly kind: string; readonly lifecycle: SignerLifecycle; publicIdentity(): Promise; @@ -262,6 +264,8 @@ export interface EffectiveAuthoritySummary { } export interface AttachAgentOptions

{ + readonly signal?: AbortSignal; + readonly timeoutMs?: number; readonly name: string; readonly profile: P; readonly authority: SignedGrantSource; @@ -300,6 +304,8 @@ export interface DelegatedAuthorityRequest { } export interface DelegationOptions

{ + readonly signal?: AbortSignal; + readonly timeoutMs?: number; readonly name: string; readonly authority: DelegatedAuthorityRequest; readonly signer: Signer; diff --git a/bindings/typescript/src/workflow/internal/orchestrator.ts b/bindings/typescript/src/workflow/internal/orchestrator.ts index 7f481bc0e..0547d7665 100644 --- a/bindings/typescript/src/workflow/internal/orchestrator.ts +++ b/bindings/typescript/src/workflow/internal/orchestrator.ts @@ -1,3 +1,5 @@ +import { ResourceLifecycle, openResource, type LifecycleWaitOptions } from "../../internal/resource-lifecycle.js"; +export type { LifecycleWaitOptions } from "../../internal/resource-lifecycle.js"; import type { AuthorizedResult, DeniedResult, @@ -94,6 +96,7 @@ interface ClientResources { readonly correlationId: () => string; } +const clientLifecycles = new WeakMap(); const clientResources = new WeakMap(); const CLIENT_TOKEN: unique symbol = Symbol("auths-workflow-client"); let mintAuthsClient: ( @@ -104,12 +107,13 @@ let mintAuthsClient: ( trustedContext: Uint8Array, telemetry: TelemetryPort | undefined, correlationId: () => string, + lifecycle: ResourceLifecycle, ) => AuthsClient; export class AuthsClient implements AsyncDisposable { readonly #identity: AgentIdentity; readonly #trustedAuthority: TrustedAuthoritySnapshot; - #disposed = false; + private constructor( token: typeof CLIENT_TOKEN, @@ -120,10 +124,13 @@ export class AuthsClient implements AsyncDisposable { trustedContext: Uint8Array, telemetry: TelemetryPort | undefined, correlationId: () => string, + lifecycle: ResourceLifecycle, ) { if (token !== CLIENT_TOKEN) { throw new TypeError("sealed Auths workflow client"); } + clientLifecycles.set(this, lifecycle); + if (signer.dispose !== undefined) lifecycle.own(signer, () => signer.dispose!(), signer.cleanupRetry ?? "unsafe", 10); this.#identity = identity; this.#trustedAuthority = trustedAuthority; clientResources.set(this, { @@ -136,6 +143,11 @@ export class AuthsClient implements AsyncDisposable { telemetry, correlationId, }); + lifecycle.own(this, async () => { + const resources = clientResources.get(this); + resources?.trustedContext.fill(0); + clientResources.delete(this); + }, "idempotent", 20); } private static create( @@ -147,6 +159,7 @@ export class AuthsClient implements AsyncDisposable { trustedContext: Uint8Array, telemetry: TelemetryPort | undefined, correlationId: () => string, + lifecycle: ResourceLifecycle, ): AuthsClient { if (token !== CLIENT_TOKEN) { throw new TypeError("sealed Auths workflow client"); @@ -160,6 +173,7 @@ export class AuthsClient implements AsyncDisposable { trustedContext, telemetry, correlationId, + lifecycle, ); } @@ -172,6 +186,7 @@ export class AuthsClient implements AsyncDisposable { trustedContext, telemetry, correlationId, + lifecycle, ) => AuthsClient.create( CLIENT_TOKEN, @@ -182,11 +197,12 @@ export class AuthsClient implements AsyncDisposable { trustedContext, telemetry, correlationId, + lifecycle, ); } get disposed(): boolean { - return this.#disposed; + return !clientLifecycles.get(this)!.isOpen; } get identity(): AgentIdentity { @@ -197,47 +213,21 @@ export class AuthsClient implements AsyncDisposable { return copyTrustedAuthoritySnapshot(this.#trustedAuthority); } - assertActive(): void { - if (this.#disposed) { - throw new AuthsWorkflowError("disposed", "Auths client is disposed"); - } + assertActive(): void { clientLifecycles.get(this)!.assertOpen(); } + + async attachAgent

(options: AttachAgentOptions

): Promise> { + return clientLifecycles.get(this)!.publish( + () => attachAgent(this, options), + (agent, retry) => retry ? agent.retryCleanup() : agent.dispose(), options, "idempotent", + ); } - async attachAgent

( - options: AttachAgentOptions

, - ): Promise> { - return attachAgent(this, options); + dispose(options: LifecycleWaitOptions = {}): Promise { + return clientLifecycles.get(this)!.close(options); } - async dispose(): Promise { - if (this.#disposed) return; - this.#disposed = true; - const resources = clientResources.get(this); - let cleanupFailed = false; - if (resources !== undefined) { - for (const agent of Array.from(resources.attachedAgents)) { - try { - await agent.dispose(); - } catch { - cleanupFailed = true; - } - } - } - if (resources?.signer.dispose !== undefined) { - try { - await resources.signer.dispose(); - } catch { - cleanupFailed = true; - } - } - resources?.trustedContext.fill(0); - clientResources.delete(this); - if (cleanupFailed) { - throw new AuthsWorkflowError( - "signer-failed", - "one or more signer providers failed during cleanup", - ); - } + retryCleanup(options: LifecycleWaitOptions = {}): Promise { + return clientLifecycles.get(this)!.retryCleanup(options); } async [Symbol.asyncDispose](): Promise { @@ -308,7 +298,7 @@ export class AttachedAgent

implements AsyncDisposable { readonly #identity: AgentIdentity; readonly #profile: P; readonly #authority: EffectiveAuthoritySummary; - #disposed = false; + readonly #lifecycle = new ResourceLifecycle(); private constructor( token: typeof ATTACHED_AGENT_TOKEN, @@ -345,6 +335,19 @@ export class AttachedAgent

implements AsyncDisposable { clientResources .get(client) ?.attachedAgents.add(this as AttachedAgent); + clientLifecycles.get(client)!.own(this, (retry) => retry ? this.retryCleanup() : this.dispose(), "idempotent"); + if (ownsSigner && signer.dispose !== undefined) this.#lifecycle.own(signer, () => signer.dispose!(), signer.cleanupRetry ?? "unsafe", 10); + this.#lifecycle.own(this, async () => { + const resources = attachedAgentResources.get(this as AttachedAgent); + resources?.signedGrant.fill(0); + resources?.grantStatement.fill(0); + for (const material of resources?.grantChain ?? []) { + material.signedGrant.fill(0); + for (const evidence of material.evidence) evidence.bytes.fill(0); + } + attachedAgentResources.delete(this as AttachedAgent); + clientResources.get(client)?.attachedAgents.delete(this as AttachedAgent); + }, "idempotent", 20); } private static create

( @@ -421,7 +424,7 @@ export class AttachedAgent

implements AsyncDisposable { } get disposed(): boolean { - return this.#disposed; + return !this.#lifecycle.isOpen; } get delegation(): DelegationReview | undefined { @@ -432,21 +435,36 @@ export class AttachedAgent

implements AsyncDisposable { async delegate(options: DelegationOptions

): Promise> { this.assertActive(); - const { delegateAttachedAgent } = await import( - "../../internal/delegation.js" - ); - return delegateAttachedAgent(this, options); + const signer = options.signer; + const snapshot = { ...options, signer, authority: structuredClone(options.authority), + ...(options.profile === undefined ? {} : { profile: copyProfile(options.profile) as P }) }; + const client = attachedAgentResources.get(this as AttachedAgent)!.client; + const owner = clientLifecycles.get(client)!; + return this.#use(() => owner.publish(async () => { + if (signer.dispose !== undefined) owner.own(signer, () => signer.dispose!(), signer.cleanupRetry ?? "unsafe", 10); + try { + const { delegateAttachedAgent } = await import("../../internal/delegation.js"); + const child = await delegateAttachedAgent(this, snapshot); + owner.transfer(signer); + return child; + } finally { + await owner.disposeOwned(signer); + } + }, (agent, retry) => retry ? agent.retryCleanup() : agent.dispose(), options, "idempotent")); } async reviewDelegation(options: DelegationOptions

): Promise { + return this.#use(async () => { this.assertActive(); const { reviewDelegation } = await import("../../internal/delegation.js"); return reviewDelegation(this, options); + }); } async authorize( action: P["__action"], ): Promise>> { + return this.#use(async () => { this.assertActive(); const runtime = profileRuntimeFor(this.#profile); if (runtime === undefined) { @@ -459,12 +477,14 @@ export class AttachedAgent

implements AsyncDisposable { this as AttachedAgent, action, ) as Promise>>; + }); } async authorizePlan( plan: ProfilePlan>, options: Readonly<{ approvalProvider?: ApprovalProvider }> = {}, ): Promise>> { + return this.#use(async () => { this.assertActive(); const actions = actionsForPlan(plan, this.#profile); const memberCommitments = memberCommitmentsForPlan(plan, this.#profile); @@ -531,46 +551,23 @@ export class AttachedAgent

implements AsyncDisposable { } finally { await session.dispose(); } + }); } assertActive(): void { - const resources = attachedAgentResources.get( - this as AttachedAgent, - ); - if (this.#disposed || resources === undefined) { - throw new AuthsWorkflowError("disposed", "attached agent is disposed"); - } + this.#lifecycle.assertOpen(); + const resources = attachedAgentResources.get(this as AttachedAgent); + if (resources === undefined) throw new AuthsWorkflowError("disposed", "attached agent is disposed"); resources.client.assertActive(); } - async dispose(): Promise { - if (this.#disposed) return; - this.#disposed = true; - const resources = attachedAgentResources.get( - this as AttachedAgent, - ); - attachedAgentResources.delete(this as AttachedAgent); - if (resources !== undefined) { - clientResources - .get(resources.client) - ?.attachedAgents.delete(this as AttachedAgent); - } - resources?.signedGrant.fill(0); - resources?.grantStatement.fill(0); - for (const material of resources?.grantChain ?? []) { - material.signedGrant.fill(0); - for (const evidence of material.evidence) evidence.bytes.fill(0); - } - if (resources?.ownsSigner && resources.signer.dispose !== undefined) { - try { - await resources.signer.dispose(); - } catch { - throw new AuthsWorkflowError( - "signer-failed", - "child signer provider cleanup failed", - ); - } - } + dispose(options: LifecycleWaitOptions = {}): Promise { return this.#lifecycle.close(options); } + retryCleanup(options: LifecycleWaitOptions = {}): Promise { return this.#lifecycle.retryCleanup(options); } + + #use(operation: () => Promise): Promise { + this.assertActive(); + const client = attachedAgentResources.get(this as AttachedAgent)!.client; + return clientLifecycles.get(client)!.run(() => this.#lifecycle.run(operation)); } async [Symbol.asyncDispose](): Promise { @@ -586,17 +583,28 @@ function stripPlanCommand( return Object.freeze(verification); } -export interface LoadWorkflowOptions { +export interface LoadWorkflowOptions extends LifecycleWaitOptions { readonly signer: Signer; readonly trustedAuthority: TrustedAuthority; readonly telemetry?: TelemetryPort; readonly correlationId?: () => string; } -export async function createWorkflowClient( - options: LoadWorkflowOptions, - engine: WorkflowWasmEngine, -): Promise { +export function createWorkflowClient(options: LoadWorkflowOptions, engine: WorkflowWasmEngine | Promise | (() => Promise)): Promise { + return openResource(async (lifecycle) => { + const signer = options.signer; + validateSignerShape(signer); + if (signer.dispose !== undefined) lifecycle.own(signer, () => signer.dispose!(), signer.cleanupRetry ?? "unsafe", 10); + const authority = copyTrustedAuthority(options.trustedAuthority); + const snapshot: LoadWorkflowOptions = { + ...options, signer, + trustedAuthority: { ...authority, context: options.trustedAuthority.context }, + }; + return initializeWorkflowClient(snapshot, typeof engine === "function" ? await engine() : await engine, lifecycle); + }, options); +} + +async function initializeWorkflowClient(options: LoadWorkflowOptions, engine: WorkflowWasmEngine, lifecycle: ResourceLifecycle): Promise { validateSignerShape(options.signer); let trustedAuthority: TrustedAuthoritySnapshot; let trustedContext: Uint8Array; @@ -678,7 +686,6 @@ export async function createWorkflowClient( ); } } catch (error) { - await cleanupAfterFailedLoad(options.signer); if (error instanceof AuthsWorkflowError) throw error; throw new AuthsWorkflowError( "invalid-provider", @@ -706,9 +713,9 @@ export async function createWorkflowClient( trustedContext, options.telemetry, options.correlationId ?? workflowCorrelationId, + lifecycle, ); } catch (error) { - await cleanupAfterFailedLoad(options.signer); if (error instanceof AuthsWorkflowError) throw error; throw new AuthsWorkflowError( "invalid-principal", @@ -1028,14 +1035,7 @@ function validateSignerShape(signer: Signer): void { boundedIdentifier(signer.kind, "signer kind"); } -async function cleanupAfterFailedLoad(signer: Signer): Promise { - if (signer.dispose === undefined) return; - try { - await signer.dispose(); - } catch { - // Preserve the fail-closed construction error and do not expose provider data. - } -} + let workflowCorrelationSequence = 0; diff --git a/bindings/typescript/test/helpers/adapter-lifecycle-contract.mjs b/bindings/typescript/test/helpers/adapter-lifecycle-contract.mjs new file mode 100644 index 000000000..ae97847f6 --- /dev/null +++ b/bindings/typescript/test/helpers/adapter-lifecycle-contract.mjs @@ -0,0 +1,45 @@ +import assert from "node:assert/strict"; +import { deferred } from "./resource-lifecycle-contract.mjs"; + +export async function adapterLifecycleContract(t, { connectRemoteVerifier, createIdentityClient }) { + const factories = { + remote: async (adapters, owned) => connectRemoteVerifier({ endpoint: "https://verification.auths.example", transport: adapters[0], transportOwnership: owned ? "owned" : "borrowed" }), + identity: async (adapters, owned) => createIdentityClient({ methods: [adapters[0]], authenticators: [adapters[1]], adapterOwnership: owned ? "owned" : "borrowed" }), + }; + for (const [name, create] of Object.entries(factories)) { + for (const owned of [true, false]) await t.test(`C4/C7: ${name} ${owned ? "owned" : "borrowed"} adapters obey cleanup ownership`, async () => { + const counts = [0, 0]; const adapters = counts.map((_, index) => ({ + contract: "bounded-byte-transport/2", id: "test-method", suiteId: "test-suite", version: 1, + cleanupRetry: "idempotent", async send() { throw new Error("unused"); }, + async resolve() { throw new Error("unused"); }, async validate() { throw new Error("unused"); }, async verify() { throw new Error("unused"); }, + async close() { counts[index]++; if (index === 0 && counts[index] === 1) throw new Error("private provider failure"); }, + async [Symbol.asyncDispose]() { await this.close(); }, + })); + const client = await create(adapters, owned); + if (owned) { + await assert.rejects(client.close(), (error) => error.code === "signer-failed"); + await assert.rejects(client.close(), (error) => error.code === "signer-failed"); + assert.equal(counts[0], 1); + if (name === "identity") assert.equal(counts[1], 1); + await client.retryCleanup(); await client.close(); + assert.equal(counts[0], 2); + if (name === "identity") assert.equal(counts[1], 1); + } else { + await client.close(); await client.retryCleanup(); assert.deepEqual(counts, [0, 0]); + } + }); + } + await t.test("C2/C7: remote close retains an owned transport until its send settles", async () => { + const entered = deferred(), returned = deferred(); let closes = 0; + const client = await connectRemoteVerifier({ endpoint: "https://verification.auths.example", transportOwnership: "owned", transport: { + contract: "bounded-byte-transport/2", async send() { entered.resolve(); return returned.promise; }, + async close() { closes++; }, async [Symbol.asyncDispose]() { await this.close(); }, + } }); + const pending = client.verify({ proof: new Uint8Array([1]), action: new Uint8Array([2]), trustedContext: new Uint8Array([3]) }); + await entered.promise; + const failed = assert.rejects(pending); const closing = client.close(); + assert.equal(closes, 0); + returned.resolve({ status: 500, mediaType: "application/cbor", body: new Uint8Array() }); + await failed; await closing; assert.equal(closes, 1); + }); +} diff --git a/bindings/typescript/test/helpers/resource-lifecycle-contract.mjs b/bindings/typescript/test/helpers/resource-lifecycle-contract.mjs new file mode 100644 index 000000000..1893a3b2e --- /dev/null +++ b/bindings/typescript/test/helpers/resource-lifecycle-contract.mjs @@ -0,0 +1,189 @@ +import assert from "node:assert/strict"; + +export const deferred = () => { + let resolve, reject; + const promise = new Promise((yes, no) => { resolve = yes; reject = no; }); + return { promise, resolve, reject }; +}; +const disposed = (error) => error?.code === "disposed"; +const cleanup = (reason) => (error) => error?.code === "signer-failed" && error.causeChain.includes(reason); +const until = async (predicate) => { + for (let index = 0; index < 40 && !predicate(); index++) await Promise.resolve(); + assert.ok(predicate(), "owned transition did not settle"); +}; +function timing() { + let now = 100; + const jobs = new Map(); + return { now: () => now, schedule(callback, delay) { + const key = Symbol(); jobs.set(key, { callback, due: now + delay }); + return () => jobs.delete(key); + }, advance(delta) { + now += delta; + for (const [key, job] of [...jobs]) if (job.due <= now) { jobs.delete(key); job.callback(); } + }, jobs }; +} + +/** Identical schedules against source-built and source-free installed owners. */ +export async function resourceLifecycleContract(t, { ResourceLifecycle, openResource }) { + await t.test("C1: concurrent opening shares work; cancelling one waiter detaches only it", async () => { + const owner = new ResourceLifecycle("new"); + const gate = deferred(); let calls = 0; + const abort = new AbortController(); + const first = owner.open(async () => { calls++; await gate.promise; }, { signal: abort.signal }); + const second = owner.open(async () => { throw new Error("duplicate opening"); }); + const rejected = assert.rejects(first, disposed); abort.abort(); await rejected; + gate.resolve(); await second; + assert.equal(calls, 1); assert.equal(owner.state, "open"); + await owner.close(); await assert.rejects(owner.open(async () => {}), disposed); + }); + + await t.test("C1/C3: close invalidates opening, retains late acquisition, and never reopens", async () => { + const owner = new ResourceLifecycle("new"); const gate = deferred(); let destroyed = 0; + const opening = owner.open(async () => { await gate.promise; owner.own({}, async () => { destroyed++; }); }); + const rejected = assert.rejects(opening, disposed); + const closing = owner.close(); await rejected; + assert.equal(owner.state, "closing"); assert.equal(destroyed, 0); + gate.resolve(); await closing; + assert.equal(owner.state, "closed"); assert.equal(destroyed, 1); + }); + + await t.test("C2: shared close, caller cancellation, and active ownership prevent premature destruction", async () => { + const owner = new ResourceLifecycle(); const work = deferred(), destructor = deferred(), entered = deferred(); + let calls = 0; + owner.own({}, async () => { calls++; entered.resolve(); await destructor.promise; }); + const operation = owner.run(() => work.promise); + const controller = new AbortController(); + const first = owner.close({ signal: controller.signal }); const second = owner.close(); + const rejected = assert.rejects(first, disposed); controller.abort(); await rejected; + assert.equal(calls, 0); assert.throws(() => owner.run(async () => {}), disposed); + work.resolve("recorded-result"); assert.equal(await operation, "recorded-result"); + await entered.promise; assert.equal(calls, 1); + destructor.resolve(); await second; await owner.close(); assert.equal(calls, 1); + }); + + await t.test("C3/C4: failed opening returns original failure and retains independent cleanup failures", async () => { + const owner = new ResourceLifecycle("new"); const gate = deferred(), entered = deferred(); + const original = new Error("original opening failure"); let independent = 0; + await assert.rejects(owner.open(async () => { + owner.own({}, async () => { entered.resolve(); await gate.promise; throw new Error("private cleanup failure"); }); + owner.own({}, async () => { independent++; }); + throw original; + }), (error) => error === original); + const closed = assert.rejects(owner.close(), cleanup("cleanup-failed")); + await entered.promise; gate.resolve(); await closed; + assert.equal(independent, 1); assert.equal(owner.state, "cleanup-failed"); + await assert.rejects(owner.open(async () => {}), disposed); + }); + + await t.test("C4: explicit retry joins one generation, skips successes, and retains unsafe failures", async () => { + const owner = new ResourceLifecycle(); const retried = deferred(), entered = deferred(); + let safe = 0, unsafe = 0, successful = 0; + owner.own({}, async (retry) => { safe++; if (!retry) throw new Error(); entered.resolve(); await retried.promise; }, "idempotent"); + owner.own({}, async () => { unsafe++; throw new Error(); }); + owner.own({}, async () => { successful++; }); + await assert.rejects(owner.close(), cleanup("cleanup-failed")); + await assert.rejects(owner.close(), cleanup("cleanup-failed")); + assert.deepEqual([safe, unsafe, successful], [1, 1, 1]); + const first = assert.rejects(owner.retryCleanup(), cleanup("cleanup-failed")); + await entered.promise; + const joined = assert.rejects(owner.close(), cleanup("cleanup-failed")); + const otherRetry = assert.rejects(owner.retryCleanup(), cleanup("cleanup-failed")); + retried.resolve(); await Promise.all([first, joined, otherRetry]); + assert.deepEqual([safe, unsafe, successful], [2, 1, 1]); + }); + + await t.test("C5: private shorter timeout cannot replace the cleanup generation deadline", async () => { + const clock = timing(); const owner = new ResourceLifecycle("open", clock); const gate = deferred(), entered = deferred(); + owner.own({}, async () => { entered.resolve(); await gate.promise; }); + const first = assert.rejects(owner.close({ timeoutMs: 20 }), cleanup("cleanup-incomplete")); + await entered.promise; + const short = assert.rejects(owner.close({ timeoutMs: 5 }), disposed); + const shared = assert.rejects(owner.close(), cleanup("cleanup-incomplete")); + clock.advance(5); await short; assert.equal(owner.state, "closing"); + clock.advance(15); await Promise.all([first, shared]); assert.equal(owner.state, "closing-overdue"); + await assert.rejects(owner.close(), cleanup("cleanup-incomplete")); + await assert.rejects(owner.retryCleanup(), cleanup("cleanup-incomplete")); + gate.resolve(); await until(() => owner.state === "closed"); + await owner.close(); assert.equal(clock.jobs.size, 0); + }); + + for (const event of ["close", "cancel", "timeout"]) await t.test(`C6: attachment racing ${event} cannot publish or lose a late child`, async () => { + const clock = timing(); const owner = new ResourceLifecycle("open", clock); const created = deferred(), cleaned = deferred(); const controller = new AbortController(); + let calls = 0; + const pending = owner.publish(() => created.promise, async () => { calls++; cleaned.resolve(); }, { signal: controller.signal, ...(event === "timeout" ? { timeoutMs: 5 } : {}) }); + const rejected = assert.rejects(pending, disposed); + let closing; + if (event === "close") closing = owner.close(); else if (event === "timeout") clock.advance(5); else controller.abort(); + await rejected; assert.equal(calls, 0); + created.resolve({ child: true }); await cleaned.promise; + if (closing !== undefined) await closing; else await owner.close(); + assert.equal(calls, 1); assert.equal(owner.state, "closed"); + }); + + await t.test("C6: successful publication registers ownership before a caller can close", async () => { + const owner = new ResourceLifecycle(); let calls = 0; + const child = await owner.publish(async () => ({}), async () => { calls++; }); + assert.ok(child); await owner.close(); assert.equal(calls, 1); + }); + + await t.test("C3: an active operation survives the cleanup deadline before zeroization", async () => { + const clock = timing(); const owner = new ResourceLifecycle("open", clock); + const gate = deferred(); const bytes = new Uint8Array([7, 8, 9]); let destroyed = 0; + owner.own(bytes, async () => { bytes.fill(0); destroyed++; }); + const active = owner.run(async () => { await gate.promise; assert.deepEqual(bytes, new Uint8Array([7, 8, 9])); return "recorded-result"; }); + const close = assert.rejects(owner.close({ timeoutMs: 10 }), cleanup("cleanup-incomplete")); + clock.advance(10); await close; + assert.equal(destroyed, 0); assert.equal(owner.state, "closing-overdue"); + gate.resolve(); assert.equal(await active, "recorded-result"); + await until(() => owner.state === "closed"); + assert.deepEqual(bytes, new Uint8Array(3)); assert.equal(destroyed, 1); + }); + + await t.test("C4: one and then all opening waiters time out without cancelling initialization", async () => { + const clock = timing(); const owner = new ResourceLifecycle("new", clock); const gate = deferred(); let calls = 0; + const first = assert.rejects(owner.open(async () => { calls++; await gate.promise; }, { timeoutMs: 5 }), disposed); + const second = assert.rejects(owner.open(async () => { throw new Error("duplicate"); }, { timeoutMs: 10 }), disposed); + clock.advance(5); await first; assert.equal(owner.state, "opening"); + clock.advance(5); await second; assert.equal(owner.state, "opening"); + gate.resolve(); await until(() => owner.state === "open"); + assert.equal(calls, 1); await owner.close(); + }); + + await t.test("C5: abort after attachment publication does not retroactively abandon the child", async () => { + const owner = new ResourceLifecycle(); const caller = new AbortController(); let destroyed = 0; + const child = await owner.publish(async () => ({}), async () => { destroyed++; }, { signal: caller.signal }); + caller.abort(); assert.ok(child); assert.equal(destroyed, 0); + await owner.close(); assert.equal(destroyed, 1); + }); + + await t.test("C7: a late cleanup failure settles overdue ownership and permits only explicit safe retry", async () => { + const clock = timing(); const owner = new ResourceLifecycle("open", clock); const gate = deferred(); let calls = 0; + owner.own({}, async (retry) => { calls++; if (!retry) await gate.promise; }, "idempotent"); + const closing = assert.rejects(owner.close({ timeoutMs: 10 }), cleanup("cleanup-incomplete")); + clock.advance(10); await closing; assert.equal(owner.state, "closing-overdue"); + gate.reject(new Error("private cleanup failure")); await until(() => owner.state === "cleanup-failed"); + await assert.rejects(owner.close(), cleanup("cleanup-failed")); assert.equal(calls, 1); + await owner.retryCleanup(); assert.equal(calls, 2); assert.equal(owner.state, "closed"); + }); + + await t.test("C1/C7: an abandoned factory owns and closes its late result", async () => { + const gate = deferred(), entered = deferred(), cleaned = deferred(); const controller = new AbortController(); let calls = 0; + const factory = openResource(async (owner) => { + entered.resolve(); await gate.promise; + owner.own({}, async () => { calls++; cleaned.resolve(); }); + return { owner }; + }, { signal: controller.signal }); + await entered.promise; + const rejected = assert.rejects(factory, disposed); controller.abort(); await rejected; + gate.resolve(); await cleaned.promise; assert.equal(calls, 1); + }); + + await t.test("C7: pre-abort and invalid timeouts do not start opening, attachment, or cleanup", async () => { + const owner = new ResourceLifecycle("new"); let calls = 0; + assert.throws(() => owner.open(async () => { calls++; }, { signal: AbortSignal.abort() }), disposed); + for (const timeoutMs of [0, -1, NaN, Infinity]) assert.throws(() => owner.close({ timeoutMs }), TypeError); + assert.equal(calls, 0); assert.equal(owner.state, "new"); + await assert.rejects(owner.retryCleanup(), disposed); + await owner.close(); + }); +} diff --git a/bindings/typescript/test/integration/adapter-lifecycle.test.js b/bindings/typescript/test/integration/adapter-lifecycle.test.js new file mode 100644 index 000000000..d554712eb --- /dev/null +++ b/bindings/typescript/test/integration/adapter-lifecycle.test.js @@ -0,0 +1,5 @@ +import test from "node:test"; +import { connectRemoteVerifier } from "../../dist/protocol.js"; +import { createIdentityClient } from "../../dist/identity/adapters.js"; +import { adapterLifecycleContract } from "../helpers/adapter-lifecycle-contract.mjs"; +test("AP076 identity and remote owner integration", (t) => adapterLifecycleContract(t, { connectRemoteVerifier, createIdentityClient })); diff --git a/bindings/typescript/test/integration/workflow/attach.test.js b/bindings/typescript/test/integration/workflow/attach.test.js index 37960c0d7..a3f372fcb 100644 --- a/bindings/typescript/test/integration/workflow/attach.test.js +++ b/bindings/typescript/test/integration/workflow/attach.test.js @@ -277,3 +277,24 @@ test("disposing the parent client invalidates attached agents", async () => { ); await attached.dispose(); }); + +for (const event of ["close", "cancel"]) test(`AP076 attachment racing ${event} retains the root until provider settlement`, async () => { + let enter, complete; + const entered = new Promise((resolve) => { enter = resolve; }); + const returned = new Promise((resolve) => { complete = resolve; }); + const { client, source, counters } = await fixture({ provider: { + loadSignedGrant() { enter(); return returned; }, + } }); + const controller = new AbortController(); + const attachment = client.attachAgent({ name: "pending-agent", profile: PROFILE, authority: source, + approval: approval(), signal: controller.signal }); + await entered; + const rejected = assert.rejects(attachment, (error) => error.code === "disposed"); + let closing; + if (event === "close") closing = client.dispose(); else controller.abort(); + await rejected; + assert.equal(counters.disposals, 0); + complete({ signedGrant: signedRootGrant(), evidence: [] }); + await (closing ?? client.dispose()); + assert.equal(counters.disposals, 1); +}); diff --git a/bindings/typescript/test/integration/workflow/client.test.js b/bindings/typescript/test/integration/workflow/client.test.js index 819bbd4e4..48fcf335a 100644 --- a/bindings/typescript/test/integration/workflow/client.test.js +++ b/bindings/typescript/test/integration/workflow/client.test.js @@ -485,3 +485,43 @@ test("the transaction binding comes from the core, not from the binding", async assert.deepEqual(result.transactionDigest, stated); assert.deepEqual(seen.ids, [statedRequestId, statedRequestId]); }); + +test("AP076 workflow close callers share a single owned destructor", async () => { + let enter, complete; + const entered = new Promise((resolve) => { enter = resolve; }); + const released = new Promise((resolve) => { complete = resolve; }); + let calls = 0; + const client = await loadAuths({ signer: { + kind: "lifecycle-test", lifecycle: "ephemeral", publicIdentity: async () => descriptor(), + async sign() { throw new Error("not used"); }, + async dispose() { calls++; enter(); await released; }, + }, trustedAuthority: { authorityId: "local.test-root", rootPrincipal: ROOT, + verifierConfiguration: await packagedConfiguration(), context: contextSource(), requiredApproval: policy() } }); + const controller = new AbortController(); + const first = client.dispose({ signal: controller.signal }); + await entered; + const second = client.dispose(); + const rejected = assert.rejects(first, (error) => error.code === "disposed"); + controller.abort(); await rejected; + assert.equal(client.disposed, true); assert.equal(calls, 1); + complete(); await second; await client.dispose(); assert.equal(calls, 1); +}); + + +test("AP076 a cancelled workflow factory retains and cleans its late signer result", async () => { + let enter, complete, cleaned; + const entered = new Promise((resolve) => { enter = resolve; }); + const returned = new Promise((resolve) => { complete = resolve; }); + const disposed = new Promise((resolve) => { cleaned = resolve; }); + let calls = 0; const caller = new AbortController(); + const opening = loadAuths({ signal: caller.signal, signer: { + kind: "factory-lifecycle-test", lifecycle: "ephemeral", + async publicIdentity() { enter(); return returned; }, async sign() { throw new Error("unused"); }, + async dispose() { calls++; cleaned(); }, + }, trustedAuthority: { authorityId: "local.test-root", rootPrincipal: ROOT, + verifierConfiguration: await packagedConfiguration(), context: contextSource(), requiredApproval: policy() } }); + await entered; + const rejected = assert.rejects(opening, (error) => error.code === "disposed"); + caller.abort(); await rejected; assert.equal(calls, 0); + complete(descriptor()); await disposed; assert.equal(calls, 1); +}); diff --git a/bindings/typescript/test/package/packed-adapter-lifecycle.test.js b/bindings/typescript/test/package/packed-adapter-lifecycle.test.js new file mode 100644 index 000000000..8e6643873 --- /dev/null +++ b/bindings/typescript/test/package/packed-adapter-lifecycle.test.js @@ -0,0 +1,14 @@ +import test from "node:test"; +import { rm } from "node:fs/promises"; +import { join } from "node:path"; +import { pathToFileURL } from "node:url"; +import { installPackedSdk } from "./helpers/packed-install.mjs"; +import { adapterLifecycleContract } from "../helpers/adapter-lifecycle-contract.mjs"; +test("AP076 adapters from the installed source-free package", async (t) => { + const { directory } = await installPackedSdk("auths-adapter-lifetimes-"); + try { + const load = (path) => import(pathToFileURL(join(directory, "node_modules/@auths-dev/sdk/dist", path)).href); + const [protocol, identity] = await Promise.all([load("protocol.js"), load("identity/adapters.js")]); + await adapterLifecycleContract(t, { ...protocol, ...identity }); + } finally { await rm(directory, { recursive: true, force: true }); } +}); diff --git a/bindings/typescript/test/package/packed-resource-lifecycle.test.js b/bindings/typescript/test/package/packed-resource-lifecycle.test.js new file mode 100644 index 000000000..066218d43 --- /dev/null +++ b/bindings/typescript/test/package/packed-resource-lifecycle.test.js @@ -0,0 +1,13 @@ +import test from "node:test"; +import { rm } from "node:fs/promises"; +import { join } from "node:path"; +import { pathToFileURL } from "node:url"; +import { installPackedSdk } from "./helpers/packed-install.mjs"; +import { resourceLifecycleContract } from "../helpers/resource-lifecycle-contract.mjs"; +test("AP076 resource ownership in the installed source-free package", async (t) => { + const { directory } = await installPackedSdk("auths-resource-owner-"); + try { + const lifecycle = await import(pathToFileURL(join(directory, "node_modules/@auths-dev/sdk/dist/internal/resource-lifecycle.js")).href); + await resourceLifecycleContract(t, lifecycle); + } finally { await rm(directory, { recursive: true, force: true }); } +}); diff --git a/bindings/typescript/test/unit/resource-lifecycle.test.js b/bindings/typescript/test/unit/resource-lifecycle.test.js new file mode 100644 index 000000000..406808d04 --- /dev/null +++ b/bindings/typescript/test/unit/resource-lifecycle.test.js @@ -0,0 +1,4 @@ +import test from "node:test"; +import * as lifecycle from "../../dist/internal/resource-lifecycle.js"; +import { resourceLifecycleContract } from "../helpers/resource-lifecycle-contract.mjs"; +test("AP076 local resource ownership", (t) => resourceLifecycleContract(t, lifecycle)); diff --git a/docs/plans/0076-implementation-status.md b/docs/plans/0076-implementation-status.md index 265b3f9a6..3691f4d5c 100644 --- a/docs/plans/0076-implementation-status.md +++ b/docs/plans/0076-implementation-status.md @@ -9,20 +9,26 @@ Branch: `codex/explicit-state-ownership-spec`. ## Current authoritative status -No verification result is claimed yet. Approval/exporter implementation and -regressions are being assembled as one batch before hosted verification. -SDK lifecycle, payload and administrative-recovery work remain required. +Draft [PR #217](https://github.com/auths-dev/auths-proof/pull/217) contains the +initial approval/exporter batch at `35c6bd628a712c45e53aefec1995674ea94535da`. +Initial hosted verification exposed a Rust lint failure and approval mismatch +error projection regression. These are collected for the final repair batch. +The complete candidate implementation and regression batch is now written. +The two initial hosted failures have source repairs. Final review, generated +artifacts and bounded reproductions of the failed checks are in progress; +no completed-head CI success or merge is claimed. No intermediate revision has +been pushed while writing the remaining code. | Requirements | Implementation / test owner | Evidence disposition | | --- | --- | --- | -| A1–A6; sections 4–5 | TypeScript `approvals.ts`, `internal/approval-operation.ts`, `test/helpers/approval-state-contract.mjs`; unit and installed-package consumers | Candidate implementation/tests written; GitHub verification pending. | -| B1–B4; section 6 | `auths-operations-otel/src/exporter.rs`, `exporter/tests.rs` | Candidate implementation/tests written; GitHub verification pending. | -| C1–C7; section 7 | Python and TypeScript client, attached-agent, identity and transport owners | Not implemented. | -| D1; section 8.1 | Submission phases and mutation-journal payloads, native differential corpus | Not implemented. | -| D0; section 8.4 | Administrative-recovery protocol, command/transition and durability/interruption matrices | Design incomplete; no runtime recovery cutover yet. | -| D2–D4; sections 8.2–8.3 | Installation, candidate publication, retirement, qualification import; file/native backend evidence | Not implemented. | +| A1–A6; sections 4–5 | TypeScript `approvals.ts`, `internal/approval-operation.ts`, `test/helpers/approval-state-contract.mjs`; unit and installed-package consumers | Candidate implementation/tests written; initial GitHub cohort failed; final verification pending. | +| B1–B4; section 6 | `auths-operations-otel/src/exporter.rs`, `exporter/tests.rs` | Candidate implementation/tests written; initial GitHub cohort failed; final verification pending. | +| C1–C7; section 7 | Python and TypeScript client, attached-agent, identity and transport owners | Candidate implementation and source/installed-package schedules written; integration audit and final verification pending. | +| D1; section 8.1 | `submit.rs`, `store.rs`, `store/mutation_phase_tests.rs`; retained native mutation, recovery, receipt and file/TLS PostgreSQL corpora | Closed phase payloads and hostile persisted-state corpus written; generated evidence and final verification pending. See [payload ownership](0076-payload-ownership.md). | +| D0; section 8.4 | [AP-SPEC-077](../specs/0077-administrative-recovery-protocol.md) | Concrete authority, command, transition, conflict and durability contract written; implementation acceptance remains separate. | +| D2–D4; sections 8.2–8.3 | `credential_journal.rs`, `connection.rs`, `candidate_runtime.rs`, `engine.rs`, gateway CLI; owners below | Recovery/status/resume, phase-bearing cleanup notes, conservative retirement and qualification recovery written; interruption and competing-operator tests written; final verification pending. | | P1; section 10 | Root `AGENTS.md` explicit state ownership and stateful change checklist | Policy text added; per-batch evidence and final audit pending. | -| Section 11; user objective | Completed-source CI, PR state and merge commit | No PR or merge result claimed. | +| Section 11; user objective | Completed-source CI, PR state and merge commit | Draft PR #217; no merge or successful full-source CI claimed. | ## Verification discipline @@ -32,9 +38,48 @@ together before bounded local diagnosis and a coherent repair. Do not replace required checks with narrower checks, or count intentionally gated production qualification as established by this engineering work. +The final-batch bounded reproductions passed the full workspace/all-targets/ +all-features Clippy check, TypeScript contract check, unit suite (84 tests), +focused workflow/adapter/lifecycle regression batch (45 tests), and the new +installed-package lifecycle/adapter checks (23 tests). WASM and binding vectors +were rebuilt as prerequisites. The gateway semantic closure, TypeScript public +declarations and semantic freeze are regenerated using their maintained +constructors. These local results do not replace completed-head hosted evidence; +Python runtime and native durable interruption results are not claimed here. + +## Concrete evidence owners + +Paths in this section are relative to the repository root. Each owner is a +candidate until the completed revision passes its hosted gate. + +| Protocol boundary / schedule | Test owner and observable contract | +| --- | --- | +| Approval admission, mutation, invalidation, exact deadlines and rollback | `bindings/typescript/test/helpers/approval-state-contract.mjs`, consumed by unit and packed-package tests: retained request binding, one pending operation and no stale approval. | +| Export cohorts, capacity, joined failure, reentry and unwind | `product/operations/auths-operations-otel/src/exporter/tests.rs`: one owned batch, exact shared outcome and retained unavailable work. | +| Shared opening/closing, private waiter cancellation, overdue cleanup and explicit safe retry | `bindings/typescript/test/helpers/resource-lifecycle-contract.mjs` and `bindings/python/tests/test_resource_lifecycle.py`: deterministic completions and clocks; original generation outcomes remain stable. | +| Public owned/borrowed adapters and active transport use | TypeScript `test/helpers/adapter-lifecycle-contract.mjs` (source and installed package), Python `test_resource_lifecycle.py`: destruction follows real operation settlement and only unresolved safe cleanup repeats. | +| Factory abandonment and attachment publication racing shutdown | TypeScript workflow `test/integration/workflow/{client,attach}.test.js`, packed lifecycle contract and Python `tests/test_workflow.py`: late resources stay owned, no late publication or premature signer destruction. | +| Submission, journal phase payloads, commands, receipts and counters | Gateway `src/store/mutation_phase_tests.rs` plus existing mutation/native-generated-history, recovery, fault, receipt and file/TLS PostgreSQL tests. Canonical wire projection is retained; illegal field combinations reject. | +| Draft, retained inputs, manifest, journal and installation custody/native/floor boundaries | Gateway `tests/qualification_gate.rs::ap076_recovery::installation_recovers_or_explicitly_quarantines_every_interruption_boundary`: trace each boundary, terminate the process, resume exact identity or explicitly quarantine unknown custody creation; repeated status and restart. | +| Read-bearing first installation, custody/floor and proposal publication | Gateway `tests/candidate_cli.rs::candidate_installation_fault_matrix`, invoked by the existing first-installation fixture: staging never publishes a native connection; exact replay preserves draft/proposal identity. | +| Candidate acquisition/publication guards, competing operations and lost native acknowledgements | Gateway `src/effect_candidate_tests.rs`, `src/effect_candidate_staging_tests.rs`, native file/TLS PostgreSQL candidate/fault histories: status uses the same guards, native publication retains its existing revision/fence authority. | +| Mutation/deletion write-ahead phases and competing claims | Gateway `src/credential_journal.rs` tests: reopen pending creation/deletion, refuse contradictory transitions and retain unacknowledged obligations. | +| Retirement interval, unknown custody reply, repeated and competing cleanup | Gateway `src/engine.rs::tests::administration` file and configured TLS PostgreSQL administrative recovery contract: hold unknown creation, reload binding after delay, exact deletion only, no custody leases/provider entry. | +| Every first/replacement qualification file/sync/rename and floor boundary | Gateway `tests/qualification_gate.rs::ap076_recovery`: boundary trace + termination matrix, exact bundle re-import/recovery, repeated recovery and restart; native/local revocation memory never regresses. | +| Competing qualification imports and acknowledged restart | Same qualification test module: concurrent identical command processes and stable post-restart projection; retained candidate cannot be replaced by conflicting input. | + +Process termination evidence exercises the supported file synchronization model; +it does not simulate physical power loss or establish storage hardware flush +guarantees. Native commit/reply-loss and TLS evidence remain separate required +checks. Neither local resource ownership nor recovery observation grants provider +entry or changes the qualification authority. + ## Completion audit Before merge, inspect every specification requirement and gate against current -source, tests, fixtures/manifests, hosted job results and PR head identity. Update -this record with exact evidence and unresolved limitations. A successful initial -batch does not prove the unimplemented batches or satisfy the whole objective. +source, tests, fixtures/manifests, hosted job results and PR head identity. Record +the exact accepted head and hosted evidence in PR #217's acceptance attestation, +linked above, so recording CI results does not itself change the tested source +revision. This file maps implementation and test ownership; the PR's completed +head checks and merge record determine acceptance. A successful initial batch +does not prove the remaining batches or satisfy the whole objective. diff --git a/docs/plans/0076-payload-ownership.md b/docs/plans/0076-payload-ownership.md new file mode 100644 index 000000000..cccb7de58 --- /dev/null +++ b/docs/plans/0076-payload-ownership.md @@ -0,0 +1,33 @@ +# AP076 D1 payload ownership + +The translated `auths_gateway_kernel::order` still selects every action and +`GatewayAttempts` still owns durable transitions and acknowledgements. +`submit::Run` now holds either Unverified or Verified authority with a closed +claim phase: Unclaimed, Claimed, Leased, EntryGranted, Response, Unknown, or +Unavailable. Only EntryGranted carries a lease, claim and acknowledged one-use +permit together. Send consumes that phase and moves the claim into Response or +Unknown; response recording cannot run without its captured response. Invalid +internal action/payload combinations fail closed and cannot call transport. +Unavailable retains no entry capability; the durable journal resolves a lost +acknowledgement. Independent recipe options and the counted in-flight guard +remain independent facts, not duplicate transition authority. + +MutationState now owns phase-specific refusal, complete response, comparison, +or provider observation payloads. Observed requires a complete response and a +closed Match/Mismatch/EchoMismatch reading. ObservedByProvider requires provider +evidence; an absent original response remains an actual unknown send rather +than a malformed half-response. Recovery links and created-resource identity +remain bound to the native recovery fence and existing validation. Acquisition +and disclosure retain their separate payload-bearing phases and domain meaning. + +The single existing canonical wire shape is preserved deliberately. MutationWire +is only a bounded decoding/encoding projection: it is never retained as a +shipping lifecycle state and cannot perform a transition. Decode constructs a +closed phase or rejects inconsistent field presence; encode derives every field +from that phase. This is one codec, with no legacy decoder, migration, alternate +wire reader or dual journal. Canonical byte equality and native transition rules +remain independently checked. A structural field-presence corpus compares exact +serialized bytes and rejects half-responses, missing readings/evidence and +foreign fields. Existing native mutation, fault, recovery, file/TLS PostgreSQL, +late-evidence and translated transition corpora remain required final evidence. +No test execution or formal qualification is claimed by this design record. diff --git a/docs/research/domains/abstraction-cases/0011-local-resource-ownership.md b/docs/research/domains/abstraction-cases/0011-local-resource-ownership.md new file mode 100644 index 000000000..1c66374eb --- /dev/null +++ b/docs/research/domains/abstraction-cases/0011-local-resource-ownership.md @@ -0,0 +1,69 @@ +# Local SDK resource ownership + +AP-SPEC-076 section 7 identifies an identical **local resource mechanism** in +TypeScript workflow clients, identity clients, and remote verifiers, and in their +Python counterparts. This extraction stays within each language binding. It +neither moves into core nor grants provider-entry, authorization, recovery, +receipt, or domain-transition authority. + +## Comparison and boundary + +| Contract | Workflow client / agent | Identity client / resolver | Remote verifier | +| --- | --- | --- | --- | +| Public operation admission | Only while open | Only while open | Only while open | +| Resource held across awaits | Signer, grant/context bytes | Method, authenticator, resolver | Byte transport | +| Cancellation of one waiter | Detaches; retained operation | Detaches; retained operation | Detaches; retained operation | +| Closing | Stop admission; await active tokens | Same | Same | +| Owned cleanup | Child agents, then signer, then local bytes | Every distinct owned adapter | Owned transport | +| Borrowed cleanup | Never destroy borrowed signer | Never destroy borrowed adapter | Never destroy borrowed transport | +| Cleanup result | One generation, retained result | Same | Same | +| Retry | Explicit; only declared idempotent failures | Same | Same | +| Local deadline | Incomplete; owned work continues | Same | Same | +| Acquiring a child | Invalidate publication and clean late result | Factory initialization | Factory initialization | +| Decision meaning excluded from extraction | Grant/delegation and signing | Descriptor, freshness, relationship, signature | Verification response and transport ambiguity | + +These are three existing consumers, not invented verticals. The shared contract +is local lifetime ownership, not an inference that their security semantics are +interchangeable. Cleanup order is an explicit dependency order; deduplication +uses resource identity, not equal-looking values. A wrapper registers ownership +before I/O. Constructor/factory inputs are copied before awaiting loading. + +## Mechanism and limits + +`ResourceLifecycle` in each binding owns named states, an opening operation, +active-use tokens, publication invalidations, and cleanup obligations. Each +cleanup obligation retains its exact destructor, retry capability, and order. +All settled-generation outcomes belong to their original waiters. Only a new +explicit retry can repeat a failed idempotent destructor. The mechanism makes +no assertion that an adapter exception proves non-effect. + +Admission, work registration, state checks and publication are constant work; +shutdown is linear in active work plus distinct resources. The owner adds no +network calls, provider retries, polling loops, background execution engine, or +persisted format. Native bounded timers replace busy waiting. Tests use barriers +and injected monotonic scheduling for operation ordering rather than timing +sleeps. Python shields the owned task, never the caller task. A transport that +owns a thread retains its own token until the thread settles. + +## Direct cutover and evidence + +Existing booleans and cosmetic closing states are removed in the same source +cutover. No compatibility path, obsolete state reader, runtime switch, or public +protocol authority is introduced. Domain code, canonical bytes and result/receipt +meaning stay in their current owners. The SDK error registry remains the code +authority; local cleanup completion has a bounded reason in addition to it. + +The TypeScript lifecycle contract runs unchanged against built modules and the +installed package without repository source. Public identity/remote adapter +contracts cover owned/borrowed cleanup, independent failures, safe retry, and +in-flight transport retention in both locations. Workflow integration tests +exercise cancellation, shared close and attachment racing shutdown. Python +barrier schedules cover C1–C7 and the existing cancellation corpus is updated to +prove cleanup occurs after the last possible use. These tests are written but +not yet verified; final hosted evidence belongs in the AP076 implementation +record. No new cryptographic/formal qualification claim is made. + +A reviewer can reject this local extraction without changing the native kernel +or gateway contracts. Composition of promise/task helpers alone is insufficient: +the race being repaired is precisely the missing single owner of their combined +admission, publication, and cleanup transitions. diff --git a/docs/specs/0076-explicit-state-ownership-and-concurrency.md b/docs/specs/0076-explicit-state-ownership-and-concurrency.md index 01d0f56e3..279c63ede 100644 --- a/docs/specs/0076-explicit-state-ownership-and-concurrency.md +++ b/docs/specs/0076-explicit-state-ownership-and-concurrency.md @@ -523,7 +523,7 @@ rollback, grace periods, or a second qualification authority. Before implementing sections 8.2–8.3, complete and review a protocol amendment here or a separately numbered specification under `docs/specs`, and link it -from this section. No such completed protocol is claimed by the current draft. +from this section. The concrete protocol amendment is [AP-SPEC-077](0077-administrative-recovery-protocol.md), which defines command identities, authority, transition tables, competing writers, durability ordering and the interruption matrix. Runtime completion is tracked separately in the implementation record. This is an engineering design gate, not a new user-permission workflow. Runtime work on sections 5–7 and the payload refactor in 8.1 need not wait for it. diff --git a/docs/specs/0077-administrative-recovery-protocol.md b/docs/specs/0077-administrative-recovery-protocol.md new file mode 100644 index 000000000..f620f4931 --- /dev/null +++ b/docs/specs/0077-administrative-recovery-protocol.md @@ -0,0 +1,247 @@ +# AP-SPEC-077: Administrative recovery protocol + +Status: implementation contract for AP-SPEC-076 D0 and D2–D4. This document +specifies behavior; completed implementation and verification are tracked in +`docs/plans/0076-implementation-status.md`. It grants no production qualification. + +## 1. Owners and authority + +| Existing fact/owner | Meaning and permitted use | +| --- | --- | +| Private installation manifest, recipe, lock, trusted context, effect policy and operator attestation | Exact local configuration and operator identity. Manifest presence alone is neither a published connection nor custody availability. | +| `candidate-installation.cbor` | Retained initial connection identity/timestamps and approved descriptor; resume must reuse it. It cannot authorize credential reads or connection publication. | +| Native `SharedConnection` record and independently retained generation floor | Current connection, revocation, credential generation/commitment and restore protection. Their atomic revisions/fences order publication and application entry across hosts. | +| `CandidateCredentialTarget`, exact proof/action/approval and native acquisition records | Exact candidate identity and independently approved check evidence. Only the existing candidate publication fence decides sufficient fresh evidence and one-use publication. | +| `CredentialJournal` | Bounded write-ahead set of exact generations that might exist in custody. A note is a cleanup obligation, never evidence of credential possession, deletion, publication, or provider effect. | +| Credential journal phases | `Retained`, `MutationPending`, `DeletionPending`, `DeletionIncomplete`, `DeletionConfirmed`. A pending creation is never automatically collected/forgotten: an exception or dead process cannot prove that external custody creation stopped. | +| Credential adapter | Exact generation possession/commitment and exact deletion acknowledgement. Unavailability/exception retains uncertainty. No list API is cleanup authority. | +| Qualification verifier memory and native effect-configuration floor | Monotonic accepted revocations/release facts. Neither filesystem rollback nor an old bundle may lower them. | +| Qualification `.next`, current and `.previous` directories | Retained candidate, published local inputs and retired local inputs. Directory names confer no qualification; every candidate is reverified under the pinned root and retained floors. | + +Recovery status is a read-only projection of these existing facts. There is no +new administrative journal, executor, provider entry permit, retry entitlement, +or parallel configuration authority. Local status may report unavailable rather +than guess when a native/custody read fails. It never claims negative custody +from an absent local file. Existing effect, acquisition, mutation, restore-floor, +revocation and operator-separation rules remain in force. + +## 2. Commands, identities and outputs + +All commands use the existing trusted operator CLI boundary and owner-private +state directory. Remote operator commands retain their authenticated operator +socket boundary; no application route may invoke recovery. Secrets enter only +through the existing bounded stdin mechanism and never appear in recovery JSON. +Private file reads reject symlinks, foreign ownership, inappropriate permissions, +wrong schemas and oversized inputs. A new prelaunch format rejects obsolete +state rather than translating it. + +| Command | Input, action and repeat result | +| --- | --- | +| `recovery-status --state-dir DIR [--candidate FILE --proof FILE --action FILE --approval FILE]` | No custody/provider mutation, credential lease or provider read. Return the closed projection below; local lock/note reads may synchronize the existing journal without changing its semantic content. Candidate inspection requires all four candidate/proof/action/approval files together. Exact current/superseded target observations need no renewed approval or provider I/O; readiness inspection binds the exact native acquisition identity and uses the same validation guards as publication. Expired approval cannot hide an already-current exact target observation. A supplied canonical candidate is bound to the installed recipe, exact connection and native predecessor/current revision. Omit candidate-specific readiness when no candidate was supplied; never infer approval from proposal-file existence. | +| `install` with existing arguments | Fresh installation only. An existing manifest returns `gateway.install.already-installed`. Partial retained inputs are refused unless the operator explicitly supplies `--resume`. | +| `install --resume` with the same complete installation arguments and `--credential-stdin` | Validate all original approvals/configuration before comparing existing files. Retain or compare exact bytes, reuse retained draft identity/timestamps, and complete only missing steps. Any existing different input returns `gateway.install.resume-conflict` without overwriting it. A manifest with the exact configuration is an input to native/custody inspection, not success by itself. The supplied secret must match any existing exact generation; it cannot replace conflicting custody. | +| `candidate-stage-installation` / `candidate-stage-rotation` | Existing trusted command and canonical proposal output. Repeat with the same secret/draft/current predecessor returns the same candidate identity. Different secret at the staged generation fails with the existing generation/credential conflict; never revoke/replace the staged generation to make retry succeed. Output-file existence is handled by exact-byte comparison. | +| `candidate-acquire` | Existing exact proof/action/approval. Existing native acquisition record decides replay/conflict/unknown; recovery never re-enters a read from a stored unknown outcome. No automatic reacquisition occurs during status or publish. | +| `candidate-publish` | Existing exact candidate/proof/action/approval. Native checks and atomic publication remain authoritative. Exact already-current target plus the required native acquisition identity returns the existing AlreadyCurrent disposition, a state observation rather than causal attribution to this invocation. A later revision/revocation or different target is conflict, even if a local proposal remains. Lost acknowledgement requires authoritative inspection/replay of this exact publication, never a fabricated permit. | +| `rotate-prepare`, `rotate-commit`, `rotate`, `disable`, `enable`, `revoke` | Preserve current guards and native revisions. Prepared custody is not published custody. A stale prepare/commit cannot overwrite a later generation or revive revocation. Status/inspection after a lost acknowledgement reports the authoritative current record; a successful current state alone does not prove which competing request caused it. | +| `credential-collect` | Existing exact-generation cleanup command. Snapshot current native record and journal, wait a complete minimum retirement interval on this process's monotonic clock, then reload the same native revision before deletion. Process restart starts a new complete interval. Delete at most 16 eligible generations per call, retain every unconfirmed obligation, and report completed versus remaining/incomplete separately. | +| `qualification-import --state-dir DIR --from DIR` | Verify the complete supplied bundle under installed pins and both retained floors. Stage exact bytes durably before advancing floors. Repeated exact inputs complete an interrupted publication or return already-published; different staged inputs conflict. A partial staged bundle is completed by explicitly importing its original complete signed bundle; existing bytes must match. A corrupt or conflicting retained candidate is quarantined rather than overwritten. | +| `qualification-recover --state-dir DIR` | Explicitly finish the retained verified `.next` bundle or clean retired `.previous` after verified current publication. Reverify under current pins/floors. No network, credential lease, provider read or floor decrease. Missing/inconsistent accepted inputs return unavailable and require a fresh explicit import that meets all retained floors. Never restore `.previous` as automatic rollback. | + +`recovery-status` emits `auths.gateway-recovery/1`, with an installation state, +optional candidate state, cleanup state, qualification state, the current native +revision/generation when readable, and a closed list of legal next command names. +It emits no secrets, unbounded paths, opaque provider response bodies or tokens. +Bound output to 1 MiB, generations to the journal's 64 entries, and command lists +to the commands in this table. A required unavailable authority sets the relevant +component to `unavailable` and gives a non-success command result. Corrupt input +sets `quarantined`; it is never interpreted as empty/fresh state. Components may +be independently incomplete. Publication success and pending cleanup coexist. + +## 3. Installation and candidate transitions + +| Derived state / command | Guard and durable/effect ordering | Successor/result | +| --- | --- | --- | +| Uninitialized / fresh install | Validate recipe digest, lock, trust, effect policy, deployment/custody policy, operator attestation and separation first. Acquire private installation lock. Generate initial identity/timestamps once and durably retain draft before custody. Retain exact input files before manifest. | InputsRetained; subsequent steps below. | +| InputsRetained / fresh install | Refuse existing partial input set. | Unchanged; explicit resume required. | +| InputsRetained / resume | Compare every existing input and manifest byte with the supplied validated inputs. Use the same retained draft; never generate another ID. Durably write missing files, then manifest. A mismatched/malformed retained draft is quarantined, not replaced. | ConfiguredUnpublished. | +| ConfiguredUnpublished / stage | Durably initialize/register exact cleanup generation before any custody write. Establish exact custody without replacing a different commitment. Initialize/check native candidate floor. Persist exact canonical proposal before reporting staged success. | CandidateStaged; error retains cleanup note and possibly custody. | +| ConfiguredUnpublished / offline installation without credential reads | Same write-ahead custody/floor ordering, then existing native insert/CAS. Reload the native record/floor after acknowledgement. | Published only if exact current binding is readable; otherwise unavailable/unknown publication. | +| CandidateStaged / inspect | Read exact native acquisition/check facts. No checks are run. Distinguish incomplete, refused, ready, published, superseded and unavailable. “Ready” is advisory at read time; publish rechecks all guards. | No mutation. | +| CandidateStaged / acquire | Existing exact native acquisition admission, credential binding, one-use entry and result persistence. Refusal/unknown remains a retained native fact. | ChecksIncomplete, ChecksRefused or ReadyForPublication, derived without inventing retries. | +| ReadyForPublication / publish | Recheck operator/native approval, freshness, exact predecessor, generation floor, custody commitment and qualification/effect configuration inside existing atomic publication fence. | Published with native disposition; obsolete predecessor => conflict; missing/failing check => refusal/unavailable. | +| Published / exact publish replay | Require the existing native replay guards and current exact target; AlreadyCurrent is a state observation, not an attestation that this invocation caused publication. No new acquisition, custody write or provider entry. | AlreadyPublished/replay. | +| Published / later rotation, disable or revoke | Native revision and generation checks decide; service entry uses existing fence. | Current native successor, never a local-file prediction. | +| Any / corrupt or inaccessible required evidence | No authority recovery by guessing, zeroing a floor or overwriting custody. | Quarantined/unavailable; fail closed. | + +Initial installation is durably acknowledged only after exact native publication +and its required floor are acknowledged and re-readable. Candidate staging may +be acknowledged earlier as **staged**, explicitly not installed/serviceable. +A local manifest can survive a failed install; status must say unpublished or +unavailable rather than installed. A missing manifest after partial input writes +is resumable only through the exact validated installation command. + +## 4. Credential retirement and collection + +The cleanup projection has `NonePending`, `AwaitingDelay`, `DeletionPending`, +`DeletionIncomplete`, `DeletionConfirmed`, and `Unavailable`. It is orthogonal +to current publication and is derived from the existing exact-generation journal, +current native record, and this process's monotonic observation interval. +`DeletionConfirmed` means an exact adapter deletion was acknowledged and its +journal note removal durably acknowledged; a lost note-removal reply leaves a +conservative possible obligation until a fresh journal read. + +| Event | Required behavior | +| --- | --- | +| New possible custody generation | Register and synchronize journal note before install/replace/confirm can create custody. A full/unreadable journal refuses new custody mutation. | +| Native successor publication | Retain superseded exact generations for at least `CredentialRetirementDelay::FIXED`. Do not equate successful CAS with successful cleanup. | +| Restart or collector creation | Lose no journal notes. Begin a new complete monotonic delay after snapshotting the native revision. No wall-clock deadline permits earlier deletion. | +| Delay elapsed | Reload current record and floor; require the same exact native binding as the snapshot. Changed generation/state => `gateway.admin.generation-conflict`, retain notes, no deletion under stale authority. | +| Eligible exact generation | Delete only a noted generation not newer than the native generation and not the active credential; revocation permits deletion of its current credential after the same delay. A staged unpublished successor is not an obsolete published generation and is retained. | +| Adapter deletion succeeds | Durably remove only that exact journal note. Never remove the note before acknowledgement. | +| Deletion fails or acknowledgement is lost | Retain note; report `gateway.admin.credential-deletion-incomplete`. Continue independent eligible cleanup within the bounded batch; aggregate incomplete result. Do not claim no effect or delete another generation as compensation. | +| Journal note removal fails | Retain/inspect obligation and report journal unavailable. Repeated exact revoke is allowed only under the adapter's existing idempotent exact-generation contract. | +| Competing collectors | Local journal lock serializes note updates; exact idempotent revoke and native revision guards make overlap safe across hosts. No collector can delete the active or unobserved newer generation. Each reports its own acknowledged removals and remaining obligations. | +| No eligible notes | Return completed zero without custody listing or deletion. An unreadable journal is unavailable, never zero. | + +The phase-bearing journal is `auths.gateway-credential-journal/2`, a direct +prelaunch cutover. Register an exact note, durably claim MutationPending before +custody creation, and return it to Retained only after that owned operation +settles with acknowledged completion or a typed custody refusal whose port +contract certifies that this invocation made no change. Network, persistence, +unsafe-state and lost-reply errors retain uncertainty. A second creation cannot overwrite a +pending/deleting operation. Collection durably claims DeletionPending, records +failure as DeletionIncomplete, or persists DeletionConfirmed before forgetting +the note. Crash before creation acknowledgement retains MutationPending and +reports `gateway.admin.credential-operation-unconfirmed`; automatic collection +must not guess that an external request stopped. This is a quarantined cleanup +condition requiring provider-administrator resolution, not an application retry +or proof of non-effect. This version deliberately offers no command that clears +such uncertainty by assertion or by observing an instant of absence. + +Each host reports and retains its own write-ahead obligations. Hosts sharing +external custody can have separate notes for the same generation; local cleanup +success does not assert that every other host's pending write has stopped or +that custody can never reappear. Every custody writer must retain its own pending +note across uncertain completion. No acknowledged global empty-custody claim is +made from one host's journal. + +The in-memory retirement queue is scheduling only. Failed entries remain queued; +restart recovery comes from the durable journal. No new timestamp ledger is +required: the conservative complete-delay rule satisfies the existing minimum +safety bound without trusting wall-clock continuity. Credentials can be retained +longer after restart; this is an explicit operational cost, not an ambiguity. + +## 5. Qualification transition and durability order + +The closed projection is `Empty`, `Staged`, `FloorsAdvanced`, `CurrentPublished`, +`RetiredCleanupPending`, or `Unavailable`. Read verification of actual files and +retained/native floors supplies the state; no marker grants authority. + +The importer/recoverer takes one private `qualification.lock` for the entire +host transaction. The live reloader uses the same lock while reading/updating +local verifier memory. It must not reenter that lock through its own helper. +Across hosts, native effect-configuration/floor CAS remains authoritative; local +file locks make no multi-host claim. + +1. Read pins, previous verifier memory and complete candidate; verify signature, + deployment/recipe tuple, bounded membership, revocation and monotonic rules. + Refused input changes nothing. +2. Materialize every `.next` member using private create/compare files. Never delete an existing accepted candidate to restage it. Sync each + file, each records/attestations directory, the `.next` directory and installation + parent. Re-read and reverify complete staged bytes before changing any floor. +3. If both current and retired inputs exist, verify current against both existing floors and durably clean the retired input before advancing floors. Otherwise retain all evidence on failure. Publish the existing native effect-qualification floor/configuration and + durably advance local verifier memory. These are monotonic. A failure between + them is unavailable publication; recovery must reconcile upward using the + retained verified bundle. Never lower either floor to make the old bundle work. +4. Preserve the retained `.next` and any `.previous` through interrupted publication. Missing current is fail closed; recovery completes the same reverified candidate. A fresh import is permitted when no conflicting `.next` remains. +5. Rename current to `.previous` when present; sync installation parent. Rename + `.next` to current; sync installation parent. Verify the resulting current + bundle against both floors before reporting publication success. +6. Remove `.previous` and sync installation parent. A failure here is + `RetiredCleanupPending`, with publication retained; repeated recovery performs + cleanup without repeating floor advancement or claiming rollback. + +No atomic transaction is claimed across native store, filesystem and custody. +The command's acknowledgement names the reached state. “Imported” requires native +and local floor acknowledgement, durable current-directory publication and +read-back verification. Retired cleanup failure is reported separately. Success +must survive immediate process/host restart under the storage assumptions below. +A lost native reply requires reload; `.next` cannot manufacture that reply. + +When `.next` exists, recovery re-verifies it and resumes the monotonic sequence. +When only `.previous` exists and current is missing, publication is unavailable; +there is no automatic rename-back. When current is valid at both floors, recovery +may remove retired input and report current publication. A new valid import can +repair unavailable publication only by meeting or raising retained floors. + +## 6. Competing administrators and live entry + +| Race | Ordering and loser result | +| --- | --- | +| Two local installs/resumes | `installation.lock` spans all retained file/custody/native steps. Same exact resumed inputs inspect/complete the winner; different inputs conflict before custody mutation. | +| Two hosts install the same provider/alias | Existing native insert/floor publication chooses one exact connection. Loser reloads, reports conflict and retains its cleanup notes; it does not adopt the winner's credential or ID. | +| Stage versus publish | Native candidate predecessor/generation and exact custody commitment order them. File proposal overwrite is prohibited unless identical. Staging is never publication evidence. | +| Rotate versus revoke; enable/disable versus rotate | Existing native CAS/fences order changes. Stale revision loses and reloads. Revocation is terminal and cannot be undone by stale rotation/enable. | +| Retire versus rotate/revoke | Collector reloads after its full delay. Changed binding aborts that collection; retry begins a new snapshot/delay. Exact-generation idempotent deletion cannot remove a later active generation. | +| Two qualification imports on one host | Qualification lock serializes. Identical input resumes; conflicting pending accepted input is unavailable/conflict until explicit completion or a fully verified new import meeting floors. | +| Qualification imports on different hosts | Native floor/configuration CAS orders authority. Each host must meet the winning native floor before service can qualify; a local directory publication cannot override a losing native update. | +| Recovery/status versus another writer | Status is a bounded observation, not a snapshot transaction across systems. A detected mismatch reports unavailable/reload. Every mutating command rechecks native revision under its existing fence. | +| Application entry versus admin change | Preserve counted in-flight entry and native final reload/fence. An old admitted operation retains its generation for the safety interval; no new entry can rely on an invalidated configuration/generation. Cleanup never manufactures or repeats entry. | + +## 7. Supported durability model and interruption matrix + +Support process termination and host restart on local durable filesystems with +atomic same-filesystem rename and working file/directory synchronization, and the +existing native file backend / TLS PostgreSQL durable transaction contract. +Reject unsupported topology rather than treating remote filesystem semantics as +local atomicity. The credential adapter's acknowledgement is its existing exact +custody contract; Auths cannot make an external service transactional with local +files. Disk corruption, absent hardware flush guarantees and compromised custody +remain unavailable/security boundaries, not recoverable success assumptions. + +Every listed boundary requires termination immediately **before and after** the +operation, restart from retained state, repeated recovery, and an immediate +restart after acknowledged success. Run applicable native cases on file and TLS +PostgreSQL. Observations must include no forbidden provider entry, exact current +binding/floors, custody generations, journal obligations and command outcome. + +| Boundary | Required restart observation and legal next action | +| --- | --- | +| Initial draft file content/sync/parent sync | No custody yet; exact draft retained or unavailable; resume must not create a new ID over retained input. | +| Each retained recipe/lock/context/attestation/root write and sync | Partial inputs are not serviceable; exact resume compares/writes missing inputs. Conflict/corruption quarantines. | +| Manifest rename/write and parent sync | Manifest alone is configured-unpublished. Native/custody inspection decides; no success inferred from presence. | +| Journal initialization/register replacement, file sync and parent sync | Custody mutation starts only after durable note acknowledgement; partial journal is unavailable. | +| Custody install/replace/confirm and lost reply | Exact note remains. Resume compares commitment; conflicting custody is never overwritten. | +| Candidate floor commit/acknowledgement | Reload floor; no generation rollback or fabricated candidate publication. | +| Proposal write/sync and parent sync | Same candidate is recoverable or exact restaging reproduces it; different existing output conflicts. | +| Candidate acquisition entry/result commits and lost replies | Existing native one-use/unknown rules; status/publish never re-enters reads. | +| Native connection publication CAS, commit and reply | Reload/replay exact publication. Successful acknowledgement survives restart; ambiguity never creates another entry permit. | +| Retirement interval start/expiry/reload | Restart begins a full interval; changed binding prevents deletion. | +| Each exact custody revoke and reply | Note retained until acknowledged exact deletion; lost reply remains incomplete and safe exact retry only. | +| Each journal note removal and synchronization | Confirmed removal stays removed after success; ambiguity reloads journal and retains conservative uncertainty. | +| Every qualification `.next` file/subdirectory/parent synchronization | Old accepted configuration remains or fails closed; staged incomplete input cannot advance floors. Re-import exact complete bundle. | +| Native qualification floor commit/reply, then verifier-memory replacement/sync | Retain `.next`; reload/reconcile upward. Old bundle cannot qualify below either floor. | +| Remove old `.previous` and parent sync | Current must already be verified; interruption cannot trigger rollback. | +| Current-to-previous rename and parent sync | Missing current is unavailable; explicit recovery uses verified `.next`, never assumes previous is current. | +| Next-to-current rename and parent sync | Reverify current against both floors; unacknowledged publication is inspected, not guessed. | +| Previous removal and parent sync after publication | Current remains valid; leftover cleanup is explicit and repeatable. | +| Acknowledged install/publish/import/cleanup followed immediately by restart | Exact acknowledged state/floors/confirmed deletions remain; any pending independent cleanup remains separately visible. | + +## 8. Design review and acceptance + +This is the concrete amendment required by AP076 section 8.4. Its authority map +and ordering were checked against current install/private-file synchronization, +`CredentialJournal`, `GatewayEngine::collect_credentials`, native candidate +publication, qualification import and retained verifier memory at the PR #216 +baseline. The safety argument uses existing native authority plus conservative +write-ahead obligations; it adds no assumption that an error proves non-effect. + +Runtime acceptance still requires the full matrix above, source cutover and +schema/fixture/formal-link updates where affected, competing-operator tests and +fully successful hosted CI on the completed PR head. Design completion does not +claim runtime implementation or production qualification. The implementation +record must name concrete test owners for every row before merge. The concrete +boundary-to-owner map is maintained in the [AP076 implementation record](../plans/0076-implementation-status.md#concrete-evidence-owners), including process-termination, +native lost-acknowledgement and configured TLS PostgreSQL evidence as separate +claims. diff --git a/formal/assurance-manifest-v1.toml b/formal/assurance-manifest-v1.toml index 6f210d5de..d49cf84ee 100644 --- a/formal/assurance-manifest-v1.toml +++ b/formal/assurance-manifest-v1.toml @@ -8733,7 +8733,7 @@ sha256 = "2bb401ffca0136622cd79bb14a5a38852061649a06cc46100503870c22d300c7" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-055" @@ -8854,7 +8854,7 @@ sha256 = "2bb401ffca0136622cd79bb14a5a38852061649a06cc46100503870c22d300c7" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-056" @@ -8989,7 +8989,7 @@ sha256 = "2bb401ffca0136622cd79bb14a5a38852061649a06cc46100503870c22d300c7" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-104" @@ -10463,7 +10463,7 @@ sha256 = "ba7aea214063b8a698fbd2c9c8cd95a717bf0ec0eaef70a92844444bf7e9f22e" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-263" @@ -10559,7 +10559,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-264" @@ -10658,7 +10658,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-186" @@ -10918,7 +10918,7 @@ sha256 = "ba7aea214063b8a698fbd2c9c8cd95a717bf0ec0eaef70a92844444bf7e9f22e" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-237" @@ -11014,7 +11014,7 @@ sha256 = "ba7aea214063b8a698fbd2c9c8cd95a717bf0ec0eaef70a92844444bf7e9f22e" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-238" @@ -11113,7 +11113,7 @@ sha256 = "ba7aea214063b8a698fbd2c9c8cd95a717bf0ec0eaef70a92844444bf7e9f22e" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-175" @@ -15601,7 +15601,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-211" @@ -15696,7 +15696,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-212" @@ -15792,7 +15792,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-213" @@ -15888,7 +15888,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-214" @@ -15984,7 +15984,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-232" @@ -16083,7 +16083,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-233" @@ -16179,7 +16179,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-234" @@ -16275,7 +16275,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-235" @@ -16371,7 +16371,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-249" @@ -17038,7 +17038,7 @@ sha256 = "dfa1998e3506f06dce142222dc383116d0952155517edc399f5d94e688e22912" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-257" @@ -17137,7 +17137,7 @@ sha256 = "dfa1998e3506f06dce142222dc383116d0952155517edc399f5d94e688e22912" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-258" @@ -17236,7 +17236,7 @@ sha256 = "dfa1998e3506f06dce142222dc383116d0952155517edc399f5d94e688e22912" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-259" @@ -17332,7 +17332,7 @@ sha256 = "dfa1998e3506f06dce142222dc383116d0952155517edc399f5d94e688e22912" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-260" @@ -17431,7 +17431,7 @@ sha256 = "dfa1998e3506f06dce142222dc383116d0952155517edc399f5d94e688e22912" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-070" @@ -24429,7 +24429,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-189" @@ -24525,7 +24525,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-190" @@ -24621,7 +24621,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-191" @@ -24717,7 +24717,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-192" @@ -24812,7 +24812,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-193" @@ -24911,7 +24911,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-194" @@ -25010,7 +25010,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-195" @@ -25111,7 +25111,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-196" @@ -25215,7 +25215,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-197" @@ -25320,7 +25320,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-198" @@ -25416,7 +25416,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-199" @@ -25521,7 +25521,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-200" @@ -25616,7 +25616,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-201" @@ -25711,7 +25711,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-271" @@ -25807,7 +25807,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-272" @@ -25903,7 +25903,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-273" @@ -26002,7 +26002,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-274" @@ -26101,7 +26101,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-275" @@ -26202,7 +26202,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-276" @@ -26302,7 +26302,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-277" @@ -26401,7 +26401,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-278" @@ -26501,7 +26501,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-279" @@ -26600,7 +26600,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-280" @@ -26701,7 +26701,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-281" @@ -26801,7 +26801,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-282" @@ -26901,7 +26901,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-283" @@ -27001,7 +27001,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-284" @@ -27100,7 +27100,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-285" @@ -27202,7 +27202,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-306" @@ -27298,7 +27298,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-307" @@ -27397,7 +27397,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-308" @@ -27493,7 +27493,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-309" @@ -27592,7 +27592,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-310" @@ -27692,7 +27692,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-311" @@ -27791,7 +27791,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" [[claims]] claim_id = "AP-FORMAL-RICH-312" @@ -27892,4 +27892,4 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "6107b2d9d2ede7bb3886d65e56a796b4c66cfa5ff08b1feb8f5c459aab20adda" +sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" diff --git a/formal/qualification/aeneas/source-closure.json b/formal/qualification/aeneas/source-closure.json index a96a55ee9..35ba172ad 100644 --- a/formal/qualification/aeneas/source-closure.json +++ b/formal/qualification/aeneas/source-closure.json @@ -1,6 +1,6 @@ { "schema": "auths-proof-translation-source-closure/v2", - "digest": "2644391efa3ae96a895607bd64d43305d9acc332cba96be8e60a81f872425306", + "digest": "7e119d47480356fe8310b5a4d102d0e61de1f93527edb128c9be59e8f8ef5aba", "files": [ { "path": ".cargo/config.toml", @@ -157,7 +157,7 @@ }, { "path": "product/runtime/auths-connections/src/credential.rs", - "sha256": "7e6fbca8911d5c0c1baddf35572236d419566dd6e3fcbbdfda77c8dd114dbcad" + "sha256": "22bc7de6bcab7cebebb64edf6423d59b6493b78dca65b9da62749e3171217762" }, { "path": "product/runtime/auths-connections/src/kernel.rs", diff --git a/product/operations/auths-operations-otel/src/exporter.rs b/product/operations/auths-operations-otel/src/exporter.rs index d379a5525..da58f81d5 100644 --- a/product/operations/auths-operations-otel/src/exporter.rs +++ b/product/operations/auths-operations-otel/src/exporter.rs @@ -155,14 +155,13 @@ impl BoundedOtlpExporter { } Phase::Exporting { cohort, .. } => Admission::Joined(Arc::clone(cohort)), Phase::Idle | Phase::Retryable(_) => { - let batch = match &state.phase { - Phase::Retryable(batch) => Arc::clone(batch), - _ => { - if state.queue.is_empty() { - return Ok(()); - } - Arc::new(std::mem::take(&mut state.queue).into_iter().collect()) + let batch = if let Phase::Retryable(batch) = &state.phase { + Arc::clone(batch) + } else { + if state.queue.is_empty() { + return Ok(()); } + Arc::new(std::mem::take(&mut state.queue).into_iter().collect()) }; let cohort = Arc::new(Cohort::new()); state.phase = Phase::Exporting { diff --git a/product/runtime/auths-connections/src/credential.rs b/product/runtime/auths-connections/src/credential.rs index e593575b8..b6efc6b97 100644 --- a/product/runtime/auths-connections/src/credential.rs +++ b/product/runtime/auths-connections/src/credential.rs @@ -49,6 +49,17 @@ impl SecretBytes { self.0.as_slice() } + /// Computes the exact generation commitment without exposing secret bytes + /// outside their owner. This grants neither custody nor publication. + #[must_use] + pub fn reference_commitment( + &self, + connection_id: &ConnectionId, + generation: NonZeroU64, + ) -> CredentialReferenceCommitment { + credential_commitment(connection_id, generation, self.expose()) + } + /// Borrows the bytes for a credential-store implementation that must /// write them to where it keeps secrets. Nothing else may call this: the /// bytes must not be logged, compared, serialized, or kept. @@ -219,6 +230,11 @@ impl CredentialStoreKind { /// therefore names both generations, and a lease reads exactly the /// credential generation the binding names: a store never chooses a /// generation on the caller's behalf. +/// +/// A creation mutator's error may clear its pending-operation obligation only +/// when [`CredentialStoreError::certifies_no_mutation`] says so. Implementations +/// must classify lost replies, post-write failures and unknown completion as +/// unavailable/uncertain; a generic error is never evidence of non-effect. #[async_trait] pub trait ConnectionCredentialStore: Send + Sync { /// Installs the first credential generation. @@ -1425,6 +1441,24 @@ pub enum CredentialStoreError { UnsafeStorage, } +impl CredentialStoreError { + /// Whether this error certifies that this invocation made no custody change. + /// Network, persistence, unsafe-storage and lost-acknowledgement failures must + /// use an uncertain classification instead of one of these refusal variants. + #[must_use] + pub const fn certifies_no_mutation(self) -> bool { + matches!( + self, + Self::InvalidSecret + | Self::InvalidCapacity + | Self::Conflict + | Self::Capacity + | Self::Substitution + | Self::Expired + ) + } +} + fn credential_commitment( connection_id: &ConnectionId, generation: NonZeroU64, diff --git a/product/runtime/auths-gateway/semantic-closure.json b/product/runtime/auths-gateway/semantic-closure.json index 4f482a5ea..9c3bd4002 100644 --- a/product/runtime/auths-gateway/semantic-closure.json +++ b/product/runtime/auths-gateway/semantic-closure.json @@ -1 +1 @@ -{"files":[{"path":"Cargo.lock","sha256":"77ae14c9bbf8dc445841fa919923f17d9c7dceec704ddcaa88dafe5dd92f6c2b"},{"path":"Cargo.toml","sha256":"ccc17deac72da945940a9ab4be2ce27628c056b977d19429bc1679b19fae30f3"},{"path":"core/adapters/auths-did-keri/Cargo.toml","sha256":"86ba3e3f9a0a70d970568bfb3113b7ba7bbdd81c3eebbb52743dd574a0c0ecaa"},{"path":"core/adapters/auths-did-keri/src/lib.rs","sha256":"a75674842f8a7142004369ccd206ab43e476459293f0ff4bed4d4e659031b3e3"},{"path":"core/adapters/auths-did-key/Cargo.toml","sha256":"d5a3ae07ecde83f91eed4c3785051dd0f44eab6c891754f3309b6b40596707d7"},{"path":"core/adapters/auths-did-key/src/lib.rs","sha256":"b76a3f4528a725df53cfa9242e6e414e1d26caa48468aaed497e28b121f4497c"},{"path":"core/adapters/auths-raw-key/Cargo.toml","sha256":"f49616bc18c19e6aaa7e6a02ccebcdb9f5c1422c1278ef9869e0dbf22ceda7be"},{"path":"core/adapters/auths-raw-key/src/lib.rs","sha256":"45eec1b295dac3bed65cd79c942870b926b06b3f5d38eaebaeb6140ac69315fa"},{"path":"core/crates/auths-algebra-kernel/Cargo.toml","sha256":"0cb078915287b8c47d20fb97b6fa14135ed1c61c4985c4de2753855563c27bba"},{"path":"core/crates/auths-algebra-kernel/src/generated.rs","sha256":"ae4bcbef42a408c7ffa0c6a74a42f7de177a6f14479e51d205acf830bda05960"},{"path":"core/crates/auths-algebra-kernel/src/lib.rs","sha256":"6654667eeb9b353d6648954c9fd2e8838462a82ce6b2803eb49e1366892c68c6"},{"path":"core/crates/auths-assurance/Cargo.toml","sha256":"afcb12a97ddd09d7a264b9ecd3fcaefc865ff2c9b4539ee85b00883420ba333a"},{"path":"core/crates/auths-assurance/src/lib.rs","sha256":"0fb2ec844d674b25a9e20b1601452c89c2454901fa506adfa9bb38ef9a7fa213"},{"path":"core/crates/auths-author/Cargo.toml","sha256":"1e6f0e3bc079ddb558decf0db26b291c6e72fc47327b6df1b7650d41689b215f"},{"path":"core/crates/auths-author/src/lib.rs","sha256":"e14475f2f49715a1869d5fa6b11ff1fbb72497e39097e09f833b0bae7e5b3f2b"},{"path":"core/crates/auths-author/src/observations.rs","sha256":"dda7d6bfa6f4bd7e95a480ca283c2c0e996f69c5c15cb0c7197af328131a7066"},{"path":"core/crates/auths-authority/Cargo.toml","sha256":"4f68212938029f79ebd857b4f3038494eb85d0163d49f07e51376715cf959815"},{"path":"core/crates/auths-authority/src/lib.rs","sha256":"da88d5194de4e17449e69972c0fb042afa3c39798a8f570f30771e77c384f1eb"},{"path":"core/crates/auths-codec/Cargo.toml","sha256":"e20e51826e17814effd9d8925d18d5fbdd6c0d37bf50231e743ec2611314722c"},{"path":"core/crates/auths-codec/src/approval.rs","sha256":"fbff43bf4d57f69f8b7738a8647751cde75c5a932dee65d924a1fe9c7202f91f"},{"path":"core/crates/auths-codec/src/bounded_policy.rs","sha256":"d21f6728be2d8a04b6d94921f2b683f7e61cbb42e0ac6866f1c88a49caa534c3"},{"path":"core/crates/auths-codec/src/decode.rs","sha256":"ba2999584cdf53b1b517ecb9c7ea50d39efee17c666a9a38e2ad1ac94379f778"},{"path":"core/crates/auths-codec/src/encode.rs","sha256":"8491192053e2e15d62b4d2a491de22405b7487ead69ab6f6bca40669ce7ca5f7"},{"path":"core/crates/auths-codec/src/error.rs","sha256":"fecb0737c16deb42d859f1dc7727c698438d9ac12064fd99e0024629642c390c"},{"path":"core/crates/auths-codec/src/hash.rs","sha256":"f88e111f1dbb2cef6b7b5e9c948cb45ff92e366710c8a5f5c636138aa748479e"},{"path":"core/crates/auths-codec/src/lib.rs","sha256":"3b0e5c94c6f34f750b88a9333e1d5c8145746d845d3a23e0d2f61807cf592ea7"},{"path":"core/crates/auths-codec/src/observation.rs","sha256":"38328b0c71ff97a4196eeade8b4faa889527ff1f80bb168468bcd49082a3987e"},{"path":"core/crates/auths-composition/Cargo.toml","sha256":"331e13025eb82588b5269ed3975929eb41c823d588c49e4c296273d85c6fe80e"},{"path":"core/crates/auths-composition/src/lib.rs","sha256":"e42e3b0b6a9985b73c533aeb23799c638979aa27a9ce7d0f10a8d60340570fb1"},{"path":"core/crates/auths-model/Cargo.toml","sha256":"565c15302b0cc9270db1e28efa3862804846850ba933cc17aea8abcec4a65987"},{"path":"core/crates/auths-model/src/approval.rs","sha256":"54cf44a9ef747ec21546a4086aecfb130bc7803b0d646430e6082df51e6e305f"},{"path":"core/crates/auths-model/src/bounded.rs","sha256":"f90496abc0a06c028b4d850af6ddab7d850bfafeaa3d042f1b1246a41d8bbbc9"},{"path":"core/crates/auths-model/src/bounded_policy.rs","sha256":"306a8f049cc7cfc7635fe0e4de47eb7813eed63d3c14c3be2b51586aa4eea450"},{"path":"core/crates/auths-model/src/lib.rs","sha256":"e7cfe6bb9574c6b016aa63e70658c31e0b90903ec6479a49f4a2ceb64f5bad97"},{"path":"core/crates/auths-model/src/observation.rs","sha256":"b3ed3e3cc090afca2896a7d3de7988afccc1ee1ea0ebd91b51a8bc0f20ad8dbb"},{"path":"core/crates/auths-multikey/Cargo.toml","sha256":"858756c1197befcada06134742bffe8d58cf674cadd6c046bf710570e96efaf2"},{"path":"core/crates/auths-multikey/src/lib.rs","sha256":"f5177fffb11e40eeaaa665ba886c541fc1f24d5eacdd6983fb03dc20148733f0"},{"path":"core/crates/auths-ports/Cargo.toml","sha256":"596a9b0f5af3717c16a6d13f7054d8a106bcd9f01f5f72c2235dd2afcf0ab16c"},{"path":"core/crates/auths-ports/src/binding.rs","sha256":"a16c012d40aa4249e3ec54372b9611006d0bfe8c7dc3c741911c2194ad17736d"},{"path":"core/crates/auths-ports/src/diagnostics.rs","sha256":"aa596572503b5a65a918bb2ff38281c144ff53821ee914e9325c852828d852df"},{"path":"core/crates/auths-ports/src/lib.rs","sha256":"8da1debf86f9532df0660155d04298beb1ba3a1204508f8586e2e67cd2fb3449"},{"path":"core/crates/auths-ports/src/path.rs","sha256":"b68fc547b4e4d97a60cbbc1cc1939fc6b34a8233b81f840bd396914a707e3ea1"},{"path":"core/crates/auths-raw-key-core/Cargo.toml","sha256":"98c0bc8527a537512e43a74dd6ba9658c6f0cdc16610cf938e3f9b43785d836d"},{"path":"core/crates/auths-raw-key-core/src/lib.rs","sha256":"98c0500c41697aae28708ad0bf970b9a97583d96a3d2c18d23e7fa351e0f7d12"},{"path":"core/crates/auths-registries/Cargo.toml","sha256":"590e49e58b0622d9d6274fea46796dcdb07dec9550eff295cce6a6427ffa51e2"},{"path":"core/crates/auths-registries/src/lib.rs","sha256":"450d3886d85ee333b7e046317fb5b47cde62483d5f3e41d46265e2caf4c373ec"},{"path":"core/crates/auths-registries/src/template.rs","sha256":"1224039dd2b3ce6fa8357613d8cafbae40400493da7176da202b9ade62fa05e4"},{"path":"core/crates/auths-signature-core/Cargo.toml","sha256":"6bee2230eb30af1be0bd5c2d57bd3e1903497a70028d47290d4ac6e9e0e8bca0"},{"path":"core/crates/auths-signature-core/src/lib.rs","sha256":"db97ecb45a82faa6f96a92738d3af1da92d1ba2f241f2c29114f4b8107dc4ab0"},{"path":"core/crates/auths-signature/Cargo.toml","sha256":"7f7b5682466ba439d8c59579022cb61068cad9fb4bd2d73e1cc21327c902b450"},{"path":"core/crates/auths-signature/src/lib.rs","sha256":"b3d9ac4cc3ba0797b9e1c09f2d6ac05089b25dac4e285a5af28c0165b33d925b"},{"path":"core/crates/auths-verifier/Cargo.toml","sha256":"c43358e06a33324b41a8b93e5cc7279c55f7d21f1f6cfaa539a3fc7b4c27a38f"},{"path":"core/crates/auths-verifier/src/approval.rs","sha256":"c3cae6a49e169051eb555bb092b1069a4d422516d6a2114623a89e5f31ff923f"},{"path":"core/crates/auths-verifier/src/causal.rs","sha256":"9635230f33b13a263573d319ac8a1976addbcc07677514a43e3c7bf28dc04587"},{"path":"core/crates/auths-verifier/src/lib.rs","sha256":"f22dec38dfa47ced8da4f605390da8453273bee1da010f57fd1fdfcb10e0b389"},{"path":"core/crates/auths-verifier/src/observation.rs","sha256":"0bb07f06a0f9524c88427df1c972b1de8ba038a9eeeb15d3134c25125ae84b1e"},{"path":"core/crates/auths-verifier/src/trace.rs","sha256":"2213d72023a1d9e0413a2cf2c51c3dad9e04775d86033a0caaa9d29a8f0036f8"},{"path":"exchange/crates/auths-proof-exchange-model/Cargo.toml","sha256":"34b2db64f93a288e942b5a3918d28cdcbef906e0dc9074ce848018d3d5f7a1fa"},{"path":"exchange/crates/auths-proof-exchange-model/src/lib.rs","sha256":"49fac5aff2339d3a57c41cb8bb2a82852538e8f77ecc4b157c88e264ff31fb55"},{"path":"exchange/crates/auths-proof-exchange-port/Cargo.toml","sha256":"7ff660f1b7579dc570c791090aeb450404fbbf44c92781e289f5ccdde746d739"},{"path":"exchange/crates/auths-proof-exchange-port/src/lib.rs","sha256":"b408fb40c6432edc1facb3d8b3e9433a033f8dc73fe2e0ba5a88c972ca675021"},{"path":"product/config/auths-config/Cargo.toml","sha256":"e4b568ab9f6d84f7d7e6d66443fe825f360db9c27bc7c31d6ddc0647ba3ab304"},{"path":"product/config/auths-config/src/lib.rs","sha256":"fecf00ea65cef9018fda9af2063326d7065b869266d0d9e73a4f06816f1102cc"},{"path":"product/errors/auths-errors/Cargo.toml","sha256":"3b3a199b6460ba75bda84475bb5accd35e1485448a3981038db85bf4772dd350"},{"path":"product/errors/auths-errors/src/lib.rs","sha256":"7feeb9069fa4003f94f1f07c1c94619cf1c883e0dbaaf2187f04d0f742264bdd"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/Cargo.toml","sha256":"716f1f2a117d6d69d8effe9ee9057e24ba3502f20af6a602b06facb638cdabed"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/api.rs","sha256":"9ea61dd7ddd93282b073b98e453e6b75b26dc49689c04e9782435d06a3a09e48"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/clock.rs","sha256":"73f0a6e0f5903883329fa6683f5888288f759512ac69e5c87efd2b6b87f7d79f"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/http.rs","sha256":"14c1fce14e24c984b2a275563a29b6326fb08367922b6e8d37ba38b9cb81aa2b"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/identity.rs","sha256":"186de11230c8b33375951c4368609f8976bf9795f171af3fd7fac26207a94361"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/lib.rs","sha256":"0b4617d044f5254a5ab22f5a2578f91cc025206a8c1845be39c1c56dcdf7a5df"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/names.rs","sha256":"41bb23572d6002e23ee103d6fe70ecd68764861c6f2e48a1c53af998270a4afa"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/sigv4.rs","sha256":"39fed883f4802e68d3b41a68fea0aba0737810996b33d13577de70faba004c29"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/store.rs","sha256":"fc60ee9c49b2f4f063c449b4c78100c5c4872779e94ca168f796603b380ef6e4"},{"path":"product/integrations/auths-custody/Cargo.toml","sha256":"1e14034185ad1ec24a977fd5f41d0abee219606245c046ce2a82287fadef448b"},{"path":"product/integrations/auths-custody/src/conformance.rs","sha256":"13a2b28bba4a7af5b00bb96d16ecf027d35d5487b314e48a666fb8ed09c2f2e9"},{"path":"product/integrations/auths-custody/src/key.rs","sha256":"c3b1468b8538421a796aeb65a0cd94b942e3788e78741f20dde07b4838e0c3da"},{"path":"product/integrations/auths-custody/src/lib.rs","sha256":"836ad8044440fd250457a46f5c4a980339534a8af6a4daac2643560050b62d39"},{"path":"product/operations/auths-operations/Cargo.toml","sha256":"73dde1e914ba5e1386f8d49c0d730423cc72ae77ec44c6554a6a75cc8e8922b1"},{"path":"product/operations/auths-operations/src/explanation.rs","sha256":"b4a39bcbd5712cb9e735ee7deeb281f3fa6af5ddca973735bf3d87dce427ef11"},{"path":"product/operations/auths-operations/src/lib.rs","sha256":"3f401a56555113b98f57bca172a2660eaecedf76247b83a3fdbb089c133a29cd"},{"path":"product/operations/auths-operations/src/render/json.rs","sha256":"2ae042639960afee123730e945d373bc5dda1d2b3af20ae16c939a7e99b9e418"},{"path":"product/operations/auths-operations/src/render/mod.rs","sha256":"b3b7f6fe473f49227ace5a68bfc3d8dc14b5db8dd9888fd9e207070337b1b8bf"},{"path":"product/operations/auths-operations/src/render/text.rs","sha256":"f216cf3bdb00e264523271b16e7059535ac6b1aabf271cebd7935af155e4bfec"},{"path":"product/policy/auths-bounded-policy/Cargo.toml","sha256":"babd5d200923137ead71d8c2528f847cea323ce98da942a1320b054436612c47"},{"path":"product/policy/auths-bounded-policy/src/arithmetic.rs","sha256":"75e43c5d4eab8d1f71c1daf53839f5f9fe45a400afc1f63a30c6f55ce3632627"},{"path":"product/policy/auths-bounded-policy/src/commitment.rs","sha256":"c5706f2d583454e1a7f570f7ada138d4d864bef0205dfae7c1296774f396bb3f"},{"path":"product/policy/auths-bounded-policy/src/eligibility.rs","sha256":"c9acdfb793074e687fc36efad506be27dbd99ffbf40387bc66c8de39ef238432"},{"path":"product/policy/auths-bounded-policy/src/identifier.rs","sha256":"0006a32bae9eb16c4178cf797df418d2b0a781f2bc6474b741dc1a908141831c"},{"path":"product/policy/auths-bounded-policy/src/kernel.rs","sha256":"99187c28b161ac70bee1afed60711f7f645adb4d1671a01863f9849b369811d5"},{"path":"product/policy/auths-bounded-policy/src/lib.rs","sha256":"76a18638b810e62e594d6e951504679305ce21841388e0c282ad51cd7841b91c"},{"path":"product/policy/auths-bounded-policy/src/receipt.rs","sha256":"3b9eae82f349956d3e7f29b57b254bff5ce67cc703e6cf43445ce2827676d1ad"},{"path":"product/policy/auths-bounded-policy/src/registry.rs","sha256":"4e251ea5833559841f8ee0bd9b66c0c01c39fa5e3a21720a19c4e8adbfcb99d0"},{"path":"product/profiles/auths-profile-api/Cargo.toml","sha256":"7ae85761f58625b5d678f961fd052eebf3e000ef565c7312e3ac857763c0017f"},{"path":"product/profiles/auths-profile-api/src/lib.rs","sha256":"a194b82b20bf8aa864c2334ef6c6aec30b2154ded972862252d5dcefa488ab95"},{"path":"product/profiles/auths-profile-mcp/Cargo.toml","sha256":"db264fc25242f7b7e4133cbe5782545b3107b406c87168ae072683cfb59eac66"},{"path":"product/profiles/auths-profile-mcp/src/arguments.rs","sha256":"a5de696586d507e2aee4a49fee99ef1ef4c51a2e46603f8838f1af6d9009833f"},{"path":"product/profiles/auths-profile-mcp/src/lib.rs","sha256":"d0f8b733a09ef8408336cdebc8948d6a5861012ce6878598b11be7084dfd4280"},{"path":"product/profiles/auths-profile-mcp/src/session.rs","sha256":"166c281fa66333388e4760d6098dad02d3359e1d5de4b8f93312c014f97abb03"},{"path":"product/qualification/auths-recipe-qualification/Cargo.toml","sha256":"b7b15b30b9a3d96d4f089d514266d3a892de6608d30707aa44be31cca89ca9fe"},{"path":"product/qualification/auths-recipe-qualification/src/canonical.rs","sha256":"30a9b50777f0dcb4b606abfee2467d5a975d9f6ad941ab6c13ca3df5b359f667"},{"path":"product/qualification/auths-recipe-qualification/src/closure.rs","sha256":"0ad6aee9bd981e2863fa725f209ec84031db2ff12f4c7ac3aaf5120f0bb86039"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning.rs","sha256":"db135c55e4e3079a73253ebae275536523eb36b545d1c152b4d7dce3c6b76828"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning/tests.rs","sha256":"4dde3736d206099b1bea4c14e0092c6c1287d1af9065958777d7c54331dd8686"},{"path":"product/qualification/auths-recipe-qualification/src/error.rs","sha256":"52d5cf720a1e4579008fdda90a3ac2c31f0b8db57985f121f65e54b4da2b7dd1"},{"path":"product/qualification/auths-recipe-qualification/src/evidence.rs","sha256":"ba45a7409d67a8af26ab811af306412014557477a101ab2a8eb0faf8f2bd4b91"},{"path":"product/qualification/auths-recipe-qualification/src/ids.rs","sha256":"e81a906d571497ab2da753e1532d4443706410e0b75fdd59a7d2d788c7aec403"},{"path":"product/qualification/auths-recipe-qualification/src/launch.rs","sha256":"805154ce931e3977f2a2a2c62909d90f7c0a22dc167bf4f1554dcf19316ffef8"},{"path":"product/qualification/auths-recipe-qualification/src/lib.rs","sha256":"0e24b0f81191df0d078c7f4d73ced784ba9472372bfcdff3c7d0e2fb1687b323"},{"path":"product/qualification/auths-recipe-qualification/src/model.rs","sha256":"3484eb0ec287b23d4682ade7b1b0f8d1335985b3fb180f06fc28716076957d5f"},{"path":"product/qualification/auths-recipe-qualification/src/release.rs","sha256":"ec478e53f70052e566aac7e15be2f9e1b1cd46837ac6990ae955fa864d311586"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/mod.rs","sha256":"1e4e5edc12d921e6b95475b3c1850f58f622c088d24a1fc9398d34019fb2f288"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/schemas.rs","sha256":"c59feec2805621f341a90f81fc005e2c12f7a70f9d264fdeacccb2be4fe1c046"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/verification.rs","sha256":"bdf5746fed4d10a7f577f7878619a917d29aa8b7d522f00d9f774e53eff4c8c1"},{"path":"product/qualification/auths-recipe-qualification/src/verify.rs","sha256":"646ff0e52e915174ad183768706e35e5ce2118b83475455310b930a77a7877f6"},{"path":"product/receipts/auths-receipts/Cargo.toml","sha256":"6001fa1375899953aafcb07c23a6da0c8f57ea7ec08bb9c950b12a60a8cc6f0f"},{"path":"product/receipts/auths-receipts/src/disclosure.rs","sha256":"ba9ed439be0a320c8a01f5b6e9b51361c1a37e076947490d8e4a484ba6bb119c"},{"path":"product/receipts/auths-receipts/src/lib.rs","sha256":"547a57c4160256719cafb7d0ab972d9fc80b0da14fbbce4148c70c414070ff36"},{"path":"product/runtime/auths-connections/Cargo.toml","sha256":"babeb6e1dda3dfb66291713ce1e43dce5c349833d0b50ea4dccbf986030026b2"},{"path":"product/runtime/auths-connections/src/credential.rs","sha256":"7e6fbca8911d5c0c1baddf35572236d419566dd6e3fcbbdfda77c8dd114dbcad"},{"path":"product/runtime/auths-connections/src/kernel.rs","sha256":"a456af19526ef7b19278551fd8d97606b6e7aa5a195e70bdd85d1e0786090ce8"},{"path":"product/runtime/auths-connections/src/lib.rs","sha256":"79209249a0acba0e854d9937255ea0e30a9a6f8e1c2baad77ab83646d392de22"},{"path":"product/runtime/auths-connections/src/model.rs","sha256":"de34a089cac9702acb889b7602b3e4732306c9e61029ec892582b7e02b73fc77"},{"path":"product/runtime/auths-connections/src/registry.rs","sha256":"e57640e003e72ad3235c567c2bb944a262bd64e673f023b62ea091094cc7e946"},{"path":"product/runtime/auths-gateway-kernel/Cargo.toml","sha256":"34f864e67656af4ac7e5c7a347a23f01fc8ab31365b8e23c0ef474483b14a183"},{"path":"product/runtime/auths-gateway-kernel/src/construct.rs","sha256":"e9d65744bae273d65face4285e5d2da75c06a92ab48f7b8333d496604e31c63c"},{"path":"product/runtime/auths-gateway-kernel/src/lib.rs","sha256":"cfda6f8453426564c085475f183b6f790b438768a19668f1b65d33ba59dc8632"},{"path":"product/runtime/auths-gateway-kernel/src/order.rs","sha256":"efc2f2eef68232fe3082e1607e6f1e87d4a19cbb2f492bdc6e71916a2461b6a8"},{"path":"product/runtime/auths-gateway-kernel/src/outcome.rs","sha256":"ac0245699457c802a70cdd6f52a01dcb4777c487b58ed7dc9cfc99345465ccaa"},{"path":"product/runtime/auths-gateway-kernel/src/ratio.rs","sha256":"7ace22264812e6fc1ef3a62afee402cf43494bb71ae0d3de219ad1b39d690bcb"},{"path":"product/runtime/auths-gateway-kernel/src/recovery.rs","sha256":"9f46dcd1685ab6e4d1ba04a3fc286a9f3afee8fb47829be1fbc670a7926a2dc6"},{"path":"product/runtime/auths-gateway-kernel/src/transition.rs","sha256":"9c9c292397aa640c2f002ffb5befe110f86d0aa246f3ffe99440718e5174af3c"},{"path":"product/runtime/auths-gateway/Cargo.toml","sha256":"959b1a58a110315f86115966f85d6992afd91be28d741fee7354207d4bd6f258"},{"path":"product/runtime/auths-gateway/src/admin.rs","sha256":"5d0f1b583a4cacdcbc62521ed1a5730ed6b57d42bf826708a0c5e591272c4a12"},{"path":"product/runtime/auths-gateway/src/admin_boundary_tests.rs","sha256":"7ef23fdaf512cfa6315aed72577ccf0c4d04725f5b4fa4b5f0482e27e5e7ba1c"},{"path":"product/runtime/auths-gateway/src/app.rs","sha256":"acd1deab7a8524c97d4a76ec9f7079b3afc035d707e0480a0cbdf4d084972099"},{"path":"product/runtime/auths-gateway/src/app/content.rs","sha256":"4c01001659b1a563dfd4abe7e002e3f85609ffef511a0e39f967af944ea01300"},{"path":"product/runtime/auths-gateway/src/app/content_tests.rs","sha256":"6a239a15732dd279abb35a72721eb2034bf5aac79439edc7c34aa8d4fdfd5212"},{"path":"product/runtime/auths-gateway/src/app/participant.rs","sha256":"1d76d37ba8f7a4657ff013ad845bd90ab82636ade7e7a798937db05ee52a9424"},{"path":"product/runtime/auths-gateway/src/audit.rs","sha256":"aebb55cfe1305c6de26fda03989e138a6731ec57d1cfebf4114886bfb6b93d26"},{"path":"product/runtime/auths-gateway/src/audit_export.rs","sha256":"6cc3d70ef4cc64026de4ec4e094979a95fee6fadb86707b0e09515ad754632be"},{"path":"product/runtime/auths-gateway/src/audit_tests.rs","sha256":"8cf1ab4cd2789973791805b07216d423690645aa4f28307f87dbcb803bd2ad22"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway-harness.rs","sha256":"12b0c24d36b2e6a3be392d3c081a783b355fdd67dc5b54bacc0410e803116b8c"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway.rs","sha256":"d0d2ca3cd51ca3a82a1c777fc8c6b5d2cd47c40e1ed99fe81945d4bece793af4"},{"path":"product/runtime/auths-gateway/src/binding.rs","sha256":"663b0ce878319511aa7d05722ab4ab2fa9be18817884ffb2ee9f131ff1e382d1"},{"path":"product/runtime/auths-gateway/src/bounds.rs","sha256":"d0658585765d4d8f9865f65d23d850ec196eeca23fe65a66a55f1f1bc9b2c9b9"},{"path":"product/runtime/auths-gateway/src/bounds_aggregate_tests.rs","sha256":"ab34f227b7c8692ba1da88ccb32bb3687a66adf8353d8282fae905d4a88eb612"},{"path":"product/runtime/auths-gateway/src/bounds_tests.rs","sha256":"80b116ccf65bda2d7f2fbcd3b26fcf82b0a4bd3dce3a5df7842828cb271d7741"},{"path":"product/runtime/auths-gateway/src/candidate_runtime.rs","sha256":"b944c2f1affc11c1d44d0e8dcfcc5892be0c1715516ac9618e33e3639ac4d41b"},{"path":"product/runtime/auths-gateway/src/commissioning_budget.rs","sha256":"f5c38e9e07df3cb99b6bd664f33eae414b9f3dfef4932d69c19a9b174906dc1b"},{"path":"product/runtime/auths-gateway/src/commissioning_budget/tests.rs","sha256":"da104a1643c37515deec6397bca6db2054f2c9158ec3d230a1b1ec9c7d0f659f"},{"path":"product/runtime/auths-gateway/src/commissioning_floor.rs","sha256":"7fa6991c5ccd5ae1403be84b3da390323fab09f36e15ac01fd7a38ea350c6fdb"},{"path":"product/runtime/auths-gateway/src/commissioning_floor/tests.rs","sha256":"6b663d6e556adc0b455b81845bc4394d82c6c4de0c5f43e1310f3ddc6e4e40f7"},{"path":"product/runtime/auths-gateway/src/commissioning_session.rs","sha256":"919fe57fafa563f770402be66b4e32f1f0d652f09fe1276a62e41b50d66f8696"},{"path":"product/runtime/auths-gateway/src/commissioning_session/tests.rs","sha256":"48d44a5fccea737930f24c49a397428edc439525330c83a868b5113a48f122ab"},{"path":"product/runtime/auths-gateway/src/configuration.rs","sha256":"e5597c39b1acbe50cad20c02722feb38d382294026a0a7a4097e6d97b68eaafb"},{"path":"product/runtime/auths-gateway/src/configuration/engagement.rs","sha256":"67bdd2c792b9dfb1168020a10799af043143461f020b74b18d20fd4089f9b40c"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/audit.rs","sha256":"ee35149f8f348ff2a20ef7185ae0bc5a7b912ad5746510c0714b235765b8b1a4"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/blob.rs","sha256":"12af8071e9cd21c04cf9b55d3cb5e8eb2f33ff888e03e06e114222feb4abf752"},{"path":"product/runtime/auths-gateway/src/connection.rs","sha256":"5d5cc58bec7665e44c625b7a6195a35e513593681ada669294cd6bf47921143f"},{"path":"product/runtime/auths-gateway/src/control_namespace.rs","sha256":"0333baed635d34edb066d2b9cb4c6ea3f40faad4be8c75f54c989570515dddee"},{"path":"product/runtime/auths-gateway/src/credential_journal.rs","sha256":"7297fccaee5cd8622928e8e0a42bba50da7941970a6f682ecd300c41ee6509da"},{"path":"product/runtime/auths-gateway/src/disclosure_transport.rs","sha256":"614c975a4b9810f40092a2f9cdd022308b75e649167dbc486c9907f7570d8d45"},{"path":"product/runtime/auths-gateway/src/echo_verify.rs","sha256":"6d453051665f823abd7354d5c50031d9524cf47d6092d2f09080ae814e3b9575"},{"path":"product/runtime/auths-gateway/src/effect.rs","sha256":"5e1d5b8c28df616917d442b023e5161a2e3527ef7b8fb63d736728542c6caa2a"},{"path":"product/runtime/auths-gateway/src/effect/acquisition.rs","sha256":"0afd6aec490e7995a440786be6ac69cb5461201a4b4ec303e8b5a6c12ed97202"},{"path":"product/runtime/auths-gateway/src/effect/authority.rs","sha256":"2490494c3a1636decbfd04b2dbac71c47e49be26b61cc6cf41319a13450bb4a0"},{"path":"product/runtime/auths-gateway/src/effect/candidate.rs","sha256":"d1efc3ec7e1fa642af26f4e4c6a25924c60821dc2e96bd0b458d9292d3866678"},{"path":"product/runtime/auths-gateway/src/effect/candidate/proposal.rs","sha256":"d78574109f41300edfcd7ad38155439ffc3adb9a799554d75d5484738ef174f1"},{"path":"product/runtime/auths-gateway/src/effect/capacity.rs","sha256":"300fa32e09dab7c679b8c0a69bb4e3c1e924ed2ce1416090a2aa477a7eec9f0f"},{"path":"product/runtime/auths-gateway/src/effect/content.rs","sha256":"9f3b53c8c2ad5cafa183ed1229ee03f2cd8a610009b07da560372bd0fbae1673"},{"path":"product/runtime/auths-gateway/src/effect/disclosure.rs","sha256":"0acb5ac805e91c952c8f0028db03ae607c3753cbd08a76035f2d1b4fa6fe6244"},{"path":"product/runtime/auths-gateway/src/effect/disclosure_auth.rs","sha256":"32fa6f040ae46f3323df6e153c6ae810eccf32d22b9945e5565e7189dc877eac"},{"path":"product/runtime/auths-gateway/src/effect/engagement.rs","sha256":"5a36ff3f4460bf026a7e99fadc713672fbeb05dbc6f6393d10cb06440e779e54"},{"path":"product/runtime/auths-gateway/src/effect/lineage.rs","sha256":"0b3ddeb56377b69264bbd4738c624639a8dcad91b4df3328f907db439747faaf"},{"path":"product/runtime/auths-gateway/src/effect/prerequisite.rs","sha256":"e79596a4cbe47e307e3a3056c52582b1cd01a43c4c2d69479ee03df1f62af3b0"},{"path":"product/runtime/auths-gateway/src/effect/release.rs","sha256":"84e2572f76216e02131e9bbcc850f4b3572473eac6dd71baa144e63a2270cff7"},{"path":"product/runtime/auths-gateway/src/effect_binding_boundary_tests.rs","sha256":"83d8e0edf524a2be0d2c494e4b9897cab0ddcf61184828d716bae10cbaf904b4"},{"path":"product/runtime/auths-gateway/src/effect_candidate_staging_tests.rs","sha256":"ed0216d0ad2680eb1d903236da3d81b572486ddf05862cad13924e920ce8060a"},{"path":"product/runtime/auths-gateway/src/effect_candidate_tests.rs","sha256":"057995a62218152f232fa75b59506c88ad29a1b2b40c1ac033ec98dd2522c1af"},{"path":"product/runtime/auths-gateway/src/effect_content_tests.rs","sha256":"63eb623413167bf9ff34161b6bf4f54f68709af9fb1d1e7a419a07f63ce04409"},{"path":"product/runtime/auths-gateway/src/effect_created_resource_tests.rs","sha256":"98f7a9de7824dbf3e2361b3006ef823002b391d557969442edb371266f7673db"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_delivery_tests.rs","sha256":"9586b84b045561edbcf8276cd9769b412240f04248e240cd29a5068d4cd03a00"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_journal_tests.rs","sha256":"19f349a090f07288cfafe24aaffad49f28fe163e59870520aac6bb899f673a99"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_tests.rs","sha256":"5389b03d7d0cd5b23abaa3c396450fa4018102c942b27af35aef81e65b9bb841"},{"path":"product/runtime/auths-gateway/src/effect_engagement_admission_tests.rs","sha256":"46a34a83cfecb180c6f0937e83b8b14009afb4ce315864dfb9b3137759cb9959"},{"path":"product/runtime/auths-gateway/src/effect_engagement_control_tests.rs","sha256":"71e2e965b71b52d2fb877e22e5d4951d1d4072adede4b60dc3996197ac554395"},{"path":"product/runtime/auths-gateway/src/effect_engagement_delivery_tests.rs","sha256":"14b241916d9c3fe8141a38e93c62f8b8a039f2780ad3cd63282e707feaa4d1b3"},{"path":"product/runtime/auths-gateway/src/effect_engagement_information_tests.rs","sha256":"27735a9e1237a063c2a525cdcd93e8102164d549dc72509767a977ab4abd8491"},{"path":"product/runtime/auths-gateway/src/effect_engagement_prerequisite_tests.rs","sha256":"0566288b7f77f5beda44c8374f31a5053e02b44ccbe92781618e9fd90b1a6800"},{"path":"product/runtime/auths-gateway/src/effect_engagement_tests.rs","sha256":"2b78b315c7539d4119ce5b20164d6e4855d9b403b76eaa5b72fa3b72959a7621"},{"path":"product/runtime/auths-gateway/src/effect_instance_recovery_tests.rs","sha256":"eee64773b6373e1bd7185c07c5c4ffeaacafb907f4d0aa17b89ba1556beec5e4"},{"path":"product/runtime/auths-gateway/src/effect_native_tests.rs","sha256":"fd9cd960dfb02f68eef479ed2a95d65b79882c20f8a737c9a74d6a4222af407b"},{"path":"product/runtime/auths-gateway/src/effect_prerequisite_tests.rs","sha256":"51efa528051919d0ca67643cac3d0e06afac534706b802adb18311e2bfa222ff"},{"path":"product/runtime/auths-gateway/src/effect_read_budget_tests.rs","sha256":"9bf8491f0da471e07b5d96dbfdbdf5fbe5a47fec11700dca55a6ac05a1ebb68b"},{"path":"product/runtime/auths-gateway/src/effect_recovery_prerequisite_tests.rs","sha256":"e6235b83ac159d9446d79e6e072dd4aa9d0447a68055be3b32de6450a2300699"},{"path":"product/runtime/auths-gateway/src/effect_review_approval_tests.rs","sha256":"6e5c5a72ec93255d7d8f219ae8cf4401431644ff03d624164645a1e9d2b2e87e"},{"path":"product/runtime/auths-gateway/src/engine.rs","sha256":"8bd50399092720cd3bafcd07d7e4b669ccf46820cbb5e72b55a80f8ea4194227"},{"path":"product/runtime/auths-gateway/src/entry.rs","sha256":"6fd17c142c0001b9cda33c33b0e18f4d1d40866cde8a66b3f57d46f971c1ead9"},{"path":"product/runtime/auths-gateway/src/entry_tests.rs","sha256":"6fdd7a0373b3eca51d3062682f1187ee1318add7d2a1eb0e6b0a05ea36dadaae"},{"path":"product/runtime/auths-gateway/src/execution_witness.rs","sha256":"e8b1a8e41d5e3fa309760067849d390ef065feeb46701a83391832645a2f000c"},{"path":"product/runtime/auths-gateway/src/fuzzing.rs","sha256":"2dcf0a15e407a9180c7fecb7eecfaf4674698aa997b1f5de9a3649a49baebd1b"},{"path":"product/runtime/auths-gateway/src/generation_floor.rs","sha256":"3e82c3832685c43b546ebd12857ebecbfa6be29d8749654ab65e3e520ad552fb"},{"path":"product/runtime/auths-gateway/src/harness.rs","sha256":"5e296231c98e6429f3d805150fab9ce2d6a5789d41dd83f562b677314374567b"},{"path":"product/runtime/auths-gateway/src/harness/authoring.rs","sha256":"de511d89bf6bb72e443558caf0c4835dad2908b5fe5c13a3a02483e85dd7d354"},{"path":"product/runtime/auths-gateway/src/lib.rs","sha256":"440dd37d9cd96d549f7c96ac504f62ab315120511a1fae9684aec60af0ace14a"},{"path":"product/runtime/auths-gateway/src/listener.rs","sha256":"aa08239bcbc1fcb55e8a212fbdf6a84f12985b0d436dcb51dc58b06e59e435f2"},{"path":"product/runtime/auths-gateway/src/native_budget_tests.rs","sha256":"d6de965afc7f794e611545744fa515f833abf315157519ed8390c195a7dac8c0"},{"path":"product/runtime/auths-gateway/src/native_cost_store.rs","sha256":"d1acdd7e4076e3a32f312dce74a01e5dcbccdb1f8912758524b7841d61377eed"},{"path":"product/runtime/auths-gateway/src/native_cost_tests.rs","sha256":"45bcb4e9174d4c23495ac734a42b5f8b7735c14d4599cd191d50f6547aaf374c"},{"path":"product/runtime/auths-gateway/src/native_crash_tests.rs","sha256":"46998a973388884d902a6b07e12fa342fb08ea77363a43a41b0b0a7a5ccbcde9"},{"path":"product/runtime/auths-gateway/src/native_cross_recipe_tests.rs","sha256":"e2dbde7afba1b3da5df3a7a44821f413ab7861a5417ad16f8b912f390128d115"},{"path":"product/runtime/auths-gateway/src/native_dependency_tests.rs","sha256":"0e15d059140ad485b2548f4234b94424d62b5563a8dded42224329a76b101f37"},{"path":"product/runtime/auths-gateway/src/native_differential_tests.rs","sha256":"17fc0803fe5e7f78b416f8f68e7c9066baf1bab69bdf0b51c44fd19e3d719da8"},{"path":"product/runtime/auths-gateway/src/native_disclosure_budget_tests.rs","sha256":"bb2a6f76f06a6d42d69698f7d22d0b4aeb4dc857e442042d65582097567009fb"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_testkit.rs","sha256":"4beb946a288e4fe082cc0917f4200b18b8154eff98eca1ea3d0c830ffdc3625d"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_tests.rs","sha256":"425e423f04d92794656d4da915125e4d0a8be25ec85fb88244ee0c27ece8ec44"},{"path":"product/runtime/auths-gateway/src/native_disclosure_entry_tests.rs","sha256":"50f5dc35a9a8ef462b8833296cb313b2acec81d544b7e317c7f188741d0786db"},{"path":"product/runtime/auths-gateway/src/native_disclosure_file_fault_tests.rs","sha256":"72d67bb0d3fd77fb93c4f5d3ab0afa5a939742b5a47acf006a511d99d72cee9f"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_batch_tests.rs","sha256":"a8b8a90210d9f7f0012e40701c09c524527f93f9e56933d89b58a38464cba702"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_commit_tests.rs","sha256":"1e14503140805c12883e1c288b75029aa7fd9ebe8c5d490a4c503161c4a27a4b"},{"path":"product/runtime/auths-gateway/src/native_epoch_tests.rs","sha256":"e37d34e699baa2b84578bd4c378975dbdceb407de51861c2217afdcf7b48e3b9"},{"path":"product/runtime/auths-gateway/src/native_federation_tests.rs","sha256":"bf2c6313f70c4b7f51f9ad05351048be3625d9432f3c725e84b046936304f540"},{"path":"product/runtime/auths-gateway/src/native_file_fault_tests.rs","sha256":"e1077a0059aa69918fb7e0a3481edd19af45a7343ce876583fbdbc96c4291b21"},{"path":"product/runtime/auths-gateway/src/native_generated_history_tests.rs","sha256":"5a5e308c1e4bc32cac31badf91e9453bed62e3e90f1b6585fc522bb4038990f9"},{"path":"product/runtime/auths-gateway/src/native_guarded_mutation_crash_tests.rs","sha256":"5329f72e7f22399a17627b058c2035c243e1b6ba60c9dfcd1c834258244cc440"},{"path":"product/runtime/auths-gateway/src/native_information_journal_tests.rs","sha256":"067bc51f7011971e8c5d021430fbfe323e5cc3cd7cde41c546cc92fad1f2cbc2"},{"path":"product/runtime/auths-gateway/src/native_information_replay_tests.rs","sha256":"165a1dce11c2006e6adfb5eee4c4977737b830995e6e29f77544a999893b0a5f"},{"path":"product/runtime/auths-gateway/src/native_journal_tests.rs","sha256":"d803ff53f90ce2a8c29808b4f874cd81954a3a5c52e19b519ab22f0543808fe1"},{"path":"product/runtime/auths-gateway/src/native_mutation_budget_tests.rs","sha256":"41d7f560d6b04e750acb2f8add2544745743ea9fea760a8ffd5ec5aab307e94c"},{"path":"product/runtime/auths-gateway/src/native_mutation_crash_tests.rs","sha256":"3e1befd35e7264024666331b52ca2245540ffa8f9927ed62e3aa45c7c8cc8950"},{"path":"product/runtime/auths-gateway/src/native_mutation_entry_tests.rs","sha256":"219a1986cf7440d31734db9db3c25f7997486a2fc29fee0a1ac8c7f0ee9ce803"},{"path":"product/runtime/auths-gateway/src/native_mutation_file_fault_tests.rs","sha256":"252f6ca9455b291b0873d983c8fccc75254d947b89a3fe9a1de0155c8ee53930"},{"path":"product/runtime/auths-gateway/src/native_mutation_journal_tests.rs","sha256":"181bf0a196805e50944cff4fe2315459eba877e7d7b5b90bf3c99e3353a8cad7"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_batch_tests.rs","sha256":"137f0e2f0e8d950cea3b38a7a03113c61177e54083f11eecc34b994ce41728f1"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_commit_tests.rs","sha256":"5d9a3b8a1601c83c66db3aefd904c16233ce2700d070ba5c9c4f81f4051c5fad"},{"path":"product/runtime/auths-gateway/src/native_mutation_replay_tests.rs","sha256":"3a874e1416cbb29cce70930f9955a70b4a5ad46e2cbca8d55f1acf070215cfbd"},{"path":"product/runtime/auths-gateway/src/native_partial_upload_tests.rs","sha256":"5fa867219d61b7c8a563e7cf5111291f15b8a11464623859be8aa9ea858170ea"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_proxy.rs","sha256":"1c95b3f8af48b78dc4f1c1baa3b26c1aa7bbe868c23aefbb32f1f0ae592f0045"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_tests.rs","sha256":"f021b110991ba3ae497705d0aaa0350a210f09b6f102fd71ac2f8eb4ff8f30c0"},{"path":"product/runtime/auths-gateway/src/native_postgres_fault_tests.rs","sha256":"0c6edea869a20765b322fa69c48e580aa0664e726b6cef483d4eba49803135ba"},{"path":"product/runtime/auths-gateway/src/native_process_tests.rs","sha256":"778a02ea4de3a0655021bad7d2f4b5f0007c6518ef60e966db3da49bfaf22c37"},{"path":"product/runtime/auths-gateway/src/native_public_evidence_tests.rs","sha256":"dac3a70f4535a14aab49ceed5a6b5fd7002e199270bb5a120f5bc8edfa5398bf"},{"path":"product/runtime/auths-gateway/src/native_recovery_actor_tests.rs","sha256":"bfdcdbaa0ee1d6822c57e5ab9ca524e731c393f9289c5508b61a0fc1d0b065e5"},{"path":"product/runtime/auths-gateway/src/native_recovery_authoring.rs","sha256":"9f4e8008160b349a52267eacd6a1c1e5c31c3c1cdfd71b574162ccaa9f7430b6"},{"path":"product/runtime/auths-gateway/src/native_recovery_history_tests.rs","sha256":"0c6ec8fe18fd4cc8496f04c3bc38552c3602d7254cae979fac76aeb7c7e4f41b"},{"path":"product/runtime/auths-gateway/src/native_recovery_limits_tests.rs","sha256":"f147c2e78cbe364fb3fd0c97bbbacdad86d77ca8c0b8575d9fa108968f82379a"},{"path":"product/runtime/auths-gateway/src/native_result_wire_cases.rs","sha256":"2b93c8ed96d7092216410bb99435411fd57497284639f56e0120b16639a98eb2"},{"path":"product/runtime/auths-gateway/src/native_retention_tests.rs","sha256":"224c941e394dd711a7ee19e7b52a1d6b7359eec62e7decec323d066319cb59d3"},{"path":"product/runtime/auths-gateway/src/native_scope_tests.rs","sha256":"8d3f362df9fadc10c22f0483f3a16d238d0f82f393a628727adf0b728707673e"},{"path":"product/runtime/auths-gateway/src/native_threshold_testkit.rs","sha256":"74e6b6ed1b77b463effff132fd8af9b3b59aeee64704a8fe8a19ed3ca9d79bf7"},{"path":"product/runtime/auths-gateway/src/observed_tests.rs","sha256":"91223493fefd3efc3fec58db225f00786b539e3b24027419e919d8bd7310059c"},{"path":"product/runtime/auths-gateway/src/observer.rs","sha256":"1c8988dd8807566d5a152e1894aa0f4c80c3ba7302ac910a4a6978d4f31b323d"},{"path":"product/runtime/auths-gateway/src/onboarding.rs","sha256":"6180e79d7698bcd4dd6ffdf32dcfbe14427f96de92f4ae4ceac4dda651f3671b"},{"path":"product/runtime/auths-gateway/src/operator.rs","sha256":"fe3b11fcf8e2394ab955b09a5b9b1f979c46f9e07a4f16e1a3ca160d675f1ace"},{"path":"product/runtime/auths-gateway/src/participant_control.rs","sha256":"58acbac1ab812963ad0ba0e2864395a87b3afe50962263cb44e19776cf5100b8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment.rs","sha256":"719e82ed5f30f7b37d6d87e45220918d945a2ed8fadc9e760308398e9f6501a4"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audience.rs","sha256":"83940af76073d391f1181eccea2e9b682dbd7ffcace6c39b2123ebe09e721573"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audit_tests.rs","sha256":"1a8cb537f16d023962f1375b7f15d0879b2be85c29775dd677c84d87b8c9d183"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/configuration_tests.rs","sha256":"2e1cb7024ff137bfd3292929f26ec078c9213f6276f4a2f915b279530c6c7782"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/cross_recipe_fixture.rs","sha256":"5a957eeac83da3f1c74e923648319674f6a90e6673b45fdc029b784b1c09053a"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/identity.rs","sha256":"a04328f93d59da6c34d623319b8a6f55a32e7d718837109b299ef6935b126930"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/recovery_tests.rs","sha256":"b13faae436b325fa6ea234613f1542f4ec8b1dfb7082d3f31339ea7f4a8b0cb8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/root.rs","sha256":"586bfc83e1a615b7d255ea235f6e519945126bb3ba7fe41d2aecd1dbcdccc797"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tests.rs","sha256":"a6f83af4c504d7a5bdedad90e473c8032f10c384adeab29075051389040f7696"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tree.rs","sha256":"4f2b8965b91b6e23317168221d077b074fd149690e28c30fad6055982ada584e"},{"path":"product/runtime/auths-gateway/src/pending_vectors/attempts.rs","sha256":"79803db1c278b2133d4adb112ab325247f359cfa5cf34e3de32898f6a9bffe62"},{"path":"product/runtime/auths-gateway/src/pending_vectors/bounds.rs","sha256":"e612217307e1da5b0eb5ee6582a7458bb064b8aa8a529fc6555b1b334127ab68"},{"path":"product/runtime/auths-gateway/src/pending_vectors/codes.rs","sha256":"6fb3f1679b0fd2ca7a8ac6aaee65f586b9eb809d9d7c9e26d3dd8ae2bfd10307"},{"path":"product/runtime/auths-gateway/src/pending_vectors/keys.rs","sha256":"b0b1f79d2fadc06e91378a8250223a429163138e4b86e90e09bc207d80fabf86"},{"path":"product/runtime/auths-gateway/src/pending_vectors/mod.rs","sha256":"5de8340f0ef71a0b57a09e323fefe473d3160c6ae952b9ba46f714825fbacafc"},{"path":"product/runtime/auths-gateway/src/pending_vectors/outcomes.rs","sha256":"a8960d8e055ac31827e379513f57f00ed868b559079fa2a4687e1b055d48e3ca"},{"path":"product/runtime/auths-gateway/src/pending_vectors/production.rs","sha256":"15c687599b0342dc141878afdf727092b23ade67ee5564eaa671f3f06befad57"},{"path":"product/runtime/auths-gateway/src/pending_vectors/recipes.rs","sha256":"5d550e3708ea41a9547ae2207699bde5ff4435f5a1ed7afa4378fb8defb51bb4"},{"path":"product/runtime/auths-gateway/src/pre_entry.rs","sha256":"3f2554feda72fa047229d427504676a1fb14894bdd377055a3108d7b3e3587cd"},{"path":"product/runtime/auths-gateway/src/prerequisite_race_tests.rs","sha256":"683cc46b3718d12dbb42668dae4bc6ec7e7508dcbb6b6232fead2e3e4f510d0d"},{"path":"product/runtime/auths-gateway/src/property_tests.rs","sha256":"85a77aaf01d9be51e1dd7c72461653a099c51b0ca9c818800d991abe262b198a"},{"path":"product/runtime/auths-gateway/src/qualification.rs","sha256":"d04669a9fe44599e63fc11697d2a304370ca062f06e049db16331d0f07496a87"},{"path":"product/runtime/auths-gateway/src/qualification_simulation.rs","sha256":"61f4117e33db07be83ce0f0376f79a405ff6d8bb7ffc2e28ff0bf927486941ce"},{"path":"product/runtime/auths-gateway/src/qualification_tests.rs","sha256":"ed9eb74599074af67730d63f8c5093f6a5277bced96dffeb81317a6dd9f4c8c6"},{"path":"product/runtime/auths-gateway/src/quorum_tests.rs","sha256":"a6533de9bc2689ec632f009404daf363494e224e7b89b1c65bb2e2cd4fc6421d"},{"path":"product/runtime/auths-gateway/src/readiness.rs","sha256":"911c3f11892f94641574375e2da4c671c802738f71082f12c39832331052d43d"},{"path":"product/runtime/auths-gateway/src/recipe.rs","sha256":"efb99a8f060b5633ea8ea75f24378e701f6ba2af023faf8c7609e4de4e868637"},{"path":"product/runtime/auths-gateway/src/recipe/content.rs","sha256":"e3f8aa8cf2dd9ef5777d9d1e76331052c67be87873db0c2cd6a8f48ff940d9d6"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource.rs","sha256":"2284b6f7363b1a15dd3c91dd3043f46a5c7a9c12d997213b13751b82ae627e26"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource_tests.rs","sha256":"ab371d7d7a5dae249da924e7b94d5c863491a2af796d2febdf2dda2a191c559f"},{"path":"product/runtime/auths-gateway/src/recipe/effect_review.rs","sha256":"8f94896f0d124162d3dbd080c44582bb23ad181bb582ff5cd3d049d75fcb6d77"},{"path":"product/runtime/auths-gateway/src/recipe/lower.rs","sha256":"81118ea7ae6c2d9984b88fe9991f91283070859d56923ee4fdfe9a50eee9ccb1"},{"path":"product/runtime/auths-gateway/src/recipe/response.rs","sha256":"0b4a074eb05b98685697094ed4775c5fe588b3e34f954aa1844135fe14c94487"},{"path":"product/runtime/auths-gateway/src/recipe/review.rs","sha256":"f9f88f6d54c9a517b55ea717ce8caf5199954ff710c0d20e2bb609f6b1344a51"},{"path":"product/runtime/auths-gateway/src/recipe/runtime.rs","sha256":"6301c005c5f014eb81a7a85dfa3bd256ec15e35bf1cdf6e60815a2a18b7151a0"},{"path":"product/runtime/auths-gateway/src/recipe/source.rs","sha256":"f79e481ab0f40985819b317c540c715766611b5c8c0e5647c87849fefc10cbac"},{"path":"product/runtime/auths-gateway/src/recipe/tests.rs","sha256":"78cfa166bb02b722c92205d2a95c261ef4f3cc272150145980252cb4c51c13d1"},{"path":"product/runtime/auths-gateway/src/recipe/validate.rs","sha256":"3f613af38c5cf29901575af4f82a9daca6718b2da70bc84baa0994a71be6113b"},{"path":"product/runtime/auths-gateway/src/resource_identity.rs","sha256":"edf093bf84c0ca6c0a300adc6060fe10cf58b90e592dc3cd6ebd58e73632373d"},{"path":"product/runtime/auths-gateway/src/scenario_tests.rs","sha256":"eba5fe0268e5d8516eea79a2cf418f5c52ccdf777fa94e553cfba00f0b90865e"},{"path":"product/runtime/auths-gateway/src/separation.rs","sha256":"be9306848ca5d801767cf6aa14247c8618312ef0e202f00ce0c24c4844491061"},{"path":"product/runtime/auths-gateway/src/simulation_attestation.rs","sha256":"88705e5d45415f760f1e3c3a065c35c48f4f4065bf7b3feb7882246983814d6f"},{"path":"product/runtime/auths-gateway/src/store.rs","sha256":"426596f076cc0e82a0fcc8caddfe740ec9f7e6447ddffd311e4d571bf1be9a5b"},{"path":"product/runtime/auths-gateway/src/store/acquisition.rs","sha256":"5114e27ef1e8c71dfbd868c9054209344995dec1807bc22f0114eb609a7cd9fc"},{"path":"product/runtime/auths-gateway/src/store/acquisition/candidate.rs","sha256":"13518ffebf9db5916950a89dccf5c04dd0ce16995b76667960ba814a41ba332e"},{"path":"product/runtime/auths-gateway/src/store/acquisition/content.rs","sha256":"92f87e4556335af8e1c4157e60e6936ca02b271381569e14510bc2c35e697ece"},{"path":"product/runtime/auths-gateway/src/store/acquisition/recovery.rs","sha256":"b05e9d7325c8c21f27ec5b576923d9a909ca18921089d4008548076541068e69"},{"path":"product/runtime/auths-gateway/src/store/capacity.rs","sha256":"d25c4a0d753317270cb352246c70642bf0659e6448d14061356e4e9ea7ed3811"},{"path":"product/runtime/auths-gateway/src/store/disclosure.rs","sha256":"3b2f68d024bb10b734bd1e48ceb4eed23d1348ec6f716be78ec27384458ff007"},{"path":"product/runtime/auths-gateway/src/store/engagement.rs","sha256":"953ef4c20f16775c10bca98b820536f347a6ce9c756934503efdb7bb77c41ff5"},{"path":"product/runtime/auths-gateway/src/store_retention_tests.rs","sha256":"a9e300fde3c45999764ee05c4c6ea46cfb9ffcaa51b82337a322925ad50f4f50"},{"path":"product/runtime/auths-gateway/src/store_testkit.rs","sha256":"720bdda4464a54198348e1cac8ff75ad4882b9ce10c389befb4e9bc80340156c"},{"path":"product/runtime/auths-gateway/src/submit.rs","sha256":"06d554107f389a1e445ef0505d12ee75d557132a25be17bdda0da0071fe73bfd"},{"path":"product/runtime/auths-gateway/src/support.rs","sha256":"d4865f95a7a2fdfe297f3f73687c05ab64a6b911814daf5f2b6c703ce58262ce"},{"path":"product/runtime/auths-gateway/src/transport.rs","sha256":"0ad16c63c19cc41d11c485625c8fc0617aede21401d16ec814401f963538bb46"},{"path":"product/runtime/auths-kernel-runtime/Cargo.toml","sha256":"926bcd0053e5edd703be8f0027ad009e2982db013c8174c1366edbf38b48087d"},{"path":"product/runtime/auths-kernel-runtime/src/lib.rs","sha256":"7108faae9ca4bc32dc093ddaf885ac8f74f3c9b8d317b7c7d0ed00d1d0ab5972"},{"path":"product/runtime/auths-lifecycle/Cargo.toml","sha256":"c5053c705f8d5554b44e432fe75287a2faf11d644e5a2552e45ad6cd94176af5"},{"path":"product/runtime/auths-lifecycle/src/codec.rs","sha256":"51c4b746749150e8bfcd8ff972b3f6c1ef40bec15583448ec1b471d9ad737dc0"},{"path":"product/runtime/auths-lifecycle/src/digest.rs","sha256":"55282cd7d8aba37713c2dcb5357c9877819edb72a30eadefb860d28d7d3a3eb7"},{"path":"product/runtime/auths-lifecycle/src/identifier.rs","sha256":"31620e8c16de68d3d2d3b84d6353c1a5b9d4151d8247f91fa389b906a8e660f1"},{"path":"product/runtime/auths-lifecycle/src/kernel.rs","sha256":"2abb8c094b36d35b364e74d78091d14c5d6f3d1eb6552cca3b5538dbd017ce23"},{"path":"product/runtime/auths-lifecycle/src/lib.rs","sha256":"afe5a345cd309b5a4f08ffba3170a6d7f16ff914892b3f2006d5208ed24ec736"},{"path":"product/runtime/auths-lifecycle/src/model.rs","sha256":"1af12bbeeeaa65ec02ddcebd7d2c8c92ec1e339fa40ae85b45ab9b01a722a4fa"},{"path":"product/runtime/auths-lifecycle/src/operation.rs","sha256":"78e6d05fcf5d7ea4f148032a3fa26fdfcab77eb346019effe927b08e0d64d732"},{"path":"product/runtime/auths-lifecycle/src/registry.rs","sha256":"53495fe6f7a77422593a41623e28716f1c140dcc1e00f87f6b0ffbfb93a5ef90"},{"path":"product/runtime/auths-lifecycle/src/sealed.rs","sha256":"2e0c03b5813c926c159598bb7890d1523825edbe57cd687d42a5dfb3374a0c19"},{"path":"product/runtime/auths-lifecycle/src/test_support.rs","sha256":"221d9a5c5ef8e1f9f8fd66927484eaf813571d0568470278ecd8fa08a5eec8cd"},{"path":"product/runtime/auths-lifecycle/src/transition.rs","sha256":"011805a28efdd541f44ccea54dd0e34a1e58f4004447ee58013703b4fb6b2822"},{"path":"product/runtime/auths-runtime/Cargo.toml","sha256":"dd29d80a8b4bb56c869f036a6c9998f6e6d1c0383ac5dc03fa42b24abe2a7ff7"},{"path":"product/runtime/auths-runtime/src/lib.rs","sha256":"132ca03d58c14905d3a822a4972f42a22a5ad33a45f2ba9ca44f3a57d810b4b0"},{"path":"product/runtime/auths-runtime/src/production.rs","sha256":"fd4eff4270c571c10fcff6cf27df28961ebf074de8a1a028f500fda1ca376820"},{"path":"product/sdk/auths-approval-quorum/Cargo.toml","sha256":"df904971fca87a24194c5816738a331588fe8f164acb5d70839a35dca5f57114"},{"path":"product/sdk/auths-approval-quorum/src/lib.rs","sha256":"72e4086088a1c0912e4e1a9e980f26a5c280bf5ab16ea39c9f0f58d5096ac2ce"},{"path":"product/sdk/auths-approval-quorum/src/remote.rs","sha256":"9fa029c7c63003adf260f8aec55160c545681c60c1bace0d934e7525862aac7b"},{"path":"product/sdk/auths-approval-quorum/src/remote_tests.rs","sha256":"8a09ce17cfee82a035a74edd535f3ebeb3db0e078784740d3997b17dbdb10197"},{"path":"product/sdk/auths-approval-quorum/src/tests.rs","sha256":"0acbf12be3e497dcc6c2d8f29c9af3b1a7ed8e11b75f6399570d4f217a785060"},{"path":"product/stores/auths-stores/Cargo.toml","sha256":"a32c4b76d17b264be5d40d24497ff237e1ed87822e8bab86229b3db93106dbe3"},{"path":"product/stores/auths-stores/src/gateway_attempt.rs","sha256":"f39dc84a238db0ebc70ad1ac495da194d2c24b5e1f9905552a9b1143278725a9"},{"path":"product/stores/auths-stores/src/lib.rs","sha256":"40c280a5ff79bfc1cafcf0bb415e775e205637c526973eb94b43a30f86d4e6fe"},{"path":"product/stores/auths-stores/src/lifecycle.rs","sha256":"4033f69a8d36de9285b87ab86af363fc85f785918ec2042d0ef1bdcb64d6f73a"}],"schema":"auths.gateway-semantic-closure/1"} \ No newline at end of file +{"files":[{"path":"Cargo.lock","sha256":"77ae14c9bbf8dc445841fa919923f17d9c7dceec704ddcaa88dafe5dd92f6c2b"},{"path":"Cargo.toml","sha256":"ccc17deac72da945940a9ab4be2ce27628c056b977d19429bc1679b19fae30f3"},{"path":"core/adapters/auths-did-keri/Cargo.toml","sha256":"86ba3e3f9a0a70d970568bfb3113b7ba7bbdd81c3eebbb52743dd574a0c0ecaa"},{"path":"core/adapters/auths-did-keri/src/lib.rs","sha256":"a75674842f8a7142004369ccd206ab43e476459293f0ff4bed4d4e659031b3e3"},{"path":"core/adapters/auths-did-key/Cargo.toml","sha256":"d5a3ae07ecde83f91eed4c3785051dd0f44eab6c891754f3309b6b40596707d7"},{"path":"core/adapters/auths-did-key/src/lib.rs","sha256":"b76a3f4528a725df53cfa9242e6e414e1d26caa48468aaed497e28b121f4497c"},{"path":"core/adapters/auths-raw-key/Cargo.toml","sha256":"f49616bc18c19e6aaa7e6a02ccebcdb9f5c1422c1278ef9869e0dbf22ceda7be"},{"path":"core/adapters/auths-raw-key/src/lib.rs","sha256":"45eec1b295dac3bed65cd79c942870b926b06b3f5d38eaebaeb6140ac69315fa"},{"path":"core/crates/auths-algebra-kernel/Cargo.toml","sha256":"0cb078915287b8c47d20fb97b6fa14135ed1c61c4985c4de2753855563c27bba"},{"path":"core/crates/auths-algebra-kernel/src/generated.rs","sha256":"ae4bcbef42a408c7ffa0c6a74a42f7de177a6f14479e51d205acf830bda05960"},{"path":"core/crates/auths-algebra-kernel/src/lib.rs","sha256":"6654667eeb9b353d6648954c9fd2e8838462a82ce6b2803eb49e1366892c68c6"},{"path":"core/crates/auths-assurance/Cargo.toml","sha256":"afcb12a97ddd09d7a264b9ecd3fcaefc865ff2c9b4539ee85b00883420ba333a"},{"path":"core/crates/auths-assurance/src/lib.rs","sha256":"0fb2ec844d674b25a9e20b1601452c89c2454901fa506adfa9bb38ef9a7fa213"},{"path":"core/crates/auths-author/Cargo.toml","sha256":"1e6f0e3bc079ddb558decf0db26b291c6e72fc47327b6df1b7650d41689b215f"},{"path":"core/crates/auths-author/src/lib.rs","sha256":"e14475f2f49715a1869d5fa6b11ff1fbb72497e39097e09f833b0bae7e5b3f2b"},{"path":"core/crates/auths-author/src/observations.rs","sha256":"dda7d6bfa6f4bd7e95a480ca283c2c0e996f69c5c15cb0c7197af328131a7066"},{"path":"core/crates/auths-authority/Cargo.toml","sha256":"4f68212938029f79ebd857b4f3038494eb85d0163d49f07e51376715cf959815"},{"path":"core/crates/auths-authority/src/lib.rs","sha256":"da88d5194de4e17449e69972c0fb042afa3c39798a8f570f30771e77c384f1eb"},{"path":"core/crates/auths-codec/Cargo.toml","sha256":"e20e51826e17814effd9d8925d18d5fbdd6c0d37bf50231e743ec2611314722c"},{"path":"core/crates/auths-codec/src/approval.rs","sha256":"fbff43bf4d57f69f8b7738a8647751cde75c5a932dee65d924a1fe9c7202f91f"},{"path":"core/crates/auths-codec/src/bounded_policy.rs","sha256":"d21f6728be2d8a04b6d94921f2b683f7e61cbb42e0ac6866f1c88a49caa534c3"},{"path":"core/crates/auths-codec/src/decode.rs","sha256":"ba2999584cdf53b1b517ecb9c7ea50d39efee17c666a9a38e2ad1ac94379f778"},{"path":"core/crates/auths-codec/src/encode.rs","sha256":"8491192053e2e15d62b4d2a491de22405b7487ead69ab6f6bca40669ce7ca5f7"},{"path":"core/crates/auths-codec/src/error.rs","sha256":"fecb0737c16deb42d859f1dc7727c698438d9ac12064fd99e0024629642c390c"},{"path":"core/crates/auths-codec/src/hash.rs","sha256":"f88e111f1dbb2cef6b7b5e9c948cb45ff92e366710c8a5f5c636138aa748479e"},{"path":"core/crates/auths-codec/src/lib.rs","sha256":"3b0e5c94c6f34f750b88a9333e1d5c8145746d845d3a23e0d2f61807cf592ea7"},{"path":"core/crates/auths-codec/src/observation.rs","sha256":"38328b0c71ff97a4196eeade8b4faa889527ff1f80bb168468bcd49082a3987e"},{"path":"core/crates/auths-composition/Cargo.toml","sha256":"331e13025eb82588b5269ed3975929eb41c823d588c49e4c296273d85c6fe80e"},{"path":"core/crates/auths-composition/src/lib.rs","sha256":"e42e3b0b6a9985b73c533aeb23799c638979aa27a9ce7d0f10a8d60340570fb1"},{"path":"core/crates/auths-model/Cargo.toml","sha256":"565c15302b0cc9270db1e28efa3862804846850ba933cc17aea8abcec4a65987"},{"path":"core/crates/auths-model/src/approval.rs","sha256":"54cf44a9ef747ec21546a4086aecfb130bc7803b0d646430e6082df51e6e305f"},{"path":"core/crates/auths-model/src/bounded.rs","sha256":"f90496abc0a06c028b4d850af6ddab7d850bfafeaa3d042f1b1246a41d8bbbc9"},{"path":"core/crates/auths-model/src/bounded_policy.rs","sha256":"306a8f049cc7cfc7635fe0e4de47eb7813eed63d3c14c3be2b51586aa4eea450"},{"path":"core/crates/auths-model/src/lib.rs","sha256":"e7cfe6bb9574c6b016aa63e70658c31e0b90903ec6479a49f4a2ceb64f5bad97"},{"path":"core/crates/auths-model/src/observation.rs","sha256":"b3ed3e3cc090afca2896a7d3de7988afccc1ee1ea0ebd91b51a8bc0f20ad8dbb"},{"path":"core/crates/auths-multikey/Cargo.toml","sha256":"858756c1197befcada06134742bffe8d58cf674cadd6c046bf710570e96efaf2"},{"path":"core/crates/auths-multikey/src/lib.rs","sha256":"f5177fffb11e40eeaaa665ba886c541fc1f24d5eacdd6983fb03dc20148733f0"},{"path":"core/crates/auths-ports/Cargo.toml","sha256":"596a9b0f5af3717c16a6d13f7054d8a106bcd9f01f5f72c2235dd2afcf0ab16c"},{"path":"core/crates/auths-ports/src/binding.rs","sha256":"a16c012d40aa4249e3ec54372b9611006d0bfe8c7dc3c741911c2194ad17736d"},{"path":"core/crates/auths-ports/src/diagnostics.rs","sha256":"aa596572503b5a65a918bb2ff38281c144ff53821ee914e9325c852828d852df"},{"path":"core/crates/auths-ports/src/lib.rs","sha256":"8da1debf86f9532df0660155d04298beb1ba3a1204508f8586e2e67cd2fb3449"},{"path":"core/crates/auths-ports/src/path.rs","sha256":"b68fc547b4e4d97a60cbbc1cc1939fc6b34a8233b81f840bd396914a707e3ea1"},{"path":"core/crates/auths-raw-key-core/Cargo.toml","sha256":"98c0bc8527a537512e43a74dd6ba9658c6f0cdc16610cf938e3f9b43785d836d"},{"path":"core/crates/auths-raw-key-core/src/lib.rs","sha256":"98c0500c41697aae28708ad0bf970b9a97583d96a3d2c18d23e7fa351e0f7d12"},{"path":"core/crates/auths-registries/Cargo.toml","sha256":"590e49e58b0622d9d6274fea46796dcdb07dec9550eff295cce6a6427ffa51e2"},{"path":"core/crates/auths-registries/src/lib.rs","sha256":"450d3886d85ee333b7e046317fb5b47cde62483d5f3e41d46265e2caf4c373ec"},{"path":"core/crates/auths-registries/src/template.rs","sha256":"1224039dd2b3ce6fa8357613d8cafbae40400493da7176da202b9ade62fa05e4"},{"path":"core/crates/auths-signature-core/Cargo.toml","sha256":"6bee2230eb30af1be0bd5c2d57bd3e1903497a70028d47290d4ac6e9e0e8bca0"},{"path":"core/crates/auths-signature-core/src/lib.rs","sha256":"db97ecb45a82faa6f96a92738d3af1da92d1ba2f241f2c29114f4b8107dc4ab0"},{"path":"core/crates/auths-signature/Cargo.toml","sha256":"7f7b5682466ba439d8c59579022cb61068cad9fb4bd2d73e1cc21327c902b450"},{"path":"core/crates/auths-signature/src/lib.rs","sha256":"b3d9ac4cc3ba0797b9e1c09f2d6ac05089b25dac4e285a5af28c0165b33d925b"},{"path":"core/crates/auths-verifier/Cargo.toml","sha256":"c43358e06a33324b41a8b93e5cc7279c55f7d21f1f6cfaa539a3fc7b4c27a38f"},{"path":"core/crates/auths-verifier/src/approval.rs","sha256":"c3cae6a49e169051eb555bb092b1069a4d422516d6a2114623a89e5f31ff923f"},{"path":"core/crates/auths-verifier/src/causal.rs","sha256":"9635230f33b13a263573d319ac8a1976addbcc07677514a43e3c7bf28dc04587"},{"path":"core/crates/auths-verifier/src/lib.rs","sha256":"f22dec38dfa47ced8da4f605390da8453273bee1da010f57fd1fdfcb10e0b389"},{"path":"core/crates/auths-verifier/src/observation.rs","sha256":"0bb07f06a0f9524c88427df1c972b1de8ba038a9eeeb15d3134c25125ae84b1e"},{"path":"core/crates/auths-verifier/src/trace.rs","sha256":"2213d72023a1d9e0413a2cf2c51c3dad9e04775d86033a0caaa9d29a8f0036f8"},{"path":"exchange/crates/auths-proof-exchange-model/Cargo.toml","sha256":"34b2db64f93a288e942b5a3918d28cdcbef906e0dc9074ce848018d3d5f7a1fa"},{"path":"exchange/crates/auths-proof-exchange-model/src/lib.rs","sha256":"49fac5aff2339d3a57c41cb8bb2a82852538e8f77ecc4b157c88e264ff31fb55"},{"path":"exchange/crates/auths-proof-exchange-port/Cargo.toml","sha256":"7ff660f1b7579dc570c791090aeb450404fbbf44c92781e289f5ccdde746d739"},{"path":"exchange/crates/auths-proof-exchange-port/src/lib.rs","sha256":"b408fb40c6432edc1facb3d8b3e9433a033f8dc73fe2e0ba5a88c972ca675021"},{"path":"product/config/auths-config/Cargo.toml","sha256":"e4b568ab9f6d84f7d7e6d66443fe825f360db9c27bc7c31d6ddc0647ba3ab304"},{"path":"product/config/auths-config/src/lib.rs","sha256":"fecf00ea65cef9018fda9af2063326d7065b869266d0d9e73a4f06816f1102cc"},{"path":"product/errors/auths-errors/Cargo.toml","sha256":"3b3a199b6460ba75bda84475bb5accd35e1485448a3981038db85bf4772dd350"},{"path":"product/errors/auths-errors/src/lib.rs","sha256":"7feeb9069fa4003f94f1f07c1c94619cf1c883e0dbaaf2187f04d0f742264bdd"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/Cargo.toml","sha256":"716f1f2a117d6d69d8effe9ee9057e24ba3502f20af6a602b06facb638cdabed"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/api.rs","sha256":"9ea61dd7ddd93282b073b98e453e6b75b26dc49689c04e9782435d06a3a09e48"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/clock.rs","sha256":"73f0a6e0f5903883329fa6683f5888288f759512ac69e5c87efd2b6b87f7d79f"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/http.rs","sha256":"14c1fce14e24c984b2a275563a29b6326fb08367922b6e8d37ba38b9cb81aa2b"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/identity.rs","sha256":"186de11230c8b33375951c4368609f8976bf9795f171af3fd7fac26207a94361"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/lib.rs","sha256":"0b4617d044f5254a5ab22f5a2578f91cc025206a8c1845be39c1c56dcdf7a5df"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/names.rs","sha256":"41bb23572d6002e23ee103d6fe70ecd68764861c6f2e48a1c53af998270a4afa"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/sigv4.rs","sha256":"39fed883f4802e68d3b41a68fea0aba0737810996b33d13577de70faba004c29"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/store.rs","sha256":"fc60ee9c49b2f4f063c449b4c78100c5c4872779e94ca168f796603b380ef6e4"},{"path":"product/integrations/auths-custody/Cargo.toml","sha256":"1e14034185ad1ec24a977fd5f41d0abee219606245c046ce2a82287fadef448b"},{"path":"product/integrations/auths-custody/src/conformance.rs","sha256":"13a2b28bba4a7af5b00bb96d16ecf027d35d5487b314e48a666fb8ed09c2f2e9"},{"path":"product/integrations/auths-custody/src/key.rs","sha256":"c3b1468b8538421a796aeb65a0cd94b942e3788e78741f20dde07b4838e0c3da"},{"path":"product/integrations/auths-custody/src/lib.rs","sha256":"836ad8044440fd250457a46f5c4a980339534a8af6a4daac2643560050b62d39"},{"path":"product/operations/auths-operations/Cargo.toml","sha256":"73dde1e914ba5e1386f8d49c0d730423cc72ae77ec44c6554a6a75cc8e8922b1"},{"path":"product/operations/auths-operations/src/explanation.rs","sha256":"b4a39bcbd5712cb9e735ee7deeb281f3fa6af5ddca973735bf3d87dce427ef11"},{"path":"product/operations/auths-operations/src/lib.rs","sha256":"3f401a56555113b98f57bca172a2660eaecedf76247b83a3fdbb089c133a29cd"},{"path":"product/operations/auths-operations/src/render/json.rs","sha256":"2ae042639960afee123730e945d373bc5dda1d2b3af20ae16c939a7e99b9e418"},{"path":"product/operations/auths-operations/src/render/mod.rs","sha256":"b3b7f6fe473f49227ace5a68bfc3d8dc14b5db8dd9888fd9e207070337b1b8bf"},{"path":"product/operations/auths-operations/src/render/text.rs","sha256":"f216cf3bdb00e264523271b16e7059535ac6b1aabf271cebd7935af155e4bfec"},{"path":"product/policy/auths-bounded-policy/Cargo.toml","sha256":"babd5d200923137ead71d8c2528f847cea323ce98da942a1320b054436612c47"},{"path":"product/policy/auths-bounded-policy/src/arithmetic.rs","sha256":"75e43c5d4eab8d1f71c1daf53839f5f9fe45a400afc1f63a30c6f55ce3632627"},{"path":"product/policy/auths-bounded-policy/src/commitment.rs","sha256":"c5706f2d583454e1a7f570f7ada138d4d864bef0205dfae7c1296774f396bb3f"},{"path":"product/policy/auths-bounded-policy/src/eligibility.rs","sha256":"c9acdfb793074e687fc36efad506be27dbd99ffbf40387bc66c8de39ef238432"},{"path":"product/policy/auths-bounded-policy/src/identifier.rs","sha256":"0006a32bae9eb16c4178cf797df418d2b0a781f2bc6474b741dc1a908141831c"},{"path":"product/policy/auths-bounded-policy/src/kernel.rs","sha256":"99187c28b161ac70bee1afed60711f7f645adb4d1671a01863f9849b369811d5"},{"path":"product/policy/auths-bounded-policy/src/lib.rs","sha256":"76a18638b810e62e594d6e951504679305ce21841388e0c282ad51cd7841b91c"},{"path":"product/policy/auths-bounded-policy/src/receipt.rs","sha256":"3b9eae82f349956d3e7f29b57b254bff5ce67cc703e6cf43445ce2827676d1ad"},{"path":"product/policy/auths-bounded-policy/src/registry.rs","sha256":"4e251ea5833559841f8ee0bd9b66c0c01c39fa5e3a21720a19c4e8adbfcb99d0"},{"path":"product/profiles/auths-profile-api/Cargo.toml","sha256":"7ae85761f58625b5d678f961fd052eebf3e000ef565c7312e3ac857763c0017f"},{"path":"product/profiles/auths-profile-api/src/lib.rs","sha256":"a194b82b20bf8aa864c2334ef6c6aec30b2154ded972862252d5dcefa488ab95"},{"path":"product/profiles/auths-profile-mcp/Cargo.toml","sha256":"db264fc25242f7b7e4133cbe5782545b3107b406c87168ae072683cfb59eac66"},{"path":"product/profiles/auths-profile-mcp/src/arguments.rs","sha256":"a5de696586d507e2aee4a49fee99ef1ef4c51a2e46603f8838f1af6d9009833f"},{"path":"product/profiles/auths-profile-mcp/src/lib.rs","sha256":"d0f8b733a09ef8408336cdebc8948d6a5861012ce6878598b11be7084dfd4280"},{"path":"product/profiles/auths-profile-mcp/src/session.rs","sha256":"166c281fa66333388e4760d6098dad02d3359e1d5de4b8f93312c014f97abb03"},{"path":"product/qualification/auths-recipe-qualification/Cargo.toml","sha256":"b7b15b30b9a3d96d4f089d514266d3a892de6608d30707aa44be31cca89ca9fe"},{"path":"product/qualification/auths-recipe-qualification/src/canonical.rs","sha256":"30a9b50777f0dcb4b606abfee2467d5a975d9f6ad941ab6c13ca3df5b359f667"},{"path":"product/qualification/auths-recipe-qualification/src/closure.rs","sha256":"0ad6aee9bd981e2863fa725f209ec84031db2ff12f4c7ac3aaf5120f0bb86039"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning.rs","sha256":"db135c55e4e3079a73253ebae275536523eb36b545d1c152b4d7dce3c6b76828"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning/tests.rs","sha256":"4dde3736d206099b1bea4c14e0092c6c1287d1af9065958777d7c54331dd8686"},{"path":"product/qualification/auths-recipe-qualification/src/error.rs","sha256":"52d5cf720a1e4579008fdda90a3ac2c31f0b8db57985f121f65e54b4da2b7dd1"},{"path":"product/qualification/auths-recipe-qualification/src/evidence.rs","sha256":"ba45a7409d67a8af26ab811af306412014557477a101ab2a8eb0faf8f2bd4b91"},{"path":"product/qualification/auths-recipe-qualification/src/ids.rs","sha256":"e81a906d571497ab2da753e1532d4443706410e0b75fdd59a7d2d788c7aec403"},{"path":"product/qualification/auths-recipe-qualification/src/launch.rs","sha256":"805154ce931e3977f2a2a2c62909d90f7c0a22dc167bf4f1554dcf19316ffef8"},{"path":"product/qualification/auths-recipe-qualification/src/lib.rs","sha256":"0e24b0f81191df0d078c7f4d73ced784ba9472372bfcdff3c7d0e2fb1687b323"},{"path":"product/qualification/auths-recipe-qualification/src/model.rs","sha256":"3484eb0ec287b23d4682ade7b1b0f8d1335985b3fb180f06fc28716076957d5f"},{"path":"product/qualification/auths-recipe-qualification/src/release.rs","sha256":"ec478e53f70052e566aac7e15be2f9e1b1cd46837ac6990ae955fa864d311586"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/mod.rs","sha256":"1e4e5edc12d921e6b95475b3c1850f58f622c088d24a1fc9398d34019fb2f288"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/schemas.rs","sha256":"c59feec2805621f341a90f81fc005e2c12f7a70f9d264fdeacccb2be4fe1c046"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/verification.rs","sha256":"bdf5746fed4d10a7f577f7878619a917d29aa8b7d522f00d9f774e53eff4c8c1"},{"path":"product/qualification/auths-recipe-qualification/src/verify.rs","sha256":"646ff0e52e915174ad183768706e35e5ce2118b83475455310b930a77a7877f6"},{"path":"product/receipts/auths-receipts/Cargo.toml","sha256":"6001fa1375899953aafcb07c23a6da0c8f57ea7ec08bb9c950b12a60a8cc6f0f"},{"path":"product/receipts/auths-receipts/src/disclosure.rs","sha256":"ba9ed439be0a320c8a01f5b6e9b51361c1a37e076947490d8e4a484ba6bb119c"},{"path":"product/receipts/auths-receipts/src/lib.rs","sha256":"547a57c4160256719cafb7d0ab972d9fc80b0da14fbbce4148c70c414070ff36"},{"path":"product/runtime/auths-connections/Cargo.toml","sha256":"babeb6e1dda3dfb66291713ce1e43dce5c349833d0b50ea4dccbf986030026b2"},{"path":"product/runtime/auths-connections/src/credential.rs","sha256":"22bc7de6bcab7cebebb64edf6423d59b6493b78dca65b9da62749e3171217762"},{"path":"product/runtime/auths-connections/src/kernel.rs","sha256":"a456af19526ef7b19278551fd8d97606b6e7aa5a195e70bdd85d1e0786090ce8"},{"path":"product/runtime/auths-connections/src/lib.rs","sha256":"79209249a0acba0e854d9937255ea0e30a9a6f8e1c2baad77ab83646d392de22"},{"path":"product/runtime/auths-connections/src/model.rs","sha256":"de34a089cac9702acb889b7602b3e4732306c9e61029ec892582b7e02b73fc77"},{"path":"product/runtime/auths-connections/src/registry.rs","sha256":"e57640e003e72ad3235c567c2bb944a262bd64e673f023b62ea091094cc7e946"},{"path":"product/runtime/auths-gateway-kernel/Cargo.toml","sha256":"34f864e67656af4ac7e5c7a347a23f01fc8ab31365b8e23c0ef474483b14a183"},{"path":"product/runtime/auths-gateway-kernel/src/construct.rs","sha256":"e9d65744bae273d65face4285e5d2da75c06a92ab48f7b8333d496604e31c63c"},{"path":"product/runtime/auths-gateway-kernel/src/lib.rs","sha256":"cfda6f8453426564c085475f183b6f790b438768a19668f1b65d33ba59dc8632"},{"path":"product/runtime/auths-gateway-kernel/src/order.rs","sha256":"efc2f2eef68232fe3082e1607e6f1e87d4a19cbb2f492bdc6e71916a2461b6a8"},{"path":"product/runtime/auths-gateway-kernel/src/outcome.rs","sha256":"ac0245699457c802a70cdd6f52a01dcb4777c487b58ed7dc9cfc99345465ccaa"},{"path":"product/runtime/auths-gateway-kernel/src/ratio.rs","sha256":"7ace22264812e6fc1ef3a62afee402cf43494bb71ae0d3de219ad1b39d690bcb"},{"path":"product/runtime/auths-gateway-kernel/src/recovery.rs","sha256":"9f46dcd1685ab6e4d1ba04a3fc286a9f3afee8fb47829be1fbc670a7926a2dc6"},{"path":"product/runtime/auths-gateway-kernel/src/transition.rs","sha256":"9c9c292397aa640c2f002ffb5befe110f86d0aa246f3ffe99440718e5174af3c"},{"path":"product/runtime/auths-gateway/Cargo.toml","sha256":"959b1a58a110315f86115966f85d6992afd91be28d741fee7354207d4bd6f258"},{"path":"product/runtime/auths-gateway/src/admin.rs","sha256":"5d0f1b583a4cacdcbc62521ed1a5730ed6b57d42bf826708a0c5e591272c4a12"},{"path":"product/runtime/auths-gateway/src/admin_boundary_tests.rs","sha256":"7ef23fdaf512cfa6315aed72577ccf0c4d04725f5b4fa4b5f0482e27e5e7ba1c"},{"path":"product/runtime/auths-gateway/src/admin_fault.rs","sha256":"4a66386d91daffeeac4080c16a0d4e724adc09220ba056c0c4267e5f4fc05268"},{"path":"product/runtime/auths-gateway/src/app.rs","sha256":"acd1deab7a8524c97d4a76ec9f7079b3afc035d707e0480a0cbdf4d084972099"},{"path":"product/runtime/auths-gateway/src/app/content.rs","sha256":"4c01001659b1a563dfd4abe7e002e3f85609ffef511a0e39f967af944ea01300"},{"path":"product/runtime/auths-gateway/src/app/content_tests.rs","sha256":"6a239a15732dd279abb35a72721eb2034bf5aac79439edc7c34aa8d4fdfd5212"},{"path":"product/runtime/auths-gateway/src/app/participant.rs","sha256":"1d76d37ba8f7a4657ff013ad845bd90ab82636ade7e7a798937db05ee52a9424"},{"path":"product/runtime/auths-gateway/src/audit.rs","sha256":"aebb55cfe1305c6de26fda03989e138a6731ec57d1cfebf4114886bfb6b93d26"},{"path":"product/runtime/auths-gateway/src/audit_export.rs","sha256":"6cc3d70ef4cc64026de4ec4e094979a95fee6fadb86707b0e09515ad754632be"},{"path":"product/runtime/auths-gateway/src/audit_tests.rs","sha256":"8cf1ab4cd2789973791805b07216d423690645aa4f28307f87dbcb803bd2ad22"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway-harness.rs","sha256":"12b0c24d36b2e6a3be392d3c081a783b355fdd67dc5b54bacc0410e803116b8c"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway.rs","sha256":"754793105fcd9bd5b69699189d831302485182351e49d8d9781e43b557c9cf59"},{"path":"product/runtime/auths-gateway/src/binding.rs","sha256":"663b0ce878319511aa7d05722ab4ab2fa9be18817884ffb2ee9f131ff1e382d1"},{"path":"product/runtime/auths-gateway/src/bounds.rs","sha256":"d0658585765d4d8f9865f65d23d850ec196eeca23fe65a66a55f1f1bc9b2c9b9"},{"path":"product/runtime/auths-gateway/src/bounds_aggregate_tests.rs","sha256":"ab34f227b7c8692ba1da88ccb32bb3687a66adf8353d8282fae905d4a88eb612"},{"path":"product/runtime/auths-gateway/src/bounds_tests.rs","sha256":"80b116ccf65bda2d7f2fbcd3b26fcf82b0a4bd3dce3a5df7842828cb271d7741"},{"path":"product/runtime/auths-gateway/src/candidate_runtime.rs","sha256":"ebe3d2da3a340c990b6fdcaac8c4418a7c646c0148c8222c19d925b21dbc7da8"},{"path":"product/runtime/auths-gateway/src/commissioning_budget.rs","sha256":"f5c38e9e07df3cb99b6bd664f33eae414b9f3dfef4932d69c19a9b174906dc1b"},{"path":"product/runtime/auths-gateway/src/commissioning_budget/tests.rs","sha256":"da104a1643c37515deec6397bca6db2054f2c9158ec3d230a1b1ec9c7d0f659f"},{"path":"product/runtime/auths-gateway/src/commissioning_floor.rs","sha256":"7fa6991c5ccd5ae1403be84b3da390323fab09f36e15ac01fd7a38ea350c6fdb"},{"path":"product/runtime/auths-gateway/src/commissioning_floor/tests.rs","sha256":"6b663d6e556adc0b455b81845bc4394d82c6c4de0c5f43e1310f3ddc6e4e40f7"},{"path":"product/runtime/auths-gateway/src/commissioning_session.rs","sha256":"919fe57fafa563f770402be66b4e32f1f0d652f09fe1276a62e41b50d66f8696"},{"path":"product/runtime/auths-gateway/src/commissioning_session/tests.rs","sha256":"48d44a5fccea737930f24c49a397428edc439525330c83a868b5113a48f122ab"},{"path":"product/runtime/auths-gateway/src/configuration.rs","sha256":"e5597c39b1acbe50cad20c02722feb38d382294026a0a7a4097e6d97b68eaafb"},{"path":"product/runtime/auths-gateway/src/configuration/engagement.rs","sha256":"67bdd2c792b9dfb1168020a10799af043143461f020b74b18d20fd4089f9b40c"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/audit.rs","sha256":"ee35149f8f348ff2a20ef7185ae0bc5a7b912ad5746510c0714b235765b8b1a4"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/blob.rs","sha256":"12af8071e9cd21c04cf9b55d3cb5e8eb2f33ff888e03e06e114222feb4abf752"},{"path":"product/runtime/auths-gateway/src/connection.rs","sha256":"54f5d53c78f836bf8ce1236d449b3f4f1daa95312102d5583ef69cb4e57b513b"},{"path":"product/runtime/auths-gateway/src/control_namespace.rs","sha256":"0333baed635d34edb066d2b9cb4c6ea3f40faad4be8c75f54c989570515dddee"},{"path":"product/runtime/auths-gateway/src/credential_journal.rs","sha256":"e2fb5505eb35a0fd362e59c425bc7932834418d20aa799406b102ad7856c7232"},{"path":"product/runtime/auths-gateway/src/disclosure_transport.rs","sha256":"614c975a4b9810f40092a2f9cdd022308b75e649167dbc486c9907f7570d8d45"},{"path":"product/runtime/auths-gateway/src/echo_verify.rs","sha256":"6d453051665f823abd7354d5c50031d9524cf47d6092d2f09080ae814e3b9575"},{"path":"product/runtime/auths-gateway/src/effect.rs","sha256":"5e1d5b8c28df616917d442b023e5161a2e3527ef7b8fb63d736728542c6caa2a"},{"path":"product/runtime/auths-gateway/src/effect/acquisition.rs","sha256":"0afd6aec490e7995a440786be6ac69cb5461201a4b4ec303e8b5a6c12ed97202"},{"path":"product/runtime/auths-gateway/src/effect/authority.rs","sha256":"2490494c3a1636decbfd04b2dbac71c47e49be26b61cc6cf41319a13450bb4a0"},{"path":"product/runtime/auths-gateway/src/effect/candidate.rs","sha256":"d1efc3ec7e1fa642af26f4e4c6a25924c60821dc2e96bd0b458d9292d3866678"},{"path":"product/runtime/auths-gateway/src/effect/candidate/proposal.rs","sha256":"d78574109f41300edfcd7ad38155439ffc3adb9a799554d75d5484738ef174f1"},{"path":"product/runtime/auths-gateway/src/effect/capacity.rs","sha256":"300fa32e09dab7c679b8c0a69bb4e3c1e924ed2ce1416090a2aa477a7eec9f0f"},{"path":"product/runtime/auths-gateway/src/effect/content.rs","sha256":"9f3b53c8c2ad5cafa183ed1229ee03f2cd8a610009b07da560372bd0fbae1673"},{"path":"product/runtime/auths-gateway/src/effect/disclosure.rs","sha256":"0acb5ac805e91c952c8f0028db03ae607c3753cbd08a76035f2d1b4fa6fe6244"},{"path":"product/runtime/auths-gateway/src/effect/disclosure_auth.rs","sha256":"32fa6f040ae46f3323df6e153c6ae810eccf32d22b9945e5565e7189dc877eac"},{"path":"product/runtime/auths-gateway/src/effect/engagement.rs","sha256":"5a36ff3f4460bf026a7e99fadc713672fbeb05dbc6f6393d10cb06440e779e54"},{"path":"product/runtime/auths-gateway/src/effect/lineage.rs","sha256":"0b3ddeb56377b69264bbd4738c624639a8dcad91b4df3328f907db439747faaf"},{"path":"product/runtime/auths-gateway/src/effect/prerequisite.rs","sha256":"e79596a4cbe47e307e3a3056c52582b1cd01a43c4c2d69479ee03df1f62af3b0"},{"path":"product/runtime/auths-gateway/src/effect/release.rs","sha256":"84e2572f76216e02131e9bbcc850f4b3572473eac6dd71baa144e63a2270cff7"},{"path":"product/runtime/auths-gateway/src/effect_binding_boundary_tests.rs","sha256":"83d8e0edf524a2be0d2c494e4b9897cab0ddcf61184828d716bae10cbaf904b4"},{"path":"product/runtime/auths-gateway/src/effect_candidate_staging_tests.rs","sha256":"7db0f4fd86cf119a6b4b0702267c91debdf11a73fc93105ce7e98d0c6e4cd8d9"},{"path":"product/runtime/auths-gateway/src/effect_candidate_tests.rs","sha256":"e93c08c2eca2abdc58f7db9fbf19e775e4f709225b04789832e2b8f5a81c8948"},{"path":"product/runtime/auths-gateway/src/effect_content_tests.rs","sha256":"63eb623413167bf9ff34161b6bf4f54f68709af9fb1d1e7a419a07f63ce04409"},{"path":"product/runtime/auths-gateway/src/effect_created_resource_tests.rs","sha256":"98f7a9de7824dbf3e2361b3006ef823002b391d557969442edb371266f7673db"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_delivery_tests.rs","sha256":"9586b84b045561edbcf8276cd9769b412240f04248e240cd29a5068d4cd03a00"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_journal_tests.rs","sha256":"19f349a090f07288cfafe24aaffad49f28fe163e59870520aac6bb899f673a99"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_tests.rs","sha256":"5389b03d7d0cd5b23abaa3c396450fa4018102c942b27af35aef81e65b9bb841"},{"path":"product/runtime/auths-gateway/src/effect_engagement_admission_tests.rs","sha256":"46a34a83cfecb180c6f0937e83b8b14009afb4ce315864dfb9b3137759cb9959"},{"path":"product/runtime/auths-gateway/src/effect_engagement_control_tests.rs","sha256":"71e2e965b71b52d2fb877e22e5d4951d1d4072adede4b60dc3996197ac554395"},{"path":"product/runtime/auths-gateway/src/effect_engagement_delivery_tests.rs","sha256":"14b241916d9c3fe8141a38e93c62f8b8a039f2780ad3cd63282e707feaa4d1b3"},{"path":"product/runtime/auths-gateway/src/effect_engagement_information_tests.rs","sha256":"27735a9e1237a063c2a525cdcd93e8102164d549dc72509767a977ab4abd8491"},{"path":"product/runtime/auths-gateway/src/effect_engagement_prerequisite_tests.rs","sha256":"0566288b7f77f5beda44c8374f31a5053e02b44ccbe92781618e9fd90b1a6800"},{"path":"product/runtime/auths-gateway/src/effect_engagement_tests.rs","sha256":"2b78b315c7539d4119ce5b20164d6e4855d9b403b76eaa5b72fa3b72959a7621"},{"path":"product/runtime/auths-gateway/src/effect_instance_recovery_tests.rs","sha256":"eee64773b6373e1bd7185c07c5c4ffeaacafb907f4d0aa17b89ba1556beec5e4"},{"path":"product/runtime/auths-gateway/src/effect_native_tests.rs","sha256":"fd9cd960dfb02f68eef479ed2a95d65b79882c20f8a737c9a74d6a4222af407b"},{"path":"product/runtime/auths-gateway/src/effect_prerequisite_tests.rs","sha256":"51efa528051919d0ca67643cac3d0e06afac534706b802adb18311e2bfa222ff"},{"path":"product/runtime/auths-gateway/src/effect_read_budget_tests.rs","sha256":"9bf8491f0da471e07b5d96dbfdbdf5fbe5a47fec11700dca55a6ac05a1ebb68b"},{"path":"product/runtime/auths-gateway/src/effect_recovery_prerequisite_tests.rs","sha256":"e6235b83ac159d9446d79e6e072dd4aa9d0447a68055be3b32de6450a2300699"},{"path":"product/runtime/auths-gateway/src/effect_review_approval_tests.rs","sha256":"6e5c5a72ec93255d7d8f219ae8cf4401431644ff03d624164645a1e9d2b2e87e"},{"path":"product/runtime/auths-gateway/src/engine.rs","sha256":"113390cb4ef92ef337b5f82b7c77c54a428ec492756f90100b74002487dc8c7f"},{"path":"product/runtime/auths-gateway/src/entry.rs","sha256":"6fd17c142c0001b9cda33c33b0e18f4d1d40866cde8a66b3f57d46f971c1ead9"},{"path":"product/runtime/auths-gateway/src/entry_tests.rs","sha256":"86dcfc4918394052d18fc5509dcc0e740a064a97b084d1c2c9f23eddedaa6db4"},{"path":"product/runtime/auths-gateway/src/execution_witness.rs","sha256":"e8b1a8e41d5e3fa309760067849d390ef065feeb46701a83391832645a2f000c"},{"path":"product/runtime/auths-gateway/src/fuzzing.rs","sha256":"2dcf0a15e407a9180c7fecb7eecfaf4674698aa997b1f5de9a3649a49baebd1b"},{"path":"product/runtime/auths-gateway/src/generation_floor.rs","sha256":"3e82c3832685c43b546ebd12857ebecbfa6be29d8749654ab65e3e520ad552fb"},{"path":"product/runtime/auths-gateway/src/harness.rs","sha256":"5e296231c98e6429f3d805150fab9ce2d6a5789d41dd83f562b677314374567b"},{"path":"product/runtime/auths-gateway/src/harness/authoring.rs","sha256":"de511d89bf6bb72e443558caf0c4835dad2908b5fe5c13a3a02483e85dd7d354"},{"path":"product/runtime/auths-gateway/src/lib.rs","sha256":"a39306228bb0ee5e7c50fb83149756a15fa761d52bb6807942f1ec77db2049d6"},{"path":"product/runtime/auths-gateway/src/listener.rs","sha256":"aa08239bcbc1fcb55e8a212fbdf6a84f12985b0d436dcb51dc58b06e59e435f2"},{"path":"product/runtime/auths-gateway/src/native_budget_tests.rs","sha256":"d6de965afc7f794e611545744fa515f833abf315157519ed8390c195a7dac8c0"},{"path":"product/runtime/auths-gateway/src/native_cost_store.rs","sha256":"d1acdd7e4076e3a32f312dce74a01e5dcbccdb1f8912758524b7841d61377eed"},{"path":"product/runtime/auths-gateway/src/native_cost_tests.rs","sha256":"45bcb4e9174d4c23495ac734a42b5f8b7735c14d4599cd191d50f6547aaf374c"},{"path":"product/runtime/auths-gateway/src/native_crash_tests.rs","sha256":"46998a973388884d902a6b07e12fa342fb08ea77363a43a41b0b0a7a5ccbcde9"},{"path":"product/runtime/auths-gateway/src/native_cross_recipe_tests.rs","sha256":"e2dbde7afba1b3da5df3a7a44821f413ab7861a5417ad16f8b912f390128d115"},{"path":"product/runtime/auths-gateway/src/native_dependency_tests.rs","sha256":"0e15d059140ad485b2548f4234b94424d62b5563a8dded42224329a76b101f37"},{"path":"product/runtime/auths-gateway/src/native_differential_tests.rs","sha256":"17fc0803fe5e7f78b416f8f68e7c9066baf1bab69bdf0b51c44fd19e3d719da8"},{"path":"product/runtime/auths-gateway/src/native_disclosure_budget_tests.rs","sha256":"bb2a6f76f06a6d42d69698f7d22d0b4aeb4dc857e442042d65582097567009fb"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_testkit.rs","sha256":"4beb946a288e4fe082cc0917f4200b18b8154eff98eca1ea3d0c830ffdc3625d"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_tests.rs","sha256":"425e423f04d92794656d4da915125e4d0a8be25ec85fb88244ee0c27ece8ec44"},{"path":"product/runtime/auths-gateway/src/native_disclosure_entry_tests.rs","sha256":"50f5dc35a9a8ef462b8833296cb313b2acec81d544b7e317c7f188741d0786db"},{"path":"product/runtime/auths-gateway/src/native_disclosure_file_fault_tests.rs","sha256":"72d67bb0d3fd77fb93c4f5d3ab0afa5a939742b5a47acf006a511d99d72cee9f"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_batch_tests.rs","sha256":"a8b8a90210d9f7f0012e40701c09c524527f93f9e56933d89b58a38464cba702"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_commit_tests.rs","sha256":"1e14503140805c12883e1c288b75029aa7fd9ebe8c5d490a4c503161c4a27a4b"},{"path":"product/runtime/auths-gateway/src/native_epoch_tests.rs","sha256":"e37d34e699baa2b84578bd4c378975dbdceb407de51861c2217afdcf7b48e3b9"},{"path":"product/runtime/auths-gateway/src/native_federation_tests.rs","sha256":"bf2c6313f70c4b7f51f9ad05351048be3625d9432f3c725e84b046936304f540"},{"path":"product/runtime/auths-gateway/src/native_file_fault_tests.rs","sha256":"e1077a0059aa69918fb7e0a3481edd19af45a7343ce876583fbdbc96c4291b21"},{"path":"product/runtime/auths-gateway/src/native_generated_history_tests.rs","sha256":"5a5e308c1e4bc32cac31badf91e9453bed62e3e90f1b6585fc522bb4038990f9"},{"path":"product/runtime/auths-gateway/src/native_guarded_mutation_crash_tests.rs","sha256":"5329f72e7f22399a17627b058c2035c243e1b6ba60c9dfcd1c834258244cc440"},{"path":"product/runtime/auths-gateway/src/native_information_journal_tests.rs","sha256":"067bc51f7011971e8c5d021430fbfe323e5cc3cd7cde41c546cc92fad1f2cbc2"},{"path":"product/runtime/auths-gateway/src/native_information_replay_tests.rs","sha256":"165a1dce11c2006e6adfb5eee4c4977737b830995e6e29f77544a999893b0a5f"},{"path":"product/runtime/auths-gateway/src/native_journal_tests.rs","sha256":"d803ff53f90ce2a8c29808b4f874cd81954a3a5c52e19b519ab22f0543808fe1"},{"path":"product/runtime/auths-gateway/src/native_mutation_budget_tests.rs","sha256":"41d7f560d6b04e750acb2f8add2544745743ea9fea760a8ffd5ec5aab307e94c"},{"path":"product/runtime/auths-gateway/src/native_mutation_crash_tests.rs","sha256":"3e1befd35e7264024666331b52ca2245540ffa8f9927ed62e3aa45c7c8cc8950"},{"path":"product/runtime/auths-gateway/src/native_mutation_entry_tests.rs","sha256":"219a1986cf7440d31734db9db3c25f7997486a2fc29fee0a1ac8c7f0ee9ce803"},{"path":"product/runtime/auths-gateway/src/native_mutation_file_fault_tests.rs","sha256":"252f6ca9455b291b0873d983c8fccc75254d947b89a3fe9a1de0155c8ee53930"},{"path":"product/runtime/auths-gateway/src/native_mutation_journal_tests.rs","sha256":"181bf0a196805e50944cff4fe2315459eba877e7d7b5b90bf3c99e3353a8cad7"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_batch_tests.rs","sha256":"137f0e2f0e8d950cea3b38a7a03113c61177e54083f11eecc34b994ce41728f1"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_commit_tests.rs","sha256":"5d9a3b8a1601c83c66db3aefd904c16233ce2700d070ba5c9c4f81f4051c5fad"},{"path":"product/runtime/auths-gateway/src/native_mutation_replay_tests.rs","sha256":"3a874e1416cbb29cce70930f9955a70b4a5ad46e2cbca8d55f1acf070215cfbd"},{"path":"product/runtime/auths-gateway/src/native_partial_upload_tests.rs","sha256":"5fa867219d61b7c8a563e7cf5111291f15b8a11464623859be8aa9ea858170ea"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_proxy.rs","sha256":"1c95b3f8af48b78dc4f1c1baa3b26c1aa7bbe868c23aefbb32f1f0ae592f0045"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_tests.rs","sha256":"f021b110991ba3ae497705d0aaa0350a210f09b6f102fd71ac2f8eb4ff8f30c0"},{"path":"product/runtime/auths-gateway/src/native_postgres_fault_tests.rs","sha256":"0c6edea869a20765b322fa69c48e580aa0664e726b6cef483d4eba49803135ba"},{"path":"product/runtime/auths-gateway/src/native_process_tests.rs","sha256":"778a02ea4de3a0655021bad7d2f4b5f0007c6518ef60e966db3da49bfaf22c37"},{"path":"product/runtime/auths-gateway/src/native_public_evidence_tests.rs","sha256":"dac3a70f4535a14aab49ceed5a6b5fd7002e199270bb5a120f5bc8edfa5398bf"},{"path":"product/runtime/auths-gateway/src/native_recovery_actor_tests.rs","sha256":"bfdcdbaa0ee1d6822c57e5ab9ca524e731c393f9289c5508b61a0fc1d0b065e5"},{"path":"product/runtime/auths-gateway/src/native_recovery_authoring.rs","sha256":"9f4e8008160b349a52267eacd6a1c1e5c31c3c1cdfd71b574162ccaa9f7430b6"},{"path":"product/runtime/auths-gateway/src/native_recovery_history_tests.rs","sha256":"0c6ec8fe18fd4cc8496f04c3bc38552c3602d7254cae979fac76aeb7c7e4f41b"},{"path":"product/runtime/auths-gateway/src/native_recovery_limits_tests.rs","sha256":"f147c2e78cbe364fb3fd0c97bbbacdad86d77ca8c0b8575d9fa108968f82379a"},{"path":"product/runtime/auths-gateway/src/native_result_wire_cases.rs","sha256":"2b93c8ed96d7092216410bb99435411fd57497284639f56e0120b16639a98eb2"},{"path":"product/runtime/auths-gateway/src/native_retention_tests.rs","sha256":"224c941e394dd711a7ee19e7b52a1d6b7359eec62e7decec323d066319cb59d3"},{"path":"product/runtime/auths-gateway/src/native_scope_tests.rs","sha256":"8d3f362df9fadc10c22f0483f3a16d238d0f82f393a628727adf0b728707673e"},{"path":"product/runtime/auths-gateway/src/native_threshold_testkit.rs","sha256":"74e6b6ed1b77b463effff132fd8af9b3b59aeee64704a8fe8a19ed3ca9d79bf7"},{"path":"product/runtime/auths-gateway/src/observed_tests.rs","sha256":"91223493fefd3efc3fec58db225f00786b539e3b24027419e919d8bd7310059c"},{"path":"product/runtime/auths-gateway/src/observer.rs","sha256":"1c8988dd8807566d5a152e1894aa0f4c80c3ba7302ac910a4a6978d4f31b323d"},{"path":"product/runtime/auths-gateway/src/onboarding.rs","sha256":"6180e79d7698bcd4dd6ffdf32dcfbe14427f96de92f4ae4ceac4dda651f3671b"},{"path":"product/runtime/auths-gateway/src/operator.rs","sha256":"fe3b11fcf8e2394ab955b09a5b9b1f979c46f9e07a4f16e1a3ca160d675f1ace"},{"path":"product/runtime/auths-gateway/src/participant_control.rs","sha256":"58acbac1ab812963ad0ba0e2864395a87b3afe50962263cb44e19776cf5100b8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment.rs","sha256":"719e82ed5f30f7b37d6d87e45220918d945a2ed8fadc9e760308398e9f6501a4"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audience.rs","sha256":"83940af76073d391f1181eccea2e9b682dbd7ffcace6c39b2123ebe09e721573"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audit_tests.rs","sha256":"1a8cb537f16d023962f1375b7f15d0879b2be85c29775dd677c84d87b8c9d183"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/configuration_tests.rs","sha256":"2e1cb7024ff137bfd3292929f26ec078c9213f6276f4a2f915b279530c6c7782"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/cross_recipe_fixture.rs","sha256":"5a957eeac83da3f1c74e923648319674f6a90e6673b45fdc029b784b1c09053a"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/identity.rs","sha256":"a04328f93d59da6c34d623319b8a6f55a32e7d718837109b299ef6935b126930"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/recovery_tests.rs","sha256":"b13faae436b325fa6ea234613f1542f4ec8b1dfb7082d3f31339ea7f4a8b0cb8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/root.rs","sha256":"586bfc83e1a615b7d255ea235f6e519945126bb3ba7fe41d2aecd1dbcdccc797"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tests.rs","sha256":"a6f83af4c504d7a5bdedad90e473c8032f10c384adeab29075051389040f7696"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tree.rs","sha256":"4f2b8965b91b6e23317168221d077b074fd149690e28c30fad6055982ada584e"},{"path":"product/runtime/auths-gateway/src/pending_vectors/attempts.rs","sha256":"79803db1c278b2133d4adb112ab325247f359cfa5cf34e3de32898f6a9bffe62"},{"path":"product/runtime/auths-gateway/src/pending_vectors/bounds.rs","sha256":"e612217307e1da5b0eb5ee6582a7458bb064b8aa8a529fc6555b1b334127ab68"},{"path":"product/runtime/auths-gateway/src/pending_vectors/codes.rs","sha256":"6fb3f1679b0fd2ca7a8ac6aaee65f586b9eb809d9d7c9e26d3dd8ae2bfd10307"},{"path":"product/runtime/auths-gateway/src/pending_vectors/keys.rs","sha256":"b0b1f79d2fadc06e91378a8250223a429163138e4b86e90e09bc207d80fabf86"},{"path":"product/runtime/auths-gateway/src/pending_vectors/mod.rs","sha256":"5de8340f0ef71a0b57a09e323fefe473d3160c6ae952b9ba46f714825fbacafc"},{"path":"product/runtime/auths-gateway/src/pending_vectors/outcomes.rs","sha256":"a8960d8e055ac31827e379513f57f00ed868b559079fa2a4687e1b055d48e3ca"},{"path":"product/runtime/auths-gateway/src/pending_vectors/production.rs","sha256":"15c687599b0342dc141878afdf727092b23ade67ee5564eaa671f3f06befad57"},{"path":"product/runtime/auths-gateway/src/pending_vectors/recipes.rs","sha256":"5d550e3708ea41a9547ae2207699bde5ff4435f5a1ed7afa4378fb8defb51bb4"},{"path":"product/runtime/auths-gateway/src/pre_entry.rs","sha256":"3f2554feda72fa047229d427504676a1fb14894bdd377055a3108d7b3e3587cd"},{"path":"product/runtime/auths-gateway/src/prerequisite_race_tests.rs","sha256":"683cc46b3718d12dbb42668dae4bc6ec7e7508dcbb6b6232fead2e3e4f510d0d"},{"path":"product/runtime/auths-gateway/src/property_tests.rs","sha256":"85a77aaf01d9be51e1dd7c72461653a099c51b0ca9c818800d991abe262b198a"},{"path":"product/runtime/auths-gateway/src/qualification.rs","sha256":"f25bbb01c2a6131633c5a4de4e59345b761609e47b3c69353187364996ec87ea"},{"path":"product/runtime/auths-gateway/src/qualification_simulation.rs","sha256":"61f4117e33db07be83ce0f0376f79a405ff6d8bb7ffc2e28ff0bf927486941ce"},{"path":"product/runtime/auths-gateway/src/qualification_tests.rs","sha256":"ed9eb74599074af67730d63f8c5093f6a5277bced96dffeb81317a6dd9f4c8c6"},{"path":"product/runtime/auths-gateway/src/quorum_tests.rs","sha256":"a6533de9bc2689ec632f009404daf363494e224e7b89b1c65bb2e2cd4fc6421d"},{"path":"product/runtime/auths-gateway/src/readiness.rs","sha256":"911c3f11892f94641574375e2da4c671c802738f71082f12c39832331052d43d"},{"path":"product/runtime/auths-gateway/src/recipe.rs","sha256":"efb99a8f060b5633ea8ea75f24378e701f6ba2af023faf8c7609e4de4e868637"},{"path":"product/runtime/auths-gateway/src/recipe/content.rs","sha256":"e3f8aa8cf2dd9ef5777d9d1e76331052c67be87873db0c2cd6a8f48ff940d9d6"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource.rs","sha256":"2284b6f7363b1a15dd3c91dd3043f46a5c7a9c12d997213b13751b82ae627e26"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource_tests.rs","sha256":"ab371d7d7a5dae249da924e7b94d5c863491a2af796d2febdf2dda2a191c559f"},{"path":"product/runtime/auths-gateway/src/recipe/effect_review.rs","sha256":"8f94896f0d124162d3dbd080c44582bb23ad181bb582ff5cd3d049d75fcb6d77"},{"path":"product/runtime/auths-gateway/src/recipe/lower.rs","sha256":"81118ea7ae6c2d9984b88fe9991f91283070859d56923ee4fdfe9a50eee9ccb1"},{"path":"product/runtime/auths-gateway/src/recipe/response.rs","sha256":"0b4a074eb05b98685697094ed4775c5fe588b3e34f954aa1844135fe14c94487"},{"path":"product/runtime/auths-gateway/src/recipe/review.rs","sha256":"f9f88f6d54c9a517b55ea717ce8caf5199954ff710c0d20e2bb609f6b1344a51"},{"path":"product/runtime/auths-gateway/src/recipe/runtime.rs","sha256":"6301c005c5f014eb81a7a85dfa3bd256ec15e35bf1cdf6e60815a2a18b7151a0"},{"path":"product/runtime/auths-gateway/src/recipe/source.rs","sha256":"f79e481ab0f40985819b317c540c715766611b5c8c0e5647c87849fefc10cbac"},{"path":"product/runtime/auths-gateway/src/recipe/tests.rs","sha256":"78cfa166bb02b722c92205d2a95c261ef4f3cc272150145980252cb4c51c13d1"},{"path":"product/runtime/auths-gateway/src/recipe/validate.rs","sha256":"3f613af38c5cf29901575af4f82a9daca6718b2da70bc84baa0994a71be6113b"},{"path":"product/runtime/auths-gateway/src/resource_identity.rs","sha256":"edf093bf84c0ca6c0a300adc6060fe10cf58b90e592dc3cd6ebd58e73632373d"},{"path":"product/runtime/auths-gateway/src/scenario_tests.rs","sha256":"eba5fe0268e5d8516eea79a2cf418f5c52ccdf777fa94e553cfba00f0b90865e"},{"path":"product/runtime/auths-gateway/src/separation.rs","sha256":"be9306848ca5d801767cf6aa14247c8618312ef0e202f00ce0c24c4844491061"},{"path":"product/runtime/auths-gateway/src/simulation_attestation.rs","sha256":"88705e5d45415f760f1e3c3a065c35c48f4f4065bf7b3feb7882246983814d6f"},{"path":"product/runtime/auths-gateway/src/store.rs","sha256":"5645f57bcd92190ff2c83836744ecc514558c466bb5d377b258a8d82d21504f9"},{"path":"product/runtime/auths-gateway/src/store/acquisition.rs","sha256":"c52193c7ca87f4eedc3a3523be12eb85a2825fa989d8a61b076be734eb99684e"},{"path":"product/runtime/auths-gateway/src/store/acquisition/candidate.rs","sha256":"90c133dfc48ed351d0f1fea9de236135e82297719c383f9f37404a335909d225"},{"path":"product/runtime/auths-gateway/src/store/acquisition/content.rs","sha256":"92f87e4556335af8e1c4157e60e6936ca02b271381569e14510bc2c35e697ece"},{"path":"product/runtime/auths-gateway/src/store/acquisition/recovery.rs","sha256":"cc1be15bb948608868d33a088951530834235220a8fed7d77161ff53bf416dc1"},{"path":"product/runtime/auths-gateway/src/store/capacity.rs","sha256":"d25c4a0d753317270cb352246c70642bf0659e6448d14061356e4e9ea7ed3811"},{"path":"product/runtime/auths-gateway/src/store/disclosure.rs","sha256":"3b2f68d024bb10b734bd1e48ceb4eed23d1348ec6f716be78ec27384458ff007"},{"path":"product/runtime/auths-gateway/src/store/engagement.rs","sha256":"953ef4c20f16775c10bca98b820536f347a6ce9c756934503efdb7bb77c41ff5"},{"path":"product/runtime/auths-gateway/src/store/mutation_phase_tests.rs","sha256":"163c177cf5e053126b46c7de7e429a99df789090b1127b5d3b91636efcac4365"},{"path":"product/runtime/auths-gateway/src/store_retention_tests.rs","sha256":"a9e300fde3c45999764ee05c4c6ea46cfb9ffcaa51b82337a322925ad50f4f50"},{"path":"product/runtime/auths-gateway/src/store_testkit.rs","sha256":"720bdda4464a54198348e1cac8ff75ad4882b9ce10c389befb4e9bc80340156c"},{"path":"product/runtime/auths-gateway/src/submit.rs","sha256":"a8e5e908b99d997cdf34c46c5827e04c0f502307f71497d15511bb40ef52815b"},{"path":"product/runtime/auths-gateway/src/support.rs","sha256":"d4865f95a7a2fdfe297f3f73687c05ab64a6b911814daf5f2b6c703ce58262ce"},{"path":"product/runtime/auths-gateway/src/transport.rs","sha256":"0ad16c63c19cc41d11c485625c8fc0617aede21401d16ec814401f963538bb46"},{"path":"product/runtime/auths-kernel-runtime/Cargo.toml","sha256":"926bcd0053e5edd703be8f0027ad009e2982db013c8174c1366edbf38b48087d"},{"path":"product/runtime/auths-kernel-runtime/src/lib.rs","sha256":"7108faae9ca4bc32dc093ddaf885ac8f74f3c9b8d317b7c7d0ed00d1d0ab5972"},{"path":"product/runtime/auths-lifecycle/Cargo.toml","sha256":"c5053c705f8d5554b44e432fe75287a2faf11d644e5a2552e45ad6cd94176af5"},{"path":"product/runtime/auths-lifecycle/src/codec.rs","sha256":"51c4b746749150e8bfcd8ff972b3f6c1ef40bec15583448ec1b471d9ad737dc0"},{"path":"product/runtime/auths-lifecycle/src/digest.rs","sha256":"55282cd7d8aba37713c2dcb5357c9877819edb72a30eadefb860d28d7d3a3eb7"},{"path":"product/runtime/auths-lifecycle/src/identifier.rs","sha256":"31620e8c16de68d3d2d3b84d6353c1a5b9d4151d8247f91fa389b906a8e660f1"},{"path":"product/runtime/auths-lifecycle/src/kernel.rs","sha256":"2abb8c094b36d35b364e74d78091d14c5d6f3d1eb6552cca3b5538dbd017ce23"},{"path":"product/runtime/auths-lifecycle/src/lib.rs","sha256":"afe5a345cd309b5a4f08ffba3170a6d7f16ff914892b3f2006d5208ed24ec736"},{"path":"product/runtime/auths-lifecycle/src/model.rs","sha256":"1af12bbeeeaa65ec02ddcebd7d2c8c92ec1e339fa40ae85b45ab9b01a722a4fa"},{"path":"product/runtime/auths-lifecycle/src/operation.rs","sha256":"78e6d05fcf5d7ea4f148032a3fa26fdfcab77eb346019effe927b08e0d64d732"},{"path":"product/runtime/auths-lifecycle/src/registry.rs","sha256":"53495fe6f7a77422593a41623e28716f1c140dcc1e00f87f6b0ffbfb93a5ef90"},{"path":"product/runtime/auths-lifecycle/src/sealed.rs","sha256":"2e0c03b5813c926c159598bb7890d1523825edbe57cd687d42a5dfb3374a0c19"},{"path":"product/runtime/auths-lifecycle/src/test_support.rs","sha256":"221d9a5c5ef8e1f9f8fd66927484eaf813571d0568470278ecd8fa08a5eec8cd"},{"path":"product/runtime/auths-lifecycle/src/transition.rs","sha256":"011805a28efdd541f44ccea54dd0e34a1e58f4004447ee58013703b4fb6b2822"},{"path":"product/runtime/auths-runtime/Cargo.toml","sha256":"dd29d80a8b4bb56c869f036a6c9998f6e6d1c0383ac5dc03fa42b24abe2a7ff7"},{"path":"product/runtime/auths-runtime/src/lib.rs","sha256":"132ca03d58c14905d3a822a4972f42a22a5ad33a45f2ba9ca44f3a57d810b4b0"},{"path":"product/runtime/auths-runtime/src/production.rs","sha256":"fd4eff4270c571c10fcff6cf27df28961ebf074de8a1a028f500fda1ca376820"},{"path":"product/sdk/auths-approval-quorum/Cargo.toml","sha256":"df904971fca87a24194c5816738a331588fe8f164acb5d70839a35dca5f57114"},{"path":"product/sdk/auths-approval-quorum/src/lib.rs","sha256":"72e4086088a1c0912e4e1a9e980f26a5c280bf5ab16ea39c9f0f58d5096ac2ce"},{"path":"product/sdk/auths-approval-quorum/src/remote.rs","sha256":"9fa029c7c63003adf260f8aec55160c545681c60c1bace0d934e7525862aac7b"},{"path":"product/sdk/auths-approval-quorum/src/remote_tests.rs","sha256":"8a09ce17cfee82a035a74edd535f3ebeb3db0e078784740d3997b17dbdb10197"},{"path":"product/sdk/auths-approval-quorum/src/tests.rs","sha256":"0acbf12be3e497dcc6c2d8f29c9af3b1a7ed8e11b75f6399570d4f217a785060"},{"path":"product/stores/auths-stores/Cargo.toml","sha256":"a32c4b76d17b264be5d40d24497ff237e1ed87822e8bab86229b3db93106dbe3"},{"path":"product/stores/auths-stores/src/gateway_attempt.rs","sha256":"f39dc84a238db0ebc70ad1ac495da194d2c24b5e1f9905552a9b1143278725a9"},{"path":"product/stores/auths-stores/src/lib.rs","sha256":"40c280a5ff79bfc1cafcf0bb415e775e205637c526973eb94b43a30f86d4e6fe"},{"path":"product/stores/auths-stores/src/lifecycle.rs","sha256":"4033f69a8d36de9285b87ab86af363fc85f785918ec2042d0ef1bdcb64d6f73a"}],"schema":"auths.gateway-semantic-closure/1"} \ No newline at end of file diff --git a/product/runtime/auths-gateway/src/admin_fault.rs b/product/runtime/auths-gateway/src/admin_fault.rs new file mode 100644 index 000000000..aad285d72 --- /dev/null +++ b/product/runtime/auths-gateway/src/admin_fault.rs @@ -0,0 +1,26 @@ +//! Test-only interruption points at administrative durability boundaries. + +#[cfg(feature = "testkit-harness")] +pub fn boundary(point: &'static str) { + use std::sync::atomic::{AtomicUsize, Ordering}; + static SEQUENCE: AtomicUsize = AtomicUsize::new(0); + let interruption = std::env::var("AUTHS_TEST_ADMIN_INTERRUPT_AT") + .ok() + .and_then(|value| value.parse::().ok()); + let trace = std::env::var_os("AUTHS_TEST_ADMIN_TRACE").is_some(); + if interruption.is_none() && !trace { + return; + } + let sequence = SEQUENCE.fetch_add(1, Ordering::SeqCst) + 1; + if trace { + eprintln!("auths-test-admin-boundary:{sequence}:{point}"); + } + if interruption == Some(sequence) { + // No destructors: model process termination after exactly this boundary. + std::process::exit(79); + } +} + +#[cfg(not(feature = "testkit-harness"))] +#[inline] +pub(crate) const fn boundary(_point: &'static str) {} diff --git a/product/runtime/auths-gateway/src/bin/auths-gateway.rs b/product/runtime/auths-gateway/src/bin/auths-gateway.rs index cd7f99c5b..8f5c4bada 100644 --- a/product/runtime/auths-gateway/src/bin/auths-gateway.rs +++ b/product/runtime/auths-gateway/src/bin/auths-gateway.rs @@ -63,7 +63,10 @@ mod unix { io::{IsTerminal as _, Read as _, Write as _}, num::NonZeroU64, os::unix::{ - fs::{FileTypeExt as _, MetadataExt as _, OpenOptionsExt as _, PermissionsExt as _}, + fs::{ + DirBuilderExt as _, FileTypeExt as _, MetadataExt as _, OpenOptionsExt as _, + PermissionsExt as _, + }, process::CommandExt as _, }, path::{Component, Path, PathBuf}, @@ -390,6 +393,9 @@ mod unix { Install { #[arg(long)] state_dir: PathBuf, + /// Complete only missing exact retained installation inputs. + #[arg(long, default_value_t = false)] + resume: bool, #[arg(long)] recipe: PathBuf, #[arg(long)] @@ -591,6 +597,12 @@ mod unix { #[arg(long)] admin_socket: Option, }, + /// Complete retained qualification publication or clean retired inputs. + /// Reverification and retained/native monotonic floors remain mandatory. + QualificationRecover { + #[arg(long)] + state_dir: PathBuf, + }, /// Print this installation's qualification policy, state, and code, /// derived now from the imported inputs. Contacts nothing. QualificationStatus { @@ -651,6 +663,19 @@ mod unix { #[arg(long)] out: Option, }, + /// Derive bounded host recovery facts; never runs checks or publishes. + RecoveryStatus { + #[arg(long)] + state_dir: PathBuf, + #[arg(long, requires_all = ["proof", "action", "approval"])] + candidate: Option, + #[arg(long, requires = "candidate")] + proof: Option, + #[arg(long, requires = "candidate")] + action: Option, + #[arg(long, requires = "candidate")] + approval: Option, + }, /// Ask the private operator socket for the connection state. Status { #[arg(long)] @@ -1438,18 +1463,81 @@ mod unix { Ok(bytes) } + fn admin_boundary(point: &'static str) { + #[cfg(feature = "testkit-harness")] + auths_gateway::administrative_test_boundary(point); + #[cfg(not(feature = "testkit-harness"))] + let _ = point; + } + fn private_file(path: &Path, bytes: &[u8]) -> Result<(), &'static str> { - let mut file = OpenOptions::new() - .write(true) - .create_new(true) - .mode(0o600) + let parent = path.parent().ok_or("gateway.state.invalid-path")?; + admin_boundary("private-file.before-create"); + let mut pending = + tempfile::NamedTempFile::new_in(parent).map_err(|_| "gateway.state.write-failed")?; + pending + .as_file() + .set_permissions(fs::Permissions::from_mode(0o600)) + .map_err(|_| "gateway.state.write-failed")?; + admin_boundary("private-file.before-content"); + pending + .write_all(bytes) + .map_err(|_| "gateway.state.write-failed")?; + admin_boundary("private-file.after-content"); + pending + .as_file() + .sync_all() + .map_err(|_| "gateway.state.write-failed")?; + admin_boundary("private-file.after-file-sync"); + pending + .persist_noclobber(path) + .map_err(|_| "gateway.state.file-exists-or-unavailable")?; + admin_boundary("private-file.after-publication"); + File::open(parent) + .and_then(|dir| dir.sync_all()) + .map_err(|_| "gateway.state.sync-failed")?; + admin_boundary("private-file.after-parent-sync"); + Ok(()) + } + + /// Retain an exact private input once; interrupted retries may fill missing + /// files but can never replace a different retained decision input. + fn retain_private_file(path: &Path, bytes: &[u8]) -> Result<(), &'static str> { + let metadata = match fs::symlink_metadata(path) { + Err(error) if error.kind() == std::io::ErrorKind::NotFound => { + return private_file(path, bytes); + } + Err(_) => return Err("gateway.state.file-exists-or-unavailable"), + Ok(metadata) => metadata, + }; + if !metadata.is_file() + || metadata.permissions().mode() & 0o077 != 0 + || metadata.uid() != rustix::process::geteuid().as_raw() + || metadata.nlink() != 1 + || metadata.len() != bytes.len() as u64 + { + return Err("gateway.state.resume-conflict"); + } + let mut retained = Vec::with_capacity(bytes.len()); + let file = OpenOptions::new() + .read(true) + .custom_flags(i32::from_ne_bytes( + rustix::fs::OFlags::NOFOLLOW.bits().to_ne_bytes(), + )) .open(path) .map_err(|_| "gateway.state.file-exists-or-unavailable")?; - file.write_all(bytes) - .and_then(|()| file.sync_all()) - .map_err(|_| "gateway.state.write-failed")?; + (&file) + .take(bytes.len() as u64 + 1) + .read_to_end(&mut retained) + .map_err(|_| "gateway.state.file-exists-or-unavailable")?; + if retained != bytes { + return Err("gateway.state.resume-conflict"); + } + // A preceding process may have published these exact bytes but died + // before synchronization. Exact resume must establish its own durability. + file.sync_all().map_err(|_| "gateway.state.sync-failed")?; File::open(path.parent().ok_or("gateway.state.invalid-path")?) - .and_then(|dir| dir.sync_all()) + .and_then(|directory| directory.sync_all()) .map_err(|_| "gateway.state.sync-failed")?; Ok(()) } @@ -1544,6 +1632,7 @@ mod unix { attempt_store: Option, credential_store: CredentialStoreSettings, qualification: QualificationOptions, + resume: bool, ) -> Result<(), Failure> { // The store choice is checked before anything is read or written. auths_gateway::credential_store_policy( @@ -1617,9 +1706,27 @@ mod unix { "installation.lock", "gateway.configuration.unavailable", )?; - if state_dir.join("installation.json").exists() { + if !resume && state_dir.join("installation.json").exists() { return Err("gateway.install.already-installed".into()); } + if !resume + && [ + INSTALL_DRAFT_FILE, + "recipe.json", + "profile.lock.json", + "trusted.context.cbor", + ] + .iter() + .any(|name| state_dir.join(name).exists()) + { + return Err("gateway.install.resume-required".into()); + } + if resume && state_dir.join("installation.json").exists() { + retain_installation_file( + &state_dir.join("installation.json"), + &encode_installation(&manifest)?, + )?; + } let attempts = { let store_path = store_path.clone(); let policy = manifest.effect_policy.clone(); @@ -1647,8 +1754,22 @@ mod unix { if label.is_empty() || label.len() > 256 { return Err("gateway.install.invalid-account-label".into()); } - let id = - ConnectionId::generate().map_err(|_| "gateway.install.randomness-unavailable")?; + let retained = if resume && state_dir.join(INSTALL_DRAFT_FILE).exists() { + let path = state_dir.join(INSTALL_DRAFT_FILE); + let bytes = read_bounded(&path, auths_gateway::effect::MAX_EFFECT_BYTES)?; + retain_installation_file(&path, &bytes)?; + Some( + ConnectionRecord::from_canonical_cbor(&bytes) + .map_err(|_| "gateway.install.resume-conflict")?, + ) + } else { + None + }; + let id = match &retained { + Some(record) => record.connection_id().clone(), + None => ConnectionId::generate() + .map_err(|_| "gateway.install.randomness-unavailable")?, + }; let profile = ConnectionProfile::new( SemanticId::parse("auths.mcp").map_err(|_| "gateway.install.profile")?, 2, @@ -1657,32 +1778,37 @@ mod unix { let mut account_hash = Sha256::new(); account_hash.update(b"auths.gateway-account/1\0"); account_hash.update(label.as_bytes()); - let timestamp = now()?; - Some( - ConnectionRecord::new( - provider.clone(), - alias.clone(), - id, - SemanticId::parse("auths.gateway-operation/1") - .map_err(|_| "gateway.install.contract")?, - SemanticId::parse("auths.gateway-connection-descriptor/1") - .map_err(|_| "gateway.install.descriptor-schema")?, - descriptor, - account_hash.finalize().into(), - [0; 32], - NonZeroU64::MIN, - ConnectionState::Active, - vec!["gateway".to_owned()], - vec![profile], - timestamp, - timestamp, - None, - ) - .map_err(|_| "gateway.install.connection-invalid")?, + let timestamp = match &retained { + Some(record) => record.created_at_unix_seconds(), + None => now()?, + }; + let draft = ConnectionRecord::new( + provider.clone(), + alias.clone(), + id, + SemanticId::parse("auths.gateway-operation/1") + .map_err(|_| "gateway.install.contract")?, + SemanticId::parse("auths.gateway-connection-descriptor/1") + .map_err(|_| "gateway.install.descriptor-schema")?, + descriptor, + account_hash.finalize().into(), + [0; 32], + NonZeroU64::MIN, + ConnectionState::Active, + vec!["gateway".to_owned()], + vec![profile], + timestamp, + timestamp, + None, ) + .map_err(|_| "gateway.install.connection-invalid")?; + if retained.as_ref().is_some_and(|record| record != &draft) { + return Err("gateway.install.resume-conflict".into()); + } + Some(draft) }; if let Some(draft) = &draft { - private_file( + retain_installation_file( &state_dir.join(INSTALL_DRAFT_FILE), &draft .to_canonical_cbor() @@ -1690,73 +1816,73 @@ mod unix { )?; } // Retain authenticated cleanup inputs before any custody write. - private_file(&state_dir.join("recipe.json"), &source)?; - private_file(&state_dir.join("profile.lock.json"), &lock)?; - private_file(&state_dir.join("trusted.context.cbor"), &trust)?; + retain_installation_file(&state_dir.join("recipe.json"), &source)?; + retain_installation_file(&state_dir.join("profile.lock.json"), &lock)?; + retain_installation_file(&state_dir.join("trusted.context.cbor"), &trust)?; if let Some(bytes) = &attestation { - private_file(&state_dir.join(OPERATOR_ATTESTATION_FILE), bytes)?; + retain_installation_file(&state_dir.join(OPERATOR_ATTESTATION_FILE), bytes)?; } if let Some(bytes) = &qualification_root { - private_file(&state_dir.join(QUALIFICATION_ROOT_FILE), bytes)?; + retain_installation_file(&state_dir.join(QUALIFICATION_ROOT_FILE), bytes)?; } let manifest_bytes = encode_installation(&manifest)?; - private_file(&state_dir.join("installation.json"), &manifest_bytes)?; + retain_installation_file(&state_dir.join("installation.json"), &manifest_bytes)?; let shared = SharedConnection::new(attempts.store(), provider, alias); let journal = auths_gateway::CredentialJournal::new(state_dir.clone()); if join { join_connection(&shared, &journal, &*credentials, &recipe, &candidate).await?; } else { let draft = draft.ok_or("gateway.install.connection-invalid")?; - if !recipe + if recipe .credential_reads() .map_err(|_| "gateway.install.invalid-descriptor")? .is_empty() { - let proposal = state_dir.join(INSTALL_PROPOSAL_FILE); - stage_installation(&state_dir, candidate, &proposal).await?; - println!( - "installation candidate staged; approve checks and publish before serving" - ); - return Ok(()); + let notes = journal.clone(); + let id = draft.connection_id().clone(); + tokio::task::spawn_blocking(move || { + notes.initialize(&id)?; + notes.register(&id, NonZeroU64::MIN) + }) + .await + .map_err(|_| "gateway.admin.credential-journal-unavailable")??; + let secret = SecretBytes::new(std::mem::take(&mut *candidate)) + .map_err(|_| "gateway.install.invalid-credential")?; + install_connection( + &recipe, + &shared, + &*credentials, + &journal, + |reference| bind_initial_credential(&draft, reference), + draft.connection_id(), + secret, + ) + .await?; + } else { + let current = shared + .load() + .await + .map_err(|_| "gateway.install.connection-store-unavailable")?; + if let Some(current) = current { + let reference = auths_connections::CredentialReferenceCommitment::of( + draft.connection_id(), + draft.credential_generation(), + &candidate, + ); + let expected = bind_initial_credential(&draft, *reference.as_bytes())?; + if current.record() != &expected { + return Err("gateway.install.resume-conflict".into()); + } + join_connection(&shared, &journal, &*credentials, &recipe, &candidate).await?; + } else { + let proposal = state_dir.join(INSTALL_PROPOSAL_FILE); + stage_installation(&state_dir, candidate, &proposal).await?; + println!( + "installation candidate staged; approve checks and publish before serving" + ); + return Ok(()); + } } - let notes = journal.clone(); - let id = draft.connection_id().clone(); - tokio::task::spawn_blocking(move || { - notes.initialize(&id)?; - notes.register(&id, NonZeroU64::MIN) - }) - .await - .map_err(|_| "gateway.admin.credential-journal-unavailable")??; - let secret = SecretBytes::new(std::mem::take(&mut *candidate)) - .map_err(|_| "gateway.install.invalid-credential")?; - install_connection( - &recipe, - &shared, - &*credentials, - |reference| { - ConnectionRecord::new( - draft.provider_kind().clone(), - draft.alias().clone(), - draft.connection_id().clone(), - draft.contract().clone(), - draft.descriptor_schema().clone(), - draft.descriptor().to_vec(), - *draft.account_commitment(), - reference, - draft.generation(), - draft.state(), - draft.allowed_workloads().to_vec(), - draft.allowed_profiles().to_vec(), - draft.created_at_unix_seconds(), - draft.updated_at_unix_seconds(), - None, - ) - .map_err(|_| "gateway.install.connection-invalid") - }, - draft.connection_id(), - secret, - ) - .await?; } let installed = shared .load() @@ -1765,9 +1891,11 @@ mod unix { .ok_or("gateway.install.connection-store-unavailable")?; let floor = auths_gateway::GenerationFloor::new(state_dir.clone()); let record = installed.record().clone(); + admin_boundary("installation.before-floor"); tokio::task::spawn_blocking(move || floor.initialize(&record)) .await .map_err(|_| "gateway.install.connection-store-unavailable")??; + admin_boundary("installation.after-floor-ack"); let initializing = state_dir.clone(); tokio::task::spawn_blocking(move || -> Result<(), Failure> { load_engine(&initializing)? @@ -1784,6 +1912,40 @@ mod unix { Ok(()) } + fn retain_installation_file(path: &Path, bytes: &[u8]) -> Result<(), &'static str> { + retain_private_file(path, bytes).map_err(|code| { + if code == "gateway.state.resume-conflict" { + "gateway.install.resume-conflict" + } else { + code + } + }) + } + + fn bind_initial_credential( + draft: &ConnectionRecord, + reference: [u8; 32], + ) -> Result { + ConnectionRecord::new( + draft.provider_kind().clone(), + draft.alias().clone(), + draft.connection_id().clone(), + draft.contract().clone(), + draft.descriptor_schema().clone(), + draft.descriptor().to_vec(), + *draft.account_commitment(), + reference, + draft.generation(), + draft.state(), + draft.allowed_workloads().to_vec(), + draft.allowed_profiles().to_vec(), + draft.created_at_unix_seconds(), + draft.updated_at_unix_seconds(), + None, + ) + .map_err(|_| "gateway.install.connection-invalid") + } + /// The files of `directory` in name order, each at most `maximum` bytes /// and at most [`MAX_INDEX_ENTRIES`] of them. A missing directory holds /// none. @@ -1999,9 +2161,23 @@ mod unix { /// edited manifest cannot relax production. Only a changed installation /// is an error; unreadable inputs or remembered revocations give a gate /// that qualifies nothing. + #[derive(Clone, Copy)] + enum QualificationLoading { + Retain, + Inspect, + } + fn qualification_gate( state_dir: &Path, manifest: &Installation, + ) -> Result { + qualification_gate_with(state_dir, manifest, QualificationLoading::Retain) + } + + fn qualification_gate_with( + state_dir: &Path, + manifest: &Installation, + loading: QualificationLoading, ) -> Result { let policy = qualification_policy( Some(&manifest.qualification.policy), @@ -2024,8 +2200,23 @@ mod unix { clock, remembered.unwrap_or_default(), ); - // Inputs that cannot be read leave the gate holding nothing. - let _ = qualification_reload(state_dir, &gate); + // Inspection can verify retained inputs in memory without advancing a + // durable floor as a side effect of a status query. + match loading { + QualificationLoading::Retain => { + let _ = qualification_reload(state_dir, &gate); + } + QualificationLoading::Inspect => { + let _lock = private_state_lock( + state_dir, + "qualification.lock", + "gateway.qualification.unavailable", + )?; + if let Ok(bundle) = qualification_bundle(&state_dir.join(QUALIFICATION_DIRECTORY)) { + gate.load(&bundle); + } + } + } Ok(gate) } @@ -2056,26 +2247,42 @@ mod unix { state_dir: &Path, gate: &QualificationGate, ) -> Result<(), &'static str> { - let bundle = qualification_bundle(&state_dir.join(QUALIFICATION_DIRECTORY)) - .inspect_err(|_| gate.unload())?; - if gate.load(&bundle) { - write_verifier_state(state_dir, &gate.verifier_state())?; + let _lock = private_state_lock( + state_dir, + "qualification.lock", + "gateway.qualification.unavailable", + )?; + let outcome = (|| { + gate.remember_retained(&read_verifier_state(state_dir)?); + let bundle = qualification_bundle(&state_dir.join(QUALIFICATION_DIRECTORY))?; + if gate.load(&bundle) { + write_verifier_state(state_dir, &gate.verifier_state())?; + } + Ok(()) + })(); + if outcome.is_err() { + gate.unload(); } - Ok(()) + outcome } - /// Verifies a release directory under the installation's trust root and - /// makes it this host's qualification inputs. Inputs whose certificate, - /// index, or revocation list cannot be used are refused and nothing - /// changes; anything else is authentic and is kept, whatever state it - /// derives. - fn qualification_import(state_dir: &Path, from: &Path) -> Result<(), Failure> { - const CODE: &str = "gateway.qualification.unavailable"; - private_root(state_dir)?; + struct PreparedQualification { + bundle: QualificationBundle, + gate: QualificationGate, + } + struct StagedQualification { + gate: QualificationGate, + directory: PathBuf, + } + + fn prepare_qualification( + state_dir: &Path, + from: &Path, + ) -> Result { let manifest = installation(state_dir)?; let bundle = qualification_bundle(from).map_err(|code| Failure::at(code, from, "unreadable"))?; - let candidate = QualificationGate::new( + let gate = QualificationGate::new( qualification_policy( Some(&manifest.qualification.policy), production_qualification(manifest.deployment), @@ -2086,64 +2293,199 @@ mod unix { Box::new(DevelopmentClock), read_verifier_state(state_dir)?, ); - candidate.load(&bundle); - let status = candidate.status(); - if !candidate.inputs_usable() { + gate.load(&bundle); + if !gate.inputs_usable() { return Err(Failure::at( - CODE, + "gateway.qualification.unavailable", from, - "not a release this installation's root signed", + "unusable signed qualification inputs", )); } - // What the new inputs establish is recorded before they replace the - // old ones. If the replacement then fails, the old inputs meet a - // floor they are below and nothing qualifies. - load_engine(state_dir)?.publish_effect_qualification(&candidate)?; - write_verifier_state(state_dir, &candidate.verifier_state())?; - let staged = state_dir.join(format!("{QUALIFICATION_DIRECTORY}.next")); - let retired = state_dir.join(format!("{QUALIFICATION_DIRECTORY}.previous")); - let current = state_dir.join(QUALIFICATION_DIRECTORY); - let failed = |error: std::io::Error| Failure::at(CODE, ¤t, error); - for stale in [&staged, &retired] { - if stale.exists() { - fs::remove_dir_all(stale).map_err(failed)?; + Ok(PreparedQualification { bundle, gate }) + } + + fn sync_qualification_directory(directory: &Path) -> Result<(), Failure> { + admin_boundary("qualification.before-directory-sync"); + File::open(directory) + .and_then(|file| file.sync_all()) + .map_err(|error| Failure::at("gateway.qualification.unavailable", directory, error))?; + admin_boundary("qualification.after-directory-sync"); + Ok(()) + } + + /// The local publication contains only this closed, bounded file layout. + /// Refuse foreign/symbolic entries instead of recursively deleting them. + fn remove_qualification_directory(directory: &Path) -> Result<(), Failure> { + const CODE: &str = "gateway.qualification.unavailable"; + if !directory.exists() { + return Ok(()); + } + check_private_directory(directory).map_err(|cause| Failure::at(CODE, directory, cause))?; + let entries = + fs::read_dir(directory).map_err(|error| Failure::at(CODE, directory, error))?; + for entry in entries.take(6) { + let entry = entry.map_err(|error| Failure::at(CODE, directory, error))?; + let name = entry.file_name(); + let path = entry.path(); + let Some(name) = name.to_str() else { + return Err(CODE.into()); + }; + if [RELEASE_RECORDS_DIRECTORY, RELEASE_ATTESTATIONS_DIRECTORY].contains(&name) { + check_private_directory(&path).map_err(|cause| Failure::at(CODE, &path, cause))?; + let members = + fs::read_dir(&path).map_err(|error| Failure::at(CODE, &path, error))?; + for (index, member) in members.enumerate() { + if index >= MAX_INDEX_ENTRIES { + return Err(CODE.into()); + } + let member = member.map_err(|error| Failure::at(CODE, &path, error))?; + let metadata = fs::symlink_metadata(member.path()) + .map_err(|error| Failure::at(CODE, &path, error))?; + if !metadata.is_file() || metadata.permissions().mode() & 0o077 != 0 { + return Err(CODE.into()); + } + fs::remove_file(member.path()) + .map_err(|error| Failure::at(CODE, &path, error))?; + } + sync_qualification_directory(&path)?; + fs::remove_dir(&path).map_err(|error| Failure::at(CODE, &path, error))?; + } else if [ + RELEASE_SIGNER_CERTIFICATE_FILE, + RELEASE_REVOCATION_LIST_FILE, + RELEASE_INDEX_FILE, + ] + .contains(&name) + { + let metadata = + fs::symlink_metadata(&path).map_err(|error| Failure::at(CODE, &path, error))?; + if !metadata.is_file() || metadata.permissions().mode() & 0o077 != 0 { + return Err(CODE.into()); + } + fs::remove_file(&path).map_err(|error| Failure::at(CODE, &path, error))?; + } else { + return Err(CODE.into()); } } + sync_qualification_directory(directory)?; + fs::remove_dir(directory).map_err(|error| Failure::at(CODE, directory, error))?; + sync_qualification_directory(directory.parent().ok_or(CODE)?) + } + + fn stage_qualification( + state_dir: &Path, + prepared: PreparedQualification, + ) -> Result { + let staged = state_dir.join(format!("{QUALIFICATION_DIRECTORY}.next")); + // Never delete the only retained accepted candidate during recovery. + // Exact retry fills only missing files; different staged bytes conflict. for directory in [ staged.clone(), staged.join(RELEASE_RECORDS_DIRECTORY), staged.join(RELEASE_ATTESTATIONS_DIRECTORY), ] { - fs::create_dir(&directory).map_err(failed)?; - fs::set_permissions(&directory, fs::Permissions::from_mode(0o700)).map_err(failed)?; + match fs::DirBuilder::new().mode(0o700).create(&directory) { + Ok(()) => fs::set_permissions(&directory, fs::Permissions::from_mode(0o700)) + .map_err(|error| { + Failure::at("gateway.qualification.unavailable", &directory, error) + })?, + Err(error) if error.kind() == std::io::ErrorKind::AlreadyExists => { + check_private_directory(&directory).map_err(|cause| { + Failure::at("gateway.qualification.unavailable", &directory, cause) + })?; + } + Err(error) => { + return Err(Failure::at( + "gateway.qualification.unavailable", + &directory, + error, + )); + } + } } - private_file( + let bundle = &prepared.bundle; + retain_private_file( &staged.join(RELEASE_SIGNER_CERTIFICATE_FILE), &bundle.signer_certificate, )?; - private_file( + retain_private_file( &staged.join(RELEASE_REVOCATION_LIST_FILE), &bundle.revocation_list, )?; - private_file(&staged.join(RELEASE_INDEX_FILE), &bundle.release_index)?; + retain_private_file(&staged.join(RELEASE_INDEX_FILE), &bundle.release_index)?; for (directory, members) in [ (RELEASE_RECORDS_DIRECTORY, &bundle.records), (RELEASE_ATTESTATIONS_DIRECTORY, &bundle.attestations), ] { for (position, member) in members.iter().enumerate() { - private_file( + retain_private_file( &staged.join(directory).join(format!("{position:04}.json")), member, )?; } + sync_qualification_directory(&staged.join(directory))?; } - if current.exists() { - fs::rename(¤t, &retired).map_err(failed)?; - } - fs::rename(&staged, ¤t).map_err(failed)?; - if retired.exists() { - fs::remove_dir_all(&retired).map_err(failed)?; + sync_qualification_directory(&staged)?; + sync_qualification_directory(state_dir)?; + if qualification_bundle(&staged)?.digest() != bundle.digest() { + return Err("gateway.qualification.unavailable".into()); } + Ok(StagedQualification { + gate: prepared.gate, + directory: staged, + }) + } + + /// Verifies a release directory under the installation's trust root and + /// makes it this host's qualification inputs. Inputs whose certificate, + /// index, or revocation list cannot be used are refused and nothing + /// changes; anything else is authentic and is kept, whatever state it + /// derives. + fn qualification_import(state_dir: &Path, from: &Path) -> Result<(), Failure> { + const CODE: &str = "gateway.qualification.unavailable"; + private_root(state_dir)?; + // Engine loading performs a locked local reload. Do it before taking + // the transaction lock so we never recursively acquire that same lock. + let manifest = installation(state_dir)?; + let engine = load_engine_from_manifest( + state_dir, + CredentialAccess::Operator, + &manifest, + QualificationLoading::Inspect, + )?; + let _lock = private_state_lock(state_dir, "qualification.lock", CODE)?; + let prepared = prepare_qualification(state_dir, from)?; + let staged = stage_qualification(state_dir, prepared)?; + let current = state_dir.join(QUALIFICATION_DIRECTORY); + let retired = state_dir.join(format!("{QUALIFICATION_DIRECTORY}.previous")); + if current.exists() && retired.exists() { + let previous_publication = prepare_qualification(state_dir, ¤t)?; + engine.check_qualification_publication(&previous_publication.gate)?; + remove_qualification_directory(&retired)?; + } + admin_boundary("qualification.before-native-floor"); + engine.publish_effect_qualification(&staged.gate)?; + admin_boundary("qualification.after-native-floor"); + write_verifier_state(state_dir, &staged.gate.verifier_state())?; + admin_boundary("qualification.after-local-floor"); + if current.exists() { + admin_boundary("qualification.before-current-retirement"); + fs::rename(¤t, &retired).map_err(|error| Failure::at(CODE, ¤t, error))?; + admin_boundary("qualification.after-current-retirement"); + sync_qualification_directory(state_dir)?; + admin_boundary("qualification.after-retirement-sync"); + } + admin_boundary("qualification.before-current-publication"); + fs::rename(&staged.directory, ¤t) + .map_err(|error| Failure::at(CODE, ¤t, error))?; + admin_boundary("qualification.after-current-publication"); + sync_qualification_directory(state_dir)?; + admin_boundary("qualification.after-publication-sync"); + let published = prepare_qualification(state_dir, ¤t)?; + engine.check_qualification_publication(&published.gate)?; + admin_boundary("qualification.before-retired-cleanup"); + remove_qualification_directory(&retired)?; + admin_boundary("qualification.after-retired-cleanup"); + let status = published.gate.status(); println!( "imported qualification inputs: state={} code={}", status.state.as_str(), @@ -2152,6 +2494,343 @@ mod unix { Ok(()) } + fn qualification_recover(state_dir: &Path) -> Result<(), Failure> { + private_root(state_dir)?; + let staged = state_dir.join(format!("{QUALIFICATION_DIRECTORY}.next")); + if staged.exists() { + return qualification_import(state_dir, &staged); + } + let engine = load_engine(state_dir)?; + let _lock = private_state_lock( + state_dir, + "qualification.lock", + "gateway.qualification.unavailable", + )?; + // Recheck after taking the lock: another importer may have staged work. + if staged.exists() { + return Err("gateway.qualification.unavailable".into()); + } + let current = state_dir.join(QUALIFICATION_DIRECTORY); + let published = prepare_qualification(state_dir, ¤t)?; + engine.check_qualification_publication(&published.gate)?; + remove_qualification_directory( + &state_dir.join(format!("{QUALIFICATION_DIRECTORY}.previous")), + )?; + println!("qualification publication verified; retired cleanup complete"); + Ok(()) + } + + #[derive(Serialize)] + #[serde(rename_all = "kebab-case")] + enum InstallationRecoveryPhase { + Uninitialized, + InputsRetained, + ConfiguredUnpublished, + Published, + Quarantined, + } + + #[derive(Serialize)] + #[serde(tag = "state", rename_all = "kebab-case")] + enum QualificationRecoveryPhase { + Empty, + Staged, + FloorsAdvanced, + CurrentPublished, + RetiredCleanupPending, + Unavailable { code: &'static str }, + } + + #[derive(Serialize)] + #[serde(tag = "state", rename_all = "kebab-case")] + enum RecoveryComponent { + Known { facts: T }, + Unavailable { code: &'static str }, + } + + #[derive(Serialize)] + #[serde(rename_all = "kebab-case")] + enum AdministrativeNextCommand { + Install, + InstallResume, + CandidateStageInstallation, + CandidateAcquire, + CandidatePublish, + CredentialCollect, + QualificationImport, + QualificationRecover, + RecoveryStatus, + } + + #[derive(Serialize)] + struct AdministrativeRecoveryReport { + schema: &'static str, + installation: InstallationRecoveryPhase, + native: Option>, + candidate: Option>, + qualification: QualificationRecoveryPhase, + next_commands: Vec, + } + + fn inspect_qualification_publication( + state_dir: &Path, + engine: &GatewayEngine, + ) -> QualificationRecoveryPhase { + let inspect = || -> Result { + let _lock = private_state_lock( + state_dir, + "qualification.lock", + "gateway.qualification.unavailable", + )?; + let current = state_dir.join(QUALIFICATION_DIRECTORY); + let staged = state_dir.join(format!("{QUALIFICATION_DIRECTORY}.next")); + let retired = state_dir.join(format!("{QUALIFICATION_DIRECTORY}.previous")); + if staged.exists() { + let candidate = prepare_qualification(state_dir, &staged)?; + return match engine.check_qualification_publication(&candidate.gate) { + Ok(()) => Ok(QualificationRecoveryPhase::FloorsAdvanced), + Err("gateway.configuration.changed") => Ok(QualificationRecoveryPhase::Staged), + Err(code) => Err(code.into()), + }; + } + if current.exists() { + let publication = prepare_qualification(state_dir, ¤t)?; + engine.check_qualification_publication(&publication.gate)?; + return Ok(if retired.exists() { + QualificationRecoveryPhase::RetiredCleanupPending + } else { + QualificationRecoveryPhase::CurrentPublished + }); + } + let memory = read_verifier_state(state_dir)?; + if retired.exists() + || memory.accepted_revocation_sequence != 0 + || memory.accepted_index_issued_at != 0 + || !memory.revoked_signers.is_empty() + || !memory.revoked_qualifications.is_empty() + { + return Err("gateway.qualification.unavailable".into()); + } + Ok(QualificationRecoveryPhase::Empty) + }; + inspect().unwrap_or_else(|failure| QualificationRecoveryPhase::Unavailable { + code: failure.code, + }) + } + + fn initial_recovery_report( + state_dir: &Path, + ) -> (AdministrativeRecoveryReport, Option<&'static str>) { + let retained_files = [ + INSTALL_DRAFT_FILE, + "recipe.json", + "profile.lock.json", + "trusted.context.cbor", + "installation.json", + ]; + let any_retained = retained_files + .iter() + .any(|name| state_dir.join(name).exists()); + let mut report = AdministrativeRecoveryReport { + schema: "auths.gateway-recovery/1", + installation: if any_retained { + InstallationRecoveryPhase::InputsRetained + } else { + InstallationRecoveryPhase::Uninitialized + }, + native: None, + candidate: None, + qualification: QualificationRecoveryPhase::Empty, + next_commands: vec![if any_retained { + AdministrativeNextCommand::InstallResume + } else { + AdministrativeNextCommand::Install + }], + }; + let mut failure = None; + for name in retained_files { + let path = state_dir.join(name); + match fs::symlink_metadata(&path) { + Ok(metadata) + if !metadata.is_file() + || metadata.permissions().mode() & 0o077 != 0 + || metadata.uid() != rustix::process::geteuid().as_raw() + || metadata.nlink() != 1 => + { + report.installation = InstallationRecoveryPhase::Quarantined; + report.next_commands = vec![AdministrativeNextCommand::RecoveryStatus]; + failure = Some("gateway.install.retained-input-invalid"); + } + Err(error) if error.kind() != std::io::ErrorKind::NotFound => { + failure = Some("gateway.install.retained-input-invalid"); + } + _ => {} + } + } + (report, failure) + } + + async fn populate_native_recovery( + state_dir: &Path, + engine: &GatewayEngine, + report: &mut AdministrativeRecoveryReport, + ) -> Option<&'static str> { + let mut failure = None; + let draft = (|| -> Result, Failure> { + if !state_dir.join(INSTALL_DRAFT_FILE).exists() { + return Ok(None); + } + let path = state_dir.join(INSTALL_DRAFT_FILE); + let bytes = read_bounded(&path, auths_gateway::effect::MAX_EFFECT_BYTES)?; + retain_private_file(&path, &bytes)?; + Ok(Some( + ConnectionRecord::from_canonical_cbor(&bytes) + .map_err(|_| "gateway.install.connection-invalid")?, + )) + })(); + let native = match draft { + Ok(draft) => engine.administrative_recovery(draft.as_ref()).await, + Err(error) => { + report.installation = InstallationRecoveryPhase::Quarantined; + Err(error.code) + } + }; + match native { + Ok(facts) => { + report.installation = match facts { + auths_gateway::AdministrativeRecovery::Published { .. } => { + InstallationRecoveryPhase::Published + } + auths_gateway::AdministrativeRecovery::Unpublished { .. } => { + InstallationRecoveryPhase::ConfiguredUnpublished + } + }; + if let Some(code) = facts.cleanup_failure_code() { + failure = Some(code); + } + report.native = Some(RecoveryComponent::Known { facts }); + } + Err(code) => { + report.native = Some(RecoveryComponent::Unavailable { code }); + failure = Some(code); + } + } + report.qualification = inspect_qualification_publication(state_dir, engine); + report.next_commands = match report.installation { + InstallationRecoveryPhase::Published => vec![ + AdministrativeNextCommand::CredentialCollect, + AdministrativeNextCommand::QualificationImport, + ], + InstallationRecoveryPhase::Quarantined => { + vec![AdministrativeNextCommand::RecoveryStatus] + } + _ => vec![ + AdministrativeNextCommand::InstallResume, + AdministrativeNextCommand::CandidateStageInstallation, + ], + }; + if matches!( + report.qualification, + QualificationRecoveryPhase::Staged + | QualificationRecoveryPhase::FloorsAdvanced + | QualificationRecoveryPhase::RetiredCleanupPending + ) { + report + .next_commands + .push(AdministrativeNextCommand::QualificationRecover); + } + if let QualificationRecoveryPhase::Unavailable { code } = report.qualification { + failure = Some(code); + } + failure + } + + async fn administrative_recovery_status( + state_dir: PathBuf, + candidate: Option, + proof: Option, + action: Option, + approval: Option, + ) -> Result<(), Failure> { + private_root(&state_dir)?; + let candidate_requested = candidate.is_some(); + let (mut report, mut failure) = initial_recovery_report(&state_dir); + if failure.is_none() && state_dir.join("installation.json").exists() { + let directory = state_dir.clone(); + let loaded = tokio::task::spawn_blocking(move || { + let manifest = installation(&directory)?; + load_engine_from_manifest( + &directory, + CredentialAccess::Operator, + &manifest, + QualificationLoading::Inspect, + ) + }) + .await + .map_err(|_| "gateway.admin.connection-unavailable")?; + match loaded { + Err(error) => { + report.installation = InstallationRecoveryPhase::Quarantined; + report.native = Some(RecoveryComponent::Unavailable { code: error.code }); + report.next_commands = vec![AdministrativeNextCommand::RecoveryStatus]; + failure = Some(error.code); + } + Ok(engine) => { + failure = populate_native_recovery(&state_dir, &engine, &mut report).await; + if let (Some(candidate), Some(proof), Some(action), Some(approval)) = + (candidate, proof, action, approval) + { + let inspected = async { + let target = read_candidate(&state_dir, &candidate)?; + let proof = read_bounded(&proof, 4 * 1024 * 1024)?; + let action = read_bounded(&action, 64 * 1024)?; + let approval = read_effect_approval(&approval)?; + engine + .candidate_recovery_state(&target, &proof, &action, approval) + .await + .map_err(Failure::from) + } + .await; + report.candidate = Some(match inspected { + Ok(facts) => { + match facts { + auths_gateway::CandidateRecoveryState::ReadyForPublication => { + report + .next_commands + .push(AdministrativeNextCommand::CandidatePublish); + } + auths_gateway::CandidateRecoveryState::ChecksIncomplete => { + report + .next_commands + .push(AdministrativeNextCommand::CandidateAcquire); + } + _ => {} + } + RecoveryComponent::Known { facts } + } + Err(error) => { + failure = Some(error.code); + RecoveryComponent::Unavailable { code: error.code } + } + }); + } + } + } + } + if report.candidate.is_none() && candidate_requested { + report.candidate = Some(RecoveryComponent::Unavailable { + code: "gateway.admin.connection-unavailable", + }); + failure = Some("gateway.admin.connection-unavailable"); + } + let bytes = serde_json_canonicalizer::to_vec(&report).map_err(|_| "gateway.output")?; + if bytes.len() > 1024 * 1024 { + return Err("gateway.output".into()); + } + println!("{}", String::from_utf8_lossy(&bytes)); + failure.map_or(Ok(()), |code| Err(code.into())) + } + /// Prints the installation's qualification state, or the tuple it must /// be qualified for. fn qualification_status(state_dir: &Path, tuple: bool) -> Result<(), Failure> { @@ -2307,13 +2986,14 @@ mod unix { ) -> Result { private_root(state_dir)?; let manifest = installation(state_dir)?; - load_engine_from_manifest(state_dir, access, &manifest) + load_engine_from_manifest(state_dir, access, &manifest, QualificationLoading::Retain) } fn load_engine_from_manifest( state_dir: &Path, access: CredentialAccess, manifest: &Installation, + qualification_loading: QualificationLoading, ) -> Result { let source = read_bounded(&state_dir.join("recipe.json"), 65_536)?; let lock = read_bounded(&state_dir.join("profile.lock.json"), 65_536)?; @@ -2392,7 +3072,11 @@ mod unix { None => engine, }; let engine = engine - .with_qualification(Arc::new(qualification_gate(state_dir, manifest)?)) + .with_qualification(Arc::new(qualification_gate_with( + state_dir, + manifest, + qualification_loading, + )?)) .with_generation_floor(auths_gateway::GenerationFloor::new(state_dir.to_path_buf())) .with_credential_journal(auths_gateway::CredentialJournal::new( state_dir.to_path_buf(), @@ -3351,12 +4035,27 @@ mod unix { .map_err(|_| "gateway.effect.approval") } + async fn installation_operation_lock(state_dir: &Path) -> Result { + let directory = state_dir.to_path_buf(); + tokio::task::spawn_blocking(move || { + private_root(&directory)?; + private_state_lock( + &directory, + "installation.lock", + "gateway.configuration.unavailable", + ) + .map_err(Failure::from) + }) + .await + .map_err(|_| "gateway.configuration.unavailable")? + } + async fn stage_installation( state_dir: &Path, candidate: Zeroizing>, proposal_out: &Path, ) -> Result<(), Failure> { - if !proposal_out.is_absolute() || proposal_out.exists() { + if !proposal_out.is_absolute() { return Err("gateway.state.file-exists-or-unavailable".into()); } private_root(state_dir)?; @@ -3379,10 +4078,18 @@ mod unix { }) .await .map_err(|_| "gateway.configuration.unavailable")??; - let proposal = engine - .stage_candidate_installation(&draft, candidate) - .await?; - private_file( + let proposal = if proposal_out.exists() { + let retained = read_candidate(state_dir, proposal_out)?; + engine + .confirm_staged_candidate(&retained, &candidate) + .await?; + retained + } else { + engine + .stage_candidate_installation(&draft, candidate) + .await? + }; + retain_private_file( proposal_out, &Zeroizing::new( proposal @@ -4261,7 +4968,12 @@ mod unix { ) -> Result { private_root(state_dir)?; let manifest = candidate_installation(state_dir, policy)?; - let engine = load_engine_from_manifest(state_dir, CredentialAccess::Operator, &manifest)?; + let engine = load_engine_from_manifest( + state_dir, + CredentialAccess::Operator, + &manifest, + QualificationLoading::Retain, + )?; Ok( serde_json::json!({"schema":"auths.effect-configuration-review/1", "previous_revision_hex":hex::encode(engine.effect_configuration_revision()?), @@ -4295,7 +5007,12 @@ mod unix { let bytes = encode_installation(&manifest)?; let revision = parse(revision)?; let candidate = parse(candidate)?; - let engine = load_engine_from_manifest(state_dir, CredentialAccess::Operator, &manifest)?; + let engine = load_engine_from_manifest( + state_dir, + CredentialAccess::Operator, + &manifest, + QualificationLoading::Retain, + )?; if engine.effect_configuration_candidate()? != candidate { return Err("gateway.configuration.changed".into()); } @@ -4629,6 +5346,7 @@ mod unix { credential_stdin, proposal_out, } => { + let _operation = installation_operation_lock(&state_dir).await?; if !credential_stdin || std::io::stdin().is_terminal() { return Err("gateway.install.credential-must-be-piped-to-stdin".into()); } @@ -4641,16 +5359,25 @@ mod unix { credential_stdin, proposal_out, } => { + let _operation = installation_operation_lock(&state_dir).await?; if !credential_stdin || std::io::stdin().is_terminal() { return Err("gateway.admin.credential-must-be-piped-to-stdin".into()); } - if !proposal_out.is_absolute() || proposal_out.exists() { + if !proposal_out.is_absolute() { return Err("gateway.state.file-exists-or-unavailable".into()); } let candidate = read_install_credential()?; let engine = operator_engine(&state_dir).await?; - let proposal = engine.stage_candidate_rotation(candidate).await?; - private_file( + let proposal = if proposal_out.exists() { + let retained = read_candidate(&state_dir, &proposal_out)?; + engine + .confirm_staged_candidate(&retained, &candidate) + .await?; + retained + } else { + engine.stage_candidate_rotation(candidate).await? + }; + retain_private_file( &proposal_out, &proposal .to_private_bytes() @@ -4738,6 +5465,7 @@ mod unix { action, approval, } => { + let _operation = installation_operation_lock(&state_dir).await?; let target = read_candidate(&state_dir, &candidate)?; let proof = read_bounded(&proof, 4 * 1024 * 1024)?; let action = read_bounded(&action, 64 * 1024)?; @@ -5032,6 +5760,7 @@ mod unix { } Command::Install { state_dir, + resume, recipe, profile_lock, trusted_context, @@ -5060,7 +5789,7 @@ mod unix { kms_key: aws_kms_key, identity: aws_identity, }; - install( + Box::pin(install( state_dir, recipe, profile_lock, @@ -5078,7 +5807,8 @@ mod unix { attempt_store, credential_store, qualification, - ) + resume, + )) .await } Command::QualificationImport { @@ -5119,6 +5849,11 @@ mod unix { } Ok(()) } + Command::QualificationRecover { state_dir } => { + tokio::task::spawn_blocking(move || qualification_recover(&state_dir)) + .await + .map_err(|_| "gateway.qualification.unavailable")? + } Command::QualificationStatus { state_dir, tuple } => { tokio::task::spawn_blocking(move || qualification_status(&state_dir, tuple)) .await @@ -5282,6 +6017,15 @@ mod unix { let command = serde_json::json!({"command": "execution-witness"}); admin_command(&state_dir, &admin_socket, command, None).await } + Command::RecoveryStatus { + state_dir, + candidate, + proof, + action, + approval, + } => { + administrative_recovery_status(state_dir, candidate, proof, action, approval).await + } Command::Status { state_dir, admin_socket, @@ -5364,12 +6108,14 @@ mod unix { } Command::CredentialCollect { state_dir } => { let engine = operator_engine(&state_dir).await?; - let deleted = engine.collect_credentials().await?; + let outcome = engine.collect_credentials().await?; println!( "{}", - serde_json::json!({"schema": "auths.gateway-credential-collection/1", "deleted": deleted}) + serde_json::json!({"schema": "auths.gateway-credential-collection/2", "outcome": outcome}) ); - Ok(()) + outcome + .failure_code() + .map_or(Ok(()), |code| Err(code.into())) } Command::Rotate { state_dir, diff --git a/product/runtime/auths-gateway/src/candidate_runtime.rs b/product/runtime/auths-gateway/src/candidate_runtime.rs index 7ab163748..e4208a163 100644 --- a/product/runtime/auths-gateway/src/candidate_runtime.rs +++ b/product/runtime/auths-gateway/src/candidate_runtime.rs @@ -9,6 +9,7 @@ use super::{ }; use crate::effect::{BoundEffect, CandidateCredentialTarget, compile_candidate_credential}; use crate::submit::AcquisitionIo; +use subtle::ConstantTimeEq as _; impl GatewayEngine { /// Stages a generation-one candidate from a retained private operator @@ -80,25 +81,33 @@ impl GatewayEngine { self.note_credential(&record, record.credential_generation()) .await?; if self.holds(&record).await.is_err() { + self.begin_credential_mutation(&record, record.credential_generation()) + .await?; let secret = SecretBytes::new(std::mem::take(&mut *candidate)) .map_err(|_| "gateway.install.invalid-credential")?; - let stored = self + crate::admin_fault::boundary("candidate-installation.before-custody"); + let outcome = self .credentials .install( record.connection_id(), record.credential_generation(), secret, ) - .await - .map_err(|_| "gateway.install.credential-store-unavailable")?; + .await; + crate::admin_fault::boundary("candidate-installation.after-custody-reply"); + self.settle_credential_mutation(&record, record.credential_generation(), &outcome) + .await?; + let stored = outcome.map_err(|_| "gateway.install.credential-store-unavailable")?; if stored != reference { return Err("gateway.install.credential-store-unavailable"); } } + crate::admin_fault::boundary("candidate-installation.before-floor"); self.connection .initialize_candidate_floor(&record) .await .map_err(|_| "gateway.connection.restore-rollback")?; + crate::admin_fault::boundary("candidate-installation.after-floor"); self.check_candidate_predecessor(&target).await?; Ok(target) } @@ -154,9 +163,10 @@ impl GatewayEngine { .map_err(|()| "gateway.admin.credential-unavailable")?; let secret = SecretBytes::new(std::mem::take(&mut *candidate)) .map_err(|_| "gateway.admin.invalid-credential")?; - self.note_credential(record, proposed.credential_generation()) + self.begin_credential_mutation(record, proposed.credential_generation()) .await?; - let reference = self + crate::admin_fault::boundary("candidate-rotation.before-custody"); + let outcome = self .credentials .replace( record.connection_id(), @@ -164,8 +174,11 @@ impl GatewayEngine { proposed.credential_generation(), secret, ) - .await - .map_err(|_| "gateway.admin.credential-unavailable")?; + .await; + crate::admin_fault::boundary("candidate-rotation.after-custody-reply"); + self.settle_credential_mutation(record, proposed.credential_generation(), &outcome) + .await?; + let reference = outcome.map_err(|_| "gateway.admin.credential-unavailable")?; let proposed = record .rotated( record.descriptor().to_vec(), @@ -180,6 +193,95 @@ impl GatewayEngine { Ok(target) } + /// Confirms exact retained staging without replacing custody or refreshing + /// a proposal timestamp. This grants no provider read or publication. + /// + /// # Errors + /// Refuses a changed predecessor, different secret or unavailable exact custody. + pub async fn confirm_staged_candidate( + &self, + target: &CandidateCredentialTarget, + candidate: &[u8], + ) -> Result<(), &'static str> { + self.check_candidate_predecessor(target).await?; + let record = target.record(); + let commitment = auths_connections::CredentialReferenceCommitment::of( + record.connection_id(), + record.credential_generation(), + candidate, + ); + if !bool::from( + commitment + .as_bytes() + .ct_eq(record.credential_binding().reference_commitment()), + ) { + return Err("gateway.admin.generation-conflict"); + } + self.holds(record) + .await + .map_err(|()| "gateway.admin.credential-unavailable") + } + + /// Inspects retained candidate checks without running a read or publishing. + /// Ready is advisory; the existing publication fence repeats all guards. + /// + /// # Errors + /// Refuses invalid exact proof/approval or unavailable native configuration. + pub async fn candidate_recovery_state( + &self, + target: &CandidateCredentialTarget, + proof: &[u8], + action: &[u8], + approval: ExactEffectApproval, + ) -> Result { + let started = Instant::now(); + self.check_effect_configuration().await?; + self.check_candidate_location(target)?; + let current = self + .connection + .load() + .await + .map_err(|_| "gateway.connection.unavailable")?; + if current + .as_ref() + .is_some_and(|loaded| loaded.record() == target.record()) + { + return Ok(crate::CandidateRecoveryState::Published); + } + if !target.predecessor_matches(current.as_ref().map(LoadedConnection::private_bytes)) { + return Ok(crate::CandidateRecoveryState::Superseded); + } + if target.previous().is_none() { + self.connection + .check_candidate_floor(target.record()) + .await + .map_err(|_| "gateway.connection.restore-rollback")?; + } + let effect = self + .compile_candidate_target(target, proof, action) + .map_err(|_| "gateway.admin.transition-unavailable")?; + let now = self + .qualification + .effect_time() + .ok_or("gateway.verify.clock-unavailable")?; + let approved = Arc::new( + effect + .approve(approval, self.effect_policy.approver(), now) + .map_err(|_| "gateway.effect.approval")?, + ); + let state = self + .attempts + .inspect_candidate(approved, self.candidate_validation(target, started)?, now) + .await + .map_err(|_| "gateway.admin.transition-unavailable")?; + if state == crate::CandidateRecoveryState::ReadyForPublication { + self.holds(target.record()) + .await + .map_err(|()| "gateway.admin.credential-unavailable")?; + } + Ok(state) + } + /// Compiles independently authorized checks for a staged credential. The /// exact predecessor/absence must currently match; no custody or provider /// I/O occurs. The final entry transaction repeats this check under its fence. diff --git a/product/runtime/auths-gateway/src/connection.rs b/product/runtime/auths-gateway/src/connection.rs index b93e46eee..2f309ea48 100644 --- a/product/runtime/auths-gateway/src/connection.rs +++ b/product/runtime/auths-gateway/src/connection.rs @@ -334,21 +334,44 @@ impl SharedConnection { } } -/// Installs the first record for a recipe with no credential reads: stores `secret` in this -/// process's credential store at generation 1, then inserts the record that -/// commits to it. A record already present is never replaced, and the -/// secret stored for the refused install is deleted. +async fn settle_custody_note( + journal: &crate::CredentialJournal, + id: &ConnectionId, + generation: NonZeroU64, + outcome: &Result, +) -> Result<(), &'static str> { + if outcome.is_ok() + || outcome + .as_ref() + .is_err_and(|error| error.certifies_no_mutation()) + { + let notes = journal.clone(); + let id = id.clone(); + tokio::task::spawn_blocking(move || notes.confirm_mutation(&id, generation)) + .await + .map_err(|_| "gateway.admin.credential-journal-unavailable")??; + } + Ok(()) +} + +/// Installs or explicitly resumes the exact first record for a recipe with no +/// credential reads. Durable cleanup/mutation notes precede custody; an existing +/// different connection is never replaced. Failed native acknowledgement reloads +/// the exact record and never compensates by deleting possibly live custody. /// -/// `draft` supplies every field of the record except the credential -/// reference commitment, which only the local store can compute. +/// `draft` supplies all fields except the native credential-reference commitment. +/// The secret owner computes that commitment without exposing its bytes; custody +/// must acknowledge or already hold the exact binding before publication. /// /// # Errors -/// Returns `gateway.install.connection-exists` when a record is present, -/// and a credential-store or connection-store code otherwise. +/// Refuses conflicting input, unconfirmed custody work, unavailable durable notes +/// or custody/native storage. Errors may retain cleanup obligations and do not +/// prove the credential or native publication is absent. pub async fn install_connection( recipe: &crate::CompiledRecipe, shared: &SharedConnection, credentials: &dyn ConnectionCredentialStore, + journal: &crate::CredentialJournal, draft: impl FnOnce([u8; 32]) -> Result, connection_id: &ConnectionId, secret: SecretBytes, @@ -361,26 +384,71 @@ pub async fn install_connection( return Err("gateway.install.candidate-approval-required"); } let first = NonZeroU64::MIN; - let reference = credentials - .install(connection_id, first, secret) + let reference = secret.reference_commitment(connection_id, first); + let expected = draft(*reference.as_bytes())?; + if expected.connection_id() != connection_id { + return Err("gateway.install.connection-invalid"); + } + if let Some(current) = shared + .load() .await - .map_err(|_| "gateway.install.credential-store-unavailable")?; - let inserted = match draft(*reference.as_bytes()) { - Ok(record) if record.connection_id() == connection_id => { - shared.insert(&record).await.map_err(|error| match error { + .map_err(|_| "gateway.install.connection-store-unavailable")? + && current.record() != &expected + { + return Err("gateway.install.connection-exists"); + } + let notes = journal.clone(); + let id = connection_id.clone(); + tokio::task::spawn_blocking(move || { + notes.initialize(&id)?; + notes.register(&id, first) + }) + .await + .map_err(|_| "gateway.admin.credential-journal-unavailable")??; + if credentials + .holds(&expected.credential_binding()) + .await + .is_err() + { + let notes = journal.clone(); + let id = connection_id.clone(); + tokio::task::spawn_blocking(move || notes.begin_mutation(&id, first)) + .await + .map_err(|_| "gateway.admin.credential-journal-unavailable")??; + crate::admin_fault::boundary("installation.before-custody"); + let outcome = credentials.install(connection_id, first, secret).await; + crate::admin_fault::boundary("installation.after-custody-ack"); + settle_custody_note(journal, connection_id, first, &outcome).await?; + let stored = outcome.map_err(|_| "gateway.install.credential-store-unavailable")?; + if stored != reference { + return Err("gateway.install.credential-store-unavailable"); + } + } + crate::admin_fault::boundary("installation.before-native-publication"); + match shared.insert(&expected).await { + Ok(loaded) => { + crate::admin_fault::boundary("installation.after-native-publication-ack"); + Ok(loaded.record().clone()) + } + Err(error) => { + // A failed response can follow a durable native publication. Never + // compensate it by deleting a possibly live credential. Exact notes + // retain all cleanup obligations for explicit inspection/collection. + let current = shared + .load() + .await + .map_err(|_| "gateway.install.connection-store-unavailable")?; + if current + .as_ref() + .is_some_and(|loaded| loaded.record() == &expected) + { + return Ok(expected); + } + Err(match error { SharedConnectionError::Exists => "gateway.install.connection-exists", _ => "gateway.install.connection-store-unavailable", }) } - Ok(_) => Err("gateway.install.connection-invalid"), - Err(code) => Err(code), - }; - match inserted { - Ok(loaded) => Ok(loaded.record().clone()), - Err(code) => { - let _ = credentials.delete_connection(connection_id, &[first]).await; - Err(code) - } } } @@ -423,15 +491,36 @@ pub async fn join_connection( }) .await .map_err(|_| "gateway.admin.credential-journal-unavailable")??; - // Joining confirms exactly the already-published secret. It does not - // acquire new provider evidence or authorize a changed credential. - + // Validate the supplied secret even when this host already holds custody. let secret = SecretBytes::new(candidate.to_vec()).map_err(|_| "gateway.install.invalid-credential")?; - match credentials - .confirm(&record.credential_binding(), secret) + let expected = secret.reference_commitment(record.connection_id(), generation); + if !bool::from(subtle::ConstantTimeEq::ct_eq( + expected.as_bytes().as_slice(), + record + .credential_binding() + .reference_commitment() + .as_slice(), + )) { + return Err("gateway.install.join-commitment-mismatch"); + } + if credentials + .holds(&record.credential_binding()) .await + .is_ok() { + return Ok(record.clone()); + } + let notes = journal.clone(); + let id = record.connection_id().clone(); + tokio::task::spawn_blocking(move || notes.begin_mutation(&id, generation)) + .await + .map_err(|_| "gateway.admin.credential-journal-unavailable")??; + let outcome = credentials + .confirm(&record.credential_binding(), secret) + .await; + settle_custody_note(journal, record.connection_id(), generation, &outcome).await?; + match outcome { Ok(()) => Ok(record.clone()), Err(CredentialStoreError::Substitution) => Err("gateway.install.join-commitment-mismatch"), Err(_) => Err("gateway.install.credential-store-unavailable"), diff --git a/product/runtime/auths-gateway/src/credential_journal.rs b/product/runtime/auths-gateway/src/credential_journal.rs index ed1e44571..0d69b5201 100644 --- a/product/runtime/auths-gateway/src/credential_journal.rs +++ b/product/runtime/auths-gateway/src/credential_journal.rs @@ -4,7 +4,7 @@ use auths_connections::ConnectionId; use serde::{Deserialize, Serialize}; #[cfg(unix)] -use std::os::unix::fs::{OpenOptionsExt as _, PermissionsExt as _}; +use std::os::unix::fs::{MetadataExt as _, OpenOptionsExt as _, PermissionsExt as _}; use std::{ fs::{self, File, OpenOptions}, io::{Read as _, Write as _}, @@ -13,7 +13,7 @@ use std::{ }; const MAX_GENERATIONS: usize = 64; -const MAX_BYTES: u64 = 4096; +const MAX_BYTES: u64 = 16_384; const CODE: &str = "gateway.admin.credential-journal-unavailable"; /// The private host's exact credential-generation cleanup notes. @@ -22,12 +22,39 @@ pub struct CredentialJournal { directory: PathBuf, } +/// Exact-generation obligation state; no state here authorizes publication. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Deserialize, Serialize)] +#[serde(rename_all = "kebab-case")] +pub enum CredentialCleanupPhase { + /// A completed custody mutation may have left this generation present. + Retained, + /// Custody creation is in progress or its completion is unconfirmed. + /// Collection cannot forget this obligation merely because revoke is absent. + MutationPending, + /// Exact deletion may have been entered; repeating it is idempotent. + DeletionPending, + /// A deletion reported failure; its actual external effect remains uncertain. + DeletionIncomplete, + /// Exact deletion acknowledged; only durable note removal remains. + DeletionConfirmed, +} + +/// One bounded exact-generation cleanup obligation. +#[derive(Clone, Debug, Eq, PartialEq, Deserialize, Serialize)] +#[serde(deny_unknown_fields)] +pub struct CredentialCleanupNote { + /// Exact immutable custody generation. + pub generation: NonZeroU64, + /// Durable cleanup/mutation completion knowledge, never entry authority. + pub phase: CredentialCleanupPhase, +} + #[derive(Deserialize, Serialize)] #[serde(deny_unknown_fields)] -struct Notes { +struct JournalContents { schema: String, connection_id: String, - generations: Vec, + notes: Vec, } impl CredentialJournal { @@ -51,11 +78,14 @@ impl CredentialJournal { /// Missing, malformed, oversized or full journals stop the mutation. pub fn register(&self, id: &ConnectionId, generation: NonZeroU64) -> Result<(), &'static str> { self.change(id, false, |notes| { - if !notes.generations.contains(&generation) { - notes.generations.push(generation); - notes.generations.sort_unstable(); + if !notes.notes.iter().any(|note| note.generation == generation) { + notes.notes.push(CredentialCleanupNote { + generation, + phase: CredentialCleanupPhase::Retained, + }); + notes.notes.sort_unstable_by_key(|note| note.generation); } - if notes.generations.len() > MAX_GENERATIONS { + if notes.notes.len() > MAX_GENERATIONS { return Err(CODE); } Ok(()) @@ -69,6 +99,7 @@ impl CredentialJournal { /// Missing or damaged state is refused, not treated as an empty journal. pub fn generations(&self, id: &ConnectionId) -> Result, &'static str> { self.change(id, false, |_| Ok(())) + .map(|notes| notes.into_iter().map(|note| note.generation).collect()) } /// Removes a note only after exact deletion succeeded. @@ -77,7 +108,137 @@ impl CredentialJournal { /// An unavailable journal retains the cleanup obligation. pub fn forget(&self, id: &ConnectionId, generation: NonZeroU64) -> Result<(), &'static str> { self.change(id, false, |notes| { - notes.generations.retain(|known| *known != generation); + if notes.notes.iter().any(|note| { + note.generation == generation + && note.phase != CredentialCleanupPhase::DeletionConfirmed + }) { + return Err(CODE); + } + notes.notes.retain(|known| known.generation != generation); + Ok(()) + }) + .map(|_| ()) + } + + /// Reads phase-bearing obligations without treating an unreadable set as empty. + /// + /// # Errors + /// Refuses missing, malformed or mismatched journals. + pub fn notes(&self, id: &ConnectionId) -> Result, &'static str> { + self.change(id, false, |_| Ok(())) + } + + /// Claims one generation before custody creation. Competing/uncertain + /// creation is not overwritten and cannot race confirmed cleanup. + /// + /// # Errors + /// Refuses a missing note or a generation already pending mutation/deletion. + pub fn begin_mutation( + &self, + id: &ConnectionId, + generation: NonZeroU64, + ) -> Result<(), &'static str> { + self.phase( + id, + generation, + &[CredentialCleanupPhase::Retained], + CredentialCleanupPhase::MutationPending, + ) + } + + /// Records acknowledged completion of this owner's custody creation. + /// + /// # Errors + /// Refuses an unmatched generation or an unavailable journal. + pub fn confirm_mutation( + &self, + id: &ConnectionId, + generation: NonZeroU64, + ) -> Result<(), &'static str> { + self.phase( + id, + generation, + &[CredentialCleanupPhase::MutationPending], + CredentialCleanupPhase::Retained, + ) + } + + /// Claims exact deletion only after the caller checked native generation + /// and elapsed retirement delay. Pending creation is never collectible. + /// + /// # Errors + /// Refuses unconfirmed custody creation or unavailable state. + pub fn begin_deletion( + &self, + id: &ConnectionId, + generation: NonZeroU64, + ) -> Result<(), &'static str> { + self.phase( + id, + generation, + &[ + CredentialCleanupPhase::Retained, + CredentialCleanupPhase::DeletionPending, + CredentialCleanupPhase::DeletionIncomplete, + ], + CredentialCleanupPhase::DeletionPending, + ) + } + + /// Retains a failed/ambiguous exact deletion for an explicit later attempt. + /// + /// # Errors + /// Refuses invalid phase or unavailable durable state. + pub fn fail_deletion( + &self, + id: &ConnectionId, + generation: NonZeroU64, + ) -> Result<(), &'static str> { + self.phase( + id, + generation, + &[CredentialCleanupPhase::DeletionPending], + CredentialCleanupPhase::DeletionIncomplete, + ) + } + + /// Persists exact deletion acknowledgement before removal of the obligation. + /// + /// # Errors + /// Refuses invalid phase or unavailable durable state. + pub fn confirm_deletion( + &self, + id: &ConnectionId, + generation: NonZeroU64, + ) -> Result<(), &'static str> { + self.phase( + id, + generation, + &[ + CredentialCleanupPhase::DeletionPending, + CredentialCleanupPhase::DeletionConfirmed, + ], + CredentialCleanupPhase::DeletionConfirmed, + ) + } + + fn phase( + &self, + id: &ConnectionId, + generation: NonZeroU64, + allowed: &[CredentialCleanupPhase], + next: CredentialCleanupPhase, + ) -> Result<(), &'static str> { + self.change(id, false, |notes| { + let note = notes + .notes + .iter_mut() + .find(|note| note.generation == generation) + .ok_or(CODE)?; + if !allowed.contains(¬e.phase) { + return Err("gateway.admin.credential-operation-unconfirmed"); + } + note.phase = next; Ok(()) }) .map(|_| ()) @@ -88,8 +249,8 @@ impl CredentialJournal { &self, id: &ConnectionId, initialize: bool, - update: impl FnOnce(&mut Notes) -> Result<(), &'static str>, - ) -> Result, &'static str> { + update: impl FnOnce(&mut JournalContents) -> Result<(), &'static str>, + ) -> Result, &'static str> { let flags = i32::from_ne_bytes(rustix::fs::OFlags::NOFOLLOW.bits().to_ne_bytes()); let lock = OpenOptions::new() .read(true) @@ -100,12 +261,22 @@ impl CredentialJournal { .custom_flags(flags) .open(self.directory.join("credential-journal.lock")) .map_err(|_| CODE)?; + let lock_metadata = lock.metadata().map_err(|_| CODE)?; + if !lock_metadata.is_file() + || lock_metadata.permissions().mode() & 0o077 != 0 + || lock_metadata.uid() != rustix::process::geteuid().as_raw() + || lock_metadata.nlink() != 1 + { + return Err(CODE); + } rustix::fs::flock(&lock, rustix::fs::FlockOperation::LockExclusive).map_err(|_| CODE)?; let path = self.directory.join("credential-journal.json"); let mut notes = match fs::symlink_metadata(&path) { Ok(metadata) => { if !metadata.is_file() || metadata.permissions().mode() & 0o077 != 0 + || metadata.uid() != rustix::process::geteuid().as_raw() + || metadata.nlink() != 1 || metadata.len() > MAX_BYTES { return Err(CODE); @@ -122,22 +293,28 @@ impl CredentialJournal { if bytes.len() as u64 > MAX_BYTES { return Err(CODE); } - serde_json::from_slice::(&bytes).map_err(|_| CODE)? + serde_json::from_slice::(&bytes).map_err(|_| CODE)? + } + Err(error) if initialize && error.kind() == std::io::ErrorKind::NotFound => { + JournalContents { + schema: "auths.gateway-credential-journal/2".to_owned(), + connection_id: id.as_str().to_owned(), + notes: Vec::new(), + } } - Err(error) if initialize && error.kind() == std::io::ErrorKind::NotFound => Notes { - schema: "auths.gateway-credential-journal/1".to_owned(), - connection_id: id.as_str().to_owned(), - generations: Vec::new(), - }, Err(_) => return Err(CODE), }; - if notes.schema != "auths.gateway-credential-journal/1" + if notes.schema != "auths.gateway-credential-journal/2" || notes.connection_id != id.as_str() - || notes.generations.len() > MAX_GENERATIONS - || !notes.generations.windows(2).all(|pair| pair[0] < pair[1]) + || notes.notes.len() > MAX_GENERATIONS + || !notes + .notes + .windows(2) + .all(|pair| pair[0].generation < pair[1].generation) { return Err(CODE); } + crate::admin_fault::boundary("credential-journal.before-update"); update(&mut notes)?; let bytes = serde_json::to_vec(¬es).map_err(|_| CODE)?; let mut pending = tempfile::NamedTempFile::new_in(&self.directory).map_err(|_| CODE)?; @@ -149,11 +326,14 @@ impl CredentialJournal { .write_all(&bytes) .and_then(|()| pending.as_file().sync_all()) .map_err(|_| CODE)?; + crate::admin_fault::boundary("credential-journal.after-file-sync"); pending.persist(path).map_err(|_| CODE)?; + crate::admin_fault::boundary("credential-journal.after-replacement"); File::open(&self.directory) .and_then(|dir| dir.sync_all()) .map_err(|_| CODE)?; - Ok(notes.generations) + crate::admin_fault::boundary("credential-journal.after-parent-sync"); + Ok(notes.notes) } #[cfg(not(unix))] @@ -161,8 +341,8 @@ impl CredentialJournal { &self, _id: &ConnectionId, _initialize: bool, - _update: impl FnOnce(&mut Notes) -> Result<(), &'static str>, - ) -> Result, &'static str> { + _update: impl FnOnce(&mut JournalContents) -> Result<(), &'static str>, + ) -> Result, &'static str> { Err(CODE) } } @@ -190,6 +370,12 @@ mod tests { assert_eq!(reopened.generations(&id).expect("notes").len(), 64); let foreign = ConnectionId::parse("conn_AAAAAAAAAAAAAAAAAAAAAQ").expect("foreign id"); assert_eq!(reopened.generations(&foreign), Err(CODE)); + reopened + .begin_deletion(&id, NonZeroU64::MIN) + .expect("claim exact deletion"); + reopened + .confirm_deletion(&id, NonZeroU64::MIN) + .expect("acknowledged exact deletion"); reopened .forget(&id, NonZeroU64::MIN) .expect("deleted generation"); @@ -197,4 +383,111 @@ mod tests { fs::write(directory.path().join("credential-journal.json"), b"corrupt").expect("corrupt"); assert_eq!(reopened.generations(&id), Err(CODE)); } + + #[test] + fn unconfirmed_creation_survives_restart_and_cannot_be_forgotten_or_deleted() { + let directory = tempfile::tempdir().expect("private root"); + fs::set_permissions(directory.path(), fs::Permissions::from_mode(0o700)) + .expect("private mode"); + let id = ConnectionId::parse("conn_AAAAAAAAAAAAAAAAAAAAAA").expect("id"); + let journal = CredentialJournal::new(directory.path().to_path_buf()); + journal.initialize(&id).expect("initialize"); + journal.register(&id, NonZeroU64::MIN).expect("write ahead"); + journal + .begin_mutation(&id, NonZeroU64::MIN) + .expect("claim mutation"); + let reopened = CredentialJournal::new(directory.path().to_path_buf()); + assert_eq!( + reopened.notes(&id).expect("notes")[0].phase, + CredentialCleanupPhase::MutationPending + ); + assert!(reopened.begin_deletion(&id, NonZeroU64::MIN).is_err()); + assert!(reopened.forget(&id, NonZeroU64::MIN).is_err()); + assert!(reopened.begin_mutation(&id, NonZeroU64::MIN).is_err()); + reopened + .register(&id, NonZeroU64::MIN) + .expect("register cannot revive"); + assert_eq!( + reopened.notes(&id).expect("retained pending")[0].phase, + CredentialCleanupPhase::MutationPending + ); + // Only the operation owner can acknowledge its completed I/O. Merely + // observing current absence is deliberately not a completion API. + journal + .confirm_mutation(&id, NonZeroU64::MIN) + .expect("owner settled"); + reopened + .begin_deletion(&id, NonZeroU64::MIN) + .expect("safe claim"); + reopened + .fail_deletion(&id, NonZeroU64::MIN) + .expect("uncertain delete"); + assert_eq!( + reopened.notes(&id).expect("uncertain note")[0].phase, + CredentialCleanupPhase::DeletionIncomplete + ); + reopened + .begin_deletion(&id, NonZeroU64::MIN) + .expect("explicit idempotent retry"); + reopened + .confirm_deletion(&id, NonZeroU64::MIN) + .expect("exact delete ack"); + let reopened = CredentialJournal::new(directory.path().to_path_buf()); + assert_eq!( + reopened.notes(&id).expect("confirmed after restart")[0].phase, + CredentialCleanupPhase::DeletionConfirmed + ); + reopened + .forget(&id, NonZeroU64::MIN) + .expect("durable removal"); + assert!(reopened.notes(&id).expect("confirmed empty").is_empty()); + } + + #[test] + fn competing_custody_creation_and_cleanup_cannot_both_claim_one_generation() { + use std::sync::{Arc, Barrier}; + for _ in 0..16 { + let directory = tempfile::tempdir().expect("private root"); + fs::set_permissions(directory.path(), fs::Permissions::from_mode(0o700)) + .expect("private mode"); + let id = ConnectionId::parse("conn_AAAAAAAAAAAAAAAAAAAAAA").expect("id"); + let journal = CredentialJournal::new(directory.path().to_path_buf()); + journal.initialize(&id).expect("initialize"); + journal.register(&id, NonZeroU64::MIN).expect("note"); + let barrier = Arc::new(Barrier::new(3)); + let mut workers = Vec::new(); + for mutate in [true, false] { + let journal = journal.clone(); + let id = id.clone(); + let barrier = Arc::clone(&barrier); + workers.push(std::thread::spawn(move || { + barrier.wait(); + if mutate { + journal.begin_mutation(&id, NonZeroU64::MIN) + } else { + journal.begin_deletion(&id, NonZeroU64::MIN) + } + })); + } + barrier.wait(); + let outcomes: Vec<_> = workers + .into_iter() + .map(|worker| worker.join().expect("worker")) + .collect(); + assert_eq!(outcomes.iter().filter(|outcome| outcome.is_ok()).count(), 1); + } + } + + #[test] + fn obsolete_optional_generation_notes_are_not_a_compatibility_reader() { + let directory = tempfile::tempdir().expect("private root"); + fs::set_permissions(directory.path(), fs::Permissions::from_mode(0o700)) + .expect("private mode"); + let id = ConnectionId::parse("conn_AAAAAAAAAAAAAAAAAAAAAA").expect("id"); + fs::write(directory.path().join("credential-journal.json"), + br#"{"schema":"auths.gateway-credential-journal/1","connection_id":"conn_AAAAAAAAAAAAAAAAAAAAAA","generations":[1]}"#).expect("obsolete input"); + let journal = CredentialJournal::new(directory.path().to_path_buf()); + assert_eq!(journal.notes(&id), Err(CODE)); + assert_eq!(journal.initialize(&id), Err(CODE)); + } } diff --git a/product/runtime/auths-gateway/src/effect_candidate_staging_tests.rs b/product/runtime/auths-gateway/src/effect_candidate_staging_tests.rs index 890d02587..04cf134b4 100644 --- a/product/runtime/auths-gateway/src/effect_candidate_staging_tests.rs +++ b/product/runtime/auths-gateway/src/effect_candidate_staging_tests.rs @@ -130,6 +130,7 @@ async fn installation_histories( recipe, &shared, &*credentials, + &crate::CredentialJournal::new(root.clone()), |_| panic!("unapproved draft must not run"), draft.connection_id(), SecretBytes::new( diff --git a/product/runtime/auths-gateway/src/effect_candidate_tests.rs b/product/runtime/auths-gateway/src/effect_candidate_tests.rs index c733205de..11a4130f4 100644 --- a/product/runtime/auths-gateway/src/effect_candidate_tests.rs +++ b/product/runtime/auths-gateway/src/effect_candidate_tests.rs @@ -887,6 +887,21 @@ async fn candidate_journal( let before_publish = store .load(crate::GatewayRecordKind::Connection, &connection_key) .expect("before"); + let inspection = reopened + .inspect_candidate(Arc::clone(approved), validation(), publish_time) + .await; + if case == "publish-success" { + assert_eq!( + inspection.expect("read-only readiness"), + crate::CandidateRecoveryState::ReadyForPublication + ); + assert_eq!( + store + .load(crate::GatewayRecordKind::Connection, &connection_key) + .expect("inspection did not publish"), + before_publish + ); + } let result = reopened .publish_candidate(Arc::clone(approved), validation(), publish_time) .await; @@ -902,6 +917,13 @@ async fn candidate_journal( .expect("after"), Some(bytes.clone()) ); + assert_eq!( + reopened + .inspect_candidate(Arc::clone(approved), validation(), publish_time) + .await + .expect("published inspection"), + crate::CandidateRecoveryState::Published + ); // Losing the caller's acknowledgement cannot cause provider I/O, // reallocation or evidence renewal on the next explicit action. assert_eq!( diff --git a/product/runtime/auths-gateway/src/engine.rs b/product/runtime/auths-gateway/src/engine.rs index d6e86bafc..2a2e17432 100644 --- a/product/runtime/auths-gateway/src/engine.rs +++ b/product/runtime/auths-gateway/src/engine.rs @@ -503,6 +503,109 @@ pub struct GatewayAdminOutcome { pub in_flight: u64, } +/// Bounded exact-generation collection outcome. Publication is independent of +/// cleanup; an incomplete result retains every unconfirmed journal obligation. +#[derive(Clone, Debug, Eq, PartialEq, Serialize)] +#[serde(tag = "state", rename_all = "kebab-case")] +pub enum CredentialCollection { + /// Every currently eligible note was confirmed removed; active/future + /// generations may remain retained without being eligible for deletion. + Complete { deleted: usize, retained: usize }, + /// The bounded batch completed but further eligible notes remain. + Pending { + deleted: usize, + remaining: usize, + retained: usize, + }, + /// At least one exact deletion/note update failed. None means the final + /// journal read was unavailable, never an empty obligation set. + Incomplete { + deleted: usize, + remaining: Option, + code: &'static str, + }, +} + +impl CredentialCollection { + /// Exact deletions whose journal note removals were also acknowledged. + #[must_use] + pub const fn deleted(&self) -> usize { + match *self { + Self::Complete { deleted, .. } + | Self::Pending { deleted, .. } + | Self::Incomplete { deleted, .. } => deleted, + } + } + /// A settled incomplete operation remains a non-success command result. + #[must_use] + pub const fn failure_code(&self) -> Option<&'static str> { + match *self { + Self::Incomplete { code, .. } => Some(code), + _ => None, + } + } +} + +/// Host-scoped cleanup projection from the existing durable credential journal. +#[derive(Clone, Debug, Eq, PartialEq, Serialize)] +#[serde(tag = "state", rename_all = "kebab-case")] +pub enum CredentialRecovery { + NonePending { + retained: usize, + }, + AwaitingDelay { + notes: Vec, + }, + CreationUnconfirmed { + notes: Vec, + }, + DeletionPending { + notes: Vec, + }, + DeletionIncomplete { + notes: Vec, + }, + DeletionConfirmed { + notes: Vec, + }, + Unavailable, +} + +/// Native publication facts, independent of custody availability or cleanup. +#[derive(Clone, Debug, Eq, PartialEq, Serialize)] +#[serde(tag = "state", rename_all = "kebab-case")] +pub enum AdministrativeRecovery { + Unpublished { + cleanup: CredentialRecovery, + }, + Published { + generation: u64, + credential_generation: u64, + connection_state: String, + cleanup: CredentialRecovery, + }, +} + +impl AdministrativeRecovery { + /// Incomplete/unavailable cleanup stays separate from native publication. + #[must_use] + pub const fn cleanup_failure_code(&self) -> Option<&'static str> { + let cleanup = match self { + Self::Unpublished { cleanup } | Self::Published { cleanup, .. } => cleanup, + }; + match cleanup { + CredentialRecovery::Unavailable => Some("gateway.admin.credential-journal-unavailable"), + CredentialRecovery::CreationUnconfirmed { .. } => { + Some("gateway.admin.credential-operation-unconfirmed") + } + CredentialRecovery::DeletionIncomplete { .. } => { + Some("gateway.admin.credential-deletion-incomplete") + } + _ => None, + } + } +} + /// Secret-free connection state for the operator's `status` command. #[derive(Clone, Debug, Eq, PartialEq, Deserialize, Serialize)] #[serde(deny_unknown_fields)] @@ -558,11 +661,18 @@ pub struct GatewayEngine { /// record commits its successor. retirement_delay: Duration, /// Superseded generations this process still has to retire. - retirements: std::sync::Mutex>, + retirements: std::sync::Mutex, #[cfg(feature = "loopback-provider")] loopback_port: Option, } +enum RetirementSchedule { + Active(Vec), + // Explicit collection recovers from the durable exact-generation journal. + // Saturation cannot erase a delay and enable an unsafe broad retirement. + Unavailable { _retained: Vec }, +} + /// One superseded credential generation and when it may be revoked. struct Retirement { due: Instant, @@ -703,7 +813,7 @@ impl GatewayEngine { last_sweep: AtomicU64::new(0), drain_limit: DRAIN_LIMIT, retirement_delay: crate::CredentialRetirementDelay::FIXED.as_duration(), - retirements: std::sync::Mutex::new(Vec::new()), + retirements: std::sync::Mutex::new(RetirementSchedule::Active(Vec::new())), #[cfg(feature = "loopback-provider")] loopback_port: None, }) @@ -868,6 +978,18 @@ impl GatewayEngine { self.shared_configuration()?.publish(gate) } + /// Checks a reverified local publication against the existing native + /// qualification/configuration fence, without publishing or granting entry. + /// + /// # Errors + /// Returns the existing configuration refusal on unavailable or stale state. + pub fn check_qualification_publication( + &self, + gate: &crate::QualificationGate, + ) -> Result<(), &'static str> { + self.shared_configuration()?.check(gate) + } + async fn check_effect_configuration(&self) -> Result<(), &'static str> { let configuration = self.shared_configuration()?; let gate = Arc::clone(&self.qualification); @@ -917,6 +1039,51 @@ impl GatewayEngine { Ok(()) } + async fn begin_credential_mutation( + &self, + record: &ConnectionRecord, + generation: std::num::NonZeroU64, + ) -> Result<(), &'static str> { + self.note_credential(record, generation).await?; + if let Some(journal) = self.credential_journal.clone() { + let id = record.connection_id().clone(); + tokio::task::spawn_blocking(move || journal.begin_mutation(&id, generation)) + .await + .map_err(|_| "gateway.admin.credential-journal-unavailable")??; + } + Ok(()) + } + + async fn confirm_credential_mutation( + &self, + record: &ConnectionRecord, + generation: std::num::NonZeroU64, + ) -> Result<(), &'static str> { + if let Some(journal) = self.credential_journal.clone() { + let id = record.connection_id().clone(); + tokio::task::spawn_blocking(move || journal.confirm_mutation(&id, generation)) + .await + .map_err(|_| "gateway.admin.credential-journal-unavailable")??; + } + Ok(()) + } + + async fn settle_credential_mutation( + &self, + record: &ConnectionRecord, + generation: std::num::NonZeroU64, + outcome: &Result, + ) -> Result<(), &'static str> { + if outcome.is_ok() + || outcome + .as_ref() + .is_err_and(|error| error.certifies_no_mutation()) + { + self.confirm_credential_mutation(record, generation).await?; + } + Ok(()) + } + /// Collects at most sixteen exact generations from durable notes. It /// waits the fixed retirement delay after observing the shared record, /// requires it unchanged, and never deletes its active credential or a @@ -929,7 +1096,7 @@ impl GatewayEngine { /// # Errors /// A damaged journal, changed connection or failed deletion refuses and /// retains the obligation for a later operator run. - pub async fn collect_credentials(&self) -> Result { + pub async fn collect_credentials(&self) -> Result { let journal = self .credential_journal .clone() @@ -946,28 +1113,112 @@ impl GatewayEngine { if !latest.unchanged(¤t) { return Err("gateway.admin.generation-conflict"); } + let eligible = |generation: std::num::NonZeroU64| { + generation <= record.generation() + && (record.state() == ConnectionState::Revoked + || generation != record.credential_generation()) + }; let mut deleted = 0; + let mut failure = None; for generation in generations .into_iter() - .filter(|generation| { - *generation <= record.generation() - && (record.state() == ConnectionState::Revoked - || *generation != record.credential_generation()) - }) + .filter(|generation| eligible(*generation)) .take(16) { - self.credentials + match self + .collect_credential_generation(&journal, &record, generation) + .await + { + Ok(true) => deleted += 1, + Ok(false) => {} // Another collector already removed the note. + Err(code) => { + failure.get_or_insert(code); + } + } + } + let reading = journal.clone(); + let id = record.connection_id().clone(); + let notes = match tokio::task::spawn_blocking(move || reading.generations(&id)).await { + Ok(Ok(notes)) => notes, + _ => { + return Ok(CredentialCollection::Incomplete { + deleted, + remaining: None, + code: "gateway.admin.credential-journal-unavailable", + }); + } + }; + let remaining = notes + .iter() + .filter(|generation| eligible(**generation)) + .count(); + if let Some(code) = failure { + return Ok(CredentialCollection::Incomplete { + deleted, + remaining: Some(remaining), + code, + }); + } + let retained = notes.len() - remaining; + Ok(if remaining == 0 { + CredentialCollection::Complete { deleted, retained } + } else { + CredentialCollection::Pending { + deleted, + remaining, + retained, + } + }) + } + + async fn collect_credential_generation( + &self, + journal: &crate::CredentialJournal, + record: &ConnectionRecord, + generation: std::num::NonZeroU64, + ) -> Result { + let reading = journal.clone(); + let id = record.connection_id().clone(); + let notes = tokio::task::spawn_blocking(move || reading.notes(&id)) + .await + .map_err(|_| "gateway.admin.credential-journal-unavailable")??; + let Some(note) = notes.into_iter().find(|note| note.generation == generation) else { + return Ok(false); + }; + if note.phase == crate::CredentialCleanupPhase::MutationPending { + return Err("gateway.admin.credential-operation-unconfirmed"); + } + if note.phase != crate::CredentialCleanupPhase::DeletionConfirmed { + let updating = journal.clone(); + let id = record.connection_id().clone(); + tokio::task::spawn_blocking(move || updating.begin_deletion(&id, generation)) + .await + .map_err(|_| "gateway.admin.credential-journal-unavailable")??; + if self + .credentials .revoke(record.connection_id(), generation) .await - .map_err(|_| "gateway.admin.credential-deletion-incomplete")?; + .is_err() + { + let updating = journal.clone(); + let id = record.connection_id().clone(); + let _ = + tokio::task::spawn_blocking(move || updating.fail_deletion(&id, generation)) + .await; + return Err("gateway.admin.credential-deletion-incomplete"); + } let updating = journal.clone(); let id = record.connection_id().clone(); - tokio::task::spawn_blocking(move || updating.forget(&id, generation)) + tokio::task::spawn_blocking(move || updating.confirm_deletion(&id, generation)) .await .map_err(|_| "gateway.admin.credential-journal-unavailable")??; - deleted += 1; } - Ok(deleted) + let updating = journal.clone(); + let id = record.connection_id().clone(); + tokio::task::spawn_blocking(move || updating.forget(&id, generation)) + .await + .map_err(|_| "gateway.admin.credential-journal-unavailable")??; + Ok(true) } async fn load_for_collection(&self) -> Result { @@ -1156,17 +1407,9 @@ impl GatewayEngine { return self.accept_rotation(record, secret).await; } let commitment = self.store_successor(record, secret).await?; - let committed = self.commit_successor(¤t, commitment).await; - if committed.is_err() - && let Some(next) = - auths_connections::kernel::next_generation(record.generation().get()) - .and_then(std::num::NonZeroU64::new) - { - // A one-step rotation has no later commit, so its unpublished - // successor is discarded now rather than by the next prepare. - let _ = self.credentials.revoke(record.connection_id(), next).await; - } - committed + // A failed acknowledgement may follow a committed rotation. Retain + // exact custody and notes; never compensate by deleting that generation. + self.commit_successor(¤t, commitment).await } /// Offline operator rotation cannot bypass any recipe-declared read. @@ -1192,13 +1435,14 @@ impl GatewayEngine { let next = auths_connections::kernel::next_generation(record.generation().get()) .and_then(std::num::NonZeroU64::new) .ok_or("gateway.admin.generation-exhausted")?; - self.note_credential(record, next).await?; - // Nothing can name a generation the record has not reached, so a - // successor left by an earlier failed rotation is discarded, not reused. - let _ = self.credentials.revoke(record.connection_id(), next).await; - self.credentials + self.begin_credential_mutation(record, next).await?; + let outcome = self + .credentials .replace(record.connection_id(), record.generation(), next, secret) - .await + .await; + self.settle_credential_mutation(record, next, &outcome) + .await?; + outcome .map(|commitment| *commitment.as_bytes()) .map_err(|_| "gateway.admin.credential-unavailable") } @@ -1218,10 +1462,9 @@ impl GatewayEngine { Ok(self.drained("gateway.admin.rotated").await) } Err(code) => { - // The record still names its previous secret. An unpublished - // successor cannot be leased: it is newer than the credential - // generation, so no record selects it, and the next prepare - // discards it. + // A failed acknowledgement is not proof of non-publication. + // Retain the exact successor and note; reload/reconcile native + // authority before deciding cleanup or a different candidate. Err(code) } } @@ -1293,11 +1536,15 @@ impl GatewayEngine { record: &ConnectionRecord, secret: SecretBytes, ) -> Result { - match self + self.begin_credential_mutation(record, record.credential_generation()) + .await?; + let outcome = self .credentials .confirm(&record.credential_binding(), secret) - .await - { + .await; + self.settle_credential_mutation(record, record.credential_generation(), &outcome) + .await?; + match outcome { Ok(()) => {} Err(auths_connections::CredentialStoreError::Substitution) => { return Err("gateway.admin.generation-conflict"); @@ -1360,7 +1607,23 @@ impl GatewayEngine { successor: &ConnectionRecord, superseded: Option, ) { - if let Ok(mut retirements) = self.retirements.lock() { + if let Ok(mut scheduling) = self.retirements.lock() { + let RetirementSchedule::Active(retirements) = &mut *scheduling else { + return; + }; + let binding = successor.credential_binding(); + if retirements.iter().any(|retirement| { + retirement.successor == binding && retirement.superseded == superseded + }) { + return; + } + if retirements.len() >= 64 { + let retained = std::mem::take(retirements); + *scheduling = RetirementSchedule::Unavailable { + _retained: retained, + }; + return; + } retirements.push(Retirement { due: Instant::now() + self.retirement_delay, successor: successor.credential_binding(), @@ -1377,7 +1640,10 @@ impl GatewayEngine { /// rotation, disable, or revoke. async fn collect_retired(&self, current: &ConnectionRecord, now: Instant) { let (due, pending) = match self.retirements.lock() { - Ok(mut retirements) => { + Ok(mut scheduling) => { + let RetirementSchedule::Active(retirements) = &mut *scheduling else { + return; + }; let (due, kept): (Vec<_>, Vec<_>) = retirements .drain(..) .partition(|retirement| retirement.due <= now); @@ -1387,19 +1653,42 @@ impl GatewayEngine { } Err(_) => return, }; + let mut incomplete = Vec::new(); for retirement in due { - if let Some(generation) = retirement.superseded { - let _ = self + let exact = match retirement.superseded { + Some(generation) => { + self.credentials + .revoke(retirement.successor.connection_id(), generation) + .await + } + None => Ok(()), + }; + if exact.is_err() + || self .credentials - .revoke(retirement.successor.connection_id(), generation) - .await; + .retire_superseded(&retirement.successor) + .await + .is_err() + { + incomplete.push(retirement); + } + } + let failed = !incomplete.is_empty(); + if let Ok(mut scheduling) = self.retirements.lock() + && let RetirementSchedule::Active(retirements) = &mut *scheduling + { + retirements.extend(incomplete); + if retirements.len() > 64 { + let retained = std::mem::take(retirements); + *scheduling = RetirementSchedule::Unavailable { + _retained: retained, + }; } - let _ = self - .credentials - .retire_superseded(&retirement.successor) - .await; } - if !pending { + let scheduling_clear = self.retirements.lock().is_ok_and(|scheduling| { + matches!(&*scheduling, RetirementSchedule::Active(retirements) if retirements.is_empty()) + }); + if !pending && !failed && scheduling_clear { let _ = self .credentials .retire_superseded(¤t.credential_binding()) @@ -1482,6 +1771,86 @@ impl GatewayEngine { }) } + /// Derives host-scoped recovery facts without custody I/O or publication. + /// A manifest or cleanup note never substitutes for the native connection. + /// + /// # Errors + /// Refuses unavailable/corrupt native authority. Missing cleanup is reported + /// as unavailable, never an empty obligation set or service readiness. + pub async fn administrative_recovery( + &self, + draft: Option<&ConnectionRecord>, + ) -> Result { + use crate::CredentialCleanupPhase as P; + let loaded = self + .connection + .load_for_credential_collection() + .await + .map_err(|_| "gateway.admin.connection-unavailable")?; + let record = loaded + .as_ref() + .map_or(draft, |loaded| Some(loaded.record())); + let cleanup = match (record, self.credential_journal.clone()) { + (Some(record), Some(journal)) => { + let id = record.connection_id().clone(); + match tokio::task::spawn_blocking(move || journal.notes(&id)).await { + Ok(Ok(notes)) => { + let eligible = |note: &&crate::CredentialCleanupNote| { + loaded.is_some() + && note.generation <= record.generation() + && (record.state() == ConnectionState::Revoked + || note.generation != record.credential_generation()) + }; + let unresolved: Vec<_> = notes.iter().filter(eligible).cloned().collect(); + if notes.iter().any(|note| note.phase == P::MutationPending) { + CredentialRecovery::CreationUnconfirmed { notes } + } else if unresolved + .iter() + .any(|note| note.phase == P::DeletionIncomplete) + { + CredentialRecovery::DeletionIncomplete { notes } + } else if unresolved + .iter() + .any(|note| note.phase == P::DeletionPending) + { + CredentialRecovery::DeletionPending { notes } + } else if unresolved + .iter() + .any(|note| note.phase == P::DeletionConfirmed) + { + CredentialRecovery::DeletionConfirmed { notes } + } else if unresolved.is_empty() { + CredentialRecovery::NonePending { + retained: notes.len(), + } + } else { + CredentialRecovery::AwaitingDelay { notes } + } + } + _ => CredentialRecovery::Unavailable, + } + } + _ => CredentialRecovery::Unavailable, + }; + Ok(match loaded { + None => AdministrativeRecovery::Unpublished { cleanup }, + Some(loaded) => { + let record = loaded.record(); + AdministrativeRecovery::Published { + generation: record.generation().get(), + credential_generation: record.credential_generation().get(), + connection_state: match record.state() { + ConnectionState::Active => "active", + ConnectionState::Disabled => "disabled", + ConnectionState::Revoked => "revoked", + } + .to_owned(), + cleanup, + } + } + }) + } + /// Performs the runtime part of production readiness without leasing a /// credential or contacting a provider. The caller must separately check /// process isolation, deployment clock and observer policy. This checks @@ -3505,6 +3874,7 @@ pub(crate) mod tests { struct CountedCredentials { store: Arc, leases: Arc, + lose_custody_ack: Arc, } #[async_trait::async_trait] @@ -3538,9 +3908,15 @@ pub(crate) mod tests { auths_connections::CredentialReferenceCommitment, auths_connections::CredentialStoreError, > { - self.store + let outcome = self + .store .replace(connection_id, old_generation, new_generation, secret) - .await + .await; + if outcome.is_ok() && self.lose_custody_ack.swap(false, Ordering::SeqCst) { + Err(auths_connections::CredentialStoreError::Unavailable) + } else { + outcome + } } async fn revoke( &self, @@ -3584,6 +3960,7 @@ pub(crate) mod tests { credentials_directory: std::path::PathBuf, pub(crate) engine: GatewayEngine, pub(crate) leases: Arc, + lose_custody_ack: Arc, /// The same store the engine holds, for assertions on what it /// stores. store: Arc, @@ -3637,9 +4014,11 @@ pub(crate) mod tests { .expect("credential store"), ); let leases = Arc::new(AtomicU64::new(0)); + let lose_custody_ack = Arc::new(std::sync::atomic::AtomicBool::new(false)); let credentials: Arc = Arc::new(CountedCredentials { store: Arc::clone(&store), leases: Arc::clone(&leases), + lose_custody_ack: Arc::clone(&lose_custody_ack), }); let root = crate::harness::Signer::new(0x11); let observer = crate::harness::Signer::new(0x33); @@ -3678,6 +4057,7 @@ pub(crate) mod tests { credentials_directory, engine, leases, + lose_custody_ack, store, } } @@ -3699,6 +4079,13 @@ pub(crate) mod tests { &recipe, &first.engine.connection, &*first.engine.credentials, + &crate::CredentialJournal::new( + first + .credentials_directory + .parent() + .expect("root") + .to_path_buf(), + ), |reference| { ConnectionRecord::new( provider(), @@ -3982,7 +4369,8 @@ pub(crate) mod tests { host.engine .collect_credentials() .await - .expect("collect abandoned"), + .expect("collect abandoned") + .deleted(), 1 ); assert_eq!(host.stored(&installation.connection_id), [1]); @@ -4003,7 +4391,8 @@ pub(crate) mod tests { host.engine .collect_credentials() .await - .expect("keep future"), + .expect("keep future") + .deleted(), 0 ); assert_eq!(host.stored(&installation.connection_id), [3, 4]); @@ -4027,6 +4416,162 @@ pub(crate) mod tests { ); } + async fn administrative_recovery_contract(backend: crate::store_testkit::Backend) { + let mut installation = installation_on(backend, 8).await; + let id = installation.connection_id.clone(); + let host = &mut installation.first; + let journal = crate::CredentialJournal::new( + host.credentials_directory + .parent() + .expect("private root") + .to_path_buf(), + ); + journal.initialize(&id).expect("journal"); + journal + .register(&id, std::num::NonZeroU64::MIN) + .expect("initial note"); + host.engine.credential_journal = Some(journal.clone()); + let commitment = host + .engine + .prepare_rotation(candidate("synthetic-recovery-successor")) + .await + .expect("stage"); + host.engine + .commit_rotation(commitment) + .await + .expect("publish"); + let before_leases = host.leases.load(Ordering::SeqCst); + // A stale custody writer can outlive native publication. Its exact + // pending note must survive absence/deletion observations and restart. + journal + .begin_mutation(&id, std::num::NonZeroU64::MIN) + .expect("pending old writer"); + let facts = host + .engine + .administrative_recovery(None) + .await + .expect("native facts"); + assert!(matches!( + facts, + AdministrativeRecovery::Published { + cleanup: CredentialRecovery::CreationUnconfirmed { .. }, + .. + } + )); + let incomplete = host + .engine + .collect_credentials() + .await + .expect("bounded incomplete report"); + assert_eq!( + incomplete.failure_code(), + Some("gateway.admin.credential-operation-unconfirmed") + ); + assert_eq!(incomplete.deleted(), 0); + let reopened = crate::CredentialJournal::new( + host.credentials_directory + .parent() + .expect("private root") + .to_path_buf(), + ); + assert_eq!( + reopened.notes(&id).expect("retained after restart")[0].phase, + crate::CredentialCleanupPhase::MutationPending + ); + journal + .confirm_mutation(&id, std::num::NonZeroU64::MIN) + .expect("late owned completion"); + let (first, second) = tokio::join!( + host.engine.collect_credentials(), + host.engine.collect_credentials() + ); + let first = first.expect("first collector"); + let second = second.expect("second collector"); + assert!(first.deleted() + second.deleted() >= 1); + assert!( + reopened + .notes(&id) + .expect("remaining active note") + .iter() + .all(|note| note.generation.get() == 2) + ); + let repeated = host + .engine + .collect_credentials() + .await + .expect("repeated exact collection"); + assert_eq!(repeated.deleted(), 0); + assert!(repeated.failure_code().is_none()); + assert_eq!( + host.leases.load(Ordering::SeqCst), + before_leases, + "administrative recovery never leases a credential" + ); + assert_eq!(host.stored(&id), [2]); + lost_custody_ack_is_retained(host, &id, &reopened).await; + } + + async fn lost_custody_ack_is_retained( + host: &mut Host, + id: &auths_connections::ConnectionId, + journal: &crate::CredentialJournal, + ) { + host.lose_custody_ack.store(true, Ordering::SeqCst); + assert_eq!( + host.engine + .prepare_rotation(candidate("synthetic-lost-custody-ack")) + .await, + Err("gateway.admin.credential-unavailable") + ); + assert_eq!( + host.stored(id), + [2, 3], + "the mutation completed before its reply was lost" + ); + host.engine + .disable_connection() + .await + .expect("advance past abandoned generation"); + let incomplete = host + .engine + .collect_credentials() + .await + .expect("report unconfirmed creation"); + assert_eq!( + incomplete.failure_code(), + Some("gateway.admin.credential-operation-unconfirmed") + ); + assert_eq!( + host.stored(id), + [2, 3], + "absence/revoke cannot establish that a late creation stopped" + ); + assert_eq!( + journal + .notes(id) + .expect("retained unconfirmed write") + .last() + .expect("future note") + .phase, + crate::CredentialCleanupPhase::MutationPending + ); + } + + #[tokio::test] + async fn file_administrative_recovery_retains_uncertainty_and_orders_collectors() { + administrative_recovery_contract(crate::store_testkit::Backend::File).await; + } + + #[tokio::test] + #[ignore = "needs the TLS PostgreSQL fixture"] + async fn postgres_administrative_recovery_retains_uncertainty_and_orders_collectors() { + assert!( + crate::store_testkit::postgres_configured(), + "TLS PostgreSQL fixture required" + ); + administrative_recovery_contract(crate::store_testkit::Backend::Postgres).await; + } + #[tokio::test] async fn interrupted_install_cleanup_requires_revocation_and_never_repairs_the_floor() { let mut installation = installation(8).await; @@ -4066,7 +4611,13 @@ pub(crate) mod tests { .stop(true, wall_clock_seconds().expect("clock")) .await .expect("explicit store-only revoke"); - assert_eq!(host.engine.collect_credentials().await, Ok(1)); + assert_eq!( + host.engine + .collect_credentials() + .await + .map(|outcome| outcome.deleted()), + Ok(1) + ); assert!(host.stored(&installation.connection_id).is_empty()); assert_eq!( std::fs::read(&path).expect("retained floor").as_slice(), @@ -4224,7 +4775,8 @@ pub(crate) mod tests { host.engine .collect_credentials() .await - .expect("collect abandoned"), + .expect("collect abandoned") + .deleted(), 1 ); // The emergency flow collects the abandoned successor before @@ -4298,7 +4850,7 @@ pub(crate) mod tests { } #[tokio::test] - async fn a_rotation_failing_after_its_credential_write_is_discarded() { + async fn a_rotation_publication_failure_retains_exact_custody_until_explicit_recovery() { let installation = installation(8).await; let host = &installation.first; // A read-only shared store makes the record write fail after the @@ -4313,8 +4865,8 @@ pub(crate) mod tests { assert_eq!(refused, Err("gateway.admin.transition-unavailable")); assert_eq!( host.stored(&installation.connection_id), - [1], - "the unpublished successor is gone" + [1, 2], + "a failed acknowledgement must not delete possibly published custody" ); assert_eq!(host.record().await.generation().get(), 1); assert_eq!(host.entry_refusal().await, None); @@ -4655,6 +5207,13 @@ pub(crate) mod tests { &recipe, &second.engine.connection, &*second.engine.credentials, + &crate::CredentialJournal::new( + second + .credentials_directory + .parent() + .expect("root") + .to_path_buf(), + ), |reference| { ConnectionRecord::new( provider(), diff --git a/product/runtime/auths-gateway/src/entry_tests.rs b/product/runtime/auths-gateway/src/entry_tests.rs index a303fa970..ad84a0d62 100644 --- a/product/runtime/auths-gateway/src/entry_tests.rs +++ b/product/runtime/auths-gateway/src/entry_tests.rs @@ -404,7 +404,7 @@ async fn native_entry_fixture_is_current() { let approved = approved(); let claim = reserved(store.attempts(), &approved).await; assert_eq!( - claim.attempt.record.state.stage, + claim.attempt.record.state.stage(), GatewayAttemptStage::Reserved ); assert!(claim.attempt.record.entry.is_none()); @@ -419,7 +419,7 @@ async fn native_entry_fixture_is_current() { .await .expect("grant"); assert_eq!( - granted.attempt.record.state.stage, + granted.attempt.record.state.stage(), GatewayAttemptStage::EntryGranted ); assert_eq!( @@ -460,8 +460,9 @@ async fn native_entry_fixture_is_current() { assert_eq!(read.stage(), GatewayAttemptStage::Unknown); let mut next = granted.attempt.record.clone(); next.revision += 1; - next.state.stage = GatewayAttemptStage::NotEntered; - next.state.refusal = Some("test.no-send".to_owned()); + next.state.phase = MutationPhase::NotEntered { + refusal: "test.no-send".to_owned(), + }; assert!(!valid_transition(&granted.attempt.record, &next).expect("transition")); // Canonical native records also seed the shipping decoder/transition fuzzer. // The nonce is private replay evidence, independent of signed effect bytes; @@ -470,20 +471,25 @@ async fn native_entry_fixture_is_current() { entry.nonce = "00112233445566778899aabbccddeeff".to_owned(); let mut reserved = entry.clone(); reserved.revision = 1; - reserved.state.stage = GatewayAttemptStage::Reserved; + reserved.state.phase = MutationPhase::Reserved; reserved.entry = None; let mut refused = reserved.clone(); refused.revision = 2; - refused.state.stage = GatewayAttemptStage::NotEntered; - refused.state.refusal = Some("test.before-grant".to_owned()); + refused.state.phase = MutationPhase::NotEntered { + refusal: "test.before-grant".to_owned(), + }; let mut unknown = entry.clone(); unknown.revision = entry.revision + 1; - unknown.state.stage = GatewayAttemptStage::Unknown; + unknown.state.phase = MutationPhase::Unknown; let mut response = entry.clone(); response.revision = entry.revision + 1; - response.state.stage = GatewayAttemptStage::ResponseRecorded; - response.state.response_status = Some(200); - response.state.response_digest = Some(hex::encode([9; 32])); + response.state.phase = MutationPhase::ResponseRecorded { + response: MutationResponse { + status: 200, + digest: hex::encode([9; 32]), + locator: None, + }, + }; let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("fuzz/corpus/target_gateway_attempt"); let write_seed = |name: &str, bytes: &[u8]| { diff --git a/product/runtime/auths-gateway/src/lib.rs b/product/runtime/auths-gateway/src/lib.rs index 063cd2e35..4e5b60282 100644 --- a/product/runtime/auths-gateway/src/lib.rs +++ b/product/runtime/auths-gateway/src/lib.rs @@ -7,8 +7,13 @@ #![forbid(unsafe_code)] pub mod admin; +mod admin_fault; #[cfg(unix)] pub mod app; +/// Test-build-only process interruption point. Never present in shipping builds. +#[cfg(feature = "testkit-harness")] +pub use admin_fault::boundary as administrative_test_boundary; + mod audit; mod binding; mod bounds; @@ -101,16 +106,17 @@ pub use connection::{ LoadedConnection, SharedConnection, SharedConnectionError, authorizes_entry, connection_key, install_connection, join_connection, }; -pub use credential_journal::CredentialJournal; +pub use credential_journal::{CredentialCleanupNote, CredentialCleanupPhase, CredentialJournal}; pub use echo_verify::{ ECHO_VERIFICATION_NOTE, ECHO_VERIFICATION_SCHEMA, EchoResult, EchoVerification, EchoVerifyError, MAX_ECHO_POINTER_BYTES, MAX_ECHO_RECORD_BYTES, canonical_action_commitment, echo_verify, echo_verify_bundle, }; pub use engine::{ - GatewayAdminOutcome, GatewayAdminStatus, GatewayEngine, GatewayEngineConfigurationError, - GatewayEvidenceSummary, GatewayObserveRequest, GatewayObserveResult, GatewayPrivateAudit, - GatewaySubmitResult, PUBLIC_EVIDENCE_SCHEMA, SLOT_SWEEP_INTERVAL_SECONDS, SLOT_SWEEP_LIMIT, + AdministrativeRecovery, CredentialCollection, CredentialRecovery, GatewayAdminOutcome, + GatewayAdminStatus, GatewayEngine, GatewayEngineConfigurationError, GatewayEvidenceSummary, + GatewayObserveRequest, GatewayObserveResult, GatewayPrivateAudit, GatewaySubmitResult, + PUBLIC_EVIDENCE_SCHEMA, SLOT_SWEEP_INTERVAL_SECONDS, SLOT_SWEEP_LIMIT, gateway_verifier_configuration, }; pub use generation_floor::GenerationFloor; @@ -152,16 +158,17 @@ pub use separation::{ }; pub use store::{ AcquisitionClaim, AcquisitionSnapshot, AcquisitionStage, CandidatePublication, - ClaimedGatewayAttempt, ContentHistory, ContentProjectionStatus, DisclosureSnapshot, - DisclosureStage, FileGatewayAttemptStore, GatewayAttemptError, GatewayAttemptKey, - GatewayAttemptSnapshot, GatewayAttemptStage, GatewayAttemptStore, GatewayAttempts, - GatewayCounterEntry, GatewayCounterKind, GatewayEvidenceChannel, GatewayFenceDecision, - GatewayInsert, GatewayObservationFact, GatewayOperationStage, GatewayPreEntry, - GatewayProviderEvidence, GatewayRecordEntry, GatewayRecordKind, GatewayRecoveryReport, - GatewayRelativeBasis, ObservableGatewayAttempt, PostgresGatewayAttemptStore, - PrivateDirectoryError, RecoveryBudget, RecoveryDisposition, RecoveryEscalation, - RecoveryNextAction, RecoverySnapshot, RecoverySourceFacts, ReservedAcquisition, - RetainedContent, check_private_directory, check_private_directory_owned_by, pre_entry_digest, + CandidateRecoveryState, ClaimedGatewayAttempt, ContentHistory, ContentProjectionStatus, + DisclosureSnapshot, DisclosureStage, FileGatewayAttemptStore, GatewayAttemptError, + GatewayAttemptKey, GatewayAttemptSnapshot, GatewayAttemptStage, GatewayAttemptStore, + GatewayAttempts, GatewayCounterEntry, GatewayCounterKind, GatewayEvidenceChannel, + GatewayFenceDecision, GatewayInsert, GatewayObservationFact, GatewayOperationStage, + GatewayPreEntry, GatewayProviderEvidence, GatewayRecordEntry, GatewayRecordKind, + GatewayRecoveryReport, GatewayRelativeBasis, ObservableGatewayAttempt, + PostgresGatewayAttemptStore, PrivateDirectoryError, RecoveryBudget, RecoveryDisposition, + RecoveryEscalation, RecoveryNextAction, RecoverySnapshot, RecoverySourceFacts, + ReservedAcquisition, RetainedContent, check_private_directory, + check_private_directory_owned_by, pre_entry_digest, }; pub use support::{ MAX_SUPPORT_ATTEMPTS, SUPPORT_BUNDLE_SCHEMA, SupportConnection, SupportConnectionState, diff --git a/product/runtime/auths-gateway/src/qualification.rs b/product/runtime/auths-gateway/src/qualification.rs index 62bace678..a6ef1f890 100644 --- a/product/runtime/auths-gateway/src/qualification.rs +++ b/product/runtime/auths-gateway/src/qualification.rs @@ -508,6 +508,24 @@ impl QualificationGate { true } + /// Merges independently retained monotonic verifier memory before reloading + /// local inputs. This cannot clear revocation or lower an accepted floor. + pub fn remember_retained(&self, retained: &VerifierState) { + let mut state = self.state.lock().unwrap_or_else(PoisonError::into_inner); + state.accepted_revocation_sequence = state + .accepted_revocation_sequence + .max(retained.accepted_revocation_sequence); + state.accepted_index_issued_at = state + .accepted_index_issued_at + .max(retained.accepted_index_issued_at); + state + .revoked_signers + .extend(retained.revoked_signers.iter().cloned()); + state + .revoked_qualifications + .extend(retained.revoked_qualifications.iter().cloned()); + } + /// Drops the held result, so nothing qualifies until inputs load again. /// The operator plane calls this when the host's inputs cannot be read. pub fn unload(&self) { diff --git a/product/runtime/auths-gateway/src/semantic_closure.rs b/product/runtime/auths-gateway/src/semantic_closure.rs index 8ecb35304..289054c37 100644 --- a/product/runtime/auths-gateway/src/semantic_closure.rs +++ b/product/runtime/auths-gateway/src/semantic_closure.rs @@ -10,7 +10,7 @@ /// SHA-256 of the schema, a NUL byte, and `semantic-closure.json`. /// Regenerate through `semantic_closure_is_current` with `AUTHS_UPDATE_FIXTURES=1`. pub const GATEWAY_SEMANTIC_CLOSURE_SHA256: &str = - "d21c66afa697e177587908d7a9fc2c908bc9639e6c93a491c77f3cc016c58e1f"; + "15cc3fac2125004eb4d134f2692028f6b2f9e93dd01e6a965b454db906d3a6ee"; #[cfg(test)] mod tests { diff --git a/product/runtime/auths-gateway/src/store.rs b/product/runtime/auths-gateway/src/store.rs index 6d4763f15..1894f190d 100644 --- a/product/runtime/auths-gateway/src/store.rs +++ b/product/runtime/auths-gateway/src/store.rs @@ -846,9 +846,9 @@ mod disclosure; mod engagement; pub use acquisition::{ AcquisitionClaim, AcquisitionSnapshot, AcquisitionStage, CandidatePublication, - ContentProjectionStatus, GatewayRecoveryReport, RecoveryBudget, RecoveryDisposition, - RecoveryEscalation, RecoveryNextAction, RecoverySnapshot, RecoverySourceFacts, - ReservedAcquisition, RetainedContent, + CandidateRecoveryState, ContentProjectionStatus, GatewayRecoveryReport, RecoveryBudget, + RecoveryDisposition, RecoveryEscalation, RecoveryNextAction, RecoverySnapshot, + RecoverySourceFacts, ReservedAcquisition, RetainedContent, }; pub(crate) use acquisition::{AcquisitionEntryPermit, AcquisitionRequest, PrerequisiteResponse}; #[cfg(unix)] @@ -887,9 +887,135 @@ impl JournalProtocol for MutationState { } } +/// Mutation ownership is closed. The wire projection below is not a lifecycle +/// owner: decoding constructs one of these payload-bearing phases or fails. +#[derive(Clone)] +struct MutationState { + counters: Vec, + phase: MutationPhase, + observation_plan: Option, + pre_entry: Option, +} + +#[derive(Clone)] +struct MutationResponse { + status: u16, + digest: String, + locator: Option>, +} + +#[derive(Clone, Copy)] +enum MutationReading { + Match, + Mismatch, + EchoMismatch, +} + +#[derive(Clone)] +enum MutationPhase { + Reserved, + EntryGranted, + NotEntered { + refusal: String, + }, + Unknown, + ResponseRecorded { + response: MutationResponse, + }, + Observed { + response: MutationResponse, + reading: MutationReading, + recovery: Option, + }, + ObservedByProvider { + response: Option, + evidence: EvidenceWire, + recovery: Option, + created_resource: Option, + }, +} + +impl MutationState { + const fn stage(&self) -> GatewayAttemptStage { + match self.phase { + MutationPhase::Reserved => GatewayAttemptStage::Reserved, + MutationPhase::EntryGranted => GatewayAttemptStage::EntryGranted, + MutationPhase::NotEntered { .. } => GatewayAttemptStage::NotEntered, + MutationPhase::Unknown => GatewayAttemptStage::Unknown, + MutationPhase::ResponseRecorded { .. } => GatewayAttemptStage::ResponseRecorded, + MutationPhase::Observed { .. } => GatewayAttemptStage::Observed, + MutationPhase::ObservedByProvider { .. } => GatewayAttemptStage::ObservedByProvider, + } + } + fn response(&self) -> Option<&MutationResponse> { + match &self.phase { + MutationPhase::ResponseRecorded { response } + | MutationPhase::Observed { response, .. } => Some(response), + MutationPhase::ObservedByProvider { response, .. } => response.as_ref(), + _ => None, + } + } + fn refusal(&self) -> Option<&String> { + match &self.phase { + MutationPhase::NotEntered { refusal } => Some(refusal), + _ => None, + } + } + fn response_status(&self) -> Option { + self.response().map(|response| response.status) + } + fn response_digest(&self) -> Option<&str> { + self.response().map(|response| response.digest.as_str()) + } + fn response_locator(&self) -> Option<&BTreeMap> { + self.response() + .and_then(|response| response.locator.as_ref()) + } + const fn observation_match(&self) -> Option { + match self.phase { + MutationPhase::Observed { + reading: MutationReading::Match, + .. + } => Some(true), + MutationPhase::Observed { .. } => Some(false), + _ => None, + } + } + const fn observation_fact(&self) -> Option { + match self.phase { + MutationPhase::Observed { + reading: MutationReading::EchoMismatch, + .. + } => Some(GatewayObservationFact::EchoMismatch), + _ => None, + } + } + fn provider_evidence(&self) -> Option<&EvidenceWire> { + match &self.phase { + MutationPhase::ObservedByProvider { evidence, .. } => Some(evidence), + _ => None, + } + } + fn recovery_evidence(&self) -> Option<&acquisition::RecoveryEvidenceLink> { + match &self.phase { + MutationPhase::Observed { recovery, .. } + | MutationPhase::ObservedByProvider { recovery, .. } => recovery.as_ref(), + _ => None, + } + } + fn created_resource(&self) -> Option<&String> { + match &self.phase { + MutationPhase::ObservedByProvider { + created_resource, .. + } => created_resource.as_ref(), + _ => None, + } + } +} + #[derive(Clone, Deserialize, Serialize)] #[serde(deny_unknown_fields)] -struct MutationState { +struct MutationWire { #[serde(default, skip_serializing_if = "Vec::is_empty")] counters: Vec, stage: GatewayAttemptStage, @@ -917,6 +1043,139 @@ struct MutationState { created_resource: Option, } +impl Serialize for MutationState { + fn serialize(&self, serializer: S) -> Result { + // Preserve the current single canonical wire contract; DTO optionals + // describe untrusted field presence, never shipping transition ownership. + MutationWire { + counters: self.counters.clone(), + stage: self.stage(), + refusal: self.refusal().cloned(), + response_status: self.response_status(), + response_digest: self.response_digest().map(str::to_owned), + response_locator: self.response_locator().cloned(), + observation_plan: self.observation_plan.clone(), + observation_match: self.observation_match(), + observation_fact: self.observation_fact(), + provider_evidence: self.provider_evidence().cloned(), + pre_entry: self.pre_entry.clone(), + recovery_evidence: self.recovery_evidence().cloned(), + created_resource: self.created_resource().cloned(), + } + .serialize(serializer) + } +} + +impl<'de> Deserialize<'de> for MutationState { + fn deserialize>(deserializer: D) -> Result { + let wire = MutationWire::deserialize(deserializer)?; + Self::from_wire(wire).map_err(serde::de::Error::custom) + } +} + +impl MutationState { + fn from_wire(wire: MutationWire) -> Result { + let MutationWire { + counters, + stage, + refusal, + response_status, + response_digest, + response_locator, + observation_plan, + observation_match, + observation_fact, + provider_evidence, + pre_entry, + recovery_evidence, + created_resource, + } = wire; + let response = match (response_status, response_digest) { + (Some(status), Some(digest)) => Some(MutationResponse { + status, + digest, + locator: response_locator, + }), + (None, None) if response_locator.is_none() => None, + _ => return Err("invalid mutation response payload"), + }; + let reading = match (observation_match, observation_fact) { + (None, None) => None, + (Some(true), None) => Some(MutationReading::Match), + (Some(false), None) => Some(MutationReading::Mismatch), + (Some(false), Some(GatewayObservationFact::EchoMismatch)) => { + Some(MutationReading::EchoMismatch) + } + _ => return Err("invalid mutation observation payload"), + }; + let phase = match ( + stage, + refusal, + response, + reading, + provider_evidence, + recovery_evidence, + created_resource, + ) { + (GatewayAttemptStage::Reserved, None, None, None, None, None, None) => { + MutationPhase::Reserved + } + (GatewayAttemptStage::EntryGranted, None, None, None, None, None, None) => { + MutationPhase::EntryGranted + } + (GatewayAttemptStage::Unknown, None, None, None, None, None, None) => { + MutationPhase::Unknown + } + (GatewayAttemptStage::NotEntered, Some(refusal), None, None, None, None, None) => { + MutationPhase::NotEntered { refusal } + } + ( + GatewayAttemptStage::ResponseRecorded, + None, + Some(response), + None, + None, + None, + None, + ) => MutationPhase::ResponseRecorded { response }, + ( + GatewayAttemptStage::Observed, + None, + Some(response), + Some(reading), + None, + recovery, + None, + ) => MutationPhase::Observed { + response, + reading, + recovery, + }, + ( + GatewayAttemptStage::ObservedByProvider, + None, + response, + None, + Some(evidence), + recovery, + created_resource, + ) => MutationPhase::ObservedByProvider { + response, + evidence, + recovery, + created_resource, + }, + _ => return Err("payload does not belong to mutation phase"), + }; + Ok(Self { + counters, + phase, + observation_plan, + pre_entry, + }) + } +} + /// Emits canonical-but-inconsistent bytes for the native corruption test. No /// shipping caller may replace a selected identity independently of evidence. #[cfg(test)] @@ -925,7 +1184,13 @@ pub(crate) fn fixture_created_resource_substitution( handle: &str, ) -> Result, GatewayAttemptError> { let mut record: Record = decode(bytes)?; - record.state.created_resource = Some(handle.into()); + let MutationPhase::ObservedByProvider { + created_resource, .. + } = &mut record.state.phase + else { + return Err(GatewayAttemptError::InvalidTransition); + }; + *created_resource = Some(handle.into()); canonical(&record) } @@ -1007,7 +1272,7 @@ impl Record { } fn recovery_target(&self) -> Result { - let stage_resolvable = match self.state.stage { + let stage_resolvable = match self.state.stage() { GatewayAttemptStage::EntryGranted | GatewayAttemptStage::Unknown | GatewayAttemptStage::ResponseRecorded => true, @@ -1063,14 +1328,17 @@ impl Record { /// The projection the translated transition rule inspects. fn view(&self) -> Result { - let reading = match (self.state.observation_match, self.state.observation_fact) { + let reading = match ( + self.state.observation_match(), + self.state.observation_fact(), + ) { (None, None) => Reading::None, (Some(true), None) => Reading::Match, (Some(false), None) => Reading::Mismatch, (Some(false), Some(GatewayObservationFact::EchoMismatch)) => Reading::EchoMismatch, (Some(true) | None, Some(_)) => return Err(GatewayAttemptError::Corrupt), }; - let response = match (self.state.response_status, &self.state.response_digest) { + let response = match (self.state.response_status(), &self.state.response_digest()) { (None, None) => Vec::new(), (Some(status), Some(digest)) => canonical(&(status, digest))?, _ => return Err(GatewayAttemptError::Corrupt), @@ -1099,8 +1367,8 @@ impl Record { engagement_allocations: &self.engagement_allocations, observation_plan: self.state.observation_plan.as_ref(), })?, - stage: self.state.stage.kernel(), - refusal: self.state.refusal.is_some(), + stage: self.state.stage().kernel(), + refusal: self.state.refusal().is_some(), pre_entry: self .state .pre_entry @@ -1112,13 +1380,12 @@ impl Record { acknowledgement: Vec::new(), locator: self .state - .response_locator - .as_ref() + .response_locator() .map(canonical) .transpose()? .unwrap_or_default(), reading, - evidence: self.state.provider_evidence.is_some(), + evidence: self.state.provider_evidence().is_some(), observation: self.state.observation_plan.is_some(), link: self.link(), }) @@ -1130,7 +1397,7 @@ impl Record { self.state .observation_plan .as_ref()? - .request(self.state.response_locator.as_ref()) + .request(self.state.response_locator()) } fn validate_reservations( @@ -1152,7 +1419,7 @@ impl Record { } fn locator_valid(&self) -> bool { - match (&self.state.response_locator, &self.state.observation_plan) { + match (self.state.response_locator(), &self.state.observation_plan) { (None, _) => true, (Some(_), None) => false, (Some(locator), Some(plan)) => { @@ -1172,17 +1439,17 @@ impl Record { .observation_plan .as_ref() .is_some_and(|plan| plan.created_resource.is_some()); - match &self.state.created_resource { - None => !declared || self.state.stage != GatewayAttemptStage::ObservedByProvider, + match self.state.created_resource() { + None => !declared || self.state.stage() != GatewayAttemptStage::ObservedByProvider, Some(handle) => { if !declared || !crate::resource_identity::valid_handle(handle) - || self.state.stage != GatewayAttemptStage::ObservedByProvider - || self.state.recovery_evidence.is_none() + || self.state.stage() != GatewayAttemptStage::ObservedByProvider + || self.state.recovery_evidence().is_none() { return false; } - let Some(evidence) = &self.state.provider_evidence else { + let Some(evidence) = self.state.provider_evidence() else { return false; }; if evidence.evidence_b64.len() > (MAX_EVIDENCE_BYTES / 3 + 1) * 4 { @@ -1212,7 +1479,7 @@ impl Record { .nonce .bytes() .all(|byte| byte.is_ascii_digit() || (b'a'..=b'f').contains(&byte)) - || !self.state.refusal.as_deref().is_none_or(valid_code) + || !self.state.refusal().is_none_or(|code| valid_code(code)) || !self .state .observation_plan @@ -1230,23 +1497,18 @@ impl Record { .map_err(|_| GatewayAttemptError::Corrupt)?; let action_commitment = digest_bytes(&self.action_commitment)?; let recipe_digest = digest_bytes(&self.recipe_digest)?; - let response_digest = self - .state - .response_digest - .as_deref() - .map(digest_bytes) - .transpose()?; + let response_digest = self.state.response_digest().map(digest_bytes).transpose()?; if self .state - .response_status + .response_status() .is_some_and(|status| !(100..=599).contains(&status)) { return Err(GatewayAttemptError::Corrupt); } - if let Some(link) = &self.state.recovery_evidence { + if let Some(link) = self.state.recovery_evidence() { link.validate(self)?; } - let provider_evidence = match &self.state.provider_evidence { + let provider_evidence = match self.state.provider_evidence() { Some(wire) => { let locator = self .observation_request() @@ -1276,25 +1538,25 @@ impl Record { action_commitment, recipe_digest, evaluated_at: self.evaluated_at, - stage: if recovered && self.state.stage == GatewayAttemptStage::EntryGranted { + stage: if recovered && self.state.stage() == GatewayAttemptStage::EntryGranted { GatewayAttemptStage::Unknown } else { - self.state.stage + self.state.stage() }, - refusal: self.state.refusal.clone(), + refusal: self.state.refusal().cloned(), counters: self.counters()?, - response_status: self.state.response_status, + response_status: self.state.response_status(), response_digest, - response_locator: self.state.response_locator.clone(), - observation_match: self.state.observation_match, - observation_fact: self.state.observation_fact, + response_locator: self.state.response_locator().cloned(), + observation_match: self.state.observation_match(), + observation_fact: self.state.observation_fact(), provider_evidence, public_evidence_commitment, public_effect_reference: self.public_commitment(b"action", &action_commitment)?, public_recipe_reference: self.public_commitment(b"recipe", &recipe_digest)?, public_record_commitment: self.record_commitment()?, pre_entry, - recovery_evidence: self.state.recovery_evidence.clone(), + recovery_evidence: self.state.recovery_evidence().cloned(), }) } } @@ -2577,17 +2839,8 @@ fn claim_record( evaluated_at, MutationState { counters: Vec::new(), - stage: GatewayAttemptStage::Reserved, - refusal: None, - response_status: None, - response_digest: None, - response_locator: None, + phase: MutationPhase::Reserved, observation_plan: request.observation_template().cloned(), - observation_match: None, - observation_fact: None, - provider_evidence: None, - recovery_evidence: None, - created_resource: None, pre_entry: None, }, ); @@ -2831,7 +3084,7 @@ impl GatewayAttempts { .ok_or(GatewayAttemptError::Unavailable)?; record.snapshot(true)?; if record.recipe_digest != hex::encode(recipe_digest) - || !transition::requires_entry(record.state.stage.kernel()) + || !transition::requires_entry(record.state.stage().kernel()) { return Err(GatewayAttemptError::BindingConflict); } @@ -2887,7 +3140,7 @@ impl GatewayAttempts { { return Err(GatewayAttemptError::Corrupt); } - if record.state.created_resource.is_some() { + if record.state.created_resource().is_some() { let store = Arc::clone(&self.store); let policy = self.policy.clone(); let source = record.clone(); @@ -3031,7 +3284,7 @@ impl ClaimedGatewayAttempt { .as_deref() .ok_or(GatewayAttemptError::Corrupt)?, )?; - if current.state.stage != GatewayAttemptStage::Reserved + if current.state.stage() != GatewayAttemptStage::Reserved || current.binding_canonical.as_bytes() != approved .effect() @@ -3078,7 +3331,7 @@ impl ClaimedGatewayAttempt { pre_entry.clone(), &snapshots[1..], )?; - next.state.stage = GatewayAttemptStage::EntryGranted; + next.state.phase = MutationPhase::EntryGranted; if !valid_transition(¤t, &next)? { return Err(GatewayAttemptError::InvalidTransition); } @@ -3113,7 +3366,7 @@ impl ClaimedGatewayAttempt { self, pre_entry: &GatewayPreEntry, ) -> Result { - if self.attempt.record.state.stage != GatewayAttemptStage::Reserved { + if self.attempt.record.state.stage() != GatewayAttemptStage::Reserved { return Err(GatewayAttemptError::InvalidTransition); } let fresh = PreEntryWire::encode(pre_entry)?; @@ -3138,8 +3391,9 @@ impl ClaimedGatewayAttempt { pre_entry: Option<&GatewayPreEntry>, ) -> Result { let mut next = self.attempt.record.clone(); - next.state.stage = GatewayAttemptStage::NotEntered; - next.state.refusal = Some(refusal.to_owned()); + next.state.phase = MutationPhase::NotEntered { + refusal: refusal.to_owned(), + }; if let Some(pre_entry) = pre_entry && next.state.pre_entry.is_none() { @@ -3154,7 +3408,7 @@ impl ClaimedGatewayAttempt { /// Persistence failure does not permit a retry. pub async fn record_unknown(self) -> Result { let mut next = self.attempt.record.clone(); - next.state.stage = GatewayAttemptStage::Unknown; + next.state.phase = MutationPhase::Unknown; self.attempt.advance(next).await?.record.snapshot(false) } @@ -3173,10 +3427,13 @@ impl ClaimedGatewayAttempt { return Err(GatewayAttemptError::InvalidTransition); } let mut next = self.attempt.record.clone(); - next.state.stage = GatewayAttemptStage::ResponseRecorded; - next.state.response_status = Some(status); - next.state.response_digest = Some(hex::encode(digest)); - next.state.response_locator = locator; + next.state.phase = MutationPhase::ResponseRecorded { + response: MutationResponse { + status, + digest: hex::encode(digest), + locator, + }, + }; Ok(ObservableGatewayAttempt { attempt: self.attempt.advance(next).await?, }) @@ -3256,8 +3513,19 @@ impl ObservableGatewayAttempt { matched: bool, ) -> Result { let mut next = self.attempt.record.clone(); - next.state.stage = GatewayAttemptStage::Observed; - next.state.observation_match = Some(matched); + next.state.phase = MutationPhase::Observed { + response: next + .state + .response() + .cloned() + .ok_or(GatewayAttemptError::InvalidTransition)?, + reading: if matched { + MutationReading::Match + } else { + MutationReading::Mismatch + }, + recovery: None, + }; self.attempt.advance(next).await?.record.snapshot(false) } @@ -3271,9 +3539,15 @@ impl ObservableGatewayAttempt { self, ) -> Result { let mut next = self.attempt.record.clone(); - next.state.stage = GatewayAttemptStage::Observed; - next.state.observation_match = Some(false); - next.state.observation_fact = Some(GatewayObservationFact::EchoMismatch); + next.state.phase = MutationPhase::Observed { + response: next + .state + .response() + .cloned() + .ok_or(GatewayAttemptError::InvalidTransition)?, + reading: MutationReading::EchoMismatch, + recovery: None, + }; self.attempt.advance(next).await?.record.snapshot(false) } @@ -3305,15 +3579,19 @@ impl ObservableGatewayAttempt { return Err(GatewayAttemptError::InvalidTransition); } let mut next = record.clone(); - next.state.provider_evidence = Some(EvidenceWire { - channel: GatewayEvidenceChannel::ReadBack, - locator: locator.url().to_owned(), - echo: record.echo_token()?, - evidence_digest: hex::encode(Sha256::digest(evidence)), - evidence_b64: Base64::encode_string(evidence), - observed_at, - }); - next.state.stage = GatewayAttemptStage::ObservedByProvider; + next.state.phase = MutationPhase::ObservedByProvider { + response: next.state.response().cloned(), + evidence: EvidenceWire { + channel: GatewayEvidenceChannel::ReadBack, + locator: locator.url().to_owned(), + echo: record.echo_token()?, + evidence_digest: hex::encode(Sha256::digest(evidence)), + evidence_b64: Base64::encode_string(evidence), + observed_at, + }, + recovery: None, + created_resource: None, + }; self.attempt.advance(next).await?.record.snapshot(false) } } @@ -3674,8 +3952,9 @@ fn store_exhausted( admission: &Admission, ) -> Result { let mut record = base.clone(); - record.state.stage = GatewayAttemptStage::NotEntered; - record.state.refusal = Some(code.to_owned()); + record.state.phase = MutationPhase::NotEntered { + refusal: code.to_owned(), + }; record.snapshot(false)?; let entries = [GatewayRecordEntry { kind: GatewayRecordKind::Attempt, @@ -3831,7 +4110,7 @@ impl GatewayAttempts { { return Err(GatewayAttemptError::BindingConflict); } - if record.state.stage != GatewayAttemptStage::Reserved { + if record.state.stage() != GatewayAttemptStage::Reserved { return Err(GatewayAttemptError::Replay); } // This handle grants no entry. A fresh fenced CAS still checks @@ -3945,3 +4224,7 @@ mod entry_tests; #[cfg(test)] #[path = "store_retention_tests.rs"] mod retention_tests; + +#[cfg(test)] +#[path = "store/mutation_phase_tests.rs"] +mod mutation_phase_tests; diff --git a/product/runtime/auths-gateway/src/store/acquisition.rs b/product/runtime/auths-gateway/src/store/acquisition.rs index 65c58b4f6..6b2778fe0 100644 --- a/product/runtime/auths-gateway/src/store/acquisition.rs +++ b/product/runtime/auths-gateway/src/store/acquisition.rs @@ -12,7 +12,7 @@ pub(super) use content::retained; pub(super) use content::retained_bytes; pub use content::{ContentProjectionStatus, RetainedContent}; mod candidate; -pub use candidate::CandidatePublication; +pub use candidate::{CandidatePublication, CandidateRecoveryState}; mod recovery; pub(super) use recovery::RecoveryEvidenceLink; #[cfg(test)] @@ -1331,7 +1331,7 @@ fn eligible_source( let source = decode(source_bytes)?; ( source.validate_header()?, - source.state.stage == GatewayAttemptStage::Reserved, + source.state.stage() == GatewayAttemptStage::Reserved, source.entry.is_some(), source.evaluated_at, ) diff --git a/product/runtime/auths-gateway/src/store/acquisition/candidate.rs b/product/runtime/auths-gateway/src/store/acquisition/candidate.rs index 047ead244..0d1ac424b 100644 --- a/product/runtime/auths-gateway/src/store/acquisition/candidate.rs +++ b/product/runtime/auths-gateway/src/store/acquisition/candidate.rs @@ -20,6 +20,18 @@ pub enum CandidatePublication { AlreadyCurrent, } +/// Read-only, advisory candidate state. Only publication's existing native fence +/// can commit a connection; observing Ready never creates an entry capability. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Serialize)] +#[serde(rename_all = "kebab-case")] +pub enum CandidateRecoveryState { + ChecksIncomplete, + ChecksRefused, + ReadyForPublication, + Published, + Superseded, +} + struct PublicationTarget { plan: crate::effect::CandidatePlan, capacity: super::SourceCapacity, @@ -74,7 +86,156 @@ impl PublicationTarget { type PublicationDecision<'a> = dyn FnMut(&[Option>]) -> Result, GatewayAttemptError> + 'a; +struct PublicationValidation<'a> { + approved: &'a ApprovedEffect, + validation: &'a crate::entry::EntryValidation, + plan: &'a crate::effect::CandidatePlan, + root: &'a Record, + root_bytes: &'a [u8], + key: super::GatewayAttemptKey, + kind: super::PrerequisiteKind, + native_indices: &'a [usize], + native_end: usize, + authorization_started_at: u64, +} + +impl PublicationValidation<'_> { + /// The same guards serve advisory inspection and fenced publication. + /// Inspection never weakens or replaces the latter's snapshot boundary. + fn check(&self, snapshots: &[Option>]) -> Result<(), GatewayAttemptError> { + if snapshots.len() < self.native_end || snapshots[1].as_deref() != Some(self.root_bytes) { + return Err(GatewayAttemptError::Conflict); + } + let slot = self + .root + .state + .allocation + .ok_or(GatewayAttemptError::InvalidTransition)?; + if !self + .plan + .source_matches(snapshots[0].as_deref()) + .map_err(|_| GatewayAttemptError::Corrupt)? + .0 + || snapshots[2].as_deref() + != Some(canonical(&allocation(&self.root.state.plan, self.key, slot)?)?.as_slice()) + { + return Err(GatewayAttemptError::BindingConflict); + } + let now = self + .validation + .validate( + self.approved, + &select_snapshots(snapshots, self.native_indices)?, + self.authorization_started_at, + ) + .map_err(|_| GatewayAttemptError::InvalidTransition)?; + let prerequisites = self + .approved + .prerequisite_plans() + .map_err(|_| GatewayAttemptError::Corrupt)?; + let acquired = validate_prerequisites( + self.key, + self.approved.effect().binding(), + &prerequisites, + &snapshots[self.native_end..], + now, + )?; + let primary = self.root.response_evidence(self.kind, now)?; + self.validation + .validate_candidate_evidence(self.approved, &acquired, &primary, now) + .map_err(|_| GatewayAttemptError::InvalidTransition) + } +} + impl GatewayAttempts { + pub(crate) async fn inspect_candidate( + &self, + approved: Arc, + validation: crate::entry::EntryValidation, + authorization_started_at: u64, + ) -> Result { + if !self.policy.contains(approved.effect().binding()) { + return Err(GatewayAttemptError::BindingConflict); + } + let PublicationTarget { + plan, + capacity, + replacement, + kind, + connection_key, + key, + .. + } = PublicationTarget::new(&approved, self)?; + let store = Arc::clone(&self.store); + blocking(move || { + let current = store.load(GatewayRecordKind::Connection, &connection_key)?; + if current.as_deref() == Some(replacement.as_slice()) { + return Ok(CandidateRecoveryState::Published); + } + if !plan + .source_matches(current.as_deref()) + .map_err(|_| GatewayAttemptError::Corrupt)? + .0 + { + return Ok(CandidateRecoveryState::Superseded); + } + let Some(root_bytes) = store.load(GatewayRecordKind::Attempt, &key)? else { + return Ok(CandidateRecoveryState::ChecksIncomplete); + }; + let root: Record = decode_as(&root_bytes)?; + if root.state.plan != AcquisitionPlan::Candidate(plan.clone()) + || root.validate_header()? != *approved.effect().binding() + { + return Err(GatewayAttemptError::BindingConflict); + } + if matches!(root.state.phase, super::AcquisitionPhase::NotEntered { .. }) { + return Ok(CandidateRecoveryState::ChecksRefused); + } + let Some(slot) = root.state.allocation else { + return Ok(CandidateRecoveryState::ChecksIncomplete); + }; + let mut keys = vec![ + (GatewayRecordKind::Connection, connection_key), + (GatewayRecordKind::Attempt, key), + ( + GatewayRecordKind::EffectAllocation, + capacity::allocation_key(&capacity, slot), + ), + ]; + let native_indices = + append_dependencies(&mut keys, &validation.dependencies(&approved)); + let native_end = keys.len(); + let prerequisites = approved + .prerequisite_plans() + .map_err(|_| GatewayAttemptError::Corrupt)?; + keys.extend(prerequisite_dependencies(key, &prerequisites)?); + let snapshots = keys + .iter() + .map(|(kind, key)| store.load(*kind, key)) + .collect::, _>>()?; + let check = PublicationValidation { + approved: &approved, + validation: &validation, + plan: &plan, + root: &root, + root_bytes: &root_bytes, + key, + kind, + native_indices: &native_indices, + native_end, + authorization_started_at, + }; + match check.check(&snapshots) { + Ok(()) => Ok(CandidateRecoveryState::ReadyForPublication), + Err(GatewayAttemptError::InvalidTransition) => { + Ok(CandidateRecoveryState::ChecksIncomplete) + } + Err(error) => Err(error), + } + }) + .await + } + /// No public/application route may call this as a substitute for operator /// publication authority. The native read proof authorizes only its reads. pub(crate) async fn publish_candidate( @@ -146,36 +307,26 @@ impl GatewayAttempts { disposition = CandidatePublication::AlreadyCurrent; return Ok(replacement.clone()); } - if !plan - .source_matches(snapshots[0].as_deref()) - .map_err(|_| GatewayAttemptError::Corrupt)? - .0 - || snapshots[2].as_deref() - != Some(canonical(&allocation(&root.state.plan, key, slot)?)?.as_slice()) - { - return Err(GatewayAttemptError::BindingConflict); - } - let now = validation - .validate( - &approved, - &select_snapshots(snapshots, &native_indices)?, - authorization_started_at, - ) - .map_err(|_| GatewayAttemptError::InvalidTransition)?; - let acquired = validate_prerequisites( + PublicationValidation { + approved: &approved, + validation: &validation, + plan: &plan, + root: &root, + root_bytes: &root_bytes, key, - approved.effect().binding(), - &prerequisites, - &snapshots[native_end..], - now, - )?; - let primary = root.response_evidence(kind, now)?; - validation - .validate_candidate_evidence(&approved, &acquired, &primary, now) - .map_err(|_| GatewayAttemptError::InvalidTransition)?; + kind, + native_indices: &native_indices, + native_end, + authorization_started_at, + } + .check(snapshots)?; Ok(replacement.clone()) }; - if publish_connection(&*store, &keys, &replacement, is_first, &mut decide)? { + crate::admin_fault::boundary("candidate-publication.before-native-commit"); + let already_current = + publish_connection(&*store, &keys, &replacement, is_first, &mut decide)?; + crate::admin_fault::boundary("candidate-publication.after-native-ack"); + if already_current { return Ok(CandidatePublication::AlreadyCurrent); } Ok(disposition) diff --git a/product/runtime/auths-gateway/src/store/acquisition/recovery.rs b/product/runtime/auths-gateway/src/store/acquisition/recovery.rs index d2b250bfd..1340fe25e 100644 --- a/product/runtime/auths-gateway/src/store/acquisition/recovery.rs +++ b/product/runtime/auths-gateway/src/store/acquisition/recovery.rs @@ -222,17 +222,13 @@ impl RecoveryEvidenceLink { || self.recorded_at > MAX_JSON_INTEGER || !fresh(self.received_at, self.recorded_at) || !matches!( - source.state.stage, + source.state.stage(), GatewayAttemptStage::Observed | GatewayAttemptStage::ObservedByProvider ) - || source - .state - .provider_evidence - .as_ref() - .is_some_and(|evidence| { - evidence.observed_at != self.received_at - || evidence.evidence_digest != self.response_digest - }) + || source.state.provider_evidence().is_some_and(|evidence| { + evidence.observed_at != self.received_at + || evidence.evidence_digest != self.response_digest + }) { return Err(GatewayAttemptError::Corrupt); } @@ -279,13 +275,12 @@ pub(in crate::store) fn validate_created_history( source_bytes: &[u8], source: &Record, ) -> Result<(), GatewayAttemptError> { - if source.state.created_resource.is_none() { + if source.state.created_resource().is_none() { return Ok(()); } let link = source .state - .recovery_evidence - .as_ref() + .recovery_evidence() .ok_or(GatewayAttemptError::Corrupt)?; link.validate(source)?; let namespace = @@ -355,8 +350,7 @@ fn check_created_history_relation( read.snapshot()?; let link = source .state - .recovery_evidence - .as_ref() + .recovery_evidence() .ok_or(GatewayAttemptError::Corrupt)?; link.validate(source)?; let AcquisitionPlan::Recovery(plan) = &read.state.plan else { @@ -372,8 +366,8 @@ fn check_created_history_relation( let operation = LogicalOperationId::parse(&read.operation_id).map_err(|_| GatewayAttemptError::Corrupt)?; let slot = read.state.allocation.ok_or(GatewayAttemptError::Corrupt)?; - if source.state.created_resource.is_none() - || source.state.stage != GatewayAttemptStage::ObservedByProvider + if source.state.created_resource().is_none() + || source.state.stage() != GatewayAttemptStage::ObservedByProvider || GatewayAttemptKey::for_context(&namespace, partition, epoch, &operation)? != read_key || read.namespace != source.namespace || read.operation_id != link.acquisition_operation @@ -386,8 +380,7 @@ fn check_created_history_relation( || !response.version_ok || source .state - .provider_evidence - .as_ref() + .provider_evidence() .is_none_or(|evidence| evidence.evidence_b64 != response.body_b64) || row != canonical(&allocation(&read.state.plan, read_key, slot)?)?.as_slice() { @@ -445,8 +438,8 @@ pub(in crate::store) fn created_lineage_from_records( allocation_key: *capacity::allocation_key(&capacity, slot).as_bytes(), resource: source .state - .created_resource - .clone() + .created_resource() + .cloned() .ok_or(GatewayAttemptError::Corrupt)?, }; value.validate().map_err(|_| GatewayAttemptError::Corrupt)?; @@ -530,14 +523,13 @@ impl GatewayAttempts { let Some((_, source)) = attempts.load(&namespace, &operation).await? else { continue; }; - if source.state.created_resource.is_none() { + if source.state.created_resource().is_none() { continue; } let source_key = attempts.key(&namespace, &operation)?; let link = source .state - .recovery_evidence - .as_ref() + .recovery_evidence() .ok_or(GatewayAttemptError::Corrupt)?; let read_operation = LogicalOperationId::parse(&link.acquisition_operation) .map_err(|_| GatewayAttemptError::Corrupt)?; @@ -610,7 +602,7 @@ fn refinement( let Some(link) = read.response_link(now)? else { return Ok(Err(RecoveryDisposition::AcquisitionIncomplete)); }; - if let Some(existing) = &source.state.recovery_evidence { + if let Some(existing) = source.state.recovery_evidence() { let mut expected = link; expected.recorded_at = existing.recorded_at; return Ok(Err(if existing == &expected { @@ -620,7 +612,7 @@ fn refinement( })); } if matches!( - source.state.stage, + source.state.stage(), GatewayAttemptStage::Observed | GatewayAttemptStage::ObservedByProvider | GatewayAttemptStage::NotEntered @@ -653,43 +645,52 @@ fn refinement( ReadBack::CreatedResource(candidate) => Some(candidate.handle().to_owned()), _ => None, }; - match reading { + next.state.phase = match reading { ReadBack::EchoMatched | ReadBack::CreatedResource(_) => { - // A response-derived locator cannot resolve an unknown send. The - // shared reducer checks this link condition again before commit. - if source.state.response_status.is_none() + if source.state.response_status().is_none() && !transition::resolves_unknown(source.link()) { return Ok(Err(RecoveryDisposition::Inconclusive)); } - next.state.stage = GatewayAttemptStage::ObservedByProvider; - next.state.created_resource = created_resource; - next.state.provider_evidence = Some(EvidenceWire { - channel: GatewayEvidenceChannel::ReadBack, - locator: request.url().to_owned(), - echo: token, - evidence_digest: link.response_digest.clone(), - evidence_b64: response.body_b64.clone(), - observed_at: response.received_at, - }); + MutationPhase::ObservedByProvider { + response: source.state.response().cloned(), + created_resource, + evidence: EvidenceWire { + channel: GatewayEvidenceChannel::ReadBack, + locator: request.url().to_owned(), + echo: token, + evidence_digest: link.response_digest.clone(), + evidence_b64: response.body_b64.clone(), + observed_at: response.received_at, + }, + recovery: Some(link), + } } ReadBack::Value { matched } => { - if source.state.response_status.is_none() { + let Some(response) = source.state.response().cloned() else { return Ok(Err(RecoveryDisposition::Inconclusive)); + }; + MutationPhase::Observed { + response, + reading: if matched { + MutationReading::Match + } else { + MutationReading::Mismatch + }, + recovery: Some(link), } - next.state.stage = GatewayAttemptStage::Observed; - next.state.observation_match = Some(matched); } ReadBack::EchoMismatch => { - if source.state.response_status.is_none() { + let Some(response) = source.state.response().cloned() else { return Ok(Err(RecoveryDisposition::Inconclusive)); + }; + MutationPhase::Observed { + response, + reading: MutationReading::EchoMismatch, + recovery: Some(link), } - next.state.stage = GatewayAttemptStage::Observed; - next.state.observation_match = Some(false); - next.state.observation_fact = Some(GatewayObservationFact::EchoMismatch); } - } - next.state.recovery_evidence = Some(link); + }; next.revision = next_operation_revision(next.revision)?; if !valid_transition(source, &next)? { return Err(GatewayAttemptError::InvalidTransition); diff --git a/product/runtime/auths-gateway/src/store/mutation_phase_tests.rs b/product/runtime/auths-gateway/src/store/mutation_phase_tests.rs new file mode 100644 index 000000000..47efa2bea --- /dev/null +++ b/product/runtime/auths-gateway/src/store/mutation_phase_tests.rs @@ -0,0 +1,97 @@ +//! Structural differential evidence: one canonical wire representation, closed +//! shipping phases, and no loss of the old protocol's permitted payloads. +use super::*; +use serde_json::json; + +#[test] +fn mutation_phase_payload_corpus_round_trips_the_existing_canonical_projection() { + let stages = [ + GatewayAttemptStage::Reserved, + GatewayAttemptStage::EntryGranted, + GatewayAttemptStage::NotEntered, + GatewayAttemptStage::Unknown, + GatewayAttemptStage::ResponseRecorded, + GatewayAttemptStage::Observed, + GatewayAttemptStage::ObservedByProvider, + ]; + let mut accepted = 0; + for stage in stages { + for mask in 0_u8..64 { + let refusal = mask & 1 != 0; + let status = mask & 2 != 0; + let digest = mask & 4 != 0; + let reading = mask & 8 != 0; + let fact = mask & 16 != 0; + let evidence = mask & 32 != 0; + let wire = MutationWire { + counters: Vec::new(), + stage, + refusal: refusal.then(|| "gateway.test.refused".to_owned()), + response_status: status.then_some(200), + response_digest: digest.then(|| "ab".repeat(32)), + response_locator: None, + observation_plan: None, + observation_match: reading.then_some(false), + observation_fact: fact.then_some(GatewayObservationFact::EchoMismatch), + provider_evidence: evidence.then(|| EvidenceWire { + channel: GatewayEvidenceChannel::ReadBack, + locator: "https://provider.example/read".to_owned(), + echo: "token".to_owned(), + evidence_digest: "cd".repeat(32), + evidence_b64: Base64::encode_string(b"evidence"), + observed_at: 100, + }), + pre_entry: None, + recovery_evidence: None, + created_resource: None, + }; + let response = status && digest; + let expected = status == digest + && match stage { + GatewayAttemptStage::Reserved + | GatewayAttemptStage::EntryGranted + | GatewayAttemptStage::Unknown => { + !refusal && !response && !reading && !fact && !evidence + } + GatewayAttemptStage::NotEntered => { + refusal && !response && !reading && !fact && !evidence + } + GatewayAttemptStage::ResponseRecorded => { + !refusal && response && !reading && !fact && !evidence + } + GatewayAttemptStage::Observed => !refusal && response && reading && !evidence, + GatewayAttemptStage::ObservedByProvider => { + !refusal && !reading && !fact && evidence + } + }; + let bytes = canonical(&wire).expect("bounded synthetic wire"); + let parsed = serde_json::from_slice::(&bytes); + assert_eq!(parsed.is_ok(), expected, "stage={stage:?}, mask={mask}"); + if let Ok(state) = parsed { + accepted += 1; + assert_eq!(state.stage(), stage); + assert_eq!(canonical(&state).expect("closed state"), bytes); + let round_trip: MutationState = + serde_json::from_slice(&bytes).expect("same canonical wire"); + assert_eq!(round_trip.response_status(), state.response_status()); + assert_eq!(round_trip.observation_fact(), state.observation_fact()); + } + } + } + assert_eq!(accepted, 9); +} + +#[test] +fn mutation_phase_rejects_foreign_fields_and_partial_observation_payloads() { + for wire in [ + json!({"stage":"reserved", "response_locator":{"id":"unbound"}}), + json!({"stage":"response-recorded", "response_status":200}), + json!({"stage":"observed", "response_status":200, "response_digest":"ab".repeat(32)}), + json!({"stage":"observed", "response_status":200, "response_digest":"ab".repeat(32), "observation_match":true, "observation_fact":"echo-mismatch"}), + json!({"stage":"observed-by-provider", "response_status":200, "response_digest":"ab".repeat(32)}), + json!({"stage":"not-entered"}), + json!({"stage":"reserved", "foreign_authority":true}), + ] { + assert!(serde_json::from_value::(wire).is_err()); + } +} diff --git a/product/runtime/auths-gateway/src/submit.rs b/product/runtime/auths-gateway/src/submit.rs index 72ae2df4f..d45577c28 100644 --- a/product/runtime/auths-gateway/src/submit.rs +++ b/product/runtime/auths-gateway/src/submit.rs @@ -401,6 +401,48 @@ impl Drop for InFlight<'_, I> { } } +/// Consumer payloads follow the translated order machine. Only an acknowledged +/// grant can construct `EntryGranted`; only that variant contains a write permit. +/// The kernel still decides the next action; these values cannot grant entry. +enum SubmissionPhase { + Unverified, + Verified { + approved: std::sync::Arc, + stage: Box>, + }, +} + +enum ClaimedPhase { + Unclaimed, + Claimed(ClaimedGatewayAttempt), + Leased { + claim: ClaimedGatewayAttempt, + lease: L, + }, + EntryGranted { + claim: ClaimedGatewayAttempt, + lease: L, + permit: Box, + }, + Response { + claim: ClaimedGatewayAttempt, + response: WrittenResponse, + }, + Unknown { + claim: ClaimedGatewayAttempt, + }, + // A consumed/failed transition retains no capability. The durable journal + // remains authoritative when an acknowledgement was lost. + Unavailable, +} + +struct WrittenResponse { + status: u16, + digest: [u8; 32], + body: Vec, + version_ok: bool, +} + /// What one run has learned so far. struct Run<'a, I: SubmitIo> { cx: &'a SubmitContext<'a>, @@ -408,13 +450,9 @@ struct Run<'a, I: SubmitIo> { guard: Option, ceiling: Option, evaluated_at: u64, - verified: Option>, + phase: SubmissionPhase, selected: Vec, - claim: Option, - permit: Option, - lease: Option, pre_entry: GatewayPreEntry, - written: Option<(u16, [u8; 32], Vec, bool)>, refusal: Option<&'static str>, result: Option, unresolved_prerequisite: Option, @@ -429,13 +467,9 @@ impl<'a, I: SubmitIo> Run<'a, I> { guard: cx.recipe.guard_checks(), ceiling: cx.recipe.ceiling_check(), evaluated_at: 0, - verified: None, + phase: SubmissionPhase::Unverified, selected: Vec::new(), - claim: None, - permit: None, - lease: None, pre_entry: GatewayPreEntry::default(), - written: None, refusal: None, result: None, unresolved_prerequisite: None, @@ -443,6 +477,49 @@ impl<'a, I: SubmitIo> Run<'a, I> { } } + fn approved(&self) -> Option<&std::sync::Arc> { + match &self.phase { + SubmissionPhase::Verified { approved, .. } => Some(approved), + SubmissionPhase::Unverified => None, + } + } + + fn stage(&self) -> Option<&ClaimedPhase> { + match &self.phase { + SubmissionPhase::Verified { stage, .. } => Some(stage), + SubmissionPhase::Unverified => None, + } + } + + fn take_stage(&mut self) -> Option> { + match &mut self.phase { + SubmissionPhase::Verified { stage, .. } => { + Some(std::mem::replace(stage.as_mut(), ClaimedPhase::Unavailable)) + } + SubmissionPhase::Unverified => None, + } + } + + fn set_stage(&mut self, next: ClaimedPhase) { + if let SubmissionPhase::Verified { stage, .. } = &mut self.phase { + **stage = next; + } + } + + fn lease(&self) -> Option<&I::Lease> { + match self.stage() { + Some(ClaimedPhase::Leased { lease, .. }) => Some(lease), + _ => None, + } + } + + fn take_pre_entry_claim(&mut self) -> Option { + match self.take_stage()? { + ClaimedPhase::Claimed(claim) | ClaimedPhase::Leased { claim, .. } => Some(claim), + _ => None, + } + } + /// Performs each action `decision` names until the machine stops. async fn drive(&mut self, mut decision: SubmitDecision) -> Stop { for _ in 0..MAX_STEPS { @@ -492,7 +569,11 @@ impl Run<'_, I> { SubmitAction::Verify => SubmitEvent::Verification(self.verify()), SubmitAction::Admit => SubmitEvent::Admission(self.admit()), SubmitAction::BindScope => { - let bound = match self.verified.as_deref().and_then(ApprovedEffect::command) { + let bound = match self + .approved() + .map(std::sync::Arc::as_ref) + .and_then(ApprovedEffect::command) + { Some(verified) => self.io.bind_scope(verified), None => Err("gateway.attempt.unavailable"), }; @@ -519,10 +600,18 @@ impl Run<'_, I> { SubmitEvent::Reload(self.io.reload().await) } SubmitAction::Lease => { - self.lease = self.io.lease().await; - SubmitEvent::Lease(self.lease.is_some()) + let Some(ClaimedPhase::Claimed(claim)) = self.take_stage() else { + return SubmitEvent::Lease(false); + }; + if let Some(lease) = self.io.lease().await { + self.set_stage(ClaimedPhase::Leased { claim, lease }); + SubmitEvent::Lease(true) + } else { + self.set_stage(ClaimedPhase::Claimed(claim)); + SubmitEvent::Lease(false) + } } - SubmitAction::CheckPrefix => SubmitEvent::Prefix(match (&self.guard, &self.lease) { + SubmitAction::CheckPrefix => SubmitEvent::Prefix(match (&self.guard, self.lease()) { (None, Some(_)) => true, (Some(guard), Some(lease)) => self.io.secret_admitted(lease, guard), (_, None) => false, @@ -533,16 +622,19 @@ impl Run<'_, I> { } SubmitAction::PreEntryRead => SubmitEvent::PreEntry(self.pre_entry_read().await), SubmitAction::CeilingRead => SubmitEvent::Ceiling(self.ceiling_read().await), - SubmitAction::RecordCheckpoint => SubmitEvent::Recorded(match self.claim.take() { - Some(claim) => match claim.record_checkpoint(&self.pre_entry).await { + SubmitAction::RecordCheckpoint => { + let Some(ClaimedPhase::Leased { claim, lease }) = self.take_stage() else { + return SubmitEvent::Recorded(false); + }; + let recorded = match claim.record_checkpoint(&self.pre_entry).await { Ok(claim) => { - self.claim = Some(claim); + self.set_stage(ClaimedPhase::Leased { claim, lease }); true } Err(_) => false, - }, - None => false, - }), + }; + SubmitEvent::Recorded(recorded) + } SubmitAction::CheckDeadline => SubmitEvent::Deadline( self.io.within_entry_deadline(self.evaluated_at) && self.revalidate(), ), @@ -554,9 +646,9 @@ impl Run<'_, I> { SubmitEvent::Response(recorded) } SubmitAction::RecordUnknown => { - let recorded = match self.claim.take() { - Some(claim) => claim.record_unknown().await.is_ok(), - None => false, + let recorded = match self.take_stage() { + Some(ClaimedPhase::Unknown { claim }) => claim.record_unknown().await.is_ok(), + _ => false, }; self.in_flight = None; SubmitEvent::Recorded(recorded) @@ -571,7 +663,7 @@ impl Run<'_, I> { } fn revalidate(&mut self) -> bool { - let (Some(effect), Some(now)) = (self.verified.as_ref(), self.io.clock()) else { + let (Some(effect), Some(now)) = (self.approved(), self.io.clock()) else { self.refuse_before_claim(not_entered("gateway.verify.clock-unavailable")); return false; }; @@ -619,7 +711,10 @@ impl Run<'_, I> { argument } }; - self.verified = Some(std::sync::Arc::new(approved)); + self.phase = SubmissionPhase::Verified { + approved: std::sync::Arc::new(approved), + stage: Box::new(ClaimedPhase::Unclaimed), + }; Verification::Authorized { argument } } @@ -627,7 +722,11 @@ impl Run<'_, I> { /// observer check; nothing is stored. The first failing check's code is /// the one reported. fn admit(&mut self) -> bool { - let Some(verified) = self.verified.as_deref().and_then(ApprovedEffect::command) else { + let Some(verified) = self + .approved() + .map(std::sync::Arc::as_ref) + .and_then(ApprovedEffect::command) + else { return false; }; if let Some(retention) = self.cx.recipe.idempotency_retention() @@ -681,7 +780,7 @@ impl Run<'_, I> { } async fn claim(&mut self) -> ClaimResult { - let Some(approved) = self.verified.as_ref() else { + let Some(approved) = self.approved() else { return ClaimResult::Unavailable; }; let Ok(validation) = self.io.entry_validation() else { @@ -694,7 +793,7 @@ impl Run<'_, I> { .await { Ok(BoundedClaim::Claimed(claim)) => { - self.claim = Some(*claim); + self.set_stage(ClaimedPhase::Claimed(*claim)); ClaimResult::Reserved } Ok(BoundedClaim::Exhausted(code)) => { @@ -719,7 +818,7 @@ impl Run<'_, I> { /// A replay or unacknowledged grant only loads the exact bound journal. /// It never leases credentials or acquires provider evidence. async fn stored_result(&self) -> GatewaySubmitResult { - let Some(approved) = self.verified.as_deref() else { + let Some(approved) = self.approved().map(std::sync::Arc::as_ref) else { return unavailable_state(); }; match self.cx.attempts.read_effect(approved).await { @@ -734,10 +833,10 @@ impl Run<'_, I> { ) -> Option { acquire_prerequisite( self.cx.attempts, - self.verified.as_ref()?, + self.approved()?, kind, self.io, - self.lease.as_ref()?, + self.lease()?, ) .await } @@ -786,7 +885,9 @@ impl Run<'_, I> { async fn pre_entry_read(&mut self) -> PreEntryResult { let (Some(verified), Some(observer), Some(pointers)) = ( - self.verified.as_deref().and_then(ApprovedEffect::command), + self.approved() + .map(std::sync::Arc::as_ref) + .and_then(ApprovedEffect::command), self.cx.observer, self.cx.recipe.pre_entry_pointers(), ) else { @@ -825,7 +926,9 @@ impl Run<'_, I> { async fn ceiling_read(&mut self) -> CeilingRead { let (Some(verified), Some(ceiling)) = ( - self.verified.as_deref().and_then(ApprovedEffect::command), + self.approved() + .map(std::sync::Arc::as_ref) + .and_then(ApprovedEffect::command), &self.ceiling, ) else { return CeilingRead::Unavailable; @@ -859,18 +962,18 @@ impl Run<'_, I> { let Ok(validation) = self.io.entry_validation() else { return false; }; - let Some(approved) = &self.verified else { + let Some(approved) = self.approved().cloned() else { return false; }; let Some(entry_started) = self.io.clock() else { return false; }; - let Some(claim) = self.claim.take() else { + let Some(ClaimedPhase::Leased { claim, lease }) = self.take_stage() else { return false; }; let Ok((claim, permit)) = claim .grant_entry( - std::sync::Arc::clone(approved), + std::sync::Arc::clone(&approved), validation, entry_started, &self.pre_entry, @@ -883,37 +986,67 @@ impl Run<'_, I> { self.result = Some(self.stored_result().await); return false; }; - self.claim = Some(claim); - self.permit = Some(permit); + self.set_stage(ClaimedPhase::EntryGranted { + claim, + lease, + permit: Box::new(permit), + }); true } async fn send(&mut self) -> WriteResult { - let (Some(lease), Some(permit)) = (&self.lease, self.permit.take()) else { + let Some(ClaimedPhase::EntryGranted { + claim, + lease, + permit, + }) = self.take_stage() + else { + // An impossible action/payload combination is explicitly fail closed. + // In particular, it never manufactures a permit or calls transport. return WriteResult::Unknown; }; - match self.io.write(lease, permit).await { - Err(_) | Ok(WriteTransportOutcome::Unknown) => WriteResult::Unknown, + match self.io.write(&lease, *permit).await { + Err(_) | Ok(WriteTransportOutcome::Unknown) => { + self.set_stage(ClaimedPhase::Unknown { claim }); + WriteResult::Unknown + } Ok(WriteTransportOutcome::ResponseRecorded { status, digest, body, version_ok, }) => { - self.written = Some((status, digest, body, version_ok)); + self.set_stage(ClaimedPhase::Response { + claim, + response: WrittenResponse { + status, + digest, + body, + version_ok, + }, + }); WriteResult::Response } } } async fn record_response(&mut self) -> ResponseRecord { - let (Some(claim), Some((status, digest, body, version_ok)), Some(verified)) = ( - self.claim.take(), - self.written.take(), - self.verified.as_deref().and_then(ApprovedEffect::command), - ) else { + let Some(ClaimedPhase::Response { claim, response }) = self.take_stage() else { + return ResponseRecord::Failed; + }; + let Some(verified) = self + .approved() + .map(std::sync::Arc::as_ref) + .and_then(ApprovedEffect::command) + else { return ResponseRecord::Failed; }; + let WrittenResponse { + status, + digest, + body, + version_ok, + } = response; let locator = verified .request .observation_template() @@ -936,7 +1069,7 @@ impl Run<'_, I> { self.result = Some(self.stored_result().await); return false; } - let Some(claim) = self.claim.take() else { + let Some(claim) = self.take_pre_entry_claim() else { return false; }; let code = match refusal { diff --git a/product/runtime/auths-gateway/tests/candidate_cli.rs b/product/runtime/auths-gateway/tests/candidate_cli.rs index 0ec322e45..fa67a0f1c 100644 --- a/product/runtime/auths-gateway/tests/candidate_cli.rs +++ b/product/runtime/auths-gateway/tests/candidate_cli.rs @@ -237,9 +237,10 @@ async fn first_installation( assert!(!conflict.status.success()); assert!(!state.join("conflict.json").exists()); assert!( - !resume(&proposal, b"rk_test_initial_install\n") + resume(&proposal, b"rk_test_initial_install\n") .status - .success() + .success(), + "exact existing proposal is an explicit idempotent replay" ); assert_eq!(std::fs::read(&proposal).expect("preserved"), bytes); for path in [ @@ -253,6 +254,8 @@ async fn first_installation( ); } assert!(shared.load().await.expect("load").is_none()); + #[cfg(feature = "testkit-harness")] + candidate_installation_fault_matrix(&root, recipe).await; json!({"production_install_stages_without_publication":true,"private_draft_and_proposal":true,"exact_floor_and_cleanup_note":true,"independent_resume_process_reuses_exact_proposal":true,"different_secret_refused":true,"existing_output_preserved":true,"no_approved_provider_execution_claim":true}) } @@ -485,8 +488,9 @@ fn assert_call_authoring( assert!(!root.join("refused.json").exists()); } -fn install_candidate_cli(root: &Path, state: &Path, recipe: &CompiledRecipe) { - let mut child = Command::new(env!("CARGO_BIN_EXE_auths-gateway")) +fn candidate_install_command(root: &Path, state: &Path, recipe: &CompiledRecipe) -> Command { + let mut command = Command::new(env!("CARGO_BIN_EXE_auths-gateway")); + command .arg("install") .arg("--state-dir") .arg(state) @@ -508,7 +512,12 @@ fn install_candidate_cli(root: &Path, state: &Path, recipe: &CompiledRecipe) { "--account-label", "acct_TESTACCOUNT01", "--credential-stdin", - ]) + ]); + command +} + +fn run_candidate_install(command: &mut Command) -> std::process::Output { + let mut child = command .stdin(Stdio::piped()) .stdout(Stdio::piped()) .stderr(Stdio::piped()) @@ -520,10 +529,115 @@ fn install_candidate_cli(root: &Path, state: &Path, recipe: &CompiledRecipe) { .expect("stdin") .write_all(b"rk_test_initial_install\n") .expect("secret"); - let output = child.wait_with_output().expect("install output"); + child.wait_with_output().expect("install output") +} + +fn install_candidate_cli(root: &Path, state: &Path, recipe: &CompiledRecipe) { + let output = run_candidate_install(&mut candidate_install_command(root, state, recipe)); assert!( output.status.success(), "{}", String::from_utf8_lossy(&output.stderr) ); } + +#[cfg(feature = "testkit-harness")] +async fn candidate_installation_fault_matrix(root: &Path, recipe: &CompiledRecipe) { + let trace_state = root.join("candidate-fault-trace"); + let trace = run_candidate_install( + candidate_install_command(root, &trace_state, recipe).env("AUTHS_TEST_ADMIN_TRACE", "1"), + ); + assert!( + trace.status.success(), + "{}", + String::from_utf8_lossy(&trace.stderr) + ); + let points: Vec<_> = String::from_utf8_lossy(&trace.stderr) + .lines() + .filter_map(|line| { + line.strip_prefix("auths-test-admin-boundary:") + .map(str::to_owned) + }) + .collect(); + assert!( + points + .iter() + .any(|point| point.ends_with(":candidate-installation.before-custody")) + ); + assert!( + points + .iter() + .any(|point| point.ends_with(":candidate-installation.after-floor")) + ); + for (index, point) in points.iter().enumerate() { + let state = root.join(format!("candidate-fault-{index}")); + let interrupted = run_candidate_install( + candidate_install_command(root, &state, recipe) + .env("AUTHS_TEST_ADMIN_INTERRUPT_AT", (index + 1).to_string()), + ); + assert_eq!( + interrupted.status.code(), + Some(79), + "{point}: {}", + String::from_utf8_lossy(&interrupted.stderr) + ); + let draft = std::fs::read(state.join("candidate-installation.cbor")).ok(); + let resumed = + run_candidate_install(candidate_install_command(root, &state, recipe).arg("--resume")); + let shared = SharedConnection::new( + Arc::new(FileGatewayAttemptStore::open(state.join("attempts")).expect("store")), + ProviderKind::parse("stripe").expect("provider"), + ConnectionAlias::parse("synthetic").expect("alias"), + ); + assert!( + shared.load().await.expect("native connection").is_none(), + "staging cannot publish: {point}" + ); + let status = Command::new(env!("CARGO_BIN_EXE_auths-gateway")) + .arg("recovery-status") + .arg("--state-dir") + .arg(&state) + .output() + .expect("status"); + let facts: Value = serde_json::from_slice(&status.stdout).expect("recovery facts"); + assert_eq!( + facts["installation"], "configured-unpublished", + "{point}: {facts}" + ); + if resumed.status.success() { + let proposal = + std::fs::read(state.join("candidate-installation.json")).expect("staged proposal"); + let repeated = run_candidate_install( + candidate_install_command(root, &state, recipe).arg("--resume"), + ); + assert!( + repeated.status.success(), + "{point}: {}", + String::from_utf8_lossy(&repeated.stderr) + ); + assert_eq!( + std::fs::read(state.join("candidate-installation.json")) + .expect("same exact proposal"), + proposal + ); + } else { + assert!( + String::from_utf8_lossy(&resumed.stderr) + .contains("credential-operation-unconfirmed"), + "{point}: {}", + String::from_utf8_lossy(&resumed.stderr) + ); + assert_eq!( + facts["native"]["facts"]["cleanup"]["state"], + "creation-unconfirmed" + ); + } + if let Some(draft) = draft { + assert_eq!( + std::fs::read(state.join("candidate-installation.cbor")) + .expect("retained identity"), + draft + ); + } + } +} diff --git a/product/runtime/auths-gateway/tests/qualification_gate.rs b/product/runtime/auths-gateway/tests/qualification_gate.rs index 5b4a90a31..c86c09b2f 100644 --- a/product/runtime/auths-gateway/tests/qualification_gate.rs +++ b/product/runtime/auths-gateway/tests/qualification_gate.rs @@ -71,36 +71,44 @@ fn run(command: &mut Command, stdin: &[u8]) -> Output { child.wait_with_output().expect("output") } -fn install(root: &Path, state: &Path, arguments: &[&str]) -> Output { +fn install_command(root: &Path, state: &Path, arguments: &[&str]) -> Command { let digest = CompiledRecipe::compile(RECIPE, LOCK) .expect("compiled recipe") .digest_hex(); + let mut command = Command::new(BIN); + command + .arg("install") + .arg("--effect-policy") + .arg(concat!( + env!("CARGO_MANIFEST_DIR"), + "/../../../bindings/fixtures/gateway/effect-policy.json" + )) + .arg("--state-dir") + .arg(state) + .arg("--recipe") + .arg(root.join("recipe.json")) + .arg("--profile-lock") + .arg(root.join("profile.lock.json")) + .arg("--trusted-context") + .arg(root.join("trusted.context.cbor")) + .arg("--approve-digest") + .arg(digest) + .args([ + "--provider", + "airtable", + "--alias", + "demo", + "--account-label", + "synthetic-account", + "--credential-stdin", + ]) + .args(arguments); + command +} + +fn install(root: &Path, state: &Path, arguments: &[&str]) -> Output { run( - Command::new(BIN) - .arg("install") - .arg("--effect-policy") - .arg(concat!( - env!("CARGO_MANIFEST_DIR"), - "/../../../bindings/fixtures/gateway/effect-policy.json" - )) - .arg("--state-dir") - .arg(state) - .arg("--recipe") - .arg(root.join("recipe.json")) - .arg("--profile-lock") - .arg(root.join("profile.lock.json")) - .arg("--trusted-context") - .arg(root.join("trusted.context.cbor")) - .arg("--approve-digest") - .arg(digest) - .arg("--provider") - .arg("airtable") - .arg("--alias") - .arg("demo") - .arg("--account-label") - .arg("synthetic-account") - .arg("--credential-stdin") - .args(arguments), + &mut install_command(root, state, arguments), b"synthetic-token\n", ) } @@ -420,3 +428,295 @@ fn a_development_installation_defaults_to_the_optional_policy() { format!("policy=optional state=unqualified code={UNAVAILABLE}") ); } + +#[cfg(feature = "testkit-harness")] +mod ap076_recovery { + use super::*; + use serde_json::Value; + + fn boundaries(output: &Output) -> Vec { + text(&output.stderr) + .lines() + .filter_map(|line| { + line.strip_prefix("auths-test-admin-boundary:") + .map(str::to_owned) + }) + .collect() + } + + fn report(state: &Path) -> (Output, Value) { + let result = gateway(&[ + "recovery-status", + "--state-dir", + &state.display().to_string(), + ]); + let value = serde_json::from_slice(&result.stdout) + .expect("bounded recovery JSON even on an unavailable component"); + (result, value) + } + + fn import_command(state: &Path, from: &Path) -> Command { + let mut command = Command::new(BIN); + command + .arg("qualification-import") + .arg("--state-dir") + .arg(state) + .arg("--from") + .arg(from); + command + } + + #[test] + fn installation_recovers_or_explicitly_quarantines_every_interruption_boundary() { + let (_trace_directory, trace_root) = private_root(); + let trace_state = trace_root.join("state"); + let trace = run( + install_command(&trace_root, &trace_state, &[]).env("AUTHS_TEST_ADMIN_TRACE", "1"), + b"synthetic-token\n", + ); + assert!(trace.status.success(), "{}", text(&trace.stderr)); + let points = boundaries(&trace); + assert!( + points + .iter() + .any(|point| point.ends_with(":installation.before-custody")) + ); + assert!( + points + .iter() + .any(|point| point.ends_with(":installation.after-native-publication-ack")) + ); + for (index, point) in points.iter().enumerate() { + let (_directory, root) = private_root(); + let state = root.join("state"); + let interrupted = run( + install_command(&root, &state, &[]) + .env("AUTHS_TEST_ADMIN_INTERRUPT_AT", (index + 1).to_string()), + b"synthetic-token\n", + ); + assert_eq!( + interrupted.status.code(), + Some(79), + "{point}: {}", + text(&interrupted.stderr) + ); + let draft = fs::read(state.join("candidate-installation.cbor")).ok(); + let resumed = install(&root, &state, &["--resume"]); + let (_, facts) = report(&state); + assert_eq!(facts["schema"], "auths.gateway-recovery/1", "{point}"); + if resumed.status.success() { + assert_eq!(facts["installation"], "published", "{point}: {facts}"); + let repeated = install(&root, &state, &["--resume"]); + assert!( + repeated.status.success(), + "{point}: {}", + text(&repeated.stderr) + ); + let (_, again) = report(&state); + assert_eq!( + again, facts, + "acknowledged state must survive immediate process restart: {point}" + ); + } else { + assert!( + text(&resumed.stderr).contains("credential-operation-unconfirmed"), + "{point}: {}", + text(&resumed.stderr) + ); + assert_eq!( + facts["native"]["facts"]["cleanup"]["state"], "creation-unconfirmed", + "{point}: {facts}" + ); + assert_ne!(facts["installation"], "published", "{point}"); + } + if let Some(draft) = draft { + assert_eq!( + fs::read(state.join("candidate-installation.cbor")).expect("retained draft"), + draft, + "identity/timestamps cannot change: {point}" + ); + } + } + } + + fn qualified_install(root: &Path, state: &Path, release: &TestRelease) -> QualificationTuple { + let trust_root = root.join("root.json"); + fs::write(&trust_root, release.pinned().canonical_bytes()).expect("root"); + let installed = install( + root, + state, + &[ + "--qualification-policy", + "required", + "--recipe-family", + FAMILY, + "--provider-contract-id", + &contract(), + "--qualification-trust-root", + &trust_root.display().to_string(), + ], + ); + assert!(installed.status.success(), "{}", text(&installed.stderr)); + let tuple = gateway(&[ + "qualification-status", + "--state-dir", + &state.display().to_string(), + "--tuple", + ]); + assert!(tuple.status.success(), "{}", text(&tuple.stderr)); + serde_json::from_slice(&tuple.stdout).expect("tuple") + } + + #[test] + fn qualification_first_import_and_replacement_survive_every_boundary_and_repeat() { + let at = now(); + let release = TestRelease::new(at); + for replacement in [false, true] { + let (_trace_directory, trace_root) = private_root(); + let trace_state = trace_root.join("state"); + let tuple = qualified_install(&trace_root, &trace_state, &release); + let original = release.release(&[&testkit::proposal(1, &tuple, at)]); + let successor = release.release(&[&testkit::proposal(2, &tuple, at)]); + original + .write_to(&trace_root.join("original")) + .expect("original bundle"); + if replacement { + assert!( + run( + &mut import_command(&trace_state, &trace_root.join("original")), + b"" + ) + .status + .success() + ); + } + let bundle = if replacement { &successor } else { &original }; + bundle + .write_to(&trace_root.join("release")) + .expect("candidate release"); + let trace = run( + import_command(&trace_state, &trace_root.join("release")) + .env("AUTHS_TEST_ADMIN_TRACE", "1"), + b"", + ); + assert!(trace.status.success(), "{}", text(&trace.stderr)); + let points = boundaries(&trace); + assert!( + points + .iter() + .any(|point| point.ends_with(":qualification.after-native-floor")) + ); + assert!( + points + .iter() + .any(|point| point.ends_with(":qualification.after-publication-sync")) + ); + for (index, point) in points.iter().enumerate() { + let (_directory, root) = private_root(); + let state = root.join("state"); + let actual_tuple = qualified_install(&root, &state, &release); + assert_eq!(actual_tuple, tuple, "test tuple excludes host paths"); + original + .write_to(&root.join("original")) + .expect("original bundle"); + if replacement { + assert!( + run(&mut import_command(&state, &root.join("original")), b"") + .status + .success() + ); + } + bundle + .write_to(&root.join("release")) + .expect("candidate bundle"); + let custody = + fs::read(state.join("credentials.cbor")).expect("custody before import"); + let interrupted = run( + import_command(&state, &root.join("release")) + .env("AUTHS_TEST_ADMIN_INTERRUPT_AT", (index + 1).to_string()), + b"", + ); + assert_eq!( + interrupted.status.code(), + Some(79), + "replacement={replacement}, {point}: {}", + text(&interrupted.stderr) + ); + let imported = run(&mut import_command(&state, &root.join("release")), b""); + assert!( + imported.status.success(), + "replacement={replacement}, {point}: {}", + text(&imported.stderr) + ); + for _ in 0..2 { + let recovery = gateway(&[ + "qualification-recover", + "--state-dir", + &state.display().to_string(), + ]); + assert!( + recovery.status.success(), + "replacement={replacement}, {point}: {}", + text(&recovery.stderr) + ); + } + assert_eq!( + fs::read(state.join("credentials.cbor")).expect("unchanged custody"), + custody, + "qualification recovery cannot mutate custody" + ); + let (status, facts) = report(&state); + assert!(status.status.success(), "{point}: {}", text(&status.stderr)); + assert_eq!( + facts["qualification"]["state"], "current-published", + "{point}: {facts}" + ); + assert_eq!( + fs::read( + state + .join("qualification") + .join(auths_recipe_qualification::RELEASE_INDEX_FILE) + ) + .expect("published exact index"), + bundle.release_index + ); + assert!(!state.join("qualification.next").exists()); + assert!(!state.join("qualification.previous").exists()); + let (_, restarted) = report(&state); + assert_eq!( + restarted, facts, + "acknowledged publication survives restart: {point}" + ); + } + } + } + + #[test] + fn competing_identical_imports_share_native_truth_and_never_erase_a_floor() { + let (_directory, root) = private_root(); + let state = root.join("state"); + let at = now(); + let release = TestRelease::new(at); + let tuple = qualified_install(&root, &state, &release); + let bundle = release.release(&[&testkit::proposal(1, &tuple, at)]); + bundle.write_to(&root.join("release")).expect("release"); + let from = root.join("release"); + let handles: Vec<_> = (0..2) + .map(|_| { + let state = state.clone(); + let from = from.clone(); + std::thread::spawn(move || run(&mut import_command(&state, &from), b"")) + }) + .collect(); + for handle in handles { + let output = handle.join().expect("import worker"); + assert!(output.status.success(), "{}", text(&output.stderr)); + } + let (_, first) = report(&state); + let repeated = run(&mut import_command(&state, &from), b""); + assert!(repeated.status.success(), "{}", text(&repeated.stderr)); + let (_, second) = report(&state); + assert_eq!(first, second); + assert_eq!(second["qualification"]["state"], "current-published"); + } +} diff --git a/release/semantic-freeze-versions.toml b/release/semantic-freeze-versions.toml index c205e8daf..fc9c6a2c9 100644 --- a/release/semantic-freeze-versions.toml +++ b/release/semantic-freeze-versions.toml @@ -1,4 +1,4 @@ -freeze_version = 440 +freeze_version = 441 # Semantic identity counters live outside the xtask source tree deliberately. # The formal source closure binds xtask's executable code, while the semantic @@ -16,10 +16,10 @@ freeze_version = 440 "auths.frozen-bytes/core/fixtures/v1/manifest.json" = 16 "auths.frozen-bytes/core/formal-vectors/v1/manifest.json" = 1 "auths.frozen-bytes/demos/benchmarks/profiles/release.toml" = 1 -"auths.frozen-bytes/formal/assurance-manifest-v1.toml" = 66 +"auths.frozen-bytes/formal/assurance-manifest-v1.toml" = 67 "auths.frozen-bytes/formal/qualification/aeneas/generated" = 20 "auths.frozen-bytes/formal/qualification/aeneas/qualification.toml" = 17 -"auths.frozen-bytes/formal/qualification/aeneas/source-closure.json" = 111 +"auths.frozen-bytes/formal/qualification/aeneas/source-closure.json" = 112 "auths.frozen-bytes/product/conformance/v1/mechanism-profile-conformance.json" = 1 "auths.frozen-bytes/product/conformance/v1/simplified-product-waist.json" = 4 "auths.frozen-bytes/product/fixtures/v1/bounded-policy/manifest.json" = 3 @@ -45,9 +45,9 @@ freeze_version = 440 "auths.frozen-bytes/product/integrations/auths-stripe/fixtures/subscription-create/v1/manifest.sha256.json" = 1 "auths.frozen-bytes/product/integrations/auths-stripe/fixtures/subscription-modify/v1/manifest.sha256.json" = 1 "auths.frozen-bytes/product/integrations/auths-stripe/fixtures/v1/manifest.sha256.json" = 1 -"auths.identity.protocol" = 173 +"auths.identity.protocol" = 174 "auths.modular-components" = 22 -"auths.portable-abi-bindings" = 132 +"auths.portable-abi-bindings" = 133 "auths.product.bounded-domains" = 21 "auths.product.bounded-policy" = 6 "auths.product.configuration-commitments" = 1 @@ -59,12 +59,12 @@ freeze_version = 440 "auths.product.lifecycle" = 17 "auths.product.mcp-closed-execution" = 32 "auths.product.mechanism-profile-conformance" = 13 -"auths.product.operations" = 6 +"auths.product.operations" = 7 "auths.product.public-sdk-contract" = 169 "auths.product.receipts" = 13 "auths.product.release-assurance" = 7 "auths.product.simplified-waist" = 20 "auths.product.vocabulary" = 31 "auths.release.benchmark-contract" = 1 -"auths.release.evolution-contract" = 89 -"auths.release.public-surface" = 440 +"auths.release.evolution-contract" = 90 +"auths.release.public-surface" = 441 diff --git a/release/semantic-freeze.json b/release/semantic-freeze.json index df332c5d7..c2b3c9322 100644 --- a/release/semantic-freeze.json +++ b/release/semantic-freeze.json @@ -1,6 +1,6 @@ { "schema": "auths.semantic-freeze/1", - "freezeVersion": 440, + "freezeVersion": 441, "publicSurface": { "rustRoots": [ "auths", @@ -202,7 +202,7 @@ }, { "id": "auths.frozen-bytes/formal/assurance-manifest-v1.toml", - "version": 66, + "version": 67, "classification": "frozen-bytes", "categories": [ "canonical-generated-evidence" @@ -210,7 +210,7 @@ "owners": [ "formal/assurance-manifest-v1.toml" ], - "sha256": "2e8e3f7496e759102b0f6c2136c62346ead09cc07c693a22a39210db7e315bd6" + "sha256": "395167dd82c352cec015c4c606e4b112ab0705e1b66e7f64539adc72fd1859bd" }, { "id": "auths.frozen-bytes/formal/qualification/aeneas/generated", @@ -238,7 +238,7 @@ }, { "id": "auths.frozen-bytes/formal/qualification/aeneas/source-closure.json", - "version": 111, + "version": 112, "classification": "frozen-bytes", "categories": [ "canonical-generated-evidence" @@ -246,7 +246,7 @@ "owners": [ "formal/qualification/aeneas/source-closure.json" ], - "sha256": "8a08634598d8cb8032509f7019d6b5f51edcc1e34c1ecbc7d55b15ed00b1050f" + "sha256": "c9762fe9036c36a2e98e39dcf3e1add0505563b127352cec63e8f7fa94a5187b" }, { "id": "auths.frozen-bytes/product/conformance/v1/mechanism-profile-conformance.json", @@ -550,7 +550,7 @@ }, { "id": "auths.identity.protocol", - "version": 173, + "version": 174, "classification": "frozen-meaning", "categories": [ "identity-protocol-versions", @@ -573,7 +573,7 @@ "core/fixtures/identity/v1/vectors.json", "core/spec/identity/v1" ], - "sha256": "04d0552d8526cbb1034ea1230ecf22d61f6ca5be0d3541d1d9f710fbbe24623e" + "sha256": "ce623186ee889ad11319632c8c9ccccb61eef15f9bbe25da3de88f7acb26ed5f" }, { "id": "auths.modular-components", @@ -611,7 +611,7 @@ }, { "id": "auths.portable-abi-bindings", - "version": 132, + "version": 133, "classification": "frozen-meaning", "categories": [ "portable-abi", @@ -631,7 +631,7 @@ "core/crates/auths-model/src/lib.rs", "core/spec/v1/auths-proof.cddl" ], - "sha256": "94cdb488530e6ad2fb90249380d6d15dda6f6d386c777da2cf87dbf5bf1edec8" + "sha256": "1a07fd0a841eb53c6fc54efa3adf2becb252a07c98f340debbc03cfc61bee139" }, { "id": "auths.product.bounded-domains", @@ -849,7 +849,7 @@ }, { "id": "auths.product.operations", - "version": 6, + "version": 7, "classification": "frozen-meaning", "categories": [ "privacy-safe-events", @@ -867,7 +867,7 @@ "product/operations/v2", "product/runtime/auths-runtime/src/production.rs" ], - "sha256": "627affbbb01bd1587c6333259e420c3d26a6ce19835e2e5fae19a3008bbef490" + "sha256": "0e13ec5c846fe206b381a34e464fd7ccc014531a63d67f52748986933764b1f3" }, { "id": "auths.product.public-sdk-contract", @@ -986,7 +986,7 @@ }, { "id": "auths.release.evolution-contract", - "version": 89, + "version": 90, "classification": "frozen-meaning", "categories": [ "version-axes", @@ -1007,11 +1007,11 @@ "release/fixtures/evolution", "xtask/src/evolution_policy.rs" ], - "sha256": "40ba97b2db793eb1c31f2e8e3701d8a1dae5060fa634c856637ff30df53aeb0c" + "sha256": "70b7b77ddcd116ab7fb3027151de8ba59b16835f4673bf7321a829d58e4a9bb8" }, { "id": "auths.release.public-surface", - "version": 440, + "version": 441, "classification": "release-metadata", "categories": [ "package-names", @@ -1104,7 +1104,7 @@ "xtask/src/release_launch.rs", "xtask/src/semantic_freeze.rs" ], - "sha256": "73d36780d5709bba86f29af4bddf483068beb6f38a848e7e2d0a4875592b1693" + "sha256": "ffedac8cd80579b5fa6907494221aa93654b73f8cb27a5d095b81801d1d82836" } ] } From e63c00ae6dade1e9b7416ffa4dacead9d1d0b984 Mon Sep 17 00:00:00 2001 From: bordumb Date: Wed, 11 Nov 2026 00:56:59 +0900 Subject: [PATCH 3/5] fix(state): close lifecycle scheduling and recovery interruption gaps --- .github/workflows/python-sdk.yml | 1 + .../gateway/managed-cli-inventory.json | 55 ++++++++ .../python/auths/_resource_lifecycle.py | 23 +++- .../python/python/auths/identity/__init__.py | 4 +- .../python/tests/test_identity_authoring.py | 19 +++ .../python/tests/test_resource_lifecycle.py | 72 +++++++++-- bindings/python/tests/test_workflow.py | 38 +++--- bindings/typescript/api/public-api.txt | 2 +- .../typescript/docs/resource-lifecycle.md | 2 + bindings/typescript/src/approvals.ts | 2 +- .../src/internal/approval-operation.ts | 2 +- .../src/internal/lifecycle-resources.ts | 2 +- .../operation-errors.ts} | 0 .../src/internal/resource-lifecycle.ts | 2 +- bindings/typescript/src/plans.ts | 2 +- .../src/workflow/authority-source.ts | 2 +- .../src/workflow/internal/authority.ts | 2 +- .../src/workflow/internal/copying.ts | 2 +- .../src/workflow/internal/orchestrator.ts | 4 +- .../src/workflow/trusted-context.ts | 2 +- bindings/typescript/test/unit/errors.test.js | 2 +- docs/assurance/PROOF_COVERAGE.md | 4 +- docs/plans/0076-implementation-status.md | 40 ++++-- .../0077-administrative-recovery-protocol.md | 13 ++ formal/proof-coverage-functions-v1.tsv | 122 +++++++++--------- formal/proof-coverage-v1.json | 32 ++--- .../auths-gateway/semantic-closure.json | 2 +- .../auths-gateway/src/bin/auths-gateway.rs | 61 ++++++++- .../auths-gateway/src/credential_journal.rs | 8 +- .../auths-gateway/src/generation_floor.rs | 14 +- .../auths-gateway/src/semantic_closure.rs | 2 +- .../auths-gateway/tests/qualification_gate.rs | 16 +++ release/semantic-freeze-versions.toml | 10 +- release/semantic-freeze.json | 18 +-- 34 files changed, 415 insertions(+), 167 deletions(-) rename bindings/typescript/src/{workflow/errors.ts => internal/operation-errors.ts} (100%) diff --git a/.github/workflows/python-sdk.yml b/.github/workflows/python-sdk.yml index fa0f03082..b0eb34705 100644 --- a/.github/workflows/python-sdk.yml +++ b/.github/workflows/python-sdk.yml @@ -88,6 +88,7 @@ jobs: retention-days: 30 - run: python -m pip install --no-deps -e bindings/python-adapters/sqlite - run: pytest -q bindings/python/tests + timeout-minutes: 3 - run: pytest -q bindings/python-adapters/sqlite/tests - run: >- ruff check bindings/python/python bindings/python/tests diff --git a/bindings/fixtures/gateway/managed-cli-inventory.json b/bindings/fixtures/gateway/managed-cli-inventory.json index 05baf5996..07cfe5679 100644 --- a/bindings/fixtures/gateway/managed-cli-inventory.json +++ b/bindings/fixtures/gateway/managed-cli-inventory.json @@ -1158,6 +1158,11 @@ "long": "recipe-family", "required": false }, + { + "name": "resume", + "long": "resume", + "required": false + }, { "name": "state_dir", "long": "state-dir", @@ -1450,6 +1455,21 @@ } ] }, + { + "command": "qualification-recover", + "arguments": [ + { + "name": "help", + "long": "help", + "required": false + }, + { + "name": "state_dir", + "long": "state-dir", + "required": true + } + ] + }, { "command": "qualification-status", "arguments": [ @@ -1555,6 +1575,41 @@ } ] }, + { + "command": "recovery-status", + "arguments": [ + { + "name": "action", + "long": "action", + "required": false + }, + { + "name": "approval", + "long": "approval", + "required": false + }, + { + "name": "candidate", + "long": "candidate", + "required": false + }, + { + "name": "help", + "long": "help", + "required": false + }, + { + "name": "proof", + "long": "proof", + "required": false + }, + { + "name": "state_dir", + "long": "state-dir", + "required": true + } + ] + }, { "command": "review", "arguments": [ diff --git a/bindings/python/python/auths/_resource_lifecycle.py b/bindings/python/python/auths/_resource_lifecycle.py index 76f592a1e..4d89ac254 100644 --- a/bindings/python/python/auths/_resource_lifecycle.py +++ b/bindings/python/python/auths/_resource_lifecycle.py @@ -4,7 +4,7 @@ import asyncio import math from dataclasses import dataclass -from typing import Awaitable, Callable, Dict, Generic, Literal, Optional, Protocol, Set, TypeVar, Union, cast +from typing import Awaitable, Callable, Dict, Literal, Optional, Protocol, Set, TypeVar, Union, cast from ._product_errors import AuthsWorkflowError, CauseCategory @@ -88,8 +88,7 @@ def settled(value: asyncio.Future[T]) -> None: try: return await result finally: - if timer is not None: - timer.cancel() + timer.cancel() shielded.remove_done_callback(settled) if shielded.done() and not shielded.cancelled(): shielded.exception() @@ -199,7 +198,11 @@ async def dispose_owned(self, resource: object) -> None: await self._attempt(*pair) def _work(self, operation: Callable[[], Awaitable[T]]) -> asyncio.Task[T]: + # Even an eager task factory cannot enter foreign code before this + # owner retains the task. The gate is released only after registration. + admitted: asyncio.Future[None] = asyncio.get_running_loop().create_future() async def owned() -> T: + await admitted return await operation() task = asyncio.create_task(owned()) retained = cast("asyncio.Task[object]", task) @@ -209,6 +212,7 @@ def settled(value: asyncio.Task[T]) -> None: if not value.cancelled(): value.exception() task.add_done_callback(settled) + admitted.set_result(None) return task async def open(self, initialize: Callable[[], Awaitable[None]], *, timeout: Optional[float] = None, @@ -354,7 +358,12 @@ async def cleanup() -> None: # No new admissions after Closing. Acquisitions register late resources # before releasing their tokens, so every obligation is visible here. while self._active: - await asyncio.gather(*tuple(self._active), return_exceptions=True) + # Python 3.12 gather can return synchronously for completed + # tasks, before their queued removal callbacks have run. + # Prune those tokens explicitly instead of starving the loop. + self._active.difference_update(task for task in tuple(self._active) if task.done()) + if self._active: + await asyncio.gather(*tuple(self._active), return_exceptions=True) for resource, obligation in sorted(tuple(self._obligations.values()), key=lambda pair: pair[1].order): if obligation.state == "pending" or (retry and obligation.retry == "idempotent"): await self._attempt(resource, obligation, retry) @@ -387,7 +396,9 @@ def own_adapter(owner: ResourceLifecycle, adapter: object, *, order: int = 0) -> close = getattr(adapter, "aclose", None) if not callable(close): raise TypeError("owned adapter must implement aclose") - retry_operation = getattr(adapter, "retry_cleanup", None) + close_operation = cast(Callable[[], Awaitable[None]], close) + candidate = getattr(adapter, "retry_cleanup", None) + retry_operation = cast(Callable[[], Awaitable[None]], candidate) if callable(candidate) else None async def cleanup(retry: bool) -> None: - await (retry_operation() if retry and retry_operation is not None else close()) + await (retry_operation() if retry and retry_operation is not None else close_operation()) owner.own(adapter, cleanup, retry="idempotent" if getattr(adapter, "cleanup_retry", None) == "idempotent" else "unsafe", order=order) diff --git a/bindings/python/python/auths/identity/__init__.py b/bindings/python/python/auths/identity/__init__.py index 8745b90d2..5c7453da3 100644 --- a/bindings/python/python/auths/identity/__init__.py +++ b/bindings/python/python/auths/identity/__init__.py @@ -130,7 +130,9 @@ def __init__(self, token: object, methods: _Tuple[_Any, ...], authenticators: _T if len(self._methods) != len(methods) or len(self._authenticators) != len(authenticators): raise ValueError("duplicate identity adapter") self._owns = owns_adapters - self._lifecycle = _ResourceLifecycle() + # Adapter registration completes synchronously; there is no pending + # initializer. Construction publishes Open, including codec-only use. + self._lifecycle = _ResourceLifecycle(opened=True) if owns_adapters: for value in (*self._methods.values(), *self._authenticators.values()): _own_adapter(self._lifecycle, value) diff --git a/bindings/python/tests/test_identity_authoring.py b/bindings/python/tests/test_identity_authoring.py index 6d4e3d269..7867761b3 100644 --- a/bindings/python/tests/test_identity_authoring.py +++ b/bindings/python/tests/test_identity_authoring.py @@ -52,3 +52,22 @@ async def scenario() -> None: def test_development_recipient_seed_refuses_invalid_import(seed: object) -> None: with pytest.raises(ValueError, match="must be 32 bytes"): development_ed25519_identity_key(seed) # type: ignore[arg-type] + + +def test_synchronous_identity_construction_is_open_and_close_stops_admission() -> None: + from auths._product_errors import AuthsWorkflowError + + async def scenario() -> None: + key = development_ed25519_identity_key(bytes([31]) * 32) + identity = create_raw_key_ed25519_identity(key.public_key) + client = raw_key_ed25519() + decoded = client.decode(identity.to_bytes()) + assert isinstance(decoded, IdentityOk) + assert await client.open() is client + await client.aclose() + with pytest.raises(AuthsWorkflowError): + client.decode(identity.to_bytes()) + with pytest.raises(AuthsWorkflowError): + await client.open() + + asyncio.run(scenario()) diff --git a/bindings/python/tests/test_resource_lifecycle.py b/bindings/python/tests/test_resource_lifecycle.py index 816e40f0a..238f316f5 100644 --- a/bindings/python/tests/test_resource_lifecycle.py +++ b/bindings/python/tests/test_resource_lifecycle.py @@ -2,6 +2,7 @@ from __future__ import annotations import asyncio +from typing import Awaitable import pytest @@ -11,6 +12,12 @@ from auths._product_errors import AuthsWorkflowError +async def _bounded_scenario(operation: Awaitable[None]) -> None: + # A missing completion is a test failure, never an unbounded CI allocation. + # Assertions still use controlled events and the injected lifecycle clock. + await asyncio.wait_for(operation, timeout=10) + + class ManualTimer: def __init__(self, clock, callback, due): self.clock, self.callback, self.due = clock, callback, due @@ -69,7 +76,7 @@ async def initialize() -> None: await owner.close() with pytest.raises(AuthsWorkflowError): await owner.open(initialize) - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_close_invalidates_opening_and_retains_late_acquisition() -> None: @@ -93,7 +100,7 @@ async def initialize() -> None: gate.set() await closing assert isinstance(owner.state, Closed) and calls == 1 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_shared_close_does_not_destroy_active_resources_or_cancel_other_waiters() -> None: @@ -125,7 +132,7 @@ async def destroy(_: bool) -> None: await destroyed.wait() await owner.close() assert calls == 1 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_open_failure_preserves_original_and_attempts_independent_cleanup() -> None: @@ -156,7 +163,7 @@ async def initialize() -> None: assert calls == ["failed", "success"] and isinstance(owner.state, CleanupFailed) with pytest.raises(AuthsWorkflowError): await owner.open(no_init) - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_explicit_retry_shares_generation_and_skips_successful_and_unsafe_obligations() -> None: @@ -190,7 +197,7 @@ async def success(_: bool) -> None: outcomes = await asyncio.gather(retry, ordinary, other, return_exceptions=True) assert all(isinstance(value, CleanupFailure) for value in outcomes) assert counts == [2, 1, 1] - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_generation_deadline_retains_unfinished_cleanup_and_late_success() -> None: @@ -223,7 +230,7 @@ async def destroy(_: bool) -> None: await owner._cleanup await owner.close() assert isinstance(owner.state, Closed) and not clock.jobs - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) @pytest.mark.parametrize("event", ["close", "cancel", "publish-first"]) @@ -264,7 +271,7 @@ async def destroy(value: object, _: bool) -> None: else: await owner.close() assert calls == 1 and isinstance(owner.state, Closed) - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_invalid_timeouts_do_not_begin_lifecycle_work() -> None: @@ -276,7 +283,7 @@ async def scenario() -> None: with pytest.raises(ValueError): await owner.close(timeout=value) await owner.close() - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) @pytest.mark.parametrize("kind", ["identity", "remote"]) @@ -319,7 +326,7 @@ async def scenario() -> None: await client.aclose() assert first.calls == second.calls == 0 await client.aclose() - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_open_waiter_timeouts_detach_one_and_then_all_without_reinitializing() -> None: @@ -347,7 +354,7 @@ async def initialize() -> None: await owner.open(initialize) assert calls == 1 and owner.is_open await owner.close() - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_active_operation_outlives_shutdown_deadline_before_zeroization() -> None: @@ -377,7 +384,7 @@ async def erase(_: bool) -> None: assert owner._cleanup is not None await owner._cleanup assert material == b"\x00" * 5 and isinstance(owner.state, Closed) - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_attachment_timeout_keeps_late_child_owned_until_cleanup() -> None: @@ -404,7 +411,7 @@ async def destroy(value: object, retry: bool) -> None: await cleaned.wait() await owner.close() assert calls == 1 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_late_cleanup_failure_settles_overdue_owner_before_explicit_safe_retry() -> None: @@ -435,4 +442,43 @@ async def destroy(retry: bool) -> None: assert calls == 1 await owner.retry_cleanup() assert isinstance(owner.state, Closed) and calls == 2 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) + + +def test_eager_tasks_cannot_enter_foreign_code_before_ownership() -> None: + factory = getattr(asyncio, "eager_task_factory", None) + if factory is None: + pytest.skip("eager task factories start in Python 3.12") + + async def scenario() -> None: + owner = ResourceLifecycle(opened=True) + entered, gate = asyncio.Event(), asyncio.Event() + destroyed = False + closing = None + async def destroy(_: bool) -> None: + nonlocal destroyed + destroyed = True + async def operation() -> str: + nonlocal closing + closing = asyncio.create_task(owner.close()) + entered.set() + assert not destroyed + await gate.wait() + return "settled" + owner.own(object(), destroy) + loop = asyncio.get_running_loop() + previous = loop.get_task_factory() + loop.set_task_factory(factory) + try: + active = asyncio.create_task(owner.run(operation)) + await entered.wait() + assert not destroyed + gate.set() + assert await active == "settled" + assert closing is not None + await closing + assert destroyed and isinstance(owner.state, Closed) + finally: + loop.set_task_factory(previous) + + asyncio.run(_bounded_scenario(scenario())) diff --git a/bindings/python/tests/test_workflow.py b/bindings/python/tests/test_workflow.py index dcd2c685a..ff36e71e7 100644 --- a/bindings/python/tests/test_workflow.py +++ b/bindings/python/tests/test_workflow.py @@ -3,7 +3,7 @@ import asyncio from dataclasses import replace from pathlib import Path -from typing import Callable, Optional +from typing import Awaitable, Callable, Optional import pytest @@ -43,6 +43,12 @@ PROFILE = Profile("auths.mcp", 1) +async def _bounded_scenario(operation: Awaitable[None]) -> None: + # A missing completion is a test failure, never an unbounded CI allocation. + # Assertions still use controlled events and the injected lifecycle clock. + await asyncio.wait_for(operation, timeout=10) + + class ApprovalDouble: def __init__(self) -> None: self.calls = 0 @@ -240,7 +246,7 @@ async def scenario() -> None: assert parent_signer.sign_calls == 1 assert child_signer.sign_calls == 0 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_attach_loads_only_typed_signed_grant_material() -> None: @@ -269,7 +275,7 @@ async def scenario() -> None: assert source.calls == 1 await parent.aclose() - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) @pytest.mark.parametrize( @@ -350,7 +356,7 @@ async def scenario() -> None: assert parent_signer.sign_calls == 0 assert child_signer.close_calls == 1 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_action_widening_fails_before_approval() -> None: @@ -384,7 +390,7 @@ async def scenario() -> None: assert provider.calls == 0 assert parent_signer.sign_calls == 0 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_approval_substitution_never_calls_the_parent_signer() -> None: @@ -420,7 +426,7 @@ async def scenario() -> None: assert parent_signer.sign_calls == 0 assert child_signer.close_calls == 1 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_approval_fields_cannot_outlive_their_native_commitment() -> None: @@ -441,7 +447,7 @@ async def scenario() -> None: assert provider.calls == 0 assert child_signer.close_calls == 0 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) @pytest.mark.parametrize("substitution", ["request", "policy", "decision"]) @@ -501,7 +507,7 @@ async def scenario() -> None: assert parent_signer.sign_calls == 0 assert child_signer.close_calls == 1 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_signer_substitution_cannot_complete_the_child_grant() -> None: @@ -533,7 +539,7 @@ async def scenario() -> None: assert parent_signer.sign_calls == 1 assert child_signer.close_calls == 1 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) @pytest.mark.parametrize( @@ -587,7 +593,7 @@ def mutate(request: SigningRequest) -> SigningResponse: assert parent_signer.sign_calls == 1 assert child_signer.close_calls == 1 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_provider_errors_are_typed_and_sanitized() -> None: @@ -620,7 +626,7 @@ async def scenario() -> None: assert raised.value.code in registry_codes() assert "credential" not in str(raised.value) - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_cancellation_closes_the_partial_child_and_produces_no_signature() -> None: @@ -661,7 +667,7 @@ async def scenario() -> None: assert child_signer.close_calls == 1 assert parent_signer.sign_calls == 0 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_cancellation_during_child_identity_disposes_the_child_signer() -> None: @@ -699,7 +705,7 @@ async def scenario() -> None: assert child_signer.close_calls == 1 assert parent_signer.sign_calls == 0 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_cancellation_during_parent_signing_disposes_the_child_signer() -> None: @@ -736,7 +742,7 @@ async def scenario() -> None: await client.aclose() assert child_signer.close_calls == 1 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_client_cleanup_is_idempotent_for_root_and_child_signers() -> None: @@ -762,7 +768,7 @@ async def scenario() -> None: assert parent_signer.close_calls == 1 assert child_signer.close_calls == 1 - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) def test_native_transaction_is_single_use_across_approval_and_signature() -> None: @@ -923,4 +929,4 @@ async def scenario() -> None: assert raised.value.code == WORKFLOW_REASON_CODES["approval-failed"] assert raised.value.code in registry_codes() - asyncio.run(scenario()) + asyncio.run(_bounded_scenario(scenario())) diff --git a/bindings/typescript/api/public-api.txt b/bindings/typescript/api/public-api.txt index e51d0a619..7b41d8780 100644 --- a/bindings/typescript/api/public-api.txt +++ b/bindings/typescript/api/public-api.txt @@ -1,5 +1,5 @@ # Installed @auths-dev/sdk public API v1 -# declaration-sha256 44aa7226faa4044127345f4ed6ab7cc3edaeaa8874c446b43b342bafa51d8b5a +# declaration-sha256 fcdc04706c52ec9700e1c447c99fdbcb4424765477d5093c93940f17e82947f8 . AuthsError value+type . AuthsIssue type . EffectState type diff --git a/bindings/typescript/docs/resource-lifecycle.md b/bindings/typescript/docs/resource-lifecycle.md index 0d5812ab3..1268c9d99 100644 --- a/bindings/typescript/docs/resource-lifecycle.md +++ b/bindings/typescript/docs/resource-lifecycle.md @@ -9,6 +9,8 @@ An exposed closed/disposed property reports that admission has stopped. Await close/dispose to learn whether owned cleanup finished successfully; a stopped client may still retain active work or failed cleanup. Python constructors retain their owner synchronously; concurrent `open()` waiters share that owner. +Identity construction completes registration synchronously and returns `Open`; +its synchronous decoder is immediately usable. Closing still stops admission. TypeScript factories, workflow attachment/delegation and close/dispose accept `{ signal?, timeoutMs? }`. Python open, attach_agent, delegate and aclose accept diff --git a/bindings/typescript/src/approvals.ts b/bindings/typescript/src/approvals.ts index 6d8708d6c..f03e42cd6 100644 --- a/bindings/typescript/src/approvals.ts +++ b/bindings/typescript/src/approvals.ts @@ -8,7 +8,7 @@ import { type ReviewField, copyPolicy, } from "./workflow.js"; -import { AuthsWorkflowError, ProviderOperationError } from "./workflow/errors.js"; +import { AuthsWorkflowError, ProviderOperationError } from "./internal/operation-errors.js"; import { approvalBytes, approvalResponse, callApproval, captureApprovalContext, checkApprovalSignal, equalApprovalBytes, snapshotApproval } from "./internal/approval-operation.js"; import { loadPackagedWorkflowEngine } from "./verifier/wasm.js"; diff --git a/bindings/typescript/src/internal/approval-operation.ts b/bindings/typescript/src/internal/approval-operation.ts index 31bbd804e..fec5de857 100644 --- a/bindings/typescript/src/internal/approval-operation.ts +++ b/bindings/typescript/src/internal/approval-operation.ts @@ -4,7 +4,7 @@ import type { ApprovalRequest, ApprovalResponse, } from "../workflow/contracts.js"; -import { ProviderOperationError } from "../workflow/errors.js"; +import { ProviderOperationError } from "./operation-errors.js"; /** Decision bytes must belong to this isolate, never concurrently shared memory. */ export function approvalBytes(value: Uint8Array): Uint8Array { diff --git a/bindings/typescript/src/internal/lifecycle-resources.ts b/bindings/typescript/src/internal/lifecycle-resources.ts index 603dddf5f..a5d259a60 100644 --- a/bindings/typescript/src/internal/lifecycle-resources.ts +++ b/bindings/typescript/src/internal/lifecycle-resources.ts @@ -1,4 +1,4 @@ -import { AuthsWorkflowError } from "../workflow/errors.js"; +import { AuthsWorkflowError } from "./operation-errors.js"; const snapshots = new WeakMap(); diff --git a/bindings/typescript/src/workflow/errors.ts b/bindings/typescript/src/internal/operation-errors.ts similarity index 100% rename from bindings/typescript/src/workflow/errors.ts rename to bindings/typescript/src/internal/operation-errors.ts diff --git a/bindings/typescript/src/internal/resource-lifecycle.ts b/bindings/typescript/src/internal/resource-lifecycle.ts index 07ccffa93..a514b63e5 100644 --- a/bindings/typescript/src/internal/resource-lifecycle.ts +++ b/bindings/typescript/src/internal/resource-lifecycle.ts @@ -1,4 +1,4 @@ -import { AuthsWorkflowError } from "../workflow/errors.js"; +import { AuthsWorkflowError } from "./operation-errors.js"; /** Per-caller cancellation is separate from ownership of an asynchronous task. */ export interface LifecycleWaitOptions { diff --git a/bindings/typescript/src/plans.ts b/bindings/typescript/src/plans.ts index eff9b1f5b..5d38e2784 100644 --- a/bindings/typescript/src/plans.ts +++ b/bindings/typescript/src/plans.ts @@ -1,5 +1,5 @@ import { type Profile } from "./workflow.js"; -import { AuthsWorkflowError } from "./workflow/errors.js"; +import { AuthsWorkflowError } from "./internal/operation-errors.js"; import { loadPackagedWorkflowEngine } from "./verifier/wasm.js"; const PLAN_TOKEN: unique symbol = Symbol("auths-profile-plan"); diff --git a/bindings/typescript/src/workflow/authority-source.ts b/bindings/typescript/src/workflow/authority-source.ts index 815b1522a..4f287f106 100644 --- a/bindings/typescript/src/workflow/authority-source.ts +++ b/bindings/typescript/src/workflow/authority-source.ts @@ -1,4 +1,4 @@ -import { AuthsWorkflowError } from "./errors.js"; +import { AuthsWorkflowError } from "../internal/operation-errors.js"; import { boundedIdentifier } from "./internal/orchestrator.js"; import type { SignedGrantProvider, SignedGrantSourceOptions } from "./contracts.js"; diff --git a/bindings/typescript/src/workflow/internal/authority.ts b/bindings/typescript/src/workflow/internal/authority.ts index 529dcb83b..610ccaa2e 100644 --- a/bindings/typescript/src/workflow/internal/authority.ts +++ b/bindings/typescript/src/workflow/internal/authority.ts @@ -1,4 +1,4 @@ -import { AuthsWorkflowError } from "../errors.js"; +import { AuthsWorkflowError } from "../../internal/operation-errors.js"; import type { DelegationReview, EffectiveAuthoritySummary, diff --git a/bindings/typescript/src/workflow/internal/copying.ts b/bindings/typescript/src/workflow/internal/copying.ts index d87dbb4e9..3c729cf82 100644 --- a/bindings/typescript/src/workflow/internal/copying.ts +++ b/bindings/typescript/src/workflow/internal/copying.ts @@ -1,4 +1,4 @@ -import { AuthsWorkflowError } from "../errors.js"; +import { AuthsWorkflowError } from "../../internal/operation-errors.js"; import { TrustedContextSource } from "../trusted-context.js"; import type { GrantControlMaterial } from "./orchestrator.js"; import type { diff --git a/bindings/typescript/src/workflow/internal/orchestrator.ts b/bindings/typescript/src/workflow/internal/orchestrator.ts index 0547d7665..2edc150f2 100644 --- a/bindings/typescript/src/workflow/internal/orchestrator.ts +++ b/bindings/typescript/src/workflow/internal/orchestrator.ts @@ -24,8 +24,8 @@ export { type ProviderFailureKind, type RetryClass, type WorkflowErrorCode, -} from "../errors.js"; -import { AuthsWorkflowError, ProviderOperationError } from "../errors.js"; +} from "../../internal/operation-errors.js"; +import { AuthsWorkflowError, ProviderOperationError } from "../../internal/operation-errors.js"; const MAX_IDENTIFIER_BYTES = 128; const DIGEST_BYTES = 32; diff --git a/bindings/typescript/src/workflow/trusted-context.ts b/bindings/typescript/src/workflow/trusted-context.ts index a2d4eb2c5..ae08df3e7 100644 --- a/bindings/typescript/src/workflow/trusted-context.ts +++ b/bindings/typescript/src/workflow/trusted-context.ts @@ -1,4 +1,4 @@ -import { AuthsWorkflowError } from "./errors.js"; +import { AuthsWorkflowError } from "../internal/operation-errors.js"; import { boundedIdentifier } from "./internal/orchestrator.js"; import type { TrustedContextProvider, TrustedContextSourceOptions } from "./contracts.js"; diff --git a/bindings/typescript/test/unit/errors.test.js b/bindings/typescript/test/unit/errors.test.js index 7102f149a..de9611b51 100644 --- a/bindings/typescript/test/unit/errors.test.js +++ b/bindings/typescript/test/unit/errors.test.js @@ -1,7 +1,7 @@ import assert from "node:assert/strict"; import test from "node:test"; import { parseAuthsErrorEnvelope } from "../../dist/product-errors.js"; -import { AuthsWorkflowError, ProviderOperationError } from "../../dist/workflow/errors.js"; +import { AuthsWorkflowError, ProviderOperationError } from "../../dist/internal/operation-errors.js"; test("workflow and provider errors expose bounded recovery metadata", () => { const workflow = new AuthsWorkflowError("approval-timeout", "approval timed out", { diff --git a/docs/assurance/PROOF_COVERAGE.md b/docs/assurance/PROOF_COVERAGE.md index ec97ff428..ea698ec0e 100644 --- a/docs/assurance/PROOF_COVERAGE.md +++ b/docs/assurance/PROOF_COVERAGE.md @@ -7,7 +7,7 @@ At the commit that contains this document, 110 of 1,031 decision-scope functions (10.7%) and 1,289 of 11,353 code lines (11.4%) are translated to Lean and reached from audited theorem statements, and 15 of 82 kernel check sites map only to such functions. The rest of the decision path, including the staged verifier control flow, the composition evaluator, the registry handlers, the codec, and the signature suites, is tested, not proved. - Revision: the commit that contains this document and `formal/proof-coverage-v1.json`; a release binds it in its assurance evidence. -- Measurement inputs: sha256 `ac052be07bf5d42e8b136ee8c1e0cf94f0cc3253f24c787165acc5b8607e3781` over the 89 files listed in `formal/proof-coverage-v1.json`. +- Measurement inputs: sha256 `4349e6cd8fce763ce6f387b1fb627aff3f81f5c9986424edb809a529c0f8e092` over the 89 files listed in `formal/proof-coverage-v1.json`. - Tool: `cargo xtask formal coverage`, version 1. - Toolchain pins: `formal/lean-toolchain` = `leanprover/lean4:v4.31.0`; `formal/translation-toolchain.lock` sha256 `0c45a8a08ac06e313d775e669749097bd3a0abfb8e3395c69416ba0238770d53`. - Role table: `formal/coverage-scope-v1.toml`, sha256 `053f0be216b0003768d422d9ccc92a692726488874284fa80615657b30a495b5`. Figures computed under a different role table are not comparable. @@ -52,7 +52,7 @@ Files in scoped crates with a non-decision role (every other scoped file is deci | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | decision | 1,031 | 110 (10.7%) | 56 (5.4%) | 110 (10.7%) | 11,353 | 1,289 (11.4%) | 856 (7.5%) | 1,289 (11.4%) | | verifier-core | 785 | 86 (11.0%) | 41 (5.2%) | 86 (11.0%) | 8,802 | 907 (10.3%) | 558 (6.3%) | 907 (10.3%) | -| translated-crates | 1,146 | 213 (18.6%) | 70 (6.1%) | 213 (18.6%) | 10,738 | 2,497 (23.3%) | 1,027 (9.6%) | 2,497 (23.3%) | +| translated-crates | 1,148 | 213 (18.6%) | 70 (6.1%) | 213 (18.6%) | 10,756 | 2,497 (23.2%) | 1,027 (9.5%) | 2,497 (23.2%) | | verifier-closure | 1,083 | 86 (7.9%) | 41 (3.8%) | 86 (7.9%) | 13,762 | 907 (6.6%) | 558 (4.1%) | 907 (6.6%) | | decision-nontrivial | 443 | 81 (18.3%) | 44 (9.9%) | 81 (18.3%) | 9,589 | 1,202 (12.5%) | 820 (8.6%) | 1,202 (12.5%) | diff --git a/docs/plans/0076-implementation-status.md b/docs/plans/0076-implementation-status.md index 3691f4d5c..7de01e30b 100644 --- a/docs/plans/0076-implementation-status.md +++ b/docs/plans/0076-implementation-status.md @@ -9,15 +9,19 @@ Branch: `codex/explicit-state-ownership-spec`. ## Current authoritative status -Draft [PR #217](https://github.com/auths-dev/auths-proof/pull/217) contains the -initial approval/exporter batch at `35c6bd628a712c45e53aefec1995674ea94535da`. -Initial hosted verification exposed a Rust lint failure and approval mismatch -error projection regression. These are collected for the final repair batch. -The complete candidate implementation and regression batch is now written. -The two initial hosted failures have source repairs. Final review, generated -artifacts and bounded reproductions of the failed checks are in progress; -no completed-head CI success or merge is claimed. No intermediate revision has -been pushed while writing the remaining code. +[PR #217](https://github.com/auths-dev/auths-proof/pull/217) contains the complete +candidate implementation at `0045219ed61ca5790b9fe1510bec212cda81d260` and a +collected repair batch. The initial approval/exporter cohort exposed lint and +error-projection failures. The completed-source cohort additionally exposed the +identity-only dependency closure, synchronous Python construction, Python 3.12 +cleanup scheduling, strict typing, and a stale proof-coverage measurement. Each +has a concrete repair; final completed-head checks and merge remain required. + +No intermediate revision was pushed while writing the implementation. Hosted +checks on `0045219e` passed gateway isolation, operator packaging, SDK recipes, +recipe qualification, both maintained provider demos and the configured TLS +PostgreSQL cohort. The stalled Python workflow was cancelled rather than left +running; the repair reproduces and fixes its Python 3.12 scheduler behavior. | Requirements | Implementation / test owner | Evidence disposition | | --- | --- | --- | @@ -44,8 +48,22 @@ focused workflow/adapter/lifecycle regression batch (45 tests), and the new installed-package lifecycle/adapter checks (23 tests). WASM and binding vectors were rebuilt as prerequisites. The gateway semantic closure, TypeScript public declarations and semantic freeze are regenerated using their maintained -constructors. These local results do not replace completed-head hosted evidence; -Python runtime and native durable interruption results are not claimed here. +constructors. The collected repair additionally passes all 57 TypeScript package +tests and the complete Python 3.12 source suite (460 passed, 11 existing skips), +with Python lint and strict typing. The Python reproduction uses a short local +temporary path for macOS Unix sockets. Async lifecycle/workflow tests have an +outer diagnostic bound, and the hosted Python suite has an explicit step budget. +The bounded gateway run exposed an outdated CLI inventory and unpublished +qualification temporaries after process termination. Their complete repair batch +passes the inventory constructor and all six qualification tests, including the +full first/replacement interruption matrix, seeded orphan cleanup and competing +imports. The file-store conformance case initially hit its deadline during the +parallel filesystem batch; its unchanged internal process race passes when run +without unrelated test load. Other gateway targets passed in that diagnostic +batch. No assertion or production deadline was relaxed. Journal/floor content, +file-sync, replacement and parent-sync points are included in the termination +trace. These results do not replace completed-head hosted evidence; acceptance +remains tied to the exact completed-head checks below. ## Concrete evidence owners diff --git a/docs/specs/0077-administrative-recovery-protocol.md b/docs/specs/0077-administrative-recovery-protocol.md index f620f4931..816cabbaf 100644 --- a/docs/specs/0077-administrative-recovery-protocol.md +++ b/docs/specs/0077-administrative-recovery-protocol.md @@ -134,6 +134,18 @@ longer after restart; this is an explicit operational cost, not an ambiguity. ## 5. Qualification transition and durability order +Private file construction uses the reserved `.auths-pending-` namespace until +atomic publication to the official name. These unpublished temporaries carry no +accepted input or authority. Bundle readers exclude this namespace while still +bounding the total directory inventory. Under `qualification.lock`, staging +removes only reserved temporary regular files belonging to this UID, with private +permissions and one link, then synchronizes their directories. Other entries +are never deleted by temporary cleanup; unsafe reserved-file metadata fails +closed. Official retained inputs are compared exactly +and never removed to restage. Interruption during this temporary cleanup is +idempotently recoverable by the same explicit import. An incomplete retained +bundle still requires its original complete authenticated source bundle. + The closed projection is `Empty`, `Staged`, `FloorsAdvanced`, `CurrentPublished`, `RetiredCleanupPending`, or `Unavailable`. Read verification of actual files and retained/native floors supplies the state; no marker grants authority. @@ -221,6 +233,7 @@ binding/floors, custody generations, journal obligations and command outcome. | Each exact custody revoke and reply | Note retained until acknowledged exact deletion; lost reply remains incomplete and safe exact retry only. | | Each journal note removal and synchronization | Confirmed removal stays removed after success; ambiguity reloads journal and retains conservative uncertainty. | | Every qualification `.next` file/subdirectory/parent synchronization | Old accepted configuration remains or fails closed; staged incomplete input cannot advance floors. Re-import exact complete bundle. | +| Reserved unpublished temporary cleanup and directory synchronization | No accepted input is removed. Repeat the same complete import under the qualification lock; unsafe temporary metadata quarantines. | | Native qualification floor commit/reply, then verifier-memory replacement/sync | Retain `.next`; reload/reconcile upward. Old bundle cannot qualify below either floor. | | Remove old `.previous` and parent sync | Current must already be verified; interruption cannot trigger rollback. | | Current-to-previous rename and parent sync | Missing current is unavailable; explicit recovery uses verified `.next`, never assumes previous is current. | diff --git a/formal/proof-coverage-functions-v1.tsv b/formal/proof-coverage-functions-v1.tsv index b91ad42c2..128d288c4 100644 --- a/formal/proof-coverage-functions-v1.tsv +++ b/formal/proof-coverage-functions-v1.tsv @@ -1192,66 +1192,68 @@ product/policy/auths-bounded-policy/src/receipt.rs 142 144 3 BoundedDecisionEnve product/policy/auths-bounded-policy/src/registry.rs 39 63 25 validate_registry product/policy/auths-bounded-policy decision 1 0 1 0 0 0 0 product/runtime/auths-connections/src/credential.rs 40 46 7 SecretBytes::new product/runtime/auths-connections decision 0 0 0 0 0 0 product/runtime/auths-connections/src/credential.rs 48 50 3 SecretBytes::expose product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 56 58 3 SecretBytes::expose_to_store product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 62 64 3 SecretBytes::fmt product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 67 69 3 valid_secret_length product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 84 86 3 CredentialReferenceCommitment::of product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 90 92 3 CredentialReferenceCommitment::as_bytes product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 96 98 3 CredentialReferenceCommitment::matches product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 107 109 3 CredentialReferenceCommitment::fmt product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 127 129 3 StoredSecretLease::from_store product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 136 141 6 StoredSecretLease::expose product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 145 147 3 StoredSecretLease::fmt product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 182 187 6 CredentialStoreKind::parse product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 191 196 6 CredentialStoreKind::as_str product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 201 206 6 CredentialStoreKind::is_production product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 322 327 6 StoredSecret::holds product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 336 345 10 InMemoryCredentialStore::new product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 347 349 3 InMemoryCredentialStore::total_bytes product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 354 384 31 InMemoryCredentialStore::install product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 386 400 15 InMemoryCredentialStore::lease_secret product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 402 443 42 InMemoryCredentialStore::replace product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 445 457 13 InMemoryCredentialStore::revoke product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 459 465 7 InMemoryCredentialStore::holds product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 467 505 39 InMemoryCredentialStore::confirm product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 507 522 16 InMemoryCredentialStore::retire_superseded product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 524 536 13 InMemoryCredentialStore::delete_connection product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 565 571 7 PersistentCredentialStore::open product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 579 605 27 PersistentCredentialStore::open_with_limits product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 607 624 18 PersistentCredentialStore::mutate product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 629 673 45 PersistentCredentialStore::writer_lock product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 675 688 14 PersistentCredentialStore::refresh product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 690 698 9 PersistentCredentialStore::current_entries product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 700 702 3 PersistentCredentialStore::total_bytes product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 717 726 10 PersistentCredentialStore::retained_commitment product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 735 743 9 PersistentCredentialStore::stored_generations product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 759 770 12 PersistentCredentialStore::lease_for_record product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 778 784 7 PersistentCredentialStore::holds_record_credential product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 804 840 37 PersistentCredentialStore::store_confirmed product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 856 861 6 PersistentCredentialStore::revoke_connection product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 878 903 26 PersistentCredentialStore::retain_generations product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 905 926 22 PersistentCredentialStore::delete_generations product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 931 941 11 retained_entry product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 949 969 21 binding_entry product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 973 996 24 record_entry product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 998 1006 9 connection_generations product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1010 1038 29 PersistentCredentialStore::install product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1040 1051 12 PersistentCredentialStore::lease_secret product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1053 1097 45 PersistentCredentialStore::replace product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1099 1110 11 PersistentCredentialStore::revoke product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1112 1115 4 PersistentCredentialStore::holds product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1117 1129 13 PersistentCredentialStore::confirm product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1131 1144 14 PersistentCredentialStore::retire_superseded product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1146 1152 7 PersistentCredentialStore::delete_connection product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1155 1168 14 validate_parent product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1170 1185 16 validate_secret_file product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1187 1216 29 read_persistent_entries product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1218 1249 32 persist_entries product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1254 1265 12 encode_persistent_entries product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1267 1289 23 write_persistent_entries product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1297 1300 4 EncodedLength::write_all product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1303 1397 95 decode_persistent_entries product/runtime/auths-connections decision 0 0 0 0 0 0 -product/runtime/auths-connections/src/credential.rs 1428 1439 12 credential_commitment product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 55 61 7 SecretBytes::reference_commitment product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 67 69 3 SecretBytes::expose_to_store product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 73 75 3 SecretBytes::fmt product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 78 80 3 valid_secret_length product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 95 97 3 CredentialReferenceCommitment::of product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 101 103 3 CredentialReferenceCommitment::as_bytes product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 107 109 3 CredentialReferenceCommitment::matches product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 118 120 3 CredentialReferenceCommitment::fmt product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 138 140 3 StoredSecretLease::from_store product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 147 152 6 StoredSecretLease::expose product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 156 158 3 StoredSecretLease::fmt product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 193 198 6 CredentialStoreKind::parse product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 202 207 6 CredentialStoreKind::as_str product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 212 217 6 CredentialStoreKind::is_production product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 338 343 6 StoredSecret::holds product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 352 361 10 InMemoryCredentialStore::new product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 363 365 3 InMemoryCredentialStore::total_bytes product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 370 400 31 InMemoryCredentialStore::install product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 402 416 15 InMemoryCredentialStore::lease_secret product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 418 459 42 InMemoryCredentialStore::replace product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 461 473 13 InMemoryCredentialStore::revoke product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 475 481 7 InMemoryCredentialStore::holds product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 483 521 39 InMemoryCredentialStore::confirm product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 523 538 16 InMemoryCredentialStore::retire_superseded product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 540 552 13 InMemoryCredentialStore::delete_connection product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 581 587 7 PersistentCredentialStore::open product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 595 621 27 PersistentCredentialStore::open_with_limits product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 623 640 18 PersistentCredentialStore::mutate product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 645 689 45 PersistentCredentialStore::writer_lock product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 691 704 14 PersistentCredentialStore::refresh product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 706 714 9 PersistentCredentialStore::current_entries product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 716 718 3 PersistentCredentialStore::total_bytes product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 733 742 10 PersistentCredentialStore::retained_commitment product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 751 759 9 PersistentCredentialStore::stored_generations product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 775 786 12 PersistentCredentialStore::lease_for_record product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 794 800 7 PersistentCredentialStore::holds_record_credential product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 820 856 37 PersistentCredentialStore::store_confirmed product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 872 877 6 PersistentCredentialStore::revoke_connection product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 894 919 26 PersistentCredentialStore::retain_generations product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 921 942 22 PersistentCredentialStore::delete_generations product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 947 957 11 retained_entry product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 965 985 21 binding_entry product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 989 1012 24 record_entry product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1014 1022 9 connection_generations product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1026 1054 29 PersistentCredentialStore::install product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1056 1067 12 PersistentCredentialStore::lease_secret product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1069 1113 45 PersistentCredentialStore::replace product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1115 1126 11 PersistentCredentialStore::revoke product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1128 1131 4 PersistentCredentialStore::holds product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1133 1145 13 PersistentCredentialStore::confirm product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1147 1160 14 PersistentCredentialStore::retire_superseded product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1162 1168 7 PersistentCredentialStore::delete_connection product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1171 1184 14 validate_parent product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1186 1201 16 validate_secret_file product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1203 1232 29 read_persistent_entries product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1234 1265 32 persist_entries product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1270 1281 12 encode_persistent_entries product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1283 1305 23 write_persistent_entries product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1313 1316 4 EncodedLength::write_all product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1319 1413 95 decode_persistent_entries product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1449 1459 11 CredentialStoreError::certifies_no_mutation product/runtime/auths-connections decision 0 0 0 0 0 0 +product/runtime/auths-connections/src/credential.rs 1462 1473 12 credential_commitment product/runtime/auths-connections decision 0 0 0 0 0 0 product/runtime/auths-connections/src/kernel.rs 29 31 3 next_generation product/runtime/auths-connections decision 0 0 1 1 1 1 product/runtime/auths-connections/src/kernel.rs 36 44 9 state_change product/runtime/auths-connections decision 0 0 1 1 1 1 product/runtime/auths-connections/src/kernel.rs 49 57 9 rotation product/runtime/auths-connections decision 0 0 1 1 1 1 diff --git a/formal/proof-coverage-v1.json b/formal/proof-coverage-v1.json index 6c6ddb669..c1d333022 100644 --- a/formal/proof-coverage-v1.json +++ b/formal/proof-coverage-v1.json @@ -16,7 +16,7 @@ "translation_toolchain_lock_sha256": "0c45a8a08ac06e313d775e669749097bd3a0abfb8e3395c69416ba0238770d53" }, "scope_definition_sha256": "053f0be216b0003768d422d9ccc92a692726488874284fa80615657b30a495b5", - "inputs_sha256": "ac052be07bf5d42e8b136ee8c1e0cf94f0cc3253f24c787165acc5b8607e3781", + "inputs_sha256": "4349e6cd8fce763ce6f387b1fb627aff3f81f5c9986424edb809a529c0f8e092", "inputs": { "Cargo.toml": "sha256:ccc17deac72da945940a9ab4be2ce27628c056b977d19429bc1679b19fae30f3", "core/crates/auths-algebra-kernel/Cargo.toml": "sha256:0cb078915287b8c47d20fb97b6fa14135ed1c61c4985c4de2753855563c27bba", @@ -84,7 +84,7 @@ "product/policy/auths-bounded-policy/src/lib.rs": "sha256:76a18638b810e62e594d6e951504679305ce21841388e0c282ad51cd7841b91c", "product/policy/auths-bounded-policy/src/receipt.rs": "sha256:3b9eae82f349956d3e7f29b57b254bff5ce67cc703e6cf43445ce2827676d1ad", "product/policy/auths-bounded-policy/src/registry.rs": "sha256:4e251ea5833559841f8ee0bd9b66c0c01c39fa5e3a21720a19c4e8adbfcb99d0", - "product/runtime/auths-connections/src/credential.rs": "sha256:7e6fbca8911d5c0c1baddf35572236d419566dd6e3fcbbdfda77c8dd114dbcad", + "product/runtime/auths-connections/src/credential.rs": "sha256:22bc7de6bcab7cebebb64edf6423d59b6493b78dca65b9da62749e3171217762", "product/runtime/auths-connections/src/kernel.rs": "sha256:a456af19526ef7b19278551fd8d97606b6e7aa5a195e70bdd85d1e0786090ce8", "product/runtime/auths-connections/src/lib.rs": "sha256:79209249a0acba0e854d9937255ea0e30a9a6f8e1c2baad77ab83646d392de22", "product/runtime/auths-connections/src/model.rs": "sha256:de34a089cac9702acb889b7602b3e4732306c9e61029ec892582b7e02b73fc77", @@ -245,33 +245,33 @@ "translated-crates": { "scope": "translated-crates", "minimum_code_lines": 0, - "functions": 1146, - "span_lines": 10758, - "code_lines": 10738, + "functions": 1148, + "span_lines": 10776, + "code_lines": 10756, "by_level": { "translated": { "functions": 213, - "function_share": 0.1859, + "function_share": 0.1855, "span_lines": 2508, - "span_line_share": 0.2331, + "span_line_share": 0.2327, "code_lines": 2497, - "code_line_share": 0.2325 + "code_line_share": 0.2321 }, "direct": { "functions": 70, - "function_share": 0.0611, + "function_share": 0.061, "span_lines": 1038, - "span_line_share": 0.0965, + "span_line_share": 0.0963, "code_lines": 1027, - "code_line_share": 0.0956 + "code_line_share": 0.0955 }, "closure": { "functions": 213, - "function_share": 0.1859, + "function_share": 0.1855, "span_lines": 2508, - "span_line_share": 0.2331, + "span_line_share": 0.2327, "code_lines": 2497, - "code_line_share": 0.2325 + "code_line_share": 0.2321 } } }, @@ -548,8 +548,8 @@ "refined_closure_code_lines": 182 }, "product/runtime/auths-connections": { - "decision_functions": 157, - "decision_code_lines": 1965, + "decision_functions": 159, + "decision_code_lines": 1983, "translated": 5, "refined_closure": 5, "refined_closure_code_lines": 51 diff --git a/product/runtime/auths-gateway/semantic-closure.json b/product/runtime/auths-gateway/semantic-closure.json index 9c3bd4002..103e23644 100644 --- a/product/runtime/auths-gateway/semantic-closure.json +++ b/product/runtime/auths-gateway/semantic-closure.json @@ -1 +1 @@ -{"files":[{"path":"Cargo.lock","sha256":"77ae14c9bbf8dc445841fa919923f17d9c7dceec704ddcaa88dafe5dd92f6c2b"},{"path":"Cargo.toml","sha256":"ccc17deac72da945940a9ab4be2ce27628c056b977d19429bc1679b19fae30f3"},{"path":"core/adapters/auths-did-keri/Cargo.toml","sha256":"86ba3e3f9a0a70d970568bfb3113b7ba7bbdd81c3eebbb52743dd574a0c0ecaa"},{"path":"core/adapters/auths-did-keri/src/lib.rs","sha256":"a75674842f8a7142004369ccd206ab43e476459293f0ff4bed4d4e659031b3e3"},{"path":"core/adapters/auths-did-key/Cargo.toml","sha256":"d5a3ae07ecde83f91eed4c3785051dd0f44eab6c891754f3309b6b40596707d7"},{"path":"core/adapters/auths-did-key/src/lib.rs","sha256":"b76a3f4528a725df53cfa9242e6e414e1d26caa48468aaed497e28b121f4497c"},{"path":"core/adapters/auths-raw-key/Cargo.toml","sha256":"f49616bc18c19e6aaa7e6a02ccebcdb9f5c1422c1278ef9869e0dbf22ceda7be"},{"path":"core/adapters/auths-raw-key/src/lib.rs","sha256":"45eec1b295dac3bed65cd79c942870b926b06b3f5d38eaebaeb6140ac69315fa"},{"path":"core/crates/auths-algebra-kernel/Cargo.toml","sha256":"0cb078915287b8c47d20fb97b6fa14135ed1c61c4985c4de2753855563c27bba"},{"path":"core/crates/auths-algebra-kernel/src/generated.rs","sha256":"ae4bcbef42a408c7ffa0c6a74a42f7de177a6f14479e51d205acf830bda05960"},{"path":"core/crates/auths-algebra-kernel/src/lib.rs","sha256":"6654667eeb9b353d6648954c9fd2e8838462a82ce6b2803eb49e1366892c68c6"},{"path":"core/crates/auths-assurance/Cargo.toml","sha256":"afcb12a97ddd09d7a264b9ecd3fcaefc865ff2c9b4539ee85b00883420ba333a"},{"path":"core/crates/auths-assurance/src/lib.rs","sha256":"0fb2ec844d674b25a9e20b1601452c89c2454901fa506adfa9bb38ef9a7fa213"},{"path":"core/crates/auths-author/Cargo.toml","sha256":"1e6f0e3bc079ddb558decf0db26b291c6e72fc47327b6df1b7650d41689b215f"},{"path":"core/crates/auths-author/src/lib.rs","sha256":"e14475f2f49715a1869d5fa6b11ff1fbb72497e39097e09f833b0bae7e5b3f2b"},{"path":"core/crates/auths-author/src/observations.rs","sha256":"dda7d6bfa6f4bd7e95a480ca283c2c0e996f69c5c15cb0c7197af328131a7066"},{"path":"core/crates/auths-authority/Cargo.toml","sha256":"4f68212938029f79ebd857b4f3038494eb85d0163d49f07e51376715cf959815"},{"path":"core/crates/auths-authority/src/lib.rs","sha256":"da88d5194de4e17449e69972c0fb042afa3c39798a8f570f30771e77c384f1eb"},{"path":"core/crates/auths-codec/Cargo.toml","sha256":"e20e51826e17814effd9d8925d18d5fbdd6c0d37bf50231e743ec2611314722c"},{"path":"core/crates/auths-codec/src/approval.rs","sha256":"fbff43bf4d57f69f8b7738a8647751cde75c5a932dee65d924a1fe9c7202f91f"},{"path":"core/crates/auths-codec/src/bounded_policy.rs","sha256":"d21f6728be2d8a04b6d94921f2b683f7e61cbb42e0ac6866f1c88a49caa534c3"},{"path":"core/crates/auths-codec/src/decode.rs","sha256":"ba2999584cdf53b1b517ecb9c7ea50d39efee17c666a9a38e2ad1ac94379f778"},{"path":"core/crates/auths-codec/src/encode.rs","sha256":"8491192053e2e15d62b4d2a491de22405b7487ead69ab6f6bca40669ce7ca5f7"},{"path":"core/crates/auths-codec/src/error.rs","sha256":"fecb0737c16deb42d859f1dc7727c698438d9ac12064fd99e0024629642c390c"},{"path":"core/crates/auths-codec/src/hash.rs","sha256":"f88e111f1dbb2cef6b7b5e9c948cb45ff92e366710c8a5f5c636138aa748479e"},{"path":"core/crates/auths-codec/src/lib.rs","sha256":"3b0e5c94c6f34f750b88a9333e1d5c8145746d845d3a23e0d2f61807cf592ea7"},{"path":"core/crates/auths-codec/src/observation.rs","sha256":"38328b0c71ff97a4196eeade8b4faa889527ff1f80bb168468bcd49082a3987e"},{"path":"core/crates/auths-composition/Cargo.toml","sha256":"331e13025eb82588b5269ed3975929eb41c823d588c49e4c296273d85c6fe80e"},{"path":"core/crates/auths-composition/src/lib.rs","sha256":"e42e3b0b6a9985b73c533aeb23799c638979aa27a9ce7d0f10a8d60340570fb1"},{"path":"core/crates/auths-model/Cargo.toml","sha256":"565c15302b0cc9270db1e28efa3862804846850ba933cc17aea8abcec4a65987"},{"path":"core/crates/auths-model/src/approval.rs","sha256":"54cf44a9ef747ec21546a4086aecfb130bc7803b0d646430e6082df51e6e305f"},{"path":"core/crates/auths-model/src/bounded.rs","sha256":"f90496abc0a06c028b4d850af6ddab7d850bfafeaa3d042f1b1246a41d8bbbc9"},{"path":"core/crates/auths-model/src/bounded_policy.rs","sha256":"306a8f049cc7cfc7635fe0e4de47eb7813eed63d3c14c3be2b51586aa4eea450"},{"path":"core/crates/auths-model/src/lib.rs","sha256":"e7cfe6bb9574c6b016aa63e70658c31e0b90903ec6479a49f4a2ceb64f5bad97"},{"path":"core/crates/auths-model/src/observation.rs","sha256":"b3ed3e3cc090afca2896a7d3de7988afccc1ee1ea0ebd91b51a8bc0f20ad8dbb"},{"path":"core/crates/auths-multikey/Cargo.toml","sha256":"858756c1197befcada06134742bffe8d58cf674cadd6c046bf710570e96efaf2"},{"path":"core/crates/auths-multikey/src/lib.rs","sha256":"f5177fffb11e40eeaaa665ba886c541fc1f24d5eacdd6983fb03dc20148733f0"},{"path":"core/crates/auths-ports/Cargo.toml","sha256":"596a9b0f5af3717c16a6d13f7054d8a106bcd9f01f5f72c2235dd2afcf0ab16c"},{"path":"core/crates/auths-ports/src/binding.rs","sha256":"a16c012d40aa4249e3ec54372b9611006d0bfe8c7dc3c741911c2194ad17736d"},{"path":"core/crates/auths-ports/src/diagnostics.rs","sha256":"aa596572503b5a65a918bb2ff38281c144ff53821ee914e9325c852828d852df"},{"path":"core/crates/auths-ports/src/lib.rs","sha256":"8da1debf86f9532df0660155d04298beb1ba3a1204508f8586e2e67cd2fb3449"},{"path":"core/crates/auths-ports/src/path.rs","sha256":"b68fc547b4e4d97a60cbbc1cc1939fc6b34a8233b81f840bd396914a707e3ea1"},{"path":"core/crates/auths-raw-key-core/Cargo.toml","sha256":"98c0bc8527a537512e43a74dd6ba9658c6f0cdc16610cf938e3f9b43785d836d"},{"path":"core/crates/auths-raw-key-core/src/lib.rs","sha256":"98c0500c41697aae28708ad0bf970b9a97583d96a3d2c18d23e7fa351e0f7d12"},{"path":"core/crates/auths-registries/Cargo.toml","sha256":"590e49e58b0622d9d6274fea46796dcdb07dec9550eff295cce6a6427ffa51e2"},{"path":"core/crates/auths-registries/src/lib.rs","sha256":"450d3886d85ee333b7e046317fb5b47cde62483d5f3e41d46265e2caf4c373ec"},{"path":"core/crates/auths-registries/src/template.rs","sha256":"1224039dd2b3ce6fa8357613d8cafbae40400493da7176da202b9ade62fa05e4"},{"path":"core/crates/auths-signature-core/Cargo.toml","sha256":"6bee2230eb30af1be0bd5c2d57bd3e1903497a70028d47290d4ac6e9e0e8bca0"},{"path":"core/crates/auths-signature-core/src/lib.rs","sha256":"db97ecb45a82faa6f96a92738d3af1da92d1ba2f241f2c29114f4b8107dc4ab0"},{"path":"core/crates/auths-signature/Cargo.toml","sha256":"7f7b5682466ba439d8c59579022cb61068cad9fb4bd2d73e1cc21327c902b450"},{"path":"core/crates/auths-signature/src/lib.rs","sha256":"b3d9ac4cc3ba0797b9e1c09f2d6ac05089b25dac4e285a5af28c0165b33d925b"},{"path":"core/crates/auths-verifier/Cargo.toml","sha256":"c43358e06a33324b41a8b93e5cc7279c55f7d21f1f6cfaa539a3fc7b4c27a38f"},{"path":"core/crates/auths-verifier/src/approval.rs","sha256":"c3cae6a49e169051eb555bb092b1069a4d422516d6a2114623a89e5f31ff923f"},{"path":"core/crates/auths-verifier/src/causal.rs","sha256":"9635230f33b13a263573d319ac8a1976addbcc07677514a43e3c7bf28dc04587"},{"path":"core/crates/auths-verifier/src/lib.rs","sha256":"f22dec38dfa47ced8da4f605390da8453273bee1da010f57fd1fdfcb10e0b389"},{"path":"core/crates/auths-verifier/src/observation.rs","sha256":"0bb07f06a0f9524c88427df1c972b1de8ba038a9eeeb15d3134c25125ae84b1e"},{"path":"core/crates/auths-verifier/src/trace.rs","sha256":"2213d72023a1d9e0413a2cf2c51c3dad9e04775d86033a0caaa9d29a8f0036f8"},{"path":"exchange/crates/auths-proof-exchange-model/Cargo.toml","sha256":"34b2db64f93a288e942b5a3918d28cdcbef906e0dc9074ce848018d3d5f7a1fa"},{"path":"exchange/crates/auths-proof-exchange-model/src/lib.rs","sha256":"49fac5aff2339d3a57c41cb8bb2a82852538e8f77ecc4b157c88e264ff31fb55"},{"path":"exchange/crates/auths-proof-exchange-port/Cargo.toml","sha256":"7ff660f1b7579dc570c791090aeb450404fbbf44c92781e289f5ccdde746d739"},{"path":"exchange/crates/auths-proof-exchange-port/src/lib.rs","sha256":"b408fb40c6432edc1facb3d8b3e9433a033f8dc73fe2e0ba5a88c972ca675021"},{"path":"product/config/auths-config/Cargo.toml","sha256":"e4b568ab9f6d84f7d7e6d66443fe825f360db9c27bc7c31d6ddc0647ba3ab304"},{"path":"product/config/auths-config/src/lib.rs","sha256":"fecf00ea65cef9018fda9af2063326d7065b869266d0d9e73a4f06816f1102cc"},{"path":"product/errors/auths-errors/Cargo.toml","sha256":"3b3a199b6460ba75bda84475bb5accd35e1485448a3981038db85bf4772dd350"},{"path":"product/errors/auths-errors/src/lib.rs","sha256":"7feeb9069fa4003f94f1f07c1c94619cf1c883e0dbaaf2187f04d0f742264bdd"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/Cargo.toml","sha256":"716f1f2a117d6d69d8effe9ee9057e24ba3502f20af6a602b06facb638cdabed"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/api.rs","sha256":"9ea61dd7ddd93282b073b98e453e6b75b26dc49689c04e9782435d06a3a09e48"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/clock.rs","sha256":"73f0a6e0f5903883329fa6683f5888288f759512ac69e5c87efd2b6b87f7d79f"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/http.rs","sha256":"14c1fce14e24c984b2a275563a29b6326fb08367922b6e8d37ba38b9cb81aa2b"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/identity.rs","sha256":"186de11230c8b33375951c4368609f8976bf9795f171af3fd7fac26207a94361"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/lib.rs","sha256":"0b4617d044f5254a5ab22f5a2578f91cc025206a8c1845be39c1c56dcdf7a5df"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/names.rs","sha256":"41bb23572d6002e23ee103d6fe70ecd68764861c6f2e48a1c53af998270a4afa"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/sigv4.rs","sha256":"39fed883f4802e68d3b41a68fea0aba0737810996b33d13577de70faba004c29"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/store.rs","sha256":"fc60ee9c49b2f4f063c449b4c78100c5c4872779e94ca168f796603b380ef6e4"},{"path":"product/integrations/auths-custody/Cargo.toml","sha256":"1e14034185ad1ec24a977fd5f41d0abee219606245c046ce2a82287fadef448b"},{"path":"product/integrations/auths-custody/src/conformance.rs","sha256":"13a2b28bba4a7af5b00bb96d16ecf027d35d5487b314e48a666fb8ed09c2f2e9"},{"path":"product/integrations/auths-custody/src/key.rs","sha256":"c3b1468b8538421a796aeb65a0cd94b942e3788e78741f20dde07b4838e0c3da"},{"path":"product/integrations/auths-custody/src/lib.rs","sha256":"836ad8044440fd250457a46f5c4a980339534a8af6a4daac2643560050b62d39"},{"path":"product/operations/auths-operations/Cargo.toml","sha256":"73dde1e914ba5e1386f8d49c0d730423cc72ae77ec44c6554a6a75cc8e8922b1"},{"path":"product/operations/auths-operations/src/explanation.rs","sha256":"b4a39bcbd5712cb9e735ee7deeb281f3fa6af5ddca973735bf3d87dce427ef11"},{"path":"product/operations/auths-operations/src/lib.rs","sha256":"3f401a56555113b98f57bca172a2660eaecedf76247b83a3fdbb089c133a29cd"},{"path":"product/operations/auths-operations/src/render/json.rs","sha256":"2ae042639960afee123730e945d373bc5dda1d2b3af20ae16c939a7e99b9e418"},{"path":"product/operations/auths-operations/src/render/mod.rs","sha256":"b3b7f6fe473f49227ace5a68bfc3d8dc14b5db8dd9888fd9e207070337b1b8bf"},{"path":"product/operations/auths-operations/src/render/text.rs","sha256":"f216cf3bdb00e264523271b16e7059535ac6b1aabf271cebd7935af155e4bfec"},{"path":"product/policy/auths-bounded-policy/Cargo.toml","sha256":"babd5d200923137ead71d8c2528f847cea323ce98da942a1320b054436612c47"},{"path":"product/policy/auths-bounded-policy/src/arithmetic.rs","sha256":"75e43c5d4eab8d1f71c1daf53839f5f9fe45a400afc1f63a30c6f55ce3632627"},{"path":"product/policy/auths-bounded-policy/src/commitment.rs","sha256":"c5706f2d583454e1a7f570f7ada138d4d864bef0205dfae7c1296774f396bb3f"},{"path":"product/policy/auths-bounded-policy/src/eligibility.rs","sha256":"c9acdfb793074e687fc36efad506be27dbd99ffbf40387bc66c8de39ef238432"},{"path":"product/policy/auths-bounded-policy/src/identifier.rs","sha256":"0006a32bae9eb16c4178cf797df418d2b0a781f2bc6474b741dc1a908141831c"},{"path":"product/policy/auths-bounded-policy/src/kernel.rs","sha256":"99187c28b161ac70bee1afed60711f7f645adb4d1671a01863f9849b369811d5"},{"path":"product/policy/auths-bounded-policy/src/lib.rs","sha256":"76a18638b810e62e594d6e951504679305ce21841388e0c282ad51cd7841b91c"},{"path":"product/policy/auths-bounded-policy/src/receipt.rs","sha256":"3b9eae82f349956d3e7f29b57b254bff5ce67cc703e6cf43445ce2827676d1ad"},{"path":"product/policy/auths-bounded-policy/src/registry.rs","sha256":"4e251ea5833559841f8ee0bd9b66c0c01c39fa5e3a21720a19c4e8adbfcb99d0"},{"path":"product/profiles/auths-profile-api/Cargo.toml","sha256":"7ae85761f58625b5d678f961fd052eebf3e000ef565c7312e3ac857763c0017f"},{"path":"product/profiles/auths-profile-api/src/lib.rs","sha256":"a194b82b20bf8aa864c2334ef6c6aec30b2154ded972862252d5dcefa488ab95"},{"path":"product/profiles/auths-profile-mcp/Cargo.toml","sha256":"db264fc25242f7b7e4133cbe5782545b3107b406c87168ae072683cfb59eac66"},{"path":"product/profiles/auths-profile-mcp/src/arguments.rs","sha256":"a5de696586d507e2aee4a49fee99ef1ef4c51a2e46603f8838f1af6d9009833f"},{"path":"product/profiles/auths-profile-mcp/src/lib.rs","sha256":"d0f8b733a09ef8408336cdebc8948d6a5861012ce6878598b11be7084dfd4280"},{"path":"product/profiles/auths-profile-mcp/src/session.rs","sha256":"166c281fa66333388e4760d6098dad02d3359e1d5de4b8f93312c014f97abb03"},{"path":"product/qualification/auths-recipe-qualification/Cargo.toml","sha256":"b7b15b30b9a3d96d4f089d514266d3a892de6608d30707aa44be31cca89ca9fe"},{"path":"product/qualification/auths-recipe-qualification/src/canonical.rs","sha256":"30a9b50777f0dcb4b606abfee2467d5a975d9f6ad941ab6c13ca3df5b359f667"},{"path":"product/qualification/auths-recipe-qualification/src/closure.rs","sha256":"0ad6aee9bd981e2863fa725f209ec84031db2ff12f4c7ac3aaf5120f0bb86039"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning.rs","sha256":"db135c55e4e3079a73253ebae275536523eb36b545d1c152b4d7dce3c6b76828"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning/tests.rs","sha256":"4dde3736d206099b1bea4c14e0092c6c1287d1af9065958777d7c54331dd8686"},{"path":"product/qualification/auths-recipe-qualification/src/error.rs","sha256":"52d5cf720a1e4579008fdda90a3ac2c31f0b8db57985f121f65e54b4da2b7dd1"},{"path":"product/qualification/auths-recipe-qualification/src/evidence.rs","sha256":"ba45a7409d67a8af26ab811af306412014557477a101ab2a8eb0faf8f2bd4b91"},{"path":"product/qualification/auths-recipe-qualification/src/ids.rs","sha256":"e81a906d571497ab2da753e1532d4443706410e0b75fdd59a7d2d788c7aec403"},{"path":"product/qualification/auths-recipe-qualification/src/launch.rs","sha256":"805154ce931e3977f2a2a2c62909d90f7c0a22dc167bf4f1554dcf19316ffef8"},{"path":"product/qualification/auths-recipe-qualification/src/lib.rs","sha256":"0e24b0f81191df0d078c7f4d73ced784ba9472372bfcdff3c7d0e2fb1687b323"},{"path":"product/qualification/auths-recipe-qualification/src/model.rs","sha256":"3484eb0ec287b23d4682ade7b1b0f8d1335985b3fb180f06fc28716076957d5f"},{"path":"product/qualification/auths-recipe-qualification/src/release.rs","sha256":"ec478e53f70052e566aac7e15be2f9e1b1cd46837ac6990ae955fa864d311586"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/mod.rs","sha256":"1e4e5edc12d921e6b95475b3c1850f58f622c088d24a1fc9398d34019fb2f288"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/schemas.rs","sha256":"c59feec2805621f341a90f81fc005e2c12f7a70f9d264fdeacccb2be4fe1c046"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/verification.rs","sha256":"bdf5746fed4d10a7f577f7878619a917d29aa8b7d522f00d9f774e53eff4c8c1"},{"path":"product/qualification/auths-recipe-qualification/src/verify.rs","sha256":"646ff0e52e915174ad183768706e35e5ce2118b83475455310b930a77a7877f6"},{"path":"product/receipts/auths-receipts/Cargo.toml","sha256":"6001fa1375899953aafcb07c23a6da0c8f57ea7ec08bb9c950b12a60a8cc6f0f"},{"path":"product/receipts/auths-receipts/src/disclosure.rs","sha256":"ba9ed439be0a320c8a01f5b6e9b51361c1a37e076947490d8e4a484ba6bb119c"},{"path":"product/receipts/auths-receipts/src/lib.rs","sha256":"547a57c4160256719cafb7d0ab972d9fc80b0da14fbbce4148c70c414070ff36"},{"path":"product/runtime/auths-connections/Cargo.toml","sha256":"babeb6e1dda3dfb66291713ce1e43dce5c349833d0b50ea4dccbf986030026b2"},{"path":"product/runtime/auths-connections/src/credential.rs","sha256":"22bc7de6bcab7cebebb64edf6423d59b6493b78dca65b9da62749e3171217762"},{"path":"product/runtime/auths-connections/src/kernel.rs","sha256":"a456af19526ef7b19278551fd8d97606b6e7aa5a195e70bdd85d1e0786090ce8"},{"path":"product/runtime/auths-connections/src/lib.rs","sha256":"79209249a0acba0e854d9937255ea0e30a9a6f8e1c2baad77ab83646d392de22"},{"path":"product/runtime/auths-connections/src/model.rs","sha256":"de34a089cac9702acb889b7602b3e4732306c9e61029ec892582b7e02b73fc77"},{"path":"product/runtime/auths-connections/src/registry.rs","sha256":"e57640e003e72ad3235c567c2bb944a262bd64e673f023b62ea091094cc7e946"},{"path":"product/runtime/auths-gateway-kernel/Cargo.toml","sha256":"34f864e67656af4ac7e5c7a347a23f01fc8ab31365b8e23c0ef474483b14a183"},{"path":"product/runtime/auths-gateway-kernel/src/construct.rs","sha256":"e9d65744bae273d65face4285e5d2da75c06a92ab48f7b8333d496604e31c63c"},{"path":"product/runtime/auths-gateway-kernel/src/lib.rs","sha256":"cfda6f8453426564c085475f183b6f790b438768a19668f1b65d33ba59dc8632"},{"path":"product/runtime/auths-gateway-kernel/src/order.rs","sha256":"efc2f2eef68232fe3082e1607e6f1e87d4a19cbb2f492bdc6e71916a2461b6a8"},{"path":"product/runtime/auths-gateway-kernel/src/outcome.rs","sha256":"ac0245699457c802a70cdd6f52a01dcb4777c487b58ed7dc9cfc99345465ccaa"},{"path":"product/runtime/auths-gateway-kernel/src/ratio.rs","sha256":"7ace22264812e6fc1ef3a62afee402cf43494bb71ae0d3de219ad1b39d690bcb"},{"path":"product/runtime/auths-gateway-kernel/src/recovery.rs","sha256":"9f46dcd1685ab6e4d1ba04a3fc286a9f3afee8fb47829be1fbc670a7926a2dc6"},{"path":"product/runtime/auths-gateway-kernel/src/transition.rs","sha256":"9c9c292397aa640c2f002ffb5befe110f86d0aa246f3ffe99440718e5174af3c"},{"path":"product/runtime/auths-gateway/Cargo.toml","sha256":"959b1a58a110315f86115966f85d6992afd91be28d741fee7354207d4bd6f258"},{"path":"product/runtime/auths-gateway/src/admin.rs","sha256":"5d0f1b583a4cacdcbc62521ed1a5730ed6b57d42bf826708a0c5e591272c4a12"},{"path":"product/runtime/auths-gateway/src/admin_boundary_tests.rs","sha256":"7ef23fdaf512cfa6315aed72577ccf0c4d04725f5b4fa4b5f0482e27e5e7ba1c"},{"path":"product/runtime/auths-gateway/src/admin_fault.rs","sha256":"4a66386d91daffeeac4080c16a0d4e724adc09220ba056c0c4267e5f4fc05268"},{"path":"product/runtime/auths-gateway/src/app.rs","sha256":"acd1deab7a8524c97d4a76ec9f7079b3afc035d707e0480a0cbdf4d084972099"},{"path":"product/runtime/auths-gateway/src/app/content.rs","sha256":"4c01001659b1a563dfd4abe7e002e3f85609ffef511a0e39f967af944ea01300"},{"path":"product/runtime/auths-gateway/src/app/content_tests.rs","sha256":"6a239a15732dd279abb35a72721eb2034bf5aac79439edc7c34aa8d4fdfd5212"},{"path":"product/runtime/auths-gateway/src/app/participant.rs","sha256":"1d76d37ba8f7a4657ff013ad845bd90ab82636ade7e7a798937db05ee52a9424"},{"path":"product/runtime/auths-gateway/src/audit.rs","sha256":"aebb55cfe1305c6de26fda03989e138a6731ec57d1cfebf4114886bfb6b93d26"},{"path":"product/runtime/auths-gateway/src/audit_export.rs","sha256":"6cc3d70ef4cc64026de4ec4e094979a95fee6fadb86707b0e09515ad754632be"},{"path":"product/runtime/auths-gateway/src/audit_tests.rs","sha256":"8cf1ab4cd2789973791805b07216d423690645aa4f28307f87dbcb803bd2ad22"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway-harness.rs","sha256":"12b0c24d36b2e6a3be392d3c081a783b355fdd67dc5b54bacc0410e803116b8c"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway.rs","sha256":"754793105fcd9bd5b69699189d831302485182351e49d8d9781e43b557c9cf59"},{"path":"product/runtime/auths-gateway/src/binding.rs","sha256":"663b0ce878319511aa7d05722ab4ab2fa9be18817884ffb2ee9f131ff1e382d1"},{"path":"product/runtime/auths-gateway/src/bounds.rs","sha256":"d0658585765d4d8f9865f65d23d850ec196eeca23fe65a66a55f1f1bc9b2c9b9"},{"path":"product/runtime/auths-gateway/src/bounds_aggregate_tests.rs","sha256":"ab34f227b7c8692ba1da88ccb32bb3687a66adf8353d8282fae905d4a88eb612"},{"path":"product/runtime/auths-gateway/src/bounds_tests.rs","sha256":"80b116ccf65bda2d7f2fbcd3b26fcf82b0a4bd3dce3a5df7842828cb271d7741"},{"path":"product/runtime/auths-gateway/src/candidate_runtime.rs","sha256":"ebe3d2da3a340c990b6fdcaac8c4418a7c646c0148c8222c19d925b21dbc7da8"},{"path":"product/runtime/auths-gateway/src/commissioning_budget.rs","sha256":"f5c38e9e07df3cb99b6bd664f33eae414b9f3dfef4932d69c19a9b174906dc1b"},{"path":"product/runtime/auths-gateway/src/commissioning_budget/tests.rs","sha256":"da104a1643c37515deec6397bca6db2054f2c9158ec3d230a1b1ec9c7d0f659f"},{"path":"product/runtime/auths-gateway/src/commissioning_floor.rs","sha256":"7fa6991c5ccd5ae1403be84b3da390323fab09f36e15ac01fd7a38ea350c6fdb"},{"path":"product/runtime/auths-gateway/src/commissioning_floor/tests.rs","sha256":"6b663d6e556adc0b455b81845bc4394d82c6c4de0c5f43e1310f3ddc6e4e40f7"},{"path":"product/runtime/auths-gateway/src/commissioning_session.rs","sha256":"919fe57fafa563f770402be66b4e32f1f0d652f09fe1276a62e41b50d66f8696"},{"path":"product/runtime/auths-gateway/src/commissioning_session/tests.rs","sha256":"48d44a5fccea737930f24c49a397428edc439525330c83a868b5113a48f122ab"},{"path":"product/runtime/auths-gateway/src/configuration.rs","sha256":"e5597c39b1acbe50cad20c02722feb38d382294026a0a7a4097e6d97b68eaafb"},{"path":"product/runtime/auths-gateway/src/configuration/engagement.rs","sha256":"67bdd2c792b9dfb1168020a10799af043143461f020b74b18d20fd4089f9b40c"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/audit.rs","sha256":"ee35149f8f348ff2a20ef7185ae0bc5a7b912ad5746510c0714b235765b8b1a4"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/blob.rs","sha256":"12af8071e9cd21c04cf9b55d3cb5e8eb2f33ff888e03e06e114222feb4abf752"},{"path":"product/runtime/auths-gateway/src/connection.rs","sha256":"54f5d53c78f836bf8ce1236d449b3f4f1daa95312102d5583ef69cb4e57b513b"},{"path":"product/runtime/auths-gateway/src/control_namespace.rs","sha256":"0333baed635d34edb066d2b9cb4c6ea3f40faad4be8c75f54c989570515dddee"},{"path":"product/runtime/auths-gateway/src/credential_journal.rs","sha256":"e2fb5505eb35a0fd362e59c425bc7932834418d20aa799406b102ad7856c7232"},{"path":"product/runtime/auths-gateway/src/disclosure_transport.rs","sha256":"614c975a4b9810f40092a2f9cdd022308b75e649167dbc486c9907f7570d8d45"},{"path":"product/runtime/auths-gateway/src/echo_verify.rs","sha256":"6d453051665f823abd7354d5c50031d9524cf47d6092d2f09080ae814e3b9575"},{"path":"product/runtime/auths-gateway/src/effect.rs","sha256":"5e1d5b8c28df616917d442b023e5161a2e3527ef7b8fb63d736728542c6caa2a"},{"path":"product/runtime/auths-gateway/src/effect/acquisition.rs","sha256":"0afd6aec490e7995a440786be6ac69cb5461201a4b4ec303e8b5a6c12ed97202"},{"path":"product/runtime/auths-gateway/src/effect/authority.rs","sha256":"2490494c3a1636decbfd04b2dbac71c47e49be26b61cc6cf41319a13450bb4a0"},{"path":"product/runtime/auths-gateway/src/effect/candidate.rs","sha256":"d1efc3ec7e1fa642af26f4e4c6a25924c60821dc2e96bd0b458d9292d3866678"},{"path":"product/runtime/auths-gateway/src/effect/candidate/proposal.rs","sha256":"d78574109f41300edfcd7ad38155439ffc3adb9a799554d75d5484738ef174f1"},{"path":"product/runtime/auths-gateway/src/effect/capacity.rs","sha256":"300fa32e09dab7c679b8c0a69bb4e3c1e924ed2ce1416090a2aa477a7eec9f0f"},{"path":"product/runtime/auths-gateway/src/effect/content.rs","sha256":"9f3b53c8c2ad5cafa183ed1229ee03f2cd8a610009b07da560372bd0fbae1673"},{"path":"product/runtime/auths-gateway/src/effect/disclosure.rs","sha256":"0acb5ac805e91c952c8f0028db03ae607c3753cbd08a76035f2d1b4fa6fe6244"},{"path":"product/runtime/auths-gateway/src/effect/disclosure_auth.rs","sha256":"32fa6f040ae46f3323df6e153c6ae810eccf32d22b9945e5565e7189dc877eac"},{"path":"product/runtime/auths-gateway/src/effect/engagement.rs","sha256":"5a36ff3f4460bf026a7e99fadc713672fbeb05dbc6f6393d10cb06440e779e54"},{"path":"product/runtime/auths-gateway/src/effect/lineage.rs","sha256":"0b3ddeb56377b69264bbd4738c624639a8dcad91b4df3328f907db439747faaf"},{"path":"product/runtime/auths-gateway/src/effect/prerequisite.rs","sha256":"e79596a4cbe47e307e3a3056c52582b1cd01a43c4c2d69479ee03df1f62af3b0"},{"path":"product/runtime/auths-gateway/src/effect/release.rs","sha256":"84e2572f76216e02131e9bbcc850f4b3572473eac6dd71baa144e63a2270cff7"},{"path":"product/runtime/auths-gateway/src/effect_binding_boundary_tests.rs","sha256":"83d8e0edf524a2be0d2c494e4b9897cab0ddcf61184828d716bae10cbaf904b4"},{"path":"product/runtime/auths-gateway/src/effect_candidate_staging_tests.rs","sha256":"7db0f4fd86cf119a6b4b0702267c91debdf11a73fc93105ce7e98d0c6e4cd8d9"},{"path":"product/runtime/auths-gateway/src/effect_candidate_tests.rs","sha256":"e93c08c2eca2abdc58f7db9fbf19e775e4f709225b04789832e2b8f5a81c8948"},{"path":"product/runtime/auths-gateway/src/effect_content_tests.rs","sha256":"63eb623413167bf9ff34161b6bf4f54f68709af9fb1d1e7a419a07f63ce04409"},{"path":"product/runtime/auths-gateway/src/effect_created_resource_tests.rs","sha256":"98f7a9de7824dbf3e2361b3006ef823002b391d557969442edb371266f7673db"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_delivery_tests.rs","sha256":"9586b84b045561edbcf8276cd9769b412240f04248e240cd29a5068d4cd03a00"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_journal_tests.rs","sha256":"19f349a090f07288cfafe24aaffad49f28fe163e59870520aac6bb899f673a99"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_tests.rs","sha256":"5389b03d7d0cd5b23abaa3c396450fa4018102c942b27af35aef81e65b9bb841"},{"path":"product/runtime/auths-gateway/src/effect_engagement_admission_tests.rs","sha256":"46a34a83cfecb180c6f0937e83b8b14009afb4ce315864dfb9b3137759cb9959"},{"path":"product/runtime/auths-gateway/src/effect_engagement_control_tests.rs","sha256":"71e2e965b71b52d2fb877e22e5d4951d1d4072adede4b60dc3996197ac554395"},{"path":"product/runtime/auths-gateway/src/effect_engagement_delivery_tests.rs","sha256":"14b241916d9c3fe8141a38e93c62f8b8a039f2780ad3cd63282e707feaa4d1b3"},{"path":"product/runtime/auths-gateway/src/effect_engagement_information_tests.rs","sha256":"27735a9e1237a063c2a525cdcd93e8102164d549dc72509767a977ab4abd8491"},{"path":"product/runtime/auths-gateway/src/effect_engagement_prerequisite_tests.rs","sha256":"0566288b7f77f5beda44c8374f31a5053e02b44ccbe92781618e9fd90b1a6800"},{"path":"product/runtime/auths-gateway/src/effect_engagement_tests.rs","sha256":"2b78b315c7539d4119ce5b20164d6e4855d9b403b76eaa5b72fa3b72959a7621"},{"path":"product/runtime/auths-gateway/src/effect_instance_recovery_tests.rs","sha256":"eee64773b6373e1bd7185c07c5c4ffeaacafb907f4d0aa17b89ba1556beec5e4"},{"path":"product/runtime/auths-gateway/src/effect_native_tests.rs","sha256":"fd9cd960dfb02f68eef479ed2a95d65b79882c20f8a737c9a74d6a4222af407b"},{"path":"product/runtime/auths-gateway/src/effect_prerequisite_tests.rs","sha256":"51efa528051919d0ca67643cac3d0e06afac534706b802adb18311e2bfa222ff"},{"path":"product/runtime/auths-gateway/src/effect_read_budget_tests.rs","sha256":"9bf8491f0da471e07b5d96dbfdbdf5fbe5a47fec11700dca55a6ac05a1ebb68b"},{"path":"product/runtime/auths-gateway/src/effect_recovery_prerequisite_tests.rs","sha256":"e6235b83ac159d9446d79e6e072dd4aa9d0447a68055be3b32de6450a2300699"},{"path":"product/runtime/auths-gateway/src/effect_review_approval_tests.rs","sha256":"6e5c5a72ec93255d7d8f219ae8cf4401431644ff03d624164645a1e9d2b2e87e"},{"path":"product/runtime/auths-gateway/src/engine.rs","sha256":"113390cb4ef92ef337b5f82b7c77c54a428ec492756f90100b74002487dc8c7f"},{"path":"product/runtime/auths-gateway/src/entry.rs","sha256":"6fd17c142c0001b9cda33c33b0e18f4d1d40866cde8a66b3f57d46f971c1ead9"},{"path":"product/runtime/auths-gateway/src/entry_tests.rs","sha256":"86dcfc4918394052d18fc5509dcc0e740a064a97b084d1c2c9f23eddedaa6db4"},{"path":"product/runtime/auths-gateway/src/execution_witness.rs","sha256":"e8b1a8e41d5e3fa309760067849d390ef065feeb46701a83391832645a2f000c"},{"path":"product/runtime/auths-gateway/src/fuzzing.rs","sha256":"2dcf0a15e407a9180c7fecb7eecfaf4674698aa997b1f5de9a3649a49baebd1b"},{"path":"product/runtime/auths-gateway/src/generation_floor.rs","sha256":"3e82c3832685c43b546ebd12857ebecbfa6be29d8749654ab65e3e520ad552fb"},{"path":"product/runtime/auths-gateway/src/harness.rs","sha256":"5e296231c98e6429f3d805150fab9ce2d6a5789d41dd83f562b677314374567b"},{"path":"product/runtime/auths-gateway/src/harness/authoring.rs","sha256":"de511d89bf6bb72e443558caf0c4835dad2908b5fe5c13a3a02483e85dd7d354"},{"path":"product/runtime/auths-gateway/src/lib.rs","sha256":"a39306228bb0ee5e7c50fb83149756a15fa761d52bb6807942f1ec77db2049d6"},{"path":"product/runtime/auths-gateway/src/listener.rs","sha256":"aa08239bcbc1fcb55e8a212fbdf6a84f12985b0d436dcb51dc58b06e59e435f2"},{"path":"product/runtime/auths-gateway/src/native_budget_tests.rs","sha256":"d6de965afc7f794e611545744fa515f833abf315157519ed8390c195a7dac8c0"},{"path":"product/runtime/auths-gateway/src/native_cost_store.rs","sha256":"d1acdd7e4076e3a32f312dce74a01e5dcbccdb1f8912758524b7841d61377eed"},{"path":"product/runtime/auths-gateway/src/native_cost_tests.rs","sha256":"45bcb4e9174d4c23495ac734a42b5f8b7735c14d4599cd191d50f6547aaf374c"},{"path":"product/runtime/auths-gateway/src/native_crash_tests.rs","sha256":"46998a973388884d902a6b07e12fa342fb08ea77363a43a41b0b0a7a5ccbcde9"},{"path":"product/runtime/auths-gateway/src/native_cross_recipe_tests.rs","sha256":"e2dbde7afba1b3da5df3a7a44821f413ab7861a5417ad16f8b912f390128d115"},{"path":"product/runtime/auths-gateway/src/native_dependency_tests.rs","sha256":"0e15d059140ad485b2548f4234b94424d62b5563a8dded42224329a76b101f37"},{"path":"product/runtime/auths-gateway/src/native_differential_tests.rs","sha256":"17fc0803fe5e7f78b416f8f68e7c9066baf1bab69bdf0b51c44fd19e3d719da8"},{"path":"product/runtime/auths-gateway/src/native_disclosure_budget_tests.rs","sha256":"bb2a6f76f06a6d42d69698f7d22d0b4aeb4dc857e442042d65582097567009fb"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_testkit.rs","sha256":"4beb946a288e4fe082cc0917f4200b18b8154eff98eca1ea3d0c830ffdc3625d"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_tests.rs","sha256":"425e423f04d92794656d4da915125e4d0a8be25ec85fb88244ee0c27ece8ec44"},{"path":"product/runtime/auths-gateway/src/native_disclosure_entry_tests.rs","sha256":"50f5dc35a9a8ef462b8833296cb313b2acec81d544b7e317c7f188741d0786db"},{"path":"product/runtime/auths-gateway/src/native_disclosure_file_fault_tests.rs","sha256":"72d67bb0d3fd77fb93c4f5d3ab0afa5a939742b5a47acf006a511d99d72cee9f"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_batch_tests.rs","sha256":"a8b8a90210d9f7f0012e40701c09c524527f93f9e56933d89b58a38464cba702"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_commit_tests.rs","sha256":"1e14503140805c12883e1c288b75029aa7fd9ebe8c5d490a4c503161c4a27a4b"},{"path":"product/runtime/auths-gateway/src/native_epoch_tests.rs","sha256":"e37d34e699baa2b84578bd4c378975dbdceb407de51861c2217afdcf7b48e3b9"},{"path":"product/runtime/auths-gateway/src/native_federation_tests.rs","sha256":"bf2c6313f70c4b7f51f9ad05351048be3625d9432f3c725e84b046936304f540"},{"path":"product/runtime/auths-gateway/src/native_file_fault_tests.rs","sha256":"e1077a0059aa69918fb7e0a3481edd19af45a7343ce876583fbdbc96c4291b21"},{"path":"product/runtime/auths-gateway/src/native_generated_history_tests.rs","sha256":"5a5e308c1e4bc32cac31badf91e9453bed62e3e90f1b6585fc522bb4038990f9"},{"path":"product/runtime/auths-gateway/src/native_guarded_mutation_crash_tests.rs","sha256":"5329f72e7f22399a17627b058c2035c243e1b6ba60c9dfcd1c834258244cc440"},{"path":"product/runtime/auths-gateway/src/native_information_journal_tests.rs","sha256":"067bc51f7011971e8c5d021430fbfe323e5cc3cd7cde41c546cc92fad1f2cbc2"},{"path":"product/runtime/auths-gateway/src/native_information_replay_tests.rs","sha256":"165a1dce11c2006e6adfb5eee4c4977737b830995e6e29f77544a999893b0a5f"},{"path":"product/runtime/auths-gateway/src/native_journal_tests.rs","sha256":"d803ff53f90ce2a8c29808b4f874cd81954a3a5c52e19b519ab22f0543808fe1"},{"path":"product/runtime/auths-gateway/src/native_mutation_budget_tests.rs","sha256":"41d7f560d6b04e750acb2f8add2544745743ea9fea760a8ffd5ec5aab307e94c"},{"path":"product/runtime/auths-gateway/src/native_mutation_crash_tests.rs","sha256":"3e1befd35e7264024666331b52ca2245540ffa8f9927ed62e3aa45c7c8cc8950"},{"path":"product/runtime/auths-gateway/src/native_mutation_entry_tests.rs","sha256":"219a1986cf7440d31734db9db3c25f7997486a2fc29fee0a1ac8c7f0ee9ce803"},{"path":"product/runtime/auths-gateway/src/native_mutation_file_fault_tests.rs","sha256":"252f6ca9455b291b0873d983c8fccc75254d947b89a3fe9a1de0155c8ee53930"},{"path":"product/runtime/auths-gateway/src/native_mutation_journal_tests.rs","sha256":"181bf0a196805e50944cff4fe2315459eba877e7d7b5b90bf3c99e3353a8cad7"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_batch_tests.rs","sha256":"137f0e2f0e8d950cea3b38a7a03113c61177e54083f11eecc34b994ce41728f1"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_commit_tests.rs","sha256":"5d9a3b8a1601c83c66db3aefd904c16233ce2700d070ba5c9c4f81f4051c5fad"},{"path":"product/runtime/auths-gateway/src/native_mutation_replay_tests.rs","sha256":"3a874e1416cbb29cce70930f9955a70b4a5ad46e2cbca8d55f1acf070215cfbd"},{"path":"product/runtime/auths-gateway/src/native_partial_upload_tests.rs","sha256":"5fa867219d61b7c8a563e7cf5111291f15b8a11464623859be8aa9ea858170ea"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_proxy.rs","sha256":"1c95b3f8af48b78dc4f1c1baa3b26c1aa7bbe868c23aefbb32f1f0ae592f0045"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_tests.rs","sha256":"f021b110991ba3ae497705d0aaa0350a210f09b6f102fd71ac2f8eb4ff8f30c0"},{"path":"product/runtime/auths-gateway/src/native_postgres_fault_tests.rs","sha256":"0c6edea869a20765b322fa69c48e580aa0664e726b6cef483d4eba49803135ba"},{"path":"product/runtime/auths-gateway/src/native_process_tests.rs","sha256":"778a02ea4de3a0655021bad7d2f4b5f0007c6518ef60e966db3da49bfaf22c37"},{"path":"product/runtime/auths-gateway/src/native_public_evidence_tests.rs","sha256":"dac3a70f4535a14aab49ceed5a6b5fd7002e199270bb5a120f5bc8edfa5398bf"},{"path":"product/runtime/auths-gateway/src/native_recovery_actor_tests.rs","sha256":"bfdcdbaa0ee1d6822c57e5ab9ca524e731c393f9289c5508b61a0fc1d0b065e5"},{"path":"product/runtime/auths-gateway/src/native_recovery_authoring.rs","sha256":"9f4e8008160b349a52267eacd6a1c1e5c31c3c1cdfd71b574162ccaa9f7430b6"},{"path":"product/runtime/auths-gateway/src/native_recovery_history_tests.rs","sha256":"0c6ec8fe18fd4cc8496f04c3bc38552c3602d7254cae979fac76aeb7c7e4f41b"},{"path":"product/runtime/auths-gateway/src/native_recovery_limits_tests.rs","sha256":"f147c2e78cbe364fb3fd0c97bbbacdad86d77ca8c0b8575d9fa108968f82379a"},{"path":"product/runtime/auths-gateway/src/native_result_wire_cases.rs","sha256":"2b93c8ed96d7092216410bb99435411fd57497284639f56e0120b16639a98eb2"},{"path":"product/runtime/auths-gateway/src/native_retention_tests.rs","sha256":"224c941e394dd711a7ee19e7b52a1d6b7359eec62e7decec323d066319cb59d3"},{"path":"product/runtime/auths-gateway/src/native_scope_tests.rs","sha256":"8d3f362df9fadc10c22f0483f3a16d238d0f82f393a628727adf0b728707673e"},{"path":"product/runtime/auths-gateway/src/native_threshold_testkit.rs","sha256":"74e6b6ed1b77b463effff132fd8af9b3b59aeee64704a8fe8a19ed3ca9d79bf7"},{"path":"product/runtime/auths-gateway/src/observed_tests.rs","sha256":"91223493fefd3efc3fec58db225f00786b539e3b24027419e919d8bd7310059c"},{"path":"product/runtime/auths-gateway/src/observer.rs","sha256":"1c8988dd8807566d5a152e1894aa0f4c80c3ba7302ac910a4a6978d4f31b323d"},{"path":"product/runtime/auths-gateway/src/onboarding.rs","sha256":"6180e79d7698bcd4dd6ffdf32dcfbe14427f96de92f4ae4ceac4dda651f3671b"},{"path":"product/runtime/auths-gateway/src/operator.rs","sha256":"fe3b11fcf8e2394ab955b09a5b9b1f979c46f9e07a4f16e1a3ca160d675f1ace"},{"path":"product/runtime/auths-gateway/src/participant_control.rs","sha256":"58acbac1ab812963ad0ba0e2864395a87b3afe50962263cb44e19776cf5100b8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment.rs","sha256":"719e82ed5f30f7b37d6d87e45220918d945a2ed8fadc9e760308398e9f6501a4"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audience.rs","sha256":"83940af76073d391f1181eccea2e9b682dbd7ffcace6c39b2123ebe09e721573"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audit_tests.rs","sha256":"1a8cb537f16d023962f1375b7f15d0879b2be85c29775dd677c84d87b8c9d183"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/configuration_tests.rs","sha256":"2e1cb7024ff137bfd3292929f26ec078c9213f6276f4a2f915b279530c6c7782"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/cross_recipe_fixture.rs","sha256":"5a957eeac83da3f1c74e923648319674f6a90e6673b45fdc029b784b1c09053a"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/identity.rs","sha256":"a04328f93d59da6c34d623319b8a6f55a32e7d718837109b299ef6935b126930"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/recovery_tests.rs","sha256":"b13faae436b325fa6ea234613f1542f4ec8b1dfb7082d3f31339ea7f4a8b0cb8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/root.rs","sha256":"586bfc83e1a615b7d255ea235f6e519945126bb3ba7fe41d2aecd1dbcdccc797"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tests.rs","sha256":"a6f83af4c504d7a5bdedad90e473c8032f10c384adeab29075051389040f7696"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tree.rs","sha256":"4f2b8965b91b6e23317168221d077b074fd149690e28c30fad6055982ada584e"},{"path":"product/runtime/auths-gateway/src/pending_vectors/attempts.rs","sha256":"79803db1c278b2133d4adb112ab325247f359cfa5cf34e3de32898f6a9bffe62"},{"path":"product/runtime/auths-gateway/src/pending_vectors/bounds.rs","sha256":"e612217307e1da5b0eb5ee6582a7458bb064b8aa8a529fc6555b1b334127ab68"},{"path":"product/runtime/auths-gateway/src/pending_vectors/codes.rs","sha256":"6fb3f1679b0fd2ca7a8ac6aaee65f586b9eb809d9d7c9e26d3dd8ae2bfd10307"},{"path":"product/runtime/auths-gateway/src/pending_vectors/keys.rs","sha256":"b0b1f79d2fadc06e91378a8250223a429163138e4b86e90e09bc207d80fabf86"},{"path":"product/runtime/auths-gateway/src/pending_vectors/mod.rs","sha256":"5de8340f0ef71a0b57a09e323fefe473d3160c6ae952b9ba46f714825fbacafc"},{"path":"product/runtime/auths-gateway/src/pending_vectors/outcomes.rs","sha256":"a8960d8e055ac31827e379513f57f00ed868b559079fa2a4687e1b055d48e3ca"},{"path":"product/runtime/auths-gateway/src/pending_vectors/production.rs","sha256":"15c687599b0342dc141878afdf727092b23ade67ee5564eaa671f3f06befad57"},{"path":"product/runtime/auths-gateway/src/pending_vectors/recipes.rs","sha256":"5d550e3708ea41a9547ae2207699bde5ff4435f5a1ed7afa4378fb8defb51bb4"},{"path":"product/runtime/auths-gateway/src/pre_entry.rs","sha256":"3f2554feda72fa047229d427504676a1fb14894bdd377055a3108d7b3e3587cd"},{"path":"product/runtime/auths-gateway/src/prerequisite_race_tests.rs","sha256":"683cc46b3718d12dbb42668dae4bc6ec7e7508dcbb6b6232fead2e3e4f510d0d"},{"path":"product/runtime/auths-gateway/src/property_tests.rs","sha256":"85a77aaf01d9be51e1dd7c72461653a099c51b0ca9c818800d991abe262b198a"},{"path":"product/runtime/auths-gateway/src/qualification.rs","sha256":"f25bbb01c2a6131633c5a4de4e59345b761609e47b3c69353187364996ec87ea"},{"path":"product/runtime/auths-gateway/src/qualification_simulation.rs","sha256":"61f4117e33db07be83ce0f0376f79a405ff6d8bb7ffc2e28ff0bf927486941ce"},{"path":"product/runtime/auths-gateway/src/qualification_tests.rs","sha256":"ed9eb74599074af67730d63f8c5093f6a5277bced96dffeb81317a6dd9f4c8c6"},{"path":"product/runtime/auths-gateway/src/quorum_tests.rs","sha256":"a6533de9bc2689ec632f009404daf363494e224e7b89b1c65bb2e2cd4fc6421d"},{"path":"product/runtime/auths-gateway/src/readiness.rs","sha256":"911c3f11892f94641574375e2da4c671c802738f71082f12c39832331052d43d"},{"path":"product/runtime/auths-gateway/src/recipe.rs","sha256":"efb99a8f060b5633ea8ea75f24378e701f6ba2af023faf8c7609e4de4e868637"},{"path":"product/runtime/auths-gateway/src/recipe/content.rs","sha256":"e3f8aa8cf2dd9ef5777d9d1e76331052c67be87873db0c2cd6a8f48ff940d9d6"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource.rs","sha256":"2284b6f7363b1a15dd3c91dd3043f46a5c7a9c12d997213b13751b82ae627e26"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource_tests.rs","sha256":"ab371d7d7a5dae249da924e7b94d5c863491a2af796d2febdf2dda2a191c559f"},{"path":"product/runtime/auths-gateway/src/recipe/effect_review.rs","sha256":"8f94896f0d124162d3dbd080c44582bb23ad181bb582ff5cd3d049d75fcb6d77"},{"path":"product/runtime/auths-gateway/src/recipe/lower.rs","sha256":"81118ea7ae6c2d9984b88fe9991f91283070859d56923ee4fdfe9a50eee9ccb1"},{"path":"product/runtime/auths-gateway/src/recipe/response.rs","sha256":"0b4a074eb05b98685697094ed4775c5fe588b3e34f954aa1844135fe14c94487"},{"path":"product/runtime/auths-gateway/src/recipe/review.rs","sha256":"f9f88f6d54c9a517b55ea717ce8caf5199954ff710c0d20e2bb609f6b1344a51"},{"path":"product/runtime/auths-gateway/src/recipe/runtime.rs","sha256":"6301c005c5f014eb81a7a85dfa3bd256ec15e35bf1cdf6e60815a2a18b7151a0"},{"path":"product/runtime/auths-gateway/src/recipe/source.rs","sha256":"f79e481ab0f40985819b317c540c715766611b5c8c0e5647c87849fefc10cbac"},{"path":"product/runtime/auths-gateway/src/recipe/tests.rs","sha256":"78cfa166bb02b722c92205d2a95c261ef4f3cc272150145980252cb4c51c13d1"},{"path":"product/runtime/auths-gateway/src/recipe/validate.rs","sha256":"3f613af38c5cf29901575af4f82a9daca6718b2da70bc84baa0994a71be6113b"},{"path":"product/runtime/auths-gateway/src/resource_identity.rs","sha256":"edf093bf84c0ca6c0a300adc6060fe10cf58b90e592dc3cd6ebd58e73632373d"},{"path":"product/runtime/auths-gateway/src/scenario_tests.rs","sha256":"eba5fe0268e5d8516eea79a2cf418f5c52ccdf777fa94e553cfba00f0b90865e"},{"path":"product/runtime/auths-gateway/src/separation.rs","sha256":"be9306848ca5d801767cf6aa14247c8618312ef0e202f00ce0c24c4844491061"},{"path":"product/runtime/auths-gateway/src/simulation_attestation.rs","sha256":"88705e5d45415f760f1e3c3a065c35c48f4f4065bf7b3feb7882246983814d6f"},{"path":"product/runtime/auths-gateway/src/store.rs","sha256":"5645f57bcd92190ff2c83836744ecc514558c466bb5d377b258a8d82d21504f9"},{"path":"product/runtime/auths-gateway/src/store/acquisition.rs","sha256":"c52193c7ca87f4eedc3a3523be12eb85a2825fa989d8a61b076be734eb99684e"},{"path":"product/runtime/auths-gateway/src/store/acquisition/candidate.rs","sha256":"90c133dfc48ed351d0f1fea9de236135e82297719c383f9f37404a335909d225"},{"path":"product/runtime/auths-gateway/src/store/acquisition/content.rs","sha256":"92f87e4556335af8e1c4157e60e6936ca02b271381569e14510bc2c35e697ece"},{"path":"product/runtime/auths-gateway/src/store/acquisition/recovery.rs","sha256":"cc1be15bb948608868d33a088951530834235220a8fed7d77161ff53bf416dc1"},{"path":"product/runtime/auths-gateway/src/store/capacity.rs","sha256":"d25c4a0d753317270cb352246c70642bf0659e6448d14061356e4e9ea7ed3811"},{"path":"product/runtime/auths-gateway/src/store/disclosure.rs","sha256":"3b2f68d024bb10b734bd1e48ceb4eed23d1348ec6f716be78ec27384458ff007"},{"path":"product/runtime/auths-gateway/src/store/engagement.rs","sha256":"953ef4c20f16775c10bca98b820536f347a6ce9c756934503efdb7bb77c41ff5"},{"path":"product/runtime/auths-gateway/src/store/mutation_phase_tests.rs","sha256":"163c177cf5e053126b46c7de7e429a99df789090b1127b5d3b91636efcac4365"},{"path":"product/runtime/auths-gateway/src/store_retention_tests.rs","sha256":"a9e300fde3c45999764ee05c4c6ea46cfb9ffcaa51b82337a322925ad50f4f50"},{"path":"product/runtime/auths-gateway/src/store_testkit.rs","sha256":"720bdda4464a54198348e1cac8ff75ad4882b9ce10c389befb4e9bc80340156c"},{"path":"product/runtime/auths-gateway/src/submit.rs","sha256":"a8e5e908b99d997cdf34c46c5827e04c0f502307f71497d15511bb40ef52815b"},{"path":"product/runtime/auths-gateway/src/support.rs","sha256":"d4865f95a7a2fdfe297f3f73687c05ab64a6b911814daf5f2b6c703ce58262ce"},{"path":"product/runtime/auths-gateway/src/transport.rs","sha256":"0ad16c63c19cc41d11c485625c8fc0617aede21401d16ec814401f963538bb46"},{"path":"product/runtime/auths-kernel-runtime/Cargo.toml","sha256":"926bcd0053e5edd703be8f0027ad009e2982db013c8174c1366edbf38b48087d"},{"path":"product/runtime/auths-kernel-runtime/src/lib.rs","sha256":"7108faae9ca4bc32dc093ddaf885ac8f74f3c9b8d317b7c7d0ed00d1d0ab5972"},{"path":"product/runtime/auths-lifecycle/Cargo.toml","sha256":"c5053c705f8d5554b44e432fe75287a2faf11d644e5a2552e45ad6cd94176af5"},{"path":"product/runtime/auths-lifecycle/src/codec.rs","sha256":"51c4b746749150e8bfcd8ff972b3f6c1ef40bec15583448ec1b471d9ad737dc0"},{"path":"product/runtime/auths-lifecycle/src/digest.rs","sha256":"55282cd7d8aba37713c2dcb5357c9877819edb72a30eadefb860d28d7d3a3eb7"},{"path":"product/runtime/auths-lifecycle/src/identifier.rs","sha256":"31620e8c16de68d3d2d3b84d6353c1a5b9d4151d8247f91fa389b906a8e660f1"},{"path":"product/runtime/auths-lifecycle/src/kernel.rs","sha256":"2abb8c094b36d35b364e74d78091d14c5d6f3d1eb6552cca3b5538dbd017ce23"},{"path":"product/runtime/auths-lifecycle/src/lib.rs","sha256":"afe5a345cd309b5a4f08ffba3170a6d7f16ff914892b3f2006d5208ed24ec736"},{"path":"product/runtime/auths-lifecycle/src/model.rs","sha256":"1af12bbeeeaa65ec02ddcebd7d2c8c92ec1e339fa40ae85b45ab9b01a722a4fa"},{"path":"product/runtime/auths-lifecycle/src/operation.rs","sha256":"78e6d05fcf5d7ea4f148032a3fa26fdfcab77eb346019effe927b08e0d64d732"},{"path":"product/runtime/auths-lifecycle/src/registry.rs","sha256":"53495fe6f7a77422593a41623e28716f1c140dcc1e00f87f6b0ffbfb93a5ef90"},{"path":"product/runtime/auths-lifecycle/src/sealed.rs","sha256":"2e0c03b5813c926c159598bb7890d1523825edbe57cd687d42a5dfb3374a0c19"},{"path":"product/runtime/auths-lifecycle/src/test_support.rs","sha256":"221d9a5c5ef8e1f9f8fd66927484eaf813571d0568470278ecd8fa08a5eec8cd"},{"path":"product/runtime/auths-lifecycle/src/transition.rs","sha256":"011805a28efdd541f44ccea54dd0e34a1e58f4004447ee58013703b4fb6b2822"},{"path":"product/runtime/auths-runtime/Cargo.toml","sha256":"dd29d80a8b4bb56c869f036a6c9998f6e6d1c0383ac5dc03fa42b24abe2a7ff7"},{"path":"product/runtime/auths-runtime/src/lib.rs","sha256":"132ca03d58c14905d3a822a4972f42a22a5ad33a45f2ba9ca44f3a57d810b4b0"},{"path":"product/runtime/auths-runtime/src/production.rs","sha256":"fd4eff4270c571c10fcff6cf27df28961ebf074de8a1a028f500fda1ca376820"},{"path":"product/sdk/auths-approval-quorum/Cargo.toml","sha256":"df904971fca87a24194c5816738a331588fe8f164acb5d70839a35dca5f57114"},{"path":"product/sdk/auths-approval-quorum/src/lib.rs","sha256":"72e4086088a1c0912e4e1a9e980f26a5c280bf5ab16ea39c9f0f58d5096ac2ce"},{"path":"product/sdk/auths-approval-quorum/src/remote.rs","sha256":"9fa029c7c63003adf260f8aec55160c545681c60c1bace0d934e7525862aac7b"},{"path":"product/sdk/auths-approval-quorum/src/remote_tests.rs","sha256":"8a09ce17cfee82a035a74edd535f3ebeb3db0e078784740d3997b17dbdb10197"},{"path":"product/sdk/auths-approval-quorum/src/tests.rs","sha256":"0acbf12be3e497dcc6c2d8f29c9af3b1a7ed8e11b75f6399570d4f217a785060"},{"path":"product/stores/auths-stores/Cargo.toml","sha256":"a32c4b76d17b264be5d40d24497ff237e1ed87822e8bab86229b3db93106dbe3"},{"path":"product/stores/auths-stores/src/gateway_attempt.rs","sha256":"f39dc84a238db0ebc70ad1ac495da194d2c24b5e1f9905552a9b1143278725a9"},{"path":"product/stores/auths-stores/src/lib.rs","sha256":"40c280a5ff79bfc1cafcf0bb415e775e205637c526973eb94b43a30f86d4e6fe"},{"path":"product/stores/auths-stores/src/lifecycle.rs","sha256":"4033f69a8d36de9285b87ab86af363fc85f785918ec2042d0ef1bdcb64d6f73a"}],"schema":"auths.gateway-semantic-closure/1"} \ No newline at end of file +{"files":[{"path":"Cargo.lock","sha256":"77ae14c9bbf8dc445841fa919923f17d9c7dceec704ddcaa88dafe5dd92f6c2b"},{"path":"Cargo.toml","sha256":"ccc17deac72da945940a9ab4be2ce27628c056b977d19429bc1679b19fae30f3"},{"path":"core/adapters/auths-did-keri/Cargo.toml","sha256":"86ba3e3f9a0a70d970568bfb3113b7ba7bbdd81c3eebbb52743dd574a0c0ecaa"},{"path":"core/adapters/auths-did-keri/src/lib.rs","sha256":"a75674842f8a7142004369ccd206ab43e476459293f0ff4bed4d4e659031b3e3"},{"path":"core/adapters/auths-did-key/Cargo.toml","sha256":"d5a3ae07ecde83f91eed4c3785051dd0f44eab6c891754f3309b6b40596707d7"},{"path":"core/adapters/auths-did-key/src/lib.rs","sha256":"b76a3f4528a725df53cfa9242e6e414e1d26caa48468aaed497e28b121f4497c"},{"path":"core/adapters/auths-raw-key/Cargo.toml","sha256":"f49616bc18c19e6aaa7e6a02ccebcdb9f5c1422c1278ef9869e0dbf22ceda7be"},{"path":"core/adapters/auths-raw-key/src/lib.rs","sha256":"45eec1b295dac3bed65cd79c942870b926b06b3f5d38eaebaeb6140ac69315fa"},{"path":"core/crates/auths-algebra-kernel/Cargo.toml","sha256":"0cb078915287b8c47d20fb97b6fa14135ed1c61c4985c4de2753855563c27bba"},{"path":"core/crates/auths-algebra-kernel/src/generated.rs","sha256":"ae4bcbef42a408c7ffa0c6a74a42f7de177a6f14479e51d205acf830bda05960"},{"path":"core/crates/auths-algebra-kernel/src/lib.rs","sha256":"6654667eeb9b353d6648954c9fd2e8838462a82ce6b2803eb49e1366892c68c6"},{"path":"core/crates/auths-assurance/Cargo.toml","sha256":"afcb12a97ddd09d7a264b9ecd3fcaefc865ff2c9b4539ee85b00883420ba333a"},{"path":"core/crates/auths-assurance/src/lib.rs","sha256":"0fb2ec844d674b25a9e20b1601452c89c2454901fa506adfa9bb38ef9a7fa213"},{"path":"core/crates/auths-author/Cargo.toml","sha256":"1e6f0e3bc079ddb558decf0db26b291c6e72fc47327b6df1b7650d41689b215f"},{"path":"core/crates/auths-author/src/lib.rs","sha256":"e14475f2f49715a1869d5fa6b11ff1fbb72497e39097e09f833b0bae7e5b3f2b"},{"path":"core/crates/auths-author/src/observations.rs","sha256":"dda7d6bfa6f4bd7e95a480ca283c2c0e996f69c5c15cb0c7197af328131a7066"},{"path":"core/crates/auths-authority/Cargo.toml","sha256":"4f68212938029f79ebd857b4f3038494eb85d0163d49f07e51376715cf959815"},{"path":"core/crates/auths-authority/src/lib.rs","sha256":"da88d5194de4e17449e69972c0fb042afa3c39798a8f570f30771e77c384f1eb"},{"path":"core/crates/auths-codec/Cargo.toml","sha256":"e20e51826e17814effd9d8925d18d5fbdd6c0d37bf50231e743ec2611314722c"},{"path":"core/crates/auths-codec/src/approval.rs","sha256":"fbff43bf4d57f69f8b7738a8647751cde75c5a932dee65d924a1fe9c7202f91f"},{"path":"core/crates/auths-codec/src/bounded_policy.rs","sha256":"d21f6728be2d8a04b6d94921f2b683f7e61cbb42e0ac6866f1c88a49caa534c3"},{"path":"core/crates/auths-codec/src/decode.rs","sha256":"ba2999584cdf53b1b517ecb9c7ea50d39efee17c666a9a38e2ad1ac94379f778"},{"path":"core/crates/auths-codec/src/encode.rs","sha256":"8491192053e2e15d62b4d2a491de22405b7487ead69ab6f6bca40669ce7ca5f7"},{"path":"core/crates/auths-codec/src/error.rs","sha256":"fecb0737c16deb42d859f1dc7727c698438d9ac12064fd99e0024629642c390c"},{"path":"core/crates/auths-codec/src/hash.rs","sha256":"f88e111f1dbb2cef6b7b5e9c948cb45ff92e366710c8a5f5c636138aa748479e"},{"path":"core/crates/auths-codec/src/lib.rs","sha256":"3b0e5c94c6f34f750b88a9333e1d5c8145746d845d3a23e0d2f61807cf592ea7"},{"path":"core/crates/auths-codec/src/observation.rs","sha256":"38328b0c71ff97a4196eeade8b4faa889527ff1f80bb168468bcd49082a3987e"},{"path":"core/crates/auths-composition/Cargo.toml","sha256":"331e13025eb82588b5269ed3975929eb41c823d588c49e4c296273d85c6fe80e"},{"path":"core/crates/auths-composition/src/lib.rs","sha256":"e42e3b0b6a9985b73c533aeb23799c638979aa27a9ce7d0f10a8d60340570fb1"},{"path":"core/crates/auths-model/Cargo.toml","sha256":"565c15302b0cc9270db1e28efa3862804846850ba933cc17aea8abcec4a65987"},{"path":"core/crates/auths-model/src/approval.rs","sha256":"54cf44a9ef747ec21546a4086aecfb130bc7803b0d646430e6082df51e6e305f"},{"path":"core/crates/auths-model/src/bounded.rs","sha256":"f90496abc0a06c028b4d850af6ddab7d850bfafeaa3d042f1b1246a41d8bbbc9"},{"path":"core/crates/auths-model/src/bounded_policy.rs","sha256":"306a8f049cc7cfc7635fe0e4de47eb7813eed63d3c14c3be2b51586aa4eea450"},{"path":"core/crates/auths-model/src/lib.rs","sha256":"e7cfe6bb9574c6b016aa63e70658c31e0b90903ec6479a49f4a2ceb64f5bad97"},{"path":"core/crates/auths-model/src/observation.rs","sha256":"b3ed3e3cc090afca2896a7d3de7988afccc1ee1ea0ebd91b51a8bc0f20ad8dbb"},{"path":"core/crates/auths-multikey/Cargo.toml","sha256":"858756c1197befcada06134742bffe8d58cf674cadd6c046bf710570e96efaf2"},{"path":"core/crates/auths-multikey/src/lib.rs","sha256":"f5177fffb11e40eeaaa665ba886c541fc1f24d5eacdd6983fb03dc20148733f0"},{"path":"core/crates/auths-ports/Cargo.toml","sha256":"596a9b0f5af3717c16a6d13f7054d8a106bcd9f01f5f72c2235dd2afcf0ab16c"},{"path":"core/crates/auths-ports/src/binding.rs","sha256":"a16c012d40aa4249e3ec54372b9611006d0bfe8c7dc3c741911c2194ad17736d"},{"path":"core/crates/auths-ports/src/diagnostics.rs","sha256":"aa596572503b5a65a918bb2ff38281c144ff53821ee914e9325c852828d852df"},{"path":"core/crates/auths-ports/src/lib.rs","sha256":"8da1debf86f9532df0660155d04298beb1ba3a1204508f8586e2e67cd2fb3449"},{"path":"core/crates/auths-ports/src/path.rs","sha256":"b68fc547b4e4d97a60cbbc1cc1939fc6b34a8233b81f840bd396914a707e3ea1"},{"path":"core/crates/auths-raw-key-core/Cargo.toml","sha256":"98c0bc8527a537512e43a74dd6ba9658c6f0cdc16610cf938e3f9b43785d836d"},{"path":"core/crates/auths-raw-key-core/src/lib.rs","sha256":"98c0500c41697aae28708ad0bf970b9a97583d96a3d2c18d23e7fa351e0f7d12"},{"path":"core/crates/auths-registries/Cargo.toml","sha256":"590e49e58b0622d9d6274fea46796dcdb07dec9550eff295cce6a6427ffa51e2"},{"path":"core/crates/auths-registries/src/lib.rs","sha256":"450d3886d85ee333b7e046317fb5b47cde62483d5f3e41d46265e2caf4c373ec"},{"path":"core/crates/auths-registries/src/template.rs","sha256":"1224039dd2b3ce6fa8357613d8cafbae40400493da7176da202b9ade62fa05e4"},{"path":"core/crates/auths-signature-core/Cargo.toml","sha256":"6bee2230eb30af1be0bd5c2d57bd3e1903497a70028d47290d4ac6e9e0e8bca0"},{"path":"core/crates/auths-signature-core/src/lib.rs","sha256":"db97ecb45a82faa6f96a92738d3af1da92d1ba2f241f2c29114f4b8107dc4ab0"},{"path":"core/crates/auths-signature/Cargo.toml","sha256":"7f7b5682466ba439d8c59579022cb61068cad9fb4bd2d73e1cc21327c902b450"},{"path":"core/crates/auths-signature/src/lib.rs","sha256":"b3d9ac4cc3ba0797b9e1c09f2d6ac05089b25dac4e285a5af28c0165b33d925b"},{"path":"core/crates/auths-verifier/Cargo.toml","sha256":"c43358e06a33324b41a8b93e5cc7279c55f7d21f1f6cfaa539a3fc7b4c27a38f"},{"path":"core/crates/auths-verifier/src/approval.rs","sha256":"c3cae6a49e169051eb555bb092b1069a4d422516d6a2114623a89e5f31ff923f"},{"path":"core/crates/auths-verifier/src/causal.rs","sha256":"9635230f33b13a263573d319ac8a1976addbcc07677514a43e3c7bf28dc04587"},{"path":"core/crates/auths-verifier/src/lib.rs","sha256":"f22dec38dfa47ced8da4f605390da8453273bee1da010f57fd1fdfcb10e0b389"},{"path":"core/crates/auths-verifier/src/observation.rs","sha256":"0bb07f06a0f9524c88427df1c972b1de8ba038a9eeeb15d3134c25125ae84b1e"},{"path":"core/crates/auths-verifier/src/trace.rs","sha256":"2213d72023a1d9e0413a2cf2c51c3dad9e04775d86033a0caaa9d29a8f0036f8"},{"path":"exchange/crates/auths-proof-exchange-model/Cargo.toml","sha256":"34b2db64f93a288e942b5a3918d28cdcbef906e0dc9074ce848018d3d5f7a1fa"},{"path":"exchange/crates/auths-proof-exchange-model/src/lib.rs","sha256":"49fac5aff2339d3a57c41cb8bb2a82852538e8f77ecc4b157c88e264ff31fb55"},{"path":"exchange/crates/auths-proof-exchange-port/Cargo.toml","sha256":"7ff660f1b7579dc570c791090aeb450404fbbf44c92781e289f5ccdde746d739"},{"path":"exchange/crates/auths-proof-exchange-port/src/lib.rs","sha256":"b408fb40c6432edc1facb3d8b3e9433a033f8dc73fe2e0ba5a88c972ca675021"},{"path":"product/config/auths-config/Cargo.toml","sha256":"e4b568ab9f6d84f7d7e6d66443fe825f360db9c27bc7c31d6ddc0647ba3ab304"},{"path":"product/config/auths-config/src/lib.rs","sha256":"fecf00ea65cef9018fda9af2063326d7065b869266d0d9e73a4f06816f1102cc"},{"path":"product/errors/auths-errors/Cargo.toml","sha256":"3b3a199b6460ba75bda84475bb5accd35e1485448a3981038db85bf4772dd350"},{"path":"product/errors/auths-errors/src/lib.rs","sha256":"7feeb9069fa4003f94f1f07c1c94619cf1c883e0dbaaf2187f04d0f742264bdd"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/Cargo.toml","sha256":"716f1f2a117d6d69d8effe9ee9057e24ba3502f20af6a602b06facb638cdabed"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/api.rs","sha256":"9ea61dd7ddd93282b073b98e453e6b75b26dc49689c04e9782435d06a3a09e48"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/clock.rs","sha256":"73f0a6e0f5903883329fa6683f5888288f759512ac69e5c87efd2b6b87f7d79f"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/http.rs","sha256":"14c1fce14e24c984b2a275563a29b6326fb08367922b6e8d37ba38b9cb81aa2b"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/identity.rs","sha256":"186de11230c8b33375951c4368609f8976bf9795f171af3fd7fac26207a94361"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/lib.rs","sha256":"0b4617d044f5254a5ab22f5a2578f91cc025206a8c1845be39c1c56dcdf7a5df"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/names.rs","sha256":"41bb23572d6002e23ee103d6fe70ecd68764861c6f2e48a1c53af998270a4afa"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/sigv4.rs","sha256":"39fed883f4802e68d3b41a68fea0aba0737810996b33d13577de70faba004c29"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/store.rs","sha256":"fc60ee9c49b2f4f063c449b4c78100c5c4872779e94ca168f796603b380ef6e4"},{"path":"product/integrations/auths-custody/Cargo.toml","sha256":"1e14034185ad1ec24a977fd5f41d0abee219606245c046ce2a82287fadef448b"},{"path":"product/integrations/auths-custody/src/conformance.rs","sha256":"13a2b28bba4a7af5b00bb96d16ecf027d35d5487b314e48a666fb8ed09c2f2e9"},{"path":"product/integrations/auths-custody/src/key.rs","sha256":"c3b1468b8538421a796aeb65a0cd94b942e3788e78741f20dde07b4838e0c3da"},{"path":"product/integrations/auths-custody/src/lib.rs","sha256":"836ad8044440fd250457a46f5c4a980339534a8af6a4daac2643560050b62d39"},{"path":"product/operations/auths-operations/Cargo.toml","sha256":"73dde1e914ba5e1386f8d49c0d730423cc72ae77ec44c6554a6a75cc8e8922b1"},{"path":"product/operations/auths-operations/src/explanation.rs","sha256":"b4a39bcbd5712cb9e735ee7deeb281f3fa6af5ddca973735bf3d87dce427ef11"},{"path":"product/operations/auths-operations/src/lib.rs","sha256":"3f401a56555113b98f57bca172a2660eaecedf76247b83a3fdbb089c133a29cd"},{"path":"product/operations/auths-operations/src/render/json.rs","sha256":"2ae042639960afee123730e945d373bc5dda1d2b3af20ae16c939a7e99b9e418"},{"path":"product/operations/auths-operations/src/render/mod.rs","sha256":"b3b7f6fe473f49227ace5a68bfc3d8dc14b5db8dd9888fd9e207070337b1b8bf"},{"path":"product/operations/auths-operations/src/render/text.rs","sha256":"f216cf3bdb00e264523271b16e7059535ac6b1aabf271cebd7935af155e4bfec"},{"path":"product/policy/auths-bounded-policy/Cargo.toml","sha256":"babd5d200923137ead71d8c2528f847cea323ce98da942a1320b054436612c47"},{"path":"product/policy/auths-bounded-policy/src/arithmetic.rs","sha256":"75e43c5d4eab8d1f71c1daf53839f5f9fe45a400afc1f63a30c6f55ce3632627"},{"path":"product/policy/auths-bounded-policy/src/commitment.rs","sha256":"c5706f2d583454e1a7f570f7ada138d4d864bef0205dfae7c1296774f396bb3f"},{"path":"product/policy/auths-bounded-policy/src/eligibility.rs","sha256":"c9acdfb793074e687fc36efad506be27dbd99ffbf40387bc66c8de39ef238432"},{"path":"product/policy/auths-bounded-policy/src/identifier.rs","sha256":"0006a32bae9eb16c4178cf797df418d2b0a781f2bc6474b741dc1a908141831c"},{"path":"product/policy/auths-bounded-policy/src/kernel.rs","sha256":"99187c28b161ac70bee1afed60711f7f645adb4d1671a01863f9849b369811d5"},{"path":"product/policy/auths-bounded-policy/src/lib.rs","sha256":"76a18638b810e62e594d6e951504679305ce21841388e0c282ad51cd7841b91c"},{"path":"product/policy/auths-bounded-policy/src/receipt.rs","sha256":"3b9eae82f349956d3e7f29b57b254bff5ce67cc703e6cf43445ce2827676d1ad"},{"path":"product/policy/auths-bounded-policy/src/registry.rs","sha256":"4e251ea5833559841f8ee0bd9b66c0c01c39fa5e3a21720a19c4e8adbfcb99d0"},{"path":"product/profiles/auths-profile-api/Cargo.toml","sha256":"7ae85761f58625b5d678f961fd052eebf3e000ef565c7312e3ac857763c0017f"},{"path":"product/profiles/auths-profile-api/src/lib.rs","sha256":"a194b82b20bf8aa864c2334ef6c6aec30b2154ded972862252d5dcefa488ab95"},{"path":"product/profiles/auths-profile-mcp/Cargo.toml","sha256":"db264fc25242f7b7e4133cbe5782545b3107b406c87168ae072683cfb59eac66"},{"path":"product/profiles/auths-profile-mcp/src/arguments.rs","sha256":"a5de696586d507e2aee4a49fee99ef1ef4c51a2e46603f8838f1af6d9009833f"},{"path":"product/profiles/auths-profile-mcp/src/lib.rs","sha256":"d0f8b733a09ef8408336cdebc8948d6a5861012ce6878598b11be7084dfd4280"},{"path":"product/profiles/auths-profile-mcp/src/session.rs","sha256":"166c281fa66333388e4760d6098dad02d3359e1d5de4b8f93312c014f97abb03"},{"path":"product/qualification/auths-recipe-qualification/Cargo.toml","sha256":"b7b15b30b9a3d96d4f089d514266d3a892de6608d30707aa44be31cca89ca9fe"},{"path":"product/qualification/auths-recipe-qualification/src/canonical.rs","sha256":"30a9b50777f0dcb4b606abfee2467d5a975d9f6ad941ab6c13ca3df5b359f667"},{"path":"product/qualification/auths-recipe-qualification/src/closure.rs","sha256":"0ad6aee9bd981e2863fa725f209ec84031db2ff12f4c7ac3aaf5120f0bb86039"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning.rs","sha256":"db135c55e4e3079a73253ebae275536523eb36b545d1c152b4d7dce3c6b76828"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning/tests.rs","sha256":"4dde3736d206099b1bea4c14e0092c6c1287d1af9065958777d7c54331dd8686"},{"path":"product/qualification/auths-recipe-qualification/src/error.rs","sha256":"52d5cf720a1e4579008fdda90a3ac2c31f0b8db57985f121f65e54b4da2b7dd1"},{"path":"product/qualification/auths-recipe-qualification/src/evidence.rs","sha256":"ba45a7409d67a8af26ab811af306412014557477a101ab2a8eb0faf8f2bd4b91"},{"path":"product/qualification/auths-recipe-qualification/src/ids.rs","sha256":"e81a906d571497ab2da753e1532d4443706410e0b75fdd59a7d2d788c7aec403"},{"path":"product/qualification/auths-recipe-qualification/src/launch.rs","sha256":"805154ce931e3977f2a2a2c62909d90f7c0a22dc167bf4f1554dcf19316ffef8"},{"path":"product/qualification/auths-recipe-qualification/src/lib.rs","sha256":"0e24b0f81191df0d078c7f4d73ced784ba9472372bfcdff3c7d0e2fb1687b323"},{"path":"product/qualification/auths-recipe-qualification/src/model.rs","sha256":"3484eb0ec287b23d4682ade7b1b0f8d1335985b3fb180f06fc28716076957d5f"},{"path":"product/qualification/auths-recipe-qualification/src/release.rs","sha256":"ec478e53f70052e566aac7e15be2f9e1b1cd46837ac6990ae955fa864d311586"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/mod.rs","sha256":"1e4e5edc12d921e6b95475b3c1850f58f622c088d24a1fc9398d34019fb2f288"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/schemas.rs","sha256":"c59feec2805621f341a90f81fc005e2c12f7a70f9d264fdeacccb2be4fe1c046"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/verification.rs","sha256":"bdf5746fed4d10a7f577f7878619a917d29aa8b7d522f00d9f774e53eff4c8c1"},{"path":"product/qualification/auths-recipe-qualification/src/verify.rs","sha256":"646ff0e52e915174ad183768706e35e5ce2118b83475455310b930a77a7877f6"},{"path":"product/receipts/auths-receipts/Cargo.toml","sha256":"6001fa1375899953aafcb07c23a6da0c8f57ea7ec08bb9c950b12a60a8cc6f0f"},{"path":"product/receipts/auths-receipts/src/disclosure.rs","sha256":"ba9ed439be0a320c8a01f5b6e9b51361c1a37e076947490d8e4a484ba6bb119c"},{"path":"product/receipts/auths-receipts/src/lib.rs","sha256":"547a57c4160256719cafb7d0ab972d9fc80b0da14fbbce4148c70c414070ff36"},{"path":"product/runtime/auths-connections/Cargo.toml","sha256":"babeb6e1dda3dfb66291713ce1e43dce5c349833d0b50ea4dccbf986030026b2"},{"path":"product/runtime/auths-connections/src/credential.rs","sha256":"22bc7de6bcab7cebebb64edf6423d59b6493b78dca65b9da62749e3171217762"},{"path":"product/runtime/auths-connections/src/kernel.rs","sha256":"a456af19526ef7b19278551fd8d97606b6e7aa5a195e70bdd85d1e0786090ce8"},{"path":"product/runtime/auths-connections/src/lib.rs","sha256":"79209249a0acba0e854d9937255ea0e30a9a6f8e1c2baad77ab83646d392de22"},{"path":"product/runtime/auths-connections/src/model.rs","sha256":"de34a089cac9702acb889b7602b3e4732306c9e61029ec892582b7e02b73fc77"},{"path":"product/runtime/auths-connections/src/registry.rs","sha256":"e57640e003e72ad3235c567c2bb944a262bd64e673f023b62ea091094cc7e946"},{"path":"product/runtime/auths-gateway-kernel/Cargo.toml","sha256":"34f864e67656af4ac7e5c7a347a23f01fc8ab31365b8e23c0ef474483b14a183"},{"path":"product/runtime/auths-gateway-kernel/src/construct.rs","sha256":"e9d65744bae273d65face4285e5d2da75c06a92ab48f7b8333d496604e31c63c"},{"path":"product/runtime/auths-gateway-kernel/src/lib.rs","sha256":"cfda6f8453426564c085475f183b6f790b438768a19668f1b65d33ba59dc8632"},{"path":"product/runtime/auths-gateway-kernel/src/order.rs","sha256":"efc2f2eef68232fe3082e1607e6f1e87d4a19cbb2f492bdc6e71916a2461b6a8"},{"path":"product/runtime/auths-gateway-kernel/src/outcome.rs","sha256":"ac0245699457c802a70cdd6f52a01dcb4777c487b58ed7dc9cfc99345465ccaa"},{"path":"product/runtime/auths-gateway-kernel/src/ratio.rs","sha256":"7ace22264812e6fc1ef3a62afee402cf43494bb71ae0d3de219ad1b39d690bcb"},{"path":"product/runtime/auths-gateway-kernel/src/recovery.rs","sha256":"9f46dcd1685ab6e4d1ba04a3fc286a9f3afee8fb47829be1fbc670a7926a2dc6"},{"path":"product/runtime/auths-gateway-kernel/src/transition.rs","sha256":"9c9c292397aa640c2f002ffb5befe110f86d0aa246f3ffe99440718e5174af3c"},{"path":"product/runtime/auths-gateway/Cargo.toml","sha256":"959b1a58a110315f86115966f85d6992afd91be28d741fee7354207d4bd6f258"},{"path":"product/runtime/auths-gateway/src/admin.rs","sha256":"5d0f1b583a4cacdcbc62521ed1a5730ed6b57d42bf826708a0c5e591272c4a12"},{"path":"product/runtime/auths-gateway/src/admin_boundary_tests.rs","sha256":"7ef23fdaf512cfa6315aed72577ccf0c4d04725f5b4fa4b5f0482e27e5e7ba1c"},{"path":"product/runtime/auths-gateway/src/admin_fault.rs","sha256":"4a66386d91daffeeac4080c16a0d4e724adc09220ba056c0c4267e5f4fc05268"},{"path":"product/runtime/auths-gateway/src/app.rs","sha256":"acd1deab7a8524c97d4a76ec9f7079b3afc035d707e0480a0cbdf4d084972099"},{"path":"product/runtime/auths-gateway/src/app/content.rs","sha256":"4c01001659b1a563dfd4abe7e002e3f85609ffef511a0e39f967af944ea01300"},{"path":"product/runtime/auths-gateway/src/app/content_tests.rs","sha256":"6a239a15732dd279abb35a72721eb2034bf5aac79439edc7c34aa8d4fdfd5212"},{"path":"product/runtime/auths-gateway/src/app/participant.rs","sha256":"1d76d37ba8f7a4657ff013ad845bd90ab82636ade7e7a798937db05ee52a9424"},{"path":"product/runtime/auths-gateway/src/audit.rs","sha256":"aebb55cfe1305c6de26fda03989e138a6731ec57d1cfebf4114886bfb6b93d26"},{"path":"product/runtime/auths-gateway/src/audit_export.rs","sha256":"6cc3d70ef4cc64026de4ec4e094979a95fee6fadb86707b0e09515ad754632be"},{"path":"product/runtime/auths-gateway/src/audit_tests.rs","sha256":"8cf1ab4cd2789973791805b07216d423690645aa4f28307f87dbcb803bd2ad22"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway-harness.rs","sha256":"12b0c24d36b2e6a3be392d3c081a783b355fdd67dc5b54bacc0410e803116b8c"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway.rs","sha256":"6ae544618bfb0c0b938fb632e054c36e988c6eb278d62775405937c6a5d6ffa6"},{"path":"product/runtime/auths-gateway/src/binding.rs","sha256":"663b0ce878319511aa7d05722ab4ab2fa9be18817884ffb2ee9f131ff1e382d1"},{"path":"product/runtime/auths-gateway/src/bounds.rs","sha256":"d0658585765d4d8f9865f65d23d850ec196eeca23fe65a66a55f1f1bc9b2c9b9"},{"path":"product/runtime/auths-gateway/src/bounds_aggregate_tests.rs","sha256":"ab34f227b7c8692ba1da88ccb32bb3687a66adf8353d8282fae905d4a88eb612"},{"path":"product/runtime/auths-gateway/src/bounds_tests.rs","sha256":"80b116ccf65bda2d7f2fbcd3b26fcf82b0a4bd3dce3a5df7842828cb271d7741"},{"path":"product/runtime/auths-gateway/src/candidate_runtime.rs","sha256":"ebe3d2da3a340c990b6fdcaac8c4418a7c646c0148c8222c19d925b21dbc7da8"},{"path":"product/runtime/auths-gateway/src/commissioning_budget.rs","sha256":"f5c38e9e07df3cb99b6bd664f33eae414b9f3dfef4932d69c19a9b174906dc1b"},{"path":"product/runtime/auths-gateway/src/commissioning_budget/tests.rs","sha256":"da104a1643c37515deec6397bca6db2054f2c9158ec3d230a1b1ec9c7d0f659f"},{"path":"product/runtime/auths-gateway/src/commissioning_floor.rs","sha256":"7fa6991c5ccd5ae1403be84b3da390323fab09f36e15ac01fd7a38ea350c6fdb"},{"path":"product/runtime/auths-gateway/src/commissioning_floor/tests.rs","sha256":"6b663d6e556adc0b455b81845bc4394d82c6c4de0c5f43e1310f3ddc6e4e40f7"},{"path":"product/runtime/auths-gateway/src/commissioning_session.rs","sha256":"919fe57fafa563f770402be66b4e32f1f0d652f09fe1276a62e41b50d66f8696"},{"path":"product/runtime/auths-gateway/src/commissioning_session/tests.rs","sha256":"48d44a5fccea737930f24c49a397428edc439525330c83a868b5113a48f122ab"},{"path":"product/runtime/auths-gateway/src/configuration.rs","sha256":"e5597c39b1acbe50cad20c02722feb38d382294026a0a7a4097e6d97b68eaafb"},{"path":"product/runtime/auths-gateway/src/configuration/engagement.rs","sha256":"67bdd2c792b9dfb1168020a10799af043143461f020b74b18d20fd4089f9b40c"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/audit.rs","sha256":"ee35149f8f348ff2a20ef7185ae0bc5a7b912ad5746510c0714b235765b8b1a4"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/blob.rs","sha256":"12af8071e9cd21c04cf9b55d3cb5e8eb2f33ff888e03e06e114222feb4abf752"},{"path":"product/runtime/auths-gateway/src/connection.rs","sha256":"54f5d53c78f836bf8ce1236d449b3f4f1daa95312102d5583ef69cb4e57b513b"},{"path":"product/runtime/auths-gateway/src/control_namespace.rs","sha256":"0333baed635d34edb066d2b9cb4c6ea3f40faad4be8c75f54c989570515dddee"},{"path":"product/runtime/auths-gateway/src/credential_journal.rs","sha256":"8241dbc7a90054457c7c99fec3b35a433f671682b877f01f8429b8618a6d8e20"},{"path":"product/runtime/auths-gateway/src/disclosure_transport.rs","sha256":"614c975a4b9810f40092a2f9cdd022308b75e649167dbc486c9907f7570d8d45"},{"path":"product/runtime/auths-gateway/src/echo_verify.rs","sha256":"6d453051665f823abd7354d5c50031d9524cf47d6092d2f09080ae814e3b9575"},{"path":"product/runtime/auths-gateway/src/effect.rs","sha256":"5e1d5b8c28df616917d442b023e5161a2e3527ef7b8fb63d736728542c6caa2a"},{"path":"product/runtime/auths-gateway/src/effect/acquisition.rs","sha256":"0afd6aec490e7995a440786be6ac69cb5461201a4b4ec303e8b5a6c12ed97202"},{"path":"product/runtime/auths-gateway/src/effect/authority.rs","sha256":"2490494c3a1636decbfd04b2dbac71c47e49be26b61cc6cf41319a13450bb4a0"},{"path":"product/runtime/auths-gateway/src/effect/candidate.rs","sha256":"d1efc3ec7e1fa642af26f4e4c6a25924c60821dc2e96bd0b458d9292d3866678"},{"path":"product/runtime/auths-gateway/src/effect/candidate/proposal.rs","sha256":"d78574109f41300edfcd7ad38155439ffc3adb9a799554d75d5484738ef174f1"},{"path":"product/runtime/auths-gateway/src/effect/capacity.rs","sha256":"300fa32e09dab7c679b8c0a69bb4e3c1e924ed2ce1416090a2aa477a7eec9f0f"},{"path":"product/runtime/auths-gateway/src/effect/content.rs","sha256":"9f3b53c8c2ad5cafa183ed1229ee03f2cd8a610009b07da560372bd0fbae1673"},{"path":"product/runtime/auths-gateway/src/effect/disclosure.rs","sha256":"0acb5ac805e91c952c8f0028db03ae607c3753cbd08a76035f2d1b4fa6fe6244"},{"path":"product/runtime/auths-gateway/src/effect/disclosure_auth.rs","sha256":"32fa6f040ae46f3323df6e153c6ae810eccf32d22b9945e5565e7189dc877eac"},{"path":"product/runtime/auths-gateway/src/effect/engagement.rs","sha256":"5a36ff3f4460bf026a7e99fadc713672fbeb05dbc6f6393d10cb06440e779e54"},{"path":"product/runtime/auths-gateway/src/effect/lineage.rs","sha256":"0b3ddeb56377b69264bbd4738c624639a8dcad91b4df3328f907db439747faaf"},{"path":"product/runtime/auths-gateway/src/effect/prerequisite.rs","sha256":"e79596a4cbe47e307e3a3056c52582b1cd01a43c4c2d69479ee03df1f62af3b0"},{"path":"product/runtime/auths-gateway/src/effect/release.rs","sha256":"84e2572f76216e02131e9bbcc850f4b3572473eac6dd71baa144e63a2270cff7"},{"path":"product/runtime/auths-gateway/src/effect_binding_boundary_tests.rs","sha256":"83d8e0edf524a2be0d2c494e4b9897cab0ddcf61184828d716bae10cbaf904b4"},{"path":"product/runtime/auths-gateway/src/effect_candidate_staging_tests.rs","sha256":"7db0f4fd86cf119a6b4b0702267c91debdf11a73fc93105ce7e98d0c6e4cd8d9"},{"path":"product/runtime/auths-gateway/src/effect_candidate_tests.rs","sha256":"e93c08c2eca2abdc58f7db9fbf19e775e4f709225b04789832e2b8f5a81c8948"},{"path":"product/runtime/auths-gateway/src/effect_content_tests.rs","sha256":"63eb623413167bf9ff34161b6bf4f54f68709af9fb1d1e7a419a07f63ce04409"},{"path":"product/runtime/auths-gateway/src/effect_created_resource_tests.rs","sha256":"98f7a9de7824dbf3e2361b3006ef823002b391d557969442edb371266f7673db"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_delivery_tests.rs","sha256":"9586b84b045561edbcf8276cd9769b412240f04248e240cd29a5068d4cd03a00"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_journal_tests.rs","sha256":"19f349a090f07288cfafe24aaffad49f28fe163e59870520aac6bb899f673a99"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_tests.rs","sha256":"5389b03d7d0cd5b23abaa3c396450fa4018102c942b27af35aef81e65b9bb841"},{"path":"product/runtime/auths-gateway/src/effect_engagement_admission_tests.rs","sha256":"46a34a83cfecb180c6f0937e83b8b14009afb4ce315864dfb9b3137759cb9959"},{"path":"product/runtime/auths-gateway/src/effect_engagement_control_tests.rs","sha256":"71e2e965b71b52d2fb877e22e5d4951d1d4072adede4b60dc3996197ac554395"},{"path":"product/runtime/auths-gateway/src/effect_engagement_delivery_tests.rs","sha256":"14b241916d9c3fe8141a38e93c62f8b8a039f2780ad3cd63282e707feaa4d1b3"},{"path":"product/runtime/auths-gateway/src/effect_engagement_information_tests.rs","sha256":"27735a9e1237a063c2a525cdcd93e8102164d549dc72509767a977ab4abd8491"},{"path":"product/runtime/auths-gateway/src/effect_engagement_prerequisite_tests.rs","sha256":"0566288b7f77f5beda44c8374f31a5053e02b44ccbe92781618e9fd90b1a6800"},{"path":"product/runtime/auths-gateway/src/effect_engagement_tests.rs","sha256":"2b78b315c7539d4119ce5b20164d6e4855d9b403b76eaa5b72fa3b72959a7621"},{"path":"product/runtime/auths-gateway/src/effect_instance_recovery_tests.rs","sha256":"eee64773b6373e1bd7185c07c5c4ffeaacafb907f4d0aa17b89ba1556beec5e4"},{"path":"product/runtime/auths-gateway/src/effect_native_tests.rs","sha256":"fd9cd960dfb02f68eef479ed2a95d65b79882c20f8a737c9a74d6a4222af407b"},{"path":"product/runtime/auths-gateway/src/effect_prerequisite_tests.rs","sha256":"51efa528051919d0ca67643cac3d0e06afac534706b802adb18311e2bfa222ff"},{"path":"product/runtime/auths-gateway/src/effect_read_budget_tests.rs","sha256":"9bf8491f0da471e07b5d96dbfdbdf5fbe5a47fec11700dca55a6ac05a1ebb68b"},{"path":"product/runtime/auths-gateway/src/effect_recovery_prerequisite_tests.rs","sha256":"e6235b83ac159d9446d79e6e072dd4aa9d0447a68055be3b32de6450a2300699"},{"path":"product/runtime/auths-gateway/src/effect_review_approval_tests.rs","sha256":"6e5c5a72ec93255d7d8f219ae8cf4401431644ff03d624164645a1e9d2b2e87e"},{"path":"product/runtime/auths-gateway/src/engine.rs","sha256":"113390cb4ef92ef337b5f82b7c77c54a428ec492756f90100b74002487dc8c7f"},{"path":"product/runtime/auths-gateway/src/entry.rs","sha256":"6fd17c142c0001b9cda33c33b0e18f4d1d40866cde8a66b3f57d46f971c1ead9"},{"path":"product/runtime/auths-gateway/src/entry_tests.rs","sha256":"86dcfc4918394052d18fc5509dcc0e740a064a97b084d1c2c9f23eddedaa6db4"},{"path":"product/runtime/auths-gateway/src/execution_witness.rs","sha256":"e8b1a8e41d5e3fa309760067849d390ef065feeb46701a83391832645a2f000c"},{"path":"product/runtime/auths-gateway/src/fuzzing.rs","sha256":"2dcf0a15e407a9180c7fecb7eecfaf4674698aa997b1f5de9a3649a49baebd1b"},{"path":"product/runtime/auths-gateway/src/generation_floor.rs","sha256":"a0b6052060af4f364766d49f2db74b6f853adb541b77f103801a7f292961b14e"},{"path":"product/runtime/auths-gateway/src/harness.rs","sha256":"5e296231c98e6429f3d805150fab9ce2d6a5789d41dd83f562b677314374567b"},{"path":"product/runtime/auths-gateway/src/harness/authoring.rs","sha256":"de511d89bf6bb72e443558caf0c4835dad2908b5fe5c13a3a02483e85dd7d354"},{"path":"product/runtime/auths-gateway/src/lib.rs","sha256":"a39306228bb0ee5e7c50fb83149756a15fa761d52bb6807942f1ec77db2049d6"},{"path":"product/runtime/auths-gateway/src/listener.rs","sha256":"aa08239bcbc1fcb55e8a212fbdf6a84f12985b0d436dcb51dc58b06e59e435f2"},{"path":"product/runtime/auths-gateway/src/native_budget_tests.rs","sha256":"d6de965afc7f794e611545744fa515f833abf315157519ed8390c195a7dac8c0"},{"path":"product/runtime/auths-gateway/src/native_cost_store.rs","sha256":"d1acdd7e4076e3a32f312dce74a01e5dcbccdb1f8912758524b7841d61377eed"},{"path":"product/runtime/auths-gateway/src/native_cost_tests.rs","sha256":"45bcb4e9174d4c23495ac734a42b5f8b7735c14d4599cd191d50f6547aaf374c"},{"path":"product/runtime/auths-gateway/src/native_crash_tests.rs","sha256":"46998a973388884d902a6b07e12fa342fb08ea77363a43a41b0b0a7a5ccbcde9"},{"path":"product/runtime/auths-gateway/src/native_cross_recipe_tests.rs","sha256":"e2dbde7afba1b3da5df3a7a44821f413ab7861a5417ad16f8b912f390128d115"},{"path":"product/runtime/auths-gateway/src/native_dependency_tests.rs","sha256":"0e15d059140ad485b2548f4234b94424d62b5563a8dded42224329a76b101f37"},{"path":"product/runtime/auths-gateway/src/native_differential_tests.rs","sha256":"17fc0803fe5e7f78b416f8f68e7c9066baf1bab69bdf0b51c44fd19e3d719da8"},{"path":"product/runtime/auths-gateway/src/native_disclosure_budget_tests.rs","sha256":"bb2a6f76f06a6d42d69698f7d22d0b4aeb4dc857e442042d65582097567009fb"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_testkit.rs","sha256":"4beb946a288e4fe082cc0917f4200b18b8154eff98eca1ea3d0c830ffdc3625d"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_tests.rs","sha256":"425e423f04d92794656d4da915125e4d0a8be25ec85fb88244ee0c27ece8ec44"},{"path":"product/runtime/auths-gateway/src/native_disclosure_entry_tests.rs","sha256":"50f5dc35a9a8ef462b8833296cb313b2acec81d544b7e317c7f188741d0786db"},{"path":"product/runtime/auths-gateway/src/native_disclosure_file_fault_tests.rs","sha256":"72d67bb0d3fd77fb93c4f5d3ab0afa5a939742b5a47acf006a511d99d72cee9f"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_batch_tests.rs","sha256":"a8b8a90210d9f7f0012e40701c09c524527f93f9e56933d89b58a38464cba702"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_commit_tests.rs","sha256":"1e14503140805c12883e1c288b75029aa7fd9ebe8c5d490a4c503161c4a27a4b"},{"path":"product/runtime/auths-gateway/src/native_epoch_tests.rs","sha256":"e37d34e699baa2b84578bd4c378975dbdceb407de51861c2217afdcf7b48e3b9"},{"path":"product/runtime/auths-gateway/src/native_federation_tests.rs","sha256":"bf2c6313f70c4b7f51f9ad05351048be3625d9432f3c725e84b046936304f540"},{"path":"product/runtime/auths-gateway/src/native_file_fault_tests.rs","sha256":"e1077a0059aa69918fb7e0a3481edd19af45a7343ce876583fbdbc96c4291b21"},{"path":"product/runtime/auths-gateway/src/native_generated_history_tests.rs","sha256":"5a5e308c1e4bc32cac31badf91e9453bed62e3e90f1b6585fc522bb4038990f9"},{"path":"product/runtime/auths-gateway/src/native_guarded_mutation_crash_tests.rs","sha256":"5329f72e7f22399a17627b058c2035c243e1b6ba60c9dfcd1c834258244cc440"},{"path":"product/runtime/auths-gateway/src/native_information_journal_tests.rs","sha256":"067bc51f7011971e8c5d021430fbfe323e5cc3cd7cde41c546cc92fad1f2cbc2"},{"path":"product/runtime/auths-gateway/src/native_information_replay_tests.rs","sha256":"165a1dce11c2006e6adfb5eee4c4977737b830995e6e29f77544a999893b0a5f"},{"path":"product/runtime/auths-gateway/src/native_journal_tests.rs","sha256":"d803ff53f90ce2a8c29808b4f874cd81954a3a5c52e19b519ab22f0543808fe1"},{"path":"product/runtime/auths-gateway/src/native_mutation_budget_tests.rs","sha256":"41d7f560d6b04e750acb2f8add2544745743ea9fea760a8ffd5ec5aab307e94c"},{"path":"product/runtime/auths-gateway/src/native_mutation_crash_tests.rs","sha256":"3e1befd35e7264024666331b52ca2245540ffa8f9927ed62e3aa45c7c8cc8950"},{"path":"product/runtime/auths-gateway/src/native_mutation_entry_tests.rs","sha256":"219a1986cf7440d31734db9db3c25f7997486a2fc29fee0a1ac8c7f0ee9ce803"},{"path":"product/runtime/auths-gateway/src/native_mutation_file_fault_tests.rs","sha256":"252f6ca9455b291b0873d983c8fccc75254d947b89a3fe9a1de0155c8ee53930"},{"path":"product/runtime/auths-gateway/src/native_mutation_journal_tests.rs","sha256":"181bf0a196805e50944cff4fe2315459eba877e7d7b5b90bf3c99e3353a8cad7"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_batch_tests.rs","sha256":"137f0e2f0e8d950cea3b38a7a03113c61177e54083f11eecc34b994ce41728f1"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_commit_tests.rs","sha256":"5d9a3b8a1601c83c66db3aefd904c16233ce2700d070ba5c9c4f81f4051c5fad"},{"path":"product/runtime/auths-gateway/src/native_mutation_replay_tests.rs","sha256":"3a874e1416cbb29cce70930f9955a70b4a5ad46e2cbca8d55f1acf070215cfbd"},{"path":"product/runtime/auths-gateway/src/native_partial_upload_tests.rs","sha256":"5fa867219d61b7c8a563e7cf5111291f15b8a11464623859be8aa9ea858170ea"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_proxy.rs","sha256":"1c95b3f8af48b78dc4f1c1baa3b26c1aa7bbe868c23aefbb32f1f0ae592f0045"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_tests.rs","sha256":"f021b110991ba3ae497705d0aaa0350a210f09b6f102fd71ac2f8eb4ff8f30c0"},{"path":"product/runtime/auths-gateway/src/native_postgres_fault_tests.rs","sha256":"0c6edea869a20765b322fa69c48e580aa0664e726b6cef483d4eba49803135ba"},{"path":"product/runtime/auths-gateway/src/native_process_tests.rs","sha256":"778a02ea4de3a0655021bad7d2f4b5f0007c6518ef60e966db3da49bfaf22c37"},{"path":"product/runtime/auths-gateway/src/native_public_evidence_tests.rs","sha256":"dac3a70f4535a14aab49ceed5a6b5fd7002e199270bb5a120f5bc8edfa5398bf"},{"path":"product/runtime/auths-gateway/src/native_recovery_actor_tests.rs","sha256":"bfdcdbaa0ee1d6822c57e5ab9ca524e731c393f9289c5508b61a0fc1d0b065e5"},{"path":"product/runtime/auths-gateway/src/native_recovery_authoring.rs","sha256":"9f4e8008160b349a52267eacd6a1c1e5c31c3c1cdfd71b574162ccaa9f7430b6"},{"path":"product/runtime/auths-gateway/src/native_recovery_history_tests.rs","sha256":"0c6ec8fe18fd4cc8496f04c3bc38552c3602d7254cae979fac76aeb7c7e4f41b"},{"path":"product/runtime/auths-gateway/src/native_recovery_limits_tests.rs","sha256":"f147c2e78cbe364fb3fd0c97bbbacdad86d77ca8c0b8575d9fa108968f82379a"},{"path":"product/runtime/auths-gateway/src/native_result_wire_cases.rs","sha256":"2b93c8ed96d7092216410bb99435411fd57497284639f56e0120b16639a98eb2"},{"path":"product/runtime/auths-gateway/src/native_retention_tests.rs","sha256":"224c941e394dd711a7ee19e7b52a1d6b7359eec62e7decec323d066319cb59d3"},{"path":"product/runtime/auths-gateway/src/native_scope_tests.rs","sha256":"8d3f362df9fadc10c22f0483f3a16d238d0f82f393a628727adf0b728707673e"},{"path":"product/runtime/auths-gateway/src/native_threshold_testkit.rs","sha256":"74e6b6ed1b77b463effff132fd8af9b3b59aeee64704a8fe8a19ed3ca9d79bf7"},{"path":"product/runtime/auths-gateway/src/observed_tests.rs","sha256":"91223493fefd3efc3fec58db225f00786b539e3b24027419e919d8bd7310059c"},{"path":"product/runtime/auths-gateway/src/observer.rs","sha256":"1c8988dd8807566d5a152e1894aa0f4c80c3ba7302ac910a4a6978d4f31b323d"},{"path":"product/runtime/auths-gateway/src/onboarding.rs","sha256":"6180e79d7698bcd4dd6ffdf32dcfbe14427f96de92f4ae4ceac4dda651f3671b"},{"path":"product/runtime/auths-gateway/src/operator.rs","sha256":"fe3b11fcf8e2394ab955b09a5b9b1f979c46f9e07a4f16e1a3ca160d675f1ace"},{"path":"product/runtime/auths-gateway/src/participant_control.rs","sha256":"58acbac1ab812963ad0ba0e2864395a87b3afe50962263cb44e19776cf5100b8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment.rs","sha256":"719e82ed5f30f7b37d6d87e45220918d945a2ed8fadc9e760308398e9f6501a4"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audience.rs","sha256":"83940af76073d391f1181eccea2e9b682dbd7ffcace6c39b2123ebe09e721573"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audit_tests.rs","sha256":"1a8cb537f16d023962f1375b7f15d0879b2be85c29775dd677c84d87b8c9d183"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/configuration_tests.rs","sha256":"2e1cb7024ff137bfd3292929f26ec078c9213f6276f4a2f915b279530c6c7782"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/cross_recipe_fixture.rs","sha256":"5a957eeac83da3f1c74e923648319674f6a90e6673b45fdc029b784b1c09053a"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/identity.rs","sha256":"a04328f93d59da6c34d623319b8a6f55a32e7d718837109b299ef6935b126930"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/recovery_tests.rs","sha256":"b13faae436b325fa6ea234613f1542f4ec8b1dfb7082d3f31339ea7f4a8b0cb8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/root.rs","sha256":"586bfc83e1a615b7d255ea235f6e519945126bb3ba7fe41d2aecd1dbcdccc797"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tests.rs","sha256":"a6f83af4c504d7a5bdedad90e473c8032f10c384adeab29075051389040f7696"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tree.rs","sha256":"4f2b8965b91b6e23317168221d077b074fd149690e28c30fad6055982ada584e"},{"path":"product/runtime/auths-gateway/src/pending_vectors/attempts.rs","sha256":"79803db1c278b2133d4adb112ab325247f359cfa5cf34e3de32898f6a9bffe62"},{"path":"product/runtime/auths-gateway/src/pending_vectors/bounds.rs","sha256":"e612217307e1da5b0eb5ee6582a7458bb064b8aa8a529fc6555b1b334127ab68"},{"path":"product/runtime/auths-gateway/src/pending_vectors/codes.rs","sha256":"6fb3f1679b0fd2ca7a8ac6aaee65f586b9eb809d9d7c9e26d3dd8ae2bfd10307"},{"path":"product/runtime/auths-gateway/src/pending_vectors/keys.rs","sha256":"b0b1f79d2fadc06e91378a8250223a429163138e4b86e90e09bc207d80fabf86"},{"path":"product/runtime/auths-gateway/src/pending_vectors/mod.rs","sha256":"5de8340f0ef71a0b57a09e323fefe473d3160c6ae952b9ba46f714825fbacafc"},{"path":"product/runtime/auths-gateway/src/pending_vectors/outcomes.rs","sha256":"a8960d8e055ac31827e379513f57f00ed868b559079fa2a4687e1b055d48e3ca"},{"path":"product/runtime/auths-gateway/src/pending_vectors/production.rs","sha256":"15c687599b0342dc141878afdf727092b23ade67ee5564eaa671f3f06befad57"},{"path":"product/runtime/auths-gateway/src/pending_vectors/recipes.rs","sha256":"5d550e3708ea41a9547ae2207699bde5ff4435f5a1ed7afa4378fb8defb51bb4"},{"path":"product/runtime/auths-gateway/src/pre_entry.rs","sha256":"3f2554feda72fa047229d427504676a1fb14894bdd377055a3108d7b3e3587cd"},{"path":"product/runtime/auths-gateway/src/prerequisite_race_tests.rs","sha256":"683cc46b3718d12dbb42668dae4bc6ec7e7508dcbb6b6232fead2e3e4f510d0d"},{"path":"product/runtime/auths-gateway/src/property_tests.rs","sha256":"85a77aaf01d9be51e1dd7c72461653a099c51b0ca9c818800d991abe262b198a"},{"path":"product/runtime/auths-gateway/src/qualification.rs","sha256":"f25bbb01c2a6131633c5a4de4e59345b761609e47b3c69353187364996ec87ea"},{"path":"product/runtime/auths-gateway/src/qualification_simulation.rs","sha256":"61f4117e33db07be83ce0f0376f79a405ff6d8bb7ffc2e28ff0bf927486941ce"},{"path":"product/runtime/auths-gateway/src/qualification_tests.rs","sha256":"ed9eb74599074af67730d63f8c5093f6a5277bced96dffeb81317a6dd9f4c8c6"},{"path":"product/runtime/auths-gateway/src/quorum_tests.rs","sha256":"a6533de9bc2689ec632f009404daf363494e224e7b89b1c65bb2e2cd4fc6421d"},{"path":"product/runtime/auths-gateway/src/readiness.rs","sha256":"911c3f11892f94641574375e2da4c671c802738f71082f12c39832331052d43d"},{"path":"product/runtime/auths-gateway/src/recipe.rs","sha256":"efb99a8f060b5633ea8ea75f24378e701f6ba2af023faf8c7609e4de4e868637"},{"path":"product/runtime/auths-gateway/src/recipe/content.rs","sha256":"e3f8aa8cf2dd9ef5777d9d1e76331052c67be87873db0c2cd6a8f48ff940d9d6"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource.rs","sha256":"2284b6f7363b1a15dd3c91dd3043f46a5c7a9c12d997213b13751b82ae627e26"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource_tests.rs","sha256":"ab371d7d7a5dae249da924e7b94d5c863491a2af796d2febdf2dda2a191c559f"},{"path":"product/runtime/auths-gateway/src/recipe/effect_review.rs","sha256":"8f94896f0d124162d3dbd080c44582bb23ad181bb582ff5cd3d049d75fcb6d77"},{"path":"product/runtime/auths-gateway/src/recipe/lower.rs","sha256":"81118ea7ae6c2d9984b88fe9991f91283070859d56923ee4fdfe9a50eee9ccb1"},{"path":"product/runtime/auths-gateway/src/recipe/response.rs","sha256":"0b4a074eb05b98685697094ed4775c5fe588b3e34f954aa1844135fe14c94487"},{"path":"product/runtime/auths-gateway/src/recipe/review.rs","sha256":"f9f88f6d54c9a517b55ea717ce8caf5199954ff710c0d20e2bb609f6b1344a51"},{"path":"product/runtime/auths-gateway/src/recipe/runtime.rs","sha256":"6301c005c5f014eb81a7a85dfa3bd256ec15e35bf1cdf6e60815a2a18b7151a0"},{"path":"product/runtime/auths-gateway/src/recipe/source.rs","sha256":"f79e481ab0f40985819b317c540c715766611b5c8c0e5647c87849fefc10cbac"},{"path":"product/runtime/auths-gateway/src/recipe/tests.rs","sha256":"78cfa166bb02b722c92205d2a95c261ef4f3cc272150145980252cb4c51c13d1"},{"path":"product/runtime/auths-gateway/src/recipe/validate.rs","sha256":"3f613af38c5cf29901575af4f82a9daca6718b2da70bc84baa0994a71be6113b"},{"path":"product/runtime/auths-gateway/src/resource_identity.rs","sha256":"edf093bf84c0ca6c0a300adc6060fe10cf58b90e592dc3cd6ebd58e73632373d"},{"path":"product/runtime/auths-gateway/src/scenario_tests.rs","sha256":"eba5fe0268e5d8516eea79a2cf418f5c52ccdf777fa94e553cfba00f0b90865e"},{"path":"product/runtime/auths-gateway/src/separation.rs","sha256":"be9306848ca5d801767cf6aa14247c8618312ef0e202f00ce0c24c4844491061"},{"path":"product/runtime/auths-gateway/src/simulation_attestation.rs","sha256":"88705e5d45415f760f1e3c3a065c35c48f4f4065bf7b3feb7882246983814d6f"},{"path":"product/runtime/auths-gateway/src/store.rs","sha256":"5645f57bcd92190ff2c83836744ecc514558c466bb5d377b258a8d82d21504f9"},{"path":"product/runtime/auths-gateway/src/store/acquisition.rs","sha256":"c52193c7ca87f4eedc3a3523be12eb85a2825fa989d8a61b076be734eb99684e"},{"path":"product/runtime/auths-gateway/src/store/acquisition/candidate.rs","sha256":"90c133dfc48ed351d0f1fea9de236135e82297719c383f9f37404a335909d225"},{"path":"product/runtime/auths-gateway/src/store/acquisition/content.rs","sha256":"92f87e4556335af8e1c4157e60e6936ca02b271381569e14510bc2c35e697ece"},{"path":"product/runtime/auths-gateway/src/store/acquisition/recovery.rs","sha256":"cc1be15bb948608868d33a088951530834235220a8fed7d77161ff53bf416dc1"},{"path":"product/runtime/auths-gateway/src/store/capacity.rs","sha256":"d25c4a0d753317270cb352246c70642bf0659e6448d14061356e4e9ea7ed3811"},{"path":"product/runtime/auths-gateway/src/store/disclosure.rs","sha256":"3b2f68d024bb10b734bd1e48ceb4eed23d1348ec6f716be78ec27384458ff007"},{"path":"product/runtime/auths-gateway/src/store/engagement.rs","sha256":"953ef4c20f16775c10bca98b820536f347a6ce9c756934503efdb7bb77c41ff5"},{"path":"product/runtime/auths-gateway/src/store/mutation_phase_tests.rs","sha256":"163c177cf5e053126b46c7de7e429a99df789090b1127b5d3b91636efcac4365"},{"path":"product/runtime/auths-gateway/src/store_retention_tests.rs","sha256":"a9e300fde3c45999764ee05c4c6ea46cfb9ffcaa51b82337a322925ad50f4f50"},{"path":"product/runtime/auths-gateway/src/store_testkit.rs","sha256":"720bdda4464a54198348e1cac8ff75ad4882b9ce10c389befb4e9bc80340156c"},{"path":"product/runtime/auths-gateway/src/submit.rs","sha256":"a8e5e908b99d997cdf34c46c5827e04c0f502307f71497d15511bb40ef52815b"},{"path":"product/runtime/auths-gateway/src/support.rs","sha256":"d4865f95a7a2fdfe297f3f73687c05ab64a6b911814daf5f2b6c703ce58262ce"},{"path":"product/runtime/auths-gateway/src/transport.rs","sha256":"0ad16c63c19cc41d11c485625c8fc0617aede21401d16ec814401f963538bb46"},{"path":"product/runtime/auths-kernel-runtime/Cargo.toml","sha256":"926bcd0053e5edd703be8f0027ad009e2982db013c8174c1366edbf38b48087d"},{"path":"product/runtime/auths-kernel-runtime/src/lib.rs","sha256":"7108faae9ca4bc32dc093ddaf885ac8f74f3c9b8d317b7c7d0ed00d1d0ab5972"},{"path":"product/runtime/auths-lifecycle/Cargo.toml","sha256":"c5053c705f8d5554b44e432fe75287a2faf11d644e5a2552e45ad6cd94176af5"},{"path":"product/runtime/auths-lifecycle/src/codec.rs","sha256":"51c4b746749150e8bfcd8ff972b3f6c1ef40bec15583448ec1b471d9ad737dc0"},{"path":"product/runtime/auths-lifecycle/src/digest.rs","sha256":"55282cd7d8aba37713c2dcb5357c9877819edb72a30eadefb860d28d7d3a3eb7"},{"path":"product/runtime/auths-lifecycle/src/identifier.rs","sha256":"31620e8c16de68d3d2d3b84d6353c1a5b9d4151d8247f91fa389b906a8e660f1"},{"path":"product/runtime/auths-lifecycle/src/kernel.rs","sha256":"2abb8c094b36d35b364e74d78091d14c5d6f3d1eb6552cca3b5538dbd017ce23"},{"path":"product/runtime/auths-lifecycle/src/lib.rs","sha256":"afe5a345cd309b5a4f08ffba3170a6d7f16ff914892b3f2006d5208ed24ec736"},{"path":"product/runtime/auths-lifecycle/src/model.rs","sha256":"1af12bbeeeaa65ec02ddcebd7d2c8c92ec1e339fa40ae85b45ab9b01a722a4fa"},{"path":"product/runtime/auths-lifecycle/src/operation.rs","sha256":"78e6d05fcf5d7ea4f148032a3fa26fdfcab77eb346019effe927b08e0d64d732"},{"path":"product/runtime/auths-lifecycle/src/registry.rs","sha256":"53495fe6f7a77422593a41623e28716f1c140dcc1e00f87f6b0ffbfb93a5ef90"},{"path":"product/runtime/auths-lifecycle/src/sealed.rs","sha256":"2e0c03b5813c926c159598bb7890d1523825edbe57cd687d42a5dfb3374a0c19"},{"path":"product/runtime/auths-lifecycle/src/test_support.rs","sha256":"221d9a5c5ef8e1f9f8fd66927484eaf813571d0568470278ecd8fa08a5eec8cd"},{"path":"product/runtime/auths-lifecycle/src/transition.rs","sha256":"011805a28efdd541f44ccea54dd0e34a1e58f4004447ee58013703b4fb6b2822"},{"path":"product/runtime/auths-runtime/Cargo.toml","sha256":"dd29d80a8b4bb56c869f036a6c9998f6e6d1c0383ac5dc03fa42b24abe2a7ff7"},{"path":"product/runtime/auths-runtime/src/lib.rs","sha256":"132ca03d58c14905d3a822a4972f42a22a5ad33a45f2ba9ca44f3a57d810b4b0"},{"path":"product/runtime/auths-runtime/src/production.rs","sha256":"fd4eff4270c571c10fcff6cf27df28961ebf074de8a1a028f500fda1ca376820"},{"path":"product/sdk/auths-approval-quorum/Cargo.toml","sha256":"df904971fca87a24194c5816738a331588fe8f164acb5d70839a35dca5f57114"},{"path":"product/sdk/auths-approval-quorum/src/lib.rs","sha256":"72e4086088a1c0912e4e1a9e980f26a5c280bf5ab16ea39c9f0f58d5096ac2ce"},{"path":"product/sdk/auths-approval-quorum/src/remote.rs","sha256":"9fa029c7c63003adf260f8aec55160c545681c60c1bace0d934e7525862aac7b"},{"path":"product/sdk/auths-approval-quorum/src/remote_tests.rs","sha256":"8a09ce17cfee82a035a74edd535f3ebeb3db0e078784740d3997b17dbdb10197"},{"path":"product/sdk/auths-approval-quorum/src/tests.rs","sha256":"0acbf12be3e497dcc6c2d8f29c9af3b1a7ed8e11b75f6399570d4f217a785060"},{"path":"product/stores/auths-stores/Cargo.toml","sha256":"a32c4b76d17b264be5d40d24497ff237e1ed87822e8bab86229b3db93106dbe3"},{"path":"product/stores/auths-stores/src/gateway_attempt.rs","sha256":"f39dc84a238db0ebc70ad1ac495da194d2c24b5e1f9905552a9b1143278725a9"},{"path":"product/stores/auths-stores/src/lib.rs","sha256":"40c280a5ff79bfc1cafcf0bb415e775e205637c526973eb94b43a30f86d4e6fe"},{"path":"product/stores/auths-stores/src/lifecycle.rs","sha256":"4033f69a8d36de9285b87ab86af363fc85f785918ec2042d0ef1bdcb64d6f73a"}],"schema":"auths.gateway-semantic-closure/1"} \ No newline at end of file diff --git a/product/runtime/auths-gateway/src/bin/auths-gateway.rs b/product/runtime/auths-gateway/src/bin/auths-gateway.rs index 8f5c4bada..3e8fc53d1 100644 --- a/product/runtime/auths-gateway/src/bin/auths-gateway.rs +++ b/product/runtime/auths-gateway/src/bin/auths-gateway.rs @@ -1470,11 +1470,15 @@ mod unix { let _ = point; } + const PENDING_PRIVATE_PREFIX: &str = ".auths-pending-"; + fn private_file(path: &Path, bytes: &[u8]) -> Result<(), &'static str> { let parent = path.parent().ok_or("gateway.state.invalid-path")?; admin_boundary("private-file.before-create"); - let mut pending = - tempfile::NamedTempFile::new_in(parent).map_err(|_| "gateway.state.write-failed")?; + let mut pending = tempfile::Builder::new() + .prefix(PENDING_PRIVATE_PREFIX) + .tempfile_in(parent) + .map_err(|_| "gateway.state.write-failed")?; pending .as_file() .set_permissions(fs::Permissions::from_mode(0o600)) @@ -1966,6 +1970,8 @@ mod unix { paths.sort(); paths .iter() + // Unpublished transaction temporaries are never signed inputs. + .filter(|path| !pending_private_path(path)) .map(|path| read_bounded(path, maximum).map_err(|_| CODE)) .collect() } @@ -2371,6 +2377,44 @@ mod unix { sync_qualification_directory(directory.parent().ok_or(CODE)?) } + fn pending_private_path(path: &Path) -> bool { + path.file_name() + .and_then(|name| name.to_str()) + .is_some_and(|name| name.starts_with(PENDING_PRIVATE_PREFIX)) + } + + /// Called under qualification.lock, so no live staging writer owns these + /// unpublished files. Official retained inputs never use this namespace. + fn remove_pending_qualification_files(directory: &Path) -> Result<(), Failure> { + const CODE: &str = "gateway.qualification.unavailable"; + let entries = + fs::read_dir(directory).map_err(|error| Failure::at(CODE, directory, error))?; + for (index, entry) in entries.enumerate() { + if index >= MAX_INDEX_ENTRIES { + return Err(CODE.into()); + } + let path = entry + .map_err(|error| Failure::at(CODE, directory, error))? + .path(); + if !pending_private_path(&path) { + continue; + } + let metadata = + fs::symlink_metadata(&path).map_err(|error| Failure::at(CODE, &path, error))?; + if !metadata.is_file() + || metadata.permissions().mode() & 0o077 != 0 + || metadata.uid() != rustix::process::geteuid().as_raw() + || metadata.nlink() != 1 + { + return Err(CODE.into()); + } + admin_boundary("qualification.before-pending-file-cleanup"); + fs::remove_file(&path).map_err(|error| Failure::at(CODE, &path, error))?; + admin_boundary("qualification.after-pending-file-cleanup"); + } + sync_qualification_directory(directory) + } + fn stage_qualification( state_dir: &Path, prepared: PreparedQualification, @@ -2402,6 +2446,13 @@ mod unix { } } } + for directory in [ + &staged, + &staged.join(RELEASE_RECORDS_DIRECTORY), + &staged.join(RELEASE_ATTESTATIONS_DIRECTORY), + ] { + remove_pending_qualification_files(directory)?; + } let bundle = &prepared.bundle; retain_private_file( &staged.join(RELEASE_SIGNER_CERTIFICATE_FILE), @@ -5026,8 +5077,10 @@ mod unix { /// Atomically replaces an owner-only state file. fn replace_private_file(path: &Path, bytes: &[u8]) -> Result<(), &'static str> { let parent = path.parent().ok_or("gateway.state.invalid-path")?; - let mut pending = - tempfile::NamedTempFile::new_in(parent).map_err(|_| "gateway.state.write-failed")?; + let mut pending = tempfile::Builder::new() + .prefix(PENDING_PRIVATE_PREFIX) + .tempfile_in(parent) + .map_err(|_| "gateway.state.write-failed")?; pending .as_file() .set_permissions(fs::Permissions::from_mode(0o600)) diff --git a/product/runtime/auths-gateway/src/credential_journal.rs b/product/runtime/auths-gateway/src/credential_journal.rs index 0d69b5201..d71df1a09 100644 --- a/product/runtime/auths-gateway/src/credential_journal.rs +++ b/product/runtime/auths-gateway/src/credential_journal.rs @@ -322,10 +322,10 @@ impl CredentialJournal { .as_file() .set_permissions(fs::Permissions::from_mode(0o600)) .map_err(|_| CODE)?; - pending - .write_all(&bytes) - .and_then(|()| pending.as_file().sync_all()) - .map_err(|_| CODE)?; + crate::admin_fault::boundary("credential-journal.before-file-write"); + pending.write_all(&bytes).map_err(|_| CODE)?; + crate::admin_fault::boundary("credential-journal.after-file-content"); + pending.as_file().sync_all().map_err(|_| CODE)?; crate::admin_fault::boundary("credential-journal.after-file-sync"); pending.persist(path).map_err(|_| CODE)?; crate::admin_fault::boundary("credential-journal.after-replacement"); diff --git a/product/runtime/auths-gateway/src/generation_floor.rs b/product/runtime/auths-gateway/src/generation_floor.rs index 7c222a0de..3756d5b76 100644 --- a/product/runtime/auths-gateway/src/generation_floor.rs +++ b/product/runtime/auths-gateway/src/generation_floor.rs @@ -125,19 +125,23 @@ impl GenerationFloor { record_sha256: digest, }) .map_err(|_| ())?; + crate::admin_fault::boundary("generation-floor.before-file-write"); let mut pending = tempfile::NamedTempFile::new_in(&self.directory).map_err(|_| ())?; pending .as_file() .set_permissions(fs::Permissions::from_mode(0o600)) .map_err(|_| ())?; - pending - .write_all(&bytes) - .and_then(|()| pending.as_file().sync_all()) - .map_err(|_| ())?; + pending.write_all(&bytes).map_err(|_| ())?; + crate::admin_fault::boundary("generation-floor.after-file-content"); + pending.as_file().sync_all().map_err(|_| ())?; + crate::admin_fault::boundary("generation-floor.after-file-sync"); pending.persist(path).map_err(|_| ())?; + crate::admin_fault::boundary("generation-floor.after-replacement"); File::open(&self.directory) .and_then(|dir| dir.sync_all()) - .map_err(|_| ()) + .map_err(|_| ())?; + crate::admin_fault::boundary("generation-floor.after-parent-sync"); + Ok(()) } #[cfg(not(unix))] diff --git a/product/runtime/auths-gateway/src/semantic_closure.rs b/product/runtime/auths-gateway/src/semantic_closure.rs index 289054c37..dfd694bfa 100644 --- a/product/runtime/auths-gateway/src/semantic_closure.rs +++ b/product/runtime/auths-gateway/src/semantic_closure.rs @@ -10,7 +10,7 @@ /// SHA-256 of the schema, a NUL byte, and `semantic-closure.json`. /// Regenerate through `semantic_closure_is_current` with `AUTHS_UPDATE_FIXTURES=1`. pub const GATEWAY_SEMANTIC_CLOSURE_SHA256: &str = - "15cc3fac2125004eb4d134f2692028f6b2f9e93dd01e6a965b454db906d3a6ee"; + "8e0151715821dc09cbd95c6f2170a38ce9a1d9c271dfc8794e754b9f2045aeee"; #[cfg(test)] mod tests { diff --git a/product/runtime/auths-gateway/tests/qualification_gate.rs b/product/runtime/auths-gateway/tests/qualification_gate.rs index c86c09b2f..b7fcc7f3d 100644 --- a/product/runtime/auths-gateway/tests/qualification_gate.rs +++ b/product/runtime/auths-gateway/tests/qualification_gate.rs @@ -567,6 +567,20 @@ mod ap076_recovery { serde_json::from_slice(&tuple.stdout).expect("tuple") } + fn seed_unpublished_qualification_temporary(state: &Path) { + let staged = state.join("qualification.next"); + let records = staged.join(auths_recipe_qualification::RELEASE_RECORDS_DIRECTORY); + fs::create_dir_all(&records).expect("interrupted staging directories"); + for directory in [&staged, &records] { + fs::set_permissions(directory, fs::Permissions::from_mode(0o700)) + .expect("private staging"); + } + let temporary = records.join(".auths-pending-interrupted"); + fs::write(&temporary, b"").expect("unpublished partial write"); + fs::set_permissions(temporary, fs::Permissions::from_mode(0o600)) + .expect("private temporary"); + } + #[test] fn qualification_first_import_and_replacement_survive_every_boundary_and_repeat() { let at = now(); @@ -590,6 +604,7 @@ mod ap076_recovery { .success() ); } + seed_unpublished_qualification_temporary(&trace_state); let bundle = if replacement { &successor } else { &original }; bundle .write_to(&trace_root.join("release")) @@ -626,6 +641,7 @@ mod ap076_recovery { .success() ); } + seed_unpublished_qualification_temporary(&state); bundle .write_to(&root.join("release")) .expect("candidate bundle"); diff --git a/release/semantic-freeze-versions.toml b/release/semantic-freeze-versions.toml index fc9c6a2c9..966b0ac78 100644 --- a/release/semantic-freeze-versions.toml +++ b/release/semantic-freeze-versions.toml @@ -1,4 +1,4 @@ -freeze_version = 441 +freeze_version = 442 # Semantic identity counters live outside the xtask source tree deliberately. # The formal source closure binds xtask's executable code, while the semantic @@ -45,9 +45,9 @@ freeze_version = 441 "auths.frozen-bytes/product/integrations/auths-stripe/fixtures/subscription-create/v1/manifest.sha256.json" = 1 "auths.frozen-bytes/product/integrations/auths-stripe/fixtures/subscription-modify/v1/manifest.sha256.json" = 1 "auths.frozen-bytes/product/integrations/auths-stripe/fixtures/v1/manifest.sha256.json" = 1 -"auths.identity.protocol" = 174 +"auths.identity.protocol" = 175 "auths.modular-components" = 22 -"auths.portable-abi-bindings" = 133 +"auths.portable-abi-bindings" = 134 "auths.product.bounded-domains" = 21 "auths.product.bounded-policy" = 6 "auths.product.configuration-commitments" = 1 @@ -66,5 +66,5 @@ freeze_version = 441 "auths.product.simplified-waist" = 20 "auths.product.vocabulary" = 31 "auths.release.benchmark-contract" = 1 -"auths.release.evolution-contract" = 90 -"auths.release.public-surface" = 441 +"auths.release.evolution-contract" = 91 +"auths.release.public-surface" = 442 diff --git a/release/semantic-freeze.json b/release/semantic-freeze.json index c2b3c9322..67b9583b9 100644 --- a/release/semantic-freeze.json +++ b/release/semantic-freeze.json @@ -1,6 +1,6 @@ { "schema": "auths.semantic-freeze/1", - "freezeVersion": 441, + "freezeVersion": 442, "publicSurface": { "rustRoots": [ "auths", @@ -550,7 +550,7 @@ }, { "id": "auths.identity.protocol", - "version": 174, + "version": 175, "classification": "frozen-meaning", "categories": [ "identity-protocol-versions", @@ -573,7 +573,7 @@ "core/fixtures/identity/v1/vectors.json", "core/spec/identity/v1" ], - "sha256": "ce623186ee889ad11319632c8c9ccccb61eef15f9bbe25da3de88f7acb26ed5f" + "sha256": "a8459337a618e8419ce25d4a080eebab17426574c831dc3c461d67fffc56314f" }, { "id": "auths.modular-components", @@ -611,7 +611,7 @@ }, { "id": "auths.portable-abi-bindings", - "version": 133, + "version": 134, "classification": "frozen-meaning", "categories": [ "portable-abi", @@ -631,7 +631,7 @@ "core/crates/auths-model/src/lib.rs", "core/spec/v1/auths-proof.cddl" ], - "sha256": "1a07fd0a841eb53c6fc54efa3adf2becb252a07c98f340debbc03cfc61bee139" + "sha256": "255bbda31e13850c157395ddea7778abdc4fe71fe2a1aff2c28c6241d10d81cd" }, { "id": "auths.product.bounded-domains", @@ -986,7 +986,7 @@ }, { "id": "auths.release.evolution-contract", - "version": 90, + "version": 91, "classification": "frozen-meaning", "categories": [ "version-axes", @@ -1007,11 +1007,11 @@ "release/fixtures/evolution", "xtask/src/evolution_policy.rs" ], - "sha256": "70b7b77ddcd116ab7fb3027151de8ba59b16835f4673bf7321a829d58e4a9bb8" + "sha256": "2045b4332aca80b02573acc3fe48eca64e6c6d69d8428aed3a0651ef03df7a29" }, { "id": "auths.release.public-surface", - "version": 441, + "version": 442, "classification": "release-metadata", "categories": [ "package-names", @@ -1104,7 +1104,7 @@ "xtask/src/release_launch.rs", "xtask/src/semantic_freeze.rs" ], - "sha256": "ffedac8cd80579b5fa6907494221aa93654b73f8cb27a5d095b81801d1d82836" + "sha256": "aa2943ba27496973624e6081bd2cb1246c1fc9f1789b304159c3292ee991e5ff" } ] } From 4a8ba4d9d5c94dcad4466a1648a5154a8a57d234 Mon Sep 17 00:00:00 2001 From: bordumb Date: Wed, 11 Nov 2026 01:09:20 +0900 Subject: [PATCH 4/5] fix(state): synchronize replayed generation floor acknowledgements --- docs/plans/0076-implementation-status.md | 10 +++- .../0077-administrative-recovery-protocol.md | 2 +- .../auths-gateway/semantic-closure.json | 2 +- .../auths-gateway/src/generation_floor.rs | 24 ++++++-- .../auths-gateway/src/semantic_closure.rs | 2 +- .../auths-gateway/tests/qualification_gate.rs | 59 +++++++++++++++++++ 6 files changed, 89 insertions(+), 10 deletions(-) diff --git a/docs/plans/0076-implementation-status.md b/docs/plans/0076-implementation-status.md index 7de01e30b..f59bd6192 100644 --- a/docs/plans/0076-implementation-status.md +++ b/docs/plans/0076-implementation-status.md @@ -62,8 +62,13 @@ parallel filesystem batch; its unchanged internal process race passes when run without unrelated test load. Other gateway targets passed in that diagnostic batch. No assertion or production deadline was relaxed. Journal/floor content, file-sync, replacement and parent-sync points are included in the termination -trace. These results do not replace completed-head hosted evidence; acceptance -remains tied to the exact completed-head checks below. +trace. The final acknowledgement repair also passes the candidate interruption +fixture, installation recovery/replay and qualification construction/concurrency +checks, plus gateway Clippy. Its replay test checks both file and parent-directory +synchronization before a new acknowledgement. The full qualification import +matrix remains required on the completed hosted head. These results do not +replace completed-head hosted evidence; acceptance remains tied to the exact +completed-head checks below. ## Concrete evidence owners @@ -79,6 +84,7 @@ candidate until the completed revision passes its hosted gate. | Factory abandonment and attachment publication racing shutdown | TypeScript workflow `test/integration/workflow/{client,attach}.test.js`, packed lifecycle contract and Python `tests/test_workflow.py`: late resources stay owned, no late publication or premature signer destruction. | | Submission, journal phase payloads, commands, receipts and counters | Gateway `src/store/mutation_phase_tests.rs` plus existing mutation/native-generated-history, recovery, fault, receipt and file/TLS PostgreSQL tests. Canonical wire projection is retained; illegal field combinations reject. | | Draft, retained inputs, manifest, journal and installation custody/native/floor boundaries | Gateway `tests/qualification_gate.rs::ap076_recovery::installation_recovers_or_explicitly_quarantines_every_interruption_boundary`: trace each boundary, terminate the process, resume exact identity or explicitly quarantine unknown custody creation; repeated status and restart. | +| Acknowledging an exact generation-floor replay after an interrupted prior write | Same module's `installation_replay_acknowledges_floor_sync_after_restart`: interrupt before/after replay synchronization, resume exact inputs and immediately restart. Matching bytes alone never substitute for synchronization acknowledgement. | | Read-bearing first installation, custody/floor and proposal publication | Gateway `tests/candidate_cli.rs::candidate_installation_fault_matrix`, invoked by the existing first-installation fixture: staging never publishes a native connection; exact replay preserves draft/proposal identity. | | Candidate acquisition/publication guards, competing operations and lost native acknowledgements | Gateway `src/effect_candidate_tests.rs`, `src/effect_candidate_staging_tests.rs`, native file/TLS PostgreSQL candidate/fault histories: status uses the same guards, native publication retains its existing revision/fence authority. | | Mutation/deletion write-ahead phases and competing claims | Gateway `src/credential_journal.rs` tests: reopen pending creation/deletion, refuse contradictory transitions and retain unacknowledged obligations. | diff --git a/docs/specs/0077-administrative-recovery-protocol.md b/docs/specs/0077-administrative-recovery-protocol.md index 816cabbaf..f764094b2 100644 --- a/docs/specs/0077-administrative-recovery-protocol.md +++ b/docs/specs/0077-administrative-recovery-protocol.md @@ -225,7 +225,7 @@ binding/floors, custody generations, journal obligations and command outcome. | Manifest rename/write and parent sync | Manifest alone is configured-unpublished. Native/custody inspection decides; no success inferred from presence. | | Journal initialization/register replacement, file sync and parent sync | Custody mutation starts only after durable note acknowledgement; partial journal is unavailable. | | Custody install/replace/confirm and lost reply | Exact note remains. Resume compares commitment; conflicting custody is never overwritten. | -| Candidate floor commit/acknowledgement | Reload floor; no generation rollback or fabricated candidate publication. | +| Candidate floor commit/acknowledgement | Reload floor; exact replay synchronizes the accepted file and parent directory before its own acknowledgement. No generation rollback or fabricated candidate publication. | | Proposal write/sync and parent sync | Same candidate is recoverable or exact restaging reproduces it; different existing output conflicts. | | Candidate acquisition entry/result commits and lost replies | Existing native one-use/unknown rules; status/publish never re-enters reads. | | Native connection publication CAS, commit and reply | Reload/replay exact publication. Successful acknowledgement survives restart; ambiguity never creates another entry permit. | diff --git a/product/runtime/auths-gateway/semantic-closure.json b/product/runtime/auths-gateway/semantic-closure.json index 103e23644..e8fc731a6 100644 --- a/product/runtime/auths-gateway/semantic-closure.json +++ b/product/runtime/auths-gateway/semantic-closure.json @@ -1 +1 @@ -{"files":[{"path":"Cargo.lock","sha256":"77ae14c9bbf8dc445841fa919923f17d9c7dceec704ddcaa88dafe5dd92f6c2b"},{"path":"Cargo.toml","sha256":"ccc17deac72da945940a9ab4be2ce27628c056b977d19429bc1679b19fae30f3"},{"path":"core/adapters/auths-did-keri/Cargo.toml","sha256":"86ba3e3f9a0a70d970568bfb3113b7ba7bbdd81c3eebbb52743dd574a0c0ecaa"},{"path":"core/adapters/auths-did-keri/src/lib.rs","sha256":"a75674842f8a7142004369ccd206ab43e476459293f0ff4bed4d4e659031b3e3"},{"path":"core/adapters/auths-did-key/Cargo.toml","sha256":"d5a3ae07ecde83f91eed4c3785051dd0f44eab6c891754f3309b6b40596707d7"},{"path":"core/adapters/auths-did-key/src/lib.rs","sha256":"b76a3f4528a725df53cfa9242e6e414e1d26caa48468aaed497e28b121f4497c"},{"path":"core/adapters/auths-raw-key/Cargo.toml","sha256":"f49616bc18c19e6aaa7e6a02ccebcdb9f5c1422c1278ef9869e0dbf22ceda7be"},{"path":"core/adapters/auths-raw-key/src/lib.rs","sha256":"45eec1b295dac3bed65cd79c942870b926b06b3f5d38eaebaeb6140ac69315fa"},{"path":"core/crates/auths-algebra-kernel/Cargo.toml","sha256":"0cb078915287b8c47d20fb97b6fa14135ed1c61c4985c4de2753855563c27bba"},{"path":"core/crates/auths-algebra-kernel/src/generated.rs","sha256":"ae4bcbef42a408c7ffa0c6a74a42f7de177a6f14479e51d205acf830bda05960"},{"path":"core/crates/auths-algebra-kernel/src/lib.rs","sha256":"6654667eeb9b353d6648954c9fd2e8838462a82ce6b2803eb49e1366892c68c6"},{"path":"core/crates/auths-assurance/Cargo.toml","sha256":"afcb12a97ddd09d7a264b9ecd3fcaefc865ff2c9b4539ee85b00883420ba333a"},{"path":"core/crates/auths-assurance/src/lib.rs","sha256":"0fb2ec844d674b25a9e20b1601452c89c2454901fa506adfa9bb38ef9a7fa213"},{"path":"core/crates/auths-author/Cargo.toml","sha256":"1e6f0e3bc079ddb558decf0db26b291c6e72fc47327b6df1b7650d41689b215f"},{"path":"core/crates/auths-author/src/lib.rs","sha256":"e14475f2f49715a1869d5fa6b11ff1fbb72497e39097e09f833b0bae7e5b3f2b"},{"path":"core/crates/auths-author/src/observations.rs","sha256":"dda7d6bfa6f4bd7e95a480ca283c2c0e996f69c5c15cb0c7197af328131a7066"},{"path":"core/crates/auths-authority/Cargo.toml","sha256":"4f68212938029f79ebd857b4f3038494eb85d0163d49f07e51376715cf959815"},{"path":"core/crates/auths-authority/src/lib.rs","sha256":"da88d5194de4e17449e69972c0fb042afa3c39798a8f570f30771e77c384f1eb"},{"path":"core/crates/auths-codec/Cargo.toml","sha256":"e20e51826e17814effd9d8925d18d5fbdd6c0d37bf50231e743ec2611314722c"},{"path":"core/crates/auths-codec/src/approval.rs","sha256":"fbff43bf4d57f69f8b7738a8647751cde75c5a932dee65d924a1fe9c7202f91f"},{"path":"core/crates/auths-codec/src/bounded_policy.rs","sha256":"d21f6728be2d8a04b6d94921f2b683f7e61cbb42e0ac6866f1c88a49caa534c3"},{"path":"core/crates/auths-codec/src/decode.rs","sha256":"ba2999584cdf53b1b517ecb9c7ea50d39efee17c666a9a38e2ad1ac94379f778"},{"path":"core/crates/auths-codec/src/encode.rs","sha256":"8491192053e2e15d62b4d2a491de22405b7487ead69ab6f6bca40669ce7ca5f7"},{"path":"core/crates/auths-codec/src/error.rs","sha256":"fecb0737c16deb42d859f1dc7727c698438d9ac12064fd99e0024629642c390c"},{"path":"core/crates/auths-codec/src/hash.rs","sha256":"f88e111f1dbb2cef6b7b5e9c948cb45ff92e366710c8a5f5c636138aa748479e"},{"path":"core/crates/auths-codec/src/lib.rs","sha256":"3b0e5c94c6f34f750b88a9333e1d5c8145746d845d3a23e0d2f61807cf592ea7"},{"path":"core/crates/auths-codec/src/observation.rs","sha256":"38328b0c71ff97a4196eeade8b4faa889527ff1f80bb168468bcd49082a3987e"},{"path":"core/crates/auths-composition/Cargo.toml","sha256":"331e13025eb82588b5269ed3975929eb41c823d588c49e4c296273d85c6fe80e"},{"path":"core/crates/auths-composition/src/lib.rs","sha256":"e42e3b0b6a9985b73c533aeb23799c638979aa27a9ce7d0f10a8d60340570fb1"},{"path":"core/crates/auths-model/Cargo.toml","sha256":"565c15302b0cc9270db1e28efa3862804846850ba933cc17aea8abcec4a65987"},{"path":"core/crates/auths-model/src/approval.rs","sha256":"54cf44a9ef747ec21546a4086aecfb130bc7803b0d646430e6082df51e6e305f"},{"path":"core/crates/auths-model/src/bounded.rs","sha256":"f90496abc0a06c028b4d850af6ddab7d850bfafeaa3d042f1b1246a41d8bbbc9"},{"path":"core/crates/auths-model/src/bounded_policy.rs","sha256":"306a8f049cc7cfc7635fe0e4de47eb7813eed63d3c14c3be2b51586aa4eea450"},{"path":"core/crates/auths-model/src/lib.rs","sha256":"e7cfe6bb9574c6b016aa63e70658c31e0b90903ec6479a49f4a2ceb64f5bad97"},{"path":"core/crates/auths-model/src/observation.rs","sha256":"b3ed3e3cc090afca2896a7d3de7988afccc1ee1ea0ebd91b51a8bc0f20ad8dbb"},{"path":"core/crates/auths-multikey/Cargo.toml","sha256":"858756c1197befcada06134742bffe8d58cf674cadd6c046bf710570e96efaf2"},{"path":"core/crates/auths-multikey/src/lib.rs","sha256":"f5177fffb11e40eeaaa665ba886c541fc1f24d5eacdd6983fb03dc20148733f0"},{"path":"core/crates/auths-ports/Cargo.toml","sha256":"596a9b0f5af3717c16a6d13f7054d8a106bcd9f01f5f72c2235dd2afcf0ab16c"},{"path":"core/crates/auths-ports/src/binding.rs","sha256":"a16c012d40aa4249e3ec54372b9611006d0bfe8c7dc3c741911c2194ad17736d"},{"path":"core/crates/auths-ports/src/diagnostics.rs","sha256":"aa596572503b5a65a918bb2ff38281c144ff53821ee914e9325c852828d852df"},{"path":"core/crates/auths-ports/src/lib.rs","sha256":"8da1debf86f9532df0660155d04298beb1ba3a1204508f8586e2e67cd2fb3449"},{"path":"core/crates/auths-ports/src/path.rs","sha256":"b68fc547b4e4d97a60cbbc1cc1939fc6b34a8233b81f840bd396914a707e3ea1"},{"path":"core/crates/auths-raw-key-core/Cargo.toml","sha256":"98c0bc8527a537512e43a74dd6ba9658c6f0cdc16610cf938e3f9b43785d836d"},{"path":"core/crates/auths-raw-key-core/src/lib.rs","sha256":"98c0500c41697aae28708ad0bf970b9a97583d96a3d2c18d23e7fa351e0f7d12"},{"path":"core/crates/auths-registries/Cargo.toml","sha256":"590e49e58b0622d9d6274fea46796dcdb07dec9550eff295cce6a6427ffa51e2"},{"path":"core/crates/auths-registries/src/lib.rs","sha256":"450d3886d85ee333b7e046317fb5b47cde62483d5f3e41d46265e2caf4c373ec"},{"path":"core/crates/auths-registries/src/template.rs","sha256":"1224039dd2b3ce6fa8357613d8cafbae40400493da7176da202b9ade62fa05e4"},{"path":"core/crates/auths-signature-core/Cargo.toml","sha256":"6bee2230eb30af1be0bd5c2d57bd3e1903497a70028d47290d4ac6e9e0e8bca0"},{"path":"core/crates/auths-signature-core/src/lib.rs","sha256":"db97ecb45a82faa6f96a92738d3af1da92d1ba2f241f2c29114f4b8107dc4ab0"},{"path":"core/crates/auths-signature/Cargo.toml","sha256":"7f7b5682466ba439d8c59579022cb61068cad9fb4bd2d73e1cc21327c902b450"},{"path":"core/crates/auths-signature/src/lib.rs","sha256":"b3d9ac4cc3ba0797b9e1c09f2d6ac05089b25dac4e285a5af28c0165b33d925b"},{"path":"core/crates/auths-verifier/Cargo.toml","sha256":"c43358e06a33324b41a8b93e5cc7279c55f7d21f1f6cfaa539a3fc7b4c27a38f"},{"path":"core/crates/auths-verifier/src/approval.rs","sha256":"c3cae6a49e169051eb555bb092b1069a4d422516d6a2114623a89e5f31ff923f"},{"path":"core/crates/auths-verifier/src/causal.rs","sha256":"9635230f33b13a263573d319ac8a1976addbcc07677514a43e3c7bf28dc04587"},{"path":"core/crates/auths-verifier/src/lib.rs","sha256":"f22dec38dfa47ced8da4f605390da8453273bee1da010f57fd1fdfcb10e0b389"},{"path":"core/crates/auths-verifier/src/observation.rs","sha256":"0bb07f06a0f9524c88427df1c972b1de8ba038a9eeeb15d3134c25125ae84b1e"},{"path":"core/crates/auths-verifier/src/trace.rs","sha256":"2213d72023a1d9e0413a2cf2c51c3dad9e04775d86033a0caaa9d29a8f0036f8"},{"path":"exchange/crates/auths-proof-exchange-model/Cargo.toml","sha256":"34b2db64f93a288e942b5a3918d28cdcbef906e0dc9074ce848018d3d5f7a1fa"},{"path":"exchange/crates/auths-proof-exchange-model/src/lib.rs","sha256":"49fac5aff2339d3a57c41cb8bb2a82852538e8f77ecc4b157c88e264ff31fb55"},{"path":"exchange/crates/auths-proof-exchange-port/Cargo.toml","sha256":"7ff660f1b7579dc570c791090aeb450404fbbf44c92781e289f5ccdde746d739"},{"path":"exchange/crates/auths-proof-exchange-port/src/lib.rs","sha256":"b408fb40c6432edc1facb3d8b3e9433a033f8dc73fe2e0ba5a88c972ca675021"},{"path":"product/config/auths-config/Cargo.toml","sha256":"e4b568ab9f6d84f7d7e6d66443fe825f360db9c27bc7c31d6ddc0647ba3ab304"},{"path":"product/config/auths-config/src/lib.rs","sha256":"fecf00ea65cef9018fda9af2063326d7065b869266d0d9e73a4f06816f1102cc"},{"path":"product/errors/auths-errors/Cargo.toml","sha256":"3b3a199b6460ba75bda84475bb5accd35e1485448a3981038db85bf4772dd350"},{"path":"product/errors/auths-errors/src/lib.rs","sha256":"7feeb9069fa4003f94f1f07c1c94619cf1c883e0dbaaf2187f04d0f742264bdd"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/Cargo.toml","sha256":"716f1f2a117d6d69d8effe9ee9057e24ba3502f20af6a602b06facb638cdabed"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/api.rs","sha256":"9ea61dd7ddd93282b073b98e453e6b75b26dc49689c04e9782435d06a3a09e48"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/clock.rs","sha256":"73f0a6e0f5903883329fa6683f5888288f759512ac69e5c87efd2b6b87f7d79f"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/http.rs","sha256":"14c1fce14e24c984b2a275563a29b6326fb08367922b6e8d37ba38b9cb81aa2b"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/identity.rs","sha256":"186de11230c8b33375951c4368609f8976bf9795f171af3fd7fac26207a94361"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/lib.rs","sha256":"0b4617d044f5254a5ab22f5a2578f91cc025206a8c1845be39c1c56dcdf7a5df"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/names.rs","sha256":"41bb23572d6002e23ee103d6fe70ecd68764861c6f2e48a1c53af998270a4afa"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/sigv4.rs","sha256":"39fed883f4802e68d3b41a68fea0aba0737810996b33d13577de70faba004c29"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/store.rs","sha256":"fc60ee9c49b2f4f063c449b4c78100c5c4872779e94ca168f796603b380ef6e4"},{"path":"product/integrations/auths-custody/Cargo.toml","sha256":"1e14034185ad1ec24a977fd5f41d0abee219606245c046ce2a82287fadef448b"},{"path":"product/integrations/auths-custody/src/conformance.rs","sha256":"13a2b28bba4a7af5b00bb96d16ecf027d35d5487b314e48a666fb8ed09c2f2e9"},{"path":"product/integrations/auths-custody/src/key.rs","sha256":"c3b1468b8538421a796aeb65a0cd94b942e3788e78741f20dde07b4838e0c3da"},{"path":"product/integrations/auths-custody/src/lib.rs","sha256":"836ad8044440fd250457a46f5c4a980339534a8af6a4daac2643560050b62d39"},{"path":"product/operations/auths-operations/Cargo.toml","sha256":"73dde1e914ba5e1386f8d49c0d730423cc72ae77ec44c6554a6a75cc8e8922b1"},{"path":"product/operations/auths-operations/src/explanation.rs","sha256":"b4a39bcbd5712cb9e735ee7deeb281f3fa6af5ddca973735bf3d87dce427ef11"},{"path":"product/operations/auths-operations/src/lib.rs","sha256":"3f401a56555113b98f57bca172a2660eaecedf76247b83a3fdbb089c133a29cd"},{"path":"product/operations/auths-operations/src/render/json.rs","sha256":"2ae042639960afee123730e945d373bc5dda1d2b3af20ae16c939a7e99b9e418"},{"path":"product/operations/auths-operations/src/render/mod.rs","sha256":"b3b7f6fe473f49227ace5a68bfc3d8dc14b5db8dd9888fd9e207070337b1b8bf"},{"path":"product/operations/auths-operations/src/render/text.rs","sha256":"f216cf3bdb00e264523271b16e7059535ac6b1aabf271cebd7935af155e4bfec"},{"path":"product/policy/auths-bounded-policy/Cargo.toml","sha256":"babd5d200923137ead71d8c2528f847cea323ce98da942a1320b054436612c47"},{"path":"product/policy/auths-bounded-policy/src/arithmetic.rs","sha256":"75e43c5d4eab8d1f71c1daf53839f5f9fe45a400afc1f63a30c6f55ce3632627"},{"path":"product/policy/auths-bounded-policy/src/commitment.rs","sha256":"c5706f2d583454e1a7f570f7ada138d4d864bef0205dfae7c1296774f396bb3f"},{"path":"product/policy/auths-bounded-policy/src/eligibility.rs","sha256":"c9acdfb793074e687fc36efad506be27dbd99ffbf40387bc66c8de39ef238432"},{"path":"product/policy/auths-bounded-policy/src/identifier.rs","sha256":"0006a32bae9eb16c4178cf797df418d2b0a781f2bc6474b741dc1a908141831c"},{"path":"product/policy/auths-bounded-policy/src/kernel.rs","sha256":"99187c28b161ac70bee1afed60711f7f645adb4d1671a01863f9849b369811d5"},{"path":"product/policy/auths-bounded-policy/src/lib.rs","sha256":"76a18638b810e62e594d6e951504679305ce21841388e0c282ad51cd7841b91c"},{"path":"product/policy/auths-bounded-policy/src/receipt.rs","sha256":"3b9eae82f349956d3e7f29b57b254bff5ce67cc703e6cf43445ce2827676d1ad"},{"path":"product/policy/auths-bounded-policy/src/registry.rs","sha256":"4e251ea5833559841f8ee0bd9b66c0c01c39fa5e3a21720a19c4e8adbfcb99d0"},{"path":"product/profiles/auths-profile-api/Cargo.toml","sha256":"7ae85761f58625b5d678f961fd052eebf3e000ef565c7312e3ac857763c0017f"},{"path":"product/profiles/auths-profile-api/src/lib.rs","sha256":"a194b82b20bf8aa864c2334ef6c6aec30b2154ded972862252d5dcefa488ab95"},{"path":"product/profiles/auths-profile-mcp/Cargo.toml","sha256":"db264fc25242f7b7e4133cbe5782545b3107b406c87168ae072683cfb59eac66"},{"path":"product/profiles/auths-profile-mcp/src/arguments.rs","sha256":"a5de696586d507e2aee4a49fee99ef1ef4c51a2e46603f8838f1af6d9009833f"},{"path":"product/profiles/auths-profile-mcp/src/lib.rs","sha256":"d0f8b733a09ef8408336cdebc8948d6a5861012ce6878598b11be7084dfd4280"},{"path":"product/profiles/auths-profile-mcp/src/session.rs","sha256":"166c281fa66333388e4760d6098dad02d3359e1d5de4b8f93312c014f97abb03"},{"path":"product/qualification/auths-recipe-qualification/Cargo.toml","sha256":"b7b15b30b9a3d96d4f089d514266d3a892de6608d30707aa44be31cca89ca9fe"},{"path":"product/qualification/auths-recipe-qualification/src/canonical.rs","sha256":"30a9b50777f0dcb4b606abfee2467d5a975d9f6ad941ab6c13ca3df5b359f667"},{"path":"product/qualification/auths-recipe-qualification/src/closure.rs","sha256":"0ad6aee9bd981e2863fa725f209ec84031db2ff12f4c7ac3aaf5120f0bb86039"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning.rs","sha256":"db135c55e4e3079a73253ebae275536523eb36b545d1c152b4d7dce3c6b76828"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning/tests.rs","sha256":"4dde3736d206099b1bea4c14e0092c6c1287d1af9065958777d7c54331dd8686"},{"path":"product/qualification/auths-recipe-qualification/src/error.rs","sha256":"52d5cf720a1e4579008fdda90a3ac2c31f0b8db57985f121f65e54b4da2b7dd1"},{"path":"product/qualification/auths-recipe-qualification/src/evidence.rs","sha256":"ba45a7409d67a8af26ab811af306412014557477a101ab2a8eb0faf8f2bd4b91"},{"path":"product/qualification/auths-recipe-qualification/src/ids.rs","sha256":"e81a906d571497ab2da753e1532d4443706410e0b75fdd59a7d2d788c7aec403"},{"path":"product/qualification/auths-recipe-qualification/src/launch.rs","sha256":"805154ce931e3977f2a2a2c62909d90f7c0a22dc167bf4f1554dcf19316ffef8"},{"path":"product/qualification/auths-recipe-qualification/src/lib.rs","sha256":"0e24b0f81191df0d078c7f4d73ced784ba9472372bfcdff3c7d0e2fb1687b323"},{"path":"product/qualification/auths-recipe-qualification/src/model.rs","sha256":"3484eb0ec287b23d4682ade7b1b0f8d1335985b3fb180f06fc28716076957d5f"},{"path":"product/qualification/auths-recipe-qualification/src/release.rs","sha256":"ec478e53f70052e566aac7e15be2f9e1b1cd46837ac6990ae955fa864d311586"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/mod.rs","sha256":"1e4e5edc12d921e6b95475b3c1850f58f622c088d24a1fc9398d34019fb2f288"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/schemas.rs","sha256":"c59feec2805621f341a90f81fc005e2c12f7a70f9d264fdeacccb2be4fe1c046"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/verification.rs","sha256":"bdf5746fed4d10a7f577f7878619a917d29aa8b7d522f00d9f774e53eff4c8c1"},{"path":"product/qualification/auths-recipe-qualification/src/verify.rs","sha256":"646ff0e52e915174ad183768706e35e5ce2118b83475455310b930a77a7877f6"},{"path":"product/receipts/auths-receipts/Cargo.toml","sha256":"6001fa1375899953aafcb07c23a6da0c8f57ea7ec08bb9c950b12a60a8cc6f0f"},{"path":"product/receipts/auths-receipts/src/disclosure.rs","sha256":"ba9ed439be0a320c8a01f5b6e9b51361c1a37e076947490d8e4a484ba6bb119c"},{"path":"product/receipts/auths-receipts/src/lib.rs","sha256":"547a57c4160256719cafb7d0ab972d9fc80b0da14fbbce4148c70c414070ff36"},{"path":"product/runtime/auths-connections/Cargo.toml","sha256":"babeb6e1dda3dfb66291713ce1e43dce5c349833d0b50ea4dccbf986030026b2"},{"path":"product/runtime/auths-connections/src/credential.rs","sha256":"22bc7de6bcab7cebebb64edf6423d59b6493b78dca65b9da62749e3171217762"},{"path":"product/runtime/auths-connections/src/kernel.rs","sha256":"a456af19526ef7b19278551fd8d97606b6e7aa5a195e70bdd85d1e0786090ce8"},{"path":"product/runtime/auths-connections/src/lib.rs","sha256":"79209249a0acba0e854d9937255ea0e30a9a6f8e1c2baad77ab83646d392de22"},{"path":"product/runtime/auths-connections/src/model.rs","sha256":"de34a089cac9702acb889b7602b3e4732306c9e61029ec892582b7e02b73fc77"},{"path":"product/runtime/auths-connections/src/registry.rs","sha256":"e57640e003e72ad3235c567c2bb944a262bd64e673f023b62ea091094cc7e946"},{"path":"product/runtime/auths-gateway-kernel/Cargo.toml","sha256":"34f864e67656af4ac7e5c7a347a23f01fc8ab31365b8e23c0ef474483b14a183"},{"path":"product/runtime/auths-gateway-kernel/src/construct.rs","sha256":"e9d65744bae273d65face4285e5d2da75c06a92ab48f7b8333d496604e31c63c"},{"path":"product/runtime/auths-gateway-kernel/src/lib.rs","sha256":"cfda6f8453426564c085475f183b6f790b438768a19668f1b65d33ba59dc8632"},{"path":"product/runtime/auths-gateway-kernel/src/order.rs","sha256":"efc2f2eef68232fe3082e1607e6f1e87d4a19cbb2f492bdc6e71916a2461b6a8"},{"path":"product/runtime/auths-gateway-kernel/src/outcome.rs","sha256":"ac0245699457c802a70cdd6f52a01dcb4777c487b58ed7dc9cfc99345465ccaa"},{"path":"product/runtime/auths-gateway-kernel/src/ratio.rs","sha256":"7ace22264812e6fc1ef3a62afee402cf43494bb71ae0d3de219ad1b39d690bcb"},{"path":"product/runtime/auths-gateway-kernel/src/recovery.rs","sha256":"9f46dcd1685ab6e4d1ba04a3fc286a9f3afee8fb47829be1fbc670a7926a2dc6"},{"path":"product/runtime/auths-gateway-kernel/src/transition.rs","sha256":"9c9c292397aa640c2f002ffb5befe110f86d0aa246f3ffe99440718e5174af3c"},{"path":"product/runtime/auths-gateway/Cargo.toml","sha256":"959b1a58a110315f86115966f85d6992afd91be28d741fee7354207d4bd6f258"},{"path":"product/runtime/auths-gateway/src/admin.rs","sha256":"5d0f1b583a4cacdcbc62521ed1a5730ed6b57d42bf826708a0c5e591272c4a12"},{"path":"product/runtime/auths-gateway/src/admin_boundary_tests.rs","sha256":"7ef23fdaf512cfa6315aed72577ccf0c4d04725f5b4fa4b5f0482e27e5e7ba1c"},{"path":"product/runtime/auths-gateway/src/admin_fault.rs","sha256":"4a66386d91daffeeac4080c16a0d4e724adc09220ba056c0c4267e5f4fc05268"},{"path":"product/runtime/auths-gateway/src/app.rs","sha256":"acd1deab7a8524c97d4a76ec9f7079b3afc035d707e0480a0cbdf4d084972099"},{"path":"product/runtime/auths-gateway/src/app/content.rs","sha256":"4c01001659b1a563dfd4abe7e002e3f85609ffef511a0e39f967af944ea01300"},{"path":"product/runtime/auths-gateway/src/app/content_tests.rs","sha256":"6a239a15732dd279abb35a72721eb2034bf5aac79439edc7c34aa8d4fdfd5212"},{"path":"product/runtime/auths-gateway/src/app/participant.rs","sha256":"1d76d37ba8f7a4657ff013ad845bd90ab82636ade7e7a798937db05ee52a9424"},{"path":"product/runtime/auths-gateway/src/audit.rs","sha256":"aebb55cfe1305c6de26fda03989e138a6731ec57d1cfebf4114886bfb6b93d26"},{"path":"product/runtime/auths-gateway/src/audit_export.rs","sha256":"6cc3d70ef4cc64026de4ec4e094979a95fee6fadb86707b0e09515ad754632be"},{"path":"product/runtime/auths-gateway/src/audit_tests.rs","sha256":"8cf1ab4cd2789973791805b07216d423690645aa4f28307f87dbcb803bd2ad22"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway-harness.rs","sha256":"12b0c24d36b2e6a3be392d3c081a783b355fdd67dc5b54bacc0410e803116b8c"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway.rs","sha256":"6ae544618bfb0c0b938fb632e054c36e988c6eb278d62775405937c6a5d6ffa6"},{"path":"product/runtime/auths-gateway/src/binding.rs","sha256":"663b0ce878319511aa7d05722ab4ab2fa9be18817884ffb2ee9f131ff1e382d1"},{"path":"product/runtime/auths-gateway/src/bounds.rs","sha256":"d0658585765d4d8f9865f65d23d850ec196eeca23fe65a66a55f1f1bc9b2c9b9"},{"path":"product/runtime/auths-gateway/src/bounds_aggregate_tests.rs","sha256":"ab34f227b7c8692ba1da88ccb32bb3687a66adf8353d8282fae905d4a88eb612"},{"path":"product/runtime/auths-gateway/src/bounds_tests.rs","sha256":"80b116ccf65bda2d7f2fbcd3b26fcf82b0a4bd3dce3a5df7842828cb271d7741"},{"path":"product/runtime/auths-gateway/src/candidate_runtime.rs","sha256":"ebe3d2da3a340c990b6fdcaac8c4418a7c646c0148c8222c19d925b21dbc7da8"},{"path":"product/runtime/auths-gateway/src/commissioning_budget.rs","sha256":"f5c38e9e07df3cb99b6bd664f33eae414b9f3dfef4932d69c19a9b174906dc1b"},{"path":"product/runtime/auths-gateway/src/commissioning_budget/tests.rs","sha256":"da104a1643c37515deec6397bca6db2054f2c9158ec3d230a1b1ec9c7d0f659f"},{"path":"product/runtime/auths-gateway/src/commissioning_floor.rs","sha256":"7fa6991c5ccd5ae1403be84b3da390323fab09f36e15ac01fd7a38ea350c6fdb"},{"path":"product/runtime/auths-gateway/src/commissioning_floor/tests.rs","sha256":"6b663d6e556adc0b455b81845bc4394d82c6c4de0c5f43e1310f3ddc6e4e40f7"},{"path":"product/runtime/auths-gateway/src/commissioning_session.rs","sha256":"919fe57fafa563f770402be66b4e32f1f0d652f09fe1276a62e41b50d66f8696"},{"path":"product/runtime/auths-gateway/src/commissioning_session/tests.rs","sha256":"48d44a5fccea737930f24c49a397428edc439525330c83a868b5113a48f122ab"},{"path":"product/runtime/auths-gateway/src/configuration.rs","sha256":"e5597c39b1acbe50cad20c02722feb38d382294026a0a7a4097e6d97b68eaafb"},{"path":"product/runtime/auths-gateway/src/configuration/engagement.rs","sha256":"67bdd2c792b9dfb1168020a10799af043143461f020b74b18d20fd4089f9b40c"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/audit.rs","sha256":"ee35149f8f348ff2a20ef7185ae0bc5a7b912ad5746510c0714b235765b8b1a4"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/blob.rs","sha256":"12af8071e9cd21c04cf9b55d3cb5e8eb2f33ff888e03e06e114222feb4abf752"},{"path":"product/runtime/auths-gateway/src/connection.rs","sha256":"54f5d53c78f836bf8ce1236d449b3f4f1daa95312102d5583ef69cb4e57b513b"},{"path":"product/runtime/auths-gateway/src/control_namespace.rs","sha256":"0333baed635d34edb066d2b9cb4c6ea3f40faad4be8c75f54c989570515dddee"},{"path":"product/runtime/auths-gateway/src/credential_journal.rs","sha256":"8241dbc7a90054457c7c99fec3b35a433f671682b877f01f8429b8618a6d8e20"},{"path":"product/runtime/auths-gateway/src/disclosure_transport.rs","sha256":"614c975a4b9810f40092a2f9cdd022308b75e649167dbc486c9907f7570d8d45"},{"path":"product/runtime/auths-gateway/src/echo_verify.rs","sha256":"6d453051665f823abd7354d5c50031d9524cf47d6092d2f09080ae814e3b9575"},{"path":"product/runtime/auths-gateway/src/effect.rs","sha256":"5e1d5b8c28df616917d442b023e5161a2e3527ef7b8fb63d736728542c6caa2a"},{"path":"product/runtime/auths-gateway/src/effect/acquisition.rs","sha256":"0afd6aec490e7995a440786be6ac69cb5461201a4b4ec303e8b5a6c12ed97202"},{"path":"product/runtime/auths-gateway/src/effect/authority.rs","sha256":"2490494c3a1636decbfd04b2dbac71c47e49be26b61cc6cf41319a13450bb4a0"},{"path":"product/runtime/auths-gateway/src/effect/candidate.rs","sha256":"d1efc3ec7e1fa642af26f4e4c6a25924c60821dc2e96bd0b458d9292d3866678"},{"path":"product/runtime/auths-gateway/src/effect/candidate/proposal.rs","sha256":"d78574109f41300edfcd7ad38155439ffc3adb9a799554d75d5484738ef174f1"},{"path":"product/runtime/auths-gateway/src/effect/capacity.rs","sha256":"300fa32e09dab7c679b8c0a69bb4e3c1e924ed2ce1416090a2aa477a7eec9f0f"},{"path":"product/runtime/auths-gateway/src/effect/content.rs","sha256":"9f3b53c8c2ad5cafa183ed1229ee03f2cd8a610009b07da560372bd0fbae1673"},{"path":"product/runtime/auths-gateway/src/effect/disclosure.rs","sha256":"0acb5ac805e91c952c8f0028db03ae607c3753cbd08a76035f2d1b4fa6fe6244"},{"path":"product/runtime/auths-gateway/src/effect/disclosure_auth.rs","sha256":"32fa6f040ae46f3323df6e153c6ae810eccf32d22b9945e5565e7189dc877eac"},{"path":"product/runtime/auths-gateway/src/effect/engagement.rs","sha256":"5a36ff3f4460bf026a7e99fadc713672fbeb05dbc6f6393d10cb06440e779e54"},{"path":"product/runtime/auths-gateway/src/effect/lineage.rs","sha256":"0b3ddeb56377b69264bbd4738c624639a8dcad91b4df3328f907db439747faaf"},{"path":"product/runtime/auths-gateway/src/effect/prerequisite.rs","sha256":"e79596a4cbe47e307e3a3056c52582b1cd01a43c4c2d69479ee03df1f62af3b0"},{"path":"product/runtime/auths-gateway/src/effect/release.rs","sha256":"84e2572f76216e02131e9bbcc850f4b3572473eac6dd71baa144e63a2270cff7"},{"path":"product/runtime/auths-gateway/src/effect_binding_boundary_tests.rs","sha256":"83d8e0edf524a2be0d2c494e4b9897cab0ddcf61184828d716bae10cbaf904b4"},{"path":"product/runtime/auths-gateway/src/effect_candidate_staging_tests.rs","sha256":"7db0f4fd86cf119a6b4b0702267c91debdf11a73fc93105ce7e98d0c6e4cd8d9"},{"path":"product/runtime/auths-gateway/src/effect_candidate_tests.rs","sha256":"e93c08c2eca2abdc58f7db9fbf19e775e4f709225b04789832e2b8f5a81c8948"},{"path":"product/runtime/auths-gateway/src/effect_content_tests.rs","sha256":"63eb623413167bf9ff34161b6bf4f54f68709af9fb1d1e7a419a07f63ce04409"},{"path":"product/runtime/auths-gateway/src/effect_created_resource_tests.rs","sha256":"98f7a9de7824dbf3e2361b3006ef823002b391d557969442edb371266f7673db"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_delivery_tests.rs","sha256":"9586b84b045561edbcf8276cd9769b412240f04248e240cd29a5068d4cd03a00"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_journal_tests.rs","sha256":"19f349a090f07288cfafe24aaffad49f28fe163e59870520aac6bb899f673a99"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_tests.rs","sha256":"5389b03d7d0cd5b23abaa3c396450fa4018102c942b27af35aef81e65b9bb841"},{"path":"product/runtime/auths-gateway/src/effect_engagement_admission_tests.rs","sha256":"46a34a83cfecb180c6f0937e83b8b14009afb4ce315864dfb9b3137759cb9959"},{"path":"product/runtime/auths-gateway/src/effect_engagement_control_tests.rs","sha256":"71e2e965b71b52d2fb877e22e5d4951d1d4072adede4b60dc3996197ac554395"},{"path":"product/runtime/auths-gateway/src/effect_engagement_delivery_tests.rs","sha256":"14b241916d9c3fe8141a38e93c62f8b8a039f2780ad3cd63282e707feaa4d1b3"},{"path":"product/runtime/auths-gateway/src/effect_engagement_information_tests.rs","sha256":"27735a9e1237a063c2a525cdcd93e8102164d549dc72509767a977ab4abd8491"},{"path":"product/runtime/auths-gateway/src/effect_engagement_prerequisite_tests.rs","sha256":"0566288b7f77f5beda44c8374f31a5053e02b44ccbe92781618e9fd90b1a6800"},{"path":"product/runtime/auths-gateway/src/effect_engagement_tests.rs","sha256":"2b78b315c7539d4119ce5b20164d6e4855d9b403b76eaa5b72fa3b72959a7621"},{"path":"product/runtime/auths-gateway/src/effect_instance_recovery_tests.rs","sha256":"eee64773b6373e1bd7185c07c5c4ffeaacafb907f4d0aa17b89ba1556beec5e4"},{"path":"product/runtime/auths-gateway/src/effect_native_tests.rs","sha256":"fd9cd960dfb02f68eef479ed2a95d65b79882c20f8a737c9a74d6a4222af407b"},{"path":"product/runtime/auths-gateway/src/effect_prerequisite_tests.rs","sha256":"51efa528051919d0ca67643cac3d0e06afac534706b802adb18311e2bfa222ff"},{"path":"product/runtime/auths-gateway/src/effect_read_budget_tests.rs","sha256":"9bf8491f0da471e07b5d96dbfdbdf5fbe5a47fec11700dca55a6ac05a1ebb68b"},{"path":"product/runtime/auths-gateway/src/effect_recovery_prerequisite_tests.rs","sha256":"e6235b83ac159d9446d79e6e072dd4aa9d0447a68055be3b32de6450a2300699"},{"path":"product/runtime/auths-gateway/src/effect_review_approval_tests.rs","sha256":"6e5c5a72ec93255d7d8f219ae8cf4401431644ff03d624164645a1e9d2b2e87e"},{"path":"product/runtime/auths-gateway/src/engine.rs","sha256":"113390cb4ef92ef337b5f82b7c77c54a428ec492756f90100b74002487dc8c7f"},{"path":"product/runtime/auths-gateway/src/entry.rs","sha256":"6fd17c142c0001b9cda33c33b0e18f4d1d40866cde8a66b3f57d46f971c1ead9"},{"path":"product/runtime/auths-gateway/src/entry_tests.rs","sha256":"86dcfc4918394052d18fc5509dcc0e740a064a97b084d1c2c9f23eddedaa6db4"},{"path":"product/runtime/auths-gateway/src/execution_witness.rs","sha256":"e8b1a8e41d5e3fa309760067849d390ef065feeb46701a83391832645a2f000c"},{"path":"product/runtime/auths-gateway/src/fuzzing.rs","sha256":"2dcf0a15e407a9180c7fecb7eecfaf4674698aa997b1f5de9a3649a49baebd1b"},{"path":"product/runtime/auths-gateway/src/generation_floor.rs","sha256":"a0b6052060af4f364766d49f2db74b6f853adb541b77f103801a7f292961b14e"},{"path":"product/runtime/auths-gateway/src/harness.rs","sha256":"5e296231c98e6429f3d805150fab9ce2d6a5789d41dd83f562b677314374567b"},{"path":"product/runtime/auths-gateway/src/harness/authoring.rs","sha256":"de511d89bf6bb72e443558caf0c4835dad2908b5fe5c13a3a02483e85dd7d354"},{"path":"product/runtime/auths-gateway/src/lib.rs","sha256":"a39306228bb0ee5e7c50fb83149756a15fa761d52bb6807942f1ec77db2049d6"},{"path":"product/runtime/auths-gateway/src/listener.rs","sha256":"aa08239bcbc1fcb55e8a212fbdf6a84f12985b0d436dcb51dc58b06e59e435f2"},{"path":"product/runtime/auths-gateway/src/native_budget_tests.rs","sha256":"d6de965afc7f794e611545744fa515f833abf315157519ed8390c195a7dac8c0"},{"path":"product/runtime/auths-gateway/src/native_cost_store.rs","sha256":"d1acdd7e4076e3a32f312dce74a01e5dcbccdb1f8912758524b7841d61377eed"},{"path":"product/runtime/auths-gateway/src/native_cost_tests.rs","sha256":"45bcb4e9174d4c23495ac734a42b5f8b7735c14d4599cd191d50f6547aaf374c"},{"path":"product/runtime/auths-gateway/src/native_crash_tests.rs","sha256":"46998a973388884d902a6b07e12fa342fb08ea77363a43a41b0b0a7a5ccbcde9"},{"path":"product/runtime/auths-gateway/src/native_cross_recipe_tests.rs","sha256":"e2dbde7afba1b3da5df3a7a44821f413ab7861a5417ad16f8b912f390128d115"},{"path":"product/runtime/auths-gateway/src/native_dependency_tests.rs","sha256":"0e15d059140ad485b2548f4234b94424d62b5563a8dded42224329a76b101f37"},{"path":"product/runtime/auths-gateway/src/native_differential_tests.rs","sha256":"17fc0803fe5e7f78b416f8f68e7c9066baf1bab69bdf0b51c44fd19e3d719da8"},{"path":"product/runtime/auths-gateway/src/native_disclosure_budget_tests.rs","sha256":"bb2a6f76f06a6d42d69698f7d22d0b4aeb4dc857e442042d65582097567009fb"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_testkit.rs","sha256":"4beb946a288e4fe082cc0917f4200b18b8154eff98eca1ea3d0c830ffdc3625d"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_tests.rs","sha256":"425e423f04d92794656d4da915125e4d0a8be25ec85fb88244ee0c27ece8ec44"},{"path":"product/runtime/auths-gateway/src/native_disclosure_entry_tests.rs","sha256":"50f5dc35a9a8ef462b8833296cb313b2acec81d544b7e317c7f188741d0786db"},{"path":"product/runtime/auths-gateway/src/native_disclosure_file_fault_tests.rs","sha256":"72d67bb0d3fd77fb93c4f5d3ab0afa5a939742b5a47acf006a511d99d72cee9f"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_batch_tests.rs","sha256":"a8b8a90210d9f7f0012e40701c09c524527f93f9e56933d89b58a38464cba702"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_commit_tests.rs","sha256":"1e14503140805c12883e1c288b75029aa7fd9ebe8c5d490a4c503161c4a27a4b"},{"path":"product/runtime/auths-gateway/src/native_epoch_tests.rs","sha256":"e37d34e699baa2b84578bd4c378975dbdceb407de51861c2217afdcf7b48e3b9"},{"path":"product/runtime/auths-gateway/src/native_federation_tests.rs","sha256":"bf2c6313f70c4b7f51f9ad05351048be3625d9432f3c725e84b046936304f540"},{"path":"product/runtime/auths-gateway/src/native_file_fault_tests.rs","sha256":"e1077a0059aa69918fb7e0a3481edd19af45a7343ce876583fbdbc96c4291b21"},{"path":"product/runtime/auths-gateway/src/native_generated_history_tests.rs","sha256":"5a5e308c1e4bc32cac31badf91e9453bed62e3e90f1b6585fc522bb4038990f9"},{"path":"product/runtime/auths-gateway/src/native_guarded_mutation_crash_tests.rs","sha256":"5329f72e7f22399a17627b058c2035c243e1b6ba60c9dfcd1c834258244cc440"},{"path":"product/runtime/auths-gateway/src/native_information_journal_tests.rs","sha256":"067bc51f7011971e8c5d021430fbfe323e5cc3cd7cde41c546cc92fad1f2cbc2"},{"path":"product/runtime/auths-gateway/src/native_information_replay_tests.rs","sha256":"165a1dce11c2006e6adfb5eee4c4977737b830995e6e29f77544a999893b0a5f"},{"path":"product/runtime/auths-gateway/src/native_journal_tests.rs","sha256":"d803ff53f90ce2a8c29808b4f874cd81954a3a5c52e19b519ab22f0543808fe1"},{"path":"product/runtime/auths-gateway/src/native_mutation_budget_tests.rs","sha256":"41d7f560d6b04e750acb2f8add2544745743ea9fea760a8ffd5ec5aab307e94c"},{"path":"product/runtime/auths-gateway/src/native_mutation_crash_tests.rs","sha256":"3e1befd35e7264024666331b52ca2245540ffa8f9927ed62e3aa45c7c8cc8950"},{"path":"product/runtime/auths-gateway/src/native_mutation_entry_tests.rs","sha256":"219a1986cf7440d31734db9db3c25f7997486a2fc29fee0a1ac8c7f0ee9ce803"},{"path":"product/runtime/auths-gateway/src/native_mutation_file_fault_tests.rs","sha256":"252f6ca9455b291b0873d983c8fccc75254d947b89a3fe9a1de0155c8ee53930"},{"path":"product/runtime/auths-gateway/src/native_mutation_journal_tests.rs","sha256":"181bf0a196805e50944cff4fe2315459eba877e7d7b5b90bf3c99e3353a8cad7"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_batch_tests.rs","sha256":"137f0e2f0e8d950cea3b38a7a03113c61177e54083f11eecc34b994ce41728f1"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_commit_tests.rs","sha256":"5d9a3b8a1601c83c66db3aefd904c16233ce2700d070ba5c9c4f81f4051c5fad"},{"path":"product/runtime/auths-gateway/src/native_mutation_replay_tests.rs","sha256":"3a874e1416cbb29cce70930f9955a70b4a5ad46e2cbca8d55f1acf070215cfbd"},{"path":"product/runtime/auths-gateway/src/native_partial_upload_tests.rs","sha256":"5fa867219d61b7c8a563e7cf5111291f15b8a11464623859be8aa9ea858170ea"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_proxy.rs","sha256":"1c95b3f8af48b78dc4f1c1baa3b26c1aa7bbe868c23aefbb32f1f0ae592f0045"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_tests.rs","sha256":"f021b110991ba3ae497705d0aaa0350a210f09b6f102fd71ac2f8eb4ff8f30c0"},{"path":"product/runtime/auths-gateway/src/native_postgres_fault_tests.rs","sha256":"0c6edea869a20765b322fa69c48e580aa0664e726b6cef483d4eba49803135ba"},{"path":"product/runtime/auths-gateway/src/native_process_tests.rs","sha256":"778a02ea4de3a0655021bad7d2f4b5f0007c6518ef60e966db3da49bfaf22c37"},{"path":"product/runtime/auths-gateway/src/native_public_evidence_tests.rs","sha256":"dac3a70f4535a14aab49ceed5a6b5fd7002e199270bb5a120f5bc8edfa5398bf"},{"path":"product/runtime/auths-gateway/src/native_recovery_actor_tests.rs","sha256":"bfdcdbaa0ee1d6822c57e5ab9ca524e731c393f9289c5508b61a0fc1d0b065e5"},{"path":"product/runtime/auths-gateway/src/native_recovery_authoring.rs","sha256":"9f4e8008160b349a52267eacd6a1c1e5c31c3c1cdfd71b574162ccaa9f7430b6"},{"path":"product/runtime/auths-gateway/src/native_recovery_history_tests.rs","sha256":"0c6ec8fe18fd4cc8496f04c3bc38552c3602d7254cae979fac76aeb7c7e4f41b"},{"path":"product/runtime/auths-gateway/src/native_recovery_limits_tests.rs","sha256":"f147c2e78cbe364fb3fd0c97bbbacdad86d77ca8c0b8575d9fa108968f82379a"},{"path":"product/runtime/auths-gateway/src/native_result_wire_cases.rs","sha256":"2b93c8ed96d7092216410bb99435411fd57497284639f56e0120b16639a98eb2"},{"path":"product/runtime/auths-gateway/src/native_retention_tests.rs","sha256":"224c941e394dd711a7ee19e7b52a1d6b7359eec62e7decec323d066319cb59d3"},{"path":"product/runtime/auths-gateway/src/native_scope_tests.rs","sha256":"8d3f362df9fadc10c22f0483f3a16d238d0f82f393a628727adf0b728707673e"},{"path":"product/runtime/auths-gateway/src/native_threshold_testkit.rs","sha256":"74e6b6ed1b77b463effff132fd8af9b3b59aeee64704a8fe8a19ed3ca9d79bf7"},{"path":"product/runtime/auths-gateway/src/observed_tests.rs","sha256":"91223493fefd3efc3fec58db225f00786b539e3b24027419e919d8bd7310059c"},{"path":"product/runtime/auths-gateway/src/observer.rs","sha256":"1c8988dd8807566d5a152e1894aa0f4c80c3ba7302ac910a4a6978d4f31b323d"},{"path":"product/runtime/auths-gateway/src/onboarding.rs","sha256":"6180e79d7698bcd4dd6ffdf32dcfbe14427f96de92f4ae4ceac4dda651f3671b"},{"path":"product/runtime/auths-gateway/src/operator.rs","sha256":"fe3b11fcf8e2394ab955b09a5b9b1f979c46f9e07a4f16e1a3ca160d675f1ace"},{"path":"product/runtime/auths-gateway/src/participant_control.rs","sha256":"58acbac1ab812963ad0ba0e2864395a87b3afe50962263cb44e19776cf5100b8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment.rs","sha256":"719e82ed5f30f7b37d6d87e45220918d945a2ed8fadc9e760308398e9f6501a4"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audience.rs","sha256":"83940af76073d391f1181eccea2e9b682dbd7ffcace6c39b2123ebe09e721573"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audit_tests.rs","sha256":"1a8cb537f16d023962f1375b7f15d0879b2be85c29775dd677c84d87b8c9d183"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/configuration_tests.rs","sha256":"2e1cb7024ff137bfd3292929f26ec078c9213f6276f4a2f915b279530c6c7782"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/cross_recipe_fixture.rs","sha256":"5a957eeac83da3f1c74e923648319674f6a90e6673b45fdc029b784b1c09053a"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/identity.rs","sha256":"a04328f93d59da6c34d623319b8a6f55a32e7d718837109b299ef6935b126930"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/recovery_tests.rs","sha256":"b13faae436b325fa6ea234613f1542f4ec8b1dfb7082d3f31339ea7f4a8b0cb8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/root.rs","sha256":"586bfc83e1a615b7d255ea235f6e519945126bb3ba7fe41d2aecd1dbcdccc797"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tests.rs","sha256":"a6f83af4c504d7a5bdedad90e473c8032f10c384adeab29075051389040f7696"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tree.rs","sha256":"4f2b8965b91b6e23317168221d077b074fd149690e28c30fad6055982ada584e"},{"path":"product/runtime/auths-gateway/src/pending_vectors/attempts.rs","sha256":"79803db1c278b2133d4adb112ab325247f359cfa5cf34e3de32898f6a9bffe62"},{"path":"product/runtime/auths-gateway/src/pending_vectors/bounds.rs","sha256":"e612217307e1da5b0eb5ee6582a7458bb064b8aa8a529fc6555b1b334127ab68"},{"path":"product/runtime/auths-gateway/src/pending_vectors/codes.rs","sha256":"6fb3f1679b0fd2ca7a8ac6aaee65f586b9eb809d9d7c9e26d3dd8ae2bfd10307"},{"path":"product/runtime/auths-gateway/src/pending_vectors/keys.rs","sha256":"b0b1f79d2fadc06e91378a8250223a429163138e4b86e90e09bc207d80fabf86"},{"path":"product/runtime/auths-gateway/src/pending_vectors/mod.rs","sha256":"5de8340f0ef71a0b57a09e323fefe473d3160c6ae952b9ba46f714825fbacafc"},{"path":"product/runtime/auths-gateway/src/pending_vectors/outcomes.rs","sha256":"a8960d8e055ac31827e379513f57f00ed868b559079fa2a4687e1b055d48e3ca"},{"path":"product/runtime/auths-gateway/src/pending_vectors/production.rs","sha256":"15c687599b0342dc141878afdf727092b23ade67ee5564eaa671f3f06befad57"},{"path":"product/runtime/auths-gateway/src/pending_vectors/recipes.rs","sha256":"5d550e3708ea41a9547ae2207699bde5ff4435f5a1ed7afa4378fb8defb51bb4"},{"path":"product/runtime/auths-gateway/src/pre_entry.rs","sha256":"3f2554feda72fa047229d427504676a1fb14894bdd377055a3108d7b3e3587cd"},{"path":"product/runtime/auths-gateway/src/prerequisite_race_tests.rs","sha256":"683cc46b3718d12dbb42668dae4bc6ec7e7508dcbb6b6232fead2e3e4f510d0d"},{"path":"product/runtime/auths-gateway/src/property_tests.rs","sha256":"85a77aaf01d9be51e1dd7c72461653a099c51b0ca9c818800d991abe262b198a"},{"path":"product/runtime/auths-gateway/src/qualification.rs","sha256":"f25bbb01c2a6131633c5a4de4e59345b761609e47b3c69353187364996ec87ea"},{"path":"product/runtime/auths-gateway/src/qualification_simulation.rs","sha256":"61f4117e33db07be83ce0f0376f79a405ff6d8bb7ffc2e28ff0bf927486941ce"},{"path":"product/runtime/auths-gateway/src/qualification_tests.rs","sha256":"ed9eb74599074af67730d63f8c5093f6a5277bced96dffeb81317a6dd9f4c8c6"},{"path":"product/runtime/auths-gateway/src/quorum_tests.rs","sha256":"a6533de9bc2689ec632f009404daf363494e224e7b89b1c65bb2e2cd4fc6421d"},{"path":"product/runtime/auths-gateway/src/readiness.rs","sha256":"911c3f11892f94641574375e2da4c671c802738f71082f12c39832331052d43d"},{"path":"product/runtime/auths-gateway/src/recipe.rs","sha256":"efb99a8f060b5633ea8ea75f24378e701f6ba2af023faf8c7609e4de4e868637"},{"path":"product/runtime/auths-gateway/src/recipe/content.rs","sha256":"e3f8aa8cf2dd9ef5777d9d1e76331052c67be87873db0c2cd6a8f48ff940d9d6"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource.rs","sha256":"2284b6f7363b1a15dd3c91dd3043f46a5c7a9c12d997213b13751b82ae627e26"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource_tests.rs","sha256":"ab371d7d7a5dae249da924e7b94d5c863491a2af796d2febdf2dda2a191c559f"},{"path":"product/runtime/auths-gateway/src/recipe/effect_review.rs","sha256":"8f94896f0d124162d3dbd080c44582bb23ad181bb582ff5cd3d049d75fcb6d77"},{"path":"product/runtime/auths-gateway/src/recipe/lower.rs","sha256":"81118ea7ae6c2d9984b88fe9991f91283070859d56923ee4fdfe9a50eee9ccb1"},{"path":"product/runtime/auths-gateway/src/recipe/response.rs","sha256":"0b4a074eb05b98685697094ed4775c5fe588b3e34f954aa1844135fe14c94487"},{"path":"product/runtime/auths-gateway/src/recipe/review.rs","sha256":"f9f88f6d54c9a517b55ea717ce8caf5199954ff710c0d20e2bb609f6b1344a51"},{"path":"product/runtime/auths-gateway/src/recipe/runtime.rs","sha256":"6301c005c5f014eb81a7a85dfa3bd256ec15e35bf1cdf6e60815a2a18b7151a0"},{"path":"product/runtime/auths-gateway/src/recipe/source.rs","sha256":"f79e481ab0f40985819b317c540c715766611b5c8c0e5647c87849fefc10cbac"},{"path":"product/runtime/auths-gateway/src/recipe/tests.rs","sha256":"78cfa166bb02b722c92205d2a95c261ef4f3cc272150145980252cb4c51c13d1"},{"path":"product/runtime/auths-gateway/src/recipe/validate.rs","sha256":"3f613af38c5cf29901575af4f82a9daca6718b2da70bc84baa0994a71be6113b"},{"path":"product/runtime/auths-gateway/src/resource_identity.rs","sha256":"edf093bf84c0ca6c0a300adc6060fe10cf58b90e592dc3cd6ebd58e73632373d"},{"path":"product/runtime/auths-gateway/src/scenario_tests.rs","sha256":"eba5fe0268e5d8516eea79a2cf418f5c52ccdf777fa94e553cfba00f0b90865e"},{"path":"product/runtime/auths-gateway/src/separation.rs","sha256":"be9306848ca5d801767cf6aa14247c8618312ef0e202f00ce0c24c4844491061"},{"path":"product/runtime/auths-gateway/src/simulation_attestation.rs","sha256":"88705e5d45415f760f1e3c3a065c35c48f4f4065bf7b3feb7882246983814d6f"},{"path":"product/runtime/auths-gateway/src/store.rs","sha256":"5645f57bcd92190ff2c83836744ecc514558c466bb5d377b258a8d82d21504f9"},{"path":"product/runtime/auths-gateway/src/store/acquisition.rs","sha256":"c52193c7ca87f4eedc3a3523be12eb85a2825fa989d8a61b076be734eb99684e"},{"path":"product/runtime/auths-gateway/src/store/acquisition/candidate.rs","sha256":"90c133dfc48ed351d0f1fea9de236135e82297719c383f9f37404a335909d225"},{"path":"product/runtime/auths-gateway/src/store/acquisition/content.rs","sha256":"92f87e4556335af8e1c4157e60e6936ca02b271381569e14510bc2c35e697ece"},{"path":"product/runtime/auths-gateway/src/store/acquisition/recovery.rs","sha256":"cc1be15bb948608868d33a088951530834235220a8fed7d77161ff53bf416dc1"},{"path":"product/runtime/auths-gateway/src/store/capacity.rs","sha256":"d25c4a0d753317270cb352246c70642bf0659e6448d14061356e4e9ea7ed3811"},{"path":"product/runtime/auths-gateway/src/store/disclosure.rs","sha256":"3b2f68d024bb10b734bd1e48ceb4eed23d1348ec6f716be78ec27384458ff007"},{"path":"product/runtime/auths-gateway/src/store/engagement.rs","sha256":"953ef4c20f16775c10bca98b820536f347a6ce9c756934503efdb7bb77c41ff5"},{"path":"product/runtime/auths-gateway/src/store/mutation_phase_tests.rs","sha256":"163c177cf5e053126b46c7de7e429a99df789090b1127b5d3b91636efcac4365"},{"path":"product/runtime/auths-gateway/src/store_retention_tests.rs","sha256":"a9e300fde3c45999764ee05c4c6ea46cfb9ffcaa51b82337a322925ad50f4f50"},{"path":"product/runtime/auths-gateway/src/store_testkit.rs","sha256":"720bdda4464a54198348e1cac8ff75ad4882b9ce10c389befb4e9bc80340156c"},{"path":"product/runtime/auths-gateway/src/submit.rs","sha256":"a8e5e908b99d997cdf34c46c5827e04c0f502307f71497d15511bb40ef52815b"},{"path":"product/runtime/auths-gateway/src/support.rs","sha256":"d4865f95a7a2fdfe297f3f73687c05ab64a6b911814daf5f2b6c703ce58262ce"},{"path":"product/runtime/auths-gateway/src/transport.rs","sha256":"0ad16c63c19cc41d11c485625c8fc0617aede21401d16ec814401f963538bb46"},{"path":"product/runtime/auths-kernel-runtime/Cargo.toml","sha256":"926bcd0053e5edd703be8f0027ad009e2982db013c8174c1366edbf38b48087d"},{"path":"product/runtime/auths-kernel-runtime/src/lib.rs","sha256":"7108faae9ca4bc32dc093ddaf885ac8f74f3c9b8d317b7c7d0ed00d1d0ab5972"},{"path":"product/runtime/auths-lifecycle/Cargo.toml","sha256":"c5053c705f8d5554b44e432fe75287a2faf11d644e5a2552e45ad6cd94176af5"},{"path":"product/runtime/auths-lifecycle/src/codec.rs","sha256":"51c4b746749150e8bfcd8ff972b3f6c1ef40bec15583448ec1b471d9ad737dc0"},{"path":"product/runtime/auths-lifecycle/src/digest.rs","sha256":"55282cd7d8aba37713c2dcb5357c9877819edb72a30eadefb860d28d7d3a3eb7"},{"path":"product/runtime/auths-lifecycle/src/identifier.rs","sha256":"31620e8c16de68d3d2d3b84d6353c1a5b9d4151d8247f91fa389b906a8e660f1"},{"path":"product/runtime/auths-lifecycle/src/kernel.rs","sha256":"2abb8c094b36d35b364e74d78091d14c5d6f3d1eb6552cca3b5538dbd017ce23"},{"path":"product/runtime/auths-lifecycle/src/lib.rs","sha256":"afe5a345cd309b5a4f08ffba3170a6d7f16ff914892b3f2006d5208ed24ec736"},{"path":"product/runtime/auths-lifecycle/src/model.rs","sha256":"1af12bbeeeaa65ec02ddcebd7d2c8c92ec1e339fa40ae85b45ab9b01a722a4fa"},{"path":"product/runtime/auths-lifecycle/src/operation.rs","sha256":"78e6d05fcf5d7ea4f148032a3fa26fdfcab77eb346019effe927b08e0d64d732"},{"path":"product/runtime/auths-lifecycle/src/registry.rs","sha256":"53495fe6f7a77422593a41623e28716f1c140dcc1e00f87f6b0ffbfb93a5ef90"},{"path":"product/runtime/auths-lifecycle/src/sealed.rs","sha256":"2e0c03b5813c926c159598bb7890d1523825edbe57cd687d42a5dfb3374a0c19"},{"path":"product/runtime/auths-lifecycle/src/test_support.rs","sha256":"221d9a5c5ef8e1f9f8fd66927484eaf813571d0568470278ecd8fa08a5eec8cd"},{"path":"product/runtime/auths-lifecycle/src/transition.rs","sha256":"011805a28efdd541f44ccea54dd0e34a1e58f4004447ee58013703b4fb6b2822"},{"path":"product/runtime/auths-runtime/Cargo.toml","sha256":"dd29d80a8b4bb56c869f036a6c9998f6e6d1c0383ac5dc03fa42b24abe2a7ff7"},{"path":"product/runtime/auths-runtime/src/lib.rs","sha256":"132ca03d58c14905d3a822a4972f42a22a5ad33a45f2ba9ca44f3a57d810b4b0"},{"path":"product/runtime/auths-runtime/src/production.rs","sha256":"fd4eff4270c571c10fcff6cf27df28961ebf074de8a1a028f500fda1ca376820"},{"path":"product/sdk/auths-approval-quorum/Cargo.toml","sha256":"df904971fca87a24194c5816738a331588fe8f164acb5d70839a35dca5f57114"},{"path":"product/sdk/auths-approval-quorum/src/lib.rs","sha256":"72e4086088a1c0912e4e1a9e980f26a5c280bf5ab16ea39c9f0f58d5096ac2ce"},{"path":"product/sdk/auths-approval-quorum/src/remote.rs","sha256":"9fa029c7c63003adf260f8aec55160c545681c60c1bace0d934e7525862aac7b"},{"path":"product/sdk/auths-approval-quorum/src/remote_tests.rs","sha256":"8a09ce17cfee82a035a74edd535f3ebeb3db0e078784740d3997b17dbdb10197"},{"path":"product/sdk/auths-approval-quorum/src/tests.rs","sha256":"0acbf12be3e497dcc6c2d8f29c9af3b1a7ed8e11b75f6399570d4f217a785060"},{"path":"product/stores/auths-stores/Cargo.toml","sha256":"a32c4b76d17b264be5d40d24497ff237e1ed87822e8bab86229b3db93106dbe3"},{"path":"product/stores/auths-stores/src/gateway_attempt.rs","sha256":"f39dc84a238db0ebc70ad1ac495da194d2c24b5e1f9905552a9b1143278725a9"},{"path":"product/stores/auths-stores/src/lib.rs","sha256":"40c280a5ff79bfc1cafcf0bb415e775e205637c526973eb94b43a30f86d4e6fe"},{"path":"product/stores/auths-stores/src/lifecycle.rs","sha256":"4033f69a8d36de9285b87ab86af363fc85f785918ec2042d0ef1bdcb64d6f73a"}],"schema":"auths.gateway-semantic-closure/1"} \ No newline at end of file +{"files":[{"path":"Cargo.lock","sha256":"77ae14c9bbf8dc445841fa919923f17d9c7dceec704ddcaa88dafe5dd92f6c2b"},{"path":"Cargo.toml","sha256":"ccc17deac72da945940a9ab4be2ce27628c056b977d19429bc1679b19fae30f3"},{"path":"core/adapters/auths-did-keri/Cargo.toml","sha256":"86ba3e3f9a0a70d970568bfb3113b7ba7bbdd81c3eebbb52743dd574a0c0ecaa"},{"path":"core/adapters/auths-did-keri/src/lib.rs","sha256":"a75674842f8a7142004369ccd206ab43e476459293f0ff4bed4d4e659031b3e3"},{"path":"core/adapters/auths-did-key/Cargo.toml","sha256":"d5a3ae07ecde83f91eed4c3785051dd0f44eab6c891754f3309b6b40596707d7"},{"path":"core/adapters/auths-did-key/src/lib.rs","sha256":"b76a3f4528a725df53cfa9242e6e414e1d26caa48468aaed497e28b121f4497c"},{"path":"core/adapters/auths-raw-key/Cargo.toml","sha256":"f49616bc18c19e6aaa7e6a02ccebcdb9f5c1422c1278ef9869e0dbf22ceda7be"},{"path":"core/adapters/auths-raw-key/src/lib.rs","sha256":"45eec1b295dac3bed65cd79c942870b926b06b3f5d38eaebaeb6140ac69315fa"},{"path":"core/crates/auths-algebra-kernel/Cargo.toml","sha256":"0cb078915287b8c47d20fb97b6fa14135ed1c61c4985c4de2753855563c27bba"},{"path":"core/crates/auths-algebra-kernel/src/generated.rs","sha256":"ae4bcbef42a408c7ffa0c6a74a42f7de177a6f14479e51d205acf830bda05960"},{"path":"core/crates/auths-algebra-kernel/src/lib.rs","sha256":"6654667eeb9b353d6648954c9fd2e8838462a82ce6b2803eb49e1366892c68c6"},{"path":"core/crates/auths-assurance/Cargo.toml","sha256":"afcb12a97ddd09d7a264b9ecd3fcaefc865ff2c9b4539ee85b00883420ba333a"},{"path":"core/crates/auths-assurance/src/lib.rs","sha256":"0fb2ec844d674b25a9e20b1601452c89c2454901fa506adfa9bb38ef9a7fa213"},{"path":"core/crates/auths-author/Cargo.toml","sha256":"1e6f0e3bc079ddb558decf0db26b291c6e72fc47327b6df1b7650d41689b215f"},{"path":"core/crates/auths-author/src/lib.rs","sha256":"e14475f2f49715a1869d5fa6b11ff1fbb72497e39097e09f833b0bae7e5b3f2b"},{"path":"core/crates/auths-author/src/observations.rs","sha256":"dda7d6bfa6f4bd7e95a480ca283c2c0e996f69c5c15cb0c7197af328131a7066"},{"path":"core/crates/auths-authority/Cargo.toml","sha256":"4f68212938029f79ebd857b4f3038494eb85d0163d49f07e51376715cf959815"},{"path":"core/crates/auths-authority/src/lib.rs","sha256":"da88d5194de4e17449e69972c0fb042afa3c39798a8f570f30771e77c384f1eb"},{"path":"core/crates/auths-codec/Cargo.toml","sha256":"e20e51826e17814effd9d8925d18d5fbdd6c0d37bf50231e743ec2611314722c"},{"path":"core/crates/auths-codec/src/approval.rs","sha256":"fbff43bf4d57f69f8b7738a8647751cde75c5a932dee65d924a1fe9c7202f91f"},{"path":"core/crates/auths-codec/src/bounded_policy.rs","sha256":"d21f6728be2d8a04b6d94921f2b683f7e61cbb42e0ac6866f1c88a49caa534c3"},{"path":"core/crates/auths-codec/src/decode.rs","sha256":"ba2999584cdf53b1b517ecb9c7ea50d39efee17c666a9a38e2ad1ac94379f778"},{"path":"core/crates/auths-codec/src/encode.rs","sha256":"8491192053e2e15d62b4d2a491de22405b7487ead69ab6f6bca40669ce7ca5f7"},{"path":"core/crates/auths-codec/src/error.rs","sha256":"fecb0737c16deb42d859f1dc7727c698438d9ac12064fd99e0024629642c390c"},{"path":"core/crates/auths-codec/src/hash.rs","sha256":"f88e111f1dbb2cef6b7b5e9c948cb45ff92e366710c8a5f5c636138aa748479e"},{"path":"core/crates/auths-codec/src/lib.rs","sha256":"3b0e5c94c6f34f750b88a9333e1d5c8145746d845d3a23e0d2f61807cf592ea7"},{"path":"core/crates/auths-codec/src/observation.rs","sha256":"38328b0c71ff97a4196eeade8b4faa889527ff1f80bb168468bcd49082a3987e"},{"path":"core/crates/auths-composition/Cargo.toml","sha256":"331e13025eb82588b5269ed3975929eb41c823d588c49e4c296273d85c6fe80e"},{"path":"core/crates/auths-composition/src/lib.rs","sha256":"e42e3b0b6a9985b73c533aeb23799c638979aa27a9ce7d0f10a8d60340570fb1"},{"path":"core/crates/auths-model/Cargo.toml","sha256":"565c15302b0cc9270db1e28efa3862804846850ba933cc17aea8abcec4a65987"},{"path":"core/crates/auths-model/src/approval.rs","sha256":"54cf44a9ef747ec21546a4086aecfb130bc7803b0d646430e6082df51e6e305f"},{"path":"core/crates/auths-model/src/bounded.rs","sha256":"f90496abc0a06c028b4d850af6ddab7d850bfafeaa3d042f1b1246a41d8bbbc9"},{"path":"core/crates/auths-model/src/bounded_policy.rs","sha256":"306a8f049cc7cfc7635fe0e4de47eb7813eed63d3c14c3be2b51586aa4eea450"},{"path":"core/crates/auths-model/src/lib.rs","sha256":"e7cfe6bb9574c6b016aa63e70658c31e0b90903ec6479a49f4a2ceb64f5bad97"},{"path":"core/crates/auths-model/src/observation.rs","sha256":"b3ed3e3cc090afca2896a7d3de7988afccc1ee1ea0ebd91b51a8bc0f20ad8dbb"},{"path":"core/crates/auths-multikey/Cargo.toml","sha256":"858756c1197befcada06134742bffe8d58cf674cadd6c046bf710570e96efaf2"},{"path":"core/crates/auths-multikey/src/lib.rs","sha256":"f5177fffb11e40eeaaa665ba886c541fc1f24d5eacdd6983fb03dc20148733f0"},{"path":"core/crates/auths-ports/Cargo.toml","sha256":"596a9b0f5af3717c16a6d13f7054d8a106bcd9f01f5f72c2235dd2afcf0ab16c"},{"path":"core/crates/auths-ports/src/binding.rs","sha256":"a16c012d40aa4249e3ec54372b9611006d0bfe8c7dc3c741911c2194ad17736d"},{"path":"core/crates/auths-ports/src/diagnostics.rs","sha256":"aa596572503b5a65a918bb2ff38281c144ff53821ee914e9325c852828d852df"},{"path":"core/crates/auths-ports/src/lib.rs","sha256":"8da1debf86f9532df0660155d04298beb1ba3a1204508f8586e2e67cd2fb3449"},{"path":"core/crates/auths-ports/src/path.rs","sha256":"b68fc547b4e4d97a60cbbc1cc1939fc6b34a8233b81f840bd396914a707e3ea1"},{"path":"core/crates/auths-raw-key-core/Cargo.toml","sha256":"98c0bc8527a537512e43a74dd6ba9658c6f0cdc16610cf938e3f9b43785d836d"},{"path":"core/crates/auths-raw-key-core/src/lib.rs","sha256":"98c0500c41697aae28708ad0bf970b9a97583d96a3d2c18d23e7fa351e0f7d12"},{"path":"core/crates/auths-registries/Cargo.toml","sha256":"590e49e58b0622d9d6274fea46796dcdb07dec9550eff295cce6a6427ffa51e2"},{"path":"core/crates/auths-registries/src/lib.rs","sha256":"450d3886d85ee333b7e046317fb5b47cde62483d5f3e41d46265e2caf4c373ec"},{"path":"core/crates/auths-registries/src/template.rs","sha256":"1224039dd2b3ce6fa8357613d8cafbae40400493da7176da202b9ade62fa05e4"},{"path":"core/crates/auths-signature-core/Cargo.toml","sha256":"6bee2230eb30af1be0bd5c2d57bd3e1903497a70028d47290d4ac6e9e0e8bca0"},{"path":"core/crates/auths-signature-core/src/lib.rs","sha256":"db97ecb45a82faa6f96a92738d3af1da92d1ba2f241f2c29114f4b8107dc4ab0"},{"path":"core/crates/auths-signature/Cargo.toml","sha256":"7f7b5682466ba439d8c59579022cb61068cad9fb4bd2d73e1cc21327c902b450"},{"path":"core/crates/auths-signature/src/lib.rs","sha256":"b3d9ac4cc3ba0797b9e1c09f2d6ac05089b25dac4e285a5af28c0165b33d925b"},{"path":"core/crates/auths-verifier/Cargo.toml","sha256":"c43358e06a33324b41a8b93e5cc7279c55f7d21f1f6cfaa539a3fc7b4c27a38f"},{"path":"core/crates/auths-verifier/src/approval.rs","sha256":"c3cae6a49e169051eb555bb092b1069a4d422516d6a2114623a89e5f31ff923f"},{"path":"core/crates/auths-verifier/src/causal.rs","sha256":"9635230f33b13a263573d319ac8a1976addbcc07677514a43e3c7bf28dc04587"},{"path":"core/crates/auths-verifier/src/lib.rs","sha256":"f22dec38dfa47ced8da4f605390da8453273bee1da010f57fd1fdfcb10e0b389"},{"path":"core/crates/auths-verifier/src/observation.rs","sha256":"0bb07f06a0f9524c88427df1c972b1de8ba038a9eeeb15d3134c25125ae84b1e"},{"path":"core/crates/auths-verifier/src/trace.rs","sha256":"2213d72023a1d9e0413a2cf2c51c3dad9e04775d86033a0caaa9d29a8f0036f8"},{"path":"exchange/crates/auths-proof-exchange-model/Cargo.toml","sha256":"34b2db64f93a288e942b5a3918d28cdcbef906e0dc9074ce848018d3d5f7a1fa"},{"path":"exchange/crates/auths-proof-exchange-model/src/lib.rs","sha256":"49fac5aff2339d3a57c41cb8bb2a82852538e8f77ecc4b157c88e264ff31fb55"},{"path":"exchange/crates/auths-proof-exchange-port/Cargo.toml","sha256":"7ff660f1b7579dc570c791090aeb450404fbbf44c92781e289f5ccdde746d739"},{"path":"exchange/crates/auths-proof-exchange-port/src/lib.rs","sha256":"b408fb40c6432edc1facb3d8b3e9433a033f8dc73fe2e0ba5a88c972ca675021"},{"path":"product/config/auths-config/Cargo.toml","sha256":"e4b568ab9f6d84f7d7e6d66443fe825f360db9c27bc7c31d6ddc0647ba3ab304"},{"path":"product/config/auths-config/src/lib.rs","sha256":"fecf00ea65cef9018fda9af2063326d7065b869266d0d9e73a4f06816f1102cc"},{"path":"product/errors/auths-errors/Cargo.toml","sha256":"3b3a199b6460ba75bda84475bb5accd35e1485448a3981038db85bf4772dd350"},{"path":"product/errors/auths-errors/src/lib.rs","sha256":"7feeb9069fa4003f94f1f07c1c94619cf1c883e0dbaaf2187f04d0f742264bdd"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/Cargo.toml","sha256":"716f1f2a117d6d69d8effe9ee9057e24ba3502f20af6a602b06facb638cdabed"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/api.rs","sha256":"9ea61dd7ddd93282b073b98e453e6b75b26dc49689c04e9782435d06a3a09e48"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/clock.rs","sha256":"73f0a6e0f5903883329fa6683f5888288f759512ac69e5c87efd2b6b87f7d79f"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/http.rs","sha256":"14c1fce14e24c984b2a275563a29b6326fb08367922b6e8d37ba38b9cb81aa2b"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/identity.rs","sha256":"186de11230c8b33375951c4368609f8976bf9795f171af3fd7fac26207a94361"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/lib.rs","sha256":"0b4617d044f5254a5ab22f5a2578f91cc025206a8c1845be39c1c56dcdf7a5df"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/names.rs","sha256":"41bb23572d6002e23ee103d6fe70ecd68764861c6f2e48a1c53af998270a4afa"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/sigv4.rs","sha256":"39fed883f4802e68d3b41a68fea0aba0737810996b33d13577de70faba004c29"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/store.rs","sha256":"fc60ee9c49b2f4f063c449b4c78100c5c4872779e94ca168f796603b380ef6e4"},{"path":"product/integrations/auths-custody/Cargo.toml","sha256":"1e14034185ad1ec24a977fd5f41d0abee219606245c046ce2a82287fadef448b"},{"path":"product/integrations/auths-custody/src/conformance.rs","sha256":"13a2b28bba4a7af5b00bb96d16ecf027d35d5487b314e48a666fb8ed09c2f2e9"},{"path":"product/integrations/auths-custody/src/key.rs","sha256":"c3b1468b8538421a796aeb65a0cd94b942e3788e78741f20dde07b4838e0c3da"},{"path":"product/integrations/auths-custody/src/lib.rs","sha256":"836ad8044440fd250457a46f5c4a980339534a8af6a4daac2643560050b62d39"},{"path":"product/operations/auths-operations/Cargo.toml","sha256":"73dde1e914ba5e1386f8d49c0d730423cc72ae77ec44c6554a6a75cc8e8922b1"},{"path":"product/operations/auths-operations/src/explanation.rs","sha256":"b4a39bcbd5712cb9e735ee7deeb281f3fa6af5ddca973735bf3d87dce427ef11"},{"path":"product/operations/auths-operations/src/lib.rs","sha256":"3f401a56555113b98f57bca172a2660eaecedf76247b83a3fdbb089c133a29cd"},{"path":"product/operations/auths-operations/src/render/json.rs","sha256":"2ae042639960afee123730e945d373bc5dda1d2b3af20ae16c939a7e99b9e418"},{"path":"product/operations/auths-operations/src/render/mod.rs","sha256":"b3b7f6fe473f49227ace5a68bfc3d8dc14b5db8dd9888fd9e207070337b1b8bf"},{"path":"product/operations/auths-operations/src/render/text.rs","sha256":"f216cf3bdb00e264523271b16e7059535ac6b1aabf271cebd7935af155e4bfec"},{"path":"product/policy/auths-bounded-policy/Cargo.toml","sha256":"babd5d200923137ead71d8c2528f847cea323ce98da942a1320b054436612c47"},{"path":"product/policy/auths-bounded-policy/src/arithmetic.rs","sha256":"75e43c5d4eab8d1f71c1daf53839f5f9fe45a400afc1f63a30c6f55ce3632627"},{"path":"product/policy/auths-bounded-policy/src/commitment.rs","sha256":"c5706f2d583454e1a7f570f7ada138d4d864bef0205dfae7c1296774f396bb3f"},{"path":"product/policy/auths-bounded-policy/src/eligibility.rs","sha256":"c9acdfb793074e687fc36efad506be27dbd99ffbf40387bc66c8de39ef238432"},{"path":"product/policy/auths-bounded-policy/src/identifier.rs","sha256":"0006a32bae9eb16c4178cf797df418d2b0a781f2bc6474b741dc1a908141831c"},{"path":"product/policy/auths-bounded-policy/src/kernel.rs","sha256":"99187c28b161ac70bee1afed60711f7f645adb4d1671a01863f9849b369811d5"},{"path":"product/policy/auths-bounded-policy/src/lib.rs","sha256":"76a18638b810e62e594d6e951504679305ce21841388e0c282ad51cd7841b91c"},{"path":"product/policy/auths-bounded-policy/src/receipt.rs","sha256":"3b9eae82f349956d3e7f29b57b254bff5ce67cc703e6cf43445ce2827676d1ad"},{"path":"product/policy/auths-bounded-policy/src/registry.rs","sha256":"4e251ea5833559841f8ee0bd9b66c0c01c39fa5e3a21720a19c4e8adbfcb99d0"},{"path":"product/profiles/auths-profile-api/Cargo.toml","sha256":"7ae85761f58625b5d678f961fd052eebf3e000ef565c7312e3ac857763c0017f"},{"path":"product/profiles/auths-profile-api/src/lib.rs","sha256":"a194b82b20bf8aa864c2334ef6c6aec30b2154ded972862252d5dcefa488ab95"},{"path":"product/profiles/auths-profile-mcp/Cargo.toml","sha256":"db264fc25242f7b7e4133cbe5782545b3107b406c87168ae072683cfb59eac66"},{"path":"product/profiles/auths-profile-mcp/src/arguments.rs","sha256":"a5de696586d507e2aee4a49fee99ef1ef4c51a2e46603f8838f1af6d9009833f"},{"path":"product/profiles/auths-profile-mcp/src/lib.rs","sha256":"d0f8b733a09ef8408336cdebc8948d6a5861012ce6878598b11be7084dfd4280"},{"path":"product/profiles/auths-profile-mcp/src/session.rs","sha256":"166c281fa66333388e4760d6098dad02d3359e1d5de4b8f93312c014f97abb03"},{"path":"product/qualification/auths-recipe-qualification/Cargo.toml","sha256":"b7b15b30b9a3d96d4f089d514266d3a892de6608d30707aa44be31cca89ca9fe"},{"path":"product/qualification/auths-recipe-qualification/src/canonical.rs","sha256":"30a9b50777f0dcb4b606abfee2467d5a975d9f6ad941ab6c13ca3df5b359f667"},{"path":"product/qualification/auths-recipe-qualification/src/closure.rs","sha256":"0ad6aee9bd981e2863fa725f209ec84031db2ff12f4c7ac3aaf5120f0bb86039"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning.rs","sha256":"db135c55e4e3079a73253ebae275536523eb36b545d1c152b4d7dce3c6b76828"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning/tests.rs","sha256":"4dde3736d206099b1bea4c14e0092c6c1287d1af9065958777d7c54331dd8686"},{"path":"product/qualification/auths-recipe-qualification/src/error.rs","sha256":"52d5cf720a1e4579008fdda90a3ac2c31f0b8db57985f121f65e54b4da2b7dd1"},{"path":"product/qualification/auths-recipe-qualification/src/evidence.rs","sha256":"ba45a7409d67a8af26ab811af306412014557477a101ab2a8eb0faf8f2bd4b91"},{"path":"product/qualification/auths-recipe-qualification/src/ids.rs","sha256":"e81a906d571497ab2da753e1532d4443706410e0b75fdd59a7d2d788c7aec403"},{"path":"product/qualification/auths-recipe-qualification/src/launch.rs","sha256":"805154ce931e3977f2a2a2c62909d90f7c0a22dc167bf4f1554dcf19316ffef8"},{"path":"product/qualification/auths-recipe-qualification/src/lib.rs","sha256":"0e24b0f81191df0d078c7f4d73ced784ba9472372bfcdff3c7d0e2fb1687b323"},{"path":"product/qualification/auths-recipe-qualification/src/model.rs","sha256":"3484eb0ec287b23d4682ade7b1b0f8d1335985b3fb180f06fc28716076957d5f"},{"path":"product/qualification/auths-recipe-qualification/src/release.rs","sha256":"ec478e53f70052e566aac7e15be2f9e1b1cd46837ac6990ae955fa864d311586"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/mod.rs","sha256":"1e4e5edc12d921e6b95475b3c1850f58f622c088d24a1fc9398d34019fb2f288"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/schemas.rs","sha256":"c59feec2805621f341a90f81fc005e2c12f7a70f9d264fdeacccb2be4fe1c046"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/verification.rs","sha256":"bdf5746fed4d10a7f577f7878619a917d29aa8b7d522f00d9f774e53eff4c8c1"},{"path":"product/qualification/auths-recipe-qualification/src/verify.rs","sha256":"646ff0e52e915174ad183768706e35e5ce2118b83475455310b930a77a7877f6"},{"path":"product/receipts/auths-receipts/Cargo.toml","sha256":"6001fa1375899953aafcb07c23a6da0c8f57ea7ec08bb9c950b12a60a8cc6f0f"},{"path":"product/receipts/auths-receipts/src/disclosure.rs","sha256":"ba9ed439be0a320c8a01f5b6e9b51361c1a37e076947490d8e4a484ba6bb119c"},{"path":"product/receipts/auths-receipts/src/lib.rs","sha256":"547a57c4160256719cafb7d0ab972d9fc80b0da14fbbce4148c70c414070ff36"},{"path":"product/runtime/auths-connections/Cargo.toml","sha256":"babeb6e1dda3dfb66291713ce1e43dce5c349833d0b50ea4dccbf986030026b2"},{"path":"product/runtime/auths-connections/src/credential.rs","sha256":"22bc7de6bcab7cebebb64edf6423d59b6493b78dca65b9da62749e3171217762"},{"path":"product/runtime/auths-connections/src/kernel.rs","sha256":"a456af19526ef7b19278551fd8d97606b6e7aa5a195e70bdd85d1e0786090ce8"},{"path":"product/runtime/auths-connections/src/lib.rs","sha256":"79209249a0acba0e854d9937255ea0e30a9a6f8e1c2baad77ab83646d392de22"},{"path":"product/runtime/auths-connections/src/model.rs","sha256":"de34a089cac9702acb889b7602b3e4732306c9e61029ec892582b7e02b73fc77"},{"path":"product/runtime/auths-connections/src/registry.rs","sha256":"e57640e003e72ad3235c567c2bb944a262bd64e673f023b62ea091094cc7e946"},{"path":"product/runtime/auths-gateway-kernel/Cargo.toml","sha256":"34f864e67656af4ac7e5c7a347a23f01fc8ab31365b8e23c0ef474483b14a183"},{"path":"product/runtime/auths-gateway-kernel/src/construct.rs","sha256":"e9d65744bae273d65face4285e5d2da75c06a92ab48f7b8333d496604e31c63c"},{"path":"product/runtime/auths-gateway-kernel/src/lib.rs","sha256":"cfda6f8453426564c085475f183b6f790b438768a19668f1b65d33ba59dc8632"},{"path":"product/runtime/auths-gateway-kernel/src/order.rs","sha256":"efc2f2eef68232fe3082e1607e6f1e87d4a19cbb2f492bdc6e71916a2461b6a8"},{"path":"product/runtime/auths-gateway-kernel/src/outcome.rs","sha256":"ac0245699457c802a70cdd6f52a01dcb4777c487b58ed7dc9cfc99345465ccaa"},{"path":"product/runtime/auths-gateway-kernel/src/ratio.rs","sha256":"7ace22264812e6fc1ef3a62afee402cf43494bb71ae0d3de219ad1b39d690bcb"},{"path":"product/runtime/auths-gateway-kernel/src/recovery.rs","sha256":"9f46dcd1685ab6e4d1ba04a3fc286a9f3afee8fb47829be1fbc670a7926a2dc6"},{"path":"product/runtime/auths-gateway-kernel/src/transition.rs","sha256":"9c9c292397aa640c2f002ffb5befe110f86d0aa246f3ffe99440718e5174af3c"},{"path":"product/runtime/auths-gateway/Cargo.toml","sha256":"959b1a58a110315f86115966f85d6992afd91be28d741fee7354207d4bd6f258"},{"path":"product/runtime/auths-gateway/src/admin.rs","sha256":"5d0f1b583a4cacdcbc62521ed1a5730ed6b57d42bf826708a0c5e591272c4a12"},{"path":"product/runtime/auths-gateway/src/admin_boundary_tests.rs","sha256":"7ef23fdaf512cfa6315aed72577ccf0c4d04725f5b4fa4b5f0482e27e5e7ba1c"},{"path":"product/runtime/auths-gateway/src/admin_fault.rs","sha256":"4a66386d91daffeeac4080c16a0d4e724adc09220ba056c0c4267e5f4fc05268"},{"path":"product/runtime/auths-gateway/src/app.rs","sha256":"acd1deab7a8524c97d4a76ec9f7079b3afc035d707e0480a0cbdf4d084972099"},{"path":"product/runtime/auths-gateway/src/app/content.rs","sha256":"4c01001659b1a563dfd4abe7e002e3f85609ffef511a0e39f967af944ea01300"},{"path":"product/runtime/auths-gateway/src/app/content_tests.rs","sha256":"6a239a15732dd279abb35a72721eb2034bf5aac79439edc7c34aa8d4fdfd5212"},{"path":"product/runtime/auths-gateway/src/app/participant.rs","sha256":"1d76d37ba8f7a4657ff013ad845bd90ab82636ade7e7a798937db05ee52a9424"},{"path":"product/runtime/auths-gateway/src/audit.rs","sha256":"aebb55cfe1305c6de26fda03989e138a6731ec57d1cfebf4114886bfb6b93d26"},{"path":"product/runtime/auths-gateway/src/audit_export.rs","sha256":"6cc3d70ef4cc64026de4ec4e094979a95fee6fadb86707b0e09515ad754632be"},{"path":"product/runtime/auths-gateway/src/audit_tests.rs","sha256":"8cf1ab4cd2789973791805b07216d423690645aa4f28307f87dbcb803bd2ad22"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway-harness.rs","sha256":"12b0c24d36b2e6a3be392d3c081a783b355fdd67dc5b54bacc0410e803116b8c"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway.rs","sha256":"6ae544618bfb0c0b938fb632e054c36e988c6eb278d62775405937c6a5d6ffa6"},{"path":"product/runtime/auths-gateway/src/binding.rs","sha256":"663b0ce878319511aa7d05722ab4ab2fa9be18817884ffb2ee9f131ff1e382d1"},{"path":"product/runtime/auths-gateway/src/bounds.rs","sha256":"d0658585765d4d8f9865f65d23d850ec196eeca23fe65a66a55f1f1bc9b2c9b9"},{"path":"product/runtime/auths-gateway/src/bounds_aggregate_tests.rs","sha256":"ab34f227b7c8692ba1da88ccb32bb3687a66adf8353d8282fae905d4a88eb612"},{"path":"product/runtime/auths-gateway/src/bounds_tests.rs","sha256":"80b116ccf65bda2d7f2fbcd3b26fcf82b0a4bd3dce3a5df7842828cb271d7741"},{"path":"product/runtime/auths-gateway/src/candidate_runtime.rs","sha256":"ebe3d2da3a340c990b6fdcaac8c4418a7c646c0148c8222c19d925b21dbc7da8"},{"path":"product/runtime/auths-gateway/src/commissioning_budget.rs","sha256":"f5c38e9e07df3cb99b6bd664f33eae414b9f3dfef4932d69c19a9b174906dc1b"},{"path":"product/runtime/auths-gateway/src/commissioning_budget/tests.rs","sha256":"da104a1643c37515deec6397bca6db2054f2c9158ec3d230a1b1ec9c7d0f659f"},{"path":"product/runtime/auths-gateway/src/commissioning_floor.rs","sha256":"7fa6991c5ccd5ae1403be84b3da390323fab09f36e15ac01fd7a38ea350c6fdb"},{"path":"product/runtime/auths-gateway/src/commissioning_floor/tests.rs","sha256":"6b663d6e556adc0b455b81845bc4394d82c6c4de0c5f43e1310f3ddc6e4e40f7"},{"path":"product/runtime/auths-gateway/src/commissioning_session.rs","sha256":"919fe57fafa563f770402be66b4e32f1f0d652f09fe1276a62e41b50d66f8696"},{"path":"product/runtime/auths-gateway/src/commissioning_session/tests.rs","sha256":"48d44a5fccea737930f24c49a397428edc439525330c83a868b5113a48f122ab"},{"path":"product/runtime/auths-gateway/src/configuration.rs","sha256":"e5597c39b1acbe50cad20c02722feb38d382294026a0a7a4097e6d97b68eaafb"},{"path":"product/runtime/auths-gateway/src/configuration/engagement.rs","sha256":"67bdd2c792b9dfb1168020a10799af043143461f020b74b18d20fd4089f9b40c"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/audit.rs","sha256":"ee35149f8f348ff2a20ef7185ae0bc5a7b912ad5746510c0714b235765b8b1a4"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/blob.rs","sha256":"12af8071e9cd21c04cf9b55d3cb5e8eb2f33ff888e03e06e114222feb4abf752"},{"path":"product/runtime/auths-gateway/src/connection.rs","sha256":"54f5d53c78f836bf8ce1236d449b3f4f1daa95312102d5583ef69cb4e57b513b"},{"path":"product/runtime/auths-gateway/src/control_namespace.rs","sha256":"0333baed635d34edb066d2b9cb4c6ea3f40faad4be8c75f54c989570515dddee"},{"path":"product/runtime/auths-gateway/src/credential_journal.rs","sha256":"8241dbc7a90054457c7c99fec3b35a433f671682b877f01f8429b8618a6d8e20"},{"path":"product/runtime/auths-gateway/src/disclosure_transport.rs","sha256":"614c975a4b9810f40092a2f9cdd022308b75e649167dbc486c9907f7570d8d45"},{"path":"product/runtime/auths-gateway/src/echo_verify.rs","sha256":"6d453051665f823abd7354d5c50031d9524cf47d6092d2f09080ae814e3b9575"},{"path":"product/runtime/auths-gateway/src/effect.rs","sha256":"5e1d5b8c28df616917d442b023e5161a2e3527ef7b8fb63d736728542c6caa2a"},{"path":"product/runtime/auths-gateway/src/effect/acquisition.rs","sha256":"0afd6aec490e7995a440786be6ac69cb5461201a4b4ec303e8b5a6c12ed97202"},{"path":"product/runtime/auths-gateway/src/effect/authority.rs","sha256":"2490494c3a1636decbfd04b2dbac71c47e49be26b61cc6cf41319a13450bb4a0"},{"path":"product/runtime/auths-gateway/src/effect/candidate.rs","sha256":"d1efc3ec7e1fa642af26f4e4c6a25924c60821dc2e96bd0b458d9292d3866678"},{"path":"product/runtime/auths-gateway/src/effect/candidate/proposal.rs","sha256":"d78574109f41300edfcd7ad38155439ffc3adb9a799554d75d5484738ef174f1"},{"path":"product/runtime/auths-gateway/src/effect/capacity.rs","sha256":"300fa32e09dab7c679b8c0a69bb4e3c1e924ed2ce1416090a2aa477a7eec9f0f"},{"path":"product/runtime/auths-gateway/src/effect/content.rs","sha256":"9f3b53c8c2ad5cafa183ed1229ee03f2cd8a610009b07da560372bd0fbae1673"},{"path":"product/runtime/auths-gateway/src/effect/disclosure.rs","sha256":"0acb5ac805e91c952c8f0028db03ae607c3753cbd08a76035f2d1b4fa6fe6244"},{"path":"product/runtime/auths-gateway/src/effect/disclosure_auth.rs","sha256":"32fa6f040ae46f3323df6e153c6ae810eccf32d22b9945e5565e7189dc877eac"},{"path":"product/runtime/auths-gateway/src/effect/engagement.rs","sha256":"5a36ff3f4460bf026a7e99fadc713672fbeb05dbc6f6393d10cb06440e779e54"},{"path":"product/runtime/auths-gateway/src/effect/lineage.rs","sha256":"0b3ddeb56377b69264bbd4738c624639a8dcad91b4df3328f907db439747faaf"},{"path":"product/runtime/auths-gateway/src/effect/prerequisite.rs","sha256":"e79596a4cbe47e307e3a3056c52582b1cd01a43c4c2d69479ee03df1f62af3b0"},{"path":"product/runtime/auths-gateway/src/effect/release.rs","sha256":"84e2572f76216e02131e9bbcc850f4b3572473eac6dd71baa144e63a2270cff7"},{"path":"product/runtime/auths-gateway/src/effect_binding_boundary_tests.rs","sha256":"83d8e0edf524a2be0d2c494e4b9897cab0ddcf61184828d716bae10cbaf904b4"},{"path":"product/runtime/auths-gateway/src/effect_candidate_staging_tests.rs","sha256":"7db0f4fd86cf119a6b4b0702267c91debdf11a73fc93105ce7e98d0c6e4cd8d9"},{"path":"product/runtime/auths-gateway/src/effect_candidate_tests.rs","sha256":"e93c08c2eca2abdc58f7db9fbf19e775e4f709225b04789832e2b8f5a81c8948"},{"path":"product/runtime/auths-gateway/src/effect_content_tests.rs","sha256":"63eb623413167bf9ff34161b6bf4f54f68709af9fb1d1e7a419a07f63ce04409"},{"path":"product/runtime/auths-gateway/src/effect_created_resource_tests.rs","sha256":"98f7a9de7824dbf3e2361b3006ef823002b391d557969442edb371266f7673db"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_delivery_tests.rs","sha256":"9586b84b045561edbcf8276cd9769b412240f04248e240cd29a5068d4cd03a00"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_journal_tests.rs","sha256":"19f349a090f07288cfafe24aaffad49f28fe163e59870520aac6bb899f673a99"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_tests.rs","sha256":"5389b03d7d0cd5b23abaa3c396450fa4018102c942b27af35aef81e65b9bb841"},{"path":"product/runtime/auths-gateway/src/effect_engagement_admission_tests.rs","sha256":"46a34a83cfecb180c6f0937e83b8b14009afb4ce315864dfb9b3137759cb9959"},{"path":"product/runtime/auths-gateway/src/effect_engagement_control_tests.rs","sha256":"71e2e965b71b52d2fb877e22e5d4951d1d4072adede4b60dc3996197ac554395"},{"path":"product/runtime/auths-gateway/src/effect_engagement_delivery_tests.rs","sha256":"14b241916d9c3fe8141a38e93c62f8b8a039f2780ad3cd63282e707feaa4d1b3"},{"path":"product/runtime/auths-gateway/src/effect_engagement_information_tests.rs","sha256":"27735a9e1237a063c2a525cdcd93e8102164d549dc72509767a977ab4abd8491"},{"path":"product/runtime/auths-gateway/src/effect_engagement_prerequisite_tests.rs","sha256":"0566288b7f77f5beda44c8374f31a5053e02b44ccbe92781618e9fd90b1a6800"},{"path":"product/runtime/auths-gateway/src/effect_engagement_tests.rs","sha256":"2b78b315c7539d4119ce5b20164d6e4855d9b403b76eaa5b72fa3b72959a7621"},{"path":"product/runtime/auths-gateway/src/effect_instance_recovery_tests.rs","sha256":"eee64773b6373e1bd7185c07c5c4ffeaacafb907f4d0aa17b89ba1556beec5e4"},{"path":"product/runtime/auths-gateway/src/effect_native_tests.rs","sha256":"fd9cd960dfb02f68eef479ed2a95d65b79882c20f8a737c9a74d6a4222af407b"},{"path":"product/runtime/auths-gateway/src/effect_prerequisite_tests.rs","sha256":"51efa528051919d0ca67643cac3d0e06afac534706b802adb18311e2bfa222ff"},{"path":"product/runtime/auths-gateway/src/effect_read_budget_tests.rs","sha256":"9bf8491f0da471e07b5d96dbfdbdf5fbe5a47fec11700dca55a6ac05a1ebb68b"},{"path":"product/runtime/auths-gateway/src/effect_recovery_prerequisite_tests.rs","sha256":"e6235b83ac159d9446d79e6e072dd4aa9d0447a68055be3b32de6450a2300699"},{"path":"product/runtime/auths-gateway/src/effect_review_approval_tests.rs","sha256":"6e5c5a72ec93255d7d8f219ae8cf4401431644ff03d624164645a1e9d2b2e87e"},{"path":"product/runtime/auths-gateway/src/engine.rs","sha256":"113390cb4ef92ef337b5f82b7c77c54a428ec492756f90100b74002487dc8c7f"},{"path":"product/runtime/auths-gateway/src/entry.rs","sha256":"6fd17c142c0001b9cda33c33b0e18f4d1d40866cde8a66b3f57d46f971c1ead9"},{"path":"product/runtime/auths-gateway/src/entry_tests.rs","sha256":"86dcfc4918394052d18fc5509dcc0e740a064a97b084d1c2c9f23eddedaa6db4"},{"path":"product/runtime/auths-gateway/src/execution_witness.rs","sha256":"e8b1a8e41d5e3fa309760067849d390ef065feeb46701a83391832645a2f000c"},{"path":"product/runtime/auths-gateway/src/fuzzing.rs","sha256":"2dcf0a15e407a9180c7fecb7eecfaf4674698aa997b1f5de9a3649a49baebd1b"},{"path":"product/runtime/auths-gateway/src/generation_floor.rs","sha256":"09ed98d9533c7a4355890943ee6ef26a9c20da775b4cb77fdb25a723f6a16e54"},{"path":"product/runtime/auths-gateway/src/harness.rs","sha256":"5e296231c98e6429f3d805150fab9ce2d6a5789d41dd83f562b677314374567b"},{"path":"product/runtime/auths-gateway/src/harness/authoring.rs","sha256":"de511d89bf6bb72e443558caf0c4835dad2908b5fe5c13a3a02483e85dd7d354"},{"path":"product/runtime/auths-gateway/src/lib.rs","sha256":"a39306228bb0ee5e7c50fb83149756a15fa761d52bb6807942f1ec77db2049d6"},{"path":"product/runtime/auths-gateway/src/listener.rs","sha256":"aa08239bcbc1fcb55e8a212fbdf6a84f12985b0d436dcb51dc58b06e59e435f2"},{"path":"product/runtime/auths-gateway/src/native_budget_tests.rs","sha256":"d6de965afc7f794e611545744fa515f833abf315157519ed8390c195a7dac8c0"},{"path":"product/runtime/auths-gateway/src/native_cost_store.rs","sha256":"d1acdd7e4076e3a32f312dce74a01e5dcbccdb1f8912758524b7841d61377eed"},{"path":"product/runtime/auths-gateway/src/native_cost_tests.rs","sha256":"45bcb4e9174d4c23495ac734a42b5f8b7735c14d4599cd191d50f6547aaf374c"},{"path":"product/runtime/auths-gateway/src/native_crash_tests.rs","sha256":"46998a973388884d902a6b07e12fa342fb08ea77363a43a41b0b0a7a5ccbcde9"},{"path":"product/runtime/auths-gateway/src/native_cross_recipe_tests.rs","sha256":"e2dbde7afba1b3da5df3a7a44821f413ab7861a5417ad16f8b912f390128d115"},{"path":"product/runtime/auths-gateway/src/native_dependency_tests.rs","sha256":"0e15d059140ad485b2548f4234b94424d62b5563a8dded42224329a76b101f37"},{"path":"product/runtime/auths-gateway/src/native_differential_tests.rs","sha256":"17fc0803fe5e7f78b416f8f68e7c9066baf1bab69bdf0b51c44fd19e3d719da8"},{"path":"product/runtime/auths-gateway/src/native_disclosure_budget_tests.rs","sha256":"bb2a6f76f06a6d42d69698f7d22d0b4aeb4dc857e442042d65582097567009fb"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_testkit.rs","sha256":"4beb946a288e4fe082cc0917f4200b18b8154eff98eca1ea3d0c830ffdc3625d"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_tests.rs","sha256":"425e423f04d92794656d4da915125e4d0a8be25ec85fb88244ee0c27ece8ec44"},{"path":"product/runtime/auths-gateway/src/native_disclosure_entry_tests.rs","sha256":"50f5dc35a9a8ef462b8833296cb313b2acec81d544b7e317c7f188741d0786db"},{"path":"product/runtime/auths-gateway/src/native_disclosure_file_fault_tests.rs","sha256":"72d67bb0d3fd77fb93c4f5d3ab0afa5a939742b5a47acf006a511d99d72cee9f"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_batch_tests.rs","sha256":"a8b8a90210d9f7f0012e40701c09c524527f93f9e56933d89b58a38464cba702"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_commit_tests.rs","sha256":"1e14503140805c12883e1c288b75029aa7fd9ebe8c5d490a4c503161c4a27a4b"},{"path":"product/runtime/auths-gateway/src/native_epoch_tests.rs","sha256":"e37d34e699baa2b84578bd4c378975dbdceb407de51861c2217afdcf7b48e3b9"},{"path":"product/runtime/auths-gateway/src/native_federation_tests.rs","sha256":"bf2c6313f70c4b7f51f9ad05351048be3625d9432f3c725e84b046936304f540"},{"path":"product/runtime/auths-gateway/src/native_file_fault_tests.rs","sha256":"e1077a0059aa69918fb7e0a3481edd19af45a7343ce876583fbdbc96c4291b21"},{"path":"product/runtime/auths-gateway/src/native_generated_history_tests.rs","sha256":"5a5e308c1e4bc32cac31badf91e9453bed62e3e90f1b6585fc522bb4038990f9"},{"path":"product/runtime/auths-gateway/src/native_guarded_mutation_crash_tests.rs","sha256":"5329f72e7f22399a17627b058c2035c243e1b6ba60c9dfcd1c834258244cc440"},{"path":"product/runtime/auths-gateway/src/native_information_journal_tests.rs","sha256":"067bc51f7011971e8c5d021430fbfe323e5cc3cd7cde41c546cc92fad1f2cbc2"},{"path":"product/runtime/auths-gateway/src/native_information_replay_tests.rs","sha256":"165a1dce11c2006e6adfb5eee4c4977737b830995e6e29f77544a999893b0a5f"},{"path":"product/runtime/auths-gateway/src/native_journal_tests.rs","sha256":"d803ff53f90ce2a8c29808b4f874cd81954a3a5c52e19b519ab22f0543808fe1"},{"path":"product/runtime/auths-gateway/src/native_mutation_budget_tests.rs","sha256":"41d7f560d6b04e750acb2f8add2544745743ea9fea760a8ffd5ec5aab307e94c"},{"path":"product/runtime/auths-gateway/src/native_mutation_crash_tests.rs","sha256":"3e1befd35e7264024666331b52ca2245540ffa8f9927ed62e3aa45c7c8cc8950"},{"path":"product/runtime/auths-gateway/src/native_mutation_entry_tests.rs","sha256":"219a1986cf7440d31734db9db3c25f7997486a2fc29fee0a1ac8c7f0ee9ce803"},{"path":"product/runtime/auths-gateway/src/native_mutation_file_fault_tests.rs","sha256":"252f6ca9455b291b0873d983c8fccc75254d947b89a3fe9a1de0155c8ee53930"},{"path":"product/runtime/auths-gateway/src/native_mutation_journal_tests.rs","sha256":"181bf0a196805e50944cff4fe2315459eba877e7d7b5b90bf3c99e3353a8cad7"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_batch_tests.rs","sha256":"137f0e2f0e8d950cea3b38a7a03113c61177e54083f11eecc34b994ce41728f1"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_commit_tests.rs","sha256":"5d9a3b8a1601c83c66db3aefd904c16233ce2700d070ba5c9c4f81f4051c5fad"},{"path":"product/runtime/auths-gateway/src/native_mutation_replay_tests.rs","sha256":"3a874e1416cbb29cce70930f9955a70b4a5ad46e2cbca8d55f1acf070215cfbd"},{"path":"product/runtime/auths-gateway/src/native_partial_upload_tests.rs","sha256":"5fa867219d61b7c8a563e7cf5111291f15b8a11464623859be8aa9ea858170ea"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_proxy.rs","sha256":"1c95b3f8af48b78dc4f1c1baa3b26c1aa7bbe868c23aefbb32f1f0ae592f0045"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_tests.rs","sha256":"f021b110991ba3ae497705d0aaa0350a210f09b6f102fd71ac2f8eb4ff8f30c0"},{"path":"product/runtime/auths-gateway/src/native_postgres_fault_tests.rs","sha256":"0c6edea869a20765b322fa69c48e580aa0664e726b6cef483d4eba49803135ba"},{"path":"product/runtime/auths-gateway/src/native_process_tests.rs","sha256":"778a02ea4de3a0655021bad7d2f4b5f0007c6518ef60e966db3da49bfaf22c37"},{"path":"product/runtime/auths-gateway/src/native_public_evidence_tests.rs","sha256":"dac3a70f4535a14aab49ceed5a6b5fd7002e199270bb5a120f5bc8edfa5398bf"},{"path":"product/runtime/auths-gateway/src/native_recovery_actor_tests.rs","sha256":"bfdcdbaa0ee1d6822c57e5ab9ca524e731c393f9289c5508b61a0fc1d0b065e5"},{"path":"product/runtime/auths-gateway/src/native_recovery_authoring.rs","sha256":"9f4e8008160b349a52267eacd6a1c1e5c31c3c1cdfd71b574162ccaa9f7430b6"},{"path":"product/runtime/auths-gateway/src/native_recovery_history_tests.rs","sha256":"0c6ec8fe18fd4cc8496f04c3bc38552c3602d7254cae979fac76aeb7c7e4f41b"},{"path":"product/runtime/auths-gateway/src/native_recovery_limits_tests.rs","sha256":"f147c2e78cbe364fb3fd0c97bbbacdad86d77ca8c0b8575d9fa108968f82379a"},{"path":"product/runtime/auths-gateway/src/native_result_wire_cases.rs","sha256":"2b93c8ed96d7092216410bb99435411fd57497284639f56e0120b16639a98eb2"},{"path":"product/runtime/auths-gateway/src/native_retention_tests.rs","sha256":"224c941e394dd711a7ee19e7b52a1d6b7359eec62e7decec323d066319cb59d3"},{"path":"product/runtime/auths-gateway/src/native_scope_tests.rs","sha256":"8d3f362df9fadc10c22f0483f3a16d238d0f82f393a628727adf0b728707673e"},{"path":"product/runtime/auths-gateway/src/native_threshold_testkit.rs","sha256":"74e6b6ed1b77b463effff132fd8af9b3b59aeee64704a8fe8a19ed3ca9d79bf7"},{"path":"product/runtime/auths-gateway/src/observed_tests.rs","sha256":"91223493fefd3efc3fec58db225f00786b539e3b24027419e919d8bd7310059c"},{"path":"product/runtime/auths-gateway/src/observer.rs","sha256":"1c8988dd8807566d5a152e1894aa0f4c80c3ba7302ac910a4a6978d4f31b323d"},{"path":"product/runtime/auths-gateway/src/onboarding.rs","sha256":"6180e79d7698bcd4dd6ffdf32dcfbe14427f96de92f4ae4ceac4dda651f3671b"},{"path":"product/runtime/auths-gateway/src/operator.rs","sha256":"fe3b11fcf8e2394ab955b09a5b9b1f979c46f9e07a4f16e1a3ca160d675f1ace"},{"path":"product/runtime/auths-gateway/src/participant_control.rs","sha256":"58acbac1ab812963ad0ba0e2864395a87b3afe50962263cb44e19776cf5100b8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment.rs","sha256":"719e82ed5f30f7b37d6d87e45220918d945a2ed8fadc9e760308398e9f6501a4"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audience.rs","sha256":"83940af76073d391f1181eccea2e9b682dbd7ffcace6c39b2123ebe09e721573"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audit_tests.rs","sha256":"1a8cb537f16d023962f1375b7f15d0879b2be85c29775dd677c84d87b8c9d183"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/configuration_tests.rs","sha256":"2e1cb7024ff137bfd3292929f26ec078c9213f6276f4a2f915b279530c6c7782"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/cross_recipe_fixture.rs","sha256":"5a957eeac83da3f1c74e923648319674f6a90e6673b45fdc029b784b1c09053a"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/identity.rs","sha256":"a04328f93d59da6c34d623319b8a6f55a32e7d718837109b299ef6935b126930"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/recovery_tests.rs","sha256":"b13faae436b325fa6ea234613f1542f4ec8b1dfb7082d3f31339ea7f4a8b0cb8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/root.rs","sha256":"586bfc83e1a615b7d255ea235f6e519945126bb3ba7fe41d2aecd1dbcdccc797"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tests.rs","sha256":"a6f83af4c504d7a5bdedad90e473c8032f10c384adeab29075051389040f7696"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tree.rs","sha256":"4f2b8965b91b6e23317168221d077b074fd149690e28c30fad6055982ada584e"},{"path":"product/runtime/auths-gateway/src/pending_vectors/attempts.rs","sha256":"79803db1c278b2133d4adb112ab325247f359cfa5cf34e3de32898f6a9bffe62"},{"path":"product/runtime/auths-gateway/src/pending_vectors/bounds.rs","sha256":"e612217307e1da5b0eb5ee6582a7458bb064b8aa8a529fc6555b1b334127ab68"},{"path":"product/runtime/auths-gateway/src/pending_vectors/codes.rs","sha256":"6fb3f1679b0fd2ca7a8ac6aaee65f586b9eb809d9d7c9e26d3dd8ae2bfd10307"},{"path":"product/runtime/auths-gateway/src/pending_vectors/keys.rs","sha256":"b0b1f79d2fadc06e91378a8250223a429163138e4b86e90e09bc207d80fabf86"},{"path":"product/runtime/auths-gateway/src/pending_vectors/mod.rs","sha256":"5de8340f0ef71a0b57a09e323fefe473d3160c6ae952b9ba46f714825fbacafc"},{"path":"product/runtime/auths-gateway/src/pending_vectors/outcomes.rs","sha256":"a8960d8e055ac31827e379513f57f00ed868b559079fa2a4687e1b055d48e3ca"},{"path":"product/runtime/auths-gateway/src/pending_vectors/production.rs","sha256":"15c687599b0342dc141878afdf727092b23ade67ee5564eaa671f3f06befad57"},{"path":"product/runtime/auths-gateway/src/pending_vectors/recipes.rs","sha256":"5d550e3708ea41a9547ae2207699bde5ff4435f5a1ed7afa4378fb8defb51bb4"},{"path":"product/runtime/auths-gateway/src/pre_entry.rs","sha256":"3f2554feda72fa047229d427504676a1fb14894bdd377055a3108d7b3e3587cd"},{"path":"product/runtime/auths-gateway/src/prerequisite_race_tests.rs","sha256":"683cc46b3718d12dbb42668dae4bc6ec7e7508dcbb6b6232fead2e3e4f510d0d"},{"path":"product/runtime/auths-gateway/src/property_tests.rs","sha256":"85a77aaf01d9be51e1dd7c72461653a099c51b0ca9c818800d991abe262b198a"},{"path":"product/runtime/auths-gateway/src/qualification.rs","sha256":"f25bbb01c2a6131633c5a4de4e59345b761609e47b3c69353187364996ec87ea"},{"path":"product/runtime/auths-gateway/src/qualification_simulation.rs","sha256":"61f4117e33db07be83ce0f0376f79a405ff6d8bb7ffc2e28ff0bf927486941ce"},{"path":"product/runtime/auths-gateway/src/qualification_tests.rs","sha256":"ed9eb74599074af67730d63f8c5093f6a5277bced96dffeb81317a6dd9f4c8c6"},{"path":"product/runtime/auths-gateway/src/quorum_tests.rs","sha256":"a6533de9bc2689ec632f009404daf363494e224e7b89b1c65bb2e2cd4fc6421d"},{"path":"product/runtime/auths-gateway/src/readiness.rs","sha256":"911c3f11892f94641574375e2da4c671c802738f71082f12c39832331052d43d"},{"path":"product/runtime/auths-gateway/src/recipe.rs","sha256":"efb99a8f060b5633ea8ea75f24378e701f6ba2af023faf8c7609e4de4e868637"},{"path":"product/runtime/auths-gateway/src/recipe/content.rs","sha256":"e3f8aa8cf2dd9ef5777d9d1e76331052c67be87873db0c2cd6a8f48ff940d9d6"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource.rs","sha256":"2284b6f7363b1a15dd3c91dd3043f46a5c7a9c12d997213b13751b82ae627e26"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource_tests.rs","sha256":"ab371d7d7a5dae249da924e7b94d5c863491a2af796d2febdf2dda2a191c559f"},{"path":"product/runtime/auths-gateway/src/recipe/effect_review.rs","sha256":"8f94896f0d124162d3dbd080c44582bb23ad181bb582ff5cd3d049d75fcb6d77"},{"path":"product/runtime/auths-gateway/src/recipe/lower.rs","sha256":"81118ea7ae6c2d9984b88fe9991f91283070859d56923ee4fdfe9a50eee9ccb1"},{"path":"product/runtime/auths-gateway/src/recipe/response.rs","sha256":"0b4a074eb05b98685697094ed4775c5fe588b3e34f954aa1844135fe14c94487"},{"path":"product/runtime/auths-gateway/src/recipe/review.rs","sha256":"f9f88f6d54c9a517b55ea717ce8caf5199954ff710c0d20e2bb609f6b1344a51"},{"path":"product/runtime/auths-gateway/src/recipe/runtime.rs","sha256":"6301c005c5f014eb81a7a85dfa3bd256ec15e35bf1cdf6e60815a2a18b7151a0"},{"path":"product/runtime/auths-gateway/src/recipe/source.rs","sha256":"f79e481ab0f40985819b317c540c715766611b5c8c0e5647c87849fefc10cbac"},{"path":"product/runtime/auths-gateway/src/recipe/tests.rs","sha256":"78cfa166bb02b722c92205d2a95c261ef4f3cc272150145980252cb4c51c13d1"},{"path":"product/runtime/auths-gateway/src/recipe/validate.rs","sha256":"3f613af38c5cf29901575af4f82a9daca6718b2da70bc84baa0994a71be6113b"},{"path":"product/runtime/auths-gateway/src/resource_identity.rs","sha256":"edf093bf84c0ca6c0a300adc6060fe10cf58b90e592dc3cd6ebd58e73632373d"},{"path":"product/runtime/auths-gateway/src/scenario_tests.rs","sha256":"eba5fe0268e5d8516eea79a2cf418f5c52ccdf777fa94e553cfba00f0b90865e"},{"path":"product/runtime/auths-gateway/src/separation.rs","sha256":"be9306848ca5d801767cf6aa14247c8618312ef0e202f00ce0c24c4844491061"},{"path":"product/runtime/auths-gateway/src/simulation_attestation.rs","sha256":"88705e5d45415f760f1e3c3a065c35c48f4f4065bf7b3feb7882246983814d6f"},{"path":"product/runtime/auths-gateway/src/store.rs","sha256":"5645f57bcd92190ff2c83836744ecc514558c466bb5d377b258a8d82d21504f9"},{"path":"product/runtime/auths-gateway/src/store/acquisition.rs","sha256":"c52193c7ca87f4eedc3a3523be12eb85a2825fa989d8a61b076be734eb99684e"},{"path":"product/runtime/auths-gateway/src/store/acquisition/candidate.rs","sha256":"90c133dfc48ed351d0f1fea9de236135e82297719c383f9f37404a335909d225"},{"path":"product/runtime/auths-gateway/src/store/acquisition/content.rs","sha256":"92f87e4556335af8e1c4157e60e6936ca02b271381569e14510bc2c35e697ece"},{"path":"product/runtime/auths-gateway/src/store/acquisition/recovery.rs","sha256":"cc1be15bb948608868d33a088951530834235220a8fed7d77161ff53bf416dc1"},{"path":"product/runtime/auths-gateway/src/store/capacity.rs","sha256":"d25c4a0d753317270cb352246c70642bf0659e6448d14061356e4e9ea7ed3811"},{"path":"product/runtime/auths-gateway/src/store/disclosure.rs","sha256":"3b2f68d024bb10b734bd1e48ceb4eed23d1348ec6f716be78ec27384458ff007"},{"path":"product/runtime/auths-gateway/src/store/engagement.rs","sha256":"953ef4c20f16775c10bca98b820536f347a6ce9c756934503efdb7bb77c41ff5"},{"path":"product/runtime/auths-gateway/src/store/mutation_phase_tests.rs","sha256":"163c177cf5e053126b46c7de7e429a99df789090b1127b5d3b91636efcac4365"},{"path":"product/runtime/auths-gateway/src/store_retention_tests.rs","sha256":"a9e300fde3c45999764ee05c4c6ea46cfb9ffcaa51b82337a322925ad50f4f50"},{"path":"product/runtime/auths-gateway/src/store_testkit.rs","sha256":"720bdda4464a54198348e1cac8ff75ad4882b9ce10c389befb4e9bc80340156c"},{"path":"product/runtime/auths-gateway/src/submit.rs","sha256":"a8e5e908b99d997cdf34c46c5827e04c0f502307f71497d15511bb40ef52815b"},{"path":"product/runtime/auths-gateway/src/support.rs","sha256":"d4865f95a7a2fdfe297f3f73687c05ab64a6b911814daf5f2b6c703ce58262ce"},{"path":"product/runtime/auths-gateway/src/transport.rs","sha256":"0ad16c63c19cc41d11c485625c8fc0617aede21401d16ec814401f963538bb46"},{"path":"product/runtime/auths-kernel-runtime/Cargo.toml","sha256":"926bcd0053e5edd703be8f0027ad009e2982db013c8174c1366edbf38b48087d"},{"path":"product/runtime/auths-kernel-runtime/src/lib.rs","sha256":"7108faae9ca4bc32dc093ddaf885ac8f74f3c9b8d317b7c7d0ed00d1d0ab5972"},{"path":"product/runtime/auths-lifecycle/Cargo.toml","sha256":"c5053c705f8d5554b44e432fe75287a2faf11d644e5a2552e45ad6cd94176af5"},{"path":"product/runtime/auths-lifecycle/src/codec.rs","sha256":"51c4b746749150e8bfcd8ff972b3f6c1ef40bec15583448ec1b471d9ad737dc0"},{"path":"product/runtime/auths-lifecycle/src/digest.rs","sha256":"55282cd7d8aba37713c2dcb5357c9877819edb72a30eadefb860d28d7d3a3eb7"},{"path":"product/runtime/auths-lifecycle/src/identifier.rs","sha256":"31620e8c16de68d3d2d3b84d6353c1a5b9d4151d8247f91fa389b906a8e660f1"},{"path":"product/runtime/auths-lifecycle/src/kernel.rs","sha256":"2abb8c094b36d35b364e74d78091d14c5d6f3d1eb6552cca3b5538dbd017ce23"},{"path":"product/runtime/auths-lifecycle/src/lib.rs","sha256":"afe5a345cd309b5a4f08ffba3170a6d7f16ff914892b3f2006d5208ed24ec736"},{"path":"product/runtime/auths-lifecycle/src/model.rs","sha256":"1af12bbeeeaa65ec02ddcebd7d2c8c92ec1e339fa40ae85b45ab9b01a722a4fa"},{"path":"product/runtime/auths-lifecycle/src/operation.rs","sha256":"78e6d05fcf5d7ea4f148032a3fa26fdfcab77eb346019effe927b08e0d64d732"},{"path":"product/runtime/auths-lifecycle/src/registry.rs","sha256":"53495fe6f7a77422593a41623e28716f1c140dcc1e00f87f6b0ffbfb93a5ef90"},{"path":"product/runtime/auths-lifecycle/src/sealed.rs","sha256":"2e0c03b5813c926c159598bb7890d1523825edbe57cd687d42a5dfb3374a0c19"},{"path":"product/runtime/auths-lifecycle/src/test_support.rs","sha256":"221d9a5c5ef8e1f9f8fd66927484eaf813571d0568470278ecd8fa08a5eec8cd"},{"path":"product/runtime/auths-lifecycle/src/transition.rs","sha256":"011805a28efdd541f44ccea54dd0e34a1e58f4004447ee58013703b4fb6b2822"},{"path":"product/runtime/auths-runtime/Cargo.toml","sha256":"dd29d80a8b4bb56c869f036a6c9998f6e6d1c0383ac5dc03fa42b24abe2a7ff7"},{"path":"product/runtime/auths-runtime/src/lib.rs","sha256":"132ca03d58c14905d3a822a4972f42a22a5ad33a45f2ba9ca44f3a57d810b4b0"},{"path":"product/runtime/auths-runtime/src/production.rs","sha256":"fd4eff4270c571c10fcff6cf27df28961ebf074de8a1a028f500fda1ca376820"},{"path":"product/sdk/auths-approval-quorum/Cargo.toml","sha256":"df904971fca87a24194c5816738a331588fe8f164acb5d70839a35dca5f57114"},{"path":"product/sdk/auths-approval-quorum/src/lib.rs","sha256":"72e4086088a1c0912e4e1a9e980f26a5c280bf5ab16ea39c9f0f58d5096ac2ce"},{"path":"product/sdk/auths-approval-quorum/src/remote.rs","sha256":"9fa029c7c63003adf260f8aec55160c545681c60c1bace0d934e7525862aac7b"},{"path":"product/sdk/auths-approval-quorum/src/remote_tests.rs","sha256":"8a09ce17cfee82a035a74edd535f3ebeb3db0e078784740d3997b17dbdb10197"},{"path":"product/sdk/auths-approval-quorum/src/tests.rs","sha256":"0acbf12be3e497dcc6c2d8f29c9af3b1a7ed8e11b75f6399570d4f217a785060"},{"path":"product/stores/auths-stores/Cargo.toml","sha256":"a32c4b76d17b264be5d40d24497ff237e1ed87822e8bab86229b3db93106dbe3"},{"path":"product/stores/auths-stores/src/gateway_attempt.rs","sha256":"f39dc84a238db0ebc70ad1ac495da194d2c24b5e1f9905552a9b1143278725a9"},{"path":"product/stores/auths-stores/src/lib.rs","sha256":"40c280a5ff79bfc1cafcf0bb415e775e205637c526973eb94b43a30f86d4e6fe"},{"path":"product/stores/auths-stores/src/lifecycle.rs","sha256":"4033f69a8d36de9285b87ab86af363fc85f785918ec2042d0ef1bdcb64d6f73a"}],"schema":"auths.gateway-semantic-closure/1"} \ No newline at end of file diff --git a/product/runtime/auths-gateway/src/generation_floor.rs b/product/runtime/auths-gateway/src/generation_floor.rs index 3756d5b76..1d51fa592 100644 --- a/product/runtime/auths-gateway/src/generation_floor.rs +++ b/product/runtime/auths-gateway/src/generation_floor.rs @@ -52,6 +52,8 @@ impl GenerationFloor { /// Accepts an equal or newer exact record, durably recording a newer one /// before it can authorize a lease. A missing floor refuses; a /// malformed, inaccessible, older or substituted floor fails closed. + /// An equal accepted record re-synchronizes its file and parent directory + /// before acknowledging success, including a prior lost acknowledgement. /// /// # Errors /// Returns `gateway.connection.restore-rollback`; no secret is leased. @@ -89,16 +91,14 @@ impl GenerationFloor { return Err(()); } let mut bytes = Vec::new(); - OpenOptions::new() + let file = OpenOptions::new() .read(true) .custom_flags(i32::from_ne_bytes( rustix::fs::OFlags::NOFOLLOW.bits().to_ne_bytes(), )) .open(&path) - .map_err(|_| ())? - .take(1025) - .read_to_end(&mut bytes) .map_err(|_| ())?; + (&file).take(1025).read_to_end(&mut bytes).map_err(|_| ())?; if bytes.len() > 1024 { return Err(()); } @@ -110,7 +110,7 @@ impl GenerationFloor { } if old.generation == record.generation() { return if old.record_sha256 == digest { - Ok(()) + self.synchronize_accepted(&file) } else { Err(()) }; @@ -144,6 +144,20 @@ impl GenerationFloor { Ok(()) } + #[cfg(unix)] + fn synchronize_accepted(&self, file: &File) -> Result<(), ()> { + // A replay can observe a previous replacement whose directory sync was + // never acknowledged. Its own success must establish both barriers. + crate::admin_fault::boundary("generation-floor.before-replay-sync"); + file.sync_all().map_err(|_| ())?; + crate::admin_fault::boundary("generation-floor.after-replay-file-sync"); + File::open(&self.directory) + .and_then(|directory| directory.sync_all()) + .map_err(|_| ())?; + crate::admin_fault::boundary("generation-floor.after-replay-parent-sync"); + Ok(()) + } + #[cfg(not(unix))] fn persist(&self, _record: &ConnectionRecord, _initialize: bool) -> Result<(), ()> { Err(()) diff --git a/product/runtime/auths-gateway/src/semantic_closure.rs b/product/runtime/auths-gateway/src/semantic_closure.rs index dfd694bfa..d948904ab 100644 --- a/product/runtime/auths-gateway/src/semantic_closure.rs +++ b/product/runtime/auths-gateway/src/semantic_closure.rs @@ -10,7 +10,7 @@ /// SHA-256 of the schema, a NUL byte, and `semantic-closure.json`. /// Regenerate through `semantic_closure_is_current` with `AUTHS_UPDATE_FIXTURES=1`. pub const GATEWAY_SEMANTIC_CLOSURE_SHA256: &str = - "8e0151715821dc09cbd95c6f2170a38ce9a1d9c271dfc8794e754b9f2045aeee"; + "c0988b20c1828a942478deb03c60e44bdc694a668a810c7c8788b966f6954ed8"; #[cfg(test)] mod tests { diff --git a/product/runtime/auths-gateway/tests/qualification_gate.rs b/product/runtime/auths-gateway/tests/qualification_gate.rs index b7fcc7f3d..2c74856cf 100644 --- a/product/runtime/auths-gateway/tests/qualification_gate.rs +++ b/product/runtime/auths-gateway/tests/qualification_gate.rs @@ -539,6 +539,65 @@ mod ap076_recovery { } } + #[test] + fn installation_replay_acknowledges_floor_sync_after_restart() { + let (_trace_directory, trace_root) = private_root(); + let trace_state = trace_root.join("state"); + assert!(install(&trace_root, &trace_state, &[]).status.success()); + let trace = run( + install_command(&trace_root, &trace_state, &["--resume"]) + .env("AUTHS_TEST_ADMIN_TRACE", "1"), + b"synthetic-token\n", + ); + assert!(trace.status.success(), "{}", text(&trace.stderr)); + let points = boundaries(&trace); + let replay: Vec<_> = points + .iter() + .enumerate() + .filter(|(_, point)| point.contains("generation-floor.") && point.contains("replay")) + .collect(); + for suffix in [ + "before-replay-sync", + "after-replay-file-sync", + "after-replay-parent-sync", + ] { + assert!( + replay.iter().any(|(_, point)| point.ends_with(suffix)), + "missing replay barrier: {suffix}" + ); + } + for (index, point) in replay { + let (_directory, root) = private_root(); + let state = root.join("state"); + assert!(install(&root, &state, &[]).status.success()); + let interrupted = run( + install_command(&root, &state, &["--resume"]) + .env("AUTHS_TEST_ADMIN_INTERRUPT_AT", (index + 1).to_string()), + b"synthetic-token\n", + ); + assert_eq!( + interrupted.status.code(), + Some(79), + "{point}: {}", + text(&interrupted.stderr) + ); + let resumed = install(&root, &state, &["--resume"]); + assert!( + resumed.status.success(), + "{point}: {}", + text(&resumed.stderr) + ); + let (first, facts) = report(&state); + assert!(first.status.success(), "{point}: {}", text(&first.stderr)); + let (second, restarted) = report(&state); + assert!(second.status.success()); + assert_eq!( + restarted, facts, + "acknowledged replay must survive restart: {point}" + ); + } + } + fn qualified_install(root: &Path, state: &Path, release: &TestRelease) -> QualificationTuple { let trust_root = root.join("root.json"); fs::write(&trust_root, release.pinned().canonical_bytes()).expect("root"); From 5a3ecfb2d82c2a45abd3a0ec60d6e180afe9c996 Mon Sep 17 00:00:00 2001 From: bordumb Date: Wed, 11 Nov 2026 01:38:41 +0900 Subject: [PATCH 5/5] fix(deps): update MCP model dependency and recovery evidence --- Cargo.lock | 95 ++------------ Cargo.toml | 3 +- architecture/dependency-graph.json | 4 +- .../gateway/managed-interface-unix.json | 8 ++ docs/assurance/PROOF_COVERAGE.md | 2 +- docs/plans/0076-dependency-repair.md | 9 ++ docs/plans/0076-implementation-status.md | 13 ++ formal/assurance-manifest-v1.toml | 118 +++++++++--------- formal/proof-coverage-v1.json | 4 +- .../qualification/aeneas/source-closure.json | 6 +- product/profiles/auths-profile-mcp/src/lib.rs | 38 +++++- .../auths-gateway/semantic-closure.json | 2 +- .../auths-gateway/src/semantic_closure.rs | 2 +- release/semantic-freeze-versions.toml | 12 +- release/semantic-freeze.json | 22 ++-- 15 files changed, 164 insertions(+), 174 deletions(-) create mode 100644 docs/plans/0076-dependency-repair.md diff --git a/Cargo.lock b/Cargo.lock index 66c03b456..3f71dfbcf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2944,12 +2944,6 @@ version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" -[[package]] -name = "dyn-clone" -version = "1.0.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" - [[package]] name = "ecdsa" version = "0.17.0" @@ -3079,7 +3073,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -4815,12 +4809,6 @@ version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" -[[package]] -name = "pastey" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ee67f1008b1ba2321834326597b8e186293b049a023cdef258527550b9935b4" - [[package]] name = "pem" version = "3.0.6" @@ -5258,7 +5246,7 @@ dependencies = [ "once_cell", "socket2", "tracing", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -5398,26 +5386,6 @@ dependencies = [ "bitflags", ] -[[package]] -name = "ref-cast" -version = "1.0.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216e8f773d7923bcba9ceb86a86c93cabb3903a11872fc3f138c49630e50b96d" -dependencies = [ - "ref-cast-impl", -] - -[[package]] -name = "ref-cast-impl" -version = "1.0.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c9283685feec7d69af75fb0e858d5e7378f33fe4fc699383b2916ab9273e03c" -dependencies = [ - "proc-macro2", - "quote", - "syn 3.0.3", -] - [[package]] name = "regex-automata" version = "0.4.16" @@ -5509,18 +5477,18 @@ dependencies = [ [[package]] name = "rmcp" -version = "1.8.0" +version = "3.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d1f571c72940a19d9532fe52dbea8bc9912bf1d766c2970bb824056b86f3f59" +checksum = "d24a7e92f4bcaa36b97fa93c4fa7ca8f3e669eced949345b3462dba333c7f909" dependencies = [ - "async-trait", "chrono", "futures", - "pastey", + "indexmap", + "libc", "pin-project-lite", - "schemars", "serde", "serde_json", + "sha2 0.11.0", "thiserror 2.0.19", "tokio", "tokio-util", @@ -5561,7 +5529,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -5620,7 +5588,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -5698,32 +5666,6 @@ dependencies = [ "parking_lot", ] -[[package]] -name = "schemars" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc" -dependencies = [ - "chrono", - "dyn-clone", - "ref-cast", - "schemars_derive", - "serde", - "serde_json", -] - -[[package]] -name = "schemars_derive" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d115b50f4aaeea07e79c1912f645c7513d81715d0420f8bc77a18c6260b307f" -dependencies = [ - "proc-macro2", - "quote", - "serde_derive_internals", - "syn 2.0.119", -] - [[package]] name = "scoped-tls" version = "1.0.1" @@ -5780,7 +5722,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b55fb86dfd3a2f5f76ea78310a88f96c4ea21a3031f8d212443d56123fd0521" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -5846,17 +5788,6 @@ dependencies = [ "syn 3.0.3", ] -[[package]] -name = "serde_derive_internals" -version = "0.29.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "serde_json" version = "1.0.151" @@ -6240,10 +6171,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.4.3", + "getrandom 0.3.4", "once_cell", "rustix", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -7061,7 +6992,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 8f9fed174..31ed1b18c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -266,7 +266,8 @@ rustix = { version = "1.1.4", default-features = false, features = ["fs", "net", seccompiler = "0.5.0" zeroize = { version = "1.9.0", features = ["derive"] } zip = { version = "8.2.0", default-features = false, features = ["deflate-flate2-zlib-rs"] } -rmcp = { version = "1.8.0", default-features = false, features = ["server"] } +# The MCP profile converts official model values; it does not run rmcp services. +rmcp = { version = "3.9.0", default-features = false } serde_json_canonicalizer = "0.3.2" tempfile = "3.27.0" tar = { version = "0.4.44", default-features = false } diff --git a/architecture/dependency-graph.json b/architecture/dependency-graph.json index 3619b57e2..97cb516ef 100644 --- a/architecture/dependency-graph.json +++ b/architecture/dependency-graph.json @@ -8319,9 +8319,7 @@ "target_condition": null, "optional": false, "default_features": false, - "features": [ - "server" - ] + "features": [] }, { "source": "auths-profile-mcp", diff --git a/bindings/fixtures/gateway/managed-interface-unix.json b/bindings/fixtures/gateway/managed-interface-unix.json index d562b3df0..3400ed04e 100644 --- a/bindings/fixtures/gateway/managed-interface-unix.json +++ b/bindings/fixtures/gateway/managed-interface-unix.json @@ -527,6 +527,10 @@ "command": "qualification-import", "help_accessible": true }, + { + "command": "qualification-recover", + "help_accessible": true + }, { "command": "qualification-status", "help_accessible": true @@ -543,6 +547,10 @@ "command": "recovery-record", "help_accessible": true }, + { + "command": "recovery-status", + "help_accessible": true + }, { "command": "review", "help_accessible": true diff --git a/docs/assurance/PROOF_COVERAGE.md b/docs/assurance/PROOF_COVERAGE.md index ea698ec0e..731c1cf8d 100644 --- a/docs/assurance/PROOF_COVERAGE.md +++ b/docs/assurance/PROOF_COVERAGE.md @@ -7,7 +7,7 @@ At the commit that contains this document, 110 of 1,031 decision-scope functions (10.7%) and 1,289 of 11,353 code lines (11.4%) are translated to Lean and reached from audited theorem statements, and 15 of 82 kernel check sites map only to such functions. The rest of the decision path, including the staged verifier control flow, the composition evaluator, the registry handlers, the codec, and the signature suites, is tested, not proved. - Revision: the commit that contains this document and `formal/proof-coverage-v1.json`; a release binds it in its assurance evidence. -- Measurement inputs: sha256 `4349e6cd8fce763ce6f387b1fb627aff3f81f5c9986424edb809a529c0f8e092` over the 89 files listed in `formal/proof-coverage-v1.json`. +- Measurement inputs: sha256 `d8d179e4f9d824f6630441cc32ad4b656dd35afffe7231cf8523e7023ae4812c` over the 89 files listed in `formal/proof-coverage-v1.json`. - Tool: `cargo xtask formal coverage`, version 1. - Toolchain pins: `formal/lean-toolchain` = `leanprover/lean4:v4.31.0`; `formal/translation-toolchain.lock` sha256 `0c45a8a08ac06e313d775e669749097bd3a0abfb8e3395c69416ba0238770d53`. - Role table: `formal/coverage-scope-v1.toml`, sha256 `053f0be216b0003768d422d9ccc92a692726488874284fa80615657b30a495b5`. Figures computed under a different role table are not comparable. diff --git a/docs/plans/0076-dependency-repair.md b/docs/plans/0076-dependency-repair.md new file mode 100644 index 000000000..9fbfe2a12 --- /dev/null +++ b/docs/plans/0076-dependency-repair.md @@ -0,0 +1,9 @@ +# Dependency verification repair for AP076 + +The completed-source dependency gate reported [RUSTSEC-2026-0462](https://raw.githubusercontent.com/RustSec/advisory-db/main/crates/rmcp/RUSTSEC-2026-0462.md) against rmcp 1.8.0. The advisory describes unbounded buffering in its optional Streamable HTTP clients, repaired upstream in 3.9.0 ([upstream change](https://github.com/modelcontextprotocol/rust-sdk/commit/3e0156c1eaf1573a1b878e2a8998d2fa2d0b1439)). + +The previous feature graph enabled only rmcp's server feature with defaults disabled; those HTTP clients were absent. Upgrade to the fixed release instead of adding an advisory exception. The only used upstream API is a model value, so disable the unused server feature as well. This avoids importing the server's new UUID randomness requirement into WebAssembly. No client, server or transport feature is needed by the converter. Cargo.lock updates rmcp and removes any newly unneeded resolution, retaining the other package versions. This is a direct prelaunch dependency cutover, with no legacy adapter or second protocol reader. + +The sole production import is the official CallToolRequestParams adapter in auths-profile-mcp. The new release replaces the old task parameter with continuation inputs and opaque request state. Reject the presence of metadata, input_responses or request_state, including empty values. This adapter supports immediate calls and cannot authorize task/continuation execution. Keep Auths' canonical mcp/2 action and stable error code; add exact-byte regression evidence for the existing immediate call and rejection evidence for every new control field. + +Construct architecture, source-closure, gateway closure, proof-coverage and semantic records atomically. Verify the failed dependency policy, the affected profile's tests and workspace compilation before publishing the collected repair. The completed-head CI remains acceptance authority. No qualification claim is granted by a dependency update. diff --git a/docs/plans/0076-implementation-status.md b/docs/plans/0076-implementation-status.md index f59bd6192..9ad23bc4a 100644 --- a/docs/plans/0076-implementation-status.md +++ b/docs/plans/0076-implementation-status.md @@ -70,6 +70,19 @@ matrix remains required on the completed hosted head. These results do not replace completed-head hosted evidence; acceptance remains tied to the exact completed-head checks below. + +The `4a8ba4d9` cohort passed every supporting SDK, demo, isolation, operator and +TLS PostgreSQL workflow. Its repository gate identified two further roots: the +new rmcp advisory and a managed-interface fixture still listing the old CLI. +The [dependency repair](0076-dependency-repair.md) directly upgrades the official +model dependency, removes unused server features and rejects all newly exposed +continuation fields. Dependency policy, 23 profile tests, WebAssembly compile and +workspace/all-target/all-feature Clippy pass locally. The managed-interface +constructor now records the two recovery help entries; its execution passes. +Architecture, gateway closure, proof measurement and semantic records are +regenerated atomically. The completed-head required CI remains the acceptance +boundary, including the full qualification interruption matrix. + ## Concrete evidence owners Paths in this section are relative to the repository root. Each owner is a diff --git a/formal/assurance-manifest-v1.toml b/formal/assurance-manifest-v1.toml index d49cf84ee..cb927a05f 100644 --- a/formal/assurance-manifest-v1.toml +++ b/formal/assurance-manifest-v1.toml @@ -8733,7 +8733,7 @@ sha256 = "2bb401ffca0136622cd79bb14a5a38852061649a06cc46100503870c22d300c7" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-055" @@ -8854,7 +8854,7 @@ sha256 = "2bb401ffca0136622cd79bb14a5a38852061649a06cc46100503870c22d300c7" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-056" @@ -8989,7 +8989,7 @@ sha256 = "2bb401ffca0136622cd79bb14a5a38852061649a06cc46100503870c22d300c7" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-104" @@ -10463,7 +10463,7 @@ sha256 = "ba7aea214063b8a698fbd2c9c8cd95a717bf0ec0eaef70a92844444bf7e9f22e" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-263" @@ -10559,7 +10559,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-264" @@ -10658,7 +10658,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-186" @@ -10918,7 +10918,7 @@ sha256 = "ba7aea214063b8a698fbd2c9c8cd95a717bf0ec0eaef70a92844444bf7e9f22e" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-237" @@ -11014,7 +11014,7 @@ sha256 = "ba7aea214063b8a698fbd2c9c8cd95a717bf0ec0eaef70a92844444bf7e9f22e" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-238" @@ -11113,7 +11113,7 @@ sha256 = "ba7aea214063b8a698fbd2c9c8cd95a717bf0ec0eaef70a92844444bf7e9f22e" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-175" @@ -15601,7 +15601,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-211" @@ -15696,7 +15696,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-212" @@ -15792,7 +15792,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-213" @@ -15888,7 +15888,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-214" @@ -15984,7 +15984,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-232" @@ -16083,7 +16083,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-233" @@ -16179,7 +16179,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-234" @@ -16275,7 +16275,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-235" @@ -16371,7 +16371,7 @@ sha256 = "8c6c2ab1a63280e94f4084566888d727b13a5890b9de4c75aa90322406c5c601" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-249" @@ -17038,7 +17038,7 @@ sha256 = "dfa1998e3506f06dce142222dc383116d0952155517edc399f5d94e688e22912" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-257" @@ -17137,7 +17137,7 @@ sha256 = "dfa1998e3506f06dce142222dc383116d0952155517edc399f5d94e688e22912" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-258" @@ -17236,7 +17236,7 @@ sha256 = "dfa1998e3506f06dce142222dc383116d0952155517edc399f5d94e688e22912" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-259" @@ -17332,7 +17332,7 @@ sha256 = "dfa1998e3506f06dce142222dc383116d0952155517edc399f5d94e688e22912" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-260" @@ -17431,7 +17431,7 @@ sha256 = "dfa1998e3506f06dce142222dc383116d0952155517edc399f5d94e688e22912" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-070" @@ -24429,7 +24429,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-189" @@ -24525,7 +24525,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-190" @@ -24621,7 +24621,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-191" @@ -24717,7 +24717,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-192" @@ -24812,7 +24812,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-193" @@ -24911,7 +24911,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-194" @@ -25010,7 +25010,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-195" @@ -25111,7 +25111,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-196" @@ -25215,7 +25215,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-197" @@ -25320,7 +25320,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-198" @@ -25416,7 +25416,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-199" @@ -25521,7 +25521,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-200" @@ -25616,7 +25616,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-201" @@ -25711,7 +25711,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-271" @@ -25807,7 +25807,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-272" @@ -25903,7 +25903,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-273" @@ -26002,7 +26002,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-274" @@ -26101,7 +26101,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-275" @@ -26202,7 +26202,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-276" @@ -26302,7 +26302,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-277" @@ -26401,7 +26401,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-278" @@ -26501,7 +26501,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-279" @@ -26600,7 +26600,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-280" @@ -26701,7 +26701,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-281" @@ -26801,7 +26801,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-282" @@ -26901,7 +26901,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-283" @@ -27001,7 +27001,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-284" @@ -27100,7 +27100,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-285" @@ -27202,7 +27202,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-306" @@ -27298,7 +27298,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-307" @@ -27397,7 +27397,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-308" @@ -27493,7 +27493,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-309" @@ -27592,7 +27592,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-310" @@ -27692,7 +27692,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-311" @@ -27791,7 +27791,7 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" [[claims]] claim_id = "AP-FORMAL-RICH-312" @@ -27892,4 +27892,4 @@ sha256 = "d4d36b72718a4076b7c0561abfa2edc006a1f9a4491762979f86c3dd99a71fdc" [[claims.evidence]] kind = "source-closure" artifact = "formal/qualification/aeneas/source-closure.json" -sha256 = "86d05eeeeac8b79dd70deea022bf26bbc63fdefb013b9a6334343eb2e7c4f9e8" +sha256 = "8a64a13ad7b14a2e88746f98c313d7984615e7f6d21999b07709839538056e96" diff --git a/formal/proof-coverage-v1.json b/formal/proof-coverage-v1.json index c1d333022..82cbea17d 100644 --- a/formal/proof-coverage-v1.json +++ b/formal/proof-coverage-v1.json @@ -16,9 +16,9 @@ "translation_toolchain_lock_sha256": "0c45a8a08ac06e313d775e669749097bd3a0abfb8e3395c69416ba0238770d53" }, "scope_definition_sha256": "053f0be216b0003768d422d9ccc92a692726488874284fa80615657b30a495b5", - "inputs_sha256": "4349e6cd8fce763ce6f387b1fb627aff3f81f5c9986424edb809a529c0f8e092", + "inputs_sha256": "d8d179e4f9d824f6630441cc32ad4b656dd35afffe7231cf8523e7023ae4812c", "inputs": { - "Cargo.toml": "sha256:ccc17deac72da945940a9ab4be2ce27628c056b977d19429bc1679b19fae30f3", + "Cargo.toml": "sha256:f372f4257f5687249c22073205f1f5cd84f4854155d1293aa75670b4dcd71cd2", "core/crates/auths-algebra-kernel/Cargo.toml": "sha256:0cb078915287b8c47d20fb97b6fa14135ed1c61c4985c4de2753855563c27bba", "core/crates/auths-algebra-kernel/src/generated.rs": "sha256:ae4bcbef42a408c7ffa0c6a74a42f7de177a6f14479e51d205acf830bda05960", "core/crates/auths-algebra-kernel/src/lib.rs": "sha256:6654667eeb9b353d6648954c9fd2e8838462a82ce6b2803eb49e1366892c68c6", diff --git a/formal/qualification/aeneas/source-closure.json b/formal/qualification/aeneas/source-closure.json index 35ba172ad..b27bd1654 100644 --- a/formal/qualification/aeneas/source-closure.json +++ b/formal/qualification/aeneas/source-closure.json @@ -1,6 +1,6 @@ { "schema": "auths-proof-translation-source-closure/v2", - "digest": "7e119d47480356fe8310b5a4d102d0e61de1f93527edb128c9be59e8f8ef5aba", + "digest": "569ed00719d15e6b9b3edba383f77c9ebc556cac052f34961431a42068a15d6b", "files": [ { "path": ".cargo/config.toml", @@ -8,12 +8,12 @@ }, { "path": "Cargo.lock", - "sha256": "996dad1ceffb3b2d3005701a9b50430c77ca745a8f56c0e25edca91de1a4a360", + "sha256": "111314a5b4331baf97c8571a908aef55b3cad88ba3ac78231826279fbaa782ab", "normalization": "translated-cargo-closure-v1" }, { "path": "Cargo.toml", - "sha256": "ccc17deac72da945940a9ab4be2ce27628c056b977d19429bc1679b19fae30f3" + "sha256": "f372f4257f5687249c22073205f1f5cd84f4854155d1293aa75670b4dcd71cd2" }, { "path": "core/crates/auths-algebra-kernel/Cargo.toml", diff --git a/product/profiles/auths-profile-mcp/src/lib.rs b/product/profiles/auths-profile-mcp/src/lib.rs index 70d86e812..82e05c6f9 100644 --- a/product/profiles/auths-profile-mcp/src/lib.rs +++ b/product/profiles/auths-profile-mcp/src/lib.rs @@ -79,13 +79,17 @@ impl McpToolCall { /// /// # Errors /// - /// Returns [`ProfileError::UnsupportedMcpExtension`] for task or metadata - /// extensions and a typed validation error for other invalid fields. + /// Returns [`ProfileError::UnsupportedMcpExtension`] for metadata or + /// continuation state, including empty extension payloads. This converter + /// supports immediate calls only, with no continuation or task authority. pub fn from_rmcp( service: impl Into, request: CallToolRequestParams, ) -> Result { - if request.meta.is_some() || request.task.is_some() { + if request.meta.is_some() + || request.input_responses.is_some() + || request.request_state.is_some() + { return Err(ProfileError::UnsupportedMcpExtension); } Self::new( @@ -552,7 +556,9 @@ impl fmt::Display for ProfileError { Self::NonCanonical => "MCP call is not RFC 8785 canonical JSON", Self::Canonicalization => "failed to canonicalize MCP call", Self::UnsupportedProfile => "unsupported MCP action profile", - Self::UnsupportedMcpExtension => "MCP metadata and tasks are not supported in V1", + Self::UnsupportedMcpExtension => { + "MCP metadata and continuation requests are not supported" + } Self::InvalidService => "invalid MCP service identifier", Self::InvalidToolName => "invalid MCP tool name", Self::InvalidPermission => "invalid MCP Auths permission mapping", @@ -579,9 +585,33 @@ mod tests { "mcp://reports/tools/read_report" ); let encoded = call.canonical_bytes().unwrap(); + assert_eq!(encoded, br#"{"arguments":{"name":"q3"},"name":"read_report","profile":"auths.mcp","profile_version":2,"service":"reports"}"#); assert_eq!(McpToolCall::from_canonical_bytes(&encoded).unwrap(), call); } + #[test] + fn rmcp_continuation_and_metadata_presence_cannot_become_an_immediate_call() { + for extension in [ + serde_json::json!({"_meta": {}}), + serde_json::json!({"_meta": {"io.modelcontextprotocol/tasks": {"ttl": 30000}}}), + serde_json::json!({"inputResponses": {}}), + serde_json::json!({"inputResponses": {"request-1": {"answer": "approved"}}}), + serde_json::json!({"requestState": ""}), + serde_json::json!({"requestState": "opaque-state"}), + serde_json::json!({"inputResponses": {}, "requestState": "opaque-state"}), + ] { + let mut request = extension.as_object().unwrap().clone(); + request.insert("name".to_owned(), Value::String("read_report".to_owned())); + request.insert("arguments".to_owned(), serde_json::json!({"name": "q3"})); + let request: CallToolRequestParams = + serde_json::from_value(Value::Object(request)).unwrap(); + assert_eq!( + McpToolCall::from_rmcp("reports", request), + Err(ProfileError::UnsupportedMcpExtension) + ); + } + } + #[test] fn noncanonical_json_is_rejected() { let input = br#"{ "profile":"auths.mcp","profile_version":2,"service":"reports","name":"read_report","arguments":{} }"#; diff --git a/product/runtime/auths-gateway/semantic-closure.json b/product/runtime/auths-gateway/semantic-closure.json index e8fc731a6..b0966dbaa 100644 --- a/product/runtime/auths-gateway/semantic-closure.json +++ b/product/runtime/auths-gateway/semantic-closure.json @@ -1 +1 @@ -{"files":[{"path":"Cargo.lock","sha256":"77ae14c9bbf8dc445841fa919923f17d9c7dceec704ddcaa88dafe5dd92f6c2b"},{"path":"Cargo.toml","sha256":"ccc17deac72da945940a9ab4be2ce27628c056b977d19429bc1679b19fae30f3"},{"path":"core/adapters/auths-did-keri/Cargo.toml","sha256":"86ba3e3f9a0a70d970568bfb3113b7ba7bbdd81c3eebbb52743dd574a0c0ecaa"},{"path":"core/adapters/auths-did-keri/src/lib.rs","sha256":"a75674842f8a7142004369ccd206ab43e476459293f0ff4bed4d4e659031b3e3"},{"path":"core/adapters/auths-did-key/Cargo.toml","sha256":"d5a3ae07ecde83f91eed4c3785051dd0f44eab6c891754f3309b6b40596707d7"},{"path":"core/adapters/auths-did-key/src/lib.rs","sha256":"b76a3f4528a725df53cfa9242e6e414e1d26caa48468aaed497e28b121f4497c"},{"path":"core/adapters/auths-raw-key/Cargo.toml","sha256":"f49616bc18c19e6aaa7e6a02ccebcdb9f5c1422c1278ef9869e0dbf22ceda7be"},{"path":"core/adapters/auths-raw-key/src/lib.rs","sha256":"45eec1b295dac3bed65cd79c942870b926b06b3f5d38eaebaeb6140ac69315fa"},{"path":"core/crates/auths-algebra-kernel/Cargo.toml","sha256":"0cb078915287b8c47d20fb97b6fa14135ed1c61c4985c4de2753855563c27bba"},{"path":"core/crates/auths-algebra-kernel/src/generated.rs","sha256":"ae4bcbef42a408c7ffa0c6a74a42f7de177a6f14479e51d205acf830bda05960"},{"path":"core/crates/auths-algebra-kernel/src/lib.rs","sha256":"6654667eeb9b353d6648954c9fd2e8838462a82ce6b2803eb49e1366892c68c6"},{"path":"core/crates/auths-assurance/Cargo.toml","sha256":"afcb12a97ddd09d7a264b9ecd3fcaefc865ff2c9b4539ee85b00883420ba333a"},{"path":"core/crates/auths-assurance/src/lib.rs","sha256":"0fb2ec844d674b25a9e20b1601452c89c2454901fa506adfa9bb38ef9a7fa213"},{"path":"core/crates/auths-author/Cargo.toml","sha256":"1e6f0e3bc079ddb558decf0db26b291c6e72fc47327b6df1b7650d41689b215f"},{"path":"core/crates/auths-author/src/lib.rs","sha256":"e14475f2f49715a1869d5fa6b11ff1fbb72497e39097e09f833b0bae7e5b3f2b"},{"path":"core/crates/auths-author/src/observations.rs","sha256":"dda7d6bfa6f4bd7e95a480ca283c2c0e996f69c5c15cb0c7197af328131a7066"},{"path":"core/crates/auths-authority/Cargo.toml","sha256":"4f68212938029f79ebd857b4f3038494eb85d0163d49f07e51376715cf959815"},{"path":"core/crates/auths-authority/src/lib.rs","sha256":"da88d5194de4e17449e69972c0fb042afa3c39798a8f570f30771e77c384f1eb"},{"path":"core/crates/auths-codec/Cargo.toml","sha256":"e20e51826e17814effd9d8925d18d5fbdd6c0d37bf50231e743ec2611314722c"},{"path":"core/crates/auths-codec/src/approval.rs","sha256":"fbff43bf4d57f69f8b7738a8647751cde75c5a932dee65d924a1fe9c7202f91f"},{"path":"core/crates/auths-codec/src/bounded_policy.rs","sha256":"d21f6728be2d8a04b6d94921f2b683f7e61cbb42e0ac6866f1c88a49caa534c3"},{"path":"core/crates/auths-codec/src/decode.rs","sha256":"ba2999584cdf53b1b517ecb9c7ea50d39efee17c666a9a38e2ad1ac94379f778"},{"path":"core/crates/auths-codec/src/encode.rs","sha256":"8491192053e2e15d62b4d2a491de22405b7487ead69ab6f6bca40669ce7ca5f7"},{"path":"core/crates/auths-codec/src/error.rs","sha256":"fecb0737c16deb42d859f1dc7727c698438d9ac12064fd99e0024629642c390c"},{"path":"core/crates/auths-codec/src/hash.rs","sha256":"f88e111f1dbb2cef6b7b5e9c948cb45ff92e366710c8a5f5c636138aa748479e"},{"path":"core/crates/auths-codec/src/lib.rs","sha256":"3b0e5c94c6f34f750b88a9333e1d5c8145746d845d3a23e0d2f61807cf592ea7"},{"path":"core/crates/auths-codec/src/observation.rs","sha256":"38328b0c71ff97a4196eeade8b4faa889527ff1f80bb168468bcd49082a3987e"},{"path":"core/crates/auths-composition/Cargo.toml","sha256":"331e13025eb82588b5269ed3975929eb41c823d588c49e4c296273d85c6fe80e"},{"path":"core/crates/auths-composition/src/lib.rs","sha256":"e42e3b0b6a9985b73c533aeb23799c638979aa27a9ce7d0f10a8d60340570fb1"},{"path":"core/crates/auths-model/Cargo.toml","sha256":"565c15302b0cc9270db1e28efa3862804846850ba933cc17aea8abcec4a65987"},{"path":"core/crates/auths-model/src/approval.rs","sha256":"54cf44a9ef747ec21546a4086aecfb130bc7803b0d646430e6082df51e6e305f"},{"path":"core/crates/auths-model/src/bounded.rs","sha256":"f90496abc0a06c028b4d850af6ddab7d850bfafeaa3d042f1b1246a41d8bbbc9"},{"path":"core/crates/auths-model/src/bounded_policy.rs","sha256":"306a8f049cc7cfc7635fe0e4de47eb7813eed63d3c14c3be2b51586aa4eea450"},{"path":"core/crates/auths-model/src/lib.rs","sha256":"e7cfe6bb9574c6b016aa63e70658c31e0b90903ec6479a49f4a2ceb64f5bad97"},{"path":"core/crates/auths-model/src/observation.rs","sha256":"b3ed3e3cc090afca2896a7d3de7988afccc1ee1ea0ebd91b51a8bc0f20ad8dbb"},{"path":"core/crates/auths-multikey/Cargo.toml","sha256":"858756c1197befcada06134742bffe8d58cf674cadd6c046bf710570e96efaf2"},{"path":"core/crates/auths-multikey/src/lib.rs","sha256":"f5177fffb11e40eeaaa665ba886c541fc1f24d5eacdd6983fb03dc20148733f0"},{"path":"core/crates/auths-ports/Cargo.toml","sha256":"596a9b0f5af3717c16a6d13f7054d8a106bcd9f01f5f72c2235dd2afcf0ab16c"},{"path":"core/crates/auths-ports/src/binding.rs","sha256":"a16c012d40aa4249e3ec54372b9611006d0bfe8c7dc3c741911c2194ad17736d"},{"path":"core/crates/auths-ports/src/diagnostics.rs","sha256":"aa596572503b5a65a918bb2ff38281c144ff53821ee914e9325c852828d852df"},{"path":"core/crates/auths-ports/src/lib.rs","sha256":"8da1debf86f9532df0660155d04298beb1ba3a1204508f8586e2e67cd2fb3449"},{"path":"core/crates/auths-ports/src/path.rs","sha256":"b68fc547b4e4d97a60cbbc1cc1939fc6b34a8233b81f840bd396914a707e3ea1"},{"path":"core/crates/auths-raw-key-core/Cargo.toml","sha256":"98c0bc8527a537512e43a74dd6ba9658c6f0cdc16610cf938e3f9b43785d836d"},{"path":"core/crates/auths-raw-key-core/src/lib.rs","sha256":"98c0500c41697aae28708ad0bf970b9a97583d96a3d2c18d23e7fa351e0f7d12"},{"path":"core/crates/auths-registries/Cargo.toml","sha256":"590e49e58b0622d9d6274fea46796dcdb07dec9550eff295cce6a6427ffa51e2"},{"path":"core/crates/auths-registries/src/lib.rs","sha256":"450d3886d85ee333b7e046317fb5b47cde62483d5f3e41d46265e2caf4c373ec"},{"path":"core/crates/auths-registries/src/template.rs","sha256":"1224039dd2b3ce6fa8357613d8cafbae40400493da7176da202b9ade62fa05e4"},{"path":"core/crates/auths-signature-core/Cargo.toml","sha256":"6bee2230eb30af1be0bd5c2d57bd3e1903497a70028d47290d4ac6e9e0e8bca0"},{"path":"core/crates/auths-signature-core/src/lib.rs","sha256":"db97ecb45a82faa6f96a92738d3af1da92d1ba2f241f2c29114f4b8107dc4ab0"},{"path":"core/crates/auths-signature/Cargo.toml","sha256":"7f7b5682466ba439d8c59579022cb61068cad9fb4bd2d73e1cc21327c902b450"},{"path":"core/crates/auths-signature/src/lib.rs","sha256":"b3d9ac4cc3ba0797b9e1c09f2d6ac05089b25dac4e285a5af28c0165b33d925b"},{"path":"core/crates/auths-verifier/Cargo.toml","sha256":"c43358e06a33324b41a8b93e5cc7279c55f7d21f1f6cfaa539a3fc7b4c27a38f"},{"path":"core/crates/auths-verifier/src/approval.rs","sha256":"c3cae6a49e169051eb555bb092b1069a4d422516d6a2114623a89e5f31ff923f"},{"path":"core/crates/auths-verifier/src/causal.rs","sha256":"9635230f33b13a263573d319ac8a1976addbcc07677514a43e3c7bf28dc04587"},{"path":"core/crates/auths-verifier/src/lib.rs","sha256":"f22dec38dfa47ced8da4f605390da8453273bee1da010f57fd1fdfcb10e0b389"},{"path":"core/crates/auths-verifier/src/observation.rs","sha256":"0bb07f06a0f9524c88427df1c972b1de8ba038a9eeeb15d3134c25125ae84b1e"},{"path":"core/crates/auths-verifier/src/trace.rs","sha256":"2213d72023a1d9e0413a2cf2c51c3dad9e04775d86033a0caaa9d29a8f0036f8"},{"path":"exchange/crates/auths-proof-exchange-model/Cargo.toml","sha256":"34b2db64f93a288e942b5a3918d28cdcbef906e0dc9074ce848018d3d5f7a1fa"},{"path":"exchange/crates/auths-proof-exchange-model/src/lib.rs","sha256":"49fac5aff2339d3a57c41cb8bb2a82852538e8f77ecc4b157c88e264ff31fb55"},{"path":"exchange/crates/auths-proof-exchange-port/Cargo.toml","sha256":"7ff660f1b7579dc570c791090aeb450404fbbf44c92781e289f5ccdde746d739"},{"path":"exchange/crates/auths-proof-exchange-port/src/lib.rs","sha256":"b408fb40c6432edc1facb3d8b3e9433a033f8dc73fe2e0ba5a88c972ca675021"},{"path":"product/config/auths-config/Cargo.toml","sha256":"e4b568ab9f6d84f7d7e6d66443fe825f360db9c27bc7c31d6ddc0647ba3ab304"},{"path":"product/config/auths-config/src/lib.rs","sha256":"fecf00ea65cef9018fda9af2063326d7065b869266d0d9e73a4f06816f1102cc"},{"path":"product/errors/auths-errors/Cargo.toml","sha256":"3b3a199b6460ba75bda84475bb5accd35e1485448a3981038db85bf4772dd350"},{"path":"product/errors/auths-errors/src/lib.rs","sha256":"7feeb9069fa4003f94f1f07c1c94619cf1c883e0dbaaf2187f04d0f742264bdd"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/Cargo.toml","sha256":"716f1f2a117d6d69d8effe9ee9057e24ba3502f20af6a602b06facb638cdabed"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/api.rs","sha256":"9ea61dd7ddd93282b073b98e453e6b75b26dc49689c04e9782435d06a3a09e48"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/clock.rs","sha256":"73f0a6e0f5903883329fa6683f5888288f759512ac69e5c87efd2b6b87f7d79f"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/http.rs","sha256":"14c1fce14e24c984b2a275563a29b6326fb08367922b6e8d37ba38b9cb81aa2b"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/identity.rs","sha256":"186de11230c8b33375951c4368609f8976bf9795f171af3fd7fac26207a94361"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/lib.rs","sha256":"0b4617d044f5254a5ab22f5a2578f91cc025206a8c1845be39c1c56dcdf7a5df"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/names.rs","sha256":"41bb23572d6002e23ee103d6fe70ecd68764861c6f2e48a1c53af998270a4afa"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/sigv4.rs","sha256":"39fed883f4802e68d3b41a68fea0aba0737810996b33d13577de70faba004c29"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/store.rs","sha256":"fc60ee9c49b2f4f063c449b4c78100c5c4872779e94ca168f796603b380ef6e4"},{"path":"product/integrations/auths-custody/Cargo.toml","sha256":"1e14034185ad1ec24a977fd5f41d0abee219606245c046ce2a82287fadef448b"},{"path":"product/integrations/auths-custody/src/conformance.rs","sha256":"13a2b28bba4a7af5b00bb96d16ecf027d35d5487b314e48a666fb8ed09c2f2e9"},{"path":"product/integrations/auths-custody/src/key.rs","sha256":"c3b1468b8538421a796aeb65a0cd94b942e3788e78741f20dde07b4838e0c3da"},{"path":"product/integrations/auths-custody/src/lib.rs","sha256":"836ad8044440fd250457a46f5c4a980339534a8af6a4daac2643560050b62d39"},{"path":"product/operations/auths-operations/Cargo.toml","sha256":"73dde1e914ba5e1386f8d49c0d730423cc72ae77ec44c6554a6a75cc8e8922b1"},{"path":"product/operations/auths-operations/src/explanation.rs","sha256":"b4a39bcbd5712cb9e735ee7deeb281f3fa6af5ddca973735bf3d87dce427ef11"},{"path":"product/operations/auths-operations/src/lib.rs","sha256":"3f401a56555113b98f57bca172a2660eaecedf76247b83a3fdbb089c133a29cd"},{"path":"product/operations/auths-operations/src/render/json.rs","sha256":"2ae042639960afee123730e945d373bc5dda1d2b3af20ae16c939a7e99b9e418"},{"path":"product/operations/auths-operations/src/render/mod.rs","sha256":"b3b7f6fe473f49227ace5a68bfc3d8dc14b5db8dd9888fd9e207070337b1b8bf"},{"path":"product/operations/auths-operations/src/render/text.rs","sha256":"f216cf3bdb00e264523271b16e7059535ac6b1aabf271cebd7935af155e4bfec"},{"path":"product/policy/auths-bounded-policy/Cargo.toml","sha256":"babd5d200923137ead71d8c2528f847cea323ce98da942a1320b054436612c47"},{"path":"product/policy/auths-bounded-policy/src/arithmetic.rs","sha256":"75e43c5d4eab8d1f71c1daf53839f5f9fe45a400afc1f63a30c6f55ce3632627"},{"path":"product/policy/auths-bounded-policy/src/commitment.rs","sha256":"c5706f2d583454e1a7f570f7ada138d4d864bef0205dfae7c1296774f396bb3f"},{"path":"product/policy/auths-bounded-policy/src/eligibility.rs","sha256":"c9acdfb793074e687fc36efad506be27dbd99ffbf40387bc66c8de39ef238432"},{"path":"product/policy/auths-bounded-policy/src/identifier.rs","sha256":"0006a32bae9eb16c4178cf797df418d2b0a781f2bc6474b741dc1a908141831c"},{"path":"product/policy/auths-bounded-policy/src/kernel.rs","sha256":"99187c28b161ac70bee1afed60711f7f645adb4d1671a01863f9849b369811d5"},{"path":"product/policy/auths-bounded-policy/src/lib.rs","sha256":"76a18638b810e62e594d6e951504679305ce21841388e0c282ad51cd7841b91c"},{"path":"product/policy/auths-bounded-policy/src/receipt.rs","sha256":"3b9eae82f349956d3e7f29b57b254bff5ce67cc703e6cf43445ce2827676d1ad"},{"path":"product/policy/auths-bounded-policy/src/registry.rs","sha256":"4e251ea5833559841f8ee0bd9b66c0c01c39fa5e3a21720a19c4e8adbfcb99d0"},{"path":"product/profiles/auths-profile-api/Cargo.toml","sha256":"7ae85761f58625b5d678f961fd052eebf3e000ef565c7312e3ac857763c0017f"},{"path":"product/profiles/auths-profile-api/src/lib.rs","sha256":"a194b82b20bf8aa864c2334ef6c6aec30b2154ded972862252d5dcefa488ab95"},{"path":"product/profiles/auths-profile-mcp/Cargo.toml","sha256":"db264fc25242f7b7e4133cbe5782545b3107b406c87168ae072683cfb59eac66"},{"path":"product/profiles/auths-profile-mcp/src/arguments.rs","sha256":"a5de696586d507e2aee4a49fee99ef1ef4c51a2e46603f8838f1af6d9009833f"},{"path":"product/profiles/auths-profile-mcp/src/lib.rs","sha256":"d0f8b733a09ef8408336cdebc8948d6a5861012ce6878598b11be7084dfd4280"},{"path":"product/profiles/auths-profile-mcp/src/session.rs","sha256":"166c281fa66333388e4760d6098dad02d3359e1d5de4b8f93312c014f97abb03"},{"path":"product/qualification/auths-recipe-qualification/Cargo.toml","sha256":"b7b15b30b9a3d96d4f089d514266d3a892de6608d30707aa44be31cca89ca9fe"},{"path":"product/qualification/auths-recipe-qualification/src/canonical.rs","sha256":"30a9b50777f0dcb4b606abfee2467d5a975d9f6ad941ab6c13ca3df5b359f667"},{"path":"product/qualification/auths-recipe-qualification/src/closure.rs","sha256":"0ad6aee9bd981e2863fa725f209ec84031db2ff12f4c7ac3aaf5120f0bb86039"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning.rs","sha256":"db135c55e4e3079a73253ebae275536523eb36b545d1c152b4d7dce3c6b76828"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning/tests.rs","sha256":"4dde3736d206099b1bea4c14e0092c6c1287d1af9065958777d7c54331dd8686"},{"path":"product/qualification/auths-recipe-qualification/src/error.rs","sha256":"52d5cf720a1e4579008fdda90a3ac2c31f0b8db57985f121f65e54b4da2b7dd1"},{"path":"product/qualification/auths-recipe-qualification/src/evidence.rs","sha256":"ba45a7409d67a8af26ab811af306412014557477a101ab2a8eb0faf8f2bd4b91"},{"path":"product/qualification/auths-recipe-qualification/src/ids.rs","sha256":"e81a906d571497ab2da753e1532d4443706410e0b75fdd59a7d2d788c7aec403"},{"path":"product/qualification/auths-recipe-qualification/src/launch.rs","sha256":"805154ce931e3977f2a2a2c62909d90f7c0a22dc167bf4f1554dcf19316ffef8"},{"path":"product/qualification/auths-recipe-qualification/src/lib.rs","sha256":"0e24b0f81191df0d078c7f4d73ced784ba9472372bfcdff3c7d0e2fb1687b323"},{"path":"product/qualification/auths-recipe-qualification/src/model.rs","sha256":"3484eb0ec287b23d4682ade7b1b0f8d1335985b3fb180f06fc28716076957d5f"},{"path":"product/qualification/auths-recipe-qualification/src/release.rs","sha256":"ec478e53f70052e566aac7e15be2f9e1b1cd46837ac6990ae955fa864d311586"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/mod.rs","sha256":"1e4e5edc12d921e6b95475b3c1850f58f622c088d24a1fc9398d34019fb2f288"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/schemas.rs","sha256":"c59feec2805621f341a90f81fc005e2c12f7a70f9d264fdeacccb2be4fe1c046"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/verification.rs","sha256":"bdf5746fed4d10a7f577f7878619a917d29aa8b7d522f00d9f774e53eff4c8c1"},{"path":"product/qualification/auths-recipe-qualification/src/verify.rs","sha256":"646ff0e52e915174ad183768706e35e5ce2118b83475455310b930a77a7877f6"},{"path":"product/receipts/auths-receipts/Cargo.toml","sha256":"6001fa1375899953aafcb07c23a6da0c8f57ea7ec08bb9c950b12a60a8cc6f0f"},{"path":"product/receipts/auths-receipts/src/disclosure.rs","sha256":"ba9ed439be0a320c8a01f5b6e9b51361c1a37e076947490d8e4a484ba6bb119c"},{"path":"product/receipts/auths-receipts/src/lib.rs","sha256":"547a57c4160256719cafb7d0ab972d9fc80b0da14fbbce4148c70c414070ff36"},{"path":"product/runtime/auths-connections/Cargo.toml","sha256":"babeb6e1dda3dfb66291713ce1e43dce5c349833d0b50ea4dccbf986030026b2"},{"path":"product/runtime/auths-connections/src/credential.rs","sha256":"22bc7de6bcab7cebebb64edf6423d59b6493b78dca65b9da62749e3171217762"},{"path":"product/runtime/auths-connections/src/kernel.rs","sha256":"a456af19526ef7b19278551fd8d97606b6e7aa5a195e70bdd85d1e0786090ce8"},{"path":"product/runtime/auths-connections/src/lib.rs","sha256":"79209249a0acba0e854d9937255ea0e30a9a6f8e1c2baad77ab83646d392de22"},{"path":"product/runtime/auths-connections/src/model.rs","sha256":"de34a089cac9702acb889b7602b3e4732306c9e61029ec892582b7e02b73fc77"},{"path":"product/runtime/auths-connections/src/registry.rs","sha256":"e57640e003e72ad3235c567c2bb944a262bd64e673f023b62ea091094cc7e946"},{"path":"product/runtime/auths-gateway-kernel/Cargo.toml","sha256":"34f864e67656af4ac7e5c7a347a23f01fc8ab31365b8e23c0ef474483b14a183"},{"path":"product/runtime/auths-gateway-kernel/src/construct.rs","sha256":"e9d65744bae273d65face4285e5d2da75c06a92ab48f7b8333d496604e31c63c"},{"path":"product/runtime/auths-gateway-kernel/src/lib.rs","sha256":"cfda6f8453426564c085475f183b6f790b438768a19668f1b65d33ba59dc8632"},{"path":"product/runtime/auths-gateway-kernel/src/order.rs","sha256":"efc2f2eef68232fe3082e1607e6f1e87d4a19cbb2f492bdc6e71916a2461b6a8"},{"path":"product/runtime/auths-gateway-kernel/src/outcome.rs","sha256":"ac0245699457c802a70cdd6f52a01dcb4777c487b58ed7dc9cfc99345465ccaa"},{"path":"product/runtime/auths-gateway-kernel/src/ratio.rs","sha256":"7ace22264812e6fc1ef3a62afee402cf43494bb71ae0d3de219ad1b39d690bcb"},{"path":"product/runtime/auths-gateway-kernel/src/recovery.rs","sha256":"9f46dcd1685ab6e4d1ba04a3fc286a9f3afee8fb47829be1fbc670a7926a2dc6"},{"path":"product/runtime/auths-gateway-kernel/src/transition.rs","sha256":"9c9c292397aa640c2f002ffb5befe110f86d0aa246f3ffe99440718e5174af3c"},{"path":"product/runtime/auths-gateway/Cargo.toml","sha256":"959b1a58a110315f86115966f85d6992afd91be28d741fee7354207d4bd6f258"},{"path":"product/runtime/auths-gateway/src/admin.rs","sha256":"5d0f1b583a4cacdcbc62521ed1a5730ed6b57d42bf826708a0c5e591272c4a12"},{"path":"product/runtime/auths-gateway/src/admin_boundary_tests.rs","sha256":"7ef23fdaf512cfa6315aed72577ccf0c4d04725f5b4fa4b5f0482e27e5e7ba1c"},{"path":"product/runtime/auths-gateway/src/admin_fault.rs","sha256":"4a66386d91daffeeac4080c16a0d4e724adc09220ba056c0c4267e5f4fc05268"},{"path":"product/runtime/auths-gateway/src/app.rs","sha256":"acd1deab7a8524c97d4a76ec9f7079b3afc035d707e0480a0cbdf4d084972099"},{"path":"product/runtime/auths-gateway/src/app/content.rs","sha256":"4c01001659b1a563dfd4abe7e002e3f85609ffef511a0e39f967af944ea01300"},{"path":"product/runtime/auths-gateway/src/app/content_tests.rs","sha256":"6a239a15732dd279abb35a72721eb2034bf5aac79439edc7c34aa8d4fdfd5212"},{"path":"product/runtime/auths-gateway/src/app/participant.rs","sha256":"1d76d37ba8f7a4657ff013ad845bd90ab82636ade7e7a798937db05ee52a9424"},{"path":"product/runtime/auths-gateway/src/audit.rs","sha256":"aebb55cfe1305c6de26fda03989e138a6731ec57d1cfebf4114886bfb6b93d26"},{"path":"product/runtime/auths-gateway/src/audit_export.rs","sha256":"6cc3d70ef4cc64026de4ec4e094979a95fee6fadb86707b0e09515ad754632be"},{"path":"product/runtime/auths-gateway/src/audit_tests.rs","sha256":"8cf1ab4cd2789973791805b07216d423690645aa4f28307f87dbcb803bd2ad22"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway-harness.rs","sha256":"12b0c24d36b2e6a3be392d3c081a783b355fdd67dc5b54bacc0410e803116b8c"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway.rs","sha256":"6ae544618bfb0c0b938fb632e054c36e988c6eb278d62775405937c6a5d6ffa6"},{"path":"product/runtime/auths-gateway/src/binding.rs","sha256":"663b0ce878319511aa7d05722ab4ab2fa9be18817884ffb2ee9f131ff1e382d1"},{"path":"product/runtime/auths-gateway/src/bounds.rs","sha256":"d0658585765d4d8f9865f65d23d850ec196eeca23fe65a66a55f1f1bc9b2c9b9"},{"path":"product/runtime/auths-gateway/src/bounds_aggregate_tests.rs","sha256":"ab34f227b7c8692ba1da88ccb32bb3687a66adf8353d8282fae905d4a88eb612"},{"path":"product/runtime/auths-gateway/src/bounds_tests.rs","sha256":"80b116ccf65bda2d7f2fbcd3b26fcf82b0a4bd3dce3a5df7842828cb271d7741"},{"path":"product/runtime/auths-gateway/src/candidate_runtime.rs","sha256":"ebe3d2da3a340c990b6fdcaac8c4418a7c646c0148c8222c19d925b21dbc7da8"},{"path":"product/runtime/auths-gateway/src/commissioning_budget.rs","sha256":"f5c38e9e07df3cb99b6bd664f33eae414b9f3dfef4932d69c19a9b174906dc1b"},{"path":"product/runtime/auths-gateway/src/commissioning_budget/tests.rs","sha256":"da104a1643c37515deec6397bca6db2054f2c9158ec3d230a1b1ec9c7d0f659f"},{"path":"product/runtime/auths-gateway/src/commissioning_floor.rs","sha256":"7fa6991c5ccd5ae1403be84b3da390323fab09f36e15ac01fd7a38ea350c6fdb"},{"path":"product/runtime/auths-gateway/src/commissioning_floor/tests.rs","sha256":"6b663d6e556adc0b455b81845bc4394d82c6c4de0c5f43e1310f3ddc6e4e40f7"},{"path":"product/runtime/auths-gateway/src/commissioning_session.rs","sha256":"919fe57fafa563f770402be66b4e32f1f0d652f09fe1276a62e41b50d66f8696"},{"path":"product/runtime/auths-gateway/src/commissioning_session/tests.rs","sha256":"48d44a5fccea737930f24c49a397428edc439525330c83a868b5113a48f122ab"},{"path":"product/runtime/auths-gateway/src/configuration.rs","sha256":"e5597c39b1acbe50cad20c02722feb38d382294026a0a7a4097e6d97b68eaafb"},{"path":"product/runtime/auths-gateway/src/configuration/engagement.rs","sha256":"67bdd2c792b9dfb1168020a10799af043143461f020b74b18d20fd4089f9b40c"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/audit.rs","sha256":"ee35149f8f348ff2a20ef7185ae0bc5a7b912ad5746510c0714b235765b8b1a4"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/blob.rs","sha256":"12af8071e9cd21c04cf9b55d3cb5e8eb2f33ff888e03e06e114222feb4abf752"},{"path":"product/runtime/auths-gateway/src/connection.rs","sha256":"54f5d53c78f836bf8ce1236d449b3f4f1daa95312102d5583ef69cb4e57b513b"},{"path":"product/runtime/auths-gateway/src/control_namespace.rs","sha256":"0333baed635d34edb066d2b9cb4c6ea3f40faad4be8c75f54c989570515dddee"},{"path":"product/runtime/auths-gateway/src/credential_journal.rs","sha256":"8241dbc7a90054457c7c99fec3b35a433f671682b877f01f8429b8618a6d8e20"},{"path":"product/runtime/auths-gateway/src/disclosure_transport.rs","sha256":"614c975a4b9810f40092a2f9cdd022308b75e649167dbc486c9907f7570d8d45"},{"path":"product/runtime/auths-gateway/src/echo_verify.rs","sha256":"6d453051665f823abd7354d5c50031d9524cf47d6092d2f09080ae814e3b9575"},{"path":"product/runtime/auths-gateway/src/effect.rs","sha256":"5e1d5b8c28df616917d442b023e5161a2e3527ef7b8fb63d736728542c6caa2a"},{"path":"product/runtime/auths-gateway/src/effect/acquisition.rs","sha256":"0afd6aec490e7995a440786be6ac69cb5461201a4b4ec303e8b5a6c12ed97202"},{"path":"product/runtime/auths-gateway/src/effect/authority.rs","sha256":"2490494c3a1636decbfd04b2dbac71c47e49be26b61cc6cf41319a13450bb4a0"},{"path":"product/runtime/auths-gateway/src/effect/candidate.rs","sha256":"d1efc3ec7e1fa642af26f4e4c6a25924c60821dc2e96bd0b458d9292d3866678"},{"path":"product/runtime/auths-gateway/src/effect/candidate/proposal.rs","sha256":"d78574109f41300edfcd7ad38155439ffc3adb9a799554d75d5484738ef174f1"},{"path":"product/runtime/auths-gateway/src/effect/capacity.rs","sha256":"300fa32e09dab7c679b8c0a69bb4e3c1e924ed2ce1416090a2aa477a7eec9f0f"},{"path":"product/runtime/auths-gateway/src/effect/content.rs","sha256":"9f3b53c8c2ad5cafa183ed1229ee03f2cd8a610009b07da560372bd0fbae1673"},{"path":"product/runtime/auths-gateway/src/effect/disclosure.rs","sha256":"0acb5ac805e91c952c8f0028db03ae607c3753cbd08a76035f2d1b4fa6fe6244"},{"path":"product/runtime/auths-gateway/src/effect/disclosure_auth.rs","sha256":"32fa6f040ae46f3323df6e153c6ae810eccf32d22b9945e5565e7189dc877eac"},{"path":"product/runtime/auths-gateway/src/effect/engagement.rs","sha256":"5a36ff3f4460bf026a7e99fadc713672fbeb05dbc6f6393d10cb06440e779e54"},{"path":"product/runtime/auths-gateway/src/effect/lineage.rs","sha256":"0b3ddeb56377b69264bbd4738c624639a8dcad91b4df3328f907db439747faaf"},{"path":"product/runtime/auths-gateway/src/effect/prerequisite.rs","sha256":"e79596a4cbe47e307e3a3056c52582b1cd01a43c4c2d69479ee03df1f62af3b0"},{"path":"product/runtime/auths-gateway/src/effect/release.rs","sha256":"84e2572f76216e02131e9bbcc850f4b3572473eac6dd71baa144e63a2270cff7"},{"path":"product/runtime/auths-gateway/src/effect_binding_boundary_tests.rs","sha256":"83d8e0edf524a2be0d2c494e4b9897cab0ddcf61184828d716bae10cbaf904b4"},{"path":"product/runtime/auths-gateway/src/effect_candidate_staging_tests.rs","sha256":"7db0f4fd86cf119a6b4b0702267c91debdf11a73fc93105ce7e98d0c6e4cd8d9"},{"path":"product/runtime/auths-gateway/src/effect_candidate_tests.rs","sha256":"e93c08c2eca2abdc58f7db9fbf19e775e4f709225b04789832e2b8f5a81c8948"},{"path":"product/runtime/auths-gateway/src/effect_content_tests.rs","sha256":"63eb623413167bf9ff34161b6bf4f54f68709af9fb1d1e7a419a07f63ce04409"},{"path":"product/runtime/auths-gateway/src/effect_created_resource_tests.rs","sha256":"98f7a9de7824dbf3e2361b3006ef823002b391d557969442edb371266f7673db"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_delivery_tests.rs","sha256":"9586b84b045561edbcf8276cd9769b412240f04248e240cd29a5068d4cd03a00"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_journal_tests.rs","sha256":"19f349a090f07288cfafe24aaffad49f28fe163e59870520aac6bb899f673a99"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_tests.rs","sha256":"5389b03d7d0cd5b23abaa3c396450fa4018102c942b27af35aef81e65b9bb841"},{"path":"product/runtime/auths-gateway/src/effect_engagement_admission_tests.rs","sha256":"46a34a83cfecb180c6f0937e83b8b14009afb4ce315864dfb9b3137759cb9959"},{"path":"product/runtime/auths-gateway/src/effect_engagement_control_tests.rs","sha256":"71e2e965b71b52d2fb877e22e5d4951d1d4072adede4b60dc3996197ac554395"},{"path":"product/runtime/auths-gateway/src/effect_engagement_delivery_tests.rs","sha256":"14b241916d9c3fe8141a38e93c62f8b8a039f2780ad3cd63282e707feaa4d1b3"},{"path":"product/runtime/auths-gateway/src/effect_engagement_information_tests.rs","sha256":"27735a9e1237a063c2a525cdcd93e8102164d549dc72509767a977ab4abd8491"},{"path":"product/runtime/auths-gateway/src/effect_engagement_prerequisite_tests.rs","sha256":"0566288b7f77f5beda44c8374f31a5053e02b44ccbe92781618e9fd90b1a6800"},{"path":"product/runtime/auths-gateway/src/effect_engagement_tests.rs","sha256":"2b78b315c7539d4119ce5b20164d6e4855d9b403b76eaa5b72fa3b72959a7621"},{"path":"product/runtime/auths-gateway/src/effect_instance_recovery_tests.rs","sha256":"eee64773b6373e1bd7185c07c5c4ffeaacafb907f4d0aa17b89ba1556beec5e4"},{"path":"product/runtime/auths-gateway/src/effect_native_tests.rs","sha256":"fd9cd960dfb02f68eef479ed2a95d65b79882c20f8a737c9a74d6a4222af407b"},{"path":"product/runtime/auths-gateway/src/effect_prerequisite_tests.rs","sha256":"51efa528051919d0ca67643cac3d0e06afac534706b802adb18311e2bfa222ff"},{"path":"product/runtime/auths-gateway/src/effect_read_budget_tests.rs","sha256":"9bf8491f0da471e07b5d96dbfdbdf5fbe5a47fec11700dca55a6ac05a1ebb68b"},{"path":"product/runtime/auths-gateway/src/effect_recovery_prerequisite_tests.rs","sha256":"e6235b83ac159d9446d79e6e072dd4aa9d0447a68055be3b32de6450a2300699"},{"path":"product/runtime/auths-gateway/src/effect_review_approval_tests.rs","sha256":"6e5c5a72ec93255d7d8f219ae8cf4401431644ff03d624164645a1e9d2b2e87e"},{"path":"product/runtime/auths-gateway/src/engine.rs","sha256":"113390cb4ef92ef337b5f82b7c77c54a428ec492756f90100b74002487dc8c7f"},{"path":"product/runtime/auths-gateway/src/entry.rs","sha256":"6fd17c142c0001b9cda33c33b0e18f4d1d40866cde8a66b3f57d46f971c1ead9"},{"path":"product/runtime/auths-gateway/src/entry_tests.rs","sha256":"86dcfc4918394052d18fc5509dcc0e740a064a97b084d1c2c9f23eddedaa6db4"},{"path":"product/runtime/auths-gateway/src/execution_witness.rs","sha256":"e8b1a8e41d5e3fa309760067849d390ef065feeb46701a83391832645a2f000c"},{"path":"product/runtime/auths-gateway/src/fuzzing.rs","sha256":"2dcf0a15e407a9180c7fecb7eecfaf4674698aa997b1f5de9a3649a49baebd1b"},{"path":"product/runtime/auths-gateway/src/generation_floor.rs","sha256":"09ed98d9533c7a4355890943ee6ef26a9c20da775b4cb77fdb25a723f6a16e54"},{"path":"product/runtime/auths-gateway/src/harness.rs","sha256":"5e296231c98e6429f3d805150fab9ce2d6a5789d41dd83f562b677314374567b"},{"path":"product/runtime/auths-gateway/src/harness/authoring.rs","sha256":"de511d89bf6bb72e443558caf0c4835dad2908b5fe5c13a3a02483e85dd7d354"},{"path":"product/runtime/auths-gateway/src/lib.rs","sha256":"a39306228bb0ee5e7c50fb83149756a15fa761d52bb6807942f1ec77db2049d6"},{"path":"product/runtime/auths-gateway/src/listener.rs","sha256":"aa08239bcbc1fcb55e8a212fbdf6a84f12985b0d436dcb51dc58b06e59e435f2"},{"path":"product/runtime/auths-gateway/src/native_budget_tests.rs","sha256":"d6de965afc7f794e611545744fa515f833abf315157519ed8390c195a7dac8c0"},{"path":"product/runtime/auths-gateway/src/native_cost_store.rs","sha256":"d1acdd7e4076e3a32f312dce74a01e5dcbccdb1f8912758524b7841d61377eed"},{"path":"product/runtime/auths-gateway/src/native_cost_tests.rs","sha256":"45bcb4e9174d4c23495ac734a42b5f8b7735c14d4599cd191d50f6547aaf374c"},{"path":"product/runtime/auths-gateway/src/native_crash_tests.rs","sha256":"46998a973388884d902a6b07e12fa342fb08ea77363a43a41b0b0a7a5ccbcde9"},{"path":"product/runtime/auths-gateway/src/native_cross_recipe_tests.rs","sha256":"e2dbde7afba1b3da5df3a7a44821f413ab7861a5417ad16f8b912f390128d115"},{"path":"product/runtime/auths-gateway/src/native_dependency_tests.rs","sha256":"0e15d059140ad485b2548f4234b94424d62b5563a8dded42224329a76b101f37"},{"path":"product/runtime/auths-gateway/src/native_differential_tests.rs","sha256":"17fc0803fe5e7f78b416f8f68e7c9066baf1bab69bdf0b51c44fd19e3d719da8"},{"path":"product/runtime/auths-gateway/src/native_disclosure_budget_tests.rs","sha256":"bb2a6f76f06a6d42d69698f7d22d0b4aeb4dc857e442042d65582097567009fb"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_testkit.rs","sha256":"4beb946a288e4fe082cc0917f4200b18b8154eff98eca1ea3d0c830ffdc3625d"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_tests.rs","sha256":"425e423f04d92794656d4da915125e4d0a8be25ec85fb88244ee0c27ece8ec44"},{"path":"product/runtime/auths-gateway/src/native_disclosure_entry_tests.rs","sha256":"50f5dc35a9a8ef462b8833296cb313b2acec81d544b7e317c7f188741d0786db"},{"path":"product/runtime/auths-gateway/src/native_disclosure_file_fault_tests.rs","sha256":"72d67bb0d3fd77fb93c4f5d3ab0afa5a939742b5a47acf006a511d99d72cee9f"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_batch_tests.rs","sha256":"a8b8a90210d9f7f0012e40701c09c524527f93f9e56933d89b58a38464cba702"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_commit_tests.rs","sha256":"1e14503140805c12883e1c288b75029aa7fd9ebe8c5d490a4c503161c4a27a4b"},{"path":"product/runtime/auths-gateway/src/native_epoch_tests.rs","sha256":"e37d34e699baa2b84578bd4c378975dbdceb407de51861c2217afdcf7b48e3b9"},{"path":"product/runtime/auths-gateway/src/native_federation_tests.rs","sha256":"bf2c6313f70c4b7f51f9ad05351048be3625d9432f3c725e84b046936304f540"},{"path":"product/runtime/auths-gateway/src/native_file_fault_tests.rs","sha256":"e1077a0059aa69918fb7e0a3481edd19af45a7343ce876583fbdbc96c4291b21"},{"path":"product/runtime/auths-gateway/src/native_generated_history_tests.rs","sha256":"5a5e308c1e4bc32cac31badf91e9453bed62e3e90f1b6585fc522bb4038990f9"},{"path":"product/runtime/auths-gateway/src/native_guarded_mutation_crash_tests.rs","sha256":"5329f72e7f22399a17627b058c2035c243e1b6ba60c9dfcd1c834258244cc440"},{"path":"product/runtime/auths-gateway/src/native_information_journal_tests.rs","sha256":"067bc51f7011971e8c5d021430fbfe323e5cc3cd7cde41c546cc92fad1f2cbc2"},{"path":"product/runtime/auths-gateway/src/native_information_replay_tests.rs","sha256":"165a1dce11c2006e6adfb5eee4c4977737b830995e6e29f77544a999893b0a5f"},{"path":"product/runtime/auths-gateway/src/native_journal_tests.rs","sha256":"d803ff53f90ce2a8c29808b4f874cd81954a3a5c52e19b519ab22f0543808fe1"},{"path":"product/runtime/auths-gateway/src/native_mutation_budget_tests.rs","sha256":"41d7f560d6b04e750acb2f8add2544745743ea9fea760a8ffd5ec5aab307e94c"},{"path":"product/runtime/auths-gateway/src/native_mutation_crash_tests.rs","sha256":"3e1befd35e7264024666331b52ca2245540ffa8f9927ed62e3aa45c7c8cc8950"},{"path":"product/runtime/auths-gateway/src/native_mutation_entry_tests.rs","sha256":"219a1986cf7440d31734db9db3c25f7997486a2fc29fee0a1ac8c7f0ee9ce803"},{"path":"product/runtime/auths-gateway/src/native_mutation_file_fault_tests.rs","sha256":"252f6ca9455b291b0873d983c8fccc75254d947b89a3fe9a1de0155c8ee53930"},{"path":"product/runtime/auths-gateway/src/native_mutation_journal_tests.rs","sha256":"181bf0a196805e50944cff4fe2315459eba877e7d7b5b90bf3c99e3353a8cad7"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_batch_tests.rs","sha256":"137f0e2f0e8d950cea3b38a7a03113c61177e54083f11eecc34b994ce41728f1"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_commit_tests.rs","sha256":"5d9a3b8a1601c83c66db3aefd904c16233ce2700d070ba5c9c4f81f4051c5fad"},{"path":"product/runtime/auths-gateway/src/native_mutation_replay_tests.rs","sha256":"3a874e1416cbb29cce70930f9955a70b4a5ad46e2cbca8d55f1acf070215cfbd"},{"path":"product/runtime/auths-gateway/src/native_partial_upload_tests.rs","sha256":"5fa867219d61b7c8a563e7cf5111291f15b8a11464623859be8aa9ea858170ea"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_proxy.rs","sha256":"1c95b3f8af48b78dc4f1c1baa3b26c1aa7bbe868c23aefbb32f1f0ae592f0045"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_tests.rs","sha256":"f021b110991ba3ae497705d0aaa0350a210f09b6f102fd71ac2f8eb4ff8f30c0"},{"path":"product/runtime/auths-gateway/src/native_postgres_fault_tests.rs","sha256":"0c6edea869a20765b322fa69c48e580aa0664e726b6cef483d4eba49803135ba"},{"path":"product/runtime/auths-gateway/src/native_process_tests.rs","sha256":"778a02ea4de3a0655021bad7d2f4b5f0007c6518ef60e966db3da49bfaf22c37"},{"path":"product/runtime/auths-gateway/src/native_public_evidence_tests.rs","sha256":"dac3a70f4535a14aab49ceed5a6b5fd7002e199270bb5a120f5bc8edfa5398bf"},{"path":"product/runtime/auths-gateway/src/native_recovery_actor_tests.rs","sha256":"bfdcdbaa0ee1d6822c57e5ab9ca524e731c393f9289c5508b61a0fc1d0b065e5"},{"path":"product/runtime/auths-gateway/src/native_recovery_authoring.rs","sha256":"9f4e8008160b349a52267eacd6a1c1e5c31c3c1cdfd71b574162ccaa9f7430b6"},{"path":"product/runtime/auths-gateway/src/native_recovery_history_tests.rs","sha256":"0c6ec8fe18fd4cc8496f04c3bc38552c3602d7254cae979fac76aeb7c7e4f41b"},{"path":"product/runtime/auths-gateway/src/native_recovery_limits_tests.rs","sha256":"f147c2e78cbe364fb3fd0c97bbbacdad86d77ca8c0b8575d9fa108968f82379a"},{"path":"product/runtime/auths-gateway/src/native_result_wire_cases.rs","sha256":"2b93c8ed96d7092216410bb99435411fd57497284639f56e0120b16639a98eb2"},{"path":"product/runtime/auths-gateway/src/native_retention_tests.rs","sha256":"224c941e394dd711a7ee19e7b52a1d6b7359eec62e7decec323d066319cb59d3"},{"path":"product/runtime/auths-gateway/src/native_scope_tests.rs","sha256":"8d3f362df9fadc10c22f0483f3a16d238d0f82f393a628727adf0b728707673e"},{"path":"product/runtime/auths-gateway/src/native_threshold_testkit.rs","sha256":"74e6b6ed1b77b463effff132fd8af9b3b59aeee64704a8fe8a19ed3ca9d79bf7"},{"path":"product/runtime/auths-gateway/src/observed_tests.rs","sha256":"91223493fefd3efc3fec58db225f00786b539e3b24027419e919d8bd7310059c"},{"path":"product/runtime/auths-gateway/src/observer.rs","sha256":"1c8988dd8807566d5a152e1894aa0f4c80c3ba7302ac910a4a6978d4f31b323d"},{"path":"product/runtime/auths-gateway/src/onboarding.rs","sha256":"6180e79d7698bcd4dd6ffdf32dcfbe14427f96de92f4ae4ceac4dda651f3671b"},{"path":"product/runtime/auths-gateway/src/operator.rs","sha256":"fe3b11fcf8e2394ab955b09a5b9b1f979c46f9e07a4f16e1a3ca160d675f1ace"},{"path":"product/runtime/auths-gateway/src/participant_control.rs","sha256":"58acbac1ab812963ad0ba0e2864395a87b3afe50962263cb44e19776cf5100b8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment.rs","sha256":"719e82ed5f30f7b37d6d87e45220918d945a2ed8fadc9e760308398e9f6501a4"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audience.rs","sha256":"83940af76073d391f1181eccea2e9b682dbd7ffcace6c39b2123ebe09e721573"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audit_tests.rs","sha256":"1a8cb537f16d023962f1375b7f15d0879b2be85c29775dd677c84d87b8c9d183"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/configuration_tests.rs","sha256":"2e1cb7024ff137bfd3292929f26ec078c9213f6276f4a2f915b279530c6c7782"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/cross_recipe_fixture.rs","sha256":"5a957eeac83da3f1c74e923648319674f6a90e6673b45fdc029b784b1c09053a"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/identity.rs","sha256":"a04328f93d59da6c34d623319b8a6f55a32e7d718837109b299ef6935b126930"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/recovery_tests.rs","sha256":"b13faae436b325fa6ea234613f1542f4ec8b1dfb7082d3f31339ea7f4a8b0cb8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/root.rs","sha256":"586bfc83e1a615b7d255ea235f6e519945126bb3ba7fe41d2aecd1dbcdccc797"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tests.rs","sha256":"a6f83af4c504d7a5bdedad90e473c8032f10c384adeab29075051389040f7696"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tree.rs","sha256":"4f2b8965b91b6e23317168221d077b074fd149690e28c30fad6055982ada584e"},{"path":"product/runtime/auths-gateway/src/pending_vectors/attempts.rs","sha256":"79803db1c278b2133d4adb112ab325247f359cfa5cf34e3de32898f6a9bffe62"},{"path":"product/runtime/auths-gateway/src/pending_vectors/bounds.rs","sha256":"e612217307e1da5b0eb5ee6582a7458bb064b8aa8a529fc6555b1b334127ab68"},{"path":"product/runtime/auths-gateway/src/pending_vectors/codes.rs","sha256":"6fb3f1679b0fd2ca7a8ac6aaee65f586b9eb809d9d7c9e26d3dd8ae2bfd10307"},{"path":"product/runtime/auths-gateway/src/pending_vectors/keys.rs","sha256":"b0b1f79d2fadc06e91378a8250223a429163138e4b86e90e09bc207d80fabf86"},{"path":"product/runtime/auths-gateway/src/pending_vectors/mod.rs","sha256":"5de8340f0ef71a0b57a09e323fefe473d3160c6ae952b9ba46f714825fbacafc"},{"path":"product/runtime/auths-gateway/src/pending_vectors/outcomes.rs","sha256":"a8960d8e055ac31827e379513f57f00ed868b559079fa2a4687e1b055d48e3ca"},{"path":"product/runtime/auths-gateway/src/pending_vectors/production.rs","sha256":"15c687599b0342dc141878afdf727092b23ade67ee5564eaa671f3f06befad57"},{"path":"product/runtime/auths-gateway/src/pending_vectors/recipes.rs","sha256":"5d550e3708ea41a9547ae2207699bde5ff4435f5a1ed7afa4378fb8defb51bb4"},{"path":"product/runtime/auths-gateway/src/pre_entry.rs","sha256":"3f2554feda72fa047229d427504676a1fb14894bdd377055a3108d7b3e3587cd"},{"path":"product/runtime/auths-gateway/src/prerequisite_race_tests.rs","sha256":"683cc46b3718d12dbb42668dae4bc6ec7e7508dcbb6b6232fead2e3e4f510d0d"},{"path":"product/runtime/auths-gateway/src/property_tests.rs","sha256":"85a77aaf01d9be51e1dd7c72461653a099c51b0ca9c818800d991abe262b198a"},{"path":"product/runtime/auths-gateway/src/qualification.rs","sha256":"f25bbb01c2a6131633c5a4de4e59345b761609e47b3c69353187364996ec87ea"},{"path":"product/runtime/auths-gateway/src/qualification_simulation.rs","sha256":"61f4117e33db07be83ce0f0376f79a405ff6d8bb7ffc2e28ff0bf927486941ce"},{"path":"product/runtime/auths-gateway/src/qualification_tests.rs","sha256":"ed9eb74599074af67730d63f8c5093f6a5277bced96dffeb81317a6dd9f4c8c6"},{"path":"product/runtime/auths-gateway/src/quorum_tests.rs","sha256":"a6533de9bc2689ec632f009404daf363494e224e7b89b1c65bb2e2cd4fc6421d"},{"path":"product/runtime/auths-gateway/src/readiness.rs","sha256":"911c3f11892f94641574375e2da4c671c802738f71082f12c39832331052d43d"},{"path":"product/runtime/auths-gateway/src/recipe.rs","sha256":"efb99a8f060b5633ea8ea75f24378e701f6ba2af023faf8c7609e4de4e868637"},{"path":"product/runtime/auths-gateway/src/recipe/content.rs","sha256":"e3f8aa8cf2dd9ef5777d9d1e76331052c67be87873db0c2cd6a8f48ff940d9d6"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource.rs","sha256":"2284b6f7363b1a15dd3c91dd3043f46a5c7a9c12d997213b13751b82ae627e26"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource_tests.rs","sha256":"ab371d7d7a5dae249da924e7b94d5c863491a2af796d2febdf2dda2a191c559f"},{"path":"product/runtime/auths-gateway/src/recipe/effect_review.rs","sha256":"8f94896f0d124162d3dbd080c44582bb23ad181bb582ff5cd3d049d75fcb6d77"},{"path":"product/runtime/auths-gateway/src/recipe/lower.rs","sha256":"81118ea7ae6c2d9984b88fe9991f91283070859d56923ee4fdfe9a50eee9ccb1"},{"path":"product/runtime/auths-gateway/src/recipe/response.rs","sha256":"0b4a074eb05b98685697094ed4775c5fe588b3e34f954aa1844135fe14c94487"},{"path":"product/runtime/auths-gateway/src/recipe/review.rs","sha256":"f9f88f6d54c9a517b55ea717ce8caf5199954ff710c0d20e2bb609f6b1344a51"},{"path":"product/runtime/auths-gateway/src/recipe/runtime.rs","sha256":"6301c005c5f014eb81a7a85dfa3bd256ec15e35bf1cdf6e60815a2a18b7151a0"},{"path":"product/runtime/auths-gateway/src/recipe/source.rs","sha256":"f79e481ab0f40985819b317c540c715766611b5c8c0e5647c87849fefc10cbac"},{"path":"product/runtime/auths-gateway/src/recipe/tests.rs","sha256":"78cfa166bb02b722c92205d2a95c261ef4f3cc272150145980252cb4c51c13d1"},{"path":"product/runtime/auths-gateway/src/recipe/validate.rs","sha256":"3f613af38c5cf29901575af4f82a9daca6718b2da70bc84baa0994a71be6113b"},{"path":"product/runtime/auths-gateway/src/resource_identity.rs","sha256":"edf093bf84c0ca6c0a300adc6060fe10cf58b90e592dc3cd6ebd58e73632373d"},{"path":"product/runtime/auths-gateway/src/scenario_tests.rs","sha256":"eba5fe0268e5d8516eea79a2cf418f5c52ccdf777fa94e553cfba00f0b90865e"},{"path":"product/runtime/auths-gateway/src/separation.rs","sha256":"be9306848ca5d801767cf6aa14247c8618312ef0e202f00ce0c24c4844491061"},{"path":"product/runtime/auths-gateway/src/simulation_attestation.rs","sha256":"88705e5d45415f760f1e3c3a065c35c48f4f4065bf7b3feb7882246983814d6f"},{"path":"product/runtime/auths-gateway/src/store.rs","sha256":"5645f57bcd92190ff2c83836744ecc514558c466bb5d377b258a8d82d21504f9"},{"path":"product/runtime/auths-gateway/src/store/acquisition.rs","sha256":"c52193c7ca87f4eedc3a3523be12eb85a2825fa989d8a61b076be734eb99684e"},{"path":"product/runtime/auths-gateway/src/store/acquisition/candidate.rs","sha256":"90c133dfc48ed351d0f1fea9de236135e82297719c383f9f37404a335909d225"},{"path":"product/runtime/auths-gateway/src/store/acquisition/content.rs","sha256":"92f87e4556335af8e1c4157e60e6936ca02b271381569e14510bc2c35e697ece"},{"path":"product/runtime/auths-gateway/src/store/acquisition/recovery.rs","sha256":"cc1be15bb948608868d33a088951530834235220a8fed7d77161ff53bf416dc1"},{"path":"product/runtime/auths-gateway/src/store/capacity.rs","sha256":"d25c4a0d753317270cb352246c70642bf0659e6448d14061356e4e9ea7ed3811"},{"path":"product/runtime/auths-gateway/src/store/disclosure.rs","sha256":"3b2f68d024bb10b734bd1e48ceb4eed23d1348ec6f716be78ec27384458ff007"},{"path":"product/runtime/auths-gateway/src/store/engagement.rs","sha256":"953ef4c20f16775c10bca98b820536f347a6ce9c756934503efdb7bb77c41ff5"},{"path":"product/runtime/auths-gateway/src/store/mutation_phase_tests.rs","sha256":"163c177cf5e053126b46c7de7e429a99df789090b1127b5d3b91636efcac4365"},{"path":"product/runtime/auths-gateway/src/store_retention_tests.rs","sha256":"a9e300fde3c45999764ee05c4c6ea46cfb9ffcaa51b82337a322925ad50f4f50"},{"path":"product/runtime/auths-gateway/src/store_testkit.rs","sha256":"720bdda4464a54198348e1cac8ff75ad4882b9ce10c389befb4e9bc80340156c"},{"path":"product/runtime/auths-gateway/src/submit.rs","sha256":"a8e5e908b99d997cdf34c46c5827e04c0f502307f71497d15511bb40ef52815b"},{"path":"product/runtime/auths-gateway/src/support.rs","sha256":"d4865f95a7a2fdfe297f3f73687c05ab64a6b911814daf5f2b6c703ce58262ce"},{"path":"product/runtime/auths-gateway/src/transport.rs","sha256":"0ad16c63c19cc41d11c485625c8fc0617aede21401d16ec814401f963538bb46"},{"path":"product/runtime/auths-kernel-runtime/Cargo.toml","sha256":"926bcd0053e5edd703be8f0027ad009e2982db013c8174c1366edbf38b48087d"},{"path":"product/runtime/auths-kernel-runtime/src/lib.rs","sha256":"7108faae9ca4bc32dc093ddaf885ac8f74f3c9b8d317b7c7d0ed00d1d0ab5972"},{"path":"product/runtime/auths-lifecycle/Cargo.toml","sha256":"c5053c705f8d5554b44e432fe75287a2faf11d644e5a2552e45ad6cd94176af5"},{"path":"product/runtime/auths-lifecycle/src/codec.rs","sha256":"51c4b746749150e8bfcd8ff972b3f6c1ef40bec15583448ec1b471d9ad737dc0"},{"path":"product/runtime/auths-lifecycle/src/digest.rs","sha256":"55282cd7d8aba37713c2dcb5357c9877819edb72a30eadefb860d28d7d3a3eb7"},{"path":"product/runtime/auths-lifecycle/src/identifier.rs","sha256":"31620e8c16de68d3d2d3b84d6353c1a5b9d4151d8247f91fa389b906a8e660f1"},{"path":"product/runtime/auths-lifecycle/src/kernel.rs","sha256":"2abb8c094b36d35b364e74d78091d14c5d6f3d1eb6552cca3b5538dbd017ce23"},{"path":"product/runtime/auths-lifecycle/src/lib.rs","sha256":"afe5a345cd309b5a4f08ffba3170a6d7f16ff914892b3f2006d5208ed24ec736"},{"path":"product/runtime/auths-lifecycle/src/model.rs","sha256":"1af12bbeeeaa65ec02ddcebd7d2c8c92ec1e339fa40ae85b45ab9b01a722a4fa"},{"path":"product/runtime/auths-lifecycle/src/operation.rs","sha256":"78e6d05fcf5d7ea4f148032a3fa26fdfcab77eb346019effe927b08e0d64d732"},{"path":"product/runtime/auths-lifecycle/src/registry.rs","sha256":"53495fe6f7a77422593a41623e28716f1c140dcc1e00f87f6b0ffbfb93a5ef90"},{"path":"product/runtime/auths-lifecycle/src/sealed.rs","sha256":"2e0c03b5813c926c159598bb7890d1523825edbe57cd687d42a5dfb3374a0c19"},{"path":"product/runtime/auths-lifecycle/src/test_support.rs","sha256":"221d9a5c5ef8e1f9f8fd66927484eaf813571d0568470278ecd8fa08a5eec8cd"},{"path":"product/runtime/auths-lifecycle/src/transition.rs","sha256":"011805a28efdd541f44ccea54dd0e34a1e58f4004447ee58013703b4fb6b2822"},{"path":"product/runtime/auths-runtime/Cargo.toml","sha256":"dd29d80a8b4bb56c869f036a6c9998f6e6d1c0383ac5dc03fa42b24abe2a7ff7"},{"path":"product/runtime/auths-runtime/src/lib.rs","sha256":"132ca03d58c14905d3a822a4972f42a22a5ad33a45f2ba9ca44f3a57d810b4b0"},{"path":"product/runtime/auths-runtime/src/production.rs","sha256":"fd4eff4270c571c10fcff6cf27df28961ebf074de8a1a028f500fda1ca376820"},{"path":"product/sdk/auths-approval-quorum/Cargo.toml","sha256":"df904971fca87a24194c5816738a331588fe8f164acb5d70839a35dca5f57114"},{"path":"product/sdk/auths-approval-quorum/src/lib.rs","sha256":"72e4086088a1c0912e4e1a9e980f26a5c280bf5ab16ea39c9f0f58d5096ac2ce"},{"path":"product/sdk/auths-approval-quorum/src/remote.rs","sha256":"9fa029c7c63003adf260f8aec55160c545681c60c1bace0d934e7525862aac7b"},{"path":"product/sdk/auths-approval-quorum/src/remote_tests.rs","sha256":"8a09ce17cfee82a035a74edd535f3ebeb3db0e078784740d3997b17dbdb10197"},{"path":"product/sdk/auths-approval-quorum/src/tests.rs","sha256":"0acbf12be3e497dcc6c2d8f29c9af3b1a7ed8e11b75f6399570d4f217a785060"},{"path":"product/stores/auths-stores/Cargo.toml","sha256":"a32c4b76d17b264be5d40d24497ff237e1ed87822e8bab86229b3db93106dbe3"},{"path":"product/stores/auths-stores/src/gateway_attempt.rs","sha256":"f39dc84a238db0ebc70ad1ac495da194d2c24b5e1f9905552a9b1143278725a9"},{"path":"product/stores/auths-stores/src/lib.rs","sha256":"40c280a5ff79bfc1cafcf0bb415e775e205637c526973eb94b43a30f86d4e6fe"},{"path":"product/stores/auths-stores/src/lifecycle.rs","sha256":"4033f69a8d36de9285b87ab86af363fc85f785918ec2042d0ef1bdcb64d6f73a"}],"schema":"auths.gateway-semantic-closure/1"} \ No newline at end of file +{"files":[{"path":"Cargo.lock","sha256":"6b5774d25d19b175baf50f5e109caeea875712aaade8a52cdb20628a3fe35062"},{"path":"Cargo.toml","sha256":"f372f4257f5687249c22073205f1f5cd84f4854155d1293aa75670b4dcd71cd2"},{"path":"core/adapters/auths-did-keri/Cargo.toml","sha256":"86ba3e3f9a0a70d970568bfb3113b7ba7bbdd81c3eebbb52743dd574a0c0ecaa"},{"path":"core/adapters/auths-did-keri/src/lib.rs","sha256":"a75674842f8a7142004369ccd206ab43e476459293f0ff4bed4d4e659031b3e3"},{"path":"core/adapters/auths-did-key/Cargo.toml","sha256":"d5a3ae07ecde83f91eed4c3785051dd0f44eab6c891754f3309b6b40596707d7"},{"path":"core/adapters/auths-did-key/src/lib.rs","sha256":"b76a3f4528a725df53cfa9242e6e414e1d26caa48468aaed497e28b121f4497c"},{"path":"core/adapters/auths-raw-key/Cargo.toml","sha256":"f49616bc18c19e6aaa7e6a02ccebcdb9f5c1422c1278ef9869e0dbf22ceda7be"},{"path":"core/adapters/auths-raw-key/src/lib.rs","sha256":"45eec1b295dac3bed65cd79c942870b926b06b3f5d38eaebaeb6140ac69315fa"},{"path":"core/crates/auths-algebra-kernel/Cargo.toml","sha256":"0cb078915287b8c47d20fb97b6fa14135ed1c61c4985c4de2753855563c27bba"},{"path":"core/crates/auths-algebra-kernel/src/generated.rs","sha256":"ae4bcbef42a408c7ffa0c6a74a42f7de177a6f14479e51d205acf830bda05960"},{"path":"core/crates/auths-algebra-kernel/src/lib.rs","sha256":"6654667eeb9b353d6648954c9fd2e8838462a82ce6b2803eb49e1366892c68c6"},{"path":"core/crates/auths-assurance/Cargo.toml","sha256":"afcb12a97ddd09d7a264b9ecd3fcaefc865ff2c9b4539ee85b00883420ba333a"},{"path":"core/crates/auths-assurance/src/lib.rs","sha256":"0fb2ec844d674b25a9e20b1601452c89c2454901fa506adfa9bb38ef9a7fa213"},{"path":"core/crates/auths-author/Cargo.toml","sha256":"1e6f0e3bc079ddb558decf0db26b291c6e72fc47327b6df1b7650d41689b215f"},{"path":"core/crates/auths-author/src/lib.rs","sha256":"e14475f2f49715a1869d5fa6b11ff1fbb72497e39097e09f833b0bae7e5b3f2b"},{"path":"core/crates/auths-author/src/observations.rs","sha256":"dda7d6bfa6f4bd7e95a480ca283c2c0e996f69c5c15cb0c7197af328131a7066"},{"path":"core/crates/auths-authority/Cargo.toml","sha256":"4f68212938029f79ebd857b4f3038494eb85d0163d49f07e51376715cf959815"},{"path":"core/crates/auths-authority/src/lib.rs","sha256":"da88d5194de4e17449e69972c0fb042afa3c39798a8f570f30771e77c384f1eb"},{"path":"core/crates/auths-codec/Cargo.toml","sha256":"e20e51826e17814effd9d8925d18d5fbdd6c0d37bf50231e743ec2611314722c"},{"path":"core/crates/auths-codec/src/approval.rs","sha256":"fbff43bf4d57f69f8b7738a8647751cde75c5a932dee65d924a1fe9c7202f91f"},{"path":"core/crates/auths-codec/src/bounded_policy.rs","sha256":"d21f6728be2d8a04b6d94921f2b683f7e61cbb42e0ac6866f1c88a49caa534c3"},{"path":"core/crates/auths-codec/src/decode.rs","sha256":"ba2999584cdf53b1b517ecb9c7ea50d39efee17c666a9a38e2ad1ac94379f778"},{"path":"core/crates/auths-codec/src/encode.rs","sha256":"8491192053e2e15d62b4d2a491de22405b7487ead69ab6f6bca40669ce7ca5f7"},{"path":"core/crates/auths-codec/src/error.rs","sha256":"fecb0737c16deb42d859f1dc7727c698438d9ac12064fd99e0024629642c390c"},{"path":"core/crates/auths-codec/src/hash.rs","sha256":"f88e111f1dbb2cef6b7b5e9c948cb45ff92e366710c8a5f5c636138aa748479e"},{"path":"core/crates/auths-codec/src/lib.rs","sha256":"3b0e5c94c6f34f750b88a9333e1d5c8145746d845d3a23e0d2f61807cf592ea7"},{"path":"core/crates/auths-codec/src/observation.rs","sha256":"38328b0c71ff97a4196eeade8b4faa889527ff1f80bb168468bcd49082a3987e"},{"path":"core/crates/auths-composition/Cargo.toml","sha256":"331e13025eb82588b5269ed3975929eb41c823d588c49e4c296273d85c6fe80e"},{"path":"core/crates/auths-composition/src/lib.rs","sha256":"e42e3b0b6a9985b73c533aeb23799c638979aa27a9ce7d0f10a8d60340570fb1"},{"path":"core/crates/auths-model/Cargo.toml","sha256":"565c15302b0cc9270db1e28efa3862804846850ba933cc17aea8abcec4a65987"},{"path":"core/crates/auths-model/src/approval.rs","sha256":"54cf44a9ef747ec21546a4086aecfb130bc7803b0d646430e6082df51e6e305f"},{"path":"core/crates/auths-model/src/bounded.rs","sha256":"f90496abc0a06c028b4d850af6ddab7d850bfafeaa3d042f1b1246a41d8bbbc9"},{"path":"core/crates/auths-model/src/bounded_policy.rs","sha256":"306a8f049cc7cfc7635fe0e4de47eb7813eed63d3c14c3be2b51586aa4eea450"},{"path":"core/crates/auths-model/src/lib.rs","sha256":"e7cfe6bb9574c6b016aa63e70658c31e0b90903ec6479a49f4a2ceb64f5bad97"},{"path":"core/crates/auths-model/src/observation.rs","sha256":"b3ed3e3cc090afca2896a7d3de7988afccc1ee1ea0ebd91b51a8bc0f20ad8dbb"},{"path":"core/crates/auths-multikey/Cargo.toml","sha256":"858756c1197befcada06134742bffe8d58cf674cadd6c046bf710570e96efaf2"},{"path":"core/crates/auths-multikey/src/lib.rs","sha256":"f5177fffb11e40eeaaa665ba886c541fc1f24d5eacdd6983fb03dc20148733f0"},{"path":"core/crates/auths-ports/Cargo.toml","sha256":"596a9b0f5af3717c16a6d13f7054d8a106bcd9f01f5f72c2235dd2afcf0ab16c"},{"path":"core/crates/auths-ports/src/binding.rs","sha256":"a16c012d40aa4249e3ec54372b9611006d0bfe8c7dc3c741911c2194ad17736d"},{"path":"core/crates/auths-ports/src/diagnostics.rs","sha256":"aa596572503b5a65a918bb2ff38281c144ff53821ee914e9325c852828d852df"},{"path":"core/crates/auths-ports/src/lib.rs","sha256":"8da1debf86f9532df0660155d04298beb1ba3a1204508f8586e2e67cd2fb3449"},{"path":"core/crates/auths-ports/src/path.rs","sha256":"b68fc547b4e4d97a60cbbc1cc1939fc6b34a8233b81f840bd396914a707e3ea1"},{"path":"core/crates/auths-raw-key-core/Cargo.toml","sha256":"98c0bc8527a537512e43a74dd6ba9658c6f0cdc16610cf938e3f9b43785d836d"},{"path":"core/crates/auths-raw-key-core/src/lib.rs","sha256":"98c0500c41697aae28708ad0bf970b9a97583d96a3d2c18d23e7fa351e0f7d12"},{"path":"core/crates/auths-registries/Cargo.toml","sha256":"590e49e58b0622d9d6274fea46796dcdb07dec9550eff295cce6a6427ffa51e2"},{"path":"core/crates/auths-registries/src/lib.rs","sha256":"450d3886d85ee333b7e046317fb5b47cde62483d5f3e41d46265e2caf4c373ec"},{"path":"core/crates/auths-registries/src/template.rs","sha256":"1224039dd2b3ce6fa8357613d8cafbae40400493da7176da202b9ade62fa05e4"},{"path":"core/crates/auths-signature-core/Cargo.toml","sha256":"6bee2230eb30af1be0bd5c2d57bd3e1903497a70028d47290d4ac6e9e0e8bca0"},{"path":"core/crates/auths-signature-core/src/lib.rs","sha256":"db97ecb45a82faa6f96a92738d3af1da92d1ba2f241f2c29114f4b8107dc4ab0"},{"path":"core/crates/auths-signature/Cargo.toml","sha256":"7f7b5682466ba439d8c59579022cb61068cad9fb4bd2d73e1cc21327c902b450"},{"path":"core/crates/auths-signature/src/lib.rs","sha256":"b3d9ac4cc3ba0797b9e1c09f2d6ac05089b25dac4e285a5af28c0165b33d925b"},{"path":"core/crates/auths-verifier/Cargo.toml","sha256":"c43358e06a33324b41a8b93e5cc7279c55f7d21f1f6cfaa539a3fc7b4c27a38f"},{"path":"core/crates/auths-verifier/src/approval.rs","sha256":"c3cae6a49e169051eb555bb092b1069a4d422516d6a2114623a89e5f31ff923f"},{"path":"core/crates/auths-verifier/src/causal.rs","sha256":"9635230f33b13a263573d319ac8a1976addbcc07677514a43e3c7bf28dc04587"},{"path":"core/crates/auths-verifier/src/lib.rs","sha256":"f22dec38dfa47ced8da4f605390da8453273bee1da010f57fd1fdfcb10e0b389"},{"path":"core/crates/auths-verifier/src/observation.rs","sha256":"0bb07f06a0f9524c88427df1c972b1de8ba038a9eeeb15d3134c25125ae84b1e"},{"path":"core/crates/auths-verifier/src/trace.rs","sha256":"2213d72023a1d9e0413a2cf2c51c3dad9e04775d86033a0caaa9d29a8f0036f8"},{"path":"exchange/crates/auths-proof-exchange-model/Cargo.toml","sha256":"34b2db64f93a288e942b5a3918d28cdcbef906e0dc9074ce848018d3d5f7a1fa"},{"path":"exchange/crates/auths-proof-exchange-model/src/lib.rs","sha256":"49fac5aff2339d3a57c41cb8bb2a82852538e8f77ecc4b157c88e264ff31fb55"},{"path":"exchange/crates/auths-proof-exchange-port/Cargo.toml","sha256":"7ff660f1b7579dc570c791090aeb450404fbbf44c92781e289f5ccdde746d739"},{"path":"exchange/crates/auths-proof-exchange-port/src/lib.rs","sha256":"b408fb40c6432edc1facb3d8b3e9433a033f8dc73fe2e0ba5a88c972ca675021"},{"path":"product/config/auths-config/Cargo.toml","sha256":"e4b568ab9f6d84f7d7e6d66443fe825f360db9c27bc7c31d6ddc0647ba3ab304"},{"path":"product/config/auths-config/src/lib.rs","sha256":"fecf00ea65cef9018fda9af2063326d7065b869266d0d9e73a4f06816f1102cc"},{"path":"product/errors/auths-errors/Cargo.toml","sha256":"3b3a199b6460ba75bda84475bb5accd35e1485448a3981038db85bf4772dd350"},{"path":"product/errors/auths-errors/src/lib.rs","sha256":"7feeb9069fa4003f94f1f07c1c94619cf1c883e0dbaaf2187f04d0f742264bdd"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/Cargo.toml","sha256":"716f1f2a117d6d69d8effe9ee9057e24ba3502f20af6a602b06facb638cdabed"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/api.rs","sha256":"9ea61dd7ddd93282b073b98e453e6b75b26dc49689c04e9782435d06a3a09e48"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/clock.rs","sha256":"73f0a6e0f5903883329fa6683f5888288f759512ac69e5c87efd2b6b87f7d79f"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/http.rs","sha256":"14c1fce14e24c984b2a275563a29b6326fb08367922b6e8d37ba38b9cb81aa2b"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/identity.rs","sha256":"186de11230c8b33375951c4368609f8976bf9795f171af3fd7fac26207a94361"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/lib.rs","sha256":"0b4617d044f5254a5ab22f5a2578f91cc025206a8c1845be39c1c56dcdf7a5df"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/names.rs","sha256":"41bb23572d6002e23ee103d6fe70ecd68764861c6f2e48a1c53af998270a4afa"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/sigv4.rs","sha256":"39fed883f4802e68d3b41a68fea0aba0737810996b33d13577de70faba004c29"},{"path":"product/integrations/auths-credentials-aws-secrets-manager/src/store.rs","sha256":"fc60ee9c49b2f4f063c449b4c78100c5c4872779e94ca168f796603b380ef6e4"},{"path":"product/integrations/auths-custody/Cargo.toml","sha256":"1e14034185ad1ec24a977fd5f41d0abee219606245c046ce2a82287fadef448b"},{"path":"product/integrations/auths-custody/src/conformance.rs","sha256":"13a2b28bba4a7af5b00bb96d16ecf027d35d5487b314e48a666fb8ed09c2f2e9"},{"path":"product/integrations/auths-custody/src/key.rs","sha256":"c3b1468b8538421a796aeb65a0cd94b942e3788e78741f20dde07b4838e0c3da"},{"path":"product/integrations/auths-custody/src/lib.rs","sha256":"836ad8044440fd250457a46f5c4a980339534a8af6a4daac2643560050b62d39"},{"path":"product/operations/auths-operations/Cargo.toml","sha256":"73dde1e914ba5e1386f8d49c0d730423cc72ae77ec44c6554a6a75cc8e8922b1"},{"path":"product/operations/auths-operations/src/explanation.rs","sha256":"b4a39bcbd5712cb9e735ee7deeb281f3fa6af5ddca973735bf3d87dce427ef11"},{"path":"product/operations/auths-operations/src/lib.rs","sha256":"3f401a56555113b98f57bca172a2660eaecedf76247b83a3fdbb089c133a29cd"},{"path":"product/operations/auths-operations/src/render/json.rs","sha256":"2ae042639960afee123730e945d373bc5dda1d2b3af20ae16c939a7e99b9e418"},{"path":"product/operations/auths-operations/src/render/mod.rs","sha256":"b3b7f6fe473f49227ace5a68bfc3d8dc14b5db8dd9888fd9e207070337b1b8bf"},{"path":"product/operations/auths-operations/src/render/text.rs","sha256":"f216cf3bdb00e264523271b16e7059535ac6b1aabf271cebd7935af155e4bfec"},{"path":"product/policy/auths-bounded-policy/Cargo.toml","sha256":"babd5d200923137ead71d8c2528f847cea323ce98da942a1320b054436612c47"},{"path":"product/policy/auths-bounded-policy/src/arithmetic.rs","sha256":"75e43c5d4eab8d1f71c1daf53839f5f9fe45a400afc1f63a30c6f55ce3632627"},{"path":"product/policy/auths-bounded-policy/src/commitment.rs","sha256":"c5706f2d583454e1a7f570f7ada138d4d864bef0205dfae7c1296774f396bb3f"},{"path":"product/policy/auths-bounded-policy/src/eligibility.rs","sha256":"c9acdfb793074e687fc36efad506be27dbd99ffbf40387bc66c8de39ef238432"},{"path":"product/policy/auths-bounded-policy/src/identifier.rs","sha256":"0006a32bae9eb16c4178cf797df418d2b0a781f2bc6474b741dc1a908141831c"},{"path":"product/policy/auths-bounded-policy/src/kernel.rs","sha256":"99187c28b161ac70bee1afed60711f7f645adb4d1671a01863f9849b369811d5"},{"path":"product/policy/auths-bounded-policy/src/lib.rs","sha256":"76a18638b810e62e594d6e951504679305ce21841388e0c282ad51cd7841b91c"},{"path":"product/policy/auths-bounded-policy/src/receipt.rs","sha256":"3b9eae82f349956d3e7f29b57b254bff5ce67cc703e6cf43445ce2827676d1ad"},{"path":"product/policy/auths-bounded-policy/src/registry.rs","sha256":"4e251ea5833559841f8ee0bd9b66c0c01c39fa5e3a21720a19c4e8adbfcb99d0"},{"path":"product/profiles/auths-profile-api/Cargo.toml","sha256":"7ae85761f58625b5d678f961fd052eebf3e000ef565c7312e3ac857763c0017f"},{"path":"product/profiles/auths-profile-api/src/lib.rs","sha256":"a194b82b20bf8aa864c2334ef6c6aec30b2154ded972862252d5dcefa488ab95"},{"path":"product/profiles/auths-profile-mcp/Cargo.toml","sha256":"db264fc25242f7b7e4133cbe5782545b3107b406c87168ae072683cfb59eac66"},{"path":"product/profiles/auths-profile-mcp/src/arguments.rs","sha256":"a5de696586d507e2aee4a49fee99ef1ef4c51a2e46603f8838f1af6d9009833f"},{"path":"product/profiles/auths-profile-mcp/src/lib.rs","sha256":"81c05c307797b347baaa6ad2bd483cb21cf9d0b0aa4a66710e08e16a1f22c4c1"},{"path":"product/profiles/auths-profile-mcp/src/session.rs","sha256":"166c281fa66333388e4760d6098dad02d3359e1d5de4b8f93312c014f97abb03"},{"path":"product/qualification/auths-recipe-qualification/Cargo.toml","sha256":"b7b15b30b9a3d96d4f089d514266d3a892de6608d30707aa44be31cca89ca9fe"},{"path":"product/qualification/auths-recipe-qualification/src/canonical.rs","sha256":"30a9b50777f0dcb4b606abfee2467d5a975d9f6ad941ab6c13ca3df5b359f667"},{"path":"product/qualification/auths-recipe-qualification/src/closure.rs","sha256":"0ad6aee9bd981e2863fa725f209ec84031db2ff12f4c7ac3aaf5120f0bb86039"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning.rs","sha256":"db135c55e4e3079a73253ebae275536523eb36b545d1c152b4d7dce3c6b76828"},{"path":"product/qualification/auths-recipe-qualification/src/commissioning/tests.rs","sha256":"4dde3736d206099b1bea4c14e0092c6c1287d1af9065958777d7c54331dd8686"},{"path":"product/qualification/auths-recipe-qualification/src/error.rs","sha256":"52d5cf720a1e4579008fdda90a3ac2c31f0b8db57985f121f65e54b4da2b7dd1"},{"path":"product/qualification/auths-recipe-qualification/src/evidence.rs","sha256":"ba45a7409d67a8af26ab811af306412014557477a101ab2a8eb0faf8f2bd4b91"},{"path":"product/qualification/auths-recipe-qualification/src/ids.rs","sha256":"e81a906d571497ab2da753e1532d4443706410e0b75fdd59a7d2d788c7aec403"},{"path":"product/qualification/auths-recipe-qualification/src/launch.rs","sha256":"805154ce931e3977f2a2a2c62909d90f7c0a22dc167bf4f1554dcf19316ffef8"},{"path":"product/qualification/auths-recipe-qualification/src/lib.rs","sha256":"0e24b0f81191df0d078c7f4d73ced784ba9472372bfcdff3c7d0e2fb1687b323"},{"path":"product/qualification/auths-recipe-qualification/src/model.rs","sha256":"3484eb0ec287b23d4682ade7b1b0f8d1335985b3fb180f06fc28716076957d5f"},{"path":"product/qualification/auths-recipe-qualification/src/release.rs","sha256":"ec478e53f70052e566aac7e15be2f9e1b1cd46837ac6990ae955fa864d311586"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/mod.rs","sha256":"1e4e5edc12d921e6b95475b3c1850f58f622c088d24a1fc9398d34019fb2f288"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/schemas.rs","sha256":"c59feec2805621f341a90f81fc005e2c12f7a70f9d264fdeacccb2be4fe1c046"},{"path":"product/qualification/auths-recipe-qualification/src/vectors/verification.rs","sha256":"bdf5746fed4d10a7f577f7878619a917d29aa8b7d522f00d9f774e53eff4c8c1"},{"path":"product/qualification/auths-recipe-qualification/src/verify.rs","sha256":"646ff0e52e915174ad183768706e35e5ce2118b83475455310b930a77a7877f6"},{"path":"product/receipts/auths-receipts/Cargo.toml","sha256":"6001fa1375899953aafcb07c23a6da0c8f57ea7ec08bb9c950b12a60a8cc6f0f"},{"path":"product/receipts/auths-receipts/src/disclosure.rs","sha256":"ba9ed439be0a320c8a01f5b6e9b51361c1a37e076947490d8e4a484ba6bb119c"},{"path":"product/receipts/auths-receipts/src/lib.rs","sha256":"547a57c4160256719cafb7d0ab972d9fc80b0da14fbbce4148c70c414070ff36"},{"path":"product/runtime/auths-connections/Cargo.toml","sha256":"babeb6e1dda3dfb66291713ce1e43dce5c349833d0b50ea4dccbf986030026b2"},{"path":"product/runtime/auths-connections/src/credential.rs","sha256":"22bc7de6bcab7cebebb64edf6423d59b6493b78dca65b9da62749e3171217762"},{"path":"product/runtime/auths-connections/src/kernel.rs","sha256":"a456af19526ef7b19278551fd8d97606b6e7aa5a195e70bdd85d1e0786090ce8"},{"path":"product/runtime/auths-connections/src/lib.rs","sha256":"79209249a0acba0e854d9937255ea0e30a9a6f8e1c2baad77ab83646d392de22"},{"path":"product/runtime/auths-connections/src/model.rs","sha256":"de34a089cac9702acb889b7602b3e4732306c9e61029ec892582b7e02b73fc77"},{"path":"product/runtime/auths-connections/src/registry.rs","sha256":"e57640e003e72ad3235c567c2bb944a262bd64e673f023b62ea091094cc7e946"},{"path":"product/runtime/auths-gateway-kernel/Cargo.toml","sha256":"34f864e67656af4ac7e5c7a347a23f01fc8ab31365b8e23c0ef474483b14a183"},{"path":"product/runtime/auths-gateway-kernel/src/construct.rs","sha256":"e9d65744bae273d65face4285e5d2da75c06a92ab48f7b8333d496604e31c63c"},{"path":"product/runtime/auths-gateway-kernel/src/lib.rs","sha256":"cfda6f8453426564c085475f183b6f790b438768a19668f1b65d33ba59dc8632"},{"path":"product/runtime/auths-gateway-kernel/src/order.rs","sha256":"efc2f2eef68232fe3082e1607e6f1e87d4a19cbb2f492bdc6e71916a2461b6a8"},{"path":"product/runtime/auths-gateway-kernel/src/outcome.rs","sha256":"ac0245699457c802a70cdd6f52a01dcb4777c487b58ed7dc9cfc99345465ccaa"},{"path":"product/runtime/auths-gateway-kernel/src/ratio.rs","sha256":"7ace22264812e6fc1ef3a62afee402cf43494bb71ae0d3de219ad1b39d690bcb"},{"path":"product/runtime/auths-gateway-kernel/src/recovery.rs","sha256":"9f46dcd1685ab6e4d1ba04a3fc286a9f3afee8fb47829be1fbc670a7926a2dc6"},{"path":"product/runtime/auths-gateway-kernel/src/transition.rs","sha256":"9c9c292397aa640c2f002ffb5befe110f86d0aa246f3ffe99440718e5174af3c"},{"path":"product/runtime/auths-gateway/Cargo.toml","sha256":"959b1a58a110315f86115966f85d6992afd91be28d741fee7354207d4bd6f258"},{"path":"product/runtime/auths-gateway/src/admin.rs","sha256":"5d0f1b583a4cacdcbc62521ed1a5730ed6b57d42bf826708a0c5e591272c4a12"},{"path":"product/runtime/auths-gateway/src/admin_boundary_tests.rs","sha256":"7ef23fdaf512cfa6315aed72577ccf0c4d04725f5b4fa4b5f0482e27e5e7ba1c"},{"path":"product/runtime/auths-gateway/src/admin_fault.rs","sha256":"4a66386d91daffeeac4080c16a0d4e724adc09220ba056c0c4267e5f4fc05268"},{"path":"product/runtime/auths-gateway/src/app.rs","sha256":"acd1deab7a8524c97d4a76ec9f7079b3afc035d707e0480a0cbdf4d084972099"},{"path":"product/runtime/auths-gateway/src/app/content.rs","sha256":"4c01001659b1a563dfd4abe7e002e3f85609ffef511a0e39f967af944ea01300"},{"path":"product/runtime/auths-gateway/src/app/content_tests.rs","sha256":"6a239a15732dd279abb35a72721eb2034bf5aac79439edc7c34aa8d4fdfd5212"},{"path":"product/runtime/auths-gateway/src/app/participant.rs","sha256":"1d76d37ba8f7a4657ff013ad845bd90ab82636ade7e7a798937db05ee52a9424"},{"path":"product/runtime/auths-gateway/src/audit.rs","sha256":"aebb55cfe1305c6de26fda03989e138a6731ec57d1cfebf4114886bfb6b93d26"},{"path":"product/runtime/auths-gateway/src/audit_export.rs","sha256":"6cc3d70ef4cc64026de4ec4e094979a95fee6fadb86707b0e09515ad754632be"},{"path":"product/runtime/auths-gateway/src/audit_tests.rs","sha256":"8cf1ab4cd2789973791805b07216d423690645aa4f28307f87dbcb803bd2ad22"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway-harness.rs","sha256":"12b0c24d36b2e6a3be392d3c081a783b355fdd67dc5b54bacc0410e803116b8c"},{"path":"product/runtime/auths-gateway/src/bin/auths-gateway.rs","sha256":"6ae544618bfb0c0b938fb632e054c36e988c6eb278d62775405937c6a5d6ffa6"},{"path":"product/runtime/auths-gateway/src/binding.rs","sha256":"663b0ce878319511aa7d05722ab4ab2fa9be18817884ffb2ee9f131ff1e382d1"},{"path":"product/runtime/auths-gateway/src/bounds.rs","sha256":"d0658585765d4d8f9865f65d23d850ec196eeca23fe65a66a55f1f1bc9b2c9b9"},{"path":"product/runtime/auths-gateway/src/bounds_aggregate_tests.rs","sha256":"ab34f227b7c8692ba1da88ccb32bb3687a66adf8353d8282fae905d4a88eb612"},{"path":"product/runtime/auths-gateway/src/bounds_tests.rs","sha256":"80b116ccf65bda2d7f2fbcd3b26fcf82b0a4bd3dce3a5df7842828cb271d7741"},{"path":"product/runtime/auths-gateway/src/candidate_runtime.rs","sha256":"ebe3d2da3a340c990b6fdcaac8c4418a7c646c0148c8222c19d925b21dbc7da8"},{"path":"product/runtime/auths-gateway/src/commissioning_budget.rs","sha256":"f5c38e9e07df3cb99b6bd664f33eae414b9f3dfef4932d69c19a9b174906dc1b"},{"path":"product/runtime/auths-gateway/src/commissioning_budget/tests.rs","sha256":"da104a1643c37515deec6397bca6db2054f2c9158ec3d230a1b1ec9c7d0f659f"},{"path":"product/runtime/auths-gateway/src/commissioning_floor.rs","sha256":"7fa6991c5ccd5ae1403be84b3da390323fab09f36e15ac01fd7a38ea350c6fdb"},{"path":"product/runtime/auths-gateway/src/commissioning_floor/tests.rs","sha256":"6b663d6e556adc0b455b81845bc4394d82c6c4de0c5f43e1310f3ddc6e4e40f7"},{"path":"product/runtime/auths-gateway/src/commissioning_session.rs","sha256":"919fe57fafa563f770402be66b4e32f1f0d652f09fe1276a62e41b50d66f8696"},{"path":"product/runtime/auths-gateway/src/commissioning_session/tests.rs","sha256":"48d44a5fccea737930f24c49a397428edc439525330c83a868b5113a48f122ab"},{"path":"product/runtime/auths-gateway/src/configuration.rs","sha256":"e5597c39b1acbe50cad20c02722feb38d382294026a0a7a4097e6d97b68eaafb"},{"path":"product/runtime/auths-gateway/src/configuration/engagement.rs","sha256":"67bdd2c792b9dfb1168020a10799af043143461f020b74b18d20fd4089f9b40c"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/audit.rs","sha256":"ee35149f8f348ff2a20ef7185ae0bc5a7b912ad5746510c0714b235765b8b1a4"},{"path":"product/runtime/auths-gateway/src/configuration/engagement/blob.rs","sha256":"12af8071e9cd21c04cf9b55d3cb5e8eb2f33ff888e03e06e114222feb4abf752"},{"path":"product/runtime/auths-gateway/src/connection.rs","sha256":"54f5d53c78f836bf8ce1236d449b3f4f1daa95312102d5583ef69cb4e57b513b"},{"path":"product/runtime/auths-gateway/src/control_namespace.rs","sha256":"0333baed635d34edb066d2b9cb4c6ea3f40faad4be8c75f54c989570515dddee"},{"path":"product/runtime/auths-gateway/src/credential_journal.rs","sha256":"8241dbc7a90054457c7c99fec3b35a433f671682b877f01f8429b8618a6d8e20"},{"path":"product/runtime/auths-gateway/src/disclosure_transport.rs","sha256":"614c975a4b9810f40092a2f9cdd022308b75e649167dbc486c9907f7570d8d45"},{"path":"product/runtime/auths-gateway/src/echo_verify.rs","sha256":"6d453051665f823abd7354d5c50031d9524cf47d6092d2f09080ae814e3b9575"},{"path":"product/runtime/auths-gateway/src/effect.rs","sha256":"5e1d5b8c28df616917d442b023e5161a2e3527ef7b8fb63d736728542c6caa2a"},{"path":"product/runtime/auths-gateway/src/effect/acquisition.rs","sha256":"0afd6aec490e7995a440786be6ac69cb5461201a4b4ec303e8b5a6c12ed97202"},{"path":"product/runtime/auths-gateway/src/effect/authority.rs","sha256":"2490494c3a1636decbfd04b2dbac71c47e49be26b61cc6cf41319a13450bb4a0"},{"path":"product/runtime/auths-gateway/src/effect/candidate.rs","sha256":"d1efc3ec7e1fa642af26f4e4c6a25924c60821dc2e96bd0b458d9292d3866678"},{"path":"product/runtime/auths-gateway/src/effect/candidate/proposal.rs","sha256":"d78574109f41300edfcd7ad38155439ffc3adb9a799554d75d5484738ef174f1"},{"path":"product/runtime/auths-gateway/src/effect/capacity.rs","sha256":"300fa32e09dab7c679b8c0a69bb4e3c1e924ed2ce1416090a2aa477a7eec9f0f"},{"path":"product/runtime/auths-gateway/src/effect/content.rs","sha256":"9f3b53c8c2ad5cafa183ed1229ee03f2cd8a610009b07da560372bd0fbae1673"},{"path":"product/runtime/auths-gateway/src/effect/disclosure.rs","sha256":"0acb5ac805e91c952c8f0028db03ae607c3753cbd08a76035f2d1b4fa6fe6244"},{"path":"product/runtime/auths-gateway/src/effect/disclosure_auth.rs","sha256":"32fa6f040ae46f3323df6e153c6ae810eccf32d22b9945e5565e7189dc877eac"},{"path":"product/runtime/auths-gateway/src/effect/engagement.rs","sha256":"5a36ff3f4460bf026a7e99fadc713672fbeb05dbc6f6393d10cb06440e779e54"},{"path":"product/runtime/auths-gateway/src/effect/lineage.rs","sha256":"0b3ddeb56377b69264bbd4738c624639a8dcad91b4df3328f907db439747faaf"},{"path":"product/runtime/auths-gateway/src/effect/prerequisite.rs","sha256":"e79596a4cbe47e307e3a3056c52582b1cd01a43c4c2d69479ee03df1f62af3b0"},{"path":"product/runtime/auths-gateway/src/effect/release.rs","sha256":"84e2572f76216e02131e9bbcc850f4b3572473eac6dd71baa144e63a2270cff7"},{"path":"product/runtime/auths-gateway/src/effect_binding_boundary_tests.rs","sha256":"83d8e0edf524a2be0d2c494e4b9897cab0ddcf61184828d716bae10cbaf904b4"},{"path":"product/runtime/auths-gateway/src/effect_candidate_staging_tests.rs","sha256":"7db0f4fd86cf119a6b4b0702267c91debdf11a73fc93105ce7e98d0c6e4cd8d9"},{"path":"product/runtime/auths-gateway/src/effect_candidate_tests.rs","sha256":"e93c08c2eca2abdc58f7db9fbf19e775e4f709225b04789832e2b8f5a81c8948"},{"path":"product/runtime/auths-gateway/src/effect_content_tests.rs","sha256":"63eb623413167bf9ff34161b6bf4f54f68709af9fb1d1e7a419a07f63ce04409"},{"path":"product/runtime/auths-gateway/src/effect_created_resource_tests.rs","sha256":"98f7a9de7824dbf3e2361b3006ef823002b391d557969442edb371266f7673db"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_delivery_tests.rs","sha256":"9586b84b045561edbcf8276cd9769b412240f04248e240cd29a5068d4cd03a00"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_journal_tests.rs","sha256":"19f349a090f07288cfafe24aaffad49f28fe163e59870520aac6bb899f673a99"},{"path":"product/runtime/auths-gateway/src/effect_disclosure_tests.rs","sha256":"5389b03d7d0cd5b23abaa3c396450fa4018102c942b27af35aef81e65b9bb841"},{"path":"product/runtime/auths-gateway/src/effect_engagement_admission_tests.rs","sha256":"46a34a83cfecb180c6f0937e83b8b14009afb4ce315864dfb9b3137759cb9959"},{"path":"product/runtime/auths-gateway/src/effect_engagement_control_tests.rs","sha256":"71e2e965b71b52d2fb877e22e5d4951d1d4072adede4b60dc3996197ac554395"},{"path":"product/runtime/auths-gateway/src/effect_engagement_delivery_tests.rs","sha256":"14b241916d9c3fe8141a38e93c62f8b8a039f2780ad3cd63282e707feaa4d1b3"},{"path":"product/runtime/auths-gateway/src/effect_engagement_information_tests.rs","sha256":"27735a9e1237a063c2a525cdcd93e8102164d549dc72509767a977ab4abd8491"},{"path":"product/runtime/auths-gateway/src/effect_engagement_prerequisite_tests.rs","sha256":"0566288b7f77f5beda44c8374f31a5053e02b44ccbe92781618e9fd90b1a6800"},{"path":"product/runtime/auths-gateway/src/effect_engagement_tests.rs","sha256":"2b78b315c7539d4119ce5b20164d6e4855d9b403b76eaa5b72fa3b72959a7621"},{"path":"product/runtime/auths-gateway/src/effect_instance_recovery_tests.rs","sha256":"eee64773b6373e1bd7185c07c5c4ffeaacafb907f4d0aa17b89ba1556beec5e4"},{"path":"product/runtime/auths-gateway/src/effect_native_tests.rs","sha256":"fd9cd960dfb02f68eef479ed2a95d65b79882c20f8a737c9a74d6a4222af407b"},{"path":"product/runtime/auths-gateway/src/effect_prerequisite_tests.rs","sha256":"51efa528051919d0ca67643cac3d0e06afac534706b802adb18311e2bfa222ff"},{"path":"product/runtime/auths-gateway/src/effect_read_budget_tests.rs","sha256":"9bf8491f0da471e07b5d96dbfdbdf5fbe5a47fec11700dca55a6ac05a1ebb68b"},{"path":"product/runtime/auths-gateway/src/effect_recovery_prerequisite_tests.rs","sha256":"e6235b83ac159d9446d79e6e072dd4aa9d0447a68055be3b32de6450a2300699"},{"path":"product/runtime/auths-gateway/src/effect_review_approval_tests.rs","sha256":"6e5c5a72ec93255d7d8f219ae8cf4401431644ff03d624164645a1e9d2b2e87e"},{"path":"product/runtime/auths-gateway/src/engine.rs","sha256":"113390cb4ef92ef337b5f82b7c77c54a428ec492756f90100b74002487dc8c7f"},{"path":"product/runtime/auths-gateway/src/entry.rs","sha256":"6fd17c142c0001b9cda33c33b0e18f4d1d40866cde8a66b3f57d46f971c1ead9"},{"path":"product/runtime/auths-gateway/src/entry_tests.rs","sha256":"86dcfc4918394052d18fc5509dcc0e740a064a97b084d1c2c9f23eddedaa6db4"},{"path":"product/runtime/auths-gateway/src/execution_witness.rs","sha256":"e8b1a8e41d5e3fa309760067849d390ef065feeb46701a83391832645a2f000c"},{"path":"product/runtime/auths-gateway/src/fuzzing.rs","sha256":"2dcf0a15e407a9180c7fecb7eecfaf4674698aa997b1f5de9a3649a49baebd1b"},{"path":"product/runtime/auths-gateway/src/generation_floor.rs","sha256":"09ed98d9533c7a4355890943ee6ef26a9c20da775b4cb77fdb25a723f6a16e54"},{"path":"product/runtime/auths-gateway/src/harness.rs","sha256":"5e296231c98e6429f3d805150fab9ce2d6a5789d41dd83f562b677314374567b"},{"path":"product/runtime/auths-gateway/src/harness/authoring.rs","sha256":"de511d89bf6bb72e443558caf0c4835dad2908b5fe5c13a3a02483e85dd7d354"},{"path":"product/runtime/auths-gateway/src/lib.rs","sha256":"a39306228bb0ee5e7c50fb83149756a15fa761d52bb6807942f1ec77db2049d6"},{"path":"product/runtime/auths-gateway/src/listener.rs","sha256":"aa08239bcbc1fcb55e8a212fbdf6a84f12985b0d436dcb51dc58b06e59e435f2"},{"path":"product/runtime/auths-gateway/src/native_budget_tests.rs","sha256":"d6de965afc7f794e611545744fa515f833abf315157519ed8390c195a7dac8c0"},{"path":"product/runtime/auths-gateway/src/native_cost_store.rs","sha256":"d1acdd7e4076e3a32f312dce74a01e5dcbccdb1f8912758524b7841d61377eed"},{"path":"product/runtime/auths-gateway/src/native_cost_tests.rs","sha256":"45bcb4e9174d4c23495ac734a42b5f8b7735c14d4599cd191d50f6547aaf374c"},{"path":"product/runtime/auths-gateway/src/native_crash_tests.rs","sha256":"46998a973388884d902a6b07e12fa342fb08ea77363a43a41b0b0a7a5ccbcde9"},{"path":"product/runtime/auths-gateway/src/native_cross_recipe_tests.rs","sha256":"e2dbde7afba1b3da5df3a7a44821f413ab7861a5417ad16f8b912f390128d115"},{"path":"product/runtime/auths-gateway/src/native_dependency_tests.rs","sha256":"0e15d059140ad485b2548f4234b94424d62b5563a8dded42224329a76b101f37"},{"path":"product/runtime/auths-gateway/src/native_differential_tests.rs","sha256":"17fc0803fe5e7f78b416f8f68e7c9066baf1bab69bdf0b51c44fd19e3d719da8"},{"path":"product/runtime/auths-gateway/src/native_disclosure_budget_tests.rs","sha256":"bb2a6f76f06a6d42d69698f7d22d0b4aeb4dc857e442042d65582097567009fb"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_testkit.rs","sha256":"4beb946a288e4fe082cc0917f4200b18b8154eff98eca1ea3d0c830ffdc3625d"},{"path":"product/runtime/auths-gateway/src/native_disclosure_crash_tests.rs","sha256":"425e423f04d92794656d4da915125e4d0a8be25ec85fb88244ee0c27ece8ec44"},{"path":"product/runtime/auths-gateway/src/native_disclosure_entry_tests.rs","sha256":"50f5dc35a9a8ef462b8833296cb313b2acec81d544b7e317c7f188741d0786db"},{"path":"product/runtime/auths-gateway/src/native_disclosure_file_fault_tests.rs","sha256":"72d67bb0d3fd77fb93c4f5d3ab0afa5a939742b5a47acf006a511d99d72cee9f"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_batch_tests.rs","sha256":"a8b8a90210d9f7f0012e40701c09c524527f93f9e56933d89b58a38464cba702"},{"path":"product/runtime/auths-gateway/src/native_disclosure_pg_commit_tests.rs","sha256":"1e14503140805c12883e1c288b75029aa7fd9ebe8c5d490a4c503161c4a27a4b"},{"path":"product/runtime/auths-gateway/src/native_epoch_tests.rs","sha256":"e37d34e699baa2b84578bd4c378975dbdceb407de51861c2217afdcf7b48e3b9"},{"path":"product/runtime/auths-gateway/src/native_federation_tests.rs","sha256":"bf2c6313f70c4b7f51f9ad05351048be3625d9432f3c725e84b046936304f540"},{"path":"product/runtime/auths-gateway/src/native_file_fault_tests.rs","sha256":"e1077a0059aa69918fb7e0a3481edd19af45a7343ce876583fbdbc96c4291b21"},{"path":"product/runtime/auths-gateway/src/native_generated_history_tests.rs","sha256":"5a5e308c1e4bc32cac31badf91e9453bed62e3e90f1b6585fc522bb4038990f9"},{"path":"product/runtime/auths-gateway/src/native_guarded_mutation_crash_tests.rs","sha256":"5329f72e7f22399a17627b058c2035c243e1b6ba60c9dfcd1c834258244cc440"},{"path":"product/runtime/auths-gateway/src/native_information_journal_tests.rs","sha256":"067bc51f7011971e8c5d021430fbfe323e5cc3cd7cde41c546cc92fad1f2cbc2"},{"path":"product/runtime/auths-gateway/src/native_information_replay_tests.rs","sha256":"165a1dce11c2006e6adfb5eee4c4977737b830995e6e29f77544a999893b0a5f"},{"path":"product/runtime/auths-gateway/src/native_journal_tests.rs","sha256":"d803ff53f90ce2a8c29808b4f874cd81954a3a5c52e19b519ab22f0543808fe1"},{"path":"product/runtime/auths-gateway/src/native_mutation_budget_tests.rs","sha256":"41d7f560d6b04e750acb2f8add2544745743ea9fea760a8ffd5ec5aab307e94c"},{"path":"product/runtime/auths-gateway/src/native_mutation_crash_tests.rs","sha256":"3e1befd35e7264024666331b52ca2245540ffa8f9927ed62e3aa45c7c8cc8950"},{"path":"product/runtime/auths-gateway/src/native_mutation_entry_tests.rs","sha256":"219a1986cf7440d31734db9db3c25f7997486a2fc29fee0a1ac8c7f0ee9ce803"},{"path":"product/runtime/auths-gateway/src/native_mutation_file_fault_tests.rs","sha256":"252f6ca9455b291b0873d983c8fccc75254d947b89a3fe9a1de0155c8ee53930"},{"path":"product/runtime/auths-gateway/src/native_mutation_journal_tests.rs","sha256":"181bf0a196805e50944cff4fe2315459eba877e7d7b5b90bf3c99e3353a8cad7"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_batch_tests.rs","sha256":"137f0e2f0e8d950cea3b38a7a03113c61177e54083f11eecc34b994ce41728f1"},{"path":"product/runtime/auths-gateway/src/native_mutation_pg_commit_tests.rs","sha256":"5d9a3b8a1601c83c66db3aefd904c16233ce2700d070ba5c9c4f81f4051c5fad"},{"path":"product/runtime/auths-gateway/src/native_mutation_replay_tests.rs","sha256":"3a874e1416cbb29cce70930f9955a70b4a5ad46e2cbca8d55f1acf070215cfbd"},{"path":"product/runtime/auths-gateway/src/native_partial_upload_tests.rs","sha256":"5fa867219d61b7c8a563e7cf5111291f15b8a11464623859be8aa9ea858170ea"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_proxy.rs","sha256":"1c95b3f8af48b78dc4f1c1baa3b26c1aa7bbe868c23aefbb32f1f0ae592f0045"},{"path":"product/runtime/auths-gateway/src/native_postgres_commit_tests.rs","sha256":"f021b110991ba3ae497705d0aaa0350a210f09b6f102fd71ac2f8eb4ff8f30c0"},{"path":"product/runtime/auths-gateway/src/native_postgres_fault_tests.rs","sha256":"0c6edea869a20765b322fa69c48e580aa0664e726b6cef483d4eba49803135ba"},{"path":"product/runtime/auths-gateway/src/native_process_tests.rs","sha256":"778a02ea4de3a0655021bad7d2f4b5f0007c6518ef60e966db3da49bfaf22c37"},{"path":"product/runtime/auths-gateway/src/native_public_evidence_tests.rs","sha256":"dac3a70f4535a14aab49ceed5a6b5fd7002e199270bb5a120f5bc8edfa5398bf"},{"path":"product/runtime/auths-gateway/src/native_recovery_actor_tests.rs","sha256":"bfdcdbaa0ee1d6822c57e5ab9ca524e731c393f9289c5508b61a0fc1d0b065e5"},{"path":"product/runtime/auths-gateway/src/native_recovery_authoring.rs","sha256":"9f4e8008160b349a52267eacd6a1c1e5c31c3c1cdfd71b574162ccaa9f7430b6"},{"path":"product/runtime/auths-gateway/src/native_recovery_history_tests.rs","sha256":"0c6ec8fe18fd4cc8496f04c3bc38552c3602d7254cae979fac76aeb7c7e4f41b"},{"path":"product/runtime/auths-gateway/src/native_recovery_limits_tests.rs","sha256":"f147c2e78cbe364fb3fd0c97bbbacdad86d77ca8c0b8575d9fa108968f82379a"},{"path":"product/runtime/auths-gateway/src/native_result_wire_cases.rs","sha256":"2b93c8ed96d7092216410bb99435411fd57497284639f56e0120b16639a98eb2"},{"path":"product/runtime/auths-gateway/src/native_retention_tests.rs","sha256":"224c941e394dd711a7ee19e7b52a1d6b7359eec62e7decec323d066319cb59d3"},{"path":"product/runtime/auths-gateway/src/native_scope_tests.rs","sha256":"8d3f362df9fadc10c22f0483f3a16d238d0f82f393a628727adf0b728707673e"},{"path":"product/runtime/auths-gateway/src/native_threshold_testkit.rs","sha256":"74e6b6ed1b77b463effff132fd8af9b3b59aeee64704a8fe8a19ed3ca9d79bf7"},{"path":"product/runtime/auths-gateway/src/observed_tests.rs","sha256":"91223493fefd3efc3fec58db225f00786b539e3b24027419e919d8bd7310059c"},{"path":"product/runtime/auths-gateway/src/observer.rs","sha256":"1c8988dd8807566d5a152e1894aa0f4c80c3ba7302ac910a4a6978d4f31b323d"},{"path":"product/runtime/auths-gateway/src/onboarding.rs","sha256":"6180e79d7698bcd4dd6ffdf32dcfbe14427f96de92f4ae4ceac4dda651f3671b"},{"path":"product/runtime/auths-gateway/src/operator.rs","sha256":"fe3b11fcf8e2394ab955b09a5b9b1f979c46f9e07a4f16e1a3ca160d675f1ace"},{"path":"product/runtime/auths-gateway/src/participant_control.rs","sha256":"58acbac1ab812963ad0ba0e2864395a87b3afe50962263cb44e19776cf5100b8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment.rs","sha256":"719e82ed5f30f7b37d6d87e45220918d945a2ed8fadc9e760308398e9f6501a4"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audience.rs","sha256":"83940af76073d391f1181eccea2e9b682dbd7ffcace6c39b2123ebe09e721573"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/audit_tests.rs","sha256":"1a8cb537f16d023962f1375b7f15d0879b2be85c29775dd677c84d87b8c9d183"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/configuration_tests.rs","sha256":"2e1cb7024ff137bfd3292929f26ec078c9213f6276f4a2f915b279530c6c7782"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/cross_recipe_fixture.rs","sha256":"5a957eeac83da3f1c74e923648319674f6a90e6673b45fdc029b784b1c09053a"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/identity.rs","sha256":"a04328f93d59da6c34d623319b8a6f55a32e7d718837109b299ef6935b126930"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/recovery_tests.rs","sha256":"b13faae436b325fa6ea234613f1542f4ec8b1dfb7082d3f31339ea7f4a8b0cb8"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/root.rs","sha256":"586bfc83e1a615b7d255ea235f6e519945126bb3ba7fe41d2aecd1dbcdccc797"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tests.rs","sha256":"a6f83af4c504d7a5bdedad90e473c8032f10c384adeab29075051389040f7696"},{"path":"product/runtime/auths-gateway/src/participant_enrollment/tree.rs","sha256":"4f2b8965b91b6e23317168221d077b074fd149690e28c30fad6055982ada584e"},{"path":"product/runtime/auths-gateway/src/pending_vectors/attempts.rs","sha256":"79803db1c278b2133d4adb112ab325247f359cfa5cf34e3de32898f6a9bffe62"},{"path":"product/runtime/auths-gateway/src/pending_vectors/bounds.rs","sha256":"e612217307e1da5b0eb5ee6582a7458bb064b8aa8a529fc6555b1b334127ab68"},{"path":"product/runtime/auths-gateway/src/pending_vectors/codes.rs","sha256":"6fb3f1679b0fd2ca7a8ac6aaee65f586b9eb809d9d7c9e26d3dd8ae2bfd10307"},{"path":"product/runtime/auths-gateway/src/pending_vectors/keys.rs","sha256":"b0b1f79d2fadc06e91378a8250223a429163138e4b86e90e09bc207d80fabf86"},{"path":"product/runtime/auths-gateway/src/pending_vectors/mod.rs","sha256":"5de8340f0ef71a0b57a09e323fefe473d3160c6ae952b9ba46f714825fbacafc"},{"path":"product/runtime/auths-gateway/src/pending_vectors/outcomes.rs","sha256":"a8960d8e055ac31827e379513f57f00ed868b559079fa2a4687e1b055d48e3ca"},{"path":"product/runtime/auths-gateway/src/pending_vectors/production.rs","sha256":"15c687599b0342dc141878afdf727092b23ade67ee5564eaa671f3f06befad57"},{"path":"product/runtime/auths-gateway/src/pending_vectors/recipes.rs","sha256":"5d550e3708ea41a9547ae2207699bde5ff4435f5a1ed7afa4378fb8defb51bb4"},{"path":"product/runtime/auths-gateway/src/pre_entry.rs","sha256":"3f2554feda72fa047229d427504676a1fb14894bdd377055a3108d7b3e3587cd"},{"path":"product/runtime/auths-gateway/src/prerequisite_race_tests.rs","sha256":"683cc46b3718d12dbb42668dae4bc6ec7e7508dcbb6b6232fead2e3e4f510d0d"},{"path":"product/runtime/auths-gateway/src/property_tests.rs","sha256":"85a77aaf01d9be51e1dd7c72461653a099c51b0ca9c818800d991abe262b198a"},{"path":"product/runtime/auths-gateway/src/qualification.rs","sha256":"f25bbb01c2a6131633c5a4de4e59345b761609e47b3c69353187364996ec87ea"},{"path":"product/runtime/auths-gateway/src/qualification_simulation.rs","sha256":"61f4117e33db07be83ce0f0376f79a405ff6d8bb7ffc2e28ff0bf927486941ce"},{"path":"product/runtime/auths-gateway/src/qualification_tests.rs","sha256":"ed9eb74599074af67730d63f8c5093f6a5277bced96dffeb81317a6dd9f4c8c6"},{"path":"product/runtime/auths-gateway/src/quorum_tests.rs","sha256":"a6533de9bc2689ec632f009404daf363494e224e7b89b1c65bb2e2cd4fc6421d"},{"path":"product/runtime/auths-gateway/src/readiness.rs","sha256":"911c3f11892f94641574375e2da4c671c802738f71082f12c39832331052d43d"},{"path":"product/runtime/auths-gateway/src/recipe.rs","sha256":"efb99a8f060b5633ea8ea75f24378e701f6ba2af023faf8c7609e4de4e868637"},{"path":"product/runtime/auths-gateway/src/recipe/content.rs","sha256":"e3f8aa8cf2dd9ef5777d9d1e76331052c67be87873db0c2cd6a8f48ff940d9d6"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource.rs","sha256":"2284b6f7363b1a15dd3c91dd3043f46a5c7a9c12d997213b13751b82ae627e26"},{"path":"product/runtime/auths-gateway/src/recipe/created_resource_tests.rs","sha256":"ab371d7d7a5dae249da924e7b94d5c863491a2af796d2febdf2dda2a191c559f"},{"path":"product/runtime/auths-gateway/src/recipe/effect_review.rs","sha256":"8f94896f0d124162d3dbd080c44582bb23ad181bb582ff5cd3d049d75fcb6d77"},{"path":"product/runtime/auths-gateway/src/recipe/lower.rs","sha256":"81118ea7ae6c2d9984b88fe9991f91283070859d56923ee4fdfe9a50eee9ccb1"},{"path":"product/runtime/auths-gateway/src/recipe/response.rs","sha256":"0b4a074eb05b98685697094ed4775c5fe588b3e34f954aa1844135fe14c94487"},{"path":"product/runtime/auths-gateway/src/recipe/review.rs","sha256":"f9f88f6d54c9a517b55ea717ce8caf5199954ff710c0d20e2bb609f6b1344a51"},{"path":"product/runtime/auths-gateway/src/recipe/runtime.rs","sha256":"6301c005c5f014eb81a7a85dfa3bd256ec15e35bf1cdf6e60815a2a18b7151a0"},{"path":"product/runtime/auths-gateway/src/recipe/source.rs","sha256":"f79e481ab0f40985819b317c540c715766611b5c8c0e5647c87849fefc10cbac"},{"path":"product/runtime/auths-gateway/src/recipe/tests.rs","sha256":"78cfa166bb02b722c92205d2a95c261ef4f3cc272150145980252cb4c51c13d1"},{"path":"product/runtime/auths-gateway/src/recipe/validate.rs","sha256":"3f613af38c5cf29901575af4f82a9daca6718b2da70bc84baa0994a71be6113b"},{"path":"product/runtime/auths-gateway/src/resource_identity.rs","sha256":"edf093bf84c0ca6c0a300adc6060fe10cf58b90e592dc3cd6ebd58e73632373d"},{"path":"product/runtime/auths-gateway/src/scenario_tests.rs","sha256":"eba5fe0268e5d8516eea79a2cf418f5c52ccdf777fa94e553cfba00f0b90865e"},{"path":"product/runtime/auths-gateway/src/separation.rs","sha256":"be9306848ca5d801767cf6aa14247c8618312ef0e202f00ce0c24c4844491061"},{"path":"product/runtime/auths-gateway/src/simulation_attestation.rs","sha256":"88705e5d45415f760f1e3c3a065c35c48f4f4065bf7b3feb7882246983814d6f"},{"path":"product/runtime/auths-gateway/src/store.rs","sha256":"5645f57bcd92190ff2c83836744ecc514558c466bb5d377b258a8d82d21504f9"},{"path":"product/runtime/auths-gateway/src/store/acquisition.rs","sha256":"c52193c7ca87f4eedc3a3523be12eb85a2825fa989d8a61b076be734eb99684e"},{"path":"product/runtime/auths-gateway/src/store/acquisition/candidate.rs","sha256":"90c133dfc48ed351d0f1fea9de236135e82297719c383f9f37404a335909d225"},{"path":"product/runtime/auths-gateway/src/store/acquisition/content.rs","sha256":"92f87e4556335af8e1c4157e60e6936ca02b271381569e14510bc2c35e697ece"},{"path":"product/runtime/auths-gateway/src/store/acquisition/recovery.rs","sha256":"cc1be15bb948608868d33a088951530834235220a8fed7d77161ff53bf416dc1"},{"path":"product/runtime/auths-gateway/src/store/capacity.rs","sha256":"d25c4a0d753317270cb352246c70642bf0659e6448d14061356e4e9ea7ed3811"},{"path":"product/runtime/auths-gateway/src/store/disclosure.rs","sha256":"3b2f68d024bb10b734bd1e48ceb4eed23d1348ec6f716be78ec27384458ff007"},{"path":"product/runtime/auths-gateway/src/store/engagement.rs","sha256":"953ef4c20f16775c10bca98b820536f347a6ce9c756934503efdb7bb77c41ff5"},{"path":"product/runtime/auths-gateway/src/store/mutation_phase_tests.rs","sha256":"163c177cf5e053126b46c7de7e429a99df789090b1127b5d3b91636efcac4365"},{"path":"product/runtime/auths-gateway/src/store_retention_tests.rs","sha256":"a9e300fde3c45999764ee05c4c6ea46cfb9ffcaa51b82337a322925ad50f4f50"},{"path":"product/runtime/auths-gateway/src/store_testkit.rs","sha256":"720bdda4464a54198348e1cac8ff75ad4882b9ce10c389befb4e9bc80340156c"},{"path":"product/runtime/auths-gateway/src/submit.rs","sha256":"a8e5e908b99d997cdf34c46c5827e04c0f502307f71497d15511bb40ef52815b"},{"path":"product/runtime/auths-gateway/src/support.rs","sha256":"d4865f95a7a2fdfe297f3f73687c05ab64a6b911814daf5f2b6c703ce58262ce"},{"path":"product/runtime/auths-gateway/src/transport.rs","sha256":"0ad16c63c19cc41d11c485625c8fc0617aede21401d16ec814401f963538bb46"},{"path":"product/runtime/auths-kernel-runtime/Cargo.toml","sha256":"926bcd0053e5edd703be8f0027ad009e2982db013c8174c1366edbf38b48087d"},{"path":"product/runtime/auths-kernel-runtime/src/lib.rs","sha256":"7108faae9ca4bc32dc093ddaf885ac8f74f3c9b8d317b7c7d0ed00d1d0ab5972"},{"path":"product/runtime/auths-lifecycle/Cargo.toml","sha256":"c5053c705f8d5554b44e432fe75287a2faf11d644e5a2552e45ad6cd94176af5"},{"path":"product/runtime/auths-lifecycle/src/codec.rs","sha256":"51c4b746749150e8bfcd8ff972b3f6c1ef40bec15583448ec1b471d9ad737dc0"},{"path":"product/runtime/auths-lifecycle/src/digest.rs","sha256":"55282cd7d8aba37713c2dcb5357c9877819edb72a30eadefb860d28d7d3a3eb7"},{"path":"product/runtime/auths-lifecycle/src/identifier.rs","sha256":"31620e8c16de68d3d2d3b84d6353c1a5b9d4151d8247f91fa389b906a8e660f1"},{"path":"product/runtime/auths-lifecycle/src/kernel.rs","sha256":"2abb8c094b36d35b364e74d78091d14c5d6f3d1eb6552cca3b5538dbd017ce23"},{"path":"product/runtime/auths-lifecycle/src/lib.rs","sha256":"afe5a345cd309b5a4f08ffba3170a6d7f16ff914892b3f2006d5208ed24ec736"},{"path":"product/runtime/auths-lifecycle/src/model.rs","sha256":"1af12bbeeeaa65ec02ddcebd7d2c8c92ec1e339fa40ae85b45ab9b01a722a4fa"},{"path":"product/runtime/auths-lifecycle/src/operation.rs","sha256":"78e6d05fcf5d7ea4f148032a3fa26fdfcab77eb346019effe927b08e0d64d732"},{"path":"product/runtime/auths-lifecycle/src/registry.rs","sha256":"53495fe6f7a77422593a41623e28716f1c140dcc1e00f87f6b0ffbfb93a5ef90"},{"path":"product/runtime/auths-lifecycle/src/sealed.rs","sha256":"2e0c03b5813c926c159598bb7890d1523825edbe57cd687d42a5dfb3374a0c19"},{"path":"product/runtime/auths-lifecycle/src/test_support.rs","sha256":"221d9a5c5ef8e1f9f8fd66927484eaf813571d0568470278ecd8fa08a5eec8cd"},{"path":"product/runtime/auths-lifecycle/src/transition.rs","sha256":"011805a28efdd541f44ccea54dd0e34a1e58f4004447ee58013703b4fb6b2822"},{"path":"product/runtime/auths-runtime/Cargo.toml","sha256":"dd29d80a8b4bb56c869f036a6c9998f6e6d1c0383ac5dc03fa42b24abe2a7ff7"},{"path":"product/runtime/auths-runtime/src/lib.rs","sha256":"132ca03d58c14905d3a822a4972f42a22a5ad33a45f2ba9ca44f3a57d810b4b0"},{"path":"product/runtime/auths-runtime/src/production.rs","sha256":"fd4eff4270c571c10fcff6cf27df28961ebf074de8a1a028f500fda1ca376820"},{"path":"product/sdk/auths-approval-quorum/Cargo.toml","sha256":"df904971fca87a24194c5816738a331588fe8f164acb5d70839a35dca5f57114"},{"path":"product/sdk/auths-approval-quorum/src/lib.rs","sha256":"72e4086088a1c0912e4e1a9e980f26a5c280bf5ab16ea39c9f0f58d5096ac2ce"},{"path":"product/sdk/auths-approval-quorum/src/remote.rs","sha256":"9fa029c7c63003adf260f8aec55160c545681c60c1bace0d934e7525862aac7b"},{"path":"product/sdk/auths-approval-quorum/src/remote_tests.rs","sha256":"8a09ce17cfee82a035a74edd535f3ebeb3db0e078784740d3997b17dbdb10197"},{"path":"product/sdk/auths-approval-quorum/src/tests.rs","sha256":"0acbf12be3e497dcc6c2d8f29c9af3b1a7ed8e11b75f6399570d4f217a785060"},{"path":"product/stores/auths-stores/Cargo.toml","sha256":"a32c4b76d17b264be5d40d24497ff237e1ed87822e8bab86229b3db93106dbe3"},{"path":"product/stores/auths-stores/src/gateway_attempt.rs","sha256":"f39dc84a238db0ebc70ad1ac495da194d2c24b5e1f9905552a9b1143278725a9"},{"path":"product/stores/auths-stores/src/lib.rs","sha256":"40c280a5ff79bfc1cafcf0bb415e775e205637c526973eb94b43a30f86d4e6fe"},{"path":"product/stores/auths-stores/src/lifecycle.rs","sha256":"4033f69a8d36de9285b87ab86af363fc85f785918ec2042d0ef1bdcb64d6f73a"}],"schema":"auths.gateway-semantic-closure/1"} \ No newline at end of file diff --git a/product/runtime/auths-gateway/src/semantic_closure.rs b/product/runtime/auths-gateway/src/semantic_closure.rs index d948904ab..3d6ff3f6a 100644 --- a/product/runtime/auths-gateway/src/semantic_closure.rs +++ b/product/runtime/auths-gateway/src/semantic_closure.rs @@ -10,7 +10,7 @@ /// SHA-256 of the schema, a NUL byte, and `semantic-closure.json`. /// Regenerate through `semantic_closure_is_current` with `AUTHS_UPDATE_FIXTURES=1`. pub const GATEWAY_SEMANTIC_CLOSURE_SHA256: &str = - "c0988b20c1828a942478deb03c60e44bdc694a668a810c7c8788b966f6954ed8"; + "3fea3b7b2b5b9c94bbdcdf0c0b0a233e97473c8c595f9d21abb78e078c75ad10"; #[cfg(test)] mod tests { diff --git a/release/semantic-freeze-versions.toml b/release/semantic-freeze-versions.toml index 966b0ac78..cf7c2d941 100644 --- a/release/semantic-freeze-versions.toml +++ b/release/semantic-freeze-versions.toml @@ -1,4 +1,4 @@ -freeze_version = 442 +freeze_version = 443 # Semantic identity counters live outside the xtask source tree deliberately. # The formal source closure binds xtask's executable code, while the semantic @@ -7,7 +7,7 @@ freeze_version = 442 # converge. This file is a reviewed release input, never an automatic output. [entries] "auths.core.protocol" = 37 -"auths.frozen-bytes/architecture/dependency-graph.json" = 81 +"auths.frozen-bytes/architecture/dependency-graph.json" = 82 "auths.frozen-bytes/bindings/wasm/auths-proof-wasm/identity-abi-v1.json" = 4 "auths.frozen-bytes/bounded-domains.toml" = 2 "auths.frozen-bytes/core/conformance/v1/manifest.json" = 2 @@ -16,10 +16,10 @@ freeze_version = 442 "auths.frozen-bytes/core/fixtures/v1/manifest.json" = 16 "auths.frozen-bytes/core/formal-vectors/v1/manifest.json" = 1 "auths.frozen-bytes/demos/benchmarks/profiles/release.toml" = 1 -"auths.frozen-bytes/formal/assurance-manifest-v1.toml" = 67 +"auths.frozen-bytes/formal/assurance-manifest-v1.toml" = 68 "auths.frozen-bytes/formal/qualification/aeneas/generated" = 20 "auths.frozen-bytes/formal/qualification/aeneas/qualification.toml" = 17 -"auths.frozen-bytes/formal/qualification/aeneas/source-closure.json" = 112 +"auths.frozen-bytes/formal/qualification/aeneas/source-closure.json" = 113 "auths.frozen-bytes/product/conformance/v1/mechanism-profile-conformance.json" = 1 "auths.frozen-bytes/product/conformance/v1/simplified-product-waist.json" = 4 "auths.frozen-bytes/product/fixtures/v1/bounded-policy/manifest.json" = 3 @@ -60,11 +60,11 @@ freeze_version = 442 "auths.product.mcp-closed-execution" = 32 "auths.product.mechanism-profile-conformance" = 13 "auths.product.operations" = 7 -"auths.product.public-sdk-contract" = 169 +"auths.product.public-sdk-contract" = 170 "auths.product.receipts" = 13 "auths.product.release-assurance" = 7 "auths.product.simplified-waist" = 20 "auths.product.vocabulary" = 31 "auths.release.benchmark-contract" = 1 "auths.release.evolution-contract" = 91 -"auths.release.public-surface" = 442 +"auths.release.public-surface" = 443 diff --git a/release/semantic-freeze.json b/release/semantic-freeze.json index 67b9583b9..536d65df3 100644 --- a/release/semantic-freeze.json +++ b/release/semantic-freeze.json @@ -1,6 +1,6 @@ { "schema": "auths.semantic-freeze/1", - "freezeVersion": 442, + "freezeVersion": 443, "publicSurface": { "rustRoots": [ "auths", @@ -94,7 +94,7 @@ }, { "id": "auths.frozen-bytes/architecture/dependency-graph.json", - "version": 81, + "version": 82, "classification": "frozen-bytes", "categories": [ "canonical-generated-evidence" @@ -102,7 +102,7 @@ "owners": [ "architecture/dependency-graph.json" ], - "sha256": "082f1ba0250f4d7742d2b06ae8a0ef8bc88eac62407d592f3d0330cc116c5370" + "sha256": "8cc7b3f1ddd63f66119731ce6aebed12e3a5b46036cfcbd8dd43aa9018e88328" }, { "id": "auths.frozen-bytes/bindings/wasm/auths-proof-wasm/identity-abi-v1.json", @@ -202,7 +202,7 @@ }, { "id": "auths.frozen-bytes/formal/assurance-manifest-v1.toml", - "version": 67, + "version": 68, "classification": "frozen-bytes", "categories": [ "canonical-generated-evidence" @@ -210,7 +210,7 @@ "owners": [ "formal/assurance-manifest-v1.toml" ], - "sha256": "395167dd82c352cec015c4c606e4b112ab0705e1b66e7f64539adc72fd1859bd" + "sha256": "7bef5156dc7d773bc926f912ef7b555a58bc84d32e840fb390719cd1c3df1f5a" }, { "id": "auths.frozen-bytes/formal/qualification/aeneas/generated", @@ -238,7 +238,7 @@ }, { "id": "auths.frozen-bytes/formal/qualification/aeneas/source-closure.json", - "version": 112, + "version": 113, "classification": "frozen-bytes", "categories": [ "canonical-generated-evidence" @@ -246,7 +246,7 @@ "owners": [ "formal/qualification/aeneas/source-closure.json" ], - "sha256": "c9762fe9036c36a2e98e39dcf3e1add0505563b127352cec63e8f7fa94a5187b" + "sha256": "61f59c73a60651aa20d5eaed05c70bc4049297ca17cddadcfca4c7a8735a7791" }, { "id": "auths.frozen-bytes/product/conformance/v1/mechanism-profile-conformance.json", @@ -871,7 +871,7 @@ }, { "id": "auths.product.public-sdk-contract", - "version": 169, + "version": 170, "classification": "frozen-meaning", "categories": [ "rust-sdk-contract", @@ -889,7 +889,7 @@ "product/runtime/auths-runtime/src", "product/sdk/auths-sdk/src" ], - "sha256": "b1d99aafef2a6b9150709eb7f7ccfd24fd3d0762a03db0b3a6f71aa878db8384" + "sha256": "b09fee04583daa039257f4411688ecfbdacf38a8985ce767d052bb8337ef3eb0" }, { "id": "auths.product.receipts", @@ -1011,7 +1011,7 @@ }, { "id": "auths.release.public-surface", - "version": 442, + "version": 443, "classification": "release-metadata", "categories": [ "package-names", @@ -1104,7 +1104,7 @@ "xtask/src/release_launch.rs", "xtask/src/semantic_freeze.rs" ], - "sha256": "aa2943ba27496973624e6081bd2cb1246c1fc9f1789b304159c3292ee991e5ff" + "sha256": "53f787ef826628a8a506adf9cb48556d3642cebd50f9164a8d6fa68f721549d2" } ] }