Release
v7.2.0 — Durable authority state, full CI, slimmer package
Durable lease-authority state — LeaseAuthority({ state: { file, init?, anchor? } }) / perpetual authority --state <file [--state-init] [--state-pcr <n]. Revocations, the stop latch, pause, spend, lease sequence numbers,
Read the release here or open the original release on GitHub.
Added
- Durable lease-authority state —
LeaseAuthority({ state: { file, init?, anchor? } })/perpetual authority --state <file> [--state-init] [--state-pcr <n>]. Revocations, the stop latch, pause, spend, lease sequence numbers, checkpoints, tightening, and runtime operator-key rotations and policies are saved after every change, signed with the authority key and written atomically. Previously a restart forgot them, so a revoked run could get a fresh lease, its spend started again at 0, and a tripwire stop was cleared. Fails closed: a missing file (withoutinit), a tampered file, one from another authority, or a non-regular file starts the authority latched until an operator resumes it, and a copy of the rejected file is kept. With an anchor (a dedicated TPM PCR viaTpm2ToolsAnchor) every save extends the register, so an older copy put back in place is detected; after a reboot the authority starts latched but still restores its signed state, so resuming keeps revocations and spend. A startup rotation chain that does not pass through the persisted operator key latches and installs no new policy. Saves fsync the file and its directory. A failed save fails the request and halts the authority. The CLI warns when--stateis not given. - Assurance state across restarts —
exportState()/restoreState()onTrustLedger(quarantines and history; restores only into an empty ledger and recomputes reliability from the counts),AgentIdentityIssuer(revocations),AuthorizationVerifier(used nonces, so a signed authorization cannot be replayed after a restart), andDelayedFinality(latched vetoes). Restoring identity, authorization, and staging state only ever adds restrictions.
Changed
- CI runs every suite (
npm run test:all) on every push and pull request on Node 20, 22, and 24, instead of 10 selected suites; the rest previously ran only when a release tag was published. - Smaller npm package (1,127 → 393 files, 9.6 → 3.7 MB unpacked): the
dist/esm/copy is gone — it was compiled as CommonJS anyway — and everyexportscondition now resolves to the single CommonJS build withtypeslisted first; named ESM imports (import { LeaseAuthority } from 'network-ai') work as before. Themodulefield,build:esm, andtsconfig.esm.jsonare removed. Source maps, compiled examples and demos, andscripts/__pycache__are no longer published. - TypeScript resolves modules with
bundlerinstead of the deprecatednode10(TypeScript 7 will drop it); the emitted JavaScript is unchanged. test-ai-quality.ts(a demo without assertions) moved toexamples/11-ai-quality-gate.ts.
Fixed
- MCP
serverInfo, the MCP client'sclientInfo,orchestrator_info, and thenetwork-ai-serverbanner report the package version (they said 4.0.13, 1.0.0, 5.4.0, and 4.0.3); the server's source header listed--hostas defaulting to0.0.0.0(it is127.0.0.1). - CodeQL —
perpetual doctor(post-quantum key check) andperpetual hybrid-signread key files through one opened descriptor (size checked withfstat, then read) instead ofstatthen a separate read (#198, #199, file-system race); the bounded reader is exported asreadBounded. A test fixture's canary label no longer reads as a password (#200; the canary is a random token, and receipts hash it with SHA-256 only as a commitment, never as password storage).