Skip to main content

hummand

SDK Python da Hummand: mandato a agente, ato delegado, servidor MCP de mandato e verificação offline do recibo humanproof/1.

O sistema que executa a ação só executa com o recibo de que uma pessoa específica, viva e presente, viu e autorizou; qualquer um verifica esse recibo sem confiar em ninguém.

pip install hummand            # cliente e verificação
pip install "hummand[mcp]"     # mais o servidor MCP de mandato

Python 3.11 em diante. A criptografia do recibo vem do pacote humanproof-core, a mesma implementação que assina no servidor e verifica no navegador.

Estado

disponível, em produção: mandato a agente, ato delegado, servidor MCP de mandato e verificação offline do recibo. arquitetura-alvo: os adaptadores para frameworks de agente.

Duas metades

  • Verificação (verificar, problemas, Prova): offline, sem rede, com o JWKS pinado por quem chama. É o que o executor roda antes de executar a ação. É esta metade que sustenta a frase acima.
  • Cliente (Hummand): o que o agente usa para pedir a prova. Conveniência; a trava não está nele.
from hummand import ProvaInvalida, verificar

JWKS = open("keys.json").read()  # pinado: baixado uma vez, versionado com o serviço

try:
    prova = verificar(recibo, jwks=JWKS, tipo="ato.delegado", tenant_id="tn_da_sua_empresa")
except ProvaInvalida as erro:
    recusar(erro.problemas)  # sem prova, não executa

Mandato a agente

from hummand import Hummand

with Hummand(api_key, jwks=JWKS) as h:
    pedido = h.mandato(
        sujeito="operador-1",
        mandatario="agente-conciliador",
        acoes=["conciliacao"],
        validade_ate="2026-12-31T23:59:59Z",
        limites={"valor_max": 5000},
    )
    entregar(pedido.url)  # a pessoa prova presença e aceita o escopo escrito

    prova = h.delegado(
        mandato_ref=pedido.ato_id,
        acao="conciliacao",
        sujeito="agente-conciliador",
        valores={"valor_max": 1200},
    )

Revogar a autoridade do agente em todos os sistemas que a exigem é um ato humano, e só outro a devolve.

Servidor MCP de mandato

Para o agente que fala MCP: pedir_mandato, conferir_acao (devolve cabe com o recibo assinado, inclusive na recusa) e estado_do_mandato. Nenhuma ferramenta revoga.

É um portão que avisa, não uma trava: o agente pede autorização; o recurso só executa com recibo. Um agente que não pergunta não é parado pelo servidor, e por isso toda resposta traz o campo garantia dizendo isso.

{
  "mcpServers": {
    "hummand-mandato": {
      "command": "hummand-mcp",
      "env": {
        "HUMMAND_API_KEY": "<chave restrita>",
        "HUMMAND_JWKS": "/caminho/keys.json",
        "HUMMAND_MANDATARIO": "agente-conciliador"
      }
    }
  }
}

A chave leva só atos:create:mandato.agente, atos:create:ato.delegado e checks:read; o painel tem um atalho que a emite assim. O mandatário vem da configuração, não do agente. O link do mandato vence em 10 minutos.

Referências

Licença: Apache-2.0.

Metadata

Release files for hummand 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hummand 0.4.0
File Size Uploaded Provenance
hummand-0.4.0.tar.gz 20.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hummand 0.4.0
File Interpreter ABI Platform
hummand-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 44.2 kB

Release files / hummand-0.4.0.tar.gz

Download URL hummand-0.4.0.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
eb3af5f994a65e75f580c796eb19366df235ec06557ceffb899db249b777dc2b
BLAKE2b-256 checksum
How to use checksums
765057cc98c823bbc6e7e4421d5d5f5b1b6f6fe55ec331d6c47336b424a1ac2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Release files / hummand-0.4.0-py3-none-any.whl

Download URL hummand-0.4.0-py3-none-any.whl
Size 23.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78323bbc79ff4cb915c8e3aade1ef6509e625299ec34b60019102556dbffda3a
BLAKE2b-256 checksum
How to use checksums
b74e4a4a72acdb04ea5d28dd26482da2270e609bc9b832e2ecab57bc29919c7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Security for hummand 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hummand-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page