Repository navigation
Rename Dawn AI to B4.run - #595
Merged
Merged
Conversation
…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]>
…publication Co-Authored-By: Claude Fable 5.1 <[email protected]>
…jected Dawn identity Co-Authored-By: Claude Fable 5.1 <[email protected]>
…entation Co-Authored-By: Claude Opus 5 <[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]>
…klist 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]>
…slug Co-Authored-By: Claude Opus 5 <[email protected]>
blove
had a problem deploying
to
vercel-preview
September 8, 2026 01:24 — with
GitHub Actions
Failure
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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]>
blove
had a problem deploying
to
vercel-preview
September 8, 2026 01:26 — with
GitHub Actions
Failure
…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]>
blove
had a problem deploying
to
vercel-preview
September 8, 2026 01:38 — with
GitHub Actions
Failure
Co-Authored-By: Claude Opus 5 <[email protected]>
blove
had a problem deploying
to
vercel-preview
September 8, 2026 01:39 — with
GitHub Actions
Failure
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]>
Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Sep 8, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
@b4run/*, the scaffolder becomescreate-b4-app, the CLI executable becomesb4, config becomesb4.config.tsand local state becomes.b4/. Branded identifiers, environment variables and error codes follow. Neutral and vendor-defined names are left alone.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.scripts/security/are byte-identical to the baseline.b4-appandb4-sandbox-infra, with Kubernetes labels under the ownedb4.runnamespace.Test plan
pnpm ci:validateend to endvercel-nativelane: 300 checks, both preview kinds, closed cleanup receiptNot 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