This document records the declared behavioral meaning of every capability in the
system. Before this document existed, twenty-four capabilities carried
structurally valid but behaviorally empty scaffolding: identical boilerplate
intent, a shared three-rule authority template, and opaque payload / value
contracts. Those capabilities could not be promoted because nothing declared
what they were supposed to decide.
Each capability below declares:
- the canonical input it accepts,
- the decision it owns,
- the projection it produces,
- and the disposition vocabulary its receipt may report.
Semantics are expressed against the kernel primitive set only:
decision.v1, projection.v1, iteration.v1, execution-model.v1, and
port.invoke. No capability owns control flow, fallbacks, or retries.
Every capability accepts a request of the form:
{ requestType, requestId, payload }
and produces a result of the form:
{ resultType, capabilityId, value }
and a receipt of the form:
{ receiptType, runId, capabilityId, authorityHash, inputHash,
resultHash, disposition, findings }
disposition is drawn from a per-capability closed vocabulary. findings is
empty exactly when the disposition is the capability's success disposition.
A capability fails closed: an input that satisfies no declared rule is rejected
rather than defaulted.
Normalizes submitted query text into a canonical query command. Owns the decision of which command family the text belongs to, based on declared leading-keyword predicates.
- Decision
resolves-query-command-familymaps normalized text toselect-command,describe-command,explain-command, or rejection. - Projection emits
{ commandFamily, normalizedText, sourceRef, projectionRef, hasWhere, hasLimit }. - Dispositions:
QUERY_COMMAND_PARSED,QUERY_COMMAND_UNPARSABLE.
Selects one authorized source for a parsed command. Resolution is ordered and explicit: an explicitly named source wins over the workspace default, which wins over rejection.
- Decision
resolves-query-source-selectionyieldsuse-explicit-source,use-workspace-default-source, orreject-unresolvable-source. - Projection emits
{ sourceId, sourceKind, resolutionRule, sourceHash }. - Dispositions:
QUERY_SOURCE_RESOLVED,QUERY_SOURCE_UNRESOLVED.
Reduces resolved source rows to exactly the declared column set. Star selection and explicit column selection are distinct declared rules; an unknown column is rejected rather than silently dropped.
- Decision
resolves-fact-selection-modeyieldsselect-all-declared-factsorselect-named-facts. - Iteration
selects-query-fact-rowsmaps each row through the selection projection. - Dispositions:
QUERY_FACTS_SELECTED,QUERY_FACT_UNKNOWN_COLUMN.
Applies one declared kernel predicate to resolved rows. The capability owns predicate selection and application, never predicate implementation, which belongs to the kernel evaluator.
- Decision
resolves-row-filter-modeyieldsapply-declared-predicateorpass-through-unfiltered. - Projection emits
{ rows, inputRowCount, retainedRowCount, rejectedRowCount }using kernelfilterandcountexpressions. - Dispositions:
QUERY_ROWS_FILTERED,QUERY_FILTER_PREDICATE_INVALID.
Row-scoped projection execution. Distinct from applies-semantic-projection,
which owns authority resolution and scope dispatch; this capability owns only
the per-row iteration contract and its ordering guarantee.
- Decision
resolves-row-projection-orderyieldssourceorreverse. - Iteration
projects-each-rowexecutes the resolved row projection. - Dispositions:
QUERY_ROWS_PROJECTED,QUERY_ROW_PROJECTION_REJECTED.
Result-set-scoped projection execution. Owns the single-shot whole-result projection and its cardinality guarantee of exactly one output.
- Decision
resolves-complete-result-dispositionyieldsproject-complete-resultorreject-empty-required-result. - Dispositions:
QUERY_RESULT_PROJECTED,QUERY_RESULT_PROJECTION_REJECTED.
Renders a projected result into a declared physical form. Rendering is the only capability permitted to choose a serialization shape, and it may not alter meaning.
- Decision
resolves-render-formyieldsrender-canonical-json,render-row-table, orrender-single-value. - Dispositions:
QUERY_RESULT_RENDERED,QUERY_RENDER_FORM_UNSUPPORTED.
Routes a parsed command family to the capability that owns it. Routing is a declared table, not a dispatch chain, and an unroutable family fails closed.
- Decision
resolves-command-routemaps command family to target capability. - Dispositions:
SEMANTIC_COMMAND_ROUTED,SEMANTIC_COMMAND_UNROUTABLE.
Builds a deterministic index of workspace authority documents, classifying each as semantic-executable or not, and recording a stable hash per entry.
- Decision
resolves-authority-index-scopeyieldsindex-declared-rootsorindex-explicit-paths. - Dispositions:
WORKSPACE_AUTHORITY_INDEXED,WORKSPACE_AUTHORITY_UNREADABLE.
Resolves which indexed authority document a query selects, by identity or by declared selector, and fails closed on ambiguity.
- Decision
resolves-selected-authority-sourceyieldsselect-by-identity,select-by-declared-selector, orreject-ambiguous-selection. - Dispositions:
SELECTED_AUTHORITY_RESOLVED,SELECTED_AUTHORITY_AMBIGUOUS.
Resolves authority documents by declared metadata predicates (classification, specification version, declared role) rather than by path.
- Decision
resolves-metadata-match-modeyieldsmatch-all-declared-metadataormatch-any-declared-metadata. - Dispositions:
AUTHORITY_RESOLVED_BY_METADATA,AUTHORITY_METADATA_NO_MATCH.
Composes multiple authority documents into one derived authority view under a declared precedence rule. Composition never merges silently: conflicting keys must be resolved by a declared rule.
- Decision
resolves-composition-precedenceyieldslater-declaration-wins,earlier-declaration-wins, orreject-conflicting-authority. - Dispositions:
SEMANTIC_AUTHORITY_COMPOSED,SEMANTIC_AUTHORITY_CONFLICT.
Joins authority facts across two declared semantic sources on a declared key. Join kind is declared authority, not inferred from data.
- Decision
resolves-join-kindyieldsinner-join,left-outer-join, orreject-unjoinable-sources. - Dispositions:
SEMANTIC_AUTHORITY_JOINED,SEMANTIC_AUTHORITY_UNJOINABLE.
Applies a declared policy overlay onto resolved authority, tightening but never loosening the underlying declaration.
- Decision
resolves-overlay-dispositionyieldsapply-tightening-overlay,ignore-redundant-overlay, orreject-loosening-overlay. - Dispositions:
SEMANTIC_POLICY_OVERLAY_APPLIED,SEMANTIC_POLICY_OVERLAY_REJECTED.
Reports declared authority defects — missing identity, empty rules, implicit fallback, unreachable rule — without repairing them.
- Decision
resolves-lint-severityyieldsblocking-defect,advisory-defect, orno-defect. - Dispositions:
SEMANTIC_AUTHORITY_LINTED,SEMANTIC_AUTHORITY_DEFECTIVE.
Builds the frozen execution context a subgraph executes against, binding resolved authority, resolved source, and declared limits.
- Decision
resolves-execution-context-completenessyieldscontext-completeorreject-incomplete-context. - Dispositions:
EXECUTION_CONTEXT_CONSTRUCTED,EXECUTION_CONTEXT_INCOMPLETE.
Executes a declared execution model over a constructed context through the kernel execution engine, returning the kernel receipt unaltered.
- Decision
resolves-subgraph-execution-modeyieldsexecute-declared-modelorreject-unregistered-model. - Dispositions:
SEMANTIC_SUBGRAPH_EXECUTED,SEMANTIC_SUBGRAPH_FAILED.
Chains one capability's projected result into the next capability's input under a declared contract-compatibility rule.
- Decision
resolves-chain-compatibilityyieldschain-compatible-contractsorreject-incompatible-chain. - Dispositions:
SEMANTIC_RESULTS_CHAINED,SEMANTIC_CHAIN_INCOMPATIBLE.
Projects a human-readable explanation of which authority governed an execution, derived only from recorded testimony.
- Decision
resolves-explanation-depthyieldsexplain-decisions-onlyorexplain-full-step-testimony. - Dispositions:
SEMANTIC_EXECUTION_EXPLAINED,SEMANTIC_EXECUTION_UNEXPLAINABLE.
Projects a canonical proof receipt from recorded execution testimony, asserting the declared required assertions are all present.
- Decision
resolves-proof-completenessyieldsproof-completeorreject-incomplete-proof. - Dispositions:
SEMANTIC_PROOF_PROJECTED,SEMANTIC_PROOF_INCOMPLETE.
Derives candidate conformance vectors from declared authority. Candidates are explicitly not accepted vectors; promotion remains a separate human gate.
- Decision
resolves-candidate-derivation-scopeyieldsderive-per-decision-ruleorderive-per-projection-field. - Dispositions:
CONFORMANCE_CANDIDATES_DERIVED,CONFORMANCE_CANDIDATES_UNDERIVABLE.
Executes one conformance vector against live authority and compares the observed result to the recorded expectation by canonical hash.
- Decision
resolves-vector-verification-outcomeyieldsvector-passed,vector-failed, orvector-not-executable. - Dispositions:
CONFORMANCE_VECTOR_VERIFIED,CONFORMANCE_VECTOR_FAILED.
Resolves whether the seated kernel satisfies the capability's declared required primitive set and specification range.
- Decision
resolves-kernel-compatibility-dispositionyieldskernel-compatible,kernel-incompatible-primitives, orkernel-incompatible-specification. - Dispositions:
KERNEL_COMPATIBILITY_RESOLVED,KERNEL_INCOMPATIBLE.
Projects the language-specific delegation shell for a capability body from language-neutral authority, proving the projection boundary is mechanical.
- Decision
resolves-delegation-shell-targetyieldsproject-declared-target-shellorreject-unsupported-target. - Dispositions:
DELEGATION_SHELL_PROJECTED,DELEGATION_SHELL_TARGET_UNSUPPORTED.
A capability is implemented only when all of the following hold:
- its authority is kernel-native and registers without error,
- its contracts are concrete — no opaque
payloadorvalue, - it executes live against the kernel in an integration test,
- its conformance vectors are
acceptedwithkernelExecution: passed, - and recorded expectations match observed output by canonical hash.
Anything short of that stays drafted.