Skip to content

100x is a skill by a former Cursor engineer that turns prompts into formally verified, production-ready code

Voice guide, labelled pre-flight, final message with the verdict first

Dead Internetaccd41c3c153
diff --git a/README.md b/README.md
index b455d8a..c0e9821 100644
--- a/README.md
+++ b/README.md
@@ -139,15 +139,23 @@ When an agent says "done", it reports what it remembers. 100x saves the evidence
<summary>The same message as plain text</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/docs/img/diagrams/final-message.svg b/docs/img/diagrams/final-message.svg
index 276a73d..0f159e6 100644
--- a/docs/img/diagrams/final-message.svg
+++ b/docs/img/diagrams/final-message.svg
@@ -1,15 +1,23 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 560 1730" width="560" height="1730" role="img" aria-labelledby="t d" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif">
-<title id="t">The final message of an illustrated run</title><desc id="d">Compare with the S&amp;P 500: A chart in a research app that shows how any stock has moved against the S&amp;P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 560 1831" width="560" height="1831" role="img" aria-labelledby="t d" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif">
+<title id="t">The final message of an illustrated run</title><desc id="d">Compare with the S&amp;P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table</desc>
-<rect width="560" height="1730" fill="#0b0e14"/><rect x=".75" y=".75" width="558.5" height="1728.5" fill="none" stroke="#262e3d" stroke-width="1.5"/>
-<text x="28" y="46" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="20" fill="#6b7589" font-weight="700" letter-spacing=".04em">THE FINAL MESSAGE · ILLUSTRATED RUN</text><path d="M28 66H532" stroke="#262e3d" stroke-width="1.5"/><text x="28" y="104" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Compare with the S&amp;P 500</text><text x="28" y="136" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >A chart in a research app that shows</text><text x="28" y="167" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >how any stock has moved against the</text><text x="28" y="198" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >S&amp;P 500 since the first day both</text><text x="28" y="229" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >have prices. Verdict: ready to ship.</text><text x="28" y="260" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >The split math matches a hand count</text><text x="28" y="291" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >and both lines start on the same</text><text x="28" y="322" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >day. Dividends are not counted yet.</text><text x="28" y="367" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">The moment</text><text x="28" y="399" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >Type a ticker and both lines start</text><text x="28" y="430" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >at 0% on the same day, so the gap is</text><text x="28" y="461" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >the whole story</text><text x="28" y="506" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Run</text><text x="28" y="538" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >npm run dev, then open</text><text x="28" y="569" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >http://localhost:5173/compare</text><text x="28" y="614" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Try first</text><text x="28" y="646" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >1) Type a ticker you hold and read</text><text x="28" y="677" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >the gap to the index 2) Pick a stock</text><text x="28" y="708" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >that split two for one and check the</text><text x="28" y="739" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >split day shows no drop 3) Pick a</text><text x="28" y="770" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >stock listed this year and see where</text><text x="28" y="801" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >both lines start</text><text x="28" y="846" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Must not break</text><text x="28" y="878" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >numbers passed (Percent change</text><text x="28" y="909" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >across a two-for-one split matches a</text><text x="28" y="940" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >hand count on 40 split cases, 0</text><text x="28" y="971" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >failing)</text><text x="28" y="1016" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#ffb000" font-weight="700">Review (claude-opus-5-5)</text><text x="28" y="1048" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >9 flagged, 7 fixed, 1 rejected, 1</text><text x="28" y="1079" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >deferred</text><text x="28" y="1124" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#ffb000" font-weight="700">Judge rounds</text><text x="28" y="1156" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >5 of 5 done, on the code and how it</text><text x="28" y="1187" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >behaves, the UI and UX and whether</text><text x="28" y="1218" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >it is ready to ship, and the last</text><text x="28" y="1249" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >word was ready to ship</text><text x="28" y="1294" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Screen sizes</text><text x="28" y="1326" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >0 broken, 2 weak, 15 sizes and 148</text><text x="28" y="1357" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >elements checked</text><text x="28" y="1402" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Asks</text><text x="28" y="1434" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >9 of 9 closed</text><text x="28" y="1479" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Report</text><text x="28" y="1511" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >file:///Users/you/projects/</text><text x="28" y="1542" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >research-app/.100x/REPORT.html</text><text x="28" y="1587" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Next likely asks</text><text x="28" y="1619" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >Count dividends in the comparison;</text><text x="28" y="1650" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >Show the gap for several stocks in</text><text x="28" y="1681" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >one table</text>
+<rect width="560" height="1831" fill="#0b0e14"/><rect x=".75" y=".75" width="558.5" height="1829.5" fill="none" stroke="#262e3d" stroke-width="1.5"/>
+<text x="28" y="46" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="20" fill="#6b7589" font-weight="700" letter-spacing=".04em">THE FINAL MESSAGE · ILLUSTRATED RUN</text><path d="M28 66H532" stroke="#262e3d" stroke-width="1.5"/><text x="28" y="104" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Compare with the S&amp;P 500</text><text x="28" y="136" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >ready to ship.</text><text x="28" y="181" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >The split math matches a hand count</text><text x="28" y="212" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >and both lines start on the same</text><text x="28" y="243" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >day. Dividends are not counted yet.</text><text x="28" y="304" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">The moment</text><text x="28" y="336" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >Type a ticker and both lines start</text><text x="28" y="367" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >at 0% on the same day, so the gap is</text><text x="28" y="398" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >the whole story</text><text x="28" y="443" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Run</text><text x="28" y="475" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >npm run dev, then open</text><text x="28" y="506" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >http://localhost:5173/compare</text><text x="28" y="551" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Try first</text><text x="28" y="583" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >1) Type a ticker you hold and read</text><text x="28" y="614" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >the gap to the index</text><text x="28" y="655" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >2) Pick a stock that split two for</text><text x="28" y="686" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >one and check the split day shows no</text><text x="28" y="717" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >drop</text><text x="28" y="758" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >3) Pick a stock listed this year and</text><text x="28" y="789" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >see where both lines start</text><text x="28" y="850" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Must not break</text><text x="28" y="882" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >numbers passed (Percent change</text><text x="28" y="913" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >across a two-for-one split matches a</text><text x="28" y="944" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >hand count on 40 split cases, 0</text><text x="28" y="975" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >failing)</text><text x="28" y="1020" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#ffb000" font-weight="700">Review (claude-opus-5-5)</text><text x="28" y="1052" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >9 flagged, 7 fixed, 1 rejected, 1</text><text x="28" y="1083" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >deferred</text><text x="28" y="1128" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#ffb000" font-weight="700">Judge rounds</text><text x="28" y="1160" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >5 of 5 done, and the last word was</text><text x="28" y="1191" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >ready to ship</text><text x="28" y="1236" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Looked at</text><text x="28" y="1268" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >the code and how it behaves, the UI</text><text x="28" y="1299" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >and UX and whether it is ready to</text><text x="28" y="1330" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >ship</text><text x="28" y="1375" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Screen sizes</text><text x="28" y="1407" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >0 broken, 2 weak, 15 sizes and 148</text><text x="28" y="1438" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >elements checked</text><text x="28" y="1483" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Asks</text><text x="28" y="1515" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >9 of 9 closed</text><text x="28" y="1580" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Report</text><text x="28" y="1612" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >file:///Users/you/projects/</text><text x="28" y="1643" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >research-app/.100x/REPORT.html</text><text x="28" y="1688" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#a3acbb" font-weight="700">Next likely asks</text><text x="28" y="1720" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >Count dividends in the comparison;</text><text x="28" y="1751" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >Show the gap for several stocks in</text><text x="28" y="1782" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="22" fill="#eef1f6" >one table</text>
</svg>
diff --git a/docs/pipeline.md b/docs/pipeline.md
index 3de7526..eaf6f65 100644
--- a/docs/pipeline.md
+++ b/docs/pipeline.md
@@ -7,16 +7,24 @@ What each stage does, what `100x finish` proves, and the final message. Back to
`100x finish` prints this, and the agent sends it as its last message. It is short on purpose, and the report has the rest. The run here is made up, and the code printed the message.
```text
-Ledgerline: A cash flow forecast for a small business that shows how many months of runway are left. Verdict: ready to ship. The numbers add up to the cent and the first screen answers the question the owner came with. The second day is thin.
+Ledgerline: ready to ship.
+The numbers add up to the cent and the first screen answers the question the owner came with. The second day is thin.
+
The moment: Move a late invoice and the whole forecast redraws, with the low point marked
Run: npm run dev, then open http://localhost:5173
-Try first: 1) Open the sample business and read the months of runway 2) Move a late invoice back two weeks and watch the low point 3) Add a one-off expense of 12000
+Try first:
+1) Open the sample business and read the months of runway
+2) Move a late invoice back two weeks and watch the low point
+3) Add a one-off expense of 12000
+
Must not break: numbers passed (The balance after 24 months matches a hand-worked ledger to the cent on 5000 random invoice sets, 0 failing)
Review (claude-opus-5-5): 14 flagged, 11 fixed, 2 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 3 weak, 15 sizes and 212 elements checked
Asks: 6 of 6 closed
Work: 10 h of 10 h asked for, 14 rounds
+
Report: file:///Users/you/projects/ledgerline/.100x/REPORT.html
Next likely asks: Import invoices from a CSV file; Show a best case and a worst case
```
diff --git a/docs/using.md b/docs/using.md
index 50df9b1..818c392 100644
--- a/docs/using.md
+++ b/docs/using.md
@@ -23,6 +23,10 @@ To make it work for a set time, say so: "work for 10 hours", "work for 2 days",
When you come back, call `/100x-report`. The agent prints the ranking and opens the report page. Each run gets a line on what it is, and a run the judge held back lists the judge's reasons, with what became of each. Runs that have begun and not finished are listed under the ranking, with where each stands and the line that picks it up, and one nobody has touched for 90 minutes is marked idle. A page opened from a file cannot start anything, so there a card copies the command that runs its prototype. The page the agent serves has a Run button. It starts a prototype's dev server, opens it, and has a Stop button. A command line tool has no address to open, so its card still copies the command and says so. If an older gallery server is still running, the same command restarts it so you get the new page, and says what to stop first when a prototype is running in it. If something else already answers at a prototype's address, the card says it did not start the run and opens nothing, and a link opens that address anyway for when you know it is the one. A run whose record is damaged is left out, and the page says how many.
+## How 100x talks
+
+Every mode answers in the same short shape: the result on line 1, one idea per line, and one question last with a guess attached. Nothing is dropped to get there. Errors, numbers and commands stay, and anything risky is written out in full. Say `more` and the agent gives that answer in full, or `shorter` and the next ones come at half the length. The final message that `100x finish` prints has the same shape, with the verdict alone on its first line. For a slower talk, one question at a time, call `/100x-adhd`. The rules are in [`skills/100x/references/voice.md`](../skills/100x/references/voice.md).
+
## The helper skill
`unslop-text` is part of the workflow, not an extra. It keeps its own repository, docs and tests. 100x ships a pinned copy in `vendor/`, unchanged, so a fresh install works with no network, and runs it as `100x text`.
diff --git a/i18n/README.ar.md b/i18n/README.ar.md
index 1dae6e3..06a6714 100644
--- a/i18n/README.ar.md
+++ b/i18n/README.ar.md
@@ -141,15 +141,23 @@ FAIL inv:shares-keep-every-cent. a cent was lost or made. Steps: set-bill(1), s
<summary>الرسالة نفسها كنص عادي</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.bn.md b/i18n/README.bn.md
index 7d68236..bdc3706 100644
--- a/i18n/README.bn.md
+++ b/i18n/README.bn.md
@@ -139,15 +139,23 @@ FAIL inv:shares-keep-every-cent. a cent was lost or made. Steps: set-bill(1), s
<summary>একই বার্তা সাধারণ টেক্সটে</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.de.md b/i18n/README.de.md
index 61eed14..853350d 100644
--- a/i18n/README.de.md
+++ b/i18n/README.de.md
@@ -139,15 +139,23 @@ Wenn ein Agent „fertig“ sagt, berichtet er, woran er sich erinnert. 100x spe
<summary>Dieselbe Nachricht als reiner Text</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.es.md b/i18n/README.es.md
index 77d46c0..9bdfec2 100644
--- a/i18n/README.es.md
+++ b/i18n/README.es.md
@@ -139,15 +139,23 @@ Cuando un agente dice "listo", cuenta lo que recuerda. 100x guarda las pruebas s
<summary>El mismo mensaje como texto plano</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.fr.md b/i18n/README.fr.md
index 0a0ae0e..3288c9c 100644
--- a/i18n/README.fr.md
+++ b/i18n/README.fr.md
@@ -139,15 +139,23 @@ Quand un agent dit « terminé », il rapporte ce dont il se souvient. 100x gard
<summary>Le même message en texte brut</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.hi.md b/i18n/README.hi.md
index 676b618..51f9171 100644
--- a/i18n/README.hi.md
+++ b/i18n/README.hi.md
@@ -139,15 +139,23 @@ FAIL inv:shares-keep-every-cent. a cent was lost or made. Steps: set-bill(1), s
<summary>यही संदेश सादे टेक्स्ट में</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.id.md b/i18n/README.id.md
index 4241eac..2b47eba 100644
--- a/i18n/README.id.md
+++ b/i18n/README.id.md
@@ -139,15 +139,23 @@ Saat agen bilang "selesai", ia melaporkan apa yang diingatnya. 100x menyimpan bu
<summary>Pesan yang sama sebagai teks biasa</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.it.md b/i18n/README.it.md
index 2bc41b7..59e8c61 100644
--- a/i18n/README.it.md
+++ b/i18n/README.it.md
@@ -139,15 +139,23 @@ Quando un agente dice "fatto", riporta quello che ricorda. 100x salva le prove m
<summary>Lo stesso messaggio in testo semplice</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.ja.md b/i18n/README.ja.md
index 10ecb41..fe4790b 100644
--- a/i18n/README.ja.md
+++ b/i18n/README.ja.md
@@ -139,15 +139,23 @@ FAIL inv:shares-keep-every-cent. a cent was lost or made. Steps: set-bill(1), s
<summary>同じメッセージのプレーンテキスト</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.ko.md b/i18n/README.ko.md
index 3f34c1d..3c035b7 100644
--- a/i18n/README.ko.md
+++ b/i18n/README.ko.md
@@ -139,15 +139,23 @@ FAIL inv:shares-keep-every-cent. a cent was lost or made. Steps: set-bill(1), s
<summary>같은 메시지를 일반 텍스트로</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.nl.md b/i18n/README.nl.md
index dde58c3..da5adf9 100644
--- a/i18n/README.nl.md
+++ b/i18n/README.nl.md
@@ -139,15 +139,23 @@ Als een agent "klaar" zegt, meldt hij wat hij zich herinnert. 100x bewaart het b
<summary>Hetzelfde bericht als platte tekst</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.pl.md b/i18n/README.pl.md
index 8001d78..fb54979 100644
--- a/i18n/README.pl.md
+++ b/i18n/README.pl.md
@@ -139,15 +139,23 @@ Kiedy agent mówi „gotowe”, relacjonuje to, co pamięta. 100x na bieżąco z
<summary>Ta sama wiadomość jako zwykły tekst</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.pt.md b/i18n/README.pt.md
index 5797e24..b0e254f 100644
--- a/i18n/README.pt.md
+++ b/i18n/README.pt.md
@@ -139,15 +139,23 @@ Quando um agente diz "pronto", ele relata o que lembra. O 100x guarda as evidên
<summary>A mesma mensagem como texto simples</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.ru.md b/i18n/README.ru.md
index f489512..300eb08 100644
--- a/i18n/README.ru.md
+++ b/i18n/README.ru.md
@@ -139,15 +139,23 @@ FAIL inv:shares-keep-every-cent. a cent was lost or made. Steps: set-bill(1), s
<summary>То же сообщение обычным текстом</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.th.md b/i18n/README.th.md
index 28071a1..d3775cb 100644
--- a/i18n/README.th.md
+++ b/i18n/README.th.md
@@ -139,15 +139,23 @@ FAIL inv:shares-keep-every-cent. a cent was lost or made. Steps: set-bill(1), s
<summary>ข้อความเดียวกันแบบข้อความธรรมดา</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.tr.md b/i18n/README.tr.md
index 178eaca..9d7084d 100644
--- a/i18n/README.tr.md
+++ b/i18n/README.tr.md
@@ -139,15 +139,23 @@ Bir ajan "bitti" dediğinde aklında kalanı anlatır. 100x kanıtları ilerledi
<summary>Aynı mesaj düz metin olarak</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.uk.md b/i18n/README.uk.md
index 2a86655..ca691c0 100644
--- a/i18n/README.uk.md
+++ b/i18n/README.uk.md
@@ -139,15 +139,23 @@ FAIL inv:shares-keep-every-cent. a cent was lost or made. Steps: set-bill(1), s
<summary>Те саме повідомлення звичайним текстом</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.vi.md b/i18n/README.vi.md
index 0cd5a22..2112eac 100644
--- a/i18n/README.vi.md
+++ b/i18n/README.vi.md
@@ -139,15 +139,23 @@ Khi agent nói "xong rồi", nó báo lại những gì nó nhớ. 100x lưu b
<summary>Cùng thông điệp đó ở dạng văn bản thuần</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/i18n/README.zh.md b/i18n/README.zh.md
index b6edb99..4c8cf82 100644
--- a/i18n/README.zh.md
+++ b/i18n/README.zh.md
@@ -139,15 +139,23 @@ FAIL inv:shares-keep-every-cent. a cent was lost or made. Steps: set-bill(1), s
<summary>同一条消息的纯文本</summary>
```text
-Compare with the S&P 500: A chart in a research app that shows how any stock has moved against the S&P 500 since the first day both have prices. Verdict: ready to ship. The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+Compare with the S&P 500: ready to ship.
+The split math matches a hand count and both lines start on the same day. Dividends are not counted yet.
+
The moment: Type a ticker and both lines start at 0% on the same day, so the gap is the whole story
Run: npm run dev, then open http://localhost:5173/compare
-Try first: 1) Type a ticker you hold and read the gap to the index 2) Pick a stock that split two for one and check the split day shows no drop 3) Pick a stock listed this year and see where both lines start
+Try first:
+1) Type a ticker you hold and read the gap to the index
+2) Pick a stock that split two for one and check the split day shows no drop
+3) Pick a stock listed this year and see where both lines start
+
Must not break: numbers passed (Percent change across a two-for-one split matches a hand count on 40 split cases, 0 failing)
Review (claude-opus-5-5): 9 flagged, 7 fixed, 1 rejected, 1 deferred
-Judge rounds: 5 of 5 done, on the code and how it behaves, the UI and UX and whether it is ready to ship, and the last word was ready to ship
+Judge rounds: 5 of 5 done, and the last word was ready to ship
+Looked at: the code and how it behaves, the UI and UX and whether it is ready to ship
Screen sizes: 0 broken, 2 weak, 15 sizes and 148 elements checked
Asks: 9 of 9 closed
+
Report: file:///Users/you/projects/research-app/.100x/REPORT.html
Next likely asks: Count dividends in the comparison; Show the gap for several stocks in one table
```
diff --git a/lib/report.mjs b/lib/report.mjs
index c64fe62..8141af2 100644
--- a/lib/report.mjs
+++ b/lib/report.mjs
@@ -10,7 +10,7 @@ import { fileUrl, galleryFile } from './paths.mjs';
import { finalMatrix, readAsks, runRows, stateFile } from './project.mjs';
import { renderReportHtml } from './report-html.mjs';
import { modern } from './runfile.mjs';
-import { plural, sayWhat, verdictSay } from './text.mjs';
+import { plural, verdictSay } from './text.mjs';
// A judge that is the model that built the run shares its blind spots, and the report says so.
const reviewer = (review) => `${review.model}${review.solo ? ', the same model that built it. A solo run, so no other model looked' : review.sameAsBuilder ? ', the same model that built it' : ''}`;
@@ -28,6 +28,16 @@ const lastWord = (review) => (review.rounds.lastReady === null ? 'the judge did
const roundsDone = (review) => `${review.rounds.held} of ${review.rounds.planned} done, on ${listed([...new Set(review.rounds.lenses)])}${review.rounds.usual ? ` (this project's setting is lower than the usual ${review.rounds.usual})` : ''}`;
const roundsText = (review) => (review?.rounds ? `${roundsDone(review)}${review.rounds.lastReady === null ? ', with no last word from the judge' : `, and the last word was ${lastWord(review)}`}` : null);
const roundsLine = (review) => (roundsText(review) ? `Judge rounds: ${roundsText(review)}` : null);
+// In the chat the three things the judge looked at get a line of their own, so the line with the count and the last word stays short.
+const roundsChat = (review) => {
+ if (!review?.rounds) return [];
+ const { held, planned, lenses, usual, lastReady } = review.rounds;
+ const looked = listed([...new Set(lenses)]);
+ return [
+ `Judge rounds: ${held} of ${planned} done${usual ? ` (this project's setting is lower than the usual ${usual})` : ''}${lastReady === null ? ', with no last word from the judge' : `, and the last word was ${lastWord(review)}`}`,
+ ...(looked ? [`Looked at: ${looked}`] : []),
+ ];
+};
// The passes that ran against the number the owner usually asks for, so a run the clock cut short, or a project set to take fewer, says so.
function polishText(root, run) {
@@ -156,28 +166,40 @@ export function buildReport(root, run) {
return `${lines.join('\n')}\n`;
}
+// The final message is read in a few seconds, so it answers one question at a time, in blocks with a blank line between them: did it ship, what do I do,
+// what was checked, where is the rest. A list is one item a line. The pitch stays in the report and the gallery, which keep it for the reader who wants it.
export function chatSummary(entry) {
entry = modern(entry);
const m = entry.matrix;
const alerts = lookFirst(entry, m, mustNotBreakList(entry));
const { first, more } = shownReasons(reasonsFor(entry));
- const lines = [
- `${entry.title}: ${sayWhat(entry.pitch)} Verdict: ${verdictSay(entry.verdict)}. ${entry.verdictWhy}`,
- ...(alerts.length ? [`Look first: ${alerts.join('. ')}`] : []),
- ...(first.length ? [`Why not ready to ship: ${[...first.map((reason, i) => `${i + 1}) ${reasonText(reason, SHORT)}`), ...(more ? [`and ${more} more in the report`] : [])].join('; ')}`] : []),
- `The moment: ${bare(entry.moment)}`,
- `Run: ${entry.runCmd}${entry.url ? `, then open ${entry.url}` : ''}`,
- `Try first: ${entry.tryFirst.map((step, i) => `${i + 1}) ${bare(step)}`).join(' ')}`,
- ...mustNotBreakList(entry).map(checkLine),
- entry.review.status === 'reviewed'
- ? `Review (${reviewer(entry.review)}): ${reviewCounts(entry.review)}`
- : `Review: UNREVIEWED, ${bare(entry.review.note)}`,
- ...(roundsLine(entry.review) ? [roundsLine(entry.review)] : []),
- m ? `Screen sizes: ${m.totals.broken} broken, ${m.totals.weak} weak, ${plural(m.viewports, 'size')} and ${plural(m.examined, 'element')} checked` : `Screen sizes: ${entry.matrixSkipped ? `skipped, ${bare(entry.matrixSkipped)}` : 'not run'}`,
- ...(entry.asks.total ? [`Asks: ${entry.asks.closed} of ${entry.asks.total} closed`] : []),
- `Report: ${fileUrl(path.join(entry.path, '.100x', 'REPORT.html'))}`,
+ const list = (label, items) => (items.length ? [`${label}:`, ...items] : []);
+ const blocks = [
+ [
+ `${entry.title}: ${verdictSay(entry.verdict)}.`,
+ ...(entry.verdictWhy ? [entry.verdictWhy] : []),
+ ...(alerts.length ? [`Look first: ${alerts.join('. ')}`] : []),
+ ...list('Why not ready to ship', [...first.map((reason, i) => `${i + 1}) ${reasonText(reason, SHORT)}`), ...(more ? [`and ${more} more in the report`] : [])]),
+ ],
+ [
+ `The moment: ${bare(entry.moment)}`,
+ `Run: ${entry.runCmd}${entry.url ? `, then open ${entry.url}` : ''}`,
+ ...list('Try first', (entry.tryFirst ?? []).map((step, i) => `${i + 1}) ${bare(step)}`)),
+ ],
+ [
+ ...mustNotBreakList(entry).map(checkLine),
+ entry.review.status === 'reviewed'
+ ? `Review (${reviewer(entry.review)}): ${reviewCounts(entry.review)}`
+ : `Review: UNREVIEWED, ${bare(entry.review.note)}`,
+ ...roundsChat(entry.review),
+ m ? `Screen sizes: ${m.totals.broken} broken, ${m.totals.weak} weak, ${plural(m.viewports, 'size')} and ${plural(m.examined, 'element')} checked` : `Screen sizes: ${entry.matrixSkipped ? `skipped, ${bare(entry.matrixSkipped)}` : 'not run'}`,
+ ...(entry.asks.total ? [`Asks: ${entry.asks.closed} of ${entry.asks.total} closed`] : []),
+ ...(workLine(entry.work) ? [workLine(entry.work)] : []),
+ ],
+ [
+ `Report: ${fileUrl(path.join(entry.path, '.100x', 'REPORT.html'))}`,
+ ...(entry.nextAsks?.length ? [`Next likely asks: ${entry.nextAsks.slice(0, 3).join('; ')}${entry.nextAsks.length > 3 ? `; and ${entry.nextAsks.length - 3} more in the report` : ''}`] : []),
+ ],
];
- if (workLine(entry.work)) lines.splice(-1, 0, workLine(entry.work));
- if (entry.nextAsks?.length) lines.push(`Next likely asks: ${entry.nextAsks.slice(0, 3).join('; ')}${entry.nextAsks.length > 3 ? `; and ${entry.nextAsks.length - 3} more in the report` : ''}`);
- return lines.join('\n');
+ return blocks.filter((block) => block.length).map((block) => block.join('\n')).join('\n\n');
}
diff --git a/scripts/readme-diagrams.mjs b/scripts/readme-diagrams.mjs
index baba31b..96899e6 100644
--- a/scripts/readme-diagrams.mjs
+++ b/scripts/readme-diagrams.mjs
@@ -319,14 +319,21 @@ function finalMessage() {
const FW = 560;
b += `<path d="M${PAD} 66H${FW - PAD}" stroke="${C.edge}" stroke-width="1.5"/>`;
let y = 104;
- for (const line of text.split('\n')) {
- const cut = line.indexOf(': ');
- const label = line.slice(0, cut), rest = line.slice(cut + 2);
- const review = label.startsWith('Review') || label.startsWith('Judge rounds');
- b += mono(PAD, y, label, 22, review ? C.amber : C.muted, bold);
- y += 32;
- for (const part of wrap(rest, 36)) { b += mono(PAD, y, part, 22, C.text); y += 31; }
- y += 14;
+ for (const [index, line] of text.split('\n').entries()) {
+ // A blank line is the gap between two blocks. A numbered line and the reason on line 2 have no label, and a label with nothing after it heads the lines below.
+ if (line === '') { y += 20; continue; }
+ const item = /^\d+\) /.test(line) || index === 1 ? null : line.match(/^([^:]+):(?: (.*))?$/);
+ if (item) {
+ const [, label, rest = ''] = item;
+ const review = label.startsWith('Review') || label.startsWith('Judge rounds');
+ b += mono(PAD, y, label, 22, review ? C.amber : C.muted, bold);
+ y += 32;
+ for (const part of rest ? wrap(rest, 36) : []) { b += mono(PAD, y, part, 22, C.text); y += 31; }
+ if (rest) y += 14;
+ } else {
+ for (const part of wrap(line, 36)) { b += mono(PAD, y, part, 22, C.text); y += 31; }
+ y += 10;
+ }
}
return frame(y + 4, 'The final message of an illustrated run', text, b, FW);
}
diff --git a/scripts/readme-message.mjs b/scripts/readme-message.mjs
new file mode 100644
index 0000000..fd016d7
--- /dev/null
+++ b/scripts/readme-message.mjs
@@ -0,0 +1,43 @@
+// The final message of a made-up run appears as plain text in the README, in the 19 translated READMEs and in docs/pipeline.md. The code prints it, so
+// these copies are written from the code and never by hand, and test/readme.test.mjs fails when one of them differs.
+//
+// node scripts/readme-message.mjs write the message into every copy
+// node scripts/readme-message.mjs --check say which copies differ, and exit 1 when one does
+import fs from 'node:fs';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+import { chatSummary } from '../lib/report.mjs';
+import { LEDGERLINE, SAMPLE } from './readme-sample.mjs';
+
+export const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
+const escape = (text) => text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
+
+// Each file and the made-up run whose message it shows. The block is the text fence that starts with the run's title and a colon.
+export const COPIES = [
+ { file: 'README.md', run: SAMPLE },
+ ...fs.readdirSync(path.join(ROOT, 'i18n')).filter((name) => name.endsWith('.md')).sort().map((name) => ({ file: path.join('i18n', name), run: SAMPLE })),
+ { file: path.join('docs', 'pipeline.md'), run: LEDGERLINE },
+];
+
+const fence = (run) => new RegExp(`\`\`\`text\\n(${escape(run.title)}: [\\s\\S]*?)\\n\`\`\``);
+
+// What the file shows now, or null when it holds no such block.
+export const shown = ({ file, run }) => fs.readFileSync(path.join(ROOT, file), 'utf8').match(fence(run))?.[1] ?? null;
+
+export function write({ file, run }) {
+ const full = path.join(ROOT, file);
+ const text = fs.readFileSync(full, 'utf8');
+ if (!fence(run).test(text)) throw new Error(`${file} has no text block that starts with "${run.title}: "`);
+ fs.writeFileSync(full, text.replace(fence(run), () => `\`\`\`text\n${chatSummary(run)}\n\`\`\``));
+}
+
+if (process.argv[1] === fileURLToPath(import.meta.url)) {
+ const stale = COPIES.filter((copy) => shown(copy) !== chatSummary(copy.run));
+ if (process.argv.includes('--check')) {
+ for (const copy of stale) console.log(`${copy.file} shows an old message`);
+ process.exitCode = stale.length ? 1 : 0;
+ } else {
+ for (const copy of stale) write(copy);
+ console.log(`wrote the message into ${stale.length} of ${COPIES.length} files`);
+ }
+}
diff --git a/scripts/readme-sample.mjs b/scripts/readme-sample.mjs
index a211e15..c6a07f8 100644
--- a/scripts/readme-sample.mjs
+++ b/scripts/readme-sample.mjs
@@ -17,3 +17,23 @@ export const SAMPLE = {
path: '/Users/you/projects/research-app',
nextAsks: ['Count dividends in the comparison', 'Show the gap for several stocks in one table'],
};
+
+// The second made-up run, the one docs/pipeline.md shows next to the list of stages. It has a work clock and three weak screens, so the page shows
+// a message with the lines the first run does not have.
+export const LEDGERLINE = {
+ title: 'Ledgerline',
+ pitch: 'A cash flow forecast for a small business that shows how many months of runway are left.',
+ verdict: 'ship',
+ verdictWhy: 'The numbers add up to the cent and the first screen answers the question the owner came with. The second day is thin.',
+ moment: 'Move a late invoice and the whole forecast redraws, with the low point marked',
+ runCmd: 'npm run dev',
+ url: 'http://localhost:5173',
+ tryFirst: ['Open the sample business and read the months of runway', 'Move a late invoice back two weeks and watch the low point', 'Add a one-off expense of 12000'],
+ mustNotBreak: [{ kind: 'numbers', status: 'pass', summary: 'The balance after 24 months matches a hand-worked ledger to the cent on 5000 random invoice sets, 0 failing' }],
+ review: { status: 'reviewed', model: 'claude-opus-5-5', flags: 14, fixed: 11, rejected: 2, deferred: 1, rounds: { held: 5, planned: 5, lenses: ['the code and how it behaves', 'the code and how it behaves', 'the UI and UX', 'the UI and UX', 'whether it is ready to ship'], lastReady: true } },
+ matrix: { totals: { broken: 0, weak: 3 }, viewports: 15, examined: 212 },
+ asks: { closed: 6, total: 6 },
+ work: { minutes: 600, totalMinutes: 600, rounds: 14 },
+ path: '/Users/you/projects/ledgerline',
+ nextAsks: ['Import invoices from a CSV file', 'Show a best case and a worst case'],
+};
diff --git a/skills/100x-adhd/SKILL.md b/skills/100x-adhd/SKILL.md
index f6c6baf..178da39 100644
--- a/skills/100x-adhd/SKILL.md
+++ b/skills/100x-adhd/SKILL.md
@@ -11,7 +11,7 @@ metadata:
# ADHD
-A conversation in small turns, for a reader who loses the thread in long messages. It works for anyone who wants it short. You answer in a few lines, ask one question and wait. Stay in this shape until the owner says stop or calls another skill.
+A conversation in small turns, for a reader who loses the thread in long messages. It works for anyone who wants it short. You answer in a few lines, ask one question and wait. Stay in this shape until the owner says stop or calls another skill. It is the voice of `100x ref voice` at its smallest: the same shape, held to three points and one question.
Done when the owner has what they came for: an answer, a decision, or a brief they said go to. Then one line says what was settled and what comes next.
diff --git a/skills/100x-bakeoff/SKILL.md b/skills/100x-bakeoff/SKILL.md
index 025b0a4..702a69c 100644
--- a/skills/100x-bakeoff/SKILL.md
+++ b/skills/100x-bakeoff/SKILL.md
@@ -17,6 +17,8 @@ Two arms, `skill-off` and `skill-on`, make the same briefs under the same model
Done when `100x eval bakeoff score` has written `report.md`, the report sits in `docs/evals/` with a picture of each pair, and the reply carries the counts and the verdict line of `score` word for word, and every caution under it. A report that says "not shown" is a finished bake-off.
+Messages to the owner follow `100x ref voice`: the answer first, one idea per line, one question last, every fact kept.
+
## Steps
1. The helper. `100x helper models` is the check: it lists the model ids, or says why it cannot. `The Cursor SDK is not installed. Run `100x helper setup` once.` means run `100x helper setup`. `The Cursor SDK has no valid login.` means run `100x helper login` once, which opens a browser to approve this machine, or set `CURSOR_API_KEY`. Run the one it names and `100x helper models` again, and do not go on until it lists models. When it still cannot, stop with the line it printed and the one step that is the owner's, which is the login. The pairs step photographs every page, so `100x eval bakeoff init` prints a Browsers line when no Chromium is installed. Run `100x browsers` before any arm starts, not after.
diff --git a/skills/100x-continue/SKILL.md b/skills/100x-continue/SKILL.md
index 452764e..c80b963 100644
--- a/skills/100x-continue/SKILL.md
+++ b/skills/100x-continue/SKILL.md
@@ -15,6 +15,8 @@ Pick up the unfinished run in this folder. Nothing new is planned and nothing is
Done when the run is back at work from its last true state, or you told the owner in one line why there is nothing to pick up.
+Messages to the owner follow `100x ref voice`: the answer first, one idea per line, one question last, every fact kept.
+
## Steps
1. Run `100x status`. Read `.100x/STATE.md`, `.100x/project.md` (the asks, the moment, the modifiers, and its rules and do-nots when it has them), the last ten rows of `.100x/decisions.tsv` and `git log --oneline -10`.
diff --git a/skills/100x-grind/SKILL.md b/skills/100x-grind/SKILL.md
index 055f1fe..f6166e9 100644
--- a/skills/100x-grind/SKILL.md
+++ b/skills/100x-grind/SKILL.md
@@ -17,6 +17,8 @@ The green light is a ship test (the last lens, over everything) where the judge
Done when `100x triage` said Green light and `100x finish` accepted the run. Or the grind stopped on a stall, the round limit or the clock, the final message says which in plain words, and the run is finished that way.
+Messages to the owner follow `100x ref voice`: the answer first, one idea per line, one question last, every fact kept.
+
## Steps
1. Read the message and `100x status`. A solo run (`run.json` says mode solo) cannot grind, because the green light has to come from a fresh judge and this model cannot be one. Say so in one line and stop.
diff --git a/skills/100x-judge/SKILL.md b/skills/100x-judge/SKILL.md
index 5897406..0f2bfd1 100644
--- a/skills/100x-judge/SKILL.md
+++ b/skills/100x-judge/SKILL.md
@@ -19,6 +19,8 @@ In a solo run (`run.json` says mode solo) no second model starts, so skip steps
Done when `100x triage` says all rounds are done, every accepted finding is fixed and re-checked, and the run is marked reviewed, or it is UNREVIEWED with the reason.
+Messages to the owner follow `100x ref voice`: the answer first, one idea per line, one question last, every fact kept.
+
The same judge also sits in every loop, not only here. Each polish pass and each fill round asks a fresh judge the brutal question through `100x review-call --loop <name>`, with the ask at `.100x/loops/<name>/ask.md` and the answers at `answers.md`. The polish and fill references say when. Start and wait for a loop judge exactly as in steps 5 and 6 below, with the loop's 20 minute deadline. A loop judge adapts to its loop: it judges what a user sees with its eyes on the single screenshots and never from code, runs flows end to end, and tests numbers with its own inputs. Its first line says how it judged.
## Steps, once per round
diff --git a/skills/100x-mockup/SKILL.md b/skills/100x-mockup/SKILL.md
index 4cc1191..0eccbb8 100644
--- a/skills/100x-mockup/SKILL.md
+++ b/skills/100x-mockup/SKILL.md
@@ -17,6 +17,8 @@ Only one thing has to really work: the moment. Everything else can be fake, stat
Done when it runs from one command, you have looked at its screenshots, `MOCKUP.md` says whether the idea holds, it is committed, and `100x finish` has accepted the run, so it shows on the report page. Aim for 15 minutes, never past 30.
+Messages to the owner follow `100x ref voice`: the answer first, one idea per line, one question last, every fact kept.
+
## Steps
1. Model. `100x config target quick`. When it prints a model and your app shows this thread on another model or a lower effort, say so in one plain line and carry on. Never switch or wait.
diff --git a/skills/100x-overnight/SKILL.md b/skills/100x-overnight/SKILL.md
index a5a31db..f93c39e 100644
--- a/skills/100x-overnight/SKILL.md
+++ b/skills/100x-overnight/SKILL.md
@@ -15,6 +15,8 @@ Nobody answers until morning, so every run has to finish or end in a stated bloc
Done when every brief has a finished run or a stated block, the watchdog is deleted, and the final message is the ranking from the `100x-report` skill. With fill, no run finishes before the work time is over.
+Messages to the owner follow `100x ref voice`: the answer first, one idea per line, one question last, every fact kept.
+
## Steps
1. Briefs. Split what the owner wrote into separate ideas. Wake time from the owner's words. With none, use 07:00 and log it. Never ask what a brief means: take the most reasonable reading and log it. With no brief at all there is nothing to read, so ask for one and start nothing until it comes. A length of work ("work for 10 hours", "use all night") means use all of it, called fill. The wake time is then that length from now.
diff --git a/skills/100x-report/SKILL.md b/skills/100x-report/SKILL.md
index 36180ce..9bb5e07 100644
--- a/skills/100x-report/SKILL.md
+++ b/skills/100x-report/SKILL.md
@@ -17,6 +17,8 @@ The owner comes back to several prototypes and decides in minutes which deserve
Done when the reply has the ranking, what each run is, the reasons for every run the judge held back, every run still in progress, and the page path or URL, and every claim in the reply matches a registry entry.
+Messages to the owner follow `100x ref voice`: the answer first, one idea per line, one question last, every fact kept.
+
## Steps
1. Run `100x morning`. It prints the ranking, best verdict first, and writes `~/.100x/morning/index.html`. The command is yours: the owner calls this skill, and you never tell them to run it.
diff --git a/skills/100x-setup/SKILL.md b/skills/100x-setup/SKILL.md
index 2ffd19a..dd4bc91 100644
--- a/skills/100x-setup/SKILL.md
+++ b/skills/100x-setup/SKILL.md
@@ -17,7 +17,7 @@ Done when `100x config validate` is clean and the reply shows the jobs as saved,
## Voice
-Shortest possible. One idea per line, no paragraphs, no preamble. Use the phrases in `100x ref words`. Never show a config key, a setting value or a model id to the owner. Show a model by the name the owner used or the app's list gives, like "Sonnet" or "Opus". Say "judge", not "reviewer". Say "this chat", never "thread". A job with no model of its own shows the model in this chat by name, like "Overnight: Sonnet, same as this chat". Say "max", "extra high" or "high" for effort. Keys and ids appear only in the commands you run.
+Shortest possible. One idea per line, no paragraphs, no preamble. Use the phrases in `100x ref words`. Never show a config key, a setting value or a model id to the owner. Show a model by the name the owner used or the app's list gives, like "Sonnet" or "Opus". Say "judge", not "reviewer". Say "this chat", never "thread". A job with no model of its own shows the model in this chat by name, like "Overnight: Sonnet, same as this chat". Say "max", "extra high" or "high" for effort. Keys and ids appear only in the commands you run. The whole voice is in `100x ref voice`.
## Steps
diff --git a/skills/100x-solo/SKILL.md b/skills/100x-solo/SKILL.md
index 6b60d04..9ddfa8f 100644
--- a/skills/100x-solo/SKILL.md
+++ b/skills/100x-solo/SKILL.md
@@ -17,6 +17,8 @@ This is weaker than a second model, and the run says so. A builder cannot see al
Done when `100x finish` has accepted the run, every challenge file passes `100x solo check`, every round and loop file holds its suspicions, and the final message says that no other model looked.
+Messages to the owner follow `100x ref voice`: the answer first, one idea per line, one question last, every fact kept.
+
## What changes from `100x`
- **No one else starts.** No subagent, helper, child or judge, for any reason. Where any guide says to start a judge, a backup judge, a fallback or a child, a challenge takes that step instead. Not the Task tool, `100x helper`, `100x review-run`, `100x night`, `claude -p`, `codex exec`, `cursor-agent` or a browser subagent. Tools are fine. Handing work to another model is not. The first three refuse in a solo run, `100x run unset mode` refuses too (the flag is one way), and `100x finish` refuses a run that started one.
diff --git a/skills/100x-status/SKILL.md b/skills/100x-status/SKILL.md
index ea2f034..f00675f 100644
--- a/skills/100x-status/SKILL.md
+++ b/skills/100x-status/SKILL.md
@@ -13,6 +13,8 @@ metadata:
The owner asks where we are at with this project. Answer short, always in this shape. Nothing builds, nothing is asked back unless one line at the end names the one decision waiting on the owner.
+Messages to the owner follow `100x ref voice`: the answer first, one idea per line, one question last, every fact kept.
+
## Steps
1. Run `100x status`. Read `.100x/STATE.md` and the last five lines of `.100x/decisions.tsv`. `git log --oneline -5`. Its Stage, Next and Risks lines are cut short, and a State line means STATE.md is behind the log, so trust the log and the commits over the file.
diff --git a/skills/100x-wrapup/SKILL.md b/skills/100x-wrapup/SKILL.md
index 1104c94..060e1bb 100644
--- a/skills/100x-wrapup/SKILL.md
+++ b/skills/100x-wrapup/SKILL.md
@@ -17,6 +17,8 @@ Working beats finished. By the deadline one path runs from a clean start, everyt
Done when a fresh checkout of the branch installs and starts with the written command, the one path ran once with its output kept, `WRAPUP.md` is written, and the work is committed and tagged `100x/wrapup`, with at least 10 percent of the time to spare.
+Messages to the owner follow `100x ref voice`: the answer first, one idea per line, one question last, every fact kept.
+
## Steps
1. Model. `100x config target quick`. If it names a model (`{}` means this thread's own model, so there is nothing to compare) and this thread runs another or a lower effort, say so in one plain line and carry on.
diff --git a/skills/100x/SKILL.md b/skills/100x/SKILL.md
index 765118c..231f3cc 100644
--- a/skills/100x/SKILL.md
+++ b/skills/100x/SKILL.md
@@ -26,9 +26,9 @@ One thread, one run, one prototype worth keeping. The owner starts many projects
- **Real art.** Treat gray boxes, emoji icons and stock placeholders as unfinished work. See `references/polish.md`.
- **No rework.** The final message ends the work. Build or list the likely next asks before you finish.
- **Quiet machine.** Never play audio on this machine. Mute every browser you drive.
-- **Plain words.** The owner reads your messages. Never show a setting name, a setting value or an internal stage name as if it were English. Say "one careful test of the one thing that must not break", not `after-polish`. `references/words.md` has the phrase for each. Keep messages short, one idea per line.
-- **Short answers.** Answer in a few lines: at most three points, one idea per line, and one question at a time when you must ask. A status answer is at most six lines, in the shape of the `100x-status` skill. The `100x-adhd` skill holds a whole thread to this shape.
-- **Short, never thin.** Progress notes are one line. No preamble, no recap of what the owner just said, no pasted code or file dumps: name the file and line instead. A final summary says what changed, what failed and what is left. Cut words, never facts: keep every error, trade-off, uncertainty and exact name, value, command or number that matters. Brevity never replaces a check, and a short message never hides a failure. This holds for every mode and for the messages you write to helpers and judges.
+- **Plain words.** The owner reads your messages. Never show a setting name, a setting value or an internal stage name as if it were English. Say "one careful test of the one thing that must not break", not `after-polish`. `references/words.md` has the phrase for each.
+- **Voice.** Short and easy to scan, in every mode. The answer is on line 1, one idea per line, at most three points, and the one question comes last with your guess attached. A status answer is at most six lines, in the shape of the `100x-status` skill. `references/voice.md` has the whole shape, what is written out in full, and how the owner steers it with `more` and `shorter`. The `100x-adhd` skill holds a whole thread to a smaller shape still.
+- **Short, never thin.** No pasted code or file dumps: name the file and line instead. A final summary says what changed, what failed and what is left. Cut words, never facts: keep every error, trade-off, uncertainty and exact name, value, command or number that matters. Brevity never replaces a check, and a short message never hides a failure. This holds for every mode and for the messages you write to helpers and judges.
## Modes are skills
diff --git a/skills/100x/references/open.md b/skills/100x/references/open.md
index 1a53d65..45d0edd 100644
--- a/skills/100x/references/open.md
+++ b/skills/100x/references/open.md
@@ -12,4 +12,4 @@ Modifiers. `3 versions` runs `100x config set variants.count 3 --local` and read
## Step 8. The pre-flight
-Send the pre-flight, at most 12 lines, and keep working. One line each for the goal in your words, the number of asks, the moment, the riskiest unknown, the one thing that must not break, the number phrases in effect, and the time it takes. That is seven lines. The must-not-break line also says what will be checked, so the owner sees it before the build: when property checks are on, how many properties the plan holds and that they are checked and recorded in `verify/ledger.tsv` by stage 5 ("4 properties, checked at stage 5"), or `none` with the reason and that the code will be waived with `100x verify waive`; when they are off, "property checks off, nothing verified". The time line lets the owner pick the commitment before the run takes it: a normal run takes hours, because every polish pass and every round of judging is another model at work, and `100x-mockup` is the fast way, about fifteen minutes and no judges. A grind has no end time, and its time line says what stops it. Then the assumptions, at most three, one per line. Then one or two "call X to change Y" lines, and `100x-setup` for the models and their jobs is always one of them. That makes 12 lines at most, so a model line, when one applies, takes the place of the third assumption. When `100x config target builder` prints a model (`{}` means this thread's own model, so there is nothing to compare) and your app shows this thread on another model or a lower effort, say so and which model the owner prefers, then carry on without waiting. When `100x doctor --json` shows the `judge` check as a warning because the judge is the model that builds, the model line says that too: the review would be a self-review, and `100x-setup` changes it. The watchdog line (`references/watchdog.md`) joins the number phrases line. Paste the sent lines under `## Pre-flight` in `.100x/project.md`.
+Send the pre-flight, at most 12 lines, and keep working. Start every line with its label (`Goal:`, `Asks:`, `Moment:`, `Riskiest:`, `Must not break:`, `Phrases:`, `Time:`, `Assuming:`, and `Call` for the lines that say what to call) so the eye finds a line without reading the rest. One line each for the goal in your words, the number of asks, the moment, the riskiest unknown, the one thing that must not break, the number phrases in effect, and the time it takes. That is seven lines. The must-not-break line also says what will be checked, so the owner sees it before the build: when property checks are on, how many properties the plan holds and that they are checked and recorded in `verify/ledger.tsv` by stage 5 ("4 properties, checked at stage 5"), or `none` with the reason and that the code will be waived with `100x verify waive`; when they are off, "property checks off, nothing verified". The time line lets the owner pick the commitment before the run takes it: a normal run takes hours, because every polish pass and every round of judging is another model at work, and `100x-mockup` is the fast way, about fifteen minutes and no judges. A grind has no end time, and its time line says what stops it. Then the assumptions, at most three, one per line. Then one or two "call X to change Y" lines, and `100x-setup` for the models and their jobs is always one of them. That makes 12 lines at most, so a model line, when one applies, takes the place of the third assumption. When `100x config target builder` prints a model (`{}` means this thread's own model, so there is nothing to compare) and your app shows this thread on another model or a lower effort, say so and which model the owner prefers, then carry on without waiting. When `100x doctor --json` shows the `judge` check as a warning because the judge is the model that builds, the model line says that too: the review would be a self-review, and `100x-setup` changes it. The watchdog line (`references/watchdog.md`) joins the number phrases line. Paste the sent lines under `## Pre-flight` in `.100x/project.md`.
diff --git a/skills/100x/references/profile.default.md b/skills/100x/references/profile.default.md
index c219fbc..056c23f 100644
--- a/skills/100x/references/profile.default.md
+++ b/skills/100x/references/profile.default.md
@@ -7,7 +7,7 @@ Used when `~/.100x/profile.md` does not exist. The installer copies this file th
- Starts many projects and keeps the ones that prototype well. The first version has to be impressive.
- Drives direction. Rarely reports bugs, so correctness on the one important thing matters more than breadth of testing.
- Wants less back and forth. A run that finishes beats a run that asks.
-- Reads short messages. Assume ADHD. Lists over paragraphs, one idea per line, no preamble.
+- Reads short messages. Assume ADHD. Lists over paragraphs, one idea per line, no preamble. `references/voice.md` has the shape.
- Reads plain language. Never show a setting name or value such as `after-polish` in a message to the owner. `references/words.md` has the phrases.
## Iteration axes, most repeated first
diff --git a/skills/100x/references/voice.md b/skills/100x/references/voice.md
new file mode 100644
index 0000000..bf0050a
--- /dev/null
+++ b/skills/100x/references/voice.md
@@ -0,0 +1,60 @@
+# Voice
+
+How 100x talks to the owner, in every mode. The owner reads in seconds and can lose the thread in a wall of text, so each message is built for the eye first.
+
+This changes the shape of a message and never its facts. Every error, number, name, command, trade-off and doubt stays.
+
+## The shape
+
+1. **Answer first.** Line 1 is the result: the verdict, the state, the yes or no. The reason comes second, and the story only when asked for.
+2. **One idea per line.** Short lines. A list beats a paragraph. A normal reply has at most three points and about six lines. With more to say, give the top three and end with "Say `more` for the rest."
+3. **Label, then value.** A result reads `Label: value`, as in the final message. A number sits beside what it counts: "3 of 5 done".
+4. **The ask goes last.** When you need the owner, the final line is one question with your best guess attached, so "yes" is enough. Real options get numbers, two or three, and the one you would pick is marked. Never two questions in one message.
+5. **Say what comes next.** A status ends with the next step, what waits on the owner, or "nothing waits".
+6. **One bold phrase at most**, on the thing the owner has to act on.
+
+## What to cut
+
+Openers ("sure", "great", "happy to"), a recap of what the owner just said, "I will now", hedges that decide nothing, apologies, sign-offs, and the same point said twice. A clipped fragment is fine where it reads cleanly. Where a plain sentence reads faster, write the sentence.
+
+## During a run
+
+- A progress note is one line: what is done and what comes next.
+- Before anything that takes more than a minute (a judge, a build, a deploy), one line says what runs, about how long, and what you do meanwhile. Then stay quiet until it ends.
+- After a gap (a resumed run, a new message after long work) the first line says where things stand.
+- A tangent, yours or the owner's: one line, "Parked: <it>", and carry on. Read the parked lines back at the next pause.
+
+## Write it out in full
+
+A short message is wrong when it can be misread. Use full sentences, then go back to the short voice, for:
+
+- Anything irreversible, costly or unsafe: a delete, a push, a live deploy, spending money, a secret.
+- A failure. Give the exact error and what it means. Never swap it for a softer word.
+- Steps where the order matters.
+- Anything the owner has already answered once and got wrong.
+
+## What stays as it is
+
+Code, commit messages, files in the repo, the report and `project.md` keep full prose. So do the briefs written for judges and helpers: whole sentences and all the context, because that reader has none of this chat. Cut the filler there too, never a fact.
+
+## The owner steers
+
+The owner changes the voice with words and nothing else. There is no setting.
+
+- `more`, or "explain": full prose for that answer.
+- `shorter`: the next messages come at half the length.
+- A request for long answers stands until the owner takes it back.
+
+## Examples
+
+| Wall | Short |
+|---|---|
+| I have now finished the second of the three polish passes. I ran the screen size check across every viewport and fixed the three clipped buttons I found, and next I am going to ask the judge to look at the screenshots. | Polish pass 2 of 3 done. 3 clipped buttons fixed, all screen sizes checked. Next: the judge looks at the screenshots. |
+| Unfortunately something went wrong when I tried to start the dev server. It failed on port 5173 with an EADDRINUSE error, which means that port is already in use, so I will try again on port 5188. | Dev server failed on port 5173: EADDRINUSE, the port is in use. Retrying on 5188. |
+| I am not sure what you mean by gallery. It might be a photo gallery app, or it might be the report page of what finished, so could you clarify what you would like me to do? | Not sure what `gallery` means: the report of what finished, or a photo gallery app? I would guess the report. |
+| Now I will go ahead and start the judge and then wait for it to finish. It usually takes about 15 minutes, so meanwhile I will check the README links, and I will let you know when the results are back. | Judge started, about 15 minutes. Meanwhile: the README links check. Results next. |
+| The work is complete and all 42 of the tests are passing now, so the feature is ready for you to try whenever you like. You can start it with npm run dev and open the /compare page. | Done. 42 tests pass. Try it: `npm run dev`, then open /compare. |
+
+## The limit
+
+This is guidance, and a model can ignore it. Code enforces one part: the layout of the final message that `100x finish` prints, with the verdict alone on line 1. The `100x-adhd` skill adds its own rules on top of this one: three points, one question, then wait.
diff --git a/test/finish.test.mjs b/test/finish.test.mjs
index f688135..6119fe2 100644
--- a/test/finish.test.mjs
+++ b/test/finish.test.mjs
@@ -12,7 +12,8 @@ test('finish closes a valid run, writes the report and registers it once', () =>
makeProject(box);
const done = finish(box);
assert.equal(done.code, 0, done.err + done.out);
- assert.match(done.out, /Glow: A thing that glows\. Verdict: ready to ship\./);
+ assert.match(done.out, /^Glow: ready to ship\.\n[^\n]+\n/, 'the verdict is alone on line 1, and the reason follows on line 2');
+ assert.doesNotMatch(done.out, /A thing that glows/, 'the pitch is on the report page, and the chat message leaves it there');
assert.match(done.out, /\nIt is on the report page with every finished run\. Call `100x-report` to open that page\.\n?$/);
assert.doesNotMatch(done.out, /100x morning/, 'the owner does not say morning, so the message never tells them to');
assert.match(done.out, /Asks: 2 of 2 closed\n/);
@@ -36,7 +37,7 @@ test('a run.json from before the verdict and moment words changed still finishes
makeProject(box, { run: legacy });
const done = finish(box);
assert.equal(done.code, 0, done.err + done.out);
- assert.match(done.out, /Glow: A thing that glows\. Verdict: ready to ship\./);
+ assert.match(done.out, /^Glow: ready to ship\.\n/);
assert.match(done.out, /\nThe moment: The first tap lights the whole screen\n/);
const run = JSON.parse(fs.readFileSync(path.join(box.project, '.100x', 'run.json'), 'utf8'));
assert.equal(run.verdict, 'ship');
diff --git a/test/flow.test.mjs b/test/flow.test.mjs
index 74f2736..778ba90 100644
--- a/test/flow.test.mjs
+++ b/test/flow.test.mjs
@@ -86,7 +86,7 @@ test('the whole agent sequence works on a fixture project, from init to the morn
const finish = run('finish');
ok(finish, 'finish');
assert.match(finish.out, /Glow/);
- assert.match(finish.out, /Judge rounds: 2 of 2 done, on the code and how it behaves and whether it is ready to ship, and the last word was ready to ship\n/);
+ assert.match(finish.out, /Judge rounds: 2 of 2 done, and the last word was ready to ship\nLooked at: the code and how it behaves and whether it is ready to ship\n/);
assert.ok(fs.existsSync(dot('REPORT.md')));
assert.ok(fs.existsSync(dot('REPORT.html')));
assert.match(finish.out, /Report: file:\/\/.*\/\.100x\/REPORT\.html/);
diff --git a/test/readme.test.mjs b/test/readme.test.mjs
index 3a20821..760d785 100644
--- a/test/readme.test.mjs
+++ b/test/readme.test.mjs
@@ -9,6 +9,7 @@ import { pageStamp, pictureStamp, readStamp } from '../scripts/readme-stamp.mjs'
import { ROOT, sandbox } from './helpers.mjs';
import { SAMPLE } from '../scripts/readme-sample.mjs';
+import { COPIES, shown } from '../scripts/readme-message.mjs';
test('the final message in the README is the one the code prints', () => {
const readme = fs.readFileSync(path.join(ROOT, 'README.md'), 'utf8');
@@ -17,6 +18,11 @@ test('the final message in the README is the one the code prints', () => {
assert.equal(block, chatSummary(SAMPLE));
});
+test('every copy of the final message, in the README, its 19 translations and docs/pipeline.md, is the one the code prints', () => {
+ assert.ok(COPIES.length >= 21, 'the README, the 19 translations and the pipeline page');
+ for (const copy of COPIES) assert.equal(shown(copy), chatSummary(copy.run), `${copy.file} shows an old message. Run node scripts/readme-message.mjs`);
+});
+
test('the picture of the final message says exactly what the code prints', () => {
const svg = fs.readFileSync(path.join(ROOT, 'docs', 'img', 'diagrams', 'final-message.svg'), 'utf8');
const desc = svg.match(/<desc id="d">([\s\S]*?)<\/desc>/)?.[1]?.replace(/&lt;/g, '<').replace(/&amp;/g, '&');
diff --git a/test/report-page.test.mjs b/test/report-page.test.mjs
index 543415c..c1997f8 100644
--- a/test/report-page.test.mjs
+++ b/test/report-page.test.mjs
@@ -24,7 +24,7 @@ test('a failing check is the first thing after the verdict in the message, the r
makeProject(box, { run: runJson(FAILING), checkFiles: FAILING_OUTPUT });
const done = finish(box);
assert.equal(done.code, 0, done.err + done.out);
- assert.match(done.out, /Verdict: fine\. [^\n]*\nLook first: Numbers check FAILED\nThe moment:/);
+ assert.match(done.out, /^Glow: fine\.\n[^\n]+\nLook first: Numbers check FAILED\n\nThe moment:/);
assert.match(read(box, 'REPORT.md'), /Verdict: fine\. [^\n]*\n\nLook first: Numbers check FAILED\n\nThe moment:/);
const page = read(box, 'REPORT.html');
assert.match(page, /<section class="alert" id="look-first" role="note" aria-label="Look first"><ul><li>Numbers check FAILED<\/li><\/ul><\/section>/, 'the red block starts with its first line, and its name is for a screen reader, because the pill above already says it');
@@ -52,7 +52,7 @@ test('a judge that said not ready to ship is the first thing the report says, ev
makeProject(box, { findings: FINDINGS.replace('Ready to ship: yes', 'Ready to ship: no') });
const done = finish(box);
assert.equal(done.code, 0, done.err + done.out);
- assert.match(done.out, /Verdict: ready to ship\. [^\n]*\nLook first: The judge said NOT ready to ship\nWhy not ready to ship: 1\) Upgrade button clipped at 320px \(fixed, not checked again\)\nThe moment:/);
+ assert.match(done.out, /^Glow: ready to ship\.\n[^\n]+\nLook first: The judge said NOT ready to ship\nWhy not ready to ship:\n1\) Upgrade button clipped at 320px \(fixed, not checked again\)\n\nThe moment:/);
assert.match(read(box, 'REPORT.md'), /Verdict: ready to ship\. [^\n]*\n\nLook first: The judge said NOT ready to ship\n\nWhy not ready to ship:\n\n- Upgrade button clipped at 320px \(fixed, not checked again\)\n\nThe moment:/);
const page = read(box, 'REPORT.html');
assert.match(page, /<span class="chip dud">Not ready to ship<\/span>1 of 1 done/);
@@ -70,7 +70,7 @@ test('a judge that refused for many reasons gets three in the message and the re
makeProject(box, { findings, triage });
const done = finish(box);
assert.equal(done.code, 0, done.err + done.out);
- assert.match(done.out, /\nWhy not ready to ship: 1\) Reason number 2 \(left for later\); 2\) Reason number 3 \(left for later\); 3\) Reason number 4 \(left for later\); and 2 more in the report\n/, 'what still stands comes first, and the fixed one is among the rest');
+ assert.match(done.out, /\nWhy not ready to ship:\n1\) Reason number 2 \(left for later\)\n2\) Reason number 3 \(left for later\)\n3\) Reason number 4 \(left for later\)\nand 2 more in the report\n/, 'what still stands comes first, and the fixed one is among the rest');
assert.equal([...read(box, 'REPORT.md').matchAll(/^- Reason number \d/gm)].length, 5, 'the markdown report lists all five');
const page = read(box, 'REPORT.html');
assert.equal([...page.slice(page.indexOf('class="reasons"'), page.indexOf('<h2>The moment</h2>')).matchAll(/<li>Reason number \d/g)].length, 5, 'and so does the page');
@@ -85,7 +85,7 @@ test('a report whose reasons all ended the same way says it once under them', ()
const done = finish(box);
assert.equal(done.code, 0, done.err + done.out);
assert.match(read(box, 'REPORT.html'), /<li>The judge said NOT ready to ship<ul class="reasons" aria-label="Why not ready to ship"><li>Reason number 1<\/li><li>Reason number 2<\/li><li>Reason number 3<\/li><\/ul><p class="state left">All 3 reasons were left for later\.<\/p><\/li>/);
- assert.match(done.out, /\nWhy not ready to ship: 1\) Reason number 1 \(left for later\); 2\) Reason number 2 \(left for later\); 3\) Reason number 3 \(left for later\)\n/, 'the message is plain text and keeps its own words on each reason');
+ assert.match(done.out, /\nWhy not ready to ship:\n1\) Reason number 1 \(left for later\)\n2\) Reason number 2 \(left for later\)\n3\) Reason number 3 \(left for later\)\n/, 'the message is plain text and keeps its own words on each reason');
box.cleanup();
});
diff --git a/test/rounds.test.mjs b/test/rounds.test.mjs
index 738c7f2..189255d 100644
--- a/test/rounds.test.mjs
+++ b/test/rounds.test.mjs
@@ -119,7 +119,7 @@ test('finish waits for the planned rounds, and a clock with no room for another
const warned = run(box, 'finish');
assert.equal(warned.code, 0, warned.err + warned.out);
assert.match(warned.out, /warn\s+the judge held 1 of 3 rounds\. The clock had no room for round 2/);
- assert.match(warned.out, /Judge rounds: 1 of 3 done, on the code and how it behaves,/);
+ assert.match(warned.out, /Judge rounds: 1 of 3 done, .*\nLooked at: the code and how it behaves,/);
box.cleanup();
});
@@ -131,7 +131,7 @@ test('a run under lite says it took fewer passes and rounds than the usual, even
run(box, 'clock', 'set', '+12m');
const done = run(box, 'finish');
assert.equal(done.code, 0, done.err + done.out);
- assert.match(done.out, /Judge rounds: 1 of 2 done, .* \(this project's setting is lower than the usual 5\)/);
+ assert.match(done.out, /Judge rounds: 1 of 2 done \(this project's setting is lower than the usual 5\), .*\nLooked at: /);
assert.match(fs.readFileSync(dot(box, 'REPORT.md'), 'utf8'), /1 of 3/, 'the report says one polish pass of the usual three');
box.cleanup();
});
@@ -142,7 +142,7 @@ test('a project setting that asks for fewer judge rounds than the owner usually
assert.equal(run(box, 'config', 'set', 'review.rounds', '1', '--local').code, 0);
const done = run(box, 'finish');
assert.equal(done.code, 0, done.err + done.out);
- assert.match(done.out, /Judge rounds: 1 of 1 done, on whether it is ready to ship \(this project's setting is lower than the usual 3\)/);
+ assert.match(done.out, /Judge rounds: 1 of 1 done \(this project's setting is lower than the usual 3\), .*\nLooked at: whether it is ready to ship\n/);
assert.match(fs.readFileSync(dot(box, 'REPORT.md'), 'utf8'), /this project's setting is lower than the usual 3\)/);
assert.match(fs.readFileSync(dot(box, 'REPORT.html'), 'utf8'), /this project&#39;s setting is lower than the usual 3\)|this project's setting is lower than the usual 3\)/);
box.cleanup();
@@ -159,7 +159,7 @@ test('a judge that says not ready is shown in the warning, the report and the fi
assert.equal(done.code, 0, done.err + done.out);
assert.match(done.out, /\nLook first: The judge said NOT ready to ship\n/);
assert.doesNotMatch(done.out, /warn\s+the judge's last word/, 'the Look first line already says it');
- assert.match(done.out, /Judge rounds: 1 of 1 done, on whether it is ready to ship, and the last word was NOT ready to ship\n/);
+ assert.match(done.out, /Judge rounds: 1 of 1 done, and the last word was NOT ready to ship\nLooked at: whether it is ready to ship\n/);
assert.match(fs.readFileSync(dot(box, 'REPORT.md'), 'utf8'), /the last word was NOT ready to ship/);
box.cleanup();
});
@@ -399,7 +399,7 @@ test('finish waits while the grind has another round planned, and takes a green
fs.writeFileSync(dot(box, 'review', 'triage.md'), 'F1 accept. fixed in a1b2c3d, the hint is darker\n');
const done = run(box, 'finish');
assert.equal(done.code, 0, done.err + done.out);
- assert.match(done.out, /Judge rounds: 1 of 1 done, on whether it is ready to ship,/);
+ assert.match(done.out, /Judge rounds: 1 of 1 done, .*\nLooked at: whether it is ready to ship\n/);
box.cleanup();
});
@@ -413,7 +413,7 @@ test('the report counts the grind rounds against what was held, not against the
writeRound(box, { minors: 1, ready: true });
const done = run(box, 'finish');
assert.equal(done.code, 0, done.err + done.out);
- assert.match(done.out, /Judge rounds: 2 of 2 done, on whether it is ready to ship,/);
+ assert.match(done.out, /Judge rounds: 2 of 2 done, .*\nLooked at: whether it is ready to ship\n/);
assert.doesNotMatch(done.out, /2 of 1 done/);
assert.match(fs.readFileSync(dot(box, 'REPORT.md'), 'utf8'), /2 of 2 done/);
box.cleanup();
@@ -431,7 +431,7 @@ test('a run that finished with a judge saying no can be ground afterwards, and f
assert.match(writeRound(box, { minors: 1, ready: true }).out, /\nGreen light\. The judge of round 2 said ready to ship/);
const again = run(box, 'finish');
assert.equal(again.code, 0, again.err + again.out);
- assert.match(again.out, /Judge rounds: 2 of 2 done, on whether it is ready to ship, and the last word was ready to ship\n/);
+ assert.match(again.out, /Judge rounds: 2 of 2 done, and the last word was ready to ship\nLooked at: whether it is ready to ship\n/);
assert.doesNotMatch(again.out, /Look first: The judge said NOT ready/);
assert.equal(JSON.parse(cli(['registry', 'list', '--json'], { env: box.env }).out).length, 1, 'the second finish replaced the row');
box.cleanup();
diff --git a/test/voice.test.mjs b/test/voice.test.mjs
new file mode 100644
index 0000000..0b7348e
--- /dev/null
+++ b/test/voice.test.mjs
@@ -0,0 +1,75 @@
+import assert from 'node:assert/strict';
+import { spawnSync } from 'node:child_process';
+import fs from 'node:fs';
+import path from 'node:path';
+import test from 'node:test';
+import { chatSummary } from '../lib/report.mjs';
+import { LEDGERLINE, SAMPLE } from '../scripts/readme-sample.mjs';
+import { cli, ROOT } from './helpers.mjs';
+
+const SKILLS = path.join(ROOT, 'skills');
+const GUIDE = path.join(SKILLS, '100x', 'references', 'voice.md');
+const guide = () => fs.readFileSync(GUIDE, 'utf8');
+const modes = () => fs.readdirSync(SKILLS).filter((name) => name.startsWith('100x-')).sort();
+
+// A skill points at the voice when it names the command that prints it. The router names the file, because it sits next to it.
+const points = (name, text) => (name === '100x' ? text.includes('references/voice.md') : text.includes('`100x ref voice`'));
+
+test('the voice guide is printed by `100x ref voice`, and says what the owner needs to steer it', () => {
+ const printed = cli(['ref', 'voice']);
+ assert.equal(printed.code, 0, printed.err);
+ assert.equal(printed.out, guide());
+ assert.ok(guide().split('\n').length <= 90, 'the guide is read on every run, so it stays under 90 lines');
+ for (const heading of ['## The shape', '## Write it out in full', '## What stays as it is', '## The owner steers', '## The limit']) assert.ok(guide().includes(`${heading}\n`), `the guide has "${heading}"`);
+ assert.match(guide(), /`more`/);
+ assert.match(guide(), /`shorter`/);
+ assert.match(guide(), /a model can ignore it/, 'the guide says what it cannot enforce');
+});
+
+test('every skill points at the voice, and the router is the one that names the file', () => {
+ const names = ['100x', ...modes()];
+ assert.equal(names.length, 13);
+ for (const name of names) assert.ok(points(name, fs.readFileSync(path.join(SKILLS, name, 'SKILL.md'), 'utf8')), `${name} points at the voice`);
+});
+
+test('a skill that loses its pointer is caught', () => {
+ const text = fs.readFileSync(path.join(SKILLS, '100x-status', 'SKILL.md'), 'utf8');
+ assert.ok(points('100x-status', text));
+ assert.ok(!points('100x-status', text.replace(/Messages to the owner follow `100x ref voice`[^\n]*\n/, '')));
+});
+
+test('no skill grew past what it said about its own length', () => {
+ const sixLines = ['100x-status', '100x-mockup', '100x-bakeoff'];
+ for (const name of sixLines) assert.match(fs.readFileSync(path.join(SKILLS, name, 'SKILL.md'), 'utf8'), /(at most )?[Ss]ix lines( at most)?/, `${name} keeps its six lines`);
+ assert.match(fs.readFileSync(path.join(SKILLS, '100x-wrapup', 'SKILL.md'), 'utf8'), /Eight lines at most/);
+});
+
+test('every example in the guide is shorter than its wall, and short enough to read at a glance', () => {
+ const rows = guide().split('\n').filter((line) => /^\| /.test(line) && !/^\| (Wall|---)/.test(line)).map((line) => line.split(/(?<!\\)\|/).slice(1, 3).map((cell) => cell.trim()));
+ assert.ok(rows.length >= 5, 'a progress note, a failure, a question, a wait and a result');
+ for (const [wall, short] of rows) {
+ assert.ok(short.length < wall.length * 0.6, `"${short}" is under 60 percent of its wall`);
+ assert.ok(short.length <= 110, `"${short}" fits a glance`);
+ assert.ok(short.split('\n').length === 1, 'one line');
+ }
+});
+
+test('the final message answers first: the verdict alone on line 1, then the reason, then blocks with one blank line between', () => {
+ for (const run of [SAMPLE, LEDGERLINE]) {
+ const text = chatSummary(run);
+ const lines = text.split('\n');
+ assert.equal(lines[0], `${run.title}: ready to ship.`);
+ assert.equal(lines[1], run.verdictWhy);
+ assert.equal(lines[2], '', 'the headline is a block of its own');
+ assert.ok(!text.includes(run.pitch), 'the pitch stays in the report and the gallery');
+ assert.ok(!/\n\n\n/.test(text) && !/\n$/.test(text), 'one blank line between blocks, none at the end');
+ assert.ok(lines.some((line) => line === 'Try first:') && lines.some((line) => /^1\) /.test(line)), 'the steps are one a line');
+ assert.ok(lines.at(-2) === '' || /^Report: /.test(lines.at(-1)) || /^Next likely asks: /.test(lines.at(-1)), 'the report and the next asks close the message');
+ }
+});
+
+test('the property checker for the final message holds in every mix of optional data', () => {
+ const run = spawnSync(process.execPath, [path.join(ROOT, 'verify', 'final-message.check.mjs')], { encoding: 'utf8', timeout: 240000 });
+ assert.equal(run.status, 0, run.stdout.split('\n').filter((line) => line.startsWith('FAIL')).join('\n'));
+ assert.match(run.stdout, /Exhaustive\. Every reachable state was visited/);
+});
diff --git a/verify/final-message.check.mjs b/verify/final-message.check.mjs
new file mode 100644
index 0000000..ba39356
--- /dev/null
+++ b/verify/final-message.check.mjs
@@ -0,0 +1,546 @@
+#!/usr/bin/env node
+// Property checker for the final message that `100x finish` prints, `chatSummary` in lib/report.mjs.
+// It explores every mix of optional data a run can have, builds the message with the real function, and checks what the message promises.
+// Copied from skills/100x/assets/property-checker.mjs. The engine is below the line that says ENGINE.
+//
+// node verify/final-message.check.mjs [--json]
+//
+// The six properties, in this file.
+// state the shape of a run as the message sees it: a verdict, a review, rounds, reasons, checks, screen sizes, asks, work, next asks, steps, a url.
+// transitions one piece of data changes at a time. The model tries every value of every piece.
+// preconditions a run with no review has no rounds, and only a judge that said no has reasons.
+// postconditions after a change, every part of the message that is not about the changed piece reads exactly as before.
+// invariants what the message always holds, in every mix: the verdict alone on line 1, the reason on line 2, every label once when its
+// data exists and not at all when it does not, the blocks in order, no stray blank lines, nothing missing, the same text twice.
+// liveness none that needs an assumption. The message is built by a function that returns for every state in the model.
+import { chatSummary } from '../lib/report.mjs';
+
+const env = (name, fallback) => (process.env[name] === undefined ? fallback : Number(process.env[name]));
+const MAX_STATES = env('MAX_STATES', 200000);
+const MAX_DEPTH = env('MAX_DEPTH', Infinity);
+
+// ---- The implementation under test. ----
+const TITLE = 'Glow';
+const WHY = 'The first tap lights the screen. Nothing else is claimed.';
+const MOMENT = 'The first tap lights the whole screen.';
+const SAY = { ship: 'ready to ship', fine: 'fine', dud: 'needs work' };
+const STEPS = ['Tap once and watch the glow', 'Tap five times fast', 'Turn the phone sideways'];
+const CHECKS = [
+ { kind: 'numbers', status: 'pass', summary: '40 cases match a hand count, 0 failing' },
+ { kind: 'screen-sizes', status: 'fail', summary: '3 broken of 212 elements' },
+];
+const REASONS = [
+ { title: 'Upgrade button clipped at 320px', state: 'fixed' },
+ { title: 'A second tab erases newer notes', state: 'left' },
+ { title: 'The total ignores a refund', state: 'disagreed' },
+ { title: 'Dark mode hides the border', state: 'left' },
+ { title: 'The empty list has no hint', state: 'left' },
+];
+const NEXT = ['Save a list of friends', 'Round up to the dollar', 'Share the split as a picture', 'Add a tip jar', 'Dark mode'];
+const LAST_READY = { ready: true, notready: false, silent: null };
+
+function entryOf(s) {
+ const reviewed = s.review === 'reviewed';
+ return {
+ title: TITLE,
+ pitch: 'PITCH-SENTENCE-THAT-THE-CHAT-MESSAGE-NO-LONGER-CARRIES.',
+ verdict: s.verdict,
+ verdictWhy: WHY,
+ moment: MOMENT,
+ runCmd: 'npm start',
+ url: s.url ? 'http://localhost:5173' : undefined,
+ tryFirst: STEPS.slice(0, s.steps),
+ mustNotBreak: CHECKS.slice(0, s.checks),
+ review: reviewed
+ ? {
+ status: 'reviewed',
+ model: 'model-x',
+ flags: 3,
+ fixed: 2,
+ rounds: s.rounds === 'none' ? undefined : { held: 2, planned: 3, lenses: ['the code and how it behaves'], lastReady: LAST_READY[s.rounds], why: s.rounds === 'notready' && s.reasons ? REASONS.slice(0, s.reasons) : undefined },
+ }
+ : { status: 'unreviewed', note: 'no judge was available' },
+ matrix: s.matrix === 'ok' ? { totals: { broken: 0, weak: 1 }, viewports: 15, examined: 148 } : s.matrix === 'broken' ? { totals: { broken: 4, weak: 1 }, viewports: 15, examined: 148 } : undefined,
+ matrixSkipped: s.matrix === 'skipped' ? 'a command line tool has no screen' : undefined,
+ asks: s.asks ? { closed: 2, total: 3 } : { closed: 0, total: 0 },
+ work: s.work ? { minutes: 120, totalMinutes: 180, rounds: 4 } : undefined,
+ nextAsks: NEXT.slice(0, s.nextAsks),
+ path: '/tmp/glow-verify',
+ };
+}
+
+const cache = new Map();
+const keyOf = (s) => JSON.stringify(s);
+const summaryOf = (s) => {
+ const key = keyOf(s);
+ if (!cache.has(key)) cache.set(key, chatSummary(entryOf(s)));
+ return cache.get(key);
+};
+
+// Lines of a message, with each line tied to the label that owns it. A numbered line, and "and N more", belong to the label above them.
+function parse(text) {
+ const lines = text.split('\n');
+ const owner = [];
+ let label = null;
+ lines.forEach((line, index) => {
+ if (line === '') { owner.push(null); return; }
+ if (index === 0) label = 'headline';
+ else if (index === 1) label = 'why';
+ else if (/^\d+\) /.test(line) || /^and \d+ more in the report$/.test(line)) { /* stays with the label above */ } else {
+ const found = line.match(/^(Look first|Why not ready to ship|The moment|Run|Try first|Must not break|Review|Judge rounds|Looked at|Screen sizes|Asks|Work|Report|Next likely asks)\b/);
+ label = found ? found[1] : `unknown:${line}`;
+ }
+ owner.push(label);
+ });
+ return { lines, owner };
+}
+const linesOf = (text, wanted) => { const { lines, owner } = parse(text); return lines.filter((_, i) => owner[i] === wanted); };
+const countOf = (text, wanted) => { const { lines, owner } = parse(text); return lines.filter((line, i) => owner[i] === wanted && !/^\d+\) /.test(line) && !/^and \d+ more/.test(line) && line !== '').length; };
+const ORDER = ['headline', 'why', 'Look first', 'Why not ready to ship', 'The moment', 'Run', 'Try first', 'Must not break', 'Review', 'Judge rounds', 'Looked at', 'Screen sizes', 'Asks', 'Work', 'Report', 'Next likely asks'];
+
+// What the data says should be there, written from the data and not from the code.
+const wanted = (s) => {
+ const reviewed = s.review === 'reviewed';
+ return {
+ headline: 1,
+ why: 1,
+ 'Look first': s.checks === 0 || s.checks === 2 || s.matrix === 'broken' || !reviewed || s.rounds === 'notready' || s.rounds === 'silent' ? 1 : 0,
+ 'Why not ready to ship': reviewed && s.rounds === 'notready' ? 1 : 0,
+ 'The moment': 1,
+ Run: 1,
+ 'Try first': 1,
+ 'Must not break': s.checks,
+ Review: 1,
+ 'Judge rounds': reviewed && s.rounds !== 'none' ? 1 : 0,
+ 'Looked at': reviewed && s.rounds !== 'none' ? 1 : 0,
+ 'Screen sizes': 1,
+ Asks: s.asks ? 1 : 0,
+ Work: s.work ? 1 : 0,
+ Report: 1,
+ 'Next likely asks': s.nextAsks ? 1 : 0,
+ };
+};
+
+// ---- The model. ----
+// A run is these fields. A review that is not there has no rounds, and only a judge that said no has reasons.
+const VALUES = {
+ verdict: ['ship', 'fine', 'dud'],
+ review: ['reviewed', 'unreviewed'],
+ rounds: ['none', 'ready', 'notready', 'silent'],
+ reasons: [0, 1, 4],
+ checks: [0, 1, 2],
+ matrix: ['none', 'ok', 'broken', 'skipped'],
+ asks: [0, 1],
+ work: [0, 1],
+ nextAsks: [0, 2, 5],
+ steps: [1, 3],
+ url: [0, 1],
+};
+const valid = (s) => (s.review === 'reviewed' || s.rounds === 'none') && (s.rounds === 'notready' || s.reasons === 0);
+// The verdict only fills the first line, and nothing else reads it. It is tried with every other piece at its start value, which keeps the model at a few thousand states.
+const START = { review: 'reviewed', rounds: 'ready', reasons: 0, checks: 1, matrix: 'ok', asks: 1, work: 0, nextAsks: 2, steps: 3, url: 1 };
+const atStart = (s) => Object.entries(START).every(([field, value]) => s[field] === value);
+const setField = (state, [field, value]) => {
+ const next = { ...state, [field]: value };
+ if (!valid(next)) throw new Error(`${field} = ${value} is not a run the message can be asked about`);
+ if (field === 'verdict' ? !atStart(state) : state.verdict !== 'ship') throw new Error('the verdict is tried on its own, and the other pieces on a run that is ready to ship');
+ return next;
+};
+// The parts of the message each field may change. Everything else has to read as it did.
+const FAMILY = {
+ verdict: ['headline'],
+ review: ['Review', 'Look first', 'Judge rounds', 'Looked at', 'Why not ready to ship'],
+ rounds: ['Look first', 'Judge rounds', 'Looked at', 'Why not ready to ship'],
+ reasons: ['Why not ready to ship'],
+ checks: ['Must not break', 'Look first'],
+ matrix: ['Screen sizes', 'Look first'],
+ asks: ['Asks'],
+ work: ['Work'],
+ nextAsks: ['Next likely asks'],
+ steps: ['Try first'],
+ url: ['Run'],
+};
+
+const model = {
+ name: 'the final message, every mix of optional data',
+ assumptions: [
+ 'one run at a time, the values listed for each field and the data below stand for every run (3 verdicts, review or none, 4 round outcomes, 0, 1 or 4 reasons, 0 to 2 checks, 4 screen size outcomes, asks, work, 0, 2 or 5 next asks, 1 or 3 steps, a url or none)',
+ 'the verdict is tried with every other piece at its start value, because only line 1 reads it',
+ 'the text of each value is fixed: a longer title, reason or step is not tried here, because finish refuses them above a length before the message is built',
+ 'only the layout of the message is checked here. The words of each line are the words the report and the tests already pin',
+ ],
+ init: () => ({ verdict: 'ship', review: 'reviewed', rounds: 'ready', reasons: 0, checks: 1, matrix: 'ok', asks: 1, work: 0, nextAsks: 2, steps: 3, url: 1 }),
+ terminal: () => true,
+ actions: [
+ {
+ name: 'set',
+ params: () => Object.entries(VALUES).flatMap(([field, values]) => values.map((value) => [field, value])),
+ pre: (s, [field, value]) => valid({ ...s, [field]: value }) && s[field] !== value && (field === 'verdict' ? atStart(s) : s.verdict === 'ship'),
+ apply: setField,
+ post: (before, after, [field]) => {
+ const a = parse(summaryOf(before));
+ const b = parse(summaryOf(after));
+ for (const label of ORDER) {
+ if (FAMILY[field].includes(label)) continue;
+ const was = a.lines.filter((_, i) => a.owner[i] === label).join('\n');
+ const now = b.lines.filter((_, i) => b.owner[i] === label).join('\n');
+ if (was !== now) return `changing ${field} also changed what ${label} says: ${JSON.stringify(was)} became ${JSON.stringify(now)}`;
+ }
+ return true;
+ },
+ },
+ ],
+ invariants: [
+ {
+ name: 'verdict-alone-on-line-one',
+ holds: (s) => {
+ const [first, second] = summaryOf(s).split('\n');
+ if (first !== `${TITLE}: ${SAY[s.verdict]}.`) return `line 1 is ${JSON.stringify(first)}, not the title and the verdict alone`;
+ return second === WHY || `line 2 is ${JSON.stringify(second)}, not the reason`;
+ },
+ },
+ {
+ name: 'the-pitch-is-left-to-the-report',
+ holds: (s) => !summaryOf(s).includes('PITCH-SENTENCE') || 'the pitch is in the chat message',
+ },
+ {
+ name: 'every-label-once-when-its-data-exists',
+ holds: (s) => {
+ const text = summaryOf(s);
+ for (const [label, count] of Object.entries(wanted(s))) {
+ const found = countOf(text, label);
+ if (found !== count) return `${label} appears ${found} times, and the data says ${count}`;
+ }
+ return true;
+ },
+ },
+ {
+ name: 'steps-one-per-line',
+ holds: (s) => {
+ const lines = linesOf(summaryOf(s), 'Try first');
+ const expect = ['Try first:', ...STEPS.slice(0, s.steps).map((step, i) => `${i + 1}) ${step}`)];
+ return JSON.stringify(lines) === JSON.stringify(expect) || `Try first reads ${JSON.stringify(lines)}`;
+ },
+ },
+ {
+ name: 'reasons-one-per-line',
+ holds: (s) => {
+ if (!(s.review === 'reviewed' && s.rounds === 'notready')) return true;
+ const lines = linesOf(summaryOf(s), 'Why not ready to ship');
+ const shown = Math.min(3, Math.max(1, s.reasons));
+ const numbered = lines.filter((line) => /^\d+\) /.test(line));
+ const more = lines.filter((line) => /^and \d+ more in the report$/.test(line));
+ if (lines[0] !== 'Why not ready to ship:') return `the reasons start with ${JSON.stringify(lines[0])}`;
+ if (numbered.length !== shown) return `${numbered.length} reasons are shown, and ${shown} should be`;
+ if (s.reasons > 3 ? more.length !== 1 || !more[0].startsWith(`and ${s.reasons - 3} more`) : more.length !== 0) return `the line that says how many more are in the report is ${JSON.stringify(more)}`;
+ return true;
+ },
+ },
+ {
+ name: 'blocks-in-order-with-one-blank-line-between',
+ holds: (s) => {
+ const text = summaryOf(s);
+ if (text.startsWith('\n') || text.endsWith('\n') || text.includes('\n\n\n')) return 'a blank line leads, trails or doubles';
+ const { lines, owner } = parse(text);
+ const labels = owner.filter((x, i) => x !== null && owner.indexOf(x) === i);
+ const rank = labels.map((label) => ORDER.indexOf(label));
+ if (rank.some((r) => r < 0) || rank.some((r, i) => i > 0 && r < rank[i - 1])) return `the parts come in the order ${labels.join(', ')}`;
+ const startsBlock = (label) => { const i = owner.indexOf(label); return i > 0 && lines[i - 1] === ''; };
+ if (!startsBlock('The moment')) return 'the moment does not start its own block';
+ if (!startsBlock('Report')) return 'the report line does not start its own block';
+ const firstCheck = ['Must not break', 'Review'].find((label) => owner.includes(label));
+ if (!startsBlock(firstCheck)) return `${firstCheck} does not start the block of checks`;
+ const blank = lines.filter((line) => line === '').length;
+ return blank === 3 || `there are ${blank} blank lines, and 3 are expected between 4 blocks`;
+ },
+ },
+ {
+ name: 'every-fact-is-kept',
+ holds: (s) => {
+ const text = summaryOf(s);
+ const must = [`Run: npm start${s.url ? ', then open http://localhost:5173' : ''}`, `The moment: ${MOMENT.replace(/\.$/, '')}`, 'Report: file:///tmp/glow-verify/.100x/REPORT.html', 'Review'];
+ for (const check of CHECKS.slice(0, s.checks)) must.push(check.summary);
+ if (s.review === 'reviewed' && s.rounds !== 'none') {
+ must.push('Judge rounds: 2 of 3 done', 'Looked at: the code and how it behaves');
+ must.push({ ready: 'the last word was ready to ship', notready: 'the last word was NOT ready to ship', silent: 'with no last word from the judge' }[s.rounds]);
+ }
+ if (s.asks) must.push('Asks: 2 of 3 closed');
+ if (s.work) must.push('Work: 2 h of 3 h asked for, 4 rounds');
+ if (s.matrix === 'skipped') must.push('Screen sizes: skipped, a command line tool has no screen');
+ if (s.matrix === 'ok') must.push('Screen sizes: 0 broken, 1 weak, 15 sizes and 148 elements checked');
+ if (s.matrix === 'none') must.push('Screen sizes: not run');
+ if (s.nextAsks) must.push(`Next likely asks: ${NEXT.slice(0, Math.min(3, s.nextAsks)).join('; ')}${s.nextAsks > 3 ? `; and ${s.nextAsks - 3} more in the report` : ''}`);
+ for (const reason of REASONS.slice(0, s.review === 'reviewed' && s.rounds === 'notready' ? Math.min(3, s.reasons) : 0)) must.push(reason.title);
+ const missing = must.filter((piece) => !text.includes(piece));
+ return missing.length === 0 || `the message lost ${JSON.stringify(missing)}`;
+ },
+ },
+ {
+ name: 'clean-lines',
+ holds: (s) => {
+ const text = summaryOf(s);
+ if (/[ \t]$/m.test(text)) return 'a line ends with a space';
+ if (/undefined|NaN|\[object/.test(text)) return 'the message holds undefined, NaN or [object';
+ return true;
+ },
+ },
+ {
+ name: 'same-run-same-message',
+ holds: (s) => chatSummary(entryOf(s)) === chatSummary(entryOf(s)) || 'two calls gave two messages',
+ },
+ ],
+ liveness: [],
+};
+
+// ---- ENGINE. No need to edit below this line. ----
+const canon = (value) => JSON.stringify(value, (key, item) => (item && typeof item === 'object' && !Array.isArray(item)
+ ? Object.fromEntries(Object.keys(item).sort().map((name) => [name, item[name]]))
+ : item));
+const say = (value) => { const text = JSON.stringify(value); return text.length > 150 ? `${text.slice(0, 147)}...` : text; };
+const labelOf = (action, param) => (param === undefined ? action.name : `${action.name}(${JSON.stringify(param)})`);
+const verdict = (value) => (value === true || value === undefined ? null : typeof value === 'string' ? value : 'it is false');
+
+const keys = [];
+const states = [];
+const depths = [];
+const out = [];
+const parent = [];
+const open = [];
+const seen = new Map();
+let truncated = false;
+let transitions = 0;
+
+const results = new Map(); // check name -> { ok, detail, trace, count }
+const register = (name) => { if (!results.has(name)) results.set(name, { ok: true, more: 0, count: 0 }); return results.get(name); };
+// The steps to a failure are built only for the first one, because a long run of failures must not cost a path each.
+function fail(name, message, at, extra) {
+ const entry = register(name);
+ if (!entry.ok) { entry.more += 1; return; }
+ entry.ok = false;
+ entry.message = message;
+ entry.labels = at === null ? [] : [...pathTo(at), ...(extra ? [extra] : [])];
+ entry.at = at;
+}
+const pathTo = (index) => { const labels = []; for (let at = index; parent[at]; at = parent[at][0]) labels.unshift(parent[at][1]); return labels; };
+
+function discover(state, from, label) {
+ const key = canon(state);
+ const known = seen.get(key);
+ if (known !== undefined) return known;
+ if (states.length >= MAX_STATES) { truncated = true; return -1; }
+ const index = states.length;
+ seen.set(key, index);
+ keys.push(key);
+ states.push(state);
+ depths.push(from === null ? 0 : depths[from] + 1);
+ out.push([]);
+ open.push(false);
+ parent.push(from === null ? null : [from, label]);
+ return index;
+}
+
+const initial = model.init();
+for (const state of Array.isArray(initial) ? initial : [initial]) discover(state, null, null);
+for (const invariant of model.invariants ?? []) register('inv:' + invariant.name);
+for (const action of model.actions) { register('guard:' + action.name); register('post:' + action.name); }
+register('pure');
+register('deadlock');
+register('coverage');
+const fired = new Set();
+const terminal = model.terminal ?? (() => false);
+
+for (let i = 0; i < states.length; i += 1) {
+ const state = states[i];
+ for (const invariant of model.invariants ?? []) {
+ const entry = register('inv:' + invariant.name);
+ entry.count += 1;
+ const bad = verdict(invariant.holds(state));
+ if (bad) fail('inv:' + invariant.name, bad, i);
+ }
+ if (depths[i] >= MAX_DEPTH) { open[i] = true; truncated = true; continue; }
+ let enabledCount = 0;
+ for (const action of model.actions) {
+ const guard = register('guard:' + action.name);
+ for (const param of action.params ? action.params(state) : [undefined]) {
+ const label = labelOf(action, param);
+ if (action.pre(state, param)) {
+ enabledCount += 1;
+ let next;
+ try {
+ next = action.apply(state, param);
+ } catch (error) {
+ fail('guard:' + action.name, 'the model allows ' + label + ' but the implementation refused it: ' + error.message, i, label);
+ continue;
+ }
+ guard.count += 1;
+ if (canon(state) !== keys[i]) {
+ fail('pure', label + ' changed the state it was given. Return a new state and leave the old one alone', i, label);
+ states[i] = JSON.parse(keys[i]);
+ }
+ fired.add(action.name);
+ const post = register('post:' + action.name);
+ post.count += 1;
+ const bad = action.post ? verdict(action.post(state, next, param)) : null;
+ if (bad) fail('post:' + action.name, bad, i, label);
+ const target = discover(next, i, label);
+ transitions += 1;
+ if (target === -1) open[i] = true;
+ else out[i].push([label, target]);
+ } else if (action.refuses !== false) {
+ let applied = null;
+ try {
+ applied = action.apply(state, param);
+ } catch {
+ guard.count += 1;
+ continue;
+ }
+ if (canon(applied) === keys[i]) guard.count += 1;
+ else {
+ fail('guard:' + action.name, 'the model forbids ' + label + ' but the implementation accepted it and changed the state to ' + say(applied), i, label);
+ // What the code really does is reachable too, so the invariants judge it. A step the code accepts and the spec forbids is marked with a !.
+ const target = discover(applied, i, '!' + label);
+ transitions += 1;
+ if (target === -1) open[i] = true;
+ else out[i].push(['!' + label, target]);
+ }
+ }
+ }
+ }
+ if (enabledCount === 0 && !terminal(state)) fail('deadlock', 'no step is possible and the model does not call this a stopping point', i);
+}
+
+const exhaustive = !truncated;
+const never = model.actions.filter((action) => !fired.has(action.name) && action.optional !== true).map((action) => action.name);
+if (never.length && exhaustive) fail('coverage', 'these steps were never possible in any reachable state: ' + never.join(', ') + '. Check the model, or mark one optional', null);
+
+// Liveness. Strong fairness: a run that avoids to forever must end in a closed set of states that all avoid to.
+function components(allowed) {
+ const index = new Array(states.length).fill(-1);
+ const low = new Array(states.length).fill(0);
+ const onStack = new Array(states.length).fill(false);
+ const comp = new Array(states.length).fill(-1);
+ const stack = [];
+ const comps = [];
+ let counter = 0;
+ for (let root = 0; root < states.length; root += 1) {
+ if (!allowed(root) || index[root] !== -1) continue;
+ index[root] = low[root] = counter; counter += 1;
+ stack.push(root);
+ onStack[root] = true;
+ const work = [[root, 0]];
+ while (work.length) {
+ const frame = work[work.length - 1];
+ const v = frame[0];
+ if (frame[1] < out[v].length) {
+ const w = out[v][frame[1]][1];
+ frame[1] += 1;
+ if (!allowed(w)) continue;
+ if (index[w] === -1) {
+ index[w] = low[w] = counter; counter += 1;
+ stack.push(w);
+ onStack[w] = true;
+ work.push([w, 0]);
+ } else if (onStack[w]) low[v] = Math.min(low[v], index[w]);
+ } else {
+ work.pop();
+ if (work.length) { const u = work[work.length - 1][0]; low[u] = Math.min(low[u], low[v]); }
+ if (low[v] === index[v]) {
+ const members = [];
+ let w;
+ do { w = stack.pop(); onStack[w] = false; comp[w] = comps.length; members.push(w); } while (w !== v);
+ comps.push(members);
+ }
+ }
+ }
+ }
+ return { comp, comps };
+}
+
+const reverse = states.map(() => []);
+states.forEach((_, i) => { for (const [, j] of out[i]) if (j >= 0) reverse[j].push(i); });
+let fullGraph = null;
+
+function checkLiveness(property) {
+ const name = 'live:' + property.name;
+ const entry = register(name);
+ if (!exhaustive) { entry.ok = false; entry.message = 'not decided. The exploration stopped at a bound, so a state that looks stuck may only be unexplored. Raise MAX_STATES and MAX_DEPTH, or shrink the model'; entry.labels = []; entry.at = null; return; }
+ const goal = states.map((state) => Boolean(property.to(state)));
+ const starts = states.map((state, i) => !goal[i] && Boolean(property.from(state)));
+ const count = states.filter((state) => property.from(state)).length;
+ entry.count = count;
+ if (count === 0) { entry.ok = false; entry.message = 'vacuous. No reachable state satisfies from, so nothing was checked'; entry.labels = []; entry.at = null; return; }
+ const seeds = new Set();
+ if ((property.fairness ?? 'strong') === 'strong') {
+ fullGraph ??= components(() => true);
+ fullGraph.comps.forEach((members, id) => {
+ const closed = members.every((v) => out[v].every(([, w]) => fullGraph.comp[w] === id));
+ if (closed && members.every((v) => !goal[v])) for (const v of members) seeds.add(v);
+ });
+ } else {
+ const { comps } = components((v) => !goal[v]);
+ comps.forEach((members) => {
+ const loops = members.length > 1 || out[members[0]].some(([, w]) => w === members[0]);
+ if (loops) for (const v of members) seeds.add(v);
+ });
+ states.forEach((_, v) => { if (!goal[v] && out[v].length === 0) seeds.add(v); });
+ }
+ // Every state that can reach a seed without passing through to.
+ const doomed = new Set(seeds);
+ const queue = [...seeds];
+ while (queue.length) {
+ const v = queue.shift();
+ for (const u of reverse[v]) if (!goal[u] && !doomed.has(u)) { doomed.add(u); queue.push(u); }
+ }
+ const bad = starts.findIndex((isStart, i) => isStart && doomed.has(i));
+ if (bad === -1) return;
+ // The way from the bad state into the trap, staying away from to.
+ const via = new Map([[bad, null]]);
+ const walk = [bad];
+ let trapped = seeds.has(bad) ? bad : -1;
+ for (let at = 0; at < walk.length && trapped === -1; at += 1) {
+ for (const [label, w] of out[walk[at]]) {
+ if (goal[w] || via.has(w)) continue;
+ via.set(w, [walk[at], label]);
+ walk.push(w);
+ if (seeds.has(w)) { trapped = w; break; }
+ }
+ }
+ const tail = [];
+ for (let at = trapped; via.get(at); at = via.get(at)[0]) tail.unshift(via.get(at)[1]);
+ entry.ok = false;
+ entry.message = 'from ' + say(states[bad]) + ' the run can stay away from to forever. It gets stuck at ' + say(states[trapped]);
+ entry.labels = [...pathTo(bad), ...tail];
+ entry.at = trapped;
+}
+for (const property of model.liveness ?? []) checkLiveness(property);
+
+const level = exhaustive ? 'exhaustive' : 'bounded';
+const deepest = depths.reduce((most, depth) => Math.max(most, depth), 0);
+const describe = (name, entry) => {
+ if (!entry.ok) {
+ const trace = entry.labels?.length ? ' Steps: ' + entry.labels.join(', ') + '.' : '';
+ const more = entry.more ? ' (and ' + entry.more + ' more)' : '';
+ return entry.message + more + '.' + trace;
+ }
+ if (name.startsWith('inv:')) return entry.count + ' states checked, ' + level;
+ if (name.startsWith('guard:')) return entry.count + ' enabled and refused cases agree with the implementation, ' + level;
+ if (name.startsWith('post:')) return entry.count + ' transitions checked, ' + level;
+ if (name === 'pure') return 'no apply changed its input';
+ if (name === 'deadlock') return 'every state has a step or is a stopping point, ' + level;
+ if (name === 'coverage') return exhaustive ? 'every step was possible somewhere, ' + fired.size + ' of ' + model.actions.length : fired.size + ' of ' + model.actions.length + ' steps reached so far. Not decided on a bounded search';
+ if (name.startsWith('live:')) return 'holds from ' + entry.count + ' states under ' + ((model.liveness.find((p) => 'live:' + p.name === name).fairness ?? 'strong')) + ' fairness, exhaustive';
+ return 'ok';
+};
+const checks = [...results].map(([name, entry]) => ({ name, ok: entry.ok, level: name.startsWith('live:') || exhaustive ? level : 'bounded', detail: describe(name, entry) }));
+
+if (process.argv.includes('--json')) {
+ console.log(JSON.stringify({ model: model.name, exhaustive, states: states.length, transitions, depth: deepest, assumptions: model.assumptions ?? [], checks }, null, 2));
+} else {
+ console.log('Model ' + model.name + '. ' + states.length + ' states, ' + transitions + ' transitions, deepest path ' + deepest + '.');
+ console.log(exhaustive
+ ? 'Exhaustive. Every reachable state was visited, so a pass is a proof for this model and these bounds.'
+ : 'BOUNDED. The exploration stopped at ' + MAX_STATES + ' states or depth ' + MAX_DEPTH + '. A pass means nothing was found in what was visited, not a proof.');
+ for (const line of model.assumptions ?? []) console.log(' assumes ' + line);
+ for (const check of checks) console.log((check.ok ? 'pass' : 'FAIL') + ' ' + check.name + '. ' + check.detail);
+}
+process.exitCode = checks.every((check) => check.ok) ? 0 : 1;