How it works

A work contract states the intent. A context manifest, an authority binding, execution receipts and an evaluation result each refer to its exact revision. Together they form one record of one piece of work, which any tool can check on its own.

  1. Intent Work contract The outcome wanted, its owner, how done is judged, and the limits.
  2. Context Context manifest What the agents may use, by reference, and for what purpose.
  3. Authority Authority binding Which actions are allowed, approved by whom, within which limits, until when.
  4. Execution evidence Execution receipts What was done, under which decision, chained by digest.
  5. Accepted outcome Evaluation result Each criterion judged with evidence, then the owner’s decision.
Each object refers to the exact revision of the work contract; the arcs are those references. Acceptance closes the technical work. Business impact stays unknown until it is measured, which is why the line continues dashed.

Five objects, one record

Every object carries protocol_version, type, id, created_at and scope, and may name a profile such as software-delivery/0.1 and carry extensions. The contract, the context manifest, the authority binding and the evaluation result are revisable: a change issues the next revision, which names its author and summarizes the change. Receipts never change.

The examples follow Harbor & Pine, a fictional twelve-person software company, as it responds to a competitor’s launch.

Work contract wc_

Intent. Revisable.

Summary
Plain language, enough to decide from.
Objective
The outcome wanted, which is required, and the implementation requested, which is optional. They are kept apart on purpose.
People
The accountable owner, the requester, and stakeholders who approve, accept, are consulted or are informed. The contract gives each approver the roles they may approve under.
Criteria
Each has a stable ID such as AC-1, a statement, whether it is required, and a method: an automated check, human judgment, or a measurement window that starts on acceptance or on pilot approval.
Constraints
Things the work must do or must not do.
Limits
A deadline, a cost limit in an explicit currency, and a maximum risk of low, medium or high.
Outputs
What the work is expected to produce.

At Harbor & Pine Dana Whitfield, head of product, owns the contract, and Priya Raman, a product manager, approves it. The criteria include enforcing approvals before publishing, keeping client workspaces isolated, an owner review of the preview, and pilot adoption measured over 30 days from pilot approval. Limits: USD 400, medium risk, 14 days.

Context manifest ctx_

Context. Revisable.

Purpose
Why the agents need this context for this contract.
Items
Each is a reference to a source, never a copy, with its system, version, scope and classification: public, internal, confidential or restricted.
Provenance
Who produced each item, when it was retrieved, and how. Provenance is not proof of truth.
Freshness
When the item was true, and how old it may be when it is used.
Disclosure
Who may see each item, what is redacted, and which fields or facts are actually used.
Gaps
Known unknowns, and what was left out and why. Residency and retention can be stated too.

At Harbor & Pine Comments in the Aster Foods workspace, the internal feedback board, and identity records that name approvers. The Lumen Beverages workspace is never touched.

Authority binding auth_

Authority. Revisable.

Contract
A reference that binds one exact contract revision.
Parties
The grantor, an organization and a person, and the grantee, an agent.
Grants
Each names an action such as repo.pull_request.open, a resource, limits on cost and count, and conditions.
Approvals
Who decided, in which role, when, by which method (interactive, standing, or a PAP confirmation) and with what assurance (asserted, or verified when signed or step-up evidence exists). Each covers the contract revision and a SHA-256 digest of the whole binding, its approvals and revision bookkeeping aside, so any other change to the binding makes it stale.
Policy
The policy and version that decided, and a reference to the decision.
Validity
A validity window and a revocation status reference. The Enforcement point checks revocation before every effect, against the live status at Controlled and above, and never trusts the object for it.
Delegation
The parent binding, the depth and the maximum depth, and whether further delegation is forbidden or must attenuate.
Credentials
References to an OAuth grant, a token exchange or a PAP account. Never a token.

At Harbor & Pine The coding agent may create a branch, open a pull request and deploy a preview. A production deploy would need its own grant and an approval that is not standing.

Execution receipt rcpt_

Execution evidence. Immutable.

References
The contract, the context and the authority it acted under.
Action
Its name, resource, idempotency key and payload digest, and for a retry after a failure, the key of the attempt it retries.
Actor
The principal, whether an agent or a person performed the action, and the runtime.
Decision
Permit or deny, the reasons as catalog codes, when it was evaluated, and the policy.
Outcome
Succeeded, failed, denied, cancelled, unknown or replayed, with a summary of every change, partial ones included. The outcome stays unknown until it is known; nothing reports failed before then.
Results
Effects with external references, artifacts with their digests, and the cost.
Trace
A W3C traceparent, a correlation ID, and A2A, MCP or PAP identifiers when present.
Integrity
RFC 8785 canonical JSON, a SHA-256 digest, and the previous receipt’s digest, which chains a contract’s receipts. Attestation is none, JWS or in-toto.

A verified chain shows that the receipts are consistent with each other; a digest shows a record is unchanged only against a digest you already trust, and an edited record can be resealed. Neither shows that the action was authorized or that the producer was honest. Demo receipts carry no attestation, and the simulation says so.

At Harbor & Pine A branch, a commit, a pull request and a preview URL. Under the software-delivery profile, a commit’s digest is its git object ID.

Evaluation result eval_

Accepted outcome. Revisable: acceptance is recorded as a new revision.

References
The contract and the receipts judged.
Evaluator
A principal, with a name and a version.
Execution
Complete, partial or incomplete, kept apart from the technical result.
Criteria
Each judged pass, fail or unknown, with its method, evidence and limitations.
Technical result
Derived, never asserted: fail if any required criterion fails, pass only if every required one passes, and unknown otherwise.
Acceptance
Pending, accepted or rejected, by whom, when, and for what scope, such as a technical preview.
Business impact
Unknown, measuring or measured, with its measurement window. A passing test suite is not evidence of customer value.

At Harbor & Pine The evaluator checks tenant isolation and approval handling. Dana Whitfield accepts the technical preview. Business impact stays unknown, and nothing is deployed to production.

Objects travel in an envelope with a sender, a recipient and a correlation. Validating an envelope assumes an open world, where referenced objects may live elsewhere. Validating a bundle assumes a closed world: the bundle is the complete record of one contract revision, and every invariant below must hold.

Shared conventions

Enna adopts the Personal Agent Protocol’s conventions wherever PAP has one, so one client can speak both.

Format
JSON in UTF-8. Duplicate member names are rejected. Member names and enum values are lowercase snake_case.
Versions
protocol_version is "0.1" on every object. Before 1.0 any minor version may be incompatible, so a consumer rejects a version it does not support.
Identifiers
1 to 256 characters from the URL-safe base64 alphabet, with a prefix for the kind: wc_, ctx_, auth_, rcpt_, eval_, env_, apr_, art_ and item_.
References
An id and a revision for revisable objects; an id and a digest for receipts and artifacts.
Time
RFC 3339 timestamps in UTC with a Z, and durations in whole seconds. Validators and the runtime take the current time as an input, never from a global clock.
Money
An ISO 4217 currency code and a decimal string, such as USD and "1250.00", compared exactly. Different currencies never compare.
Unknown
Absent means not stated, and null is never valid. Where a third state matters, unknown is an explicit value, and it is never false, never a pass and never an approval.
Extensions
Allowed only under extensions. Objects are closed everywhere else. Unknown non-critical extensions are ignored and unknown critical ones are rejected; inside an authority binding, every extension counts as critical.

The business lifecycle

A work contract moves through its own business lifecycle, independent of any transport. The main path runs from proposal to acceptance.

  1. proposed

    The contract exists. Nothing is approved and nothing has happened.

  2. awaiting_approval

    Waiting for the approvals its grants require.

  3. authorized

    Approved for this exact revision. No effect has started yet.

  4. executing

    Effects are under way. The state holds until every effect’s outcome is known.

  5. execution_complete

    Every effect has a known outcome, partial ones included.

  6. evaluating

    The criteria are being judged against evidence.

  7. awaiting_acceptance

    The evaluation is recorded, and acceptance is decided.

  8. accepted

    The owner, a named acceptor or an agent the owner delegated accepted the outcome. Terminal.

  • rejected

    Terminal. The contract ends without acceptance.

  • cancelled

    Terminal. PAP’s spelling; A2A spells it TASK_STATE_CANCELED.

  • blocked

    Not terminal. Business work that cannot proceed, with a reason code.

  • Every action checks the state. An Enforcement point refuses any action, replays included, unless the contract is authorized or executing, with illegal_transition among the reasons.
  • Revisions return to approval. Revising the contract issues the next revision and returns it to awaiting_approval. An approval bound to an older revision is approval_stale.
  • Unknown is not failure. executing holds until every effect’s outcome is known, so nothing reports failure while the outcome is unknown.
  • A block is not a transport failure. Transport failures are retried at the transport and never change the business state.
  • The table is data. The transition table is normative and implemented as data. Tables map these states to PAP operation states and A2A task states, and show where no one-to-one match exists.

What a complete record satisfies

Schemas check the shape of each object. These invariants check a whole bundle, with the current time passed in. Each shows the error catalog codes it can raise, from the reference runtime's own list.

  1. References resolve. Every reference points to an object in the bundle. reference_unresolved
  2. Revisions match. Each receipt names the same contract revision as the authority and the context it used. revision_mismatch
  3. Tenant boundaries hold. Every scope lies inside the contract’s scope or a workspace that an approved, unrevoked grant names, and an effect reads only context its own binding reaches. tenant_mismatchcontext_out_of_scope
  4. Approvals bind. Each approval covers the current contract revision and the digest of the whole binding, so a change to a grant, the window, the policy or the delegation makes it stale. approval_stale
  5. Approvers are in scope. Each approver is in scope, and a role a grant requires counts only when the contract gives it to that approver. At Controlled and above, the requester cannot be the only approver above a declared threshold. approver_out_of_scopeseparation_of_duties
  6. No effect without authority. Only the binding’s grantee acts, inside the binding’s window, with the approvals and any quorum its grant requires, and never after the binding, or one it was delegated from, is revoked. approval_missingapproval_expiredapproval_revokedapproval_deniedquorum_not_metauthority_expiredauthority_revokedauthority_insufficient
  7. Context is fresh. Every context item is fresh at the moment an effect uses it. context_stale
  8. Money is consistent. Costs and limits use the same currency, and the cumulative cost stays within the limit. currency_mismatchlimit_exceeded
  9. Delegation attenuates. A child’s grants are a subset of its parent’s, it expires no later, and its depth stays within the maximum. subdelegation_forbiddenattenuation_violated
  10. Idempotency holds. A key names one action. The same name, resource and payload return the original receipt, marked replayed; the same key with another name, resource or payload is refused, and nothing happens. idempotency_conflict
  11. Evidence matches criteria. Every required criterion is evaluated, and every pass or fail carries evidence. evidence_missingcriterion_unknowntechnical_result_mismatch
  12. Acceptance comes last, from the owner or an acceptor. Acceptance follows execution and evaluation, and comes from the owner, a person the contract names as an acceptor, or an agent the owner delegated it to through a binding the owner approved. acceptance_prematureacceptance_not_owner
  13. Receipts chain. The digest chain of a contract’s receipts verifies. digest_mismatchchain_broken

Conformance

Conformance has two dimensions: what you build, and how strong its controls are.

Producer
Emits valid objects.
Consumer
Validates objects and honours their meaning, including that unknown is never approval.
Enforcement point
A runtime that gates and performs actions under authority, and emits receipts. It refuses to act under a profile it does not know.
Evaluator
Emits evaluation results.

The assurance levels, Essential, Controlled and Assured, are cumulative and chosen by risk. Why Enna lists what each one requires.

Every claim is self-declared in enna.json; nothing is certified. The reference implementation claims Producer, Consumer, Enforcement point and Evaluator at Essential for its own draft contract. By default it applies the Controlled level's record rules (separation of duties, thresholds and quorums, expiring approvals), but it does not meet the Controlled level: its stores live in memory, and it consults its own revocation registry rather than a live status.

Discovery

A business publishes /.well-known/enna.json. It is a proposed draft convention, not registered with IANA. PAP’s publication rules apply: HTTPS only, HTTPS-only redirects, and a document speaks only for the domain it was requested from.

Organization
Name and domain, with an optional legal name, jurisdiction and registration identifiers.
Issuer
The OAuth issuer, whose RFC 8414 metadata lists enna_domains, mirroring PAP’s poppy_domains check.
Agents
Each with its client_id, role, the work it accepts, and its transports: an A2A Agent Card, an MCP URL or a PAP endpoint.
Conformance
Classes, level and profiles, always self-declared, with a statement URL.
Approvals and delegation
Supported approval modes, whether they are verifiable, and the maximum delegation depth.
Receipts
Where attestation keys are published, and how long receipts are kept.
Links
Contacts, policies, and the business’s poppy.json if it serves personal agents too.

Nothing sensitive belongs in it, such as internal policy endpoints or private systems. The two discovery documents link both ways: a business lists Enna in poppy.json under the extension key businessagentprotocol.org/enna, with a version and the URL of its enna.json.

This site publishes its own enna.json, which says that it publishes the specification, runs no agents and claims no conformance, and where to report a security problem.

Mappings

Each mapping is labeled implemented and tested, or proposed. Nothing here claims an adapter for an external standard beyond the tested data mappings.

Mappings to the standards Enna builds on
StandardMapping and status
PAP 0.1, operations v1 Operation to and from a contract revision, an approval and a receipt rollup; discovery cross-links Implemented and tested
A2A 1.0 Business state to and from task state Implemented and tested
A2A 1.0 Enna objects as data parts under an extension URI Proposed
MCP Enna objects in tool structuredContent; acting tools gated by authority; audience validation and the ban on token passthrough kept intact Proposed
RFC 8693 Delegation hops and actor chains Proposed
RFC 9396 Grants as authorization_details, with a proposed type Proposed
RFC 8707 Audience Proposed
AuthZEN The runtime gate as an evaluation request, with the decision recorded in the receipt Proposed
W3C PROV Contract as prov:Plan, receipt as prov:Activity, artifacts as prov:Entity, actors as prov:Agent Proposed
in-toto A receipt as a Statement whose subjects are artifact digests Proposed
OpenTelemetry traceparent in receipts, and proposed enna.* span attributes Proposed