One row of pull_requests is one pull request (GitHub) or merge request (GitLab) with its phase timestamps already worked out by the connector: when it left draft (ready_at), its first review by someone else who is not a bot (first_review_at), its first approval, and when it merged or closed. Metrics then measure cycle time and where work waits without walking a timeline in SQL. reviews, issues, deployments (deployments and releases), incidents, repos and people complete the picture. The GitHub connector (dashremix connect github, through the person's own gh login) writes it into the crate library (library/code.db); Delivery Overview and DORA Metrics read it.
Required tables must exist in every database that says it follows code@1; required fields must be filled. Columns a board adds start with x_.
metarequired table
Key/value facts about this database. Required: schema, schema_version, as_of, data_hash. Recommended (checked at warn): source_built_at (ISO 8601 UTC instant the database was written).
Field
Type
Required
Meaning
key
TEXT
no
value
TEXT
no
reposrequired table
Repositories (or projects) the work happens in.
Field
Type
Required
Meaning
repo_id
TEXT
yes
owner/name as the host writes it, e.g. sample-co/api
default_branch
TEXT
no
e.g. main
is_private
INTEGER
no
1 private, 0 public
language
TEXT
no
primary language as the host reports it
stars
INTEGER
no
stargazers at the last sync
archived
INTEGER
no
1 when archived (kept for history, no new work expected)
source
TEXT
no
connector id that wrote the row: github | prs-csv | code-csv
imported_at
TEXTinstant
no
ISO 8601 UTC instant of the import (left out of meta.data_hash)
peoplerequired table
Everyone who authored, reviewed or was assigned something. Keys are hashes, never logins.
Field
Type
Required
Meaning
person_key
TEXT
yes
16 hex: HMAC-SHA256 of the lower-case login with a per-crate salt (sha256 without one), first 16 hex
display_name
TEXT
no
the login or a name: only when the person opted in for their own team (store_logins); NULL otherwise
is_bot
INTEGER
yes
1 for automation (a Bot actor, a [bot] login, or a login the person listed as a bot); bots never count as a review
team
TEXT
no
team name from the person's own mapping (crate.yaml or inputs); NULL = no team given
is_me
INTEGER
no
1 for the person's own identities on a personal board (their own people file); NULL or 0 otherwise (1.2)
source
TEXT
no
connector id that wrote the row
imported_at
TEXT
no
ISO 8601 UTC instant of the import
pull_requestsrequired table
One pull request (GitHub) or merge request (GitLab), with phase timestamps computed by the connector.
Field
Type
Required
Meaning
pr_id
TEXT
yes
<connector>:<repo>:<host id>, e.g. gh:sample-co/api:PR_kwDO… (never a list position)
repo_id
TEXT
yes
the repository (repos.repo_id)
number
INTEGER
yes
the number people see (#123)
title
TEXT
no
title as written (used for release notes and the ledger; stays on this computer)
author_key
TEXT
no
people.person_key of the author; NULL = deleted account
created_at
TEXTinstant
yes
opened (ISO 8601 UTC)
updated_at
TEXTinstant
no
last change on the host (incremental sync cursor)
ready_at
TEXTinstant
no
ready for review: the last time it left draft, or created_at when it never was a draft; NULL while still a draft
first_review_at
TEXTinstant
no
first review by someone other than the author who is not a bot (any state); NULL = no review yet
first_approval_at
TEXTinstant
no
first approving review by someone other than the author who is not a bot
merged_at
TEXTinstant
no
merged; NULL = not merged
closed_at
TEXTinstant
no
closed (merged or not); NULL = still open
additions
INTEGER
no
lines added
deletions
INTEGER
no
lines deleted
changed_files
INTEGER
no
files changed
commits_n
INTEGER
no
commits in the pull request
base_branch
TEXT
no
target branch, e.g. main
head_branch
TEXT
no
source branch
labels
TEXT
no
JSON array of label names, e.g. ["feature"]
is_draft
INTEGER
yes
1 while it is a draft
is_revert
INTEGER
yes
1 when it reverts earlier work (title starts with Revert, or a revert branch)
linked_issues
TEXT
no
JSON array of issue numbers it closes
first_commit_at
TEXTinstant
no
authored time of the pull request's first commit (ISO 8601 UTC); lead time for changes starts here (1.1)
merge_sha
TEXT
no
the commit the merge made on the base branch (merge, squash or rebase commit); matches a deployment's sha (1.1)
source
TEXT
no
connector id that wrote the row
source_ref
TEXT
no
where in the source: the host's node id, or file:line
imported_at
TEXTinstant
no
ISO 8601 UTC instant of the import
reviewsrequired table
Every submitted review, including bots and the author's own comments (metrics leave those out).
Field
Type
Required
Meaning
review_id
TEXT
yes
<connector>:<repo>:<host id>
pr_id
TEXT
yes
the pull request (pull_requests.pr_id)
reviewer_key
TEXT
no
people.person_key of the reviewer; NULL = deleted account
Things shipped: deployments, workflow runs that deploy, releases and tags. One repo should be read from one kind (README, "Deployments and releases"); boards never add kinds together for the same repo.
Field
Type
Required
Meaning
deploy_id
TEXT
yes
<connector>:<repo>:<kind>:<host id>
repo_id
TEXT
yes
the repository
environment
TEXT
no
production, staging …; release for a release, tag for a tag
created_at
TEXTinstant
yes
started (deployment), published (release), or tagged (ISO 8601 UTC)
completed | not_planned | duplicate | reopened (vocab issue_state_reasons); NULL when open or not given
labels
TEXT
no
JSON array of label names
is_bug
INTEGER
yes
1 when a label says bug (or the person's bug_labels)
assignee_key
TEXT
no
people.person_key of the first assignee
milestone
TEXT
no
milestone title
source
TEXT
no
connector id that wrote the row
source_ref
TEXT
no
where in the source
imported_at
TEXT
no
ISO 8601 UTC instant of the import
commits
One commit read from a local clone (1.2). The default branch's commits and, after patch-id dedupe, the commits only on other branches. Merges are rows too (is_merge = 1) with no file rows: their diff repeats work already counted.
Field
Type
Required
Meaning
commit_id
TEXT
yes
<connector>:<repo_id>:<sha>, e.g. git:sample-co/api:3f2a… (1.2)
repo_id
TEXT
yes
the repository (repos.repo_id) (1.2)
sha
TEXT
yes
the full commit hash (1.2)
author_key
TEXT
no
people.person_key of the author (salted hash of the canonical identity; never an email) (1.2)
committer_key
TEXT
no
people.person_key of the committer (1.2)
authored_at
TEXTinstant
yes
author time, ISO 8601 UTC: when the work was written; survives rebase and squash (1.2)
committed_at
TEXTinstant
no
committer time, ISO 8601 UTC: a rebase, amend or cherry-pick moves it (1.2)
author_tz_offset
INTEGER
no
the author's UTC offset in minutes at authoring time, e.g. -300 (1.2)
parents_n
INTEGER
no
number of parents: 0 root, 1 normal, 2+ merge (1.2)
is_merge
INTEGER
yes
1 for a merge commit (no file rows) (1.2)
on_default
INTEGER
yes
1 when reachable from the default branch at as_of; 0 = only on other branches (unmerged) (1.2)
subject
TEXT
no
first line of the message as written (stays on this computer; exports drop it) (1.2)
additions
INTEGER
no
lines added over every file (numstat, renames off; binary files count 0) (1.2)
deletions
INTEGER
no
lines deleted over every file (1.2)
files_n
INTEGER
no
files changed (1.2)
created_files_n
INTEGER
no
files the commit created (1.2)
patch_id
TEXT
no
git patch-id --stable, when computed (unmerged commits); NULL otherwise (1.2)
word_change_ratio
REAL
no
share of words that really change (0..1; moved or re-indented words do not count), measured for refactor candidates only; NULL = not measured (1.2)
claude | codex | cursor | copilot | devin | aider | gemini | grok | other (vocab agent_names); NULL for human and bot (1.2)
co_author_keys
TEXT
no
JSON array of people.person_key from Co-Authored-By trailers that are people (agents are agent_name) (1.2)
revert_of
TEXT
no
sha this commit reverts ("This reverts commit …"), when it says so (1.2)
pr_id
TEXT
no
pull_requests.pr_id that merged it (via merge_sha), when the library has pull requests (1.2)
source
TEXT
no
connector or importer id that wrote the row: git | git-bundle | code-csv (1.2)
source_ref
TEXT
no
where in the source: the sha, or file:line (1.2)
imported_at
TEXTinstant
no
ISO 8601 UTC instant of the import (left out of meta.data_hash) (1.2)
commit_files
Lines changed per file per commit (numstat; renames off, so a moved file is removed + added) (1.2). Raw facts only: areas, work types and platform categories are a board's own rules, applied at its import.
default | local | remote (vocab branch_kinds) (1.2)
name
TEXT
no
the branch name: NULL unless the person opted in, or every unmerged commit on it is their own on a personal board (1.2)
head_sha
TEXT
no
the commit the branch points at (1.2)
last_commit_at
TEXTinstant
no
committer time of that commit, ISO 8601 UTC (1.2)
ahead
INTEGER
no
commits on the branch not on the default branch (merges included) (1.2)
behind
INTEGER
no
commits on the default branch not on the branch (1.2)
unmerged_commits
TEXT
no
JSON array of commits.commit_id only on this branch (patch-id duplicates of default-branch work left out) (1.2)
is_default
INTEGER
yes
1 for the default branch (1.2)
source
TEXT
no
connector or importer id (1.2)
imported_at
TEXTinstant
no
ISO 8601 UTC instant of the import (1.2)
ownership
Who wrote the code that is still there: git blame -w -M -C at the default branch's head, aggregated per file and person (never per line) (1.2).
Field
Type
Required
Meaning
repo_id
TEXT
yes
the repository (1.2)
head_sha
TEXT
yes
the commit blamed (1.2)
path
TEXT
yes
repo-relative path (1.2)
person_key
TEXT
yes
people.person_key of the line's author (1.2)
lines
INTEGER
yes
current lines by that person in that file (1.2)
services
Services the person runs (1.3): an API, a web app, a worker. CI runs and uptime checks point here; one service is built from one repository. Names come from the person's own list, never from a probe.
Field
Type
Required
Meaning
service_id
TEXT
yes
the person's short id for the service, e.g. api
name
TEXT
no
display name, e.g. Harbor API
team
TEXT
no
the team that answers for it, from the person's own mapping
repo_id
TEXT
no
repos.repo_id it is built from, when known
source
TEXT
no
who wrote the row: inputs | the connector id
imported_at
TEXTinstant
no
ISO 8601 UTC instant of the import
ci_runs
One CI attempt (1.3): a workflow run, a deployment job or one named test, as a saved CI report or the host gives it. A rerun is a new row (attempt 2, 3 ...), so a test that failed and then passed is visible as flaky.
Field
Type
Required
Meaning
ci_run_id
TEXT
yes
<connector>:<repo_id>:<16 hex of sha1 of run_ref|attempt|test_name>
repo_id
TEXT
yes
repos.repo_id
service_id
TEXT
no
services.service_id, when the person maps runs to a service
success | failure | cancelled (vocab ci_conclusions): skipped and neutral runs are cancelled
started_at
TEXTinstant
no
ISO 8601 UTC, when the report has it
completed_at
TEXTinstant
yes
ISO 8601 UTC
environment
TEXT
no
deployment target, e.g. production
branch
TEXT
no
the branch built, when the report has it
source
TEXT
yes
connector id: code-csv | github
source_ref
TEXT
yes
file:line or the API object
imported_at
TEXTinstant
no
ISO 8601 UTC instant of the import
uptime_checks
What an uptime monitor reported for a service over an interval (1.3): first_at inclusive, last_at exclusive. Read from the monitor's saved history; nothing is probed. One service's intervals never overlap.
up | down | degraded | maintenance | unknown (vocab uptime_states)
response_ms
REAL
no
average response time over the interval, when the monitor gives it
source
TEXT
yes
connector id: monitor-csv
source_ref
TEXT
yes
file:line
imported_at
TEXTinstant
no
ISO 8601 UTC instant of the import
dependency_snapshots
One dated read of a dependency manifest's lockfile (1.3), with what else was read for that day, so a board can tell "no advisory" from "advisories not checked".
Field
Type
Required
Meaning
snapshot_id
TEXT
yes
<connector>:<repo_id>:<manifest>@<snapshot_on>
repo_id
TEXT
yes
repos.repo_id
manifest
TEXT
yes
the lockfile's path in the repository, e.g. package-lock.json
1 when a security-alert report for this manifest was read for this day (no row then means none)
releases_read
INTEGERbool
yes
1 when registry release facts (latest version, release date, license) were read
source
TEXT
yes
connector id: npm-lock | github
source_ref
TEXT
yes
the lockfile read
imported_at
TEXTinstant
no
ISO 8601 UTC instant of the import
dependencies
One resolved package in a lockfile snapshot (1.3). A package installed at two places in the tree is two rows.
Field
Type
Required
Meaning
snapshot_id
TEXT
yes
dependency_snapshots.snapshot_id
package_path
TEXT
yes
where it sits in the lock tree (node_modules/a/node_modules/b), or the name in a flat ecosystem
name
TEXT
yes
the package name, e.g. @fixture/date-kit
version
TEXT
no
the resolved version as written
is_direct
INTEGERbool
no
1 a direct dependency of the manifest, 0 transitive, NULL when the layout does not say
license
TEXT
no
licence as the lockfile or registry gives it (SPDX), NULL = unknown
latest_version
TEXT
no
newest release in the registry facts, when read
released_on
TEXTdate
no
day the resolved version was published, when read
is_outdated
INTEGERbool
no
1 when version is older than latest_version (compared by the connector), 0 when current, NULL when either is unknown
source
TEXT
yes
connector id
source_ref
TEXT
yes
file:entry
imported_at
TEXTinstant
no
ISO 8601 UTC instant of the import
advisories
A security alert on a dependency as it stood on a snapshot's day (1.3): the same alert appears once per snapshot, so a board can show when it opened and when it was fixed.
Field
Type
Required
Meaning
snapshot_id
TEXT
yes
dependency_snapshots.snapshot_id (its advisories_read is 1)
alert_key
TEXT
yes
the host's alert, the same at every snapshot: <connector>:<repo_id>:<alert number>
open | fixed | dismissed | auto_dismissed (vocab advisory_states)
fixed_version
TEXT
no
first patched version, when one exists
opened_at
TEXTinstant
no
ISO 8601 UTC the alert opened, when the report has it
closed_at
TEXTinstant
no
ISO 8601 UTC it was fixed or dismissed, when the report has it
source
TEXT
yes
connector id: dependabot-json | github
source_ref
TEXT
yes
file:entry
imported_at
TEXTinstant
no
ISO 8601 UTC instant of the import
sprints
A sprint (iteration, cycle) of a project (1.3), with its planned dates. end_on is the sprint's last working day.
Field
Type
Required
Meaning
sprint_id
TEXT
yes
<connector>:<repo_id>:<the tool's sprint id or the person's key>
repo_id
TEXT
yes
repos.repo_id of the project
name
TEXT
yes
e.g. Sprint 14 (stays on this computer)
start_on
TEXTdate
yes
first day (YYYY-MM-DD)
end_on
TEXTdate
yes
last day, inclusive
committed_points
REAL
no
points committed at sprint start, when the tool records it
source
TEXT
yes
connector id: sprint-csv | the person's inputs
source_ref
TEXT
no
file or the person's inputs
imported_at
TEXTinstant
no
ISO 8601 UTC instant of the import
sprint_snapshots
One work item's state in a sprint as a saved board export showed it on one day (1.3). Scope, done and remaining per day come from these rows; an item that leaves the sprint is absent from later snapshots.
Field
Type
Required
Meaning
sprint_id
TEXT
yes
sprints.sprint_id
snapshot_on
TEXTdate
yes
the day the export was saved (YYYY-MM-DD), within the sprint's dates
item_key
TEXT
yes
the tool's item key: DEMO-12, owner/repo#12
issue_id
TEXT
no
issues.issue_id, when the item is also an issue row
Minor (new optional tables and vocabularies only; every 1.2 database stays valid), so Dependencies & Security, Dev &
Infra Status and Sprint Burndown keep their data in the standard instead of board-private x_/d_ tables:
services (the person's services, their team and repository), ci_runs (one row per CI attempt: kind build, test or deployment, conclusion, rerun attempt) and uptime_checks (a monitor's intervals with a state; unknown is never up).
dependency_snapshots (a dated lockfile read, with whether advisories and registry release facts were read that day), dependencies (each resolved package: direct or not, licence, latest version, release day, outdated as compared by the connector) and advisories (each security alert as it stood at a snapshot, under a stable alert key).
sprints (planned dates, committed points) and sprint_snapshots (each item's mapped state, the tool's status and its points on a saved day).
Conformance checks on the new tables: services_and_ci_valid, uptime_checks_valid, dependencies_consistent, sprints_valid at fail (they read only tables new in 1.3, which a 1.2 database does not have or holds empty, so no 1.2 database can fail them) and uptime_no_overlap at warn.
Fixtures for every new table. Every board on code@1 re-pinned to 1.3.0.
1.2.0 (2026-11-30)
Minor (new optional tables, one new optional column and new vocabularies; every 1.1 database stays valid), for the
git-activity boards (My Code Year first):
commits (one per commit read from a local clone: dates, merge flag, default branch or not, subject kept locally, line counts, created files, patch-id, word-change ratio, agent_mode and agent_name, co-author keys, revert of), commit_files (numstat per file, renames off), branches (default and unmerged branches, names hashed unless opted in) and ownership (blame totals per file and person at the default branch's head).
people.is_me (the person's own identities on a personal board).
Conformance checks on the new tables: commit_ids_namespaced, commits_referenced, commit_files_match, agent_mode_consistent at fail (they read only tables new in 1.2, which a 1.1 database holds empty, so no 1.1 database can fail them), branches_consistent and ownership_one_head at warn.
Minor (new optional columns and vocabulary values; every 1.0 database stays valid), for DORA Metrics:
pull_requests.first_commit_at (authored time of the first commit: lead time for changes from commit to production) and pull_requests.merge_sha (the merge, squash or rebase commit: matches a deployment's sha, also for squashed work).
deployments.live_at (first success) and deployments.status_history (every status, oldest first): a deployment that went live and was replaced (success → inactive) is told apart from one that never went live. finished_at is unchanged.
incidents.title.
incident_kinds: deploy_failure, rollback; deploy_statuses: cancelled (a cancelled or skipped run: never live, never a failed attempt).
New conformance check at warn: deploy_history_consistent.
The GitHub connector fills the new columns (pull requests and deployments are read again once at the first sync after the upgrade, so older rows get them too).
1.0.0 (2026-11-29)
First published version, seeded from the launch plan's code@1 definition (section 4.4): repos, people, pull_requests, reviews, deployments, incidents, issues, plus the platform tables meta, import_issues, annotations, metric_registry.
Changes from the plan's draft, decided while building the first board (Delivery Overview): - pull_requests.title, pull_requests.updated_at, issues.title, issues.updated_at: release notes, the ledger and the incremental sync cursor need them. - Releases are deployments rows with kind = release (plus ref = the tag and name = the release title), so DORA and Delivery Overview read one table and pick one kind per repository. - The plan's deployments.source and incidents.source (how the event was found) are named kind, because source is the provenance column (the connector id) in every DashRemix standard. - Ids are namespaced by connector and repository scope: the GitHub connector uses the repository's node id, so a rename keeps every id (gh:<repo node id>:<node id>); CSV exports use owner/name. - A deployment that went live and was replaced later (inactive) still counts as shipped.
Conformance checks: ids namespaced, repositories and people referenced, timestamps in order, hashed people keys, first review never a bot or the author, non-negative line counts; source_built_at at warn.