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.
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 element | v0.2 migration treatment |
|---|---|
| Metadata | Preserve identity and author version. Review whether an old active state actually means a published release before mapping it. |
| Mission, scope, responsibilities | Preserve wording, make responsibilities explicit, and separate essential instructions. |
| Persona string | Resolve it to an exact reference, version, and digest, or preserve only reviewed inline guidance. Do not invent a pin. |
| Capability names | Map recognized actions through the actual host namespace. Requests remain requests; secret names become broker references, not credentials. |
| Generic overlays | Review each change. Do not automatically translate an arbitrary patch into restrictive composition. |
| Approval or handoff text | Reissue 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 range | Meaning |
|---|---|
| 0.x | Draft fields may change with documented changelog notes. |
| 1.x | Backward compatibility is expected within the major version. |