Skip to content

fix: release pipeline + 4-digit version support (v0.8.10)#34

Merged
kbitz merged 6 commits into
mainfrom
kbitz/roadmap-update-fixes
Apr 15, 2026
Merged

fix: release pipeline + 4-digit version support (v0.8.10)#34
kbitz merged 6 commits into
mainfrom
kbitz/roadmap-update-fixes

Conversation

@kbitz

@kbitz kbitz commented Apr 15, 2026

Copy link
Copy Markdown
Owner

Summary

Release pipeline fix: Three issues, one root cause. The update-check system was silently stuck for installed copies, version validation was too loose, and the public repo had zero git tags.

Infrastructure

  • GitHub Action (auto-tag.yml) creates annotated git tags automatically when VERSION changes on merge to main. Idempotent, validates format, uses default GITHUB_TOKEN.
  • 24 historical git tags backfilled (v0.1.1 through v0.8.9.0) from PROGRESS.md commit history.

Bug fixes

  • Version validation regex tightened in bin/update-check to reject malformed versions (double dots, trailing dots, 5+ segments). Now matches the bin/roadmap-audit pattern.
  • bin/roadmap-audit: replaced bash 4+ associative arrays (declare -A, local -A) with bash 3-compatible helpers. Stock macOS (bash 3.2) was crashing, silently skipping check_unprocessed() and check_mode().
  • Fixed stale setup test expectations (2→3 default skills after full-review was added in v0.8.0).

Documentation

  • README versioning section defining MAJOR.MINOR.PATCH.MICRO semantics.
  • Gist bridge comment in bin/update-check explaining why the old gist URL must be kept alive.
  • Replaced stale gist-migration example in roadmap skill.

Test Coverage

Tests: 128 total (45 update + 83 roadmap-audit), 0 failures.
16 new tests added: semver 4-digit comparisons, regex validation, update-check upgrade detection.

Pre-Landing Review

No issues found. 2 adversarial findings auto-fixed (VERSION format validation in auto-tag Action, tighter test assertion).

Post-merge manual step

Update gist 511b8a4861f7b4df3a7fedd42911c701 to match VERSION so pre-0.8.8.1 installs can discover the upgrade.

Test plan

  • All update tests pass (45/45)
  • All roadmap-audit tests pass (83/83)
  • Regex accepts valid versions (0.8.9, 0.8.9.0, 1.0.0)
  • Regex rejects invalid versions (1..2, 1.2., 1.2.3.4.5)
  • 4-digit version comparison works (0.8.9.1 > 0.8.9.0)

kbitz added 6 commits April 15, 2026 01:02
check_structural_fitness() used `declare -A` and check_doc_inventory() used
`local -A`, both requiring bash 4+. Stock macOS ships bash 3.2, causing the
script to crash silently and skip check_unprocessed() and check_mode().

Replaced with string-based key=value helpers (_kv_get, _kv_set, _kv_keys)
and linear search helpers (_is_root_doc, _is_project_doc). Fixes 3
pre-existing test failures.
Version validation regex in update-check tightened from the loose
^[0-9]+\.[0-9.]+$ (accepted malformed versions like 1..2) to
^[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?$ (enforces exactly X.Y.Z or X.Y.Z.W),
matching the roadmap-audit pattern.

Added comment explaining the permanent gist bridge for pre-0.8.8.1 installs.
16 new tests: semver 4-digit comparisons (5), regex validation for valid
and invalid versions (14), update-check upgrade detection with MICRO
versions (2). Fixed stale setup test expectations (2→3 default skills,
3→4 with --with-native). 45 tests, 0 failures.
Creates annotated git tags (vX.Y.Z.W) automatically when VERSION changes
on merge to main. Idempotent: skips if tag already exists. Validates
VERSION format before tagging. Uses default GITHUB_TOKEN with contents:write.
README now defines MAJOR.MINOR.PATCH.MICRO semantics with examples.
Replaced stale gist-migration example in roadmap skill with generic example.
@kbitz
kbitz merged commit 7366e91 into main Apr 15, 2026
kbitz added a commit that referenced this pull request Apr 24, 2026
* fix: replace bash 4+ associative arrays with bash 3-compatible helpers

check_structural_fitness() used `declare -A` and check_doc_inventory() used
`local -A`, both requiring bash 4+. Stock macOS ships bash 3.2, causing the
script to crash silently and skip check_unprocessed() and check_mode().

Replaced with string-based key=value helpers (_kv_get, _kv_set, _kv_keys)
and linear search helpers (_is_root_doc, _is_project_doc). Fixes 3
pre-existing test failures.

* fix: tighten version regex and add gist bridge comment

Version validation regex in update-check tightened from the loose
^[0-9]+\.[0-9.]+$ (accepted malformed versions like 1..2) to
^[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?$ (enforces exactly X.Y.Z or X.Y.Z.W),
matching the roadmap-audit pattern.

Added comment explaining the permanent gist bridge for pre-0.8.8.1 installs.

* test: add 4-digit version and update-check tests

16 new tests: semver 4-digit comparisons (5), regex validation for valid
and invalid versions (14), update-check upgrade detection with MICRO
versions (2). Fixed stale setup test expectations (2→3 default skills,
3→4 with --with-native). 45 tests, 0 failures.

* feat: auto-tag GitHub Action on VERSION change

Creates annotated git tags (vX.Y.Z.W) automatically when VERSION changes
on merge to main. Idempotent: skips if tag already exists. Validates
VERSION format before tagging. Uses default GITHUB_TOKEN with contents:write.

* docs: add versioning section to README, update roadmap example

README now defines MAJOR.MINOR.PATCH.MICRO semantics with examples.
Replaced stale gist-migration example in roadmap skill with generic example.

* chore: bump version and changelog (v0.8.10)
@kbitz
kbitz deleted the kbitz/roadmap-update-fixes branch April 24, 2026 19:13
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