Use chant's newer workspace features for runs and the inbox #20

Open
opened 2026-10-21 03:09:03 +00:00 by lex00 · 0 comments
Collaborator

(enhancement, after #15)
Part of the terraform-plane epic (arugula-salad/arugula#1141). Lands after terragucci's next release, the first built on chant 0.124.41 or later (chant#4287); npm's newest is still 0.4.40, on chant 0.124.24.

  • Agent run records (chant ws-076, ws-090): chant workspace runs start/end writes _agent-runs/<id>.jsonl with cost fields and prints a Chant-Run trailer for the agent's commits, which suits /terragucci agent runs.

  • chant workspace status --json (chant #2674, workspace/status-gates.ts) gives per-member gate state and quorum, so the watcher needn't read the branch by hand. It now also returns chant's own release and pr-* gates (chant#4168 promote and PR loop), so the watcher must filter by op (tf-apply, tf-migrate, policy-override) or it files gates that aren't terragucci's. Its quorum output is thin: approvals[] and needed only, with no progress per rule, so the inbox's rule progress still comes from gate-quorum (#15). It also reads member ledgers under _members/<m>/_gates/, which sluice and terragucci hardcode as the flat _gates/tf-apply.jsonl.

  • Pending facts now carry approvalMode, wave, heldBy and resume (chant #3861, #3839, #3886, #3683). The inbox can show them instead of inferring.

  • sluice writes resolutions directly, past checks chant approve makes at write time: identity.attribution: "identified" refusing a bare --relayed-by sluice, gates in identity.gates refused unsigned, and approval.policy. chant ws-074 says writes go through chant. At least refuse in the console what chant approve would.

  • chant query (chant#4297, 0.124.41) is SQL over chant/lifecycle (--json, schemaVersion 1; runs, deploys, releases, raw gate lines). It fits history on the estate page, not live gate state, and needs Node 22.13+.

Done when: agent runs have run records and their commits the trailer; the watcher reads gate state from workspace status --json, filtered to terragucci's ops; the inbox shows the pending fact's fields; the console refuses what chant approve would refuse for the estate's identity settings.

From a review of sluice against terragucci 0.4.39 and chant 0.124.27 (2026-10-20). Proposal for the maintainer; PRs would come from lex00/sluice.

Updated 2026-10-22 for terragucci main (pins chant 0.124.41, terragucci#1212–#1223) and chant 0.124.41–0.124.42.

(enhancement, after #15) Part of the terraform-plane epic (arugula-salad/arugula#1141). Lands after terragucci's next release, the first built on chant 0.124.41 or later (chant#4287); npm's newest is still 0.4.40, on chant 0.124.24. - Agent run records (chant ws-076, ws-090): `chant workspace runs start/end` writes `_agent-runs/<id>.jsonl` with cost fields and prints a `Chant-Run` trailer for the agent's commits, which suits `/terragucci agent` runs. - `chant workspace status --json` (chant #2674, `workspace/status-gates.ts`) gives per-member gate state and quorum, so the watcher needn't read the branch by hand. It now also returns chant's own `release` and `pr-*` gates (chant#4168 promote and PR loop), so the watcher must filter by op (`tf-apply`, `tf-migrate`, `policy-override`) or it files gates that aren't terragucci's. Its quorum output is thin: `approvals[]` and `needed` only, with no progress per rule, so the inbox's rule progress still comes from `gate-quorum` (#15). It also reads member ledgers under `_members/<m>/_gates/`, which sluice and terragucci hardcode as the flat `_gates/tf-apply.jsonl`. - Pending facts now carry `approvalMode`, `wave`, `heldBy` and `resume` (chant #3861, #3839, #3886, #3683). The inbox can show them instead of inferring. - sluice writes resolutions directly, past checks `chant approve` makes at write time: `identity.attribution: "identified"` refusing a bare `--relayed-by sluice`, gates in `identity.gates` refused unsigned, and `approval.policy`. chant ws-074 says writes go through chant. At least refuse in the console what `chant approve` would. - `chant query` (chant#4297, 0.124.41) is SQL over `chant/lifecycle` (`--json`, schemaVersion 1; runs, deploys, releases, raw gate lines). It fits history on the estate page, not live gate state, and needs Node 22.13+. Done when: agent runs have run records and their commits the trailer; the watcher reads gate state from `workspace status --json`, filtered to terragucci's ops; the inbox shows the pending fact's fields; the console refuses what `chant approve` would refuse for the estate's identity settings. From a review of sluice against terragucci 0.4.39 and chant 0.124.27 (2026-10-20). Proposal for the maintainer; PRs would come from lex00/sluice. Updated 2026-10-22 for terragucci main (pins chant 0.124.41, terragucci#1212–#1223) and chant 0.124.41–0.124.42.
Sign in to join this conversation.
No labels
terraform-plane
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/sluice#20
No description provided.