You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adversarial assurance: mandatory veto at commit (Phase 7.1, lib/assurance/, opt-in) — AssuranceGate runs a veto chain on every pending blackboard change and signs a short-lived hybrid post-quantum receipt only when every check allows; LockedBlackboard({ assurance: new AssuranceVerifier([gate.publicKey]) }) then refuses any commit without a valid receipt and refuses direct write() / delete() (AssuranceRequiredError). Use proposeAs(credential, key, value) → validateWithAssurance(changeId, gate) → commit(changeId, undefined, receipt). Receipts bind change id, key, value, proposer, and reviewer; the proposer can never review its own change, and reviewers are drawn at random (CSPRNG) from a pool so agents cannot pick who checks them. Checks fail closed (throw or timeout = veto). Adapters: validatorCheck (hallucination / quality validator, optional minScore), sentryCheck (prompt injection, canary leaks, guarded keys, any sentry detector), consensusCheck (BFT consensus with model-family diversity), reviewerCheck, predicateCheck.
test-assurance.ts (CI, npm run test:assurance): receipts, fail-closed checks, separation of duties, no-bypass blackboard, replay and borrowed-receipt attempts, and hostile scenarios (prompt injection and canaries planted in shared state, same-model echo chambers).
Trust ledger and known-answer spot checks (Phase 7.2) — SpotChecker mixes tasks with verified answers into an agent's real work at a configurable rate (default 5%); probes and real tasks reach the agent in the same shape with opaque single-use tickets bound to that agent, so it cannot tell which are tests. TrustLedger scores every graded probe (Bayesian reliability; wrong answers cost 3×, evasion 1×, giving a different answer to the same probe 5×; unanswered probes count as evasive), caps the agent's AuthGuardian trust at its reliability (never above the operator baseline), and latches a quarantine below 0.4 that only an operator can release. trustCheck() vetoes commits from quarantined agents. In the test scenario a 30% saboteur is quarantined after ~170 tasks at a 10% probe rate; an honest agent on the same work is not.
Diverse consensus (Phase 7.3) — ConsensusPolicy.minApprovingFamilies requires approvals from several model vendors, and familyBalanced: true gives each vendor one combined vote so stacking evaluators from one vendor cannot outvote the others.
Commit-reveal blind cross-checks (Phase 7.4) — BlindCrossCheck rounds: each agent commits to H(roundId ‖ agentId ‖ answer ‖ salt) and reveals only after everyone has committed, so no agent can see, copy, or adjust to another's answer. Copied commitments are rejected, answers that do not match their commitment are equivocation (recorded as self-contradiction in the trust ledger), missing reveals are evasion, and disagreements are escalated. crossCheckVeto() lets a commit through only if it writes exactly the independently agreed answer (when scopes it to the keys that need it).
Staged commits with delayed finality (Phase 7.5) and monitor-before-enforce (Phase 9.4) — DelayedFinality is a veto check that holds each staged change for a window (re-run validateWithAssurance on the same pending change after it); a sentry or the operator can veto it during the window (latched for that exact change), and changes classified as irreversible (payments, deletes, deploys) also need k-of-n hybrid-signed approvals (signStageApproval) from designated approvers, never the proposer. mode: 'observe' never blocks and reports would-hold events instead.
Plan-versus-action enforcement (Phase 7.6) — PlanRegistry: the orchestrator or operator approves an agent's declared plan (tools, blackboard keys, paths, destinations; exact names or one trailing *; no bare *, no ..); anything outside every active plan is blocked (assert() / PlanViolationError for tool calls, planCheck() at commit) and planDetector() turns it into a critical sentry finding. Approved plans can only be narrowed unless the operator widens them, and they expire (≤ 7 days).
Red-team suite (Phase 7.7) — test-assurance.ts runs hostile agents against the full chain on a real blackboard: a liar who switches its answer after seeing the others, a saboteur writing a number nobody independently agreed on, prompt injection planted in shared notes, writes outside the approved plan, the direct-write backdoor, and a quarantined agent — none reaches shared state, while honest agents keep working.
Authenticated proposers and signed authorizations — with assurance on, LockedBlackboard requires an identity authenticator: agents propose through proposeAs(credential, key, value) and the proposer id comes from the credential (AgentIdentityIssuer: short-lived HMAC credentials, revocable; or guardianIdentity() over AuthGuardian grants). Plain propose() with a free-text name is refused, so an agent cannot pose as another to review its own change, escape a quarantine under a new name, or borrow another agent's plan. Proposed values are deep-copied and frozen, committed entries are frozen, and snapshots/pending lists are copies, so a reviewed value cannot be changed afterwards through any reference. Releasing a quarantine (TrustLedger.release) and approving plans or ceilings (PlanRegistry.approve, setCeiling) need single-use hybrid-signed authorizations (signAuthorization, AuthorizationVerifier) over the exact action instead of a role string; an orchestrator can only narrow an agent's active plans (across all tasks) or stay inside an operator-set ceiling.
Verify-against-source fact checking (Phase 8) — FactChecker splits text into claims (ClaimExtractor), retrieves evidence with provenance (EvidenceRetriever, optional trustedSources allowlist and evidenceFilter against injected passages), and rules per claim with one or more judges (ClaimJudge; majority wins, ties are unverifiable). A supported or contradicted ruling counts only if it quotes a span that really occurs in retrieved evidence, and a supported quote must carry the claim itself (its numbers, at least half its content words, and the same negations and comparatives), so a judge cannot invent support or vouch with an unrelated real sentence. Claims beyond maxClaims, or text that yields no claim, are reported as unchecked and count against the policy. factCheck() vetoes commits that break a FactCheckPolicy and records contradicted claims in the trust ledger; lexicalJudge (polarity-aware, number words, decimal commas) and sentenceExtractor (every sentence with a number or three words is a claim, whatever its length or phrasing) are baselines. Proof-carrying results (8.5): verifyCitations / citationCheck require an operator allowSource allowlist, fetch each cited source with the operator's own fetcher, and require every quote to occur in it.
Hardware-anchored audit (Phase 9.1) — AnchoredAuditLog extends H(size ‖ root) of the Merkle audit log into an extend-only TPM PCR (Tpm2ToolsAnchor, tpm2-tools without a shell; the PCR is chosen explicitly and the locality-0-resettable PCRs 16 and 23 are refused unless allowResettablePcr is set for development; SoftwareAnchor for tests) and journals each anchor; verifyAnchorJournal replays the journal to the register and checks each root against the log or by consistency proofs (a proof is required for every growth step; with neither log nor proofs verification fails), so a log rewritten after anchoring, a forged journal, or a deleted entry is detected.
Shirudo kernel shields (Phases 9.2, 9.3, lib/perpetual/shirudo.ts, Linux) — integration with OpenAI + Cisco Shirudo (signed eBPF upatches, TPM-measured). ShirudoAttestationVerifier (kind: 'tpm-quote') gates lease renewal on shirudo attest verify evidence for the challenge (--nonce=shirudoNonce(leaseNonce)), a pinned TPM attestation key, and a predicted register value, so a host whose shields were unloaded, a different TPM, or replayed evidence cannot renew. ShieldedSandboxRunner wraps any sandbox runner and refuses to launch unless shirudo status is ok with every condition OK; shirudoHostStatus reads it for posture checks. ShieldGovernance lets agents propose shield sources but never deploy them: the proposer comes from an authenticated credential (identity, approvers cannot propose), each proposal is copied off the agent's reach, held for a review window, needs k-of-n hybrid-signed approvals of the exact source hash from approver keys bound to fixed ids (an approval only counts under its key's id, never the proposer; a sentry or operator refusal is latched), is rebuilt only if the source is unchanged, and is built and signed on the operator host; predictChain computes the register value the target must then attest. DelayedFinality accepts the same { id, key } approver binding, and approveVerified returns the verified approver for audit. shirudo runs without a shell through an injectable runner.
SLH-DSA option for long-lived keys (Phase 6.8) — generateSigningKeyPair('slh-dsa-sha2-128s') / perpetual keygen --pq slh-dsa-sha2-128s pair Ed25519 with SLH-DSA-SHA2-128s (FIPS 205, hash-based; algorithm ed25519+slh-dsa-sha2-128s). Its own domain tag keeps halves from moving between schemes. Signing takes ~1.5 s, so it is meant for the operator key; ML-DSA-65 stays the default. Key derivation and signatures are cross-checked against an independent FIPS 205 implementation. ML-DSA keys, key ids, and signatures are unchanged.
Split hybrid signing for HSM/KMS (Phase 6.11) — SplitHybridSigner assembles a hybrid signature from an Ed25519 half (key or external program) and a post-quantum half (seed or external program) and verifies it before use; CLI perpetual hybrid-sign (usable as --signer-cmd); perpetual keygen --split and --ed25519-pub <hsm.pub> (bind a new ML-DSA seed to an HSM-held Ed25519 key); writeSplitKeyPair, hybridSchemeParams, signPostQuantumHalf, parsePostQuantumSeedPem.
Post-quantum TLS check (Phase 6.10) — checkPostQuantumTls / perpetual tls-check <targets…> connect offering only X25519MLKEM768 (ML-KEM-768, FIPS 203) and report whether authorities, proxies, and upstreams negotiate post-quantum key exchange (harvest-now-decrypt-later exposure otherwise); exits 1 on any classical-only endpoint. Requires OpenSSL 3.5 in Node (22.20+ / 24); older builds report that instead of guessing.
Signed key rotation (Phase 6.9) — signKeyRotation / verifyKeyRotation / resolveRotatedKey: the old key authorizes and the new (hybrid) key proves possession; chains are role-bound, strictly newer, at most 16 links, and never return to an earlier key. LeaseAuthority.rotateOperatorKey (POST /v1/operator-key/rotate, operator role) switches a running authority to the new operator key; operatorKeyRotations / CLI --operator-rotation resolve the chain at startup. CLI perpetual rotate. The same mechanism migrates a 6.x Ed25519 operator key (with NETWORK_AI_PQ_LEGACY=allow for that one command).
Fixed
ConsensusEngine counted "Claude", "claude ", and "CLAUDE" as three model families, so minModelFamilies could be met with one vendor; families now compare trimmed and case-insensitively, and under any family rule ballots without a family are dropped instead of forming a hidden "blank" vendor.
Receipts, stage approvals, key-rotation statements, plans, and authorizations are verified from a plain-data snapshot, so an object with getters cannot pass verification and then answer differently (found in review before release).