Skip to content

JSON outputs

Every command that takes --json prints one JSON value on stdout and nothing else. Each carries a version and has a JSON Schema in schema/, shipped in the package as @kurvball/ashlar/schema/<name>.v1.json. Two answer to Rehearse rather than to Ashlar: dependents and rehearse carry Rehearse’s v, and follow its contract. A new field is added without a new version; a field that changes or goes raises the version. Tools such as Rehearse read these and nothing else.

The tests a change reaches, the features it reaches with their reach scripts, the changed and deleted files, and the files no test reaches. Schema: schema/affected.v1.json.

Field Type
version 1
changed list of strings
deleted list of strings
tests list of strings
features list of objects
features[].folder string
features[].reach string or null
unreached list of strings
seconds number

What an agent needs before it changes the files: never an access line. Schema: schema/brief.v1.json.

Field Type
version 1
paths list of strings
areas list of objects
areas[].path string
areas[].name string
areas[].owner string or null
owners list of objects
owners[].path string
owners[].owner string or null
dataRules list of strings
rules list of objects
rules[].id string
rules[].message string
folderRules list of objects
folderRules[].file string
folderRules[].title string
folderRules[].gotcha string or null
folderRules[].text string
folderRules[].guard string or null
decisions list of objects
decisions[].date string
decisions[].owner string
decisions[].areas list of strings
decisions[].kind "decision" or "rule" or "trust" or "setup"
decisions[].text string
features list of objects
features[].name string
features[].folder string
features[].reach string or null
questions list of objects
questions[].id string
questions[].kind "owner" or "reach" or "know" or "setup" or "trust"
questions[].area string
questions[].owner string
questions[].asks string
questions[].answer string

Whether any file's count rose above the baseline, each rule's totals, and every rise with its breaks. Schema: schema/check.v1.json.

Field Type
version 1
ok boolean
seconds number
files integer
baseline "held" or "taken" or "shrunk" or "risen" or "none"
rules list of objects
rules[].rule string
rules[].count integer
rules[].baseline integer
rises list of objects
rises[].rule string
rises[].file string
rises[].count integer
rises[].baseline integer
rises[].message string
rises[].added integer
rises[].breaks list of objects
rises[].breaks[].file string
rises[].breaks[].line integer
rises[].breaks[].column integer
rises[].breaks[].size integer
rises[].breaks[].fresh boolean
taken list of objects
taken[].rule string
taken[].file string
taken[].count integer
taken[].baseline integer
slack integer
moves list of objects
moves[].from string
moves[].to string

For each file, every file that reaches it through imports and the reach script of each feature those files sit in; files the graph doesn't hold go in unknown. This is Rehearse's dependents contract (its schema/v1/dependents.schema.json); v is Rehearse's contract version. Schema: schema/dependents.v1.json.

Field Type
v 1
dependents object
unknown list of strings

One feature's walk, or every feature's with --all. Schema: schema/drive.v1.json.

It prints one of these objects, or a list of them with --all.

Field Type
version 1
feature string
folder string
outcome "reached" or "stopped" or "no_reach" or "unreadable"
steps integer
stoppedAt integer or null
step string or null
says string or null
ms integer

Each rule and each check, the correction it came from, its case and the message agents read. Schema: schema/ledger.v1.json.

Field Type
version 1
entries list of objects
entries[].id string
entries[].rule boolean
entries[].says string
entries[].applies string
entries[].corrected string
entries[].by "developer" or "lead" or "gate"
entries[].replaces string or null
entries[].case object
entries[].case.file string
entries[].case.test string
entries[].message string

Each feature folder: its name, its reach as drive steps, and its proofs. Schema: schema/map.v1.json.

Field Type
version 1
features list of objects
features[].name string
features[].folder string
features[].reach list of objects
features[].reach[].says string
features[].reach[].run list of strings
features[].proofs list of objects
features[].proofs[].file string

Each move: what moved, how many breaks it carried, and any rise it took in. Schema: schema/move.v1.json.

Field Type
version 1
moves list of objects
moves[].from string
moves[].to string
moves[].kind "file" or "folder"
moves[].breaks integer
moves[].rises list of objects
moves[].rises[].rule string
moves[].rises[].file string
moves[].rises[].held integer
moves[].rises[].count integer

The guide's model: the areas, decisions, folder rules and questions, and what was written. Schema: schema/onboard.v1.json.

Field Type
version 1
project string
out string
ok boolean
written list of strings
stale list of strings
removed list of strings
areas list of objects
areas[].path string
areas[].name string
areas[].kind "feature" or "area" or "folder"
areas[].app string or null
areas[].owner string or null
areas[].page string
decisions list of objects
decisions[].line integer
decisions[].date string
decisions[].owner string
decisions[].areas list of strings
decisions[].kind "decision" or "rule" or "trust" or "owner" or "setup"
decisions[].text string
rules list of objects
rules[].file string
rules[].title string
rules[].paths list of strings or null
rules[].gotcha string or null
rules[].owner string or null
rules[].date string or null
rules[].text string
rules[].guard string or null
questions list of objects
questions[].id string
questions[].kind "owner" or "reach" or "know" or "setup" or "trust"
questions[].area string
questions[].owner string
questions[].asks string
questions[].answer string

The blocks of rehearse.yaml Ashlar fills, each flow as Rehearse reads it, and the features with no flow. Its v is Rehearse's contract version; manifest follows Rehearse's manifest schema and each flow its flow schema. Schema: schema/rehearse.v1.json.

Field Type
v 1
manifest object
manifest.version 1
manifest.scenarios object
manifest.scenarios.flows list of objects
manifest.scenarios.flows[].path string
manifest.scenarios.flows[].covers list of strings
flows list of objects
flows[].file string
flows[].flow object
flows[].flow.name string
flows[].flow.covers list of strings
flows[].flow.steps list of objects
missing list of strings

Where things stand on one date. Never kept. Schema: schema/snapshot.v1.json.

Field Type
version 1
date string
branch string or null
commit string or null
ratchet list of objects
ratchet[].rule string
ratchet[].baseline integer
map object
map.features integer
map.withReach integer
decisions integer
rules integer
questions integer or null
areas list of objects
areas[].path string
areas[].name string
areas[].lastChange string or null
areas[].commits30 integer