Skip to content

fix(bootstrap): lower no-mistakes version floor from 1.31.2 to 0.40.0 - #2925

Open
desnor wants to merge 6 commits into
kunchenguid:mainfrom
desnor:fm/fix-no-mistakes-version-floor-in-bootstr-ec
Open

fix(bootstrap): lower no-mistakes version floor from 1.31.2 to 0.40.0#2925
desnor wants to merge 6 commits into
kunchenguid:mainfrom
desnor:fm/fix-no-mistakes-version-floor-in-bootstr-ec

Conversation

@desnor

@desnor desnor commented Aug 24, 2026

Copy link
Copy Markdown

Intent

Lower the no-mistakes version floor constant NO_MISTAKES_MIN from 1.31.2 to 0.40.0 in bin/fm-bootstrap.sh, and update all version references throughout the codebase including comments, documentation, bootstrap-diagnostics SKILL.md, and all test files from 1.31.2 to 0.40.0 so bootstrap no longer reports the installed no-mistakes 0.40.0 binary as MISSING.

What Changed

  • Lowered NO_MISTAKES_MIN constant in bin/fm-bootstrap.sh from 1.31.2 to 0.40.0 so bootstrap correctly recognises installed no-mistakes 0.40.0 binaries as present rather than reporting them as MISSING.
  • Updated all version references (comments, documentation, CONTRIBUTING.md, docs/configuration.md, and bootstrap-diagnostics/SKILL.md) from 1.31.2 to 0.40.0.
  • Updated fake no-mistakes version fixtures in all test files to 0.40.0 to match the new floor.

Risk Assessment

✅ Low: All version references from 1.31.2 to 0.40.0 are consistently updated across source, docs, and tests; the integer-based comparison function handles the new 0.x floor correctly; and all four round-1 findings have been properly resolved.

Testing

Ran test_no_mistakes_min_version in isolation (5 cases: v0.40.0 exact floor → silent, v0.41.0 → silent, v1.0.0 → silent, v0.39.9 below floor → MISSING message, unparseable → MISSING message). All cases passed. No 1.31.2 references remain anywhere in the codebase. A pre-existing test_routine_bootstrap_confirmations_are_silent failure due to GPG signing not being available in the gate worktree environment is unrelated to this change.

Evidence: test_no_mistakes_min_version output

Source: test_no_mistakes_min_version output

=== test_no_mistakes_min_version ===

Test cases exercised:
  1. minimum no-mistakes version is accepted   -> v0.40.0 (exact floor) -> expects silence
  2. newer no-mistakes minor is accepted       -> v0.41.0               -> expects silence
  3. newer no-mistakes major is accepted       -> v1.0.0                -> expects silence
  4. older no-mistakes patch reports upgrade   -> v0.39.9 (below floor) -> expects MISSING message
  5. unparseable version reports upgrade       -> 'development build'   -> expects MISSING message

=== Result ===
ok - bootstrap enforces no-mistakes minimum version
Exit: 0

=== NO_MISTAKES_MIN in bin/fm-bootstrap.sh ===
NO_MISTAKES_MIN=0.40.0
  if command -v no-mistakes >/dev/null 2>&1 && ! tool_version_at_least no-mistakes "$NO_MISTAKES_MIN"; then

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • bash tests/fm-bootstrap.test.sh (targeted via awk-extracted runner calling only test_no_mistakes_min_version)
  • Manual grep confirming zero remaining 1.31.2 references across all 11 changed files
⏭️ **Document** - skipped

Step was skipped.

⚠️ **Lint** - 1 warning
  • ⚠️ linter found issues (exit code 1)
✅ **Push** - passed

✅ No issues found.

desnor and others added 3 commits August 24, 2026 15:55
no-mistakes was re-versioned from 1.x to 0.x scheme. The installed version
0.40.0 is fully functional but the bootstrap floor constant prevented it from
being recognized, causing bootstrap to report MISSING: no-mistakes.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Update documentation and diagnostic skill to reflect the new version floor for
no-mistakes after its re-versioning from 1.x to 0.x scheme.

- CONTRIBUTING.md: update minimum version requirement
- bootstrap-diagnostics SKILL.md: update version reference in diagnostic handling

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Update the comment documenting the no-mistakes version floor from 1.31.2 to 0.40.0.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Aug 24, 2026

Copy link
Copy Markdown

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Reviews (3): Last reviewed commit: "docs: add policy comment for NO_MISTAKES..." | Re-trigger Greptile

Comment thread bin/fm-bootstrap.sh
Comment thread CONTRIBUTING.md
desnor and others added 2 commits August 24, 2026 16:29
Update all version-specific references and test fixtures to reflect the new
no-mistakes version floor of 0.40.0:

- docs/configuration.md: update toolchain documentation
- tests/fm-bootstrap.test.sh: update test fixtures to use correct boundary
  versions (0.40.0 for accepted, 0.39.9 for rejected below floor, 0.41.0 for
  minor version bump test)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Update fake no-mistakes binary output in all test files to use the new
version floor 0.40.0 instead of 1.31.2 for consistency across the entire test
suite.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@desnor desnor changed the title fix: lower no-mistakes version floor from 1.31.2 to 0.40.0 fix(bootstrap): lower no-mistakes version floor from 1.31.2 to 0.40.0 Aug 24, 2026
…OR POLICY

The NO_MISTAKES_MIN constant was lowered from 1.31.2 to 0.40.0 in an earlier
commit but was left without an explanatory comment, unlike the co-located
AXI-FAMILY FLOOR POLICY block that explains why axi floors move differently.
Add the parallel comment that documents what NO_MISTAKES_MIN represents and
why it is not bumped on every captain update, removing the inconsistency.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant