Repository navigation
Document the rename to @unicitylabs/proof-cli - #7
Conversation
Records what the rename covers and, more importantly, what it must not touch. The seed string `unicity-timestamp` is the token format's wire identifier: the token type is its SHA-256, the burn predicate's reason bytes are its UTF-8, and it is the domain tag inside the payload signature. Renaming it would give every future stamp a different token type, recipient and signature domain, and no token already certified would verify. The brand and the format therefore disagree on purpose, which is worth having written down before someone makes them agree.
|
Reviewed the decisions and checked every claim the spec makes about the code and the release process against Verified
Findings1. Step 3 leaves the 0.2.0 bump, tag and release unaccounted for. The workflow does four things in one run: 2. 3. Two inventory gaps. 4. "Any script a user already has keeps working apart from the binary name" (line 26) is contradicted by the 5. Line 115, "Those fixtures are the only evidence the tag held", is not right. ConstantsTest pins the SHA-256 hex, the burn-reason bytes and the encoded recipient, so a renamed tag fails there before any fixture is read, and regenerating fixtures does not silence it. The warning against regenerating can stay; the fixtures are not the only guard. In the same vein, the risk table says the freeze is "documented at the constant", but the comment on 6. 7. Step 1: GitHub's repository redirects are not permanent. They persist until a repository with the old name is created under the organisation. Worth stating, since every published 0.1.x tarball carries 8. The repository rename is what makes steps 1, 4 and 5 necessary. Renaming the package alone needs steps 2, 3 and 6 and no organisation admin, and the existing trusted-publisher binding keeps working for the old package. Not an objection to renaming the repository, but the spec presents the two renames as one decision while the migration cost sits almost entirely with the second. If they are separable, saying so lets the package rename ship first. Sources: npm trust (npm CLI docs) for the trusted-publisher prerequisite, Renaming a repository (GitHub Docs) for the redirect behaviour. |
The migration left the 0.2.0 bump, the tag and the GitHub release unaccounted for. The release workflow computes the version itself, so a run against a stale manifest would publish 0.1.3 under the new name, and `npm publish` moves the `latest` dist-tag to whatever it publishes without comparing versions, pointing `latest` below 0.2.0. The version now lands in the rename commit, the first publish is manual from it, and the tag and release are created by hand in the workflow's order. The README's token-format appendix and the token-type block under deferred decisions describe the burn reason, token type and signature domain as bytes, not as branding. They are named as frozen alongside the payload comments; a file-wide replace would have left them documenting a format no token has. The package rename and the repository rename are separable: only the second needs organisation admin, and GitHub's redirects last only until a repository with the old name is created. The new package needs its own trusted publisher either way. The default key file is a second user-visible break, not covered by "scripts keep working": nothing in the code reads it, but a script that passes `--key-file unicity-timestamp.key` fails after the rename. Also: the fixtures are not the only evidence the tag held, since ConstantsTest pins the derivation, the burn-reason bytes and the encoded recipient; the missing inventory entries are the lockfile name and the CLI description; and the status reads proposed while the decisions are still under review.
|
Applied in 1. Right, and the 2. Confirmed: lines 226, 228 and 250 in 3. Both added. The lockfile carries the name twice, at the root and in the 4. Resolved by dropping the claim rather than the change. The Decision 5. You are right and my line was wrong. 6. Changed to 7. Taken, with the second-order consequence: every published 0.1.x tarball 8. Taken, with one correction. The separability is real and the spec now |
lploom
left a comment
There was a problem hiding this comment.
Verified 5067d17 against the code. The two README sections named as frozen are the ones holding every wire-format mention of the tag (lines 226, 228 and 250 under "Token file format", 262 and 266 under "Deferred decisions"), the package-lock and --help description are in the inventory, and the package-rename steps now carry 0.2.0 in the published commit with the tag and release created after the publish, so no workflow run can move latest below it. The split into package and repository renames reads as separable, with step 8 covering the trusted-publisher re-point. Nothing left from the review.
The first publish under a new name cannot come from CI, because npm's trusted publishing cannot create a package name the publisher does not already own. The migration made that publish 0.2.0 itself, which meant the version everyone installs would have been the one release not built, tested or attested by the workflow -- 0.1.0, published by hand to bootstrap the current name, carries no provenance attestation, while 0.1.2 from the workflow does. The hand publish is now 0.2.0-rc1 on the `next` dist tag, existing only so the trusted publisher can be bound to the name, and 0.2.0 goes out through the workflow with the tag, the release and the attestation. The bootstrap publish has to pass `--tag next` explicitly: npm points `latest` at whatever it publishes, prerelease or not, and the workflow's own tag derivation does not apply to a publish that bypasses it.
|
Checked Two cells in the Risks table still describe the previous order:
Nothing else from the new commit. |
Two rows still described the superseded order: the dist-tag risk was mitigated by "the first publish is manual from a commit that already carries 0.2.0", which is no longer how 0.2.0 is released, and the deprecation was cited as step 6 after renumbering made it step 5. The row recording that only the bootstrap prerelease is published by hand was missing.
|
Fixed in the push above. Both cells were stale, and so was a third thing you
I also cross-checked every step reference in the document after the Thanks for the provenance check across all three published versions — |
lploom
left a comment
There was a problem hiding this comment.
Verified 2bfb99d: the two risk-table cells now match the bootstrap order, the added provenance row is consistent with the registry (0.1.0 unattested, 0.1.1 and 0.1.2 attested), and every step reference resolves after the renumbering (step 8 to step 3, the credentials line, and the two risk rows). Nothing left.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d3cee57d1b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| 4. Run the release workflow with `0.2.0` as the explicit version input. It | ||
| bumps, builds, tests, publishes to `latest`, pushes the bump with its tag and | ||
| creates the release. |
There was a problem hiding this comment.
Rename the repository before the trusted publish
Following this order leaves the package metadata and OIDC identity inconsistent: step 1 changes package.json.repository to unicitynetwork/proof-cli, but this workflow runs from unicitynetwork/timestamp-cli because the repository rename is deferred until step 7. npm requires repository.url to exactly match the GitHub repository used for trusted publishing (npm trusted-publisher documentation), so step 4 will reject the 0.2.0 publish. Move the repository rename and final publisher configuration before this workflow run, or defer changing the repository metadata until then.
Useful? React with 👍 / 👎.
| 3. Configure the new package's trusted publisher: the repository as it is named | ||
| at the time, workflow `npm.yml`, environment `npm-publish`. |
There was a problem hiding this comment.
Enable direct publishing on the trusted publisher
Explicitly enable the trusted publisher's npm publish action here. For configurations created after September 3, 2026, npm permits staged publishing by default while direct publishing is opt-in (npm trusted-publisher documentation); the Publish step in .github/workflows/npm.yml invokes npm publish, so configuring only the repository, workflow, and environment as instructed causes the release to fail unless the direct-publish permission is selected.
Useful? React with 👍 / 👎.
lploom
left a comment
There was a problem hiding this comment.
Codex's two findings on the migration order both hold against npm's own documentation, and they change the order I approved, so this review supersedes that approval until the two steps are adjusted.
1. repository.url must match the repository the workflow runs from. The trusted-publishers page says "your package's repository.url field in package.json must exactly match your GitHub repository", and provenance is generated automatically under trusted publishing, so the check applies to every workflow publish. Step 1 moves repository, homepage and bugs to unicitynetwork/proof-cli while the workflow keeps running from unicitynetwork/timestamp-cli until step 7, so step 4's publish of 0.2.0 fails at the Publish step, after the bump and tag exist on the runner and before anything is pushed. The package rename stays separable only if those three fields keep the old name until the repository is renamed. Concretely: drop repository, homepage and bugs from the package-rename change, and list them under the repository rename as the change that lands with step 7 and goes out with the next release. The 0.2.0 tarball then names the repository it was built from, which is also what its attestation says.
2. A trusted publisher created now stages by default. Same page: configurations created after 3 September 2026 "are automatically set to allow npm stage publish", and direct publishing is a separate allowed action ("Choose whether this trusted publisher can also publish directly with npm publish"). npm.yml runs npm publish, so step 3 has to enable that action, or step 4 does not reach latest and the push, tag and release steps run against a version that is still staged. The page also says "A newly created trusted publisher configuration must complete its first successful publish within 2 days", so step 4 must follow step 3 inside that window; worth stating next to it. The configuration for @unicitylabs/timestamp-cli was necessarily created after 0.1.0 on 12 October and has published 0.1.1 and 0.1.2 directly, so this is the same choice made once more for the new name.
Sources: Trusted publishers (npm docs), Generating provenance statements (npm docs), GitHub changelog, 3 September 2026.
Five tasks, each ending in something testable: the package manifest and the note recording why the format tag cannot follow the brand; the three user-visible strings, each given a failing test first; the README with the format appendix carved out by line range; the workflow, environment sample and test titles; and a verification task whose weight is that both committed fixtures, certified before the rename, still verify. The migration's remaining steps need registry or organisation credentials and are listed separately as operator steps rather than as tasks.
|
Checked the implementation plan in The plan carries the two items from the open review. Task 1 Step 1 rewrites Task 2 Step 1 contradicts Task 4 Step 4 and Task 5 Step 3. The assertion A smaller note on the same grep: Task 5 Step 3 combines |
|
Not missed — caught mid-execution, and all four hold. Task 1 had already landed The grep contradiction is a miss in my own pre-flight scan. I had a row for I fixed it in the assertion rather than in the two expectations, which is where expect(help.stdout.split('\n')[0]).toEqual('Usage: unicity-proof [options] [command]');Stronger than the substring pair it replaces, and it carries no old-name One correction to the rationale, though: the assertion was not covering the Both release items confirmed against npm's docs, and the second is worse than So the repository rename is now step 1 of the migration in both documents, That same doc page also says the configuration binds "to the repository's
|
|
Second opinion on the rename-after-binding point, from the same page. It says two things: "The first successful publish validates the configuration and binds it to the repository's immutable identity", and "Existing trusted publisher connections cannot be changed." It says nothing about what happens to the name check when the repository is renamed after that first publish, and "all fields are case-sensitive and must be exact" still describes the configured repository name. So the page supports the binding being tied to the repository ID, but it does not say the name comparison is skipped once bound. Reading it as "a later rename is safe" goes beyond the text. Two consequences for the note that replaced step 8. First, a "re-point" is not an available operation: a connection cannot be changed, so a rename that did break the match would mean deleting the configuration and creating a new one, which restarts the two-day window. Second, under the new order the question does not arise for On the fixed |
Documents the rename of the package, binary and repository to
proof-cli, andthe one identifier the rename must not touch.
@unicitylabs/timestamp-cli@unicitylabs/proof-cliunicity-timestampunicity-proofunicitynetwork/timestamp-cliunicitynetwork/proof-cliSubcommands and
UNICITY_*environment variables do not change.TIMESTAMP_TAG = 'unicity-timestamp'is the token format's wire identifier, nota label. The token type is its SHA-256 (
dd671898…16193, verified against thepinned constant), the burn predicate's reason bytes are its UTF-8 encoding, and
it is the domain tag inside the payload signature. Changing it would give every
stamp a different token type, recipient and signature domain, and nothing
already certified on mainnet or testnet2 would verify. It stays as it is,
permanently, so the brand and the wire format disagree by design.
The spec splits every occurrence of the old name into what changes, what must
never change, and what is deliberately left alone — the
TIMESTAMP_*constantsand the payload and client types keep the format's name, because the format is
not what is being renamed.
Also recorded: the migration order, including that npm's trusted publishing
cannot create a package name it does not already own, so the first publish under
the new name cannot come from CI, and that the trusted-publisher binding is per
package and per repository name, so nothing from the current configuration
survives either change.
Agent-specific payload fields are out of scope and sequenced after the rename.
The verifier rejects any payload version but 1, so a v2 token is unverifiable by
every installed CLI; shipping both at once would make "your install is old" and
"the rename broke something" indistinguishable.
Docs only — no code or configuration changes. Draft for review of the decisions
before an implementation plan is written.