@sema-agent/core
Version:
Stateless, task-oriented AI agent core
24 lines (23 loc) • 1.59 kB
TypeScript
/**
* Catalog messages of the `constitution` band that are not mode texts: the harness head, the two security
* sentences, tool-result retention, the execution-environment contract, the delegated child's consent
* notice and delivery notes, and the isolated-worktree notice. Locked: no overlay source may write them.
*
* The harness head is one SECTION made of line messages (each line its own message, the hooks lines gated
* by facts), joined by a single newline — so its bytes are the historic single block. The
* execution-environment contract is likewise three line messages; its first bullet has one variant per
* (read face, write face) pair, because the two faces are independent seats.
*
* Wording notes kept with the text they explain:
* - the reminder sentence is the narrower historic wording, not the reference's "or other tags": the mark
* it is paired with is a property of `<system-reminder>` only;
* - the context-management line is two-state on within-task compaction, and never claims the context
* window stops binding;
* - tool-result retention keeps its instruction although the reference dropped it: this engine clears,
* summarizes and budgets tool results, and the sentence is what tells the model to keep what matters;
* - the URL rule composes on every shape (the reference's lean arm omits it); safety text is never gated
* on a presentation choice.
*/
import type { CatalogMessage } from "./schema.js";
export declare const HARNESS_SECTION_ANCHOR = "# Harness";
export declare const CONSTITUTION_MESSAGES: readonly CatalogMessage[];