Design problem
Role hidden in prompts
When an operational role exists only in model or runtime instructions, it is harder to review, version, and move between implementations.
An open draft specification · v0.1 baseline · Apache 2.0
HATS — Human-governed Agent Task Specification — is an open draft format for declaring an operational role, the authority it requests, and its approval and evidence needs. Runtime policy and gateways determine effective permission; audit events are attributed records for decisions on the implementation’s declared mediated paths.
What it is
HATS gives the operational role its own portable contract while keeping persona, identity, and runtime policy distinct.
The format is provider-neutral. Informative mappings exist for selected runtime and protocol styles; each implementation must publish tested host versions, paths, and limitations. This site publishes an overview and selected documentation. The canonical repository and machine-readable schemas are not yet publicly available; source access may be requested through Contact.
The design problem
Design problem
When an operational role exists only in model or runtime instructions, it is harder to review, version, and move between implementations.
Design problem
Hosts express grants, approvals, and protected paths differently. A portable role contract does not remove the need to define and test each mapping.
Design problem
Policy decisions, approvals, and activity records can live in separate systems. Implementations need explicit attribution, coverage, and verification limits.
Why HATS
A role should not be buried in a conversation, a tool configuration, or a model-specific instruction. HATS gives teams a durable contract they can version, inspect, and carry between compatible environments.
Portable definition
A Hat describes the job. The principal is the person, service, or other worker that performs it. Changing the worker does not silently rewrite the job.
Clear boundaries
A role can request authority, but it does not grant authority. The host’s authenticated policy and gateway controls decide what may actually happen.
Useful evidence
HATS names the information a runtime needs to prepare a role and report its application without equating a document with proof of real-world behavior.
How it fits
| Concern | What it means in HATS | What it does not replace |
|---|---|---|
| Persona | How a worker communicates and presents information. | Identity or authority. |
| Hat | The versioned contract for a particular operational job. | An enforcement boundary by itself. |
| Policy | The rules used by a runtime to decide whether an action is allowed. | Authentication, grants, or gateway controls. |
| Gateway | The controlled path that checks a protected call before it runs. | A role definition or a prompt. |
| Audit | An attributed record of a role-scoped action or outcome. | Independent proof of every claim. |
HATS is a declaration format, not a replacement for authentication, authorization, secret storage, data-boundary enforcement, or a host runtime’s policy engine.
Who it is for
Describe a bounded job with a mission, scope, responsibilities, outputs, escalation paths, and versioned source material.
Map a role into a supported environment while keeping requested capabilities distinct from effective permissions.
Evaluate a stable artifact with defined limitations rather than relying on undocumented behavior or broad claims.
How it works
A YAML or JSON document declares the role’s mission, boundaries, requested capabilities, approval needs, and evidence requirements. Validate it against the exact applicable HATS schema and semantic rules.
Publish immutable versioned bytes and verify exact digests. Use a separately defined trust or signature profile if your host provides one.
An authorized host resolves the role, assignment, required materials, current grants, and policy into a context-specific plan. The role itself does not issue authority.
A conforming Controls implementation identifies the protected paths it mediates, enforces current grants and approvals on those paths, and records attributed decisions. Signing or hash chaining requires a separately tested profile.
Audit events provide attributed records that an implementation may use as one input to its own compliance evidence. Claims must disclose coverage and verification limits.
Foundational distinctions
| Concept | What it governs | Example |
|---|---|---|
| Persona | Voice, tone, style, presentation. The how-it-feels layer. | Warm, concise, English. |
| Hat | Role contract. Mission, scope, capabilities requested, approvals required. | Client intake coordinator v0.1.0. |
| Capability | A specific tool, dataset, or action the hat is requesting authorization for. | records.read on customer_invoices. |
| Effective permissions | What the policy engine actually allows after evaluating all rules. | The decision that runs. |
A practical path
Define the mission, in-scope and out-of-scope work, instructions, requested capabilities, output contract, and audit needs.
Use the applicable schema and semantic rules. A published role stays pinned to its exact identity and bytes.
A compatible host resolves the role, assignment, materials, and current grants into an execution-specific plan.
The gateway and policy layer authenticate, check scope, handle approvals, and record evidence on the paths they actually control.
Get started
Free · 10 minutes
Read the specification overview and selected format, example, and conformance documentation published on this site.
Implementation guidance
The specification repository documents an offline reference validator for Python 3.10+. The v0.1 TypeScript and Python helpers are not a runtime engine.
Start with the selected documentation. Source access is available on request via Contact.
Internal product candidate
Product snapshot 0.3.0-internal.1 covers versioned roles, scoped policy decisions, approvals, materials, continuity, and attributed activity. Request current availability.
Read or implement
The overview and selected documentation are public on this site. HATWorks is a separate product candidate; it is not required to read, author, or validate HATS documents.