Skip to content

docs: prepare v0.5.0 upgrade and release notes - #569

Merged
RetricSu merged 4 commits into
developfrom
ctx/task-a50dbda519
Nov 27, 2026
Merged

RetricSu merged 4 commits into
developfrom
ctx/task-a50dbda519

Conversation

@RetricSu

Copy link
Copy Markdown
Collaborator

Summary

  • Document the upgrade from v0.4.13 to v0.5.0 in the README, changelog and migration guide. Existing devnets can restart in place. Enabling Fiber on an old genesis requires a backup and rebuild, followed by refreshing system-script references and redeploying local contracts.
  • Cover the accounts private-key default, native debugger adoption and catalog pinning, settings errors, Fiber cleanup and early canary changes.
  • Record how to consolidate the pending changesets into the existing 0.5.0 changelog section. Changesets currently plans 0.6.0 from the pre-bumped 0.5.0 package version, so the release commit still needs to consume the pending entries.

Validation

  • Build, typecheck, lint, git diff --check and changed Markdown links checked. After rebasing, 43 targeted CLI, native plugin and installer tests passed.
  • Verified with a temporary native CKB database and the v0.4.13 devnet spec that the upgraded CLI continued mining with the same genesis. Fiber rejected the old spec, and the new spec included the three Fiber contracts.
  • Verified JSON account output in the built CLI and offline debugger adoption using an isolated legacy fixture. Real FNN end-to-end validation is outside this PR's checks.

@Hanssen0-Alter-Ego

Hanssen0-Alter-Ego commented Nov 27, 2026 •

Copy link
Copy Markdown

Review completed for adc75344f66995e040d362245a385f3fadc22530. Two independent passes identified release and migration documentation gaps. See the scoped review for all three findings and validation limits.

Generated by ChatGPT · Alter Ego

@Hanssen0-Alter-Ego Hanssen0-Alter-Ego left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I found three places where the v0.5.0 instructions diverge from the current implementation or release workflow. Two independent passes reviewed adc75344f66995e040d362245a385f3fadc22530 against 209e8d2998994111ccc50bfaf9aae5c52ca41473. I checked the affected code paths, the pinned Changesets behavior, and 19 added relative links; I did not run a release or an FNN migration.

Generated by ChatGPT · Alter Ego

Comment thread docs/develop.md Outdated
changesets landed. Running `pnpm changeset version` with those pending minor changesets
would produce `0.6.0`. To release this batch as `0.5.0`, fold the remaining changeset
entries into the existing `0.5.0` changelog section and remove the consumed changesets
in the version PR while keeping `package.json` at `0.5.0`. Before tagging, run

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P2] Document how the version PR passes Changeset Check. This procedure updates CHANGELOG.md and deletes the pending changesets without adding a new one. The PR check runs changeset status --since=origin/<base>; the pinned CLI treats the changelog as a package change and excludes deleted changesets, so that version-only PR fails the check.

Suggested fix Tell maintainers to apply the repository’s existing `skip-changeset` label to the version-only PR and consume the pending entries, including empty changesets, before the tag’s no-diff check. Don’t add a new placeholder changeset just to satisfy the PR check.

Comment thread docs/migration.md Outdated
## If you used a v0.5 canary

- FNN v0.9.0 replaces the release candidate as the only version OffCKB downloads. For a fresh environment, remove any saved RC version override from the startup command and set `offckb config set fnn-version 0.9.0` if you previously changed the default. Existing environments in the current format reuse their saved FNN path.
- Early Fiber canaries used `nodes[].config`. v0.5.0 requires a full per-node config referenced by `config_file` and has no automatic import of the old layout. Back up the old Fiber directory and initialize a new environment before reapplying custom configuration. See the [Fiber guide](fiber-devnet.md).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P2] Move the legacy Fiber directory out of the active path before init. Copying it as a backup leaves the old nodes.yml in place, so readFiberManifest() still rejects nodes[].config. Removing only the YAML also leaves node directories that prepareFiberManifest() explicitly refuses to import or overwrite.

Suggested fix After stopping FNN, tell users to move the entire `fiber` directory under `devnet.configPath` to a backup outside the active path. Then initialize against the running compatible devnet and reapply supported configuration; make clear that old identities and stores are not imported automatically.

Comment thread docs/migration.md Outdated
| --- | --- |
| `offckb accounts` in scripts, logs or JSON consumers | Add `--hide-private-keys` to preserve the v0.4 default. Both output formats now include `privkey` for built-in test accounts by default. Mainnet forks still hide it unless you pass `--show-private-keys`. |
| A hard-coded path to the OffCKB-managed `ckb-debugger` | Run `offckb install ckb-debugger` and discover the registered binary via `offckb plugin which ckb-debugger` (add `--json` for structured output). A qualifying legacy binary can be adopted offline and its old directory removed after registration. |
| `offckb install ckb-debugger` to fetch the newest upstream release | The command is now an alias of `offckb plugin install ckb-debugger`. Catalog installs use the version pinned by OffCKB (`1.1.2` in v0.5.0), including `@latest`. The first unversioned install can retain a qualifying legacy version through adoption. |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P3] The legacy debugger exception also applies to @latest and the pinned version. All accepted catalog spellings pass internal latest to installNativeTool(). On the first registration it can adopt a qualifying legacy binary instead of installing 1.1.2, even for ckb-debugger@1.1.2.

Suggested fix Clarify the exception here and in the binary-tool guide. If adoption kept a different version, rerun the install after registration to select the catalog pin and verify the resulting executable version.

@Hanssen0-Alter-Ego Hanssen0-Alter-Ego left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

One additional migration issue at the same reviewed head, confirmed against the early-canary link registration and the current native installer.

Generated by ChatGPT · Alter Ego

Comment thread docs/migration.md Outdated

- FNN v0.9.0 replaces the release candidate as the only version OffCKB downloads. For a fresh environment, remove any saved RC version override from the startup command and set `offckb config set fnn-version 0.9.0` if you previously changed the default. Existing environments in the current format reuse their saved FNN path.
- Early Fiber canaries used `nodes[].config`. v0.5.0 requires a full per-node config referenced by `config_file` and has no automatic import of the old layout. Back up the old Fiber directory and initialize a new environment before reapplying custom configuration. See the [Fiber guide](fiber-devnet.md).
- For binary tools, use `offckb plugin install <catalog-name>` or `offckb plugin install ./dir` with an `offckb-tool.json` and its executable. Use these install forms in place of early canary `tool:` sources, descriptor-file installs, or binary links. See the [current source matrix](plugins.md#what-to-type-in-one-table).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P3] Unlink an existing canary binary before reinstalling the same command. The old plugin link registered those binaries in place without a managed binary record. The current installer refuses to take over that command until the existing link is removed, so switching to plugin install ./dir alone fails for an already-linked tool.

Suggested fix For existing binary links, document `offckb plugin unlink ` before installing the descriptor directory or catalog tool. Unlinking removes the registration, not the local source files.

@Hanssen0-Alter-Ego

Hanssen0-Alter-Ego commented Nov 27, 2026 •

Copy link
Copy Markdown

Review completed for da58d7a9387c13db4c0a43019244e08d2f4e4c1f. Two independent passes checked the documentation delta. The scoped review confirms the earlier changes and records two remaining edge cases.

Generated by ChatGPT · Alter Ego

@Hanssen0-Alter-Ego Hanssen0-Alter-Ego left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The fix delta at da58d7a9387c13db4c0a43019244e08d2f4e4c1f addresses the earlier release-check and unlink findings, and corrects the backup procedure and adoption description. I found two narrower issues in the new instructions: starting FNN after init, and the debugger pin on Intel macOS. Two independent passes reviewed the delta from adc75344f66995e040d362245a385f3fadc22530. I checked the changed links and used isolated command-path checks; no real migration or release was run.

Generated by ChatGPT · Alter Ego

Comment thread docs/migration.md Outdated
## If you used a v0.5 canary

- FNN v0.9.0 replaces the release candidate as the only version OffCKB downloads. For a fresh environment, remove any saved RC version override from the startup command and set `offckb config set fnn-version 0.9.0` if you previously changed the default. Existing environments in the current format reuse their saved FNN path.
- Early Fiber canaries used `nodes[].config`. Stop all FNN processes, then move the entire `fiber` directory under `devnet.configPath` to a backup location outside that path. Find `devnet.configPath` with `offckb config list`. With a compatible plain devnet running, run `offckb fiber init` and reapply supported settings in the full per-node configs referenced by `config_file`. Initialization creates new node identities and starts with empty stores. The old identities and stores remain in the backup. See the [Fiber guide](fiber-devnet.md).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P3] Start Fiber after editing the generated configuration. offckb fiber init prepares the environment but starts no FNN process. The Fiber network identity (fiber/sk) is generated by FNN on first start, not by init.

Suggested fix End the migration with `offckb fiber start` after reapplying settings, and attribute the new network identities and initially empty stores to first startup.

Comment thread docs/binary-tools.md Outdated
binary under `tools.rootFolder/ckb-debugger/` that reports a version at or above the
catalog's adoption minimum (0.200.0). Adoption works offline and can remove the legacy
directory after registration succeeds. If adoption kept a different version and you need
the catalog pin, rerun `offckb plugin install ckb-debugger` and run the executable reported

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P3] Qualify the rerun instruction on Intel macOS. A first install can adopt a legacy executable even when the descriptor has no asset for that platform. On darwin-x64, rerunning skips adoption and returns “no binary for darwin/x64” rather than installing the pin.

Suggested fix Qualify the rerun in both guides as applying to platforms with a catalog asset. On Intel macOS, retain the adopted version or use a compatible local build if you need 1.1.2.

@Hanssen0-Alter-Ego

Hanssen0-Alter-Ego commented Nov 27, 2026 •

Copy link
Copy Markdown

Review completed for 6a2248a944d35970ba9388341ce5c8648b3b896b. Two independent passes checked Fiber startup and debugger platform guidance. The scoped review confirms the previous changes and notes one PATH clarification.

Generated by ChatGPT · Alter Ego

@Hanssen0-Alter-Ego Hanssen0-Alter-Ego left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The two previous issues are addressed: the migration now starts Fiber explicitly, and the catalog reinstall is limited to supported platforms. One small clarification remains for scripts that use the managed debugger path. Two independent source passes reviewed 6a2248a944d35970ba9388341ce5c8648b3b896b against da58d7a9387c13db4c0a43019244e08d2f4e4c1f. No Intel Mac or FNN runtime test was run.

Generated by ChatGPT · Alter Ego

Comment thread docs/binary-tools.md Outdated
`offckb plugin install ckb-debugger` to install the pin. Run the executable reported by
`offckb plugin which ckb-debugger` with `--version` to verify it. Intel macOS
(`darwin-x64`) has no v1.1.2 asset in the v0.5.0 catalog. Keep the adopted executable
or put a compatible local build on PATH ahead of the managed shim if you need v1.1.2.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P3] Distinguish the PATH workaround from plugin which. Putting a local build first on PATH works for a bare ckb-debugger invocation, but the offckb plugin which workflow documented just below still returns the registry path (the older adopted executable). A script that follows both instructions won’t pick up v1.1.2.

Suggested fix For the PATH workaround, tell users to invoke and check `ckb-debugger --version` directly. Tell scripts that need an absolute path to use the local build’s path rather than the managed lookup.

@Hanssen0-Alter-Ego

Hanssen0-Alter-Ego commented Nov 27, 2026 •

Copy link
Copy Markdown

Review completed for fdde8015f49ca5984a621bdf9e34ef83f6e27085. The scoped review confirms the debugger path clarification; two independent passes found no new issue in the documentation delta.

Generated by ChatGPT · Alter Ego

@Hanssen0-Alter-Ego Hanssen0-Alter-Ego left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM for fdde8015f49ca5984a621bdf9e34ef83f6e27085 against 6a2248a944d35970ba9388341ce5c8648b3b896b. Two independent passes found no new issue in the documentation delta. The guide now distinguishes the PATH override from the managed path returned by plugin which, addressing the previous finding. I checked the migration link and exercised the resolver and managed lookup with mocks. No Intel macOS, FNN, or release run was performed.

Generated by ChatGPT · Alter Ego

@RetricSu
RetricSu merged commit cca12ac into develop Nov 27, 2026
8 of 9 checks passed
@RetricSu
RetricSu deleted the ctx/task-a50dbda519 branch November 27, 2026 13:28
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