Skip to content

Tenuo v0.3.8

Choose a tag to compare

@aimable100 aimable100 released this 24 Nov 21:51
0ab01da

Tenuo 0.3.8 adds Python host-policy ceilings and token budgets, TypeScript warrant diagnostics, AAT JWT/JWS verification, and stricter Explorer/WASM builder validation.

Packages: Rust/Python 0.3.8; npm @tenuo/core and @tenuo/mcp 0.3.8-beta.0 on the beta channel; authorizer images and Helm chart 0.3.8.

Upgrade verifiers before issuing chains that use the expanded argument-map narrowing rules. Normalized host-policy expressions can change newly issued policy hashes; existing signed receipts remain verifiable. The TypeScript packages remain beta. Example/compatibility work in #580, #585, and #640 is deferred to a later release.

Added

  • TypeScript: holder-independent warrant diagnostics.
    createTenuo.inspectWarrant() decodes unverified contents and
    tenuo.explainWarrant() reports chain, constraint and approval evidence.
    Possession is always not_checked; no authorization verdict or receipt is
    produced. Execution still requires present() / verify() and PoP.
  • Explorer: use the same WASM diagnostic operation for single warrants and
    chains, and display requirement statuses instead of claiming authorization.
  • Python Authorizer.set_host_policy(tool, allow): a per-tool argument
    ceiling an enforcement point applies on top of any warrant, matching the
    TypeScript SDK's verify(..., { allow }). Receipts from a ReceiptIssuer or
    ControlPlaneClient bound to the authorizer carry the policy digest as
    policy_definition_hash (key 11), computed the same way as in TypeScript.
    Tools without a policy behave as before. Policy commitments are captured at
    decision time, including ceiling denials, rather than looked up when signed.
  • TypeScript host-policy receipt commitments now use the same normalized
    constraint expressions as Python: normalized path roots, omitted defaults,
    and compiled aliases. Newly issued hashes can differ from earlier SDKs for
    noncanonical expressions; existing signed receipts remain verifiable.
  • tenuo::aat: verify Attenuating Agent Tokens in their JWT/JWS encoding
    (Rust, behind the aat-jws feature). verify_chain runs the chain
    verification algorithm of draft-niyikiza-oauth-attenuating-agent-tokens-02
    Section 8 over a presentation and passes the draft's 229 test vectors on
    verdict and failing step. Issuing and deriving JWS tokens is not included.
  • Token budgets for model calls (Python). A warrant can carry
    a token budget as a Range constraint on an llm.chat capability
    (tenuo.budget.llm_capability). tenuo.budget_http.install() meters the
    model calls of every httpx / httpx2 client in the process against the
    warrant in scope, and metered_client() does the same for one client. Calls
    are authorized before they are sent, output caps are lowered to what is
    left, and reported usage is counted per warrant and per presented parent.
    See Token Budgets.
  • Token budgets with Tenuo Cloud (Python). With a control plane connected,
    the token meter reports each model call's usage as an authorization event.
    tenuo.budget_lease (experimental) spends a budget kept by the issuer for a
    day, week or month: install(lease=LeasedBudget(CloudLeases(trigger_id)))
    takes short-lived warrants for a slice of the budget and returns each with
    what it used.

Changed

  • Token budgets: setup problems are no longer reported as a spent budget.
    Under a period budget, a call refused because no lease could be taken (a
    wrong trigger id or API key, a paused trigger, Tenuo Cloud unreachable) now
    carries lease_unavailable and says which; token_budget_exceeded is kept
    for a budget that is spent.
  • Delegation accepts two more ways to narrow a tool's arguments. A child
    may constrain an argument its parent admits without declaring it (the parent
    is empty or sets allow_unknown). A child that admits no undeclared
    arguments may leave out one the parent marks optional, and then refuses it.
    Chains valid before remain valid. Upgrade verifiers before issuing chains
    that use either form; older verifiers reject them.

Fixed

  • Python Warrant.explain() and inspect() show argument constraints.

  • Add MCP tool-boundary conformance coverage for dash-prefixed positional
    arguments and structured argument validation.

  • Python token metering streams exempt uploads and releases abandoned plans
    without relying on a running event loop.

  • Release automation verifies digest-named Helm archives.

  • Python MintBuilder.max_depth() and the native issuance APIs accept a
    delegation ceiling, allowing Explorer-generated code to preserve the preview.

  • Explorer/WASM builder rejects malformed, ambiguous, or unsupported constraints
    instead of silently dropping restrictions, honors maximum delegation depth,
    and rejects invalid supplied keys. Dry-run checks still verify expiry.

  • Explorer clears stale previews and verification results after edits and
    provides signed allow/deny/tampered receipt samples.

  • WASM: the dry-run mode of check_chain_access now runs full chain
    verification (expiry and narrowing between links) before the policy check.

  • WASM: verify_approval_set counts an approver only after its envelope
    verifies, so an invalid envelope cannot displace a valid one from the same
    key.

Full changes: v0.3.7...v0.3.8