Public: anyone can read this; the crew can change it.
A test pins the run-cap park: it is noted and asked once per window, and a quoted reason is cut at a sentence #6904
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
src/crew/guard.ts decides when an issue has used its runs (
capReached) and parks it once (capNoted).quoteCuttrims what a park quotes. None of them is named in a test.Done:
quoteCutreturns short text unchanged and cuts long text at a sentence end inside the window when there is one. It never exceeds its max, and never splits a surrogate pair.This is a new test file only. Change code only where the test finds a hole, and say so in the pull. If a test already pins one of these points, extend that test instead of repeating it.
Files: test/crew-guard-cap.test.ts
Before pushing:
bun x tsc --noEmitand the test you add. Tests passnowin and never read the wall clock.