Repository navigation
chant version floors: one registry, a degraded why pane and a doctor line per read (#691) - #708
Merged
Merged
Conversation
…, and a doctor line per read (#691)
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 aCHANT_FLOORSlist of{ read, floor, adds }, withfloorMet,floorRefusalandfloorFor(read). The modules that defined these constants now import and re-export them, so existing imports and behaviour are unchanged.floorForlooks up by read name, because the epic's new reads will share floor versions.GET /api/workspace/whychecks the workspace root's chant againstWHY_CHANT_FLOORbefore spawning the slow read, and answers with the refusal. The why pane already rendersrefusal.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: afloorcheck per registered read, for examplewarn 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
WHY_CHANT_FLOORfollows it.WHY_CHANT_FLOOR(src/workspace-why.test.ts: chant 0.95.0 gets the refusal with no read spawned, and/api/doctorstill answers).behold doctorlistsWHY_CHANT_FLOORwith 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.shserves the example, so it was not run.Note for hud and the web code:
DoctorCheck.namegains"floor".