Jochanni Labs · Decision Governance
One treasury agent and one payments hub, shown in their real code. One enforcement pattern: no DAL-X authority, no execution.
How DAL-X Enforces Execution AuthorityPDF · 3 pagesAbout These Examples
The code on this page is the treasury agent and payments hub that passed the full 18-step DAL-X demo on real systems on 2026-10-22, copied from their repository at the commit shown under each block. The conversation is illustrative and the engineer is hypothetical. Today DAL-X binds payment actions: action, target, amount, currency, recipient, recipient account reference, and payment type. A reviewer authorizes those values, and the hub refuses a payment that differs from them. For other kinds of action, the target's enforcement contract names the fields a reviewer's approval binds. On 2026-10-23 a vendor master agent and a vendor master service ran that path on real systems against test data: an approved account change was applied and confirmed, and the same change with one bound field altered was refused.
The agent and hub are a reference integration, not a customer deployment. A production integration maps the same calls to the bank's own data model, keys, execution infrastructure and retry mechanisms. DAL-X is not a drop-in library. It is an authority layer wired to the specific execution boundary you are protecting.
Before You Write Code
Set these up in DAL-X first. The reference integration used all four.
Required to submitRegister and activate the agent. DAL-X accepts runtime output only from an active agent it knows by its agent key, with its allowed execution targets. Activation is a recorded authority decision.
RequiredCreate two keys. A submit key bound to the agent, which is all the agent holds, and an enforcement key for the downstream system. No key holds both scopes.
RequiredRegister the enforcement contract with the downstream public key. One contract per execution target. With the key on the contract, DAL-X refuses any confirmation for that target the downstream system did not sign.
Required to resumeRegister the decision webhook. It tells the agent service a decision was made. It carries no execution authority: the downstream system pulls and verifies the token itself.
Illustrative Conversation
Integration Code
for await (const message of query({prompt: `Process payment request ${requestId}.`,options: {model: deps.model,systemPrompt: prompt,tools: [], // no built-in tools: no shell, files or webmcpServers: { treasury: treasuryServer(tamperedMasterFor(requestId), deps.paymentLimit) },allowedTools: ['mcp__treasury__get_payment_request', 'mcp__treasury__lookup_counterparty', RELEASE_TOOL, ESCALATE_TOOL],hooks: { PreToolUse: [{ matcher: RELEASE_TOOL, hooks: [hook] }, { matcher: ESCALATE_TOOL, hooks: [hook] }] },settingSources: [], // ignore any local Claude Code settingspersistSession: false,maxTurns: 12,pathToClaudeCodeExecutable: claudeExecutable(),},})) {
A production integration also handles
Execution Authority Chain
Tool Call Intercepted
ingest-agent-output
Execution Blocked
default state
Review Queue
human reviewer
Authority Granted
decision record
Token Issued
signed, 300 seconds
Hub Verifies
offline, single use
Executed
confirmed to DAL-X
One Enforcement Pattern
Submit to DAL-X. Execution is blocked. A reviewer grants authority. The downstream system presents the authorization at the gate. The receipt is verified. Execution happens and is confirmed. The timeline proves the chain.