Skip to Content
LaCrew docs

LaCrew Protocol Specification

The normative interface surface, invariants, and conformance rules.

Version: 0.1.1 (draft) · License: Apache-2.0 · Solidity: ^0.8.28

The treasury and governance layer for AI agent organizations: an onchain org chart where every agent has a budget, overages climb an approval chain, and constitutional changes pass through governance humans ultimately control.

This document is the normative protocol surface. Narrative documentation lives in overview docs; reference implementations in contracts/src/. Versions follow semver: breaking interface changes bump the minor pre-1.0.

1. Design invariants

  1. Non-custodial. No off-chain component ever holds root keys or an unmediated treasury path. Orchestrators act through scoped, expiring session keys; revocation runs from the root key.
  2. All enforcement onchain. Budgets, permissions, escalation, and governance are contract-enforced. The cloud is replaceable.
  3. First DENY wins. A node's policy is a stack of modules; DENY short-circuits, any ESCALATE routes the action up the reporting tree.
  4. Audit trail by construction. Every intent, verdict, approval, vote, stream, and session event is emitted onchain; no separate logging system.
  5. Composability. Third parties extend by writing policy modules and adapters — never by forking the protocol.

2. IPolicyModule — the extension point

enum Verdict { ALLOW, ESCALATE, DENY }

interface IPolicyModule {
    /// Evaluate whether `agent` may call `target` with `value` and `data`.
    function check(address agent, address target, uint256 value, bytes calldata data)
        external view returns (Verdict);
}

A node's policy is a PolicyStack (itself an IPolicyModule) evaluating members in order: the first DENY returns immediately; otherwise any ESCALATE is sticky and returned; otherwise ALLOW. Standard modules shipped as reference:

ModuleBehavior
SpendCapPolicyPer-agent cap on value; over-cap → ESCALATE. Optional per-epoch budget (setEpochSchedule(epochStart, epochSeconds, defaultBudget), setAgentEpochBudget): settled value per agent summed over aligned epochs, fed by the router as its value recorder (setRecorder, once); a spend that would cross the epoch budget → ESCALATE. Mutators are admin- or governor-gated.
WhitelistPolicyUnlisted target → DENY. Mutator setAllowed is admin- or governor-gated.
RateLimitPolicySliding-window action count per agent; over-rate → ESCALATE. The router records via IRateRecorder.record(agent) — into the node's own recorder when one is bound (rateRecorderOf), else the global one. Params are constructor immutables: a different limit is a different module.
CumulativeValuePolicySettled value per agent — and per (agent, target) when maxValuePerTarget is non-zero — summed over an anchored window; a spend that would cross either budget → ESCALATE. The router records via IValueRecorder.recordValue(agent, target, value) on every settled spend with value — into the node's own recorder when one is bound (valueRecorderOf), else the global valueRecorder. Params are constructor immutables.
TimeWindowPolicyOutside the configured UTC window → DENY.

Stacks bind per node through EscalationRouter.setNodePolicy(node, module) (governor-gated once a governor is set). A node whose stack carries its own RateLimitPolicy additionally needs setNodeRateRecorder(node, module) (same gating): recording is what fills the module's windows, and a custom rate module the router never records into silently never trips — the per-node recorder exists to make that failure impossible. A node whose stack carries its own CumulativeValuePolicy needs setNodeValueRecorder(node, module) for the same reason. Both modules bind their recorder once (setRecorder, deployer-only), and every bound recorder is a protected target the router refuses to call on an agent's behalf.

2.1 Third-party modules — writing one, listing one

IPolicyModule is a public extension point: a guardrail nobody here wrote is bound the same way a shipped one is. To publish one:

  1. Implement check as a view function. It is called inside EscalationRouter.propose and inside every PolicyStack it belongs to, so it must not revert on inputs it does not recognise — return ALLOW and let another member decide. A module that reverts takes the whole stack with it. Keep it cheap: the same call is made on every proposal.
  2. Deploy it and keep the address. A listing points at a deployed module; the marketplace never compiles or deploys a seller's bytecode, so nothing a third party publishes ever runs off-chain.
  3. Publish a policyModule listing whose payload is validated by validatePolicyModulePayload (@lacrew/flows): id, version, name, summary, the deployments (one {chainId, address} per chain you support), the slots the module is written for, and an audit claim. Absent audit metadata means unaudited, which is what the catalog labels it. A listing may instead name a standardModule — one of the modules a deployment already carries in its address book — which is how the first-party entries resolve without hardcoding an address that is right on one chain only.

Buying does not attach. A purchase settles USDC on MarketplacePayments and entitles the buyer to the payload; binding is setNodePolicy, which is governor-gated. The orchestrator's install path (POST /governance/attach-policy-module) reads the stack the router binds for the node, appends the listed module, deploys the new PolicyStack (permissionless and inert), and proposes the bind at the high tier. Until that proposal executes the node keeps exactly the modules the org voted, and because appending puts the new module last behind them, a bought module can only ever narrow what the existing stack lets through — first DENY still wins.

3. OrgRegistry — the tree

Nodes are accounts (HumanRoot | ManagerAgent | WorkerAgent); edges are reporting lines. After a governor is set, structural mutators are governor-only — structure changes are constitutional actions.

function getNode(address account) external view returns (Node memory);
function getChildren(address parent) external view returns (address[] memory);
function addNode(address account, NodeKind kind, address parent) external;   // governor
function removeNode(address account) external;                               // children rewire to parent
function reparent(address account, address newParent) external;              // cycle-safe
function setActive(address account, bool active) external;

Events: NodeAdded, NodeRemoved, NodeReparented, NodeActiveUpdated.

The zero address is never a node: addNode rejects it (ZeroAddress), and it is refused as a parent (InvalidParent). It is how an empty slot reads, so a node stored there could be neither read nor removed.

3.1 Multi-human orgs — one tree, several humans

An org with two or more humans (agency partners, a club, a community-funded crew) is one tree, not a forest: the registry keeps its single root node and the additional humans are HumanRoot nodes parented to it. This is a deliberate choice over a virtual org above several roots — it needs no new contract, no second registry, and every existing walk (children, reparent, the cycle check) already handles it. The root node is unremovable, so the tree always retains at least one human.

Two things are being modelled and they are not the same:

Where it livesWhat it answers
The chartOrgRegistry node of kind HumanRootWho is drawn as a human, and who reports to them
The authorityGovernanceModule seat with SeatRole.HumanWho votes, who counts toward high-tier final say, who may veto

A HumanRoot node does not by itself confer a vote, and a human seat does not require a node. In practice a partner gets both, and the two are seated by different calls — one is a tree write, the other a governance action (§6.1).

Peer humans are peers in authority: no seat outranks another for veto. The humanRoot address keeps a narrow extra privilege (§6.1), and it keeps it only while it holds a seat.

4. Treasury & EpochStreamer — payroll semantics

The Treasury holds org funds; nothing pulls from it directly. Allowances stream downward per node; agents spend their allowance (via the router), never the treasury. EpochStreamer runs the schedule:

function setGrant(address node, uint256 amount) external;   // operator or governor
function runNextEpoch() external returns (uint64 epoch);    // operator; epoch n unlocks at epochStart + (n-1)*epochDuration
function recipients() external view returns (address[] memory);

Events: GrantUpdated, EpochRun(epoch, recipientCount). The treasury implements ITreasurySpender for the router's finalize path (§5, "Settlement"):

function token() external view returns (IERC20);
function spendAllowance(address node, uint256 amount, address to) external; // payment
function spendAllowance(address node, uint256 amount) external;             // pull, to the spender
function refundAllowance(address node, uint256 amount) external;            // pull, unpulled rest

refundAllowance is spender-only and pulls the tokens back with transferFrom before it restores the allowance (AllowanceRefunded), so a refund never reserves more than actually arrived.

Treasury.streamAllowance is called by the governor or the bound streamer. The deployer may stream directly only while neither is bound: binding a streamer (setStreamer) is exclusive, so a treasury has one source of allowance and the grant schedule is the whole account of what nodes are paid. Until a governor is bound the deployer still holds setStreamer, and setStreamer(address(0)) returns it to direct streaming. Allowance is never booked to the zero address (ZeroAddress): it could not be spent and would stay reserved.

4.1 Multi-asset orgs

A Treasury binds one immutable ERC-20. An org funds N assets by deploying one Treasury + EscalationRouter + EpochStreamer per asset over a shared OrgRegistry, so the org chart stays single while enforcement is asset-scoped. Proven in contracts/test/MultiAsset.t.sol: allowances stream and spend independently, a treasury never moves a foreign token, and pending escalations resolve only in their own asset's router.

Policy stacks are asset-denominated. SpendCapPolicy compares raw uint256 values, so a 100 USDC cap (100e6) is dust against an 18-decimal asset. Deploy a separate stack per asset; never share one across assets with different decimals.

4.2 Asset assumptions

The treasury's bookkeeping (totalReserved against balanceOf) and the marketplace's (totalOwed against balanceOf) hold only for a token that moves exactly the amount asked and changes balances only through transfers.

  • Fee-on-transfer tokens are refused. Every movement into or out of Treasury and MarketplacePayments is measured; a token that delivers less than asked reverts with TransferAmountMismatch(expected, actual).
  • Rebasing tokens are unsupported. A balance change outside a transfer cannot be caught when it happens. Treasury.shortfall() reports how far the balance has fallen below totalReserved; non-zero means the last spenders' allowances are unbacked.
  • Issuer blocklists can freeze a stack. USDC and USDT can blocklist an address. A blocklisted Treasury cannot move its balance at all, and a blocklisted EscalationRouter cannot settle calls (it holds the value for the length of a pull settlement). Nothing onchain routes around an issuer freeze. What limits the damage is the per-asset split of §4.1: a freeze stops one asset stack, not the org, and a fresh stack can be deployed and funded over the same OrgRegistry. A blocklisted payee only fails its own payment: the settling propose or resolve reverts, and an escalated intent stays pending until it is rejected.

5. EscalationRouter — the enforcement path

Agents act by proposing intents. The router checks the agent's session key, then its policy stack:

function propose(address agent, address target, uint256 value, bytes calldata data)
    external returns (uint256 intentId, Verdict verdict);
function resolve(uint256 intentId, bool approved) external;
function setNodePolicy(address node, address policyModule) external;       // governor
function setNodeRateRecorder(address node, address rateRecorder) external; // governor

Rate recording resolves per node: rateRecorderOf[node] when bound, the global rateRecorder otherwise; both propose-time escalations and finalized actions are charged against the window.

  • ALLOW → the action finalizes immediately: allowance settled (below), target called, ActionExecuted emitted. Payment and call are atomic: if the target call reverts, the whole propose/resolve reverts with the target's revert data (or ActionCallFailed(target) when it has none), so no funds move, no allowance, rate or cumulative-value budget is consumed, and an escalated intent stays pending, to be retried or rejected.
  • ESCALATE → a pending intent is created awaiting the agent's parent. resolve(id, true) from the awaiting approver re-checks the approver's own policy stack: within bounds it finalizes; over bounds the intent climbs (IntentEscalated) toward the human root. resolve(id, false) closes it.
  • DENY → propose reverts; nothing is created.

Who may resolve. Authority over a pending intent belongs to nodes that are in the tree and active when resolve is called, not to whoever held the seat when the intent was created:

  • The awaiting approver resolves only while it is an active node. Deactivated (setActive(false)) or removed, it can neither approve nor reject (InactiveApprover); reactivated, it resolves again.
  • An intent awaiting an inactive or removed approver is not stranded: the org root (OrgRegistry.root, which can be neither deactivated nor removed) resolves in its place, under the root's own policy and reserved authority. The root is the single stand-in because a removed approver has no parent left to fall back on. While the approver is active the root has no shortcut (NotAwaitingApprover): the intent reaches it by climbing.
  • Approval requires the proposing agent to still be an active node (InactiveAgent), at every step of the climb. A deactivated or fired agent's pending spend therefore never executes; rejecting it stays possible, and is how such an intent is closed. Reactivating the agent makes it approvable again.

Who holds the approver key. resolve is authorised by msg.sender alone, so whoever holds a manager node's key holds that manager's approval authority up to its policy stack. When an off-chain orchestrator signs for AI-manager seats, its keyring is part of the trust boundary: a compromised orchestrator can approve up to the manager tier, though never past it, and never as a root whose key it does not hold (SECURITY.md, "The orchestrator keyring is a trust boundary").

Settlement. How an action's value leaves the treasury depends on whether it carries calldata:

  • Payment (value > 0, empty data): the treasury transfers value to target. Nothing is called.
  • Call (value > 0, non-empty data): pull-based. The router takes value from the treasury, approves target for exactly value, calls it, revokes the approval, and hands whatever target did not pull back to the agent's allowance (refundAllowance, SettlementReturned). Tokens target sends back to the router count as unpulled. A DEX or any approve/transferFrom protocol works unchanged; a contract that succeeds but ignores the tokens costs the agent nothing. A call that fails reverts the whole action (above), so nothing is spent or refunded.

ActionExecuted.value and the value recorder (§2) see what the action actually cost: the full value for a payment, only what target kept for a call. The router never spends or refunds a balance it held before the settlement, and it is nonReentrant across propose and resolve, so a target cannot settle a second action from inside the first.

The treasury's token is a protected target alongside the router, the treasury, the session registry and the recorders (ProtectedTarget): the router holds that token during a pull settlement, and a call aimed at the token would spend or approve it outside the settlement. The check applies to any action that carries value or calldata.

Session gating: propose requires a valid SessionRegistry key for agent, with value <= maxValue and, when pinned, target == allowedTarget. A key issued with maxTotalValue (issueScopedTimedBudget) may also propose at most that much value over its life: the router charges every propose that proceeds, escalated or not, through recordProposal(agent, key, value), and the one that would cross it reverts SessionTotalValueExceeded.

Events: IntentCreated, IntentEscalated, IntentResolved, ActionExecuted(agent, target, value, callOk) (callOk is always true: a failed call reverts the action instead of emitting).

6. GovernanceModule — constitutional actions

Quorum voting over structure, budgets, and policy upgrades. Two tiers:

  • Low (Tier.Low): instant execution once yesVotes meets the proposal's snapshot quorum.
  • High (Tier.High): treasury/policy-touching; additionally requires yesHumanVotes to meet the proposal's snapshot human quorum, a timelock (eta), and remains human-vetoable until execution.

Every proposal is decided on the electorate it was created with (§6.3): the quorum, the unanimity bar and each voter's weight are fixed at propose.

Seats are role-weighted (SeatRole.Human | Agent); agent seats carry review authority but human seats hold final say on high tier. Any funded Human seat may veto a proposal that exists; veto of an id no proposal holds reverts (ProposalNotFound). The outgoing root cannot veto its own replacement: once another seated Human has voted yes on a rotateRoot proposal, the root's veto reverts OutgoingRootVetoIgnored (that Human's seat and power are checked at veto time, so an unseated voter no longer counts). An org whose only Human seat is the root keeps its veto, and every other Human's veto still works.

Defeat. Once the voting deadline has passed, execute closes a proposal with more weight against than for as Defeated instead of running it. Each tier is defeated by the electorate that can pass it:

TierPasses onDefeated when (after the deadline)
LowyesVotes >= snapshot.quorumnoVotes > yesVotes
HighyesHumanVotes >= snapshot.quorumnoHumanVotes > yesHumanVotes

Agent seats may vote on a high-tier proposal and their weight is recorded in yesVotes / noVotes, but it decides nothing there: it cannot defeat a proposal the humans backed, and it cannot rescue one the humans voted down. noHumanVotes(proposalId) is a getter of its own, beside the proposals struct.

function propose(Tier tier, address target, bytes calldata data) external returns (uint256);
function vote(uint256 proposalId, bool support) external;
function veto(uint256 proposalId) external;      // any funded human seat
function execute(uint256 proposalId) external;   // after quorum (+ timelock on high)
function setVotingPower(address voter, uint256 power, SeatRole role) external;  // root: agent seats
function admitHuman(address human, uint256 power) external;                     // governance only
function removeHuman(address human) external;                                   // governance only
function humanSeatCount() external view returns (uint256);
function proposalSnapshots(uint256 proposalId) external view returns (
    uint64 seatEpoch, bool unanimityFastPath, uint256 quorum,
    uint256 totalVotingPower, uint256 totalHumanVotingPower);
function seatEpoch() external view returns (uint64);
function seatAt(address voter, uint256 epoch) external view returns (uint256 power, SeatRole role);

Events: ProposalCreated, Voted, ProposalExecuted, ProposalVetoed, ProposalDefeated, VotingPowerUpdated, HumanAdmitted, HumanRemoved.

6.1 Seat admin — who may change who holds final say

The seat roster is itself constitutional. Changing it splits by seat class:

  • Agent seats — setVotingPower(voter, power, Agent), callable by the root address directly. Agent weight can never satisfy high tier, so handing it out cannot hand out final say.
  • Human seats — admitHuman / removeHuman, and any setVotingPower that creates, re-weights, or revokes a Human seat. These accept the module itself as caller and nobody else, so they run only as an executed proposal; and because propose forces High tier on anything targeting the module, that proposal is always high tier. Admitting a partner therefore passes the humans already seated, any one of whom can veto it.

Two guarantees hold unconditionally:

  1. The last human seat cannot be revoked (LastHumanSeat). Not by removeHuman, not by demoting the seat to an agent one. An org with no human seat has handed high-tier final say to nobody at all — agent yes-weight never satisfies it — which freezes the constitution rather than passing it on.
  2. Agents are never the sole final say. This is the same guarantee read from the other end, and it is why (1) is a revert rather than a warning.

The one carve-out: while humanSeatCount == 0, the root may seat a human directly. That state exists only for a module deployed with rootPower_ = 0, which would otherwise be born ungovernable. The carve-out closes the moment the first human is seated.

The root's direct authority — quorums, timing, agent seats, and its veto — is the privilege of a seated human, not of an address: it holds while the root holds a funded Human seat (or while nobody does). Governance that revokes the root's seat revokes its parameter admin and its veto with it. "Root" is a seat that can change hands, not a permanent key.

Observer seats are not modelled. A seat with power 0 is a revoked seat — setVotingPower coerces role None at zero weight, and vote() reverts NoVotingPower on any proposal created after the revocation. A human who should watch without voting is an off-chain concern (workspace membership), not a chain-level seat, because the veto right this contract grants is derived from funded human seats and a zero-weight veto-holder would be a contradiction.

Session issuer / Safe ownership stays single-holder in v1. A second human gets a governance seat and a veto; the session-issuer and treasury-wallet paths still key off one root address. A club that wants two humans to jointly own the wallet configures a 2-of-2 Safe at the wallet layer — the protocol does not yet model shared root custody, and pretending otherwise in the tree would be the dishonest version of this feature. See SECURITY.md for what that leaves exposed.

6.2 Root rotation — replacing a lost or compromised root key

The root address is not fixed at deploy. GovernanceModule.rotateRoot(newRoot, rooted) moves it in one transaction:

  • the seat — the old root's Human seat moves to newRoot with its weight, or, when newRoot already holds a Human seat (a partner being promoted), is simply revoked. The retired key loses its veto, its parameter admin and its vote on every proposal created after the rotation. On proposals already open it keeps its snapshot weight (§6.3), and the new key cannot vote on them; any remaining human, the new root included, can veto them. An Agent seat cannot become the root (RootIsAgentSeat).
  • every contract in rooted — each is called with rotateRoot(newRoot) and must have this module as its governor. In a deployed org that is the OrgRegistry (the tree's top node, and with it EscalationRouter.resolve's fallback authority, which reads root() live) and the SessionRegistry (the direct session admin, and the issuer when the issuer was still the root). A call that fails anywhere reverts the whole rotation, so the contracts never disagree about who the root is.

rotateRoot is seat admin, so it runs only as an executed proposal (or, before any human is seated, from the root itself), and every path to it is High tier: a proposal targeting the module is forced High, and so is any proposal whose calldata is rotateRoot(address) or setIssuer(address) on another contract (RootAuthorityNotHighTier). The human quorum, the timelock and the veto window all apply.

OrgRegistry.rotateRoot accepts a fresh address or a HumanRoot node directly under the root (InvalidRoot otherwise). The old root's node is removed, not demoted, and its reports move under newRoot.

What it does not do: a root key that is compromised and actively used can still veto its own rotation while it holds its seat — the same "a veto is a stop, not a recovery" property as §6.1. Rotation recovers a lost key, and a compromised one whose holder does not contest it in the voting window.

6.3 Seat snapshots — a proposal is decided on the seats it was created with

propose records, per proposal (proposalSnapshots(id)):

FieldWhat it fixes
seatEpochthe seat state votes are weighed at
quorumthe tier's effective quorum (low: all seats, high: human seats)
totalVotingPowerall seat weight at creation
totalHumanVotingPowerhuman seat weight at creation — the unanimity fast-path bar
unanimityFastPathwhether unanimous human yes skips this proposal's delay

Every seat change (setVotingPower, admitHuman, removeHuman, rotateRoot, the constructor's root seat) increments seatEpoch and pushes a checkpoint onto that seat's own history. vote weighs a ballot by seatAt(voter, snapshot.seatEpoch), role included; execute gates on the snapshot's quorum and unanimity bar. Hence:

  • A seat granted after creation cannot vote on it — NotSeatedAtProposal for an address that holds a seat now but held none then; NoVotingPower for one that holds none at all.
  • A seat re-weighted after creation votes with its snapshot weight, and a quorum, a seat or the fast-path switch changed since moves neither the quorum nor the unanimity bar.
  • A seat revoked after creation keeps its snapshot weight on it — votes already cast stand, and it may still cast one. Dropping its votes instead would let seat admin (the root, for agent seats) move the tally of an open proposal — exactly what the snapshot exists to prevent — and would leave the snapshot totals counting weight that can no longer vote. A revoked seat cannot vote on any proposal created after the revocation.
  • The veto is not snapshotted. It is the live safety valve: whoever is a funded Human seat when it is used holds it, so a removed human loses it at once and a newly admitted one gains it on proposals already open.

Gas stays bounded: propose writes one fixed-size snapshot, each seat change pushes one checkpoint, and seatAt reads the newest checkpoint first and otherwise binary-searches that one seat's history. Nothing iterates the electorate, which the module does not enumerate. effectiveQuorumYes / effectiveQuorumHumanYes remain as the bars a proposal created now would get.

7. SessionRegistry — bounded, expiring authority

Agents boot with ephemeral keys scoped to their policy; orchestrator compromise leaks bounded, expiring authority — never the treasury. Session keys bound workers; manager seats whose keys the orchestrator holds are bounded by their policy stack instead (§5, "Who holds the approver key").

function issue(address agent, address key, uint64 expiresAt, bytes32 scopesHash,
               uint256 maxValue, address allowedTarget) external returns (uint256);        // issuer
function issueScoped(address agent, address key, uint64 expiresAt, bytes32 scopesHash,
                     uint256 maxValue, address[] calldata allowedTargets) external returns (uint256);
function issueScopedTimedBudget(/* issueScopedTimed args */, uint256 maxTotalValue)
    external returns (uint256);                                 // 0 = no lifetime ceiling
function remainingValue(address agent, address key) external view returns (uint256);
function revoke(uint256 sessionId) external;                    // root, issuer or governor
function setIssuer(address issuer) external;                    // root or governor
function rotateRoot(address newRoot) external;                  // governor (root before one is bound)
function isKeyValid(address agent, address key) external view returns (bool);
function isTargetAllowed(address agent, address key, address target) external view returns (bool);
function allowedTargetsOf(uint256 sessionId) external view returns (address[] memory);
function keyLimits(address agent, address key) external view returns (bool, uint256, address, bytes32);

Target scoping. A session pins zero or more targets: empty means any target that still passes the node's policy stack; one or more restrict the key to exactly those. Enforcement uses isTargetAllowed. keyLimits reports only the first pinned target, never address(0), so a consumer that checks just keyLimits denies the extra targets instead of allowing everything — fail-closed by construction.

The issuer acts for agents only. The contract is constructed with the OrgRegistry. When the caller is not the root, issue* requires agent to be an existing, active ManagerAgent or WorkerAgent node (IssuerAgentNotEligible otherwise), so a compromised issuer cannot mint a key that proposes as the root or a peer human. The issuer may also only revoke, or supersede by re-issuing the same key binding, sessions it issued itself (issuedBy(sessionId)); the root can revoke any.

Events: SessionIssued, SessionTargetsPinned (when >1 target), SessionRevoked, IssuerUpdated, GovernorUpdated, RootRotated. Root revocation never depends on the issuer — the root key can always kill a session. Once a governor is bound (a deployed org binds the GovernanceModule), governance can also revoke any session and replace a compromised issuer without the root's signature; naming an issuer through a proposal is always High tier.

8. Event taxonomy (audit trail)

Consumers index these families; the reference indexer streams them into Postgres (orchestrator_audit_events), which dashboards and monitors read.

FamilyEvents
IntentsIntentCreated, IntentEscalated, IntentResolved, ActionExecuted
PayrollGrantUpdated, EpochRun (surfaced as AllowanceStreamed)
GovernanceProposalCreated, Voted, ProposalExecuted, ProposalVetoed, ProposalDefeated
SessionsSessionIssued, SessionRevoked
StructureNodeAdded, NodeRemoved, NodeReparented, NodeActiveUpdated, RootRotated

9. Conformance

An implementation conforms to LaCrew v0.1 if:

  1. every agent action passes an IPolicyModule.check stack with first-DENY-wins / any-ESCALATE-climbs semantics before funds move;
  2. escalations resolve only through ancestors in the OrgRegistry tree, terminating at a human root;
  3. treasury value reaches agents only as streamed allowances, spent through the router's finalize path;
  4. constitutional actions execute only through the governance tiers above, with high-tier human final say and veto;
  5. off-chain actors sign with registry-issued session keys bounded by expiresAt, maxValue, allowedTarget and, when set, maxTotalValue.

Security process: see SECURITY.md. Threat notes: security docs.

On this page