Skip to content

absl schema (v0.3)

The models/absl.json file is validated by the normative JSON Schema published at its canonical URL:

PropertyTypeRequiredDescription
kind"absl-file"yes
schemaVersionAbslSchemaVersionyes
agentsAbslAgent[]yes
enginesAbslEnginesnoHost/tool compatibility declaration (0.3.0, file-level). JSON-model-only in 0.3.0 — no DSL syntax yet (same posture as pre-EP-6 rateLimits); serializers therefore do not emit it and parse→serialize→parse drops it.
provenanceAbslProvenancenoWhere this file came from (0.3.0, file-level, JSON-model-only): source repo/ref, revision, canonical content hash — the pinning/audit anchor for registry distribution.
PropertyTypeRequiredDescription
kind"agent"yes
namestringyes
versionstringyes
descriptionstringno
modelstringno
personalityAbslPersonalityno
capabilitiesAbslCapability[]yes
triggersAbslTrigger[]yes
contextAbslContextPolicynoLayered context injection + compaction (0.3.0, spec B1.1).
memoryPolicyAbslMemoryPolicyno
permissionsAbslPermissionsnoDeclarative tool/action permissions (0.3.0, spec B1.3).
evaluationAbslEvaluationnoRegression datasets + scorers (0.3.0, spec B1.4).
trustTierAbslTrustTierno
PropertyTypeRequiredDescription
kind"approval-rule"yes
actionsstring[]yes
PropertyTypeRequiredDescription
kind"capability"yes
namestringyes
guardrailsAbslGuardrail[]yes
rateLimitsAbslCapabilityRateLimitsnoPer-capability rate limits — cost & abuse protection (ABSL-COPY-07, M42 governance pack; additive since 0.2.0). All fields optional; a capability declaring none is valid but validator-warned (advisory). DSL syntax since EP-6: RATE_LIMIT <REQUESTS_PER_MINUTE|TOKENS_PER_DAY| CONCURRENT> <n> lines inside the CAPABILITY block (before that the fields were JSON-model-only and the text form silently dropped them).
constraintsstring[]noFree-form governance constraints, e.g. "no PII in logs" (additive since 0.2.0). DSL syntax since EP-6: CONSTRAINT "<text>" lines inside the CAPABILITY block.

Rate-limit knobs for one capability (M42). Deliberately a flat value object — not a kind-discriminated AST node: it never appears in the AbslNode union; the DSL expresses it as one RATE_LIMIT line per knob.

PropertyTypeRequiredDescription
requestsPerMinutenumberno
tokensPerDaynumberno
concurrentnumberno
PropertyTypeRequiredDescription
kind"compaction-policy"yes
triggerTokensnumbernoApproximate token count at which compaction runs.
preservestring[]yesContent classes to preserve across compaction (decisions, recent files…).
dropstring[]noContent classes that may be dropped (tool outputs, old turns…).
PropertyTypeRequiredDescription
kind"context-layer"yes
scopeAbslContextScopeyes
sourcestringyesPath/glob/URL pointer (jit) or inline text reference (inline).
mergeAbslContextMergeno
budgetTokensnumbernoToken budget for this layer (attention-budget guardrail).
loaderAbslContextLoaderno

inline layers are injected eagerly (cache-friendly static prefix); jit layers are pointers resolved just-in-time (progressive disclosure — store the path/glob, load content on demand).

Type: "inline" | "jit"

Type: "override" | "append"

PropertyTypeRequiredDescription
kind"context-policy"yes
layersAbslContextLayer[]yesOrdered; later (more specific) layers win under merge: "override".
compactionAbslCompactionPolicyno

Layer scopes in canonical generality order (user → file): earlier scopes are more general, later scopes more specific — directory overriding the project root mirrors the AGENTS.md nearest-file-wins practice.

Type: "user" | "project" | "directory" | "session" | "file"

PropertyTypeRequiredDescription
kind"engine-requirement"yes
toolstringyesHost/tool identifier, e.g. "ctxbrew", "claude-code", "cursor".
rangestringyesSemver range the consuming host must satisfy, e.g. ">=2.0.0".
PropertyTypeRequiredDescription
kind"engines"yes
requiresAbslEngineRequirement[]yes
PropertyTypeRequiredDescription
kind"evaluation"yes
datasetsAbslEvaluationDataset[]yes
scorersAbslEvaluationScorer[]yes
PropertyTypeRequiredDescription
kind"evaluation-dataset"yes
namestringyes
sourcestringyesPath/URI of the regression dataset (jsonl/fixture ref).
PropertyTypeRequiredDescription
kind"evaluation-scorer"yes
namestringyesScorer name — the converged context-metrics vocabulary (faithfulness, contextual-relevancy, success-rate, …) or a custom id.
thresholdnumbernoPass threshold on the scorer's 0..1 scale.
PropertyTypeRequiredDescription
kind"guardrail"yes
constraintstringyesCanonical constraint text (always present; the ABSL-text form).
typeAbslGuardrailTypenoExplicit guardrail type. When absent, generators infer from constraint via inferGuardrailType() (legacy behavior). When present (DB round-trip path), this wins — closes the admin-CRUD round-trip gap (T12).
actionstringnoTyped action verb (deny/allow/refuse/etc.) — optional, from DB.
conditionstringnoPredicate expression — optional, from DB.
limitRecord<string, unknown> | nullnoBudget / rate-limit shape — optional, from DB.
periodstringnoTime period the limit applies to — optional, from DB.
rationalestringnoHuman-readable rationale — optional, from DB.
escalationPathstringnoEscalation target when the guardrail fires — optional, from DB.
verifiedbooleannoWhether this guardrail has been verified — optional, from DB.

Guardrail kind, inferred from constraint text when type is absent. When the typed fields below are populated (e.g. via DB round-trip from admin CRUD on agent_guardrails rows), the explicit type wins over the regex inference in agent-guardrail-code.ts.

Type: "deny" | "allow" | "budget" | "escalation" | "rate_limit" | "unknown"

Type: "hot-path" | "background"

PropertyTypeRequiredDescription
kind"memory-policy"yes
scopesAbslMemoryScope[]yes
typesAbslMemoryType[]noWhat kind of content this policy stores (0.3.0, spec B1.2).
formationAbslMemoryFormationnoWhen extraction runs — inline in the turn vs. background consolidation.

Who may see stored memory (0.3.0) — privacy tier, not trust tier.

Type: "user-visible" | "org-private" | "hidden"

PropertyTypeRequiredDescription
kind"memory-scope"yes
variantAbslMemoryVariantyes
namestringyes
ttlAbslTtlno
consentRequiredbooleanno
privacyTierAbslMemoryPrivacyTiernoVisibility ceiling for this scope (0.3.0).
validUntilstringnoTemporal validity (0.3.0): ISO-8601 timestamp after which the scope's content is considered invalid (the Zep/Graphiti model — forgetting as invalidation rather than deletion). Distinct from ttl (a duration).

Memory content taxonomy (0.3.0): semantic facts, episodic trajectories, procedural rules/instructions (the converged LangMem/Mem0/Zep vocabulary).

Type: "semantic" | "episodic" | "procedural"

Type: "short-term" | "long-term"

Tool/action permission effects. Evaluation order is fixed — deny rules are consulted first, then ask, then allow; within a group the first matching rule wins (the Claude Code precedence model). trustTier remains the selector for the default mode; explicit rules override per pattern.

Type: "deny" | "ask" | "allow"

PropertyTypeRequiredDescription
kind"permission-rule"yes
effectAbslPermissionEffectyes
patternstringyesTool/action specifier pattern, e.g. Bash(bun run test:*) or mcp__github__*. Matched with simple glob semantics (* wildcard).
PropertyTypeRequiredDescription
kind"permissions"yes
rulesAbslPermissionRule[]yes
PropertyTypeRequiredDescription
kind"personality"yes
descriptionstringyes
PropertyTypeRequiredDescription
kind"provenance"yes
sourcestringnoSource repo or archive reference (URL / repo ref).
revisionstringnoRevision the file was generated or committed from.
contentHashstringnosha256 of the canonical serialization — the pin/audit anchor.
PropertyTypeRequiredDescription
kind"rate-limit"yes
maxActionsPerHournumberyes

Type: "0.1.0" | "0.2.0" | "0.3.0"

PropertyTypeRequiredDescription
kind"trigger"yes
eventstringyes
targetCapabilitystringyes
PropertyTypeRequiredDescription
kind"trust-tier"yes
tierAbslTrustTierLevelyes
rateLimitAbslRateLimitno
approvalRulesAbslApprovalRule[]yes

Type: string

PropertyTypeRequiredDescription
kind"ttl"yes
valuenumberyes
unitAbslTtlUnityes

Type: "s" | "m" | "h" | "d"

Representative models/absl.json files committed under samples/absl/. Each demo shows three views — pick the one you want: Canvas (rendered through the same SvelteFlow component the IDE uses), Mermaid (a static-flowchart fallback), or Raw JSON. All assets are locally served; no GitHub redirect.

↓ download
demo-01-minimal-agent.absl.json — Context Studio canvas view

Demo 1 — minimal ABSL file: a single agent with the smallest viable shape (name, version, model). Exercises the root + agent discriminated union.

demo-01-minimal-agent.absl.json — Demo 1 — minimal ABSL file: a single agent with the smallest viable shape (name, version, model). Exercises the root + agent discriminated union. (expand for full JSON)
demo-01-minimal-agent.absl.json
{
"kind": "absl-file",
"schemaVersion": "0.1.0",
"agents": [
{
"kind": "agent",
"name": "GreeterBot",
"version": "1.0.0",
"model": "claude-haiku-4-5",
"capabilities": [],
"triggers": []
}
]
}
↓ download
demo-02-capabilities-and-guardrails.absl.json — Context Studio canvas view

Demo 2 — agent with personality, multiple capabilities, and discriminated guardrail types. Exercises personality, capability, guardrail (deny / budget / escalation / rate_limit) nodes.

demo-02-capabilities-and-guardrails.absl.json — Demo 2 — agent with personality, multiple capabilities, and discriminated guardrail types. Exercises personality, capability, guardrail (deny / budget / escalation / rate_limit) nodes. (expand for full JSON)
demo-02-capabilities-and-guardrails.absl.json
{
"kind": "absl-file",
"schemaVersion": "0.1.0",
"agents": [
{
"kind": "agent",
"name": "SupportBot",
"version": "1.2.0",
"description": "Tier-1 customer support assistant.",
"model": "claude-opus-4-7",
"personality": {
"kind": "personality",
"description": "patient, concise, technically precise; never apologetic; always cites ticket IDs"
},
"capabilities": [
{
"kind": "capability",
"name": "answer_support_ticket",
"guardrails": [
{
"kind": "guardrail",
"constraint": "never reveal internal system architecture",
"type": "deny",
"action": "deny",
"condition": "request.prompts_internal_architecture",
"rationale": "Internal architecture is confidential and exposing it could enable exploits."
},
{
"kind": "guardrail",
"constraint": "escalate after 3 failed resolution attempts",
"type": "escalation",
"escalationPath": "human-support-tier-2"
},
{
"kind": "guardrail",
"constraint": "max 60 tool calls per ticket",
"type": "budget",
"limit": {
"maxToolCalls": 60
},
"period": "ticket",
"rationale": "Bound runaway tool loops."
}
]
},
{
"kind": "capability",
"name": "process_refund",
"guardrails": [
{
"kind": "guardrail",
"constraint": "max refund amount is $500 without approval",
"type": "allow",
"action": "allow",
"condition": "amount <= 500",
"limit": {
"maxAmount": 500,
"currency": "USD"
},
"period": "single-refund"
},
{
"kind": "guardrail",
"constraint": "rate-limit refunds to 10 per hour",
"type": "rate_limit",
"limit": {
"maxActions": 10
},
"period": "1h"
}
]
}
],
"triggers": [
{
"kind": "trigger",
"event": "ticket.created",
"targetCapability": "answer_support_ticket"
},
{
"kind": "trigger",
"event": "refund.requested",
"targetCapability": "process_refund"
}
]
}
]
}
↓ download
demo-03-memory-policy.absl.json — Context Studio canvas view

Demo 3 — agent with memory policy: short-term + long-term scopes with TTL and consent_required. Exercises memory-policy, memory-scope, ttl nodes (with s/m/h/d units).

demo-03-memory-policy.absl.json — Demo 3 — agent with memory policy: short-term + long-term scopes with TTL and consent_required. Exercises memory-policy, memory-scope, ttl nodes (with s/m/h/d units). (expand for full JSON)
demo-03-memory-policy.absl.json
{
"kind": "absl-file",
"schemaVersion": "0.1.0",
"agents": [
{
"kind": "agent",
"name": "Concierge",
"version": "2.1.0",
"description": "Long-running travel concierge with persistent memory.",
"capabilities": [],
"triggers": [],
"memoryPolicy": {
"kind": "memory-policy",
"scopes": [
{
"kind": "memory-scope",
"variant": "short-term",
"name": "conversation_context",
"ttl": {
"kind": "ttl",
"value": 30,
"unit": "m"
},
"consentRequired": false
},
{
"kind": "memory-scope",
"variant": "short-term",
"name": "search_results",
"ttl": {
"kind": "ttl",
"value": 1,
"unit": "h"
}
},
{
"kind": "memory-scope",
"variant": "long-term",
"name": "user_preferences",
"ttl": {
"kind": "ttl",
"value": 90,
"unit": "d"
},
"consentRequired": true
},
{
"kind": "memory-scope",
"variant": "long-term",
"name": "loyalty_tier",
"ttl": {
"kind": "ttl",
"value": 365,
"unit": "d"
},
"consentRequired": false
}
]
}
}
]
}
↓ download
demo-04-trust-tier-and-rate-limit.absl.json — Context Studio canvas view

Demo 4 — agent with trust tier, rate limit, and approval rules. Exercises trust-tier, rate-limit, approval-rule nodes; covers all KNOWN_TRUST_TIERS via three agents.

demo-04-trust-tier-and-rate-limit.absl.json — Demo 4 — agent with trust tier, rate limit, and approval rules. Exercises trust-tier, rate-limit, approval-rule nodes; covers all KNOWN_TRUST_TIERS via three agents. (expand for full JSON)
demo-04-trust-tier-and-rate-limit.absl.json
{
"kind": "absl-file",
"schemaVersion": "0.1.0",
"agents": [
{
"kind": "agent",
"name": "ReadOnlyInvestigator",
"version": "1.0.0",
"description": "Read-only log investigator. Silver tier.",
"capabilities": [],
"triggers": [],
"trustTier": {
"kind": "trust-tier",
"tier": "silver",
"rateLimit": {
"kind": "rate-limit",
"maxActionsPerHour": 500
},
"approvalRules": []
}
},
{
"kind": "agent",
"name": "ProductionDeployer",
"version": "1.0.0",
"description": "Gold-tier deploy agent; destructive actions require approval.",
"capabilities": [],
"triggers": [],
"trustTier": {
"kind": "trust-tier",
"tier": "gold",
"rateLimit": {
"kind": "rate-limit",
"maxActionsPerHour": 50
},
"approvalRules": [
{
"kind": "approval-rule",
"actions": ["deploy:production", "db:migrate", "cache:flush"]
},
{
"kind": "approval-rule",
"actions": ["account:delete", "billing:refund"]
}
]
}
},
{
"kind": "agent",
"name": "ExperimentalResearcher",
"version": "0.1.0",
"description": "Experimental tier; every action requires approval.",
"capabilities": [],
"triggers": [],
"trustTier": {
"kind": "trust-tier",
"tier": "experimental",
"rateLimit": {
"kind": "rate-limit",
"maxActionsPerHour": 10
},
"approvalRules": [
{
"kind": "approval-rule",
"actions": ["*"]
}
]
}
}
]
}

The absl model is one of the stub records — every downstream surface (CLI, MCP, docs, tests) reads from one record. The pasteable snippet below is the Door 1 anchor a downstream agent should see before touching this model.

paste into AGENTS.md / CLAUDE.md
- **ABSL v0.3.0** — `models/absl.json`.
Produces: System prompt (fixed §9.2 section order), one Gherkin feature per capability, guardrail code.
Oracle: the generated features must pass against the running agent.
Downstream: `ctxbrew semantics absl` · `ctxbrew://semantics/absl/v0.3.0` — read the record first.

The full record (every door — anchor template, tool description hint, response annotations, behavior tripwire, and the complete produced-surface list) is served as JSON at:

  • CLI — ctxbrew semantics absl --schema-version 0.3.0
  • MCP — ctxbrew://semantics/absl/v0.3.0
  • HTTP — https://contextbrew.dev/schemas/absl/v0.3/semantics.json

See the schemas overview for the versioning policy and how these files are generated and kept in sync.