Ir para o conteúdo principal
Voltar aos docsAction Proof · Delegação delimitada
Especificação

Um mandato é um artefato, não uma configuração.

A delegação delimitada é uma capacidade dentro de Execution Authorization, não uma categoria própria. Um Task Contract enquadra a cadeia; não substitui nenhuma de suas peças. Cada passo continua produzindo seu próprio Execution Grant de uso único e seu próprio Action Receipt.

Projeto

TaskContractV1

O contrato vincula, num único objeto assinado: o tenant, os atores habilitados a agir sob ele, o Guardian e a audiência a que se dirige, a revisão, os passos, suas restrições, o orçamento e suas unidades, a janela de validade, a política e o manifesto em vigor, e o contador de revogação.

  • taskId · revision

    Identidade e versão. Um contrato aprovado nunca é editado no lugar: qualquer mudança num passo produz uma nova revisão que precisa ser revisada de novo.

  • tenant · guardianId · audience

    De quem é e qual único ponto de execução pode consumi-lo. Um mandato se dirige a um Guardian.

  • actors[]

    Cada ator vincula um identificador a uma chave e à sua thumbprint. Um passo é reclamado provando posse dessa chave contra um desafio fresco, consumido de forma atômica.

  • authority

    Set per operation by the protocol. The caller neither chooses it nor may degrade it within the same request, and an approved mandate must never lower a step's threshold. The Guardian must refuse, locally, any operation that is not eligible for delegation — even under a validly signed grant.

  • steps[]

    Cada passo nomeia sua operação canônica, seu provedor, sua lista de recursos, o digest de seus parâmetros exatos, e carrega maxUses fixado em um.

  • budget

    Durable and atomic per tenant, task, revision and step. Committed means consumed plus anything reserved whose outcome is pending or uncertain, so one grant cannot reserve twice — and submitting the same task and revision with different content must not open a fresh budget.

  • issuedAt · expiresAt

    A janela. Depois dela nenhum passo novo é enviado; não há período de carência nem renovação de dentro da tarefa.

  • policyVersion · revocationVersion

    The signed local policy in force and the revocation counter. Revocation is checked as part of the send itself, not only before it; if storage or revocation is unavailable, no new effects go out.

A interseção continua valendo

permissão efetiva = mandato ∩ grant ∩ política local assinada ∩ restrições do adaptador ∩ orçamento ∩ identidade ∩ validade e revogação

The cloud never widens the local ceiling. A mandate is one more term in the intersection, never a way around it, and the Guardian has to enforce all of them before a provider is contacted — for the task runtime, gap 03 below says where that stands today.

Máquina de estados

Uma tarefa ocupa exatamente um estado, e o ledger registra a transição, não a intenção.

  • draft
  • approved
  • running
  • paused
  • completed
  • revoked
  • expired

Exclusões deliberadas

  • Sem subdelegação. Um mandato, um Guardian, um orçamento; uma tarefa não pode ceder parte de si a outro ator nem levantar um segundo ponto de execução.
  • Sem efeitos abertos. Um passo sem operação canônica e sem digest de parâmetros não é um passo.
  • Sem autorização permanente. Todo mandato expira, e a expiração não é renovável de dentro da tarefa.
  • O que o ator lê — documentos, saída de tools, conteúdo web, memória — é entrada, nunca autoridade. Não pode estender o contrato.
  • O adaptador determina o efeito canônico e o estado anterior. O resumo de um agente, um esquema somente leitura ou um destino tirado do conteúdo não são aceitos como verdade.

O papel do leitor

O leitor local é explicativo. Neste perfil um achado isolado, uma abstenção, uma não avaliação ou uma leitura parcial não bloqueiam, não revogam nem forçam aprovações adicionais sobre um efeito exato já aprovado e permitido. A autoridade nunca é elevada para compensar um alerta, e nunca é baixada porque nenhum alerta apareceu. Identidade, assinatura, orçamento, precondição e revogação continuam falhando fechado — isto não é permissão para executar sem controles.

Known gaps in the local runtime

A local runtime for this profile exists and runs in simulation. A review on 2026-09-23 found these differences between the specification above and the code. They stay listed here until each one is closed with a regression test.

  1. 01Offline verification of a task bundle treats the expiry of a step's grant as a reason to reject, so a bundle stops verifying minutes after it was issued. A historical proof has to stay verifiable after the authorization it records has expired.
  2. 02The same verifier rejects correctly signed receipts whose status is failed, indeterminate, revoked or expired. An incomplete task has to be representable as incomplete, not as invalid.
  3. 03The task runtime does not yet apply the signed local policy, nor a local check that an operation is eligible for delegation. Until it does, the ceiling depends on whoever signs the grant.
  4. 04Revocation is optional in the task runtime, and it is checked before the provider preflight rather than at the moment of sending.
  5. 05The task ledger identifies a contract by its digest, so a different contract reusing the same task and revision would get its own budget. There is no transition yet from indeterminate to a reconciled result.
  6. 06A task bundle does not yet carry the human approval, the local policy applied or the durable claim, so on its own it does not prove separation of duties or the ceiling that bounded the task.

Planned next — not available today

Each item below is part of the current plan. None of it is available today, and each one will appear on the evidence page with its own level — design, simulated or real integration — when it closes.

  • Approval bound to the mandate: a single-use challenge tied to the contract digest, the revision, the approver and an expiry. In an organization the requester and the approver are different people, and an open session on its own does not count as a fresh approval.
  • A minimal console in securestamp.online to review a proposed task, approve or reject one exact revision, follow its budget and uncertain steps, request revocation and export the evidence.
  • Two labels that are never merged. Restricted call: only the tools and arguments the mandate allows reach the server — which says nothing about the server's internal effect. Exact effect: a verified adapter binds operation, resources, parameters and preconditions to the observed result. A route that bypasses the Guardian is labelled not covered.
  • The model is shown the approved snapshot of each tool's name, description and schema. A later change stops the affected task instead of reaching the model first.
  • Later, and not in the first profile: an authority diff. A task that needs something outside its mandate asks for that exact change; the new revision inherits what was consumed and what is uncertain, and never resets the budget.

Estado

Design, with a local runtime in simulation. The schema and its invariants exist and are covered by tests, and the known gaps above are open. No delegated mandate has been executed against a real provider, so this profile is labelled simulated. A result is never extrapolated from a mock or from a different connector, and a legacy connector tested with MFA or quorum does not credit multi-step delegation.

Perguntas em aberto

Canonicalization, size and count limits, clock handling and the rejection of unknown fields are fixed in the local contract, and are to be published as versioned test vectors alongside the verifier. The verifier ships before the profile: nothing is emitted that cannot yet be verified independently — which is why the verifier gaps above are closed first.

Delegação delimitada — especificação do Task Contract | SecureStamp Foundation