Expand description
ai.hyprstream.model — the per-account signed-mutable-pointer record.
The confirmed 3-field lexicon:
{
"lexicon": 1,
"id": "ai.hyprstream.model",
"defs": { "main": { "type": "record", "key": "tid", "record": {
"type": "object",
"required": ["repo", "currentOid", "createdAt"],
"properties": {
"repo": { "type": "string", "format": "at-uri" },
"currentOid": { "type": "string", "format": "cid" },
"createdAt": { "type": "string", "format": "datetime" }
}
}}}§Encoding
Records are DAG-CBOR. The field order in the encoded map is the canonical
order — pure lexicographic byte order (RFC 7049 §4.2.1 “core
determinism”, matching atproto’s @atproto/lex-cbor). For these three keys
that is createdAt, currentOid, repo. (NOT length-first-then-lex; that’s
the older RFC 7049 §3.9 form, which atproto rejects.) The encoder handles
this; callers do not need to care.
currentOid is a format: "cid" string — not a CID link. It references
external git content by OID, so it is carried as text and validated as a CID
string at construction time. (If it were a link, DAG-CBOR tag 42 would mean
the referenced block is part of this repo’s MST — which it isn’t; the git
blob lives in the separate git-xet / gittorrent CAS.)
Structs§
- Model
Record - An
ai.hyprstream.modelrecord.
Constants§
- COLLECTION_
NSID - The NSID of this record type. The collection portion of an at-uri that
addresses a record (
at://<repo>/<collection>/<rkey>).