Two views
- Agent → Effective context (
GET /api/agents/{slug}/context) shows current static instructions and conditional/dynamic slots. It requires normal agent access. Source settings links edit current configuration, never historical evidence. Published organization inputs have their own source labels. - Inspector model inputs show sections captured for each actual model call, after memory/history selection and budgeting. Embedded inspectors read them with an agent diagnostic key; see inspector access. Existing normalized request and tool-schema components remain the outer accounting boundary.
Additive manifest contract
manifest.version stays 1. New recordings set composition_version: 1 and attach
sections to instructions and assembled_context components. Older manifests
have neither field; clients must preserve their existing whole-component view.
Each section has id, label, target, role, source (kind, reference,
revision), status, reason, digest, start_byte, end_byte, and
estimated_tokens. Ranges address UTF-8 bytes in one normalized message,
including its preceding separator. They are not character offsets into redacted
text. Source revisions are content hashes, except versioned agent instructions,
which carry the profile revision. Conditional sections omitted from a call have
no content/range. Selections retain individual memory/history evidence.
Section estimates sum to the text contribution only. Parent component estimates
also include message framing/images. Nested section totals must never be added
again to overall input totals. These are heuristic estimates, not provider usage.
Content and safety
Stored manifests contain metadata only, never section text. Inspector reads with retained-content permission resolve ranges against the original retained normalized request and validate their digest before returningtext. The normal
credential redactor then processes each section and the raw request. Metadata-only
reads return content_status: not_requested; pruned or unverifiable content is
unavailable; successful reads are available. Never reconstruct missing text
from current configuration or slice offsets into a redacted request.
Relative source href values point to current agent settings. Clients may resolve
them against their authorized Formation origin, accepting only same-origin agent
paths. A source link does not claim that current settings still equal a captured
revision. Exact copies refer to redacted normalized input, not provider-specific
wire transformations. Existing retention, authorization and pruning apply.
Boundaries
The assembler owns section identity/provenance. The ledger stores the manifest. Formation authorizes and hydrates retained content. SDKs decode additive fields. Inspectors render sections and separate estimates from provider totals. Client application context remains a separately recorded normalized request component; this change does not invent app-authored subdivisions or a new policy system.Tool terminology
Tool usage instructions and tool defaults are sections of system-prompt text. Tool definitions are the callable names, descriptions and JSON schemas recorded as separatetool_schema components. Tool calls are execution events, shown in
Activity. Inspectors should keep one definitions catalog and link to it from usage
guidance rather than creating another catalog. Section display labels may improve
without rewriting the text sent to the model, stable section IDs or older records.