scripts/gen_schema_docs.py. Do
not edit this file — change the class, then run uv run python scripts/gen_schema_docs.py (CI fails on a stale page).
schemas/catalog.json indexes the committed JSON Schema Draft 2020-12
contract for every shape. A canonical schema id and positive integer schema
version identify wire shape and field semantics. A recipe_id and
recipe_version identify how an exporter interprets evidence for one training
objective. A compatibility-profile id and version identify a downstream
consumer adapter. An Alembic revision identifies the physical PostgreSQL
schema. These four version namespaces are independent.
Types are written as JSON, because this page is meant to be read beside a
.jsonl file or an API response. string | null means the key is present
and may be null.
The RLVR target rows omit optional verification, reward, reward_source,
and ci_resolution keys when the facts or operator configuration don’t
provide them. The complete target
mappings live in Export RLVR tasks and trajectories.
New here? How Sediment works
explains why facts and derivations are separate, and
CONTEXT.md is the vocabulary these names come from.
Facts
Immutable records of things that happened, and the only persisted state (ADR 0001).InferenceCall
One model call. Canonical schema:https://sediment.so/schemas/facts/inference-call/v2.json (version 2; schemas/facts/inference-call/v2.json).
InferenceMessage
One ordered message in an inference call. Canonical schema:https://sediment.so/schemas/facts/inference-message/v2.json (version 2; schemas/facts/inference-message/v2.json).
TextPart
One plain-text part. Canonical schema:https://sediment.so/schemas/facts/text-part/v1.json (version 1; schemas/facts/text-part/v1.json).
ReasoningPart
One readable model-reasoning part. Canonical schema:https://sediment.so/schemas/facts/reasoning-part/v1.json (version 1; schemas/facts/reasoning-part/v1.json).
ToolCallPart
One tool invocation requested by the model. Canonical schema:https://sediment.so/schemas/facts/tool-call-part/v2.json (version 2; schemas/facts/tool-call-part/v2.json).
ToolCallResponsePart
One result supplied for an earlier tool invocation. Canonical schema:https://sediment.so/schemas/facts/tool-call-response-part/v2.json (version 2; schemas/facts/tool-call-response-part/v2.json).
DeveloperDecision
One developer accept or reject decision. Canonical schema:https://sediment.so/schemas/facts/developer-decision/v3.json (version 3; schemas/facts/developer-decision/v3.json).
EditObservation
One applied edit and later file observation. Canonical schema:https://sediment.so/schemas/facts/edit-observation/v3.json (version 3; schemas/facts/edit-observation/v3.json).
RejectedEdit
One refused AI edit. Canonical schema:https://sediment.so/schemas/facts/rejected-edit/v3.json (version 3; schemas/facts/rejected-edit/v3.json).
RetryLinkage
One human-directed correction retry after a refused AI edit. Canonical schema:https://sediment.so/schemas/facts/retry-linkage/v3.json (version 3; schemas/facts/retry-linkage/v3.json).
CIOutcome
One CI run attempt. Canonical schema:https://sediment.so/schemas/facts/ci-outcome/v3.json (version 3; schemas/facts/ci-outcome/v3.json).
Push
One forge push receipt. Canonical schema:https://sediment.so/schemas/facts/push/v3.json (version 3; schemas/facts/push/v3.json).
PullRequestMerge
One pull request merge boundary. Canonical schema:https://sediment.so/schemas/facts/pull-request-merge/v3.json (version 3; schemas/facts/pull-request-merge/v3.json).
PullRequestRevision
One observed pull request head revision. Canonical schema:https://sediment.so/schemas/facts/pull-request-revision/v3.json (version 3; schemas/facts/pull-request-revision/v3.json).
SessionCommitObservation
The first observed Git-note Session-to-commit edge. Canonical schema:https://sediment.so/schemas/facts/session-commit-observation/v3.json (version 3; schemas/facts/session-commit-observation/v3.json).
QuarantineRecord
One append-only fact quarantine action. Canonical schema:https://sediment.so/schemas/facts/quarantine-record/v7.json (version 7; schemas/facts/quarantine-record/v7.json).
RepositoryRename
One provider repository rename receipt. Canonical schema:https://sediment.so/schemas/facts/repository-rename/v1.json (version 1; schemas/facts/repository-rename/v1.json).
External inputs
Versioned operator-supplied inputs used by Derivations but never stored as Facts.PriceManifest
One immutable model price policy for cost analysis. Canonical schema:https://sediment.so/schemas/external-inputs/price-manifest/v1.json (version 1; schemas/external-inputs/price-manifest/v1.json).
Derived artifacts
Pure, recomputable artifacts derived from facts and policy.RepositoryIdentity
One immutable provider repository identity. Canonical schema:https://sediment.so/schemas/derived-artifacts/repository-identity/v1.json (version 1; schemas/derived-artifacts/repository-identity/v1.json).
AcceptedWorkLifecycleReport
One coverage-aware operational lifecycle report. Canonical schema:https://sediment.so/schemas/derived-artifacts/accepted-work-lifecycle/v3.json (version 3; schemas/derived-artifacts/accepted-work-lifecycle/v3.json).
Attribution
One completion-to-commit attribution. Canonical schema:https://sediment.so/schemas/derived-artifacts/attribution/v2.json (version 2; schemas/derived-artifacts/attribution/v2.json).
AttributedCompletion
One canonical attributed completion. Canonical schema:https://sediment.so/schemas/derived-artifacts/attributed-completion/v4.json (version 4; schemas/derived-artifacts/attributed-completion/v4.json).
Rollout
One canonical session trajectory. Canonical schema:https://sediment.so/schemas/derived-artifacts/rollout/v4.json (version 4; schemas/derived-artifacts/rollout/v4.json).
CommitRef
One repository-qualified commit. Canonical schema:https://sediment.so/schemas/derived-artifacts/commit-ref/v2.json (version 2; schemas/derived-artifacts/commit-ref/v2.json).
Turn
One rollout turn. Canonical schema:https://sediment.so/schemas/derived-artifacts/turn/v3.json (version 3; schemas/derived-artifacts/turn/v3.json).
CIResolution
One attempt-aware commit CI resolution. Canonical schema:https://sediment.so/schemas/derived-artifacts/ci-resolution/v3.json (version 3; schemas/derived-artifacts/ci-resolution/v3.json).
CIWorkflowResolution
One attempt-aware workflow resolution. Canonical schema:https://sediment.so/schemas/derived-artifacts/ci-workflow-resolution/v3.json (version 3; schemas/derived-artifacts/ci-workflow-resolution/v3.json).
Provenance
One derivation provenance stamp. Canonical schema:https://sediment.so/schemas/derived-artifacts/provenance/v1.json (version 1; schemas/derived-artifacts/provenance/v1.json).
RecoveryAttributionEvidence
Source Attribution metadata for one Recovery enrichment call. Canonical schema:https://sediment.so/schemas/derived-artifacts/recovery-attribution-evidence/v1.json (version 1; schemas/derived-artifacts/recovery-attribution-evidence/v1.json).
RecoverySample
One red-to-green recovery sample. Canonical schema:https://sediment.so/schemas/derived-artifacts/recovery-sample/v3.json (version 3; schemas/derived-artifacts/recovery-sample/v3.json).
AcceptedSessionOutcome
One accepted Session’s terminal abandonment classification. Canonical schema:https://sediment.so/schemas/derived-artifacts/accepted-session-outcome/v2.json (version 2; schemas/derived-artifacts/accepted-session-outcome/v2.json).
SessionAbandonment
One session whose accepted edits reached no commit. Canonical schema:https://sediment.so/schemas/derived-artifacts/session-abandonment/v1.json (version 1; schemas/derived-artifacts/session-abandonment/v1.json).
Fate
One Edit observation’s derived final Fate. Canonical schema:https://sediment.so/schemas/derived-artifacts/fate/v3.json (version 3; schemas/derived-artifacts/fate/v3.json).
MergeMembershipOutcome
One Attribution’s pull-request membership classification. Canonical schema:https://sediment.so/schemas/derived-artifacts/merge-membership-outcome/v3.json (version 3; schemas/derived-artifacts/merge-membership-outcome/v3.json).
MergeRetention
One attributed file measured at pull request merge. Canonical schema:https://sediment.so/schemas/derived-artifacts/merge-retention/v3.json (version 3; schemas/derived-artifacts/merge-retention/v3.json).
AbandonmentSummary
One abandonment coverage summary. Canonical schema:https://sediment.so/schemas/derived-artifacts/abandonment-summary/v1.json (version 1; schemas/derived-artifacts/abandonment-summary/v1.json).
Trainer message objects
Closed nested message contracts used by training rows.TrainerFunctionCall
One structured function-call payload. Canonical schema:https://sediment.so/schemas/trainer-messages/function-call/v1.json (version 1; schemas/trainer-messages/function-call/v1.json).
TrainerToolCall
One assistant-requested function call. Canonical schema:https://sediment.so/schemas/trainer-messages/tool-call/v1.json (version 1; schemas/trainer-messages/tool-call/v1.json).
TrainerTextMessage
One developer, system, or user message. Canonical schema:https://sediment.so/schemas/trainer-messages/text-message/v1.json (version 1; schemas/trainer-messages/text-message/v1.json).
TrainerAssistantContentMessage
One assistant message with visible text. Canonical schema:https://sediment.so/schemas/trainer-messages/assistant-content-message/v1.json (version 1; schemas/trainer-messages/assistant-content-message/v1.json).
TrainerAssistantThinkingMessage
One assistant message with readable reasoning. Canonical schema:https://sediment.so/schemas/trainer-messages/assistant-thinking-message/v1.json (version 1; schemas/trainer-messages/assistant-thinking-message/v1.json).
TrainerAssistantToolCallMessage
One assistant message with structured tool calls. Canonical schema:https://sediment.so/schemas/trainer-messages/assistant-tool-call-message/v1.json (version 1; schemas/trainer-messages/assistant-tool-call-message/v1.json).
TrainerToolMessage
One string tool result. Canonical schema:https://sediment.so/schemas/trainer-messages/tool-message/v1.json (version 1; schemas/trainer-messages/tool-message/v1.json).
Training rows
Canonical rows written to training JSONL files.DPOPair
One DPO pair. Canonical schema:https://sediment.so/schemas/training-rows/dpo-pair/v4.json (version 4; schemas/training-rows/dpo-pair/v4.json).
DPOMetadata
Sediment evidence for one DPO pair. Canonical schema:https://sediment.so/schemas/training-rows/dpo-metadata/v4.json (version 4; schemas/training-rows/dpo-metadata/v4.json).
DPOProvenance
Provenance for both DPO members. Canonical schema:https://sediment.so/schemas/training-rows/dpo-provenance/v1.json (version 1; schemas/training-rows/dpo-provenance/v1.json).
SFTSample
One SFT sample. Canonical schema:https://sediment.so/schemas/training-rows/sft-sample/v3.json (version 3; schemas/training-rows/sft-sample/v3.json).
SFTMetadata
Sediment evidence for one SFT sample. Canonical schema:https://sediment.so/schemas/training-rows/sft-metadata/v3.json (version 3; schemas/training-rows/sft-metadata/v3.json).
DiffSFTSample
One diff-SFT sample. Canonical schema:https://sediment.so/schemas/training-rows/diff-sft-sample/v3.json (version 3; schemas/training-rows/diff-sft-sample/v3.json).
DiffSFTMetadata
Sediment evidence for one diff-SFT sample. Canonical schema:https://sediment.so/schemas/training-rows/diff-sft-metadata/v3.json (version 3; schemas/training-rows/diff-sft-metadata/v3.json).
SourceIds
Source fact ids for one diff-SFT sample. Canonical schema:https://sediment.so/schemas/training-rows/diff-sft-source-ids/v2.json (version 2; schemas/training-rows/diff-sft-source-ids/v2.json).
RecoveryRow
One recovery training row. Canonical schema:https://sediment.so/schemas/training-rows/recovery-row/v3.json (version 3; schemas/training-rows/recovery-row/v3.json).
Verification
Operator verifier configuration. Canonical schema:https://sediment.so/schemas/training-rows/verification/v1.json (version 1; schemas/training-rows/verification/v1.json).
RLVRDecisionRow
One decision attached to an RLVR turn. Canonical schema:https://sediment.so/schemas/training-rows/rlvr-decision/v2.json (version 2; schemas/training-rows/rlvr-decision/v2.json).
RLVRInferenceMessageRow
One RLVR trajectory message. Canonical schema:https://sediment.so/schemas/training-rows/rlvr-inference-message/v2.json (version 2; schemas/training-rows/rlvr-inference-message/v2.json).
RLVRTurnRow
One RLVR trajectory turn. Canonical schema:https://sediment.so/schemas/training-rows/rlvr-turn/v3.json (version 3; schemas/training-rows/rlvr-turn/v3.json).
NemoGymResponsesCreateParams
One NeMo Gym segment input. Canonical schema:https://sediment.so/schemas/training-rows/nemo-gym-responses-create-params/v2.json (version 2; schemas/training-rows/nemo-gym-responses-create-params/v2.json).
NemoGymResponse
One NeMo Gym response trajectory. Canonical schema:https://sediment.so/schemas/training-rows/nemo-gym-response/v3.json (version 3; schemas/training-rows/nemo-gym-response/v3.json).
SedimentTaskRow
One Sediment RLVR task. Canonical schema:https://sediment.so/schemas/training-rows/sediment-rlvr-task/v3.json (version 3; schemas/training-rows/sediment-rlvr-task/v3.json).
SedimentRolloutRow
One Sediment RLVR rollout segment. Canonical schema:https://sediment.so/schemas/training-rows/sediment-rlvr-rollout/v4.json (version 4; schemas/training-rows/sediment-rlvr-rollout/v4.json).
SWEBenchTaskRow
One SWE-bench task. Canonical schema:https://sediment.so/schemas/training-rows/swe-bench-task/v3.json (version 3; schemas/training-rows/swe-bench-task/v3.json).
SWEBenchMetadata
Sediment evidence for one SWE-bench task. Canonical schema:https://sediment.so/schemas/training-rows/swe-bench-metadata/v3.json (version 3; schemas/training-rows/swe-bench-metadata/v3.json).
NemoGymRolloutRow
One NeMo Gym rollout mapping. Canonical schema:https://sediment.so/schemas/training-rows/nemo-gym-rollout/v4.json (version 4; schemas/training-rows/nemo-gym-rollout/v4.json).
NemoGymMetadata
Sediment evidence for one NeMo Gym rollout. Canonical schema:https://sediment.so/schemas/training-rows/nemo-gym-metadata/v4.json (version 4; schemas/training-rows/nemo-gym-metadata/v4.json).
Derived bundle
The manifest and integrity metadata beside canonical artifact JSONL files.BundleManifest
The top-level derived-bundle manifest. Canonical schema:https://sediment.so/schemas/derived-bundle/manifest/v4.json (version 4; schemas/derived-bundle/manifest/v4.json).
InferenceCallIdentity
One declared source identity and its distinct attachment aliases. Canonical schema:https://sediment.so/schemas/derived-bundle/inference-call-identity/v1.json (version 1; schemas/derived-bundle/inference-call-identity/v1.json).
RepositoryIdentityEvidence
One captured repository role and its exact source Fact. Canonical schema:https://sediment.so/schemas/derived-bundle/repository-identity-evidence/v1.json (version 1; schemas/derived-bundle/repository-identity-evidence/v1.json).
BundleRecord
Strict JSON envelope for one lossless canonical record. Canonical schema:https://sediment.so/schemas/derived-bundle/record/v1.json (version 1; schemas/derived-bundle/record/v1.json).
BundleFileMetadata
Integrity metadata for one bundle JSONL file. Canonical schema:https://sediment.so/schemas/derived-bundle/file-metadata/v1.json (version 1; schemas/derived-bundle/file-metadata/v1.json).
Enumerations
GatewayProvider
Which LLM gateway captured an inference call. Values:litellm, portkey, helicone, unknown
AgentHarness
Which coding agent harness emitted a developer-side fact. Values:claude-code, copilot, codex, cursor, pi
InteractionMode
Whether the edit interaction was agent or inline. Values:agent, inline
CIProvider
Which CI system reported an outcome. Values:github_actions, jenkins, gitlab_ci, circleci, buildkite, other
CIResult
How a CI run ended. Values:passed, failed, error, timed_out, cancelled, skipped, neutral, unknown
ForgeProvider
Which git host a push came from. Values:github
FactTable
Which fact table owns a quarantined fact. Values:inference_calls, developer_decisions, ci_outcomes, pushes, pull_request_merges, pull_request_revisions, edit_observations, rejected_edits, retry_linkages, session_commit_observations, repository_renames
QuarantineAction
Whether a record quarantines or releases a fact. Values:quarantine, release
AttributionSource
How an attribution was established — the provenance that gates confidence:git_notes is never discounted, jaccard multiplies confidence by the attribution score.
Values: git_notes, jaccard
EditFate
The derived final Fate of an applied edit. Values:deleted, partially_modified, unmodified