Skip to content

v0.4.2

Choose a tag to compare

@github-actions github-actions released this 03 Oct 16:17
· 110 commits to main since this release
fed2830

[0.4.2] - 2026-10-03

Changed

  • Built-in model documentation now lists each alias alongside its real model
    ID and provider.

Fixed

  • Closed the remaining DNS-pinning audit gaps: policy-time pins survive proxy
    redirects, and denied URLs do not trigger DNS lookups or repeat resolution.

Security

  • DNS-rebinding TOCTOU closed for policy-gated fetches (issue #177): the
    network adapter now resolves a URL's host exactly once at policy-check
    time and the urllib connection layer only dials those pinned addresses —
    a DNS record that changes between the check and the connection can no
    longer steer the socket (e.g. to a cloud-metadata address). Syntax and
    unconditional target denials happen before DNS, and a failed lookup is not
    retried at connect time. Connections without a pin record fail closed;
    pinned TLS keeps SNI and certificate validation on the original hostname.
    Proxy-routed redirect hops use the proxy path, while every direct redirect
    hop gets its own policy-time pins.
  • Docker privilege flags are now denied by explicit policy (issue #177):
    privileged, cap_add, cap_drop and security_opt are rejected in
    tool arguments with a SECURITY BLOCK, and every container creation
    funnels through _spawn_container(), which raises PermissionError when a
    forbidden kwarg is present, so none of these kwargs can reach the Docker SDK,
    including under python -O.
  • Airlock package installation now requires explicit network authorization
    (issue #177): tool_install_package grants temporary bridge egress, so
    it now goes through the same _check_network_policy gate as the other
    container tools — allow_network=true or
    PAWNLOGIC_DOCKER_ALLOW_NETWORK=true is required for every install call,
    because apt/pip itself causes outbound traffic even when the container
    is already attached to bridge.
  • MCP tool results now carry provenance (issue #177): every result is
    prepended with a model-visible attestation header (server, transport,
    per-call id, content/config/command sha256), and the structured
    MCPToolProvenance is recorded in the tool result envelope metadata,
    so a result can be tied back to the MCP server that produced it.
  • Delegation now enforces a tree-wide budget ceiling: the outermost
    delegate_task in a context creates a shared BudgetLedger from its own
    budget and nested delegations draw from the same pool, so a delegation
    tree can no longer mint a fresh full budget at every level (#177).