chant drafts from S21 (for Jake to file on INTENTIUS/chant) #76

Open
opened 2026-10-02 21:15:44 +00:00 by jhgaylor · 0 comments
Owner

From S21 (#70). Drafts for Jake to file on INTENTIUS/chant himself; this issue only holds them. Details and repros in spikes/s21-chant-workspace/README.md ("Drafts for chant"). Checked against chant 6fcb9f34 (0.87.0).


  1. A nested workspace's gates never show in its status.
    • Repro: in reference-workspace inside chant's repo, chant run ship in delivery writes _members/reference-workspace/_members/delivery/_gates/ship.jsonl. But chant workspace status local --json run from reference-workspace reads _members/delivery/_gates and reports gates-no-gate-ledger.
    • A standalone copy (its own repo) writes and reads _members/delivery/_gates, and works.
  2. Declare chant's own record kinds.
    • chant's chant.workspace.json names no record kinds, so workspace records --json at its root fails with --kind <kind file> is required.
    • With --kind docs/design/decisions/decision.kind.mjs it reads all 53 decisions.
    • A records entry, as reference-workspace has, puts them in the read contract.
  3. Gates without an env. Gates have env: null, but workspace status needs <env> to show them. Make env optional (gates only), or add a gates section that doesn't depend on it.
  4. One process for a workspace read.
    • Each chant startup costs about 1.6–1.9 CPU-seconds (TypeScript through tsx), and a reader needs four documents (ls, check, records, status): about 7.5 CPU-s per read.
    • A chant workspace read --json (one document, each part keeping its own schema), or a precompiled published CLI, would cut that about 4×.
  5. --json consistency.
    • workspace check --json prints {lock, ok, findings, declaration} with no $schema, while --format json prints the check/v1 document.
    • run status, run list and run log ignore --json.
    • operator status --json prints only a warning, and no JSON, when there are no ConvergeOps and no pending gates.
*From S21 (#70). Drafts for Jake to file on INTENTIUS/chant himself; this issue only holds them. Details and repros in `spikes/s21-chant-workspace/README.md` ("Drafts for chant"). Checked against chant `6fcb9f34` (0.87.0).* -------- 1. **A nested workspace's gates never show in its `status`.** - Repro: in `reference-workspace` inside chant's repo, `chant run ship` in `delivery` writes `_members/reference-workspace/_members/delivery/_gates/ship.jsonl`. But `chant workspace status local --json` run from `reference-workspace` reads `_members/delivery/_gates` and reports `gates-no-gate-ledger`. - A standalone copy (its own repo) writes and reads `_members/delivery/_gates`, and works. 2. **Declare chant's own record kinds.** - chant's `chant.workspace.json` names no record kinds, so `workspace records --json` at its root fails with `--kind <kind file> is required`. - With `--kind docs/design/decisions/decision.kind.mjs` it reads all 53 decisions. - A `records` entry, as `reference-workspace` has, puts them in the read contract. 3. **Gates without an env.** Gates have `env: null`, but `workspace status` needs `<env>` to show them. Make env optional (gates only), or add a gates section that doesn't depend on it. 4. **One process for a workspace read.** - Each `chant` startup costs about 1.6–1.9 CPU-seconds (TypeScript through tsx), and a reader needs four documents (`ls`, `check`, `records`, `status`): about 7.5 CPU-s per read. - A `chant workspace read --json` (one document, each part keeping its own schema), or a precompiled published CLI, would cut that about 4×. 5. **`--json` consistency.** - `workspace check --json` prints `{lock, ok, findings, declaration}` with no `$schema`, while `--format json` prints the `check/v1` document. - `run status`, `run list` and `run log` ignore `--json`. - `operator status --json` prints only a warning, and no JSON, when there are no ConvergeOps and no pending gates.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
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/illogical#76
No description provided.