Repository navigation
Description
behold is moving its kiosk view (the live demo at https://demo.intentius.io/kiosk, INTENTIUS/behold#571) to its default view for any estate: the graph, plus what's happening across the estate mixed together (runs and logs, gates and the ledger, alerts, metrics), across every substrate a chant project spans.
The maintainer's rule: chant workspace read contracts are the interface. Workspace grows to cover what the view needs, and behold reads through the contracts, never around them. The chant/lifecycle git ledger is the default backend, sized for a software factory or simple setups. A higher-volume backend can sit behind the same contracts. Raw CI logs and OTel metric series stay on the forge API and a metrics endpoint.
What behold can already read: workspace status <env> --json (gates, releases, stewards and each Op's last run, in-flight, leases, open points), workspace points, workspace runs (agent runs with tokens and cost), workspace ls, workspace graph, and gate-audit over _gates/.
Gaps
Each is marked as a contract (a shape behold reads) or a backend (where the data lives).
- contract field:
OpRunRecordcarries its CI run (forge, id, url), asGateRunLocatordoes for pending gates (op/runtime.ts:116-162; op/gate-run-locator.ts). - contract: Op run and wave-run history across members and envs,
--json --since <cursor>, alongsideworkspace runs(agent runs). Todaychant run list/status/logprint text only, and the run ledger reads git directly instead of throughLedgerReadPort(lifecycle/run-ledger.ts:41). - contract: a persisted wave-run record per Op waves job: waiting, applying, applied, refused, failed, with timestamps and run link.
RunOpWaveResultis printed, never kept (op/op-waves-run.ts:617-640). - contract and backend:
chant.notify/v1events also appended to the ledger and read withworkspace events --since;idalready deduplicates them. Today they are push-only to webhook, Slack and Teams (notify.ts:228-244). - sender: core sends
drift. WatchOp records structured findings fromlifecycle diff --live --jsoninstead of a boolean scraped from text headers (op/activities/lifecycle.ts:83-101). - backend: in-flight run state visible off the executing host. Today it is
<git-common-dir>/chant/runs/*.json, deleted on settle (op/run-live.ts:1-24), so CI and remote runs are invisible until they finish. - backend: change-set documents stored by digest, so the plan an approval binds can be read after the step ends. Today only the digest reaches the ledger.
- backend: a higher-volume store behind
LedgerReadPortand the contracts: append-only, opaque cursors, per-kind retention, query by member, op, kind and time. The git branch stays the default. - contract: delivery and agent metric names and labels for products to emit (stage duration, apply seconds, lock wait, wave waiting since, drift since, DORA), aligned with the otel lexicon's semantic conventions and the GenAI and agent metrics work (epic: GenAI metrics under the semantic conventions across otel, prometheus and grafana #3039, otel: agent, tool, workflow, cache, reasoning and MCP metrics from semantic-conventions-genai #3044). Only low-rate facts (last apply duration, waiting since, drift since) belong in a workspace contract; series stay on the metrics endpoint.
- contract: alerts declared by a project's prometheus lexicon (rule groups, Alertmanager routes) resolvable to their live state through a read behold can make, so behold's alerts strip shows the project's own alerts.
Related: #2524 (workspace research), #3378 (otel and prometheus toward an aws-grade lexicon), #3039, #3044, #3761 (notify), #3616 (gates in workspace status), #2481 (CLI start-up time, which matters for a polling view).
🤖 Generated with Claude Code
Activity
lex00 commentedon Oct 16, 2026
From INTENTIUS/behold#631 (the kiosk's Components view for a repo that runs chant's pull-request loop): what behold reads today, and the read contracts it would read through instead.
Read now:
chant graph --components --format ir(groups.byWave, each component'sattrs.liveNames);pr-report/v1(pr-report.schema.json) when it is in the served checkout's--outputdir; in CI it stays in the job, so behold parses the summarypr-plan:/pr-apply:prints at the end of the step (handlers/pr.tsprintMembersand theplan :,approve :,applied the plan ... approved bylines) from the run logs it already copies;_gates/pr-<n>.jsonlonchant/lifecyclethrough@intentius/chant/lifecycle/gate-audit(gateLedgerLinesFromLog,deriveGateAudit);chant components pr-plan|pr-applylines in the generated workflow file.Missing contracts:
pr-planandpr-apply(pr-report/v1), keyed by op and commit, with the change set the digest binds. Backend: chant#4007's--report-url, or the ledger beside_gates/.pr-applyruns (chant#4007'sRunProgressEvents), kept where a reader outside the job reads them. Same shape as the epic's wave-run record.workspace status --jsoncarries gates only inside a workspace, so a single project'spr-<n>gate is read through the gate-audit library, not a CLI contract.chant build --components --generate <forge> --format json) names its pull-request loop: stages, env, gate and--output, so a reader does not parse the workflow text.lex00 commentedon Oct 17, 2026
Run history: #4019 adds the run-event contract (
run-event.schema.json, contract 1, chant 0.124.28 and newer). It is one stream for Op, component and pipeline runs, withrunId,gitSha,runtimeandrunOriginon every event, and its types and writer are exported from@intentius/chant. The emitters are #4041; replay and--followare #4042, which still waits on this issue's off-host in-flight state.lex00 commentedon Oct 17, 2026
CI locator: #4020 covers it. An Op run record now carries
runOrigin, the sameRunOriginshape deploy records use (forge, repo, url), plusgitSha. Pending gate facts and resolutions carrygitShaandrunId, and deploy records carryadmissionbesideapprover.GateRunLocatormaps ontoRunOriginwithrunOriginOfLocator. First written by chant 0.124.28.lex00 commentedon Oct 17, 2026
Stored change sets: done in #4022. A pull-request gate's apply stores the change-set document it binds at
_change-sets/<digest>.jsononchant/lifecycle(under_members/<member>/in a workspace) before deciding the gate, so the plan an approval bound can be read after the step ends:chant change-set show <digest> --json(read contractchange-set-showv1, floor 0.124.28). Each entry carries the graph node idchant workspace graphuses, and a gate inworkspace status --jsonlinks to its change set inchangeSet. Release gates andemptyresolutions store theirs through the samestoreGateChangeSetcall with #4045.lex00 commentedon Oct 17, 2026
#4042 (
chant run events <run> --jsonreplay and--follow) works for this host only. A local run writes its events to<git-common-dir>/chant/run-events/<run id>.jsonl, and--followtails that file untilrun-settle. A run hosted elsewhere (--on fountain) writes nothing there, andrun events --on <non-local>refuses and points here. Remote--followis left to this item: it needs the off-host in-flight state, and what it would read is the same run-event v1 stream (run-event.schema.json, floor 0.124.28), so the reader and the line format need no change.run events: chant run events replays a run and --follow tails one on …
lex00 commentedon Oct 17, 2026
From #4036 (retention and
chant lifecycle gc): at chant's own rate, a month adds about 8.6 MB of packed history tochant/lifecyclethat no tip prune can shed; bounding it needs a history-shedding scheme or a higher-volume backend. Pull-request gates write one_gates/pr-<n>.jsonleach (about 750 a month, 97% of ledger files in the fixture, never pruned); a per-member or per-month PR gate ledger would cap that._plans/,_builds/, snapshots and checkpoints have no retention policy yet. Append-only ledgers are rewritten as whole blobs on every append, which inflates history. After a prune, readers report a pruned record as missing; one that falls back to history could say "pruned".