Skip to main content
Canonical Facts, derived artifacts, training rows, and their nested types. The HTTP API reference describes request envelopes and responses. The Consumer compatibility reference lists trainer profiles. The schema catalog indexes the committed JSON Schema Draft 2020-12 contracts. A canonical schema ID and 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 describe serialized JSON values. string or null allows a string or null. (optional) means that the key can be absent. any JSON value includes objects, arrays, strings, numbers, booleans, and null. Each linked JSON Schema defines required keys, defaults, and validation constraints. 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. How Sediment works explains the Fact and Derivation boundary. CONTEXT.md defines domain terms.

Type index

Facts

Immutable records of things that happened, and the only persisted state (ADR 0001).

InferenceCall

One model call. Canonical schema: JSON Schema, version 2. ID: https://sediment.so/schemas/facts/inference-call/v2.json.

InferenceMessage

One ordered message in an inference call. Canonical schema: JSON Schema, version 2. ID: https://sediment.so/schemas/facts/inference-message/v2.json.

TextPart

One plain-text part. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/facts/text-part/v1.json.

ReasoningPart

One readable model-reasoning part. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/facts/reasoning-part/v1.json.

ToolCallPart

One tool invocation requested by the model. Canonical schema: JSON Schema, version 2. ID: https://sediment.so/schemas/facts/tool-call-part/v2.json.

ToolCallResponsePart

One result supplied for an earlier tool invocation. Canonical schema: JSON Schema, version 2. ID: https://sediment.so/schemas/facts/tool-call-response-part/v2.json.

DeveloperDecision

One developer accept or reject decision. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/facts/developer-decision/v3.json.

EditObservation

One applied edit and later file observation. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/facts/edit-observation/v3.json.

RejectedEdit

One refused AI edit. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/facts/rejected-edit/v3.json.

RetryLinkage

One human-directed correction retry after a refused AI edit. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/facts/retry-linkage/v3.json.

CIOutcome

One CI run attempt. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/facts/ci-outcome/v3.json.

Push

One forge push receipt. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/facts/push/v3.json.

PullRequestMerge

One pull request merge boundary. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/facts/pull-request-merge/v3.json.

PullRequestRevision

One observed pull request head revision. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/facts/pull-request-revision/v3.json.

SessionCommitObservation

The first observed Git-note Session-to-commit edge. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/facts/session-commit-observation/v3.json.

QuarantineRecord

One append-only fact quarantine action. Canonical schema: JSON Schema, version 7. ID: https://sediment.so/schemas/facts/quarantine-record/v7.json.

RepositoryRename

One provider repository rename receipt. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/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: JSON Schema, version 1. ID: https://sediment.so/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: JSON Schema, version 1. ID: https://sediment.so/schemas/derived-artifacts/repository-identity/v1.json.

AcceptedWorkLifecycleReport

One coverage-aware operational lifecycle report. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/derived-artifacts/accepted-work-lifecycle/v3.json.

Attribution

One completion-to-commit attribution. Canonical schema: JSON Schema, version 2. ID: https://sediment.so/schemas/derived-artifacts/attribution/v2.json.

AttributedCompletion

One canonical attributed completion. Canonical schema: JSON Schema, version 4. ID: https://sediment.so/schemas/derived-artifacts/attributed-completion/v4.json.

Rollout

One canonical session trajectory. Canonical schema: JSON Schema, version 4. ID: https://sediment.so/schemas/derived-artifacts/rollout/v4.json.

CommitRef

One repository-qualified commit. Canonical schema: JSON Schema, version 2. ID: https://sediment.so/schemas/derived-artifacts/commit-ref/v2.json.

Turn

One rollout turn. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/derived-artifacts/turn/v3.json.

CIResolution

One attempt-aware commit CI resolution. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/derived-artifacts/ci-resolution/v3.json.

CIWorkflowResolution

One attempt-aware workflow resolution. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/derived-artifacts/ci-workflow-resolution/v3.json.

Provenance

One derivation provenance stamp. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/derived-artifacts/provenance/v1.json.

RecoveryAttributionEvidence

Source Attribution metadata for one Recovery enrichment call. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/derived-artifacts/recovery-attribution-evidence/v1.json.

RecoverySample

One red-to-green recovery sample. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/derived-artifacts/recovery-sample/v3.json.

AcceptedSessionOutcome

Observation-backed status for an accepted Session. Canonical schema: JSON Schema, version 2. ID: https://sediment.so/schemas/derived-artifacts/accepted-session-outcome/v2.json.

SessionAbandonment

Legacy abandonment evidence retained for schema compatibility. Sediment’s Derivation doesn’t emit this shape: missing observations remain attribution_unavailable, regardless of the grace horizon. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/derived-artifacts/session-abandonment/v1.json.

Fate

One Edit observation’s derived final Fate. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/derived-artifacts/fate/v3.json.

MergeMembershipOutcome

One Attribution’s pull-request membership classification. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/derived-artifacts/merge-membership-outcome/v3.json.

MergeRetention

One attributed file measured at pull request merge. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/derived-artifacts/merge-retention/v3.json.

AbandonmentSummary

Compatibility counters for abandonment evidence. The Fact-derived assembly emits no abandoned Sessions or abandonment-based negative completions, so those counts are zero. Derivation skip counts and Provenance still describe the observed population. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/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: JSON Schema, version 1. ID: https://sediment.so/schemas/trainer-messages/function-call/v1.json.

TrainerToolCall

One assistant-requested function call. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/trainer-messages/tool-call/v1.json.

TrainerTextMessage

One developer, system, or user message. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/trainer-messages/text-message/v1.json.

TrainerAssistantContentMessage

One assistant message with visible text. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/trainer-messages/assistant-content-message/v1.json.

TrainerAssistantThinkingMessage

One assistant message with readable reasoning. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/trainer-messages/assistant-thinking-message/v1.json.

TrainerAssistantToolCallMessage

One assistant message with structured tool calls. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/trainer-messages/assistant-tool-call-message/v1.json.

TrainerToolMessage

One string tool result. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/trainer-messages/tool-message/v1.json.

Training rows

Canonical rows written to training JSONL files.

DPOPair

One DPO pair. Canonical schema: JSON Schema, version 4. ID: https://sediment.so/schemas/training-rows/dpo-pair/v4.json.

DPOMetadata

Sediment evidence for one DPO pair. Canonical schema: JSON Schema, version 4. ID: https://sediment.so/schemas/training-rows/dpo-metadata/v4.json.

DPOProvenance

Provenance for both DPO members. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/training-rows/dpo-provenance/v1.json.

SFTSample

One SFT sample. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/training-rows/sft-sample/v3.json.

SFTMetadata

Sediment evidence for one SFT sample. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/training-rows/sft-metadata/v3.json.

DiffSFTSample

One diff-SFT sample. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/training-rows/diff-sft-sample/v3.json.

DiffSFTMetadata

Sediment evidence for one diff-SFT sample. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/training-rows/diff-sft-metadata/v3.json.

SourceIds

Source fact ids for one diff-SFT sample. Canonical schema: JSON Schema, version 2. ID: https://sediment.so/schemas/training-rows/diff-sft-source-ids/v2.json.

RecoveryRow

One recovery training row. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/training-rows/recovery-row/v3.json.

Verification

Operator verifier configuration. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/training-rows/verification/v1.json.

RLVRDecisionRow

One decision attached to an RLVR turn. Canonical schema: JSON Schema, version 2. ID: https://sediment.so/schemas/training-rows/rlvr-decision/v2.json.

RLVRInferenceMessageRow

One RLVR trajectory message. Canonical schema: JSON Schema, version 2. ID: https://sediment.so/schemas/training-rows/rlvr-inference-message/v2.json.

RLVRTurnRow

One RLVR trajectory turn. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/training-rows/rlvr-turn/v3.json.

NemoGymResponsesCreateParams

One NeMo Gym segment input. Canonical schema: JSON Schema, version 2. ID: https://sediment.so/schemas/training-rows/nemo-gym-responses-create-params/v2.json.

NemoGymResponse

One NeMo Gym response trajectory. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/training-rows/nemo-gym-response/v3.json.

SedimentTaskRow

One Sediment RLVR task. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/training-rows/sediment-rlvr-task/v3.json.

SedimentRolloutRow

One Sediment RLVR rollout segment. Canonical schema: JSON Schema, version 4. ID: https://sediment.so/schemas/training-rows/sediment-rlvr-rollout/v4.json.

SWEBenchTaskRow

One SWE-bench task. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/training-rows/swe-bench-task/v3.json.

SWEBenchMetadata

Sediment evidence for one SWE-bench task. Canonical schema: JSON Schema, version 3. ID: https://sediment.so/schemas/training-rows/swe-bench-metadata/v3.json.

NemoGymRolloutRow

One NeMo Gym rollout mapping. Canonical schema: JSON Schema, version 4. ID: https://sediment.so/schemas/training-rows/nemo-gym-rollout/v4.json.

NemoGymMetadata

Sediment evidence for one NeMo Gym rollout. Canonical schema: JSON Schema, version 4. ID: https://sediment.so/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: JSON Schema, version 4. ID: https://sediment.so/schemas/derived-bundle/manifest/v4.json.

InferenceCallIdentity

One declared source identity and its distinct attachment aliases. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/derived-bundle/inference-call-identity/v1.json.

RepositoryIdentityEvidence

One captured repository role and its exact source Fact. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/derived-bundle/repository-identity-evidence/v1.json.

BundleRecord

Strict JSON envelope for one lossless canonical record. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/schemas/derived-bundle/record/v1.json.

BundleFileMetadata

Integrity metadata for one bundle JSONL file. Canonical schema: JSON Schema, version 1. ID: https://sediment.so/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