Mint run credentials
Derive a narrower credential from the authorized caller.
Build agents that use engine guarantees correctly by default. Scope the run, restrict what the model sees and can do, preserve evidence and enforce authority independently.
The Tethesis agent runtime composes InvariantDB's native contracts through a client-side SDK harness.
The runtime is a reusable SDK capability built on InvariantDB. It assembles the engine's hard rules into an agent-run lifecycle, tool policy and information-flow controls. The model is not the authority, and the harness is not itself the database.
Action ownership, scoped adapters and provider reconciliation; external transaction semantics remain distinct.
Fenced leases · Conditional commits · Supported tracked reads · Idempotency · Authority · Delegation · Budgets · Receipts · Memory
The Python and Node harness runs client-side. The server independently enforces its applicable contracts. The Action Broker is a separate draft self-hosted service; it is not required for ordinary database access or runtime use.
The SDK harness manages the mechanics of bounded agent execution so application developers do not need to rebuild key lifecycle, trace and budget handling independently for every model call.
Derive a narrower credential from the authorized caller.
Start the run trace and apply configured step and cost limits.
Retrieve permitted records and strip hidden fields according to trust tier.
Classify, validate and gate model-requested operations against policy.
Use permitted credentials and server-enforced contracts; require independent approval where applicable.
End the trace and revoke the run credential. Design cancellation and abnormal termination recovery explicitly.
An ended trace and revoked key do not reverse a provider action already initiated. Track actual external outcomes independently.
A model that can read a document or generate a proposal should not automatically be able to change state or perform a consequential action. The harness distinguishes tool classes and applies configured argument and context policies.
Retrieve relevant context with read-scoped authority and configured limits.
Record a structured recommendation or intent without granting execution permission.
Require the applicable policy, scope, independent approvals and server guards.
Tool policy, input validation and trust-tier fencing reduce classes of unsafe execution. They are not guarantees of correct model reasoning or immunity to every prompt injection or malicious input.
Access control determines what a worker can retrieve. Trust-tier fencing determines which model-visible fields and tools are permitted given the context consumed. These are complementary boundaries.
A specialist reads a supplier document containing instructions that attempt to induce a consequential tool call. The content remains untrusted data, not policy or authority.
Hidden fields are stripped from model-visible context. The lowest tier of content seen governs tool availability.
A configured policy may permit summarization or a structured proposal but deny a consequential tool while the run has consumed lower-trust information. Independent authorization and server checks still apply to protected actions.
The runtime gates tools using the lowest trust tier of material seen. Any design for isolating or handing off work must preserve applicable policy, evidence and authority; moving content to a new model call is not authorization.
The runtime uses a hierarchy of scoped credentials rather than exposing one all-powerful integration key to every agent. Keys are not shown to the model.
The harness uses the engine's native enforcement rather than substituting model instructions for concurrency, authorization or evidence contracts.
An external operation has its own provider semantics. The guarded-action recipe and helper libraries in Python, TypeScript and Rust support proof of action ownership; application and provider contracts must still govern dispatch, confirmation and recovery.
Pin the proposed action, relevant evidence and required authority.
Use the applicable ownership proof and independently enforced approval.
Use provider-supported idempotency and permitted credentials.
Retain provider receipts and verify what the response actually confirms.
A timeout is unknown, not necessarily failure. Lookup or route for adjudication.
Advance dependent work only when the required outcome is established.
A separate draft service for difficult-to-reverse side effects, with a defined protocol and operator guide. Not a general-availability hosted offering. Confirm release status, protocol, supported providers and failure handling before deployment.
Database atomicity, ownership proof and broker coordination cannot by themselves guarantee exactly-once effects at arbitrary external providers. Use the provider's actual contract and explicitly reconcile ambiguous outcomes.
Use the full runtime harness where it is implemented; use typed engine primitives independently for conventional services, other languages and custom orchestrators.
Start with read-only research or bounded proposal generation. Enable protected operations only after verifying identity, tool policy, trust tiers, required approvals and failure handling in the actual release.
Classify every tool and its arguments, define trust tiers, budget, identity and permitted data.
Test rejected arguments, consent stripping, hidden fields, low-trust content and denied tools.
Exercise stale conditions, lost leases, denied credentials, held approvals and revocation.
Verify refusal behavior at the server, not merely a model's compliance with instructions.
Test timeouts, cancellation, interrupted runs, trace completeness, scoped cleanup and abnormal termination.
Validate remaining authority, durable state, budget accounting and safe continuation.
Add scoped adapters, ownership proofs, provider idempotency, receipts and uncertain-outcome procedures.
Test duplicate requests, ambiguous outcomes, stale authority and reconciliation before production.
Evaluate the actual contracts against a representative workload.