Skip to content

fix(brand): keep checksum-pinned files and the Linux package check out of the rename - #85

Open
zereight wants to merge 1 commit into
mainfrom
fix/brand-rename-pinned-files
Open

zereight wants to merge 1 commit into
mainfrom
fix/brand-rename-pinned-files

Conversation

@zereight

@zereight zereight commented Dec 2, 2026

Copy link
Copy Markdown
Owner

What changed

  • Restored seven files to upstream 7a3d80c, byte for byte. In each, the rename changed one line from OpenMausBot to OpenMyBot:
    • companion/src/e2e/vectors/v1.json, companion/src/e2e/gen-vectors.ts, relay/test/vectors/e2e-v1.json: the about text.
    • evals/live/judge/prompts/open-ended-v1.md, reply-habits-v1.md: the first line.
    • shared/package-fixtures/legacy-team.v1.json, legacy-botmrr.v1.md: the team name.
  • scripts/verify-linux-package.mjs: the .deb desktop entry check expects Name=OpenMausBot again.
  • scripts/brand-rename.mjs: these files are added to SKIP_PATHS, so the next --apply after an upstream merge leaves them alone.
  • skills/openmausbot-docs/manifest.json: "openmybot" is a trigger term.
  • server/turn-prompt-budget.test.ts: the codex:volatile-note baseline goes from 97 to 95.
  • .gitattributes: scripts/brand-rename.mjs is pinned to LF.
  • docs/brand-rename.md: the "What is kept" table and the "cannot do" note list the files above.

shared/package-fixtures/manifest.json stays renamed: its two message strings must equal what shared/package-format.ts returns, and that code now says OpenMyBot.

Why

These main CI checks fail for one reason. The OpenMausBot -> OpenMyBot rename (#35, re-applied after the 0.1.175 sync in e8fc8d7, #42) rewrote files whose bytes are pinned elsewhere:

failing check pinned by
behavior evals: evals/live/live-suite.test.ts, "open-ended-v1.md does not match its manifest checksum; … must be bumped, not edited" evals/live/judge/prompts/manifest.json
companion/test/e2e/vectors.test.ts, src/lib/e2e/vectors.test.ts, relay test/token.test.ts:17 (got f55ef3a6…, pinned 5471a007…) companion/src/e2e/vectors/v1.sha256, PINNED_VECTORS in relay/test/token.test.ts (the phone apps keep copies too, per .gitattributes)
shared/package-format.test.ts: legacy-team.v1.json, legacy-botmrr.v1.md do not match manifest.json shared/package-fixtures/manifest.json
package + smoke: DEB desktop entry is missing "Name=OpenMyBot" (job 142553812668, run 46621767146) electron-builder.yml:243 Name: OpenMausBot. The rename skips this file on purpose: productName drives userData and the Keychain item, so it changes only together with a data migration (docs/brand-rename.md). The check verifies that package, so it uses the package's name.

Three more checks fail from the same rename:

  • server/skill-openmausbot-docs.test.ts: "Where does OpenMyBot keep its bots?" no longer mounts the docs skill.
    • Trigger terms are lowercase substrings, and the rename keeps lowercase names, so the list had openmausbot but not openmybot.
    • This is a product regression, not only a test failure: a person who types the name the app shows never gets the docs guide.
  • server/turn-prompt-budget.test.ts: codex:volatile-note: 95 bytes against 97. The note's "OpenMausBot" became "OpenMyBot", 2 bytes shorter, which puts the ratio at 0.979, under the 0.98 floor. claude:volatile-note still measures 178, so its baseline does not change.
  • src/lib/brand-name.test.ts on Windows: SyntaxError: Invalid or unexpected token at import. scripts/brand-rename.mjs starts with a shebang. A CRLF checkout breaks Vite's shebang strip, which is the reason scripts/tighten-ratchets.mjs and scripts/sync-phone-protocol.mjs are already pinned to LF.

How it was verified

macOS, Node v24.22.1 (the CI version). Before is main 8c67e9d and after is this branch c9b1468, with the same commands.

Before shows the pinned checksums failing and an import SyntaxError; after shows the same checks passing.

check Before (main 8c67e9d) After (this branch)
pnpm exec vitest run evals/live/live-suite.test.ts shared/package-format.test.ts companion/test/e2e/vectors.test.ts src/lib/e2e/vectors.test.ts server/skill-openmausbot-docs.test.ts server/turn-prompt-budget.test.ts src/lib/brand-name.test.ts Test Files 6 failed | 1 passed (7), Tests 7 failed | 212 passed (219) Test Files 7 passed (7), Tests 219 passed (219)
cd relay && node --test test/token.test.ts fail: actual f55ef3a6…, expected 5471a007… pass 18, fail 0
cd relay && pnpm test — tests 107, pass 107, fail 0
node companion/src/e2e/gen-vectors.ts --check vectors are stale, exit 1 vectors are current, exit 0
behavior evals job steps: tsc -p evals/tsconfig.json, vitest run --config evals/vitest.config.ts, pnpm eval, pnpm eval --golden CI: FAIL evals/live/live-suite.test.ts > judge prompts > verify the manifest checksum tsc exit 0; Test Files 17 passed (17), Tests 100 passed (100); 6 scenarios PASS; 1 golden PASS
node scripts/brand-rename.mjs --check (the rename guard) 0 files would change, 0 would move 0 files would change, 0 would move: the restored names sit in skipped files
git check-attr eol and git -c core.autocrlf=true cat-file --filters HEAD:scripts/brand-rename.mjs, line 1 eol: unspecified, #!/usr/bin/env node\r\n eol: lf, #!/usr/bin/env node\n
a one-line vitest import of that Windows-style file (scratch folder, vitest defaults) SyntaxError: Invalid or unexpected token, the same error as the Windows CI log Tests 1 passed (1)
package + smoke desktop entry CI: DEB desktop entry is missing "Name=OpenMyBot" expects Name=OpenMausBot, which is what electron-builder.yml:243 writes. Not run locally

The restored files are identical to 7a3d80c (git diff --quiet 7a3d80c96 -- <files> exits 0). oxlint on the changed scripts exits 0. Other tests that read these files also pass: scripts/sync-phone-protocol.test.mjs, server/decider/auto-room-compat.test.ts, server/team-library.test.ts, shared/share-folder.test.ts, scripts/ci-scope.test.ts (187 tests).

Not covered

  • package + smoke was not run locally. It needs an Ubuntu runner and a built .deb; this PR's CI is the check.
    • The steps after verify-linux-package.mjs (smoke-deb-upgrade, smoke-browser-bundle, run-linux-package-smoke) have not run on main since the rename, because that check failed first.
    • Their renamed strings are self-contained (failure messages, fixture package metadata, window titles the script itself creates and then looks for). That was read, not run.
  • Windows was not run. The CRLF failure was reproduced on macOS with git's own core.autocrlf=true conversion.
  • cloudflare/control-plane/test/relay.test.ts was not run (its dependencies are not installed). It imports vectors/v1.json but reads only V8, not about.
  • scripts/ci-scope.test.ts and local environment. In this shell it failed 10 tests: FORCE_COLOR and NO_COLOR are both set, and Node writes a warning to stderr. With both unset, all 187 pass, so this is unrelated to the change.
  • Other main failures are separate and not touched. These include the relay pnpm audit (GHSA-37g9-w4hg-h9qr, ws 8.22.0), other vitest shard files and the renderer smoke e2e files.

Checklist

  • pnpm typecheck and pnpm test pass locally: not run in full. The touched tests, the relay suite and the eval steps pass.
  • Server behavior changes come with tests: the skill trigger term is covered by the existing server/skill-openmausbot-docs.test.ts
  • No dist-server/ edits
  • macOS-only code is platform-gated: none added
  • No secrets in logs, responses, events, or argv

…t of the rename

The OpenMausBot -> OpenMyBot rename rewrote one line in files whose bytes are
pinned by SHA-256 (E2E wire vectors, live-eval judge prompts, legacy package
fixtures), so every pin failed. Restore them to upstream and add them to
SKIP_PATHS. scripts/verify-linux-package.mjs checks the .deb built from
electron-builder.yml, which the rename keeps, so it expects Name=OpenMausBot
again and is skipped too.

Also: the docs skill triggers on "openmybot", the codex volatile-note budget
follows the 2-byte shorter note, and scripts/brand-rename.mjs is pinned to LF
so a Windows checkout can import it.
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