Skip to content

fix(OMN-20525): pin bump banner reuses the indent of the line it replaces - #1883

Merged
jonahgabriel merged 2 commits into
devfrom
OMN-20525-pin-bump-indent
Oct 4, 2026
Merged

jonahgabriel merged 2 commits into
devfrom
OMN-20525-pin-bump-indent

Conversation

@jonahgabriel

@jonahgabriel jonahgabriel commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Lab: host=h201 (headless lane pin-bump-indent) head=61e5a3c7b0f2f382d156ed6186acd8413c8f6d99 command='uv run pytest tests/unit/scripts/test_pin_bump.py -q -n 0' observed 23 passed (RED at 445bc2a: 5 failed). Focused file only, run in the lane worktree; pre-commit hooks ran on both commits.

fix(OMN-20525): pin bump banner reuses the indent of the line it replaces

Problem

scripts/pin_bump.py _rewrite_banner built the banner with 10 hard-coded leading spaces, while BANNER_OLD_RE/BANNER_ANY_OLD_RE began at #. This caused the old indent to remain in front, adding +8 spaces per bump. This pushed omninode_infra .github/workflows/check-handshake.yml:29 over yamllint max 150 (omninode_infra#1797).

Fix

Both regexes now capture the line's leading whitespace; the replacement reuses it (two-line form keeps the first line's indent). Pin-site rewriting is untouched.

Verification

  • RED commit 445bc2a142: 5 new tests fail (e.g. banner length 99 vs 109 after two bumps).
  • Fix commit 61e5a3c7b0: tests/unit/scripts/test_pin_bump.py 23 passed.

Impact Survey

Survey of open bot/bump-omnibase-core-pin-* PRs (banner line length after bump, limit 150):

  • omniclaude#2538: 129
  • omnidash#356: 119
  • omnidash#352: 119
  • omninode_infra#1797: 85 (removed line was 145)

None exceed 150.

Note: omnimemory#579, omniintelligence#1000, omnibase_spi#342, omnibase_infra#4553 are already MERGED.

Evidence-Ticket: OMN-20525
Evidence-Source: OCC#12787

@jonahgabriel
jonahgabriel requested a review from a team as a code owner October 4, 2026 11:37
jonahgabriel pushed a commit to OmniNode-ai/onex_change_control that referenced this pull request Oct 4, 2026
…12787)

* evidence(OMN-20525): author OCC companion for OmniNode-ai/omnibase_core#1883

OCC companion by node_pr_lifecycle_fix_effect (OMN-13317 F1 / OMN-13990 / OMN-14285). Product PR head 61e5a3c7b0f2f382d156ed6186acd8413c8f6d99.

* evidence(OMN-20525): self-bind OCC#12787 + rebind contract_sha256

---------

Co-authored-by: omnimarket-bot <bot@omninode.ai>
@jonahgabriel
jonahgabriel changed the base branch from main to dev October 4, 2026 11:55
@jonahgabriel
jonahgabriel enabled auto-merge (squash) October 4, 2026 11:57
@jonahgabriel
jonahgabriel merged commit 03e2745 into dev Oct 4, 2026
373 of 398 checks passed
@jonahgabriel
jonahgabriel deleted the OMN-20525-pin-bump-indent branch October 4, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant