Release
v7.1.0 — Adversarial assurance, fact checking, kernel shields
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
Read the release here or open the original release on GitHub.
Added
- Adversarial assurance: mandatory veto at commit (Phase 7.1,
lib/assurance/, opt-in) —AssuranceGateruns 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 directwrite()/delete()(AssuranceRequiredError). UseproposeAs(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, optionalminScore),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) —
SpotCheckermixes 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.TrustLedgerscores 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.minApprovingFamiliesrequires approvals from several model vendors, andfamilyBalanced: truegives each vendor one combined vote so stacking evaluators from one vendor cannot outvote the others. - Commit-reveal blind cross-checks (Phase 7.4) —
BlindCrossCheckrounds: each agent commits toH(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 (whenscopes it to the keys that need it). - Staged commits with delayed finality (Phase 7.5) and monitor-before-enforce (Phase 9.4) —
DelayedFinalityis a veto check that holds each staged change for a window (re-runvalidateWithAssuranceon 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 reportswould-holdevents 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()/PlanViolationErrorfor tool calls,planCheck()at commit) andplanDetector()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.tsruns 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
assuranceon,LockedBlackboardrequires anidentityauthenticator: agents propose throughproposeAs(credential, key, value)and the proposer id comes from the credential (AgentIdentityIssuer: short-lived HMAC credentials, revocable; orguardianIdentity()over AuthGuardian grants). Plainpropose()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) —
FactCheckersplits text into claims (ClaimExtractor), retrieves evidence with provenance (EvidenceRetriever, optionaltrustedSourcesallowlist andevidenceFilteragainst injected passages), and rules per claim with one or more judges (ClaimJudge; majority wins, ties are unverifiable). Asupportedorcontradictedruling counts only if it quotes a span that really occurs in retrieved evidence, and asupportedquote 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 beyondmaxClaims, or text that yields no claim, are reported asuncheckedand count against the policy.factCheck()vetoes commits that break aFactCheckPolicyand records contradicted claims in the trust ledger;lexicalJudge(polarity-aware, number words, decimal commas) andsentenceExtractor(every sentence with a number or three words is a claim, whatever its length or phrasing) are baselines. Proof-carrying results (8.5):verifyCitations/citationCheckrequire an operatorallowSourceallowlist, fetch each cited source with the operator's own fetcher, and require every quote to occur in it. - Hardware-anchored audit (Phase 9.1) —
AnchoredAuditLogextendsH(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 unlessallowResettablePcris set for development;SoftwareAnchorfor tests) and journals each anchor;verifyAnchorJournalreplays 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 onshirudo attest verifyevidence 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.ShieldedSandboxRunnerwraps any sandbox runner and refuses to launch unlessshirudo statusisokwith every conditionOK;shirudoHostStatusreads it for posture checks.ShieldGovernancelets 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;predictChaincomputes the register value the target must then attest.DelayedFinalityaccepts the same{ id, key }approver binding, andapproveVerifiedreturns the verified approver for audit.shirudoruns 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-128spair Ed25519 with SLH-DSA-SHA2-128s (FIPS 205, hash-based; algorithmed25519+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) —
SplitHybridSignerassembles 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; CLIperpetual hybrid-sign(usable as--signer-cmd);perpetual keygen --splitand--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 onlyX25519MLKEM768(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-rotationresolve the chain at startup. CLIperpetual rotate. The same mechanism migrates a 6.x Ed25519 operator key (withNETWORK_AI_PQ_LEGACY=allowfor that one command).
Fixed
ConsensusEnginecounted"Claude","claude ", and"CLAUDE"as three model families, sominModelFamiliescould 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).