Skip to content

Rename Dawn AI to B4.run - #595

Merged
blove merged 23 commits into
mainfrom
blove/b4-run-rename
Sep 8, 2026
Merged

blove merged 23 commits into
mainfrom
blove/b4-run-rename

Conversation

@blove

@blove blove commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Renames the framework, its distribution identities, its deployment artifacts and the website from Dawn AI to B4.run. Clean break: no redirects inside the product, no package aliases, no CLI fallbacks, no old config or state discovery.

Summary

  • Packages — all 20 scoped packages move to @b4run/*, the scaffolder becomes create-b4-app, the CLI executable becomes b4, config becomes b4.config.ts and local state becomes .b4/. Branded identifiers, environment variables and error codes follow. Neutral and vendor-defined names are left alone.
  • Repository identity — this repository, id 1210070282, is now B4.run's home. Because it is also the historical Dawn repository, its numeric id no longer separates B4.run authority from historical Dawn authority. The remaining discriminators are the repository name frozen into every historical document and the exact candidate, workflow and pin digests. A test forges a historical authorization's repository field to the adopted name and proves it is still rejected.
  • Release system — repository, workflow and signer identities repointed, content pins recomputed, and the historical security-receipt uploader disabled pending a B4-specific implementation. Historical release evidence, incident tooling and scripts/security/ are byte-identical to the baseline.
  • First publication — adds a default-off, expiring, candidate-bound npm bootstrap so the 21 new package names can be created before trusted publishing can be configured. It is inert until an owner provisions the credential and authorization.
  • Brand and media — wordmarks, icons, the downloadable kit and all eight demo recordings regenerated from the renamed scaffold and Workbench.
  • Charts and deployment — b4-app and b4-sandbox-infra, with Kubernetes labels under the owned b4.run namespace.

Test plan

  • pnpm ci:validate end to end
  • Release controller 3,660 tests, release integrity 33, identity boundary 5
  • Live vercel-native lane: 300 checks, both preview kinds, closed cleanup receipt
  • Both Helm charts: lint, render and four kubeconform configurations
  • Live OpenAI provider checks across seven suites
  • Browser verification of the built site: desktop and mobile, all 83 sitemap pages, hosted media playback
  • Cross-platform CI lanes that need infrastructure unavailable locally

Not included

Publishing the packages, merging to main, and retiring the old npm packages remain owner-gated. Merging this before the packages exist would leave the documentation advertising install commands that do not resolve.

🤖 Generated with Claude Code

blove and others added 17 commits September 7, 2026 13:10
…cy example outputs

- Kubernetes labels/annotations use the owned b4.run namespace instead of b4.sh,
  including escaped JSONPath/Helm selectors; the reaper stub verifies the exact
  annotation selector.
- Restore scripts/deprecate-legacy-dawn-versions.sh to its original Dawn targets;
  it is historical and must never target B4 packages.
- Add test/security-dependencies/brand-migration.test.ts: a tracked-filename and
  content gate with explicit per-file historical/negative-test exceptions.
- Remove 26 tracked legacy .dawn build/state outputs accidentally added to examples.
- Fix the Run clip caption at its source so uploads preserve the checkpoint wording.
- Record the first-publication bootstrap design and update the plan/audit docs.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…eligibility

Add scripts/release/npm-bootstrap.mjs: the strict parser for the owner-managed
B4_NPM_BOOTSTRAP_AUTHORIZATION document (exact schema, canonical bytes, bounded
size, canonical UTC timestamps, <=24h window), the identity binding to the
selected candidate, sealed manifest, release record, GitHub environment and
repository id 1360603908, the per-mutation window check, the credential shape
check, and credential redaction. The 21-name set is code-owned.

Add a dedicated first-publication npm reader that reports whole-package absence
only from npm's actual public not-found bodies on both trusted endpoints, keeps
proxy/auth/redirect/malformed/conflicting 404s ambiguous, exposes the complete
version set, and admits only the exact candidate version as a prior state. The
default observePackageMetadata/observePackageVersion behaviour and their
ambiguous-404 assertions are unchanged.

Thread an optional literal-boolean npmBootstrap through the sealed manual event
parser and the observe CLI so read-only detection can select that reader before
artifacts exist; it receives no credential and confers no authority.

Add --npm-auth-mode oidc|bootstrap (default oidc) to the publisher. Only
bootstrap mode reads B4_NPM_BOOTSTRAP_AUTHORIZATION and B4_NPM_BOOTSTRAP_TOKEN,
validates them after artifact verification and before any npm process, and
publishes through the same serial publisher with firstPublication enabled.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…npm output

createNpmAuditVerifier accepts an explicit { bootstrap: { token } } option,
validated before any directory exists. Only the publish home's private .npmrc
receives the literal //registry.npmjs.org/:_authToken=${B4_NPM_BOOTSTRAP_TOKEN}
reference and only publisherEnvironment() exports the value, so the token reaches
npm publish alone; npm --version, audit signatures, and every other child keep
empty configs. OIDC construction is unchanged and still strips ambient tokens.

The publisher passes the option only after bootstrap policy validation, redacts
the credential (literal, base64, base64url, hex, URL- and JSON-encoded forms)
from captured stdout/stderr and from every thrown error including nested
process failure fields, and now runs verifier cleanup itself when the overall
deadline expires instead of leaving it to the abandoned in-flight run.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Add the default-false boolean workflow_dispatch input npmBootstrap. The detect
seal writes it into the manual event as a literal boolean (NPM_BOOTSTRAP ===
"true") and the exact-tag relay forwards it unchanged so the relayed run keeps
the read-only first-publication reader; neither receives a credential.

The single publisher step derives NPM_AUTH_MODE, B4_NPM_BOOTSTRAP_AUTHORIZATION
and B4_NPM_BOOTSTRAP_TOKEN from 'inputs.npmBootstrap == true && X || ""'
expressions in step env (never interpolated into shell) and passes
--npm-auth-mode "$NPM_AUTH_MODE". Push and scheduled runs cannot satisfy the
literal boolean, a present secret alone activates nothing, and the sparse
checkout now includes scripts/release/npm-bootstrap.mjs.

The workflow contract asserts the exact bindings and a mutation suite proves
each activation binding fails closed when removed or weakened. The reviewed
descriptor and executable fixtures are refreshed for the three changed steps;
the disabled-abandonment fixture and content pins follow in the pin update.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…iry replacement

Cover all-absent initial publication, resume from a verified prefix, resume
after an accepted-but-lost publish at the first, middle, and last package, and
an all-verified replay with no npm writes. Corrupt existing bytes, unrelated
versions, invalid or missing provenance, registry ambiguity, and a newer latest
each stop before any further mutation; a pre-mutation newer latest is the
existing superseded no-op.

Expiry between packages stops mutation after the twelfth publish; a rerun with
the expired window publishes nothing; replacement windows bound to a different
commit, manifest, record, or version are refused; a same-candidate replacement
window with a replacement credential publishes only the remaining nine, and
the final replay needs no token mutation.

Add createFirstPublicationRehearsalNpmReader to the rehearsal fixture boundary
so the real first-publication reader runs over the Verdaccio harness with
npm-shaped not-found bodies: whole-package absence, proxy-injected 404 and 401
staying ambiguous, exact presence after the harness publish primitive, and
foreign-version refusal.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
… the B4 disabled fixture

Add scripts/release/npm-bootstrap.mjs to the content-pin inventory and the
dormant recovery closure inventory (npm-audit.mjs now imports it; the closure
stays exhaustively listed with no admitted verifier digest), recompute the
pins for exactly the reviewed changed modules (adapters/npm.mjs, cli.mjs,
npm-audit.mjs, observe.mjs, publisher.mjs, recovery/policy.json), and update
STARTING_SCRIPT_PIN_SHA256 from the pin-file bytes.

Refresh the renamed-b4-disabled-2026-09-07 fixture to the reviewed current
release.yml bytes and its canonical digest; the abandonment classifier admits
the B4 disabled topology (the default-false boolean input and the relay that
forwards it) as a second disabled shape while the historical disabled and
protected variants stay byte-identical and mixed shapes still fail closed.
This grants no abandonment or recovery permission.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…le fixtures

The renamed typegen header is 12 bytes shorter than the Dawn one; both
Verdaccio lifecycle fixtures still recorded the old renderedBytes.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
… diagnostics

redactBootstrapError copied non-string, non-Error own properties verbatim, so a
captured {stdout, stderr} object or an array of log lines hung off a rejection
would have leaked the credential through JSON rendering. Every container is now
rebuilt with redacted contents, cycle-safe through the existing seen map; exotic
instances collapse to a redacted string rather than a wrong-prototype copy. The
original error is never mutated.

Unreachable with today's process runner, which throws a bare Error; this closes
the gap the design requires of the redaction shape itself.

Co-Authored-By: Claude Opus 5 <[email protected]>
The owner renamed the original repository rather than publishing to the
separate empty one, so B4.run inherits repository id 1210070282 and the slug
cacheplane/b4run. Repoints 166 files, recomputes the affected content pins and
the pin-file checksum.

Because B4.run now IS the original repository, its numeric id no longer
separates B4.run authority from historical Dawn authority. The remaining
discriminators are the repository name frozen into every historical document
and the exact candidate, workflow and pin digests. A new test forges the
historical authorization's repository field to the adopted name and proves it
is still rejected on those bindings.

Also corrects two links the earlier mechanical rename got wrong: the footer
pointed at a nonexistent npm organization, and three escaped-regex slugs kept
the unused hyphenated spelling.

Co-Authored-By: Claude Opus 5 <[email protected]>
@vercel

vercel Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
b4-run Ready Ready Preview Sep 8, 2026 2:42am UTC

Request Review

Amends the plan's no-redirect constraint at the two places the owner changed
it: the repository was renamed in place, so GitHub's rename redirect is
accepted, and dawnai.org now issues a path-preserving 301 to b4.run to retain
search backlinks. Neither exception reaches the framework.

Regenerates the last-modified manifest for the eight pages whose content the
slug repoint changed, and recomputes five reviewed brand-gate digests.

Co-Authored-By: Claude Opus 5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

…point broke

Adopting the original repository's id made three negative cases vacuous: they
proved a foreign repository is rejected by using the other repository's id,
which is now our own. They use an unrelated id instead.

Regenerates the three synthetic provenance certificates, whose subject
alternative names still carried the unused slug; the fork case stays
deliberately mismatched.

Replaces three assertions that built regular expressions out of the encoded
credential. Base64 and percent-encoded forms can contain regex metacharacters,
so those assertions could throw or match the wrong thing; exact substring
checks are correct for any token. CodeQL flagged one of them.

Co-Authored-By: Claude Opus 5 <[email protected]>
The slug repoint matched only the owner-qualified form, so sixteen bare
"b4-run" repository fields survived, including three in production modules
that build GitHub API URLs. Those would have addressed a repository that no
longer exists. The root workspace package keeps its own name.

Also broadens the abandonment tampering assertion. Flipping one base64
character can fail at decoding, UTF-8 JSON parsing, canonical re-encoding or
digest comparison, and the shorter slug moved which layer catches it; the
test's claim is that tampering is rejected, not which layer rejects it.

Co-Authored-By: Claude Opus 5 <[email protected]>
…opted slug

The guard rejects production repositories case-insensitively, but the variant
entry still lowercased to the unused hyphenated spelling, so it no longer
matched and the guard appeared not to fire.

Co-Authored-By: Claude Opus 5 <[email protected]>

This branch was successfully deployed

1 active and 1 inactive deployments
Preview — 1ff649b0 Deployed Sep 8, 2026 by vercel[bot]
vercel-preview — 1ff649b0 Deployed Sep 8, 2026 by blove via vercel-native #1723
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.

2 participants