@living-agents/reference
v0.4.13
Published
Living Agents Protocol (LAP) reference implementation: agent passport (LIP-1), scope algebra (LIP-3), Micro-Core request verification and receipts (LIP-4), RFC 6962 Merkle log, Sigstore Rekor binding. Zero dependencies.
Maintainers
Readme
@living-agents/reference
Reference implementation of the Living Agents Protocol (LAP) — the existence layer for always-on AI agents. Implements LIP-1 (Agent Passport), LIP-3 (Scope Algebra v0.4), LIP-4 (Micro-Core), an RFC 6962 Merkle log, and the Sigstore Rekor registration binding.
Install
npm install @living-agents/reference # Node ≥ 20, zero dependenciesimport { verifyMicroCorePassport, verifyRequestSignature, checkInvocation, mintReceipt } from "@living-agents/reference";
// per module: "@living-agents/reference/microcore", "/algebra", "/jws", "/crypto-util", "/merkle-log", "/rekor"Specification, test vectors, demos and the 15-minute MCP tutorial: https://github.com/atharnouman/living-agents-protocol
Zero dependencies. Node ≥ 20 (native Ed25519). In a repository checkout, run the suite:
node --test test/The tests verify the deterministic cross-language test vectors in ../output/lip/test-vectors/vectors.json (generated by a Python script; canonical JSON must match byte-for-byte across languages) plus the adversarial scope-algebra cases from LIP-3 §8:
- passport JWS verification, tamper rejection, wrong-signer rejection, self-ownership rejection path
- did:key ↔ raw Ed25519 public key round-trip against published hex
- genesis hash chain reproduction
- Micro-Core: audience binding, request-signature body+passport binding, act/res/cap invocation checks, signed receipt verification
- algebra: sub-verb escalation reject (registry DAG), path prefix-escape reject, window-inversion reject, proportional subdivision accept, cross-currency reject, deny-bypass reject (effective sets), sibling budget-replication reject (conservation), depth/decay monotonicity, NFC/case normalization
Modules (src/): crypto-util.js (b64url, base58, did:key, JCS subset, normalization), jws.js (EdDSA compact JWS, passport verification), algebra.js (LIP-3 v0.4 subset checker — sound-but-incomplete by design, canonical-order deterministic), microcore.js (LIP-4 server invariant, idempotency cache, receipts), merkle-log.js (RFC 6962 log, inclusion proofs, salted commitments), rekor.js (Sigstore Rekor registration and verification).
Status: draft v0. Spec texts: ../output/LAP-founding-document.md and ../output/lip/. License: Apache-2.0.
