The forge's dataset
<!-- Generated from SCHEMA in src/core/dataset.ts by bun scripts/export-dataset.ts --schema; edit it there. -->
One JSONL file per table, one object per line, keys in the order below; null is unknown or not applicable. Times are ISO 8601, UTC. Ids sort by time. Rows are sorted by id.
Getting it
- Nightly, inside the running forge: set
FORGE_DATASET_REPO=owner/datato a private repository on the forge. The export commits the six files,SCHEMA.mdandmanifest.jsonthere when something grew; the history is git's. - By hand:
bun scripts/export-dataset.ts --repo owner/data, or--out ./dirto write the files without a repository. - The forge's admin sees what it holds and what it already answers at
/dataset; the planner is given the last week of it before it plans. - The salt is kept in
$FORGE_APP_DATA/dataset/saltand is never exported. Page opens are not recorded yet, so "which pages nobody opens" waits for a table.
Privacy, one rule everywhere
- A person is
p_+ 12 hex of a SHA-256 salted with a secret that never leaves the forge: the same person has the same name on every row, and nobody can be read back from it. A crew agent is its username. - Free text has emails, tokens, credentials in URLs, long secret-looking runs and absolute paths replaced by
[email],[token],[credentials],[secret]and[path]. - Only what the owner of the dataset repository already reads leaves the forge: their own repositories' rows, events meant for a repository's readers (
webhook.,prompt.,secret.,mail.,report.,run.,app.,look.,repo.settings_updatedand the like stay behind), nothing about a sealed issue or pull, and no deploy summaries. - Usernames in free text (
@mentions, and a username of three letters or more) are replaced by the person'sp_name. - Event payloads keep their shape; a value under a key that names a secret (token, secret, password, cookie, key, email, …) reads
[redacted], and a value under a key that names a person is hashed like a person.
events
Every event on the forge's bus, in the order it happened.
| field | type | meaning |
|---|---|---|
id | text | The event's id; ids sort by time. |
seq | number | The outbox sequence number, when it has one. |
kind | text | What happened, e.g. pull.merged. |
repo_id | text | The repository it happened in; null for the forge itself. |
actor | text | Who did it. A person is p_ and 12 hex of a salted hash, the same on every row; a crew agent is its username. |
payload | json | The event's body, scrubbed; keys that name a secret read [redacted]; capped at 4000 characters. |
created_at | time | When it was appended (UTC). |
decisions
Every fixed-choice decision the crew's decider made, and what came of it.
| field | type | meaning |
|---|---|---|
id | text | The decision's id. |
kind | text | next, land, retry, lean or guard. |
repo_id | text | The repository it was about. |
issue_id | text | The issue it was about; null when none. |
state | json | What the decider saw, scrubbed; capped at 4000 characters. |
answer | text | What it answered. |
p | number | How sure it was, 0 to 1. |
by | text | Who decided: a model, or a rule. |
ms | number | How long deciding took, in milliseconds. |
created_at | time | When it decided (UTC). |
outcome | text | What came of the answer; null while unresolved. |
outcome_at | time | When the outcome was known; null while unresolved. |
runs
Every agent run and deploy, with its cost, turns and outcome. A repository's own check is in checks.
| field | type | meaning |
|---|---|---|
id | text | The run's id. |
repo_id | text | The repository it ran for. |
kind | text | agent or deploy. |
issue_id | text | The issue or pull it was about; null when none. |
env | text | For a deploy: production or pull-<n>; else empty. |
branch | text | The branch an agent worked on, scrubbed. |
state | text | queued, running, ok, failed or cancelled. |
reason | text | Why it ran: assigned, feedback, check_failed, push, … |
actor | text | The agent for an agent run; whoever triggered a deploy. A person is p_ and 12 hex of a salted hash, the same on every row; a crew agent is its username. |
model | text | The model the agent runs on; default when unset; empty for a deploy. |
summary | text | One line on what happened, scrubbed; capped at 300 characters. |
cost_usd | number | What the run cost, in US dollars (list price on a subscription). |
turns | number | How many turns the model took. |
attempt | number | How many times it was paused and queued again. |
created_at | time | When it was queued (UTC). |
started_at | time | When it started; null if it never did. |
finished_at | time | When it ended; null while it has not. |
checks
Every run of a repository's own check, with the tests that failed.
| field | type | meaning |
|---|---|---|
id | text | The check run's id. |
repo_id | text | The repository. |
issue_id | text | The pull it ran for; null when none. |
commit_oid | text | The commit it judged. |
state | text | queued, running, ok, failed or cancelled. |
passed | number | Tests that passed, when the output was recognised; else null. |
failed | number | Tests that failed, when the output was recognised; else null. |
failed_names | json | A JSON array of up to 50 failed test names, scrubbed. |
summary | text | One line on the verdict, scrubbed; capped at 300 characters. |
created_at | time | When it was queued (UTC). |
finished_at | time | When it ended; null while it has not. |
duration_ms | number | Milliseconds from start to end; null while unknown. |
pulls
Every pull, with how long it took from being told to shipped and what it cost.
| field | type | meaning |
|---|---|---|
id | text | The pull's id (the id of its issue row). |
repo_id | text | The repository. |
number | number | The pull's number in its repository. |
title | text | Its title, scrubbed. |
author | text | Who opened it. A person is p_ and 12 hex of a salted hash, the same on every row; a crew agent is its username. |
state | text | open, closed or merged. |
base_branch | text | The branch it targets. |
head_branch | text | The branch it comes from, scrubbed. |
closes | json | A JSON array of the issue numbers its description closes. |
pillar | text | The pillar it served (P0 Trust, Later, …), from the first issue it closes that serves one; null when none. |
told_at | time | When the earliest person-written issue it closes was opened — the tell; null when none. |
created_at | time | When it was opened (UTC). |
closed_at | time | When it was closed or merged; null while open. |
merged_at | time | When it merged; null if it has not. |
merged_by | text | Who merged it. A person is p_ and 12 hex of a salted hash, the same on every row; a crew agent is its username. |
tell_to_shipped_hours | number | Hours from told_at to merged_at; null unless both. |
cost_usd | number | What the agent runs on this pull and the issues it closes cost, in US dollars. |
usage
What each agent run spent: tokens, cost, wall time. Request-level use of the forge's pages is not recorded yet.
| field | type | meaning |
|---|---|---|
run_id | text | The run it belongs to. |
repo_id | text | The repository. |
issue_id | text | The issue it worked on; null when none. |
agent | text | The agent's username; null on old lines. |
model | text | The agent's model; default when unset. |
subscription | text | The credential the run worked on, as a salted hash (s_ + 12 hex) — never the credential. |
kind | text | build, plan, review or check. |
tokens_in | number | Every input token the model read, cache included. |
tokens_out | number | Output tokens. |
cost_usd | number | The provider's reported cost, in US dollars. |
wall_ms | number | Milliseconds from claim to end. |
outcome | text | ok, failed, paused or running. |
landed_pull | text | The id of the merged pull this run's issue was shipped by; null when none (yet). |
at | time | When the run ended or last reported (UTC). |