@sema-agent/core
Version:
Stateless, task-oriented AI agent core
23 lines (22 loc) • 1.9 kB
TypeScript
/**
* Which of the engine's published vocabularies and types a consumer may NOT treat as closed.
*
* @contract vocabulary.open — A subject listed in `OPEN_FACE` may gain words — and, for a type, arms and optional
* members — in any release, a patch included; a word leaves it only in a minor, as a BREAKING line. Where such a
* record is read across a process or version boundary (stored and read back, or forwarded and read elsewhere), the
* reader takes it as the subject's open record type and meets a word it does not know with a default arm that
* (1) keeps the record — it never drops it or fails the request because of the word; (2) shows it no wider than the
* narrowest audience that face has; (3) records the word once — subject, word, and the engine version that sent
* it — where an operator can audit it; and (4) takes every decision from a closed word beside it, never from the
* unknown word. It may recognise today's words (a `Partial` table, the subject's `isKnown…` guard) but never refuses
* a word for being missing from one, never ends a `switch` over it with a `never` fence, and never keys a total
* `Record` on its type. On the producer side, a word of an open subject is never the only carrier of something a
* consumer must do: an obligation rides a closed word.
*
* Each row is a subject as the wire-change manifest names it: a word list (a frozen array), or a type — a type
* row covers its discriminating words, its arms and their optional members (a member vocabulary `<Type>.<path>`
* follows its owner). A subject not listed is closed: its words move only in a minor, and a consumer may fence
* them. This list is itself closed — a row added here widens the contract and ships in a minor.
*/
export declare const OPEN_FACE: readonly ["TraceEvent", "TRACE_EVENT_KINDS"];
export type OpenFaceSubject = (typeof OPEN_FACE)[number];