Documentation · Versioning

A historical execution should not silently change jobs.

HATS uses semantic versioning for schemas and reference packages. A runtime session needs a precise record of the role and related material it used, not an assumption that a newer document is equivalent.

Session pinning

A runtime session should record the Hat identifier and version, persona identifier and version, and schema version. Historical sessions should not silently upgrade to a new Hat version.

minimum session recordinformative
hat ID
hat version
persona ID
persona version
schema version

Published bytes are immutable

In the proposed v0.2 model, published identifies an immutable approved role definition, not an active execution. Publishers must not replace bytes under the same issuer, identifier, and version. Restoring an earlier role creates a new version.

References carry exact versions and digests. A consumer should reject changed bytes under a pinned digest. That check detects a byte-level change; it does not authenticate the publisher or establish trust on its own.

v0.1 and v0.2 are not an in-place upgrade

v0.1 remains frozen at its existing document and schema identities. The v0.2 review draft introduces a distinct RoleProfile and more explicit assignment, activation, approval, handoff, materials, and memory contracts. Migration is a reviewed mapping exercise, not a field rename. No automatic v0.1-to-v0.2 converter ships; migration must report unresolved or lost fields.

Existing v0.1 elementv0.2 migration treatment
MetadataPreserve identity and author version. Review whether an old active state actually means a published release before mapping it.
Mission, scope, responsibilitiesPreserve wording, make responsibilities explicit, and separate essential instructions.
Persona stringResolve it to an exact reference, version, and digest, or preserve only reviewed inline guidance. Do not invent a pin.
Capability namesMap recognized actions through the actual host namespace. Requests remain requests; secret names become broker references, not credentials.
Generic overlaysReview each change. Do not automatically translate an arbitrary patch into restrictive composition.
Approval or handoff textReissue or reconstruct only with authoritative operation, scope, epoch, expiry, grant, and receipt information.

Migration must report uncertainty

An importer should preserve original source bytes privately and emit a reviewed mapping report. Unsupported essential controls block preparation. Optional descriptive values can remain in a named optional extension only when round-trip fidelity is possible.

Never fill in missing authority

Old fields can omit critical facts about grants, active scope, assignments, or receipts. A migration must report those missing facts rather than selecting a more permissive interpretation.

Stability expectation

Version rangeMeaning
0.xDraft fields may change with documented changelog notes.
1.xBackward compatibility is expected within the major version.