Skip to content

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

Cap the try-first steps at four, bound the message at thirty lines, and keep the before and after current

Dead Internet42e72dd91b1d
diff --git a/lib/finish.mjs b/lib/finish.mjs
index 2a0fa15..69b5916 100644
--- a/lib/finish.mjs
+++ b/lib/finish.mjs
@@ -98,6 +98,7 @@ function checkRounds(root, now) {
const READABLE = { pitch: 240, verdictWhy: 320, moment: 240 };
const TITLE_MAX = 70;
const STEP_MAX = 200;
+const STEPS_MAX = 4;
const SUMMARY_MAX = 400;
export function readableFacts(run) {
@@ -163,6 +164,8 @@ export function validateRun(root, { now = new Date() } = {}) {
// The report page and the final message hand this to the owner, who does not have your free port. A cold start wrote `PORT=$(100x port) npm start`.
if (/(^|[\s;&|(`])100x\s/.test(run.runCmd ?? '')) errors.push('runCmd runs 100x. Write the project\'s own start command, the one the owner types in the project folder, for example `100x run set runCmd "npm start"`, and the address it opens at by default with `100x run set url http://localhost:4173`. The report page sets the port itself');
need(Array.isArray(run.tryFirst) && run.tryFirst.filter(present).length >= 2, 'tryFirst needs at least 2 short steps');
+ const stepCount = Array.isArray(run.tryFirst) ? run.tryFirst.filter(present).length : 0;
+ need(stepCount <= STEPS_MAX, `tryFirst has ${stepCount} steps, ${STEPS_MAX} at most. The owner reads them on one screen. Keep the steps that reach the moment fastest`);
errors.push(...readableFacts(run));
need(Number.isInteger(run.polishPasses) && run.polishPasses >= 0, 'polishPasses must be a whole number');
const passes = passNames(root);
diff --git a/test/finish.test.mjs b/test/finish.test.mjs
index f8e5892..cfb9e85 100644
--- a/test/finish.test.mjs
+++ b/test/finish.test.mjs
@@ -132,6 +132,7 @@ const BLOCKERS = [
['a verdict outside the three words', { run: runJson({ verdict: 'great' }) }, /verdict must be one of/],
['a missing hero file', { run: runJson({ hero: '.100x/nope.png' }) }, /hero .* does not exist/],
['too few try-first steps', { run: runJson({ tryFirst: ['Tap once'] }) }, /tryFirst needs at least 2/],
+ ['too many try-first steps', { run: runJson({ tryFirst: ['Tap once', 'Tap twice', 'Tap three times', 'Tap four times', 'Tap five times'] }) }, /tryFirst has 5 steps, 4 at most/],
['an unreviewed run with no reason', { run: runJson({ review: { status: 'unreviewed' } }) }, /needs review\.note/],
['a must-not-break check without a status', { run: runJson({ mustNotBreak: { kind: 'numbers', summary: 'x' } }) }, /the must-not-break check "numbers"\. The status must be one of pass, fail, skipped/],
['a verdict text the owner could not read in ten seconds', { run: runJson({ verdictWhy: 'Scored 5 of 6 (first minute 2, screenshot 2, second day 1): a frame 216 ms after tapping 25% shows the button squashed, the friends mid-hop, a ring crossing the screen and the number rolling to its answer, and 0 broken of 2149 elements over 14 states, which is why it stays a ship even though the second day only scored 1 of 2 and the audio was never heard.' }) }, /verdictWhy is 3\d\d characters, 320 at most\. The owner reads it first.*100x run set verdictWhy "<shorter>"/],
diff --git a/verify/final-message.check.mjs b/verify/final-message.check.mjs
index 0929c9f..0967135 100644
--- a/verify/final-message.check.mjs
+++ b/verify/final-message.check.mjs
@@ -24,7 +24,7 @@ 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 STEPS = ['Tap once and watch the glow', 'Tap five times fast', 'Turn the phone sideways', 'Hold it and let go'];
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' },
@@ -150,7 +150,7 @@ const VALUES = {
nextAsks: [0, 2, 3, 4],
text: ['plain', 'multi', 'control'],
blank: [0, 1],
- steps: [1, 3],
+ steps: [1, 3, 4],
url: [0, 1],
};
const valid = (s) => (s.review === 'reviewed' || s.rounds === 'none') && (s.rounds === 'notready' || s.reasons === 0);
@@ -186,7 +186,7 @@ const FAMILY = {
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, 3 judges, review or none, 4 round outcomes, 0, 1, 3 or 4 reasons, 0 to 2 checks, 4 screen size outcomes, asks, work, 0, 2, 3 or 4 next asks, 1 or 3 steps, a url or none, plain text, text with a line break in it or text with control codes in it, and a blank step beside the real ones or none)',
+ 'one run at a time, the values listed for each field and the data below stand for every run (3 verdicts, 3 judges, review or none, 4 round outcomes, 0, 1, 3 or 4 reasons, 0 to 2 checks, 4 screen size outcomes, asks, work, 0, 2, 3 or 4 next asks, 1, 3 or 4 steps, a url or none, plain text, text with a line break in it or text with control codes in it, and a blank step beside the real ones or none)',
'the verdict and the judge are each tried with every other piece at its start value, because only line 1 reads the verdict and only one line reads the judge',
'the text of each value is one fixed sentence, written plain, with a line break in the middle of it or with control codes in the middle of it. 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',
@@ -316,6 +316,10 @@ const model = {
name: 'a-line-break-in-a-value-adds-no-line',
holds: (s) => s.text !== 'multi' || summaryOf(s) === summaryOf({ ...s, text: 'plain' }) || 'a value with a line break in it changed the message',
},
+ {
+ name: 'the-message-fits-in-thirty-lines',
+ holds: (s) => summaryOf(s).split('\n').length <= 30 || `the message is ${summaryOf(s).split('\n').length} lines, and 30 is the most a run with every list full may print`,
+ },
{
name: 'no-control-characters',
holds: (s) => !/[\u0000-\u0009\u000b-\u001f\u007f-\u009f]/.test(summaryOf(s)) || 'a control character reached the message',
diff --git a/verify/history.tsv b/verify/history.tsv
index c525558..36c9636 100644
--- a/verify/history.tsv
+++ b/verify/history.tsv
@@ -53,3 +53,19 @@ ts id event commit hash note result
2026-11-27T00:15:04Z msg-key-order sync f931a40 7657e84ee71266ac Read the change since the last sync: chatSummary now turns control codes into spaces and drops blank steps before numbering them, and the checker gained a control text variant, a blank step and a no-control-characters invariant. Ran the check on that code: passed, exhaustive, 6151 states, exit 0 (verify run, round 1). holds
2026-11-27T00:15:04Z msg-no-memory sync f931a40 7657e84ee71266ac Read the change since the last sync: chatSummary now turns control codes into spaces and drops blank steps before numbering them, and the checker gained a control text variant, a blank step and a no-control-characters invariant. Ran the check on that code: passed, exhaustive, 6151 states, exit 0 (verify run, round 1). holds
2026-11-27T00:15:05Z msg-bounds sync f931a40 7657e84ee71266ac Read the change since the last sync: chatSummary now turns control codes into spaces and drops blank steps before numbering them, and the checker gained a control text variant, a blank step and a no-control-characters invariant. Ran the check on that code: passed, exhaustive, 6151 states, exit 0 (verify run, round 1). holds
+2026-11-27T00:21:04Z msg-precondition run ba9be3e 839f7a366924f4d9 exit 0, 19.3 s holds
+2026-11-27T00:21:23Z msg-state run ba9be3e 70294d668ef60b9f exit 0, 11.6 s holds
+2026-11-27T00:21:35Z msg-transition run ba9be3e 70294d668ef60b9f exit 0, 13.5 s holds
+2026-11-27T00:21:49Z msg-postcondition run ba9be3e 70294d668ef60b9f exit 0, 5.2 s holds
+2026-11-27T00:21:54Z msg-invariants run ba9be3e 70294d668ef60b9f exit 0, 11 s holds
+2026-11-27T00:22:05Z msg-liveness run ba9be3e 70294d668ef60b9f exit 0, 9.1 s holds
+2026-11-27T00:22:14Z msg-whitespace run ba9be3e 70294d668ef60b9f exit 0, 5.5 s holds
+2026-11-27T00:22:19Z msg-no-mutation run ba9be3e 70294d668ef60b9f exit 0, 4.8 s holds
+2026-11-27T00:22:24Z msg-key-order run ba9be3e 70294d668ef60b9f exit 0, 7.4 s holds
+2026-11-27T00:22:31Z msg-no-memory run ba9be3e 70294d668ef60b9f exit 0, 6.7 s holds
+2026-11-27T00:22:38Z msg-bounds run ba9be3e 70294d668ef60b9f exit 0, 6.7 s holds
+2026-11-27T00:22:45Z msg-control-chars run ba9be3e 70294d668ef60b9f exit 0, 6.1 s holds
+2026-11-27T00:22:51Z msg-numbered-steps run ba9be3e 70294d668ef60b9f exit 0, 4.7 s holds
+2026-11-27T00:22:56Z msg-locale run ba9be3e f16b4e3507f5b3da exit 0, 1.2 s holds
+2026-11-27T00:25:16Z msg-size add ba9be3e 95fe743f0b05f7b4 A message never runs past 30 lines, which is what a run with four steps, two checks, three reasons and every other line full adds up to unchecked
+2026-11-27T00:25:19Z msg-step-cap add ba9be3e dcad1d8b14814145 100x finish refuses a run with more than four try-first steps, so the list in the message cannot grow past what the owner reads on one screen unchecked
diff --git a/verify/ledger.tsv b/verify/ledger.tsv
index c6b71bc..99736d0 100644
--- a/verify/ledger.tsv
+++ b/verify/ledger.tsv
@@ -1,15 +1,17 @@
id kind property covers covers_hash command level red status checked_at commit ran_hash
-msg-precondition precondition 100x finish refuses a run with no moment, a verdict outside the three words, fewer than two steps, a title that is a sentence or a run command that runs 100x, so the final message is never built from one lib/finish.mjs 839f7a366924f4d9 X100_FAST=1 node --test --test-name-pattern="finish refuses (a missing moment|a verdict outside the three words|too few try-first steps|a title that is a sentence|a run command that runs 100x)" test/finish.test.mjs sampled verify/red/msg-precondition.txt holds 2026-11-27T00:09:01Z f931a40 839f7a366924f4d9
-msg-state state Every mix of verdict, judge, review, rounds, reasons, checks, screen sizes, asks, work, next asks, steps and url that the model lists is a run the final message can be built from, with no crash, no undefined and no NaN lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-state.txt holds 2026-11-27T00:09:40Z f931a40 7657e84ee71266ac
-msg-transition transition When one piece of a run changes, the message built from the new run shows the change, and is built from the new run and not from the old one lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-transition.txt holds 2026-11-27T00:09:55Z f931a40 7657e84ee71266ac
-msg-postcondition postcondition After one piece of a run changes, every line of the message that is not about that piece reads exactly as it did lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-postcondition.txt holds 2026-11-27T00:10:14Z f931a40 7657e84ee71266ac
-msg-invariants invariant In every mix the verdict is alone on line 1 and the reason is line 2, the pitch is left to the report, every label appears once when its data exists and not otherwise, steps and reasons take one line each, the blocks come in order with one blank line between them, no fact is lost, no line ends in a space and the same run gives the same message lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-invariants.txt holds 2026-11-27T00:10:40Z f931a40 7657e84ee71266ac
-msg-liveness liveness From every state of the model there is a next change or the state is a named stop, so the search ends having seen every mix (no deadlock). No fairness is assumed lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-liveness.txt holds 2026-11-27T00:11:07Z f931a40 7657e84ee71266ac
-msg-whitespace invariant A line break or a run of spaces inside a value adds no line to the message and changes no word of it lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-whitespace.txt holds 2026-11-27T00:11:19Z f931a40 7657e84ee71266ac
-msg-no-mutation invariant Building the message leaves the run it was given exactly as it was lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-no-mutation.txt holds 2026-11-27T00:11:28Z f931a40 7657e84ee71266ac
-msg-key-order invariant The same run with its keys in another order gives the same message lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-key-order.txt holds 2026-11-27T00:11:35Z f931a40 7657e84ee71266ac
-msg-no-memory invariant A message built after another run's message shows only its own run: nothing is left behind between calls lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-no-memory.txt holds 2026-11-27T00:11:40Z f931a40 7657e84ee71266ac
-msg-bounds invariant A list of next asks or of reasons longer than three shows three and says how many more are in the report, and a list of three or fewer says nothing about more lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-bounds.txt holds 2026-11-27T00:11:45Z f931a40 7657e84ee71266ac
-msg-control-chars invariant A control code in a value (a clear screen code, a bell, a null byte) never reaches the message, and the words around it stay lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-control-chars.txt holds 2026-11-27T00:11:51Z f931a40 7657e84ee71266ac
-msg-numbered-steps invariant A blank step beside real ones takes no number, and the steps count up one by one with no gap lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-numbered-steps.txt holds 2026-11-27T00:11:55Z f931a40 7657e84ee71266ac
-msg-locale invariant The message is byte for byte the same under another language and another time zone lib/report.mjs,test/voice.test.mjs 80998830411c9e31 X100_FAST=1 node --test --test-name-pattern="another language" test/voice.test.mjs sampled verify/red/msg-locale.txt holds 2026-11-27T00:11:59Z f931a40 80998830411c9e31
+msg-precondition precondition 100x finish refuses a run with no moment, a verdict outside the three words, fewer than two steps, a title that is a sentence or a run command that runs 100x, so the final message is never built from one lib/finish.mjs 839f7a366924f4d9 X100_FAST=1 node --test --test-name-pattern="finish refuses (a missing moment|a verdict outside the three words|too few try-first steps|a title that is a sentence|a run command that runs 100x)" test/finish.test.mjs sampled verify/red/msg-precondition.txt holds 2026-11-27T00:21:04Z ba9be3e 839f7a366924f4d9
+msg-state state Every mix of verdict, judge, review, rounds, reasons, checks, screen sizes, asks, work, next asks, steps and url that the model lists is a run the final message can be built from, with no crash, no undefined and no NaN lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-state.txt holds 2026-11-27T00:21:23Z ba9be3e 70294d668ef60b9f
+msg-transition transition When one piece of a run changes, the message built from the new run shows the change, and is built from the new run and not from the old one lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-transition.txt holds 2026-11-27T00:21:35Z ba9be3e 70294d668ef60b9f
+msg-postcondition postcondition After one piece of a run changes, every line of the message that is not about that piece reads exactly as it did lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-postcondition.txt holds 2026-11-27T00:21:49Z ba9be3e 70294d668ef60b9f
+msg-invariants invariant In every mix the verdict is alone on line 1 and the reason is line 2, the pitch is left to the report, every label appears once when its data exists and not otherwise, steps and reasons take one line each, the blocks come in order with one blank line between them, no fact is lost, no line ends in a space and the same run gives the same message lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-invariants.txt holds 2026-11-27T00:21:54Z ba9be3e 70294d668ef60b9f
+msg-liveness liveness From every state of the model there is a next change or the state is a named stop, so the search ends having seen every mix (no deadlock). No fairness is assumed lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-liveness.txt holds 2026-11-27T00:22:05Z ba9be3e 70294d668ef60b9f
+msg-whitespace invariant A line break or a run of spaces inside a value adds no line to the message and changes no word of it lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-whitespace.txt holds 2026-11-27T00:22:14Z ba9be3e 70294d668ef60b9f
+msg-no-mutation invariant Building the message leaves the run it was given exactly as it was lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-no-mutation.txt holds 2026-11-27T00:22:19Z ba9be3e 70294d668ef60b9f
+msg-key-order invariant The same run with its keys in another order gives the same message lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-key-order.txt holds 2026-11-27T00:22:24Z ba9be3e 70294d668ef60b9f
+msg-no-memory invariant A message built after another run's message shows only its own run: nothing is left behind between calls lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-no-memory.txt holds 2026-11-27T00:22:31Z ba9be3e 70294d668ef60b9f
+msg-bounds invariant A list of next asks or of reasons longer than three shows three and says how many more are in the report, and a list of three or fewer says nothing about more lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-bounds.txt holds 2026-11-27T00:22:38Z ba9be3e 70294d668ef60b9f
+msg-control-chars invariant A control code in a value (a clear screen code, a bell, a null byte) never reaches the message, and the words around it stay lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-control-chars.txt holds 2026-11-27T00:22:45Z ba9be3e 70294d668ef60b9f
+msg-numbered-steps invariant A blank step beside real ones takes no number, and the steps count up one by one with no gap lib/report.mjs,verify/final-message.check.mjs 7657e84ee71266ac node verify/final-message.check.mjs exhaustive verify/red/msg-numbered-steps.txt holds 2026-11-27T00:22:51Z ba9be3e 70294d668ef60b9f
+msg-locale invariant The message is byte for byte the same under another language and another time zone lib/report.mjs,test/voice.test.mjs 80998830411c9e31 X100_FAST=1 node --test --test-name-pattern="another language" test/voice.test.mjs sampled verify/red/msg-locale.txt holds 2026-11-27T00:22:56Z ba9be3e f16b4e3507f5b3da
+msg-size invariant A message never runs past 30 lines, which is what a run with four steps, two checks, three reasons and every other line full adds up to lib/report.mjs,verify/final-message.check.mjs 95fe743f0b05f7b4 node verify/final-message.check.mjs exhaustive verify/red/msg-size.txt unchecked
+msg-step-cap precondition 100x finish refuses a run with more than four try-first steps, so the list in the message cannot grow past what the owner reads on one screen lib/finish.mjs,test/finish.test.mjs dcad1d8b14814145 X100_FAST=1 node --test --test-name-pattern="finish refuses too many try-first steps" test/finish.test.mjs sampled verify/red/msg-step-cap.txt unchecked