Skip to content

chant version floors: one registry, a degraded why pane and a doctor line per read (#691) - #708

Merged
lex00 merged 2 commits into
mainfrom
feat/691-chant-floors
Oct 17, 2026
Merged

lex00 merged 2 commits into
mainfrom
feat/691-chant-floors

Conversation

@lex00

@lex00 lex00 commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Closes #691

One registry for the chant versions behold's reads need, a degraded mode for a pane whose read is too new for the project's chant, and a doctor line per read.

  • src/chant-floors.ts (new): every floor constant (WORKSPACE_CHANT_FLOOR, WHY_CHANT_FLOOR, CARVE_STATUS_FLOOR, OPERATOR_LOG_FLOOR, TRAFFIC_FLOOR, NAMESPACE_JOIN_FLOOR) and a CHANT_FLOORS list of { read, floor, adds }, with floorMet, floorRefusal and floorFor(read). The modules that defined these constants now import and re-export them, so existing imports and behaviour are unchanged. floorFor looks up by read name, because the epic's new reads will share floor versions.
  • Degraded mode: GET /api/workspace/why checks the workspace root's chant against WHY_CHANT_FLOOR before spawning the slow read, and answers with the refusal. The why pane already renders refusal.error, so it now shows: "Why needs chant 0.102.0 or newer. This project has chant 0.95.0." with the remedy "Upgrade @intentius/chant to 0.102.0 or newer in the project." Before, the pane ran the slow read and then said the chant writes no why.
  • behold doctor: a floor check per registered read, for example warn floor why: needs chant 0.102.0 (graph --intent writes a why (chant#3312)); chant 0.95.0, not met.
  • AGENTS.md: a "Chant version floors" section with the convention. New reads are named <READ>_CHANT_FLOOR, go through the read contract, and add one registry entry; each later behold issue in behold#678 adds its own.

Acceptance

  • The convention is documented, and WHY_CHANT_FLOOR follows it.
  • The degraded mode, with a test that sets the project's chant below WHY_CHANT_FLOOR (src/workspace-why.test.ts: chant 0.95.0 gets the refusal with no read spawned, and /api/doctor still answers).
  • behold doctor lists WHY_CHANT_FLOOR with the project's chant version and whether it's met (src/doctor.test.ts, below and above the floor).

Checks

npm run tsc, npm test (191 files, 3069 passed, 10 skipped), npm run build, bash scripts/typecheck-floor.sh: pass. e2e/run.sh serves the example, so it was not run.

Note for hud and the web code: DoctorCheck.name gains "floor".

@lex00
lex00 merged commit edfb22f into main Oct 17, 2026
3 checks passed
@lex00
lex00 deleted the feat/691-chant-floors branch October 17, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chant version floors: one floor per new read, a degraded mode and a doctor line

1 participant