Skip to content

chore(brand): sync sync-brand-numbers.mjs from blockrun - #128

Merged
VickyXAI merged 1 commit into
mainfrom
chore/sync-brand-script
Sep 2, 2026
Merged

chore(brand): sync sync-brand-numbers.mjs from blockrun#128
VickyXAI merged 1 commit into
mainfrom
chore/sync-brand-script

Conversation

@VickyXAI

@VickyXAI VickyXAI commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Vendored copy of brand/sync-brand-numbers.mjs from BlockRunAI/blockrun.

blockrun's ci.yml runs brand-script-sync, which compares every consumer's copy against the canonical one and fails on drift. This PR must land before BlockRunAI/blockrun#469, which carries the canonical change and is red until the consumers update.

Four fixes in this build:

  • Markers inside fenced code blocks were skipped by the rewriter and by --check, so a number in an ASCII diagram went stale under a green build. They can now opt in with @live, and any fenced marker whose value actually disagrees with the artifact is reported (non-fatal).
  • Fence ranges were measured once against the original text but tested against the accumulating result. A badge expands 2 characters into ~150, so every later fence test read the wrong bytes. Recomputed per marker.
  • An unterminated fence was dropped rather than closed at EOF, silently treating the rest of the file as live prose.
  • Only git-tracked files are rewritten was in the header but nothing implemented it. Now filtered through git ls-files, falling back to the full walk outside a git checkout.

No change to this repo's numbers — script only. Opened by a propagation run, not hand-edited.

Vendored copy update. blockrun/ci.yml's brand-script-sync fails on any drift
from brand/sync-brand-numbers.mjs, so this must land before BlockRunAI/blockrun#469.

Fixes in this build: markers inside fenced blocks can opt in with @LiVe and any
that silently drift are now reported; fence offsets are recomputed per marker
(a badge expands 2 chars to ~150 and shifted every later fence test); an
unterminated fence now runs to EOF instead of un-fencing the tail; and the walk
is filtered through git ls-files, which the header always claimed but never did.
@VickyXAI
VickyXAI merged commit 7e0e9ae into main Sep 2, 2026
1 check passed
@VickyXAI
VickyXAI deleted the chore/sync-brand-script branch September 2, 2026 14:54
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