An open draft specification · v0.1 baseline · Apache 2.0

Make each operational role explicit, versioned, and reviewable.

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.

License
Apache 2.0
Schema
JSON Schema 2020-12
Offline validator
Python 3.10+
Maintained by
Pcnaid Inc.

What it is

Give the operational role its own portable contract.

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

Three design problems for portable operational roles.

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.

Design problem

Runtime-specific policy mappings

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

Evidence split across systems

Policy decisions, approvals, and activity records can live in separate systems. Implementations need explicit attribution, coverage, and verification limits.

Why HATS

Make the operational role explicit and reviewable.

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

Separate the role from the worker

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

Keep policy in its proper place

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

Make state and outcomes attributable

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

Five boundaries to keep separate.

ConcernWhat it means in HATSWhat it does not replace
PersonaHow a worker communicates and presents information.Identity or authority.
HatThe versioned contract for a particular operational job.An enforcement boundary by itself.
PolicyThe rules used by a runtime to decide whether an action is allowed.Authentication, grants, or gateway controls.
GatewayThe controlled path that checks a protected call before it runs.A role definition or a prompt.
AuditAn 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

A shared contract for the people who define, build, and review operational systems.

Role authors

Describe a bounded job with a mission, scope, responsibilities, outputs, escalation paths, and versioned source material.

Runtime builders

Map a role into a supported environment while keeping requested capabilities distinct from effective permissions.

Review and governance teams

Evaluate a stable artifact with defined limitations rather than relying on undocumented behavior or broad claims.

How it works

A versioned role, host controls, and attributed evidence.

Author and validate a versioned role

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 bytes

Publish immutable versioned bytes and verify exact digests. Use a separately defined trust or signature profile if your host provides one.

Prepare for the active context

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.

Mediate declared gateway paths

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.

Emit attributed evidence

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

Four foundational distinctions, kept cleanly separate.

ConceptWhat it governsExample
PersonaVoice, tone, style, presentation. The how-it-feels layer.Warm, concise, English.
HatRole contract. Mission, scope, capabilities requested, approvals required.Client intake coordinator v0.1.0.
CapabilityA specific tool, dataset, or action the hat is requesting authorization for.records.read on customer_invoices.
Effective permissionsWhat the policy engine actually allows after evaluating all rules.The decision that runs.

A practical path

From role definition to controlled work.

Author a bounded role

Define the mission, in-scope and out-of-scope work, instructions, requested capabilities, output contract, and audit needs.

Version and validate the document

Use the applicable schema and semantic rules. A published role stays pinned to its exact identity and bytes.

Prepare it for the active context

A compatible host resolves the role, assignment, materials, and current grants into an execution-specific plan.

Enforce protected actions outside the role

The gateway and policy layer authenticate, check scope, handle approvals, and record evidence on the paths they actually control.

Get started

Three paths. Pick the one that fits your day.

Free · 10 minutes

Read the overview

Read the specification overview and selected format, example, and conformance documentation published on this site.

Implementation guidance

Understand the reference tools

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

Explore HATWorks

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

Start with the specification. Then see HATWorks in product context.

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.