Quick installation
@lyhna/bind is a project dependency. Install it inside your Node project with npm install @lyhna/bind. Do not install it globally.
Quick start
How bind() works
-
1Action declared — Your agent declares what it intends to do, under what intent.
-
2Tier resolved — The enforcement engine looks up the action in your authority rules table. Deterministic — no inference.
-
3Policy evaluated — Tier policy determines outcome: auto-approve, standard review, or authorize-all.
-
4Receipt signed — Ed25519 signed receipt produced. Append-only. Verifiable offline. Contains action hash, tier, outcome, timestamp.
-
5License returned — APPROVED, REFUSED, or ESCALATED. No APPROVED receipt, no execution. Fail-closed.
Six Invariants
Fail-closedNo APPROVED receipt = no execution
DeterministicNo probabilistic decisions
Append-onlyNo mutation of receipts
SovereignTenant-isolated
VerifiableOffline verification always possible
Pre-executionAuthorization happens before execution