Skip to content

Let the release controller read its pre-rename history, and start its train at 0.8.27 - #597

Merged
blove merged 7 commits into
mainfrom
blove/b4-historical-identity-reads
Sep 8, 2026
Merged

blove merged 7 commits into
mainfrom
blove/b4-historical-identity-reads

Conversation

@blove

@blove blove commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

The first bootstrap dispatch failed, and the cause was not npm. Adopting this repository's existing identity left the release controller unable to read the history it consults on every run, and pointed it at an old release it cannot finish.

What was broken

  • The committed v0.8.22 terminal record embeds the previous repository's attestation identity and package family. Discovery reads that record on every run, so it blocked everything.
  • Release inventories and sealed manifests at pre-rename commits name the previous package family.
  • With the bootstrap flag set, the first-publication reader replaced the default reader for the whole run, so every already-published version read as ambiguous. That is the over-broad selection the bootstrap design warns against.
  • The controller selected v0.8.24 as its outstanding candidate. That release stalled under the previous identity, and this repository deliberately cannot recover it because its recovery policy is dormant.

What this changes

  • Marker reading accepts either identity this repository has released under. Sealed manifests and npm evidence accept either canonical package family, and either sealed dependency order. The historical order is written out, taken from the v0.8.24 release manifest, so changing the current group cannot rewrite what history says was published.
  • The first-publication reader is consulted only for a not-found on a package in the current family.
  • Releases made before B4.run's first version are not routed into recovery, applied where Releases and reservations are first enumerated so no pre-rename evidence is read.

Reading is not authorization. Publication remains bound by the sealed manifest, the code-owned package set and verified provenance. The audit executor and the dormant recovery policy are unchanged, and their tests still pass.

Test plan

  • A new regression test parses the real committed terminal record through the current validator. The existing historical suites could not catch this class, because they run against a frozen archive of the pre-rename code.
  • Release integrity, identity boundary and workflow contract suites pass; content pins recomputed.
  • Full release controller suite and CI.

🤖 Generated with Claude Code

blove and others added 4 commits September 7, 2026 21:23
Adopting the B4.run identity made the release controller unable to read the
history it must consult on every run, which blocked all releases:

- The committed v0.8.22 terminal record embeds the original repository's
  attestation identity and package family. Marker validation now accepts either
  canonical identity, and npm evidence either canonical package family, so
  frozen records stay readable. Reading a record is not authorization: what a
  candidate may publish is bound by its sealed manifest, and the audit executor
  and dormant recovery policy are unchanged.
- Release inventories at pre-rename commits name the original package family.
  The production inventory reader accepts exactly the two known families.
  Version is not a usable discriminator, because the rename commit carries the
  new family at the previous version number.
- With the bootstrap flag set, the first-publication reader replaced the default
  reader for the entire run, so every already-published historical version read
  as ambiguous. It is now consulted only for a not-found on a package in the
  current family, which is the narrow selection the design requires.

Adds a regression test that parses the real committed terminal record through
the current validator. The existing historical suites could not catch this
because they run against a frozen archive of the pre-rename code.

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

NOT READY TO MERGE. Records the investigation so it is not lost: adds a floor so
the controller does not adopt release or recovery state created under the
previous identity, plus two-family acceptance for sealed manifests. The floor is
not yet applied at every seam that reads recovery evidence, so discovery still
fails on a dispatch.

Co-Authored-By: Claude Opus 5 <[email protected]>
The controller was selecting v0.8.24 as its outstanding candidate: a release
made under the previous identity whose ceremony stalled, and whose recovery this
repository deliberately cannot perform because its recovery policy is dormant.
That blocked every new release.

Releases created before B4.run's first version are no longer routed into
recovery. This is applied where GitHub Releases and recovery reservations are
first enumerated, so no pre-rename evidence is read at all. It matches both tag
shapes this repository has used, checking per-package tags against the exact
historical package names so it cannot misfire on a current one. A B4.run release
is always a fixed-group tag at or above the floor.

Marker reading now accepts either identity this repository has released under.
The previous identity is a frozen, known value that appears throughout evidence
written before the rename. Reading is not authorization: publication remains
bound by the sealed manifest, the code-owned package set and verified provenance,
and the audit executor and dormant recovery policy are unchanged.

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 3:10pm UTC

Request Review

@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.

…tory

Replaces the version floor, which was too blunt: it changed behaviour for every
existing fixture and broke 33 tests. Recovery subjects carry the repository they
were reserved under, which is exact. A subject naming a repository other than
this one is skipped where subjects are collected; one naming this repository, or
naming none, is handled exactly as before, so existing behaviour is unchanged.

The stalled v0.8.24 recovery was reserved under the previous identity, which no
longer exists and whose recovery authority this repository deliberately does not
inherit. Its packages and Release are already public.

Co-Authored-By: Claude Opus 5 <[email protected]>
The first-publication reader consults the code-owned package family, so the npm
adapter now imports the manifest module, which brings the topology module with
it. Both are declared in the probe closure and repinned.

Co-Authored-By: Claude Opus 5 <[email protected]>
…d of importing it

Importing the manifest into the npm adapter widened two declared executable
closures, including the recovery fence probe's. A security closure should stay
narrow, so the caller supplies the eligible package family instead. With none
supplied the reader is exactly the default reader, so the widened reading cannot
be reached by accident. Reverts both closure declarations.

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

This branch was successfully deployed

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