Version bumped to 0.2.0 (workspace-inherited, one line + lockfiles; both binaries report it). Root MIT LICENSE plus the editors/vscode copy that lets vsce package run without --skip-license, closing the editor-packaging handshake. CHANGELOG.md is a user-facing first- release document: six area paragraphs linking the feature READMEs, stating the current corpus truth (476/820 formattable, zero verification errors, zero crashes). tools/release.sh builds checksummed host binaries + the sideloadable .vsix into gitignored dist/ (aborts before deleting prior artifacts on failure -- proven live); tools/RELEASING.md is the checklist, with marketplace/OpenVSX commands demoted to an explicitly optional appendix per the owner: publishing is fully deferred, sideloading via code --install-extension is the supported path, publisher stays REPLACE-ME. Dev: Opus agent (mid-flight scope trim handled cleanly); QA: Sonnet agent (artifacts, real sideload cycle, all 26 changelog links); review in docs/features/release-prep/README.md. Co-Authored-By: Claude Fable 5 <[email protected]>
release-prep
Goal
Make vfmt a thing that can be handed to someone rather than a working tree:
a real LICENSE, a user-facing CHANGELOG.md for 0.2.0, one version
number that actually reaches vfmt --version and the language server's
serverInfo, a tools/release.sh that turns a clean tree into
dist/{binaries, .vsix, SHA256SUMS} with nothing but cargo, npm and shasum,
and a tools/RELEASING.md that says where every one of those numbers lives.
Everything here is doable on this machine with no accounts: publishing is
optional and deferred per the owner (2026-08-19), and sideloading the .vsix
is the supported install path. The one thing the missing LICENSE was
already costing us is closed as a side effect — vsce package no longer needs
--skip-license, the flag docs/features/editor-packaging/README.md filed as
a Handshake request to the repo root.
Assumptions
- "lucio" is the copyright holder, taken from the remote
(
[email protected]:lucio/verilogrustformatter.git). It is a handle, not a legal name; the owner may want "Guoliang Chen" or an entity instead. One line in two files if so:LICENSEand its copyeditors/vscode/LICENSE. - 0.2.0 is the first release. There are no git tags and no prior changelog;
0.1.0was the workspace's initial version number and was never tagged or distributed. So the changelog describes vfmt as it stands rather than a delta against a shipped predecessor, and says so in its own text. - The
LICENSEcopy undereditors/vscode/is a real file, not a symlink.vscerequires the file next topackage.json, and a symlink is one more thing that can arrive broken in a checkout or a zip. The cost is that the two must be kept in sync by hand;tools/RELEASING.mdsays so. release.shdoes not cross-compile. It builds forrustc -vV's host triple and names the artifacts after it. Multi-platform binaries mean running the script on each platform. A cross toolchain (orcargo-dist) is a dependency this project does not have and does not need for a solo release.dist/is disposable. The scriptrm -rfs and recreates it, and it is gitignored. Nothing should ever be authored there.- The binaries are the authority on the version, not
Cargo.toml:release.shreadsvfmt --versionfrom the binary it just built, so a stale build can never be labeled with a fresh version number.
Handshakes
Consumed:
editors/vscode/smoke.js(from editor-packaging) —release.shruns it against the freshly copied server binary before packaging anything. Contract used:node smoke.js <path>exits 0 on a healthy binary, non-zero otherwise. If that script's argument shape changes,release.shchanges with it.crates/vfmt's--versionoutput format:vfmt <semver>on one line, with the version in field 2.release.shparses it withawk '{print $2}'.editors/vscode/.vscodeignore— still the thing that keepssmoke.jsout of the package; the script does not re-implement it, it verifies the result.
Promised:
- The version number lives in exactly four files (
Cargo.toml,Cargo.lock,editors/vscode/package.json,editors/vscode/package-lock.json) and nowhere in Rust source. Anyone adding a hard-coded version string breaks that promise and should updatetools/RELEASING.md§1 in the same change. tools/release.sh's output layout (dist/vfmt-<version>-<host>,dist/vfmt-server-<version>-<host>,dist/vfmt-<version>.vsix,dist/SHA256SUMS) is whatREADME.mdandtools/RELEASING.mddocument.
Requested of other modules: none. Nothing under crates/ was modified —
the serverInfo version wire the brief flagged as "wire if trivial" turned out
to already exist (crates/vfmt_server/src/main.rs:98 uses
env!("CARGO_PKG_VERSION")), so the workspace bump reached it for free.
Status / TODO
LICENSEat the repo root — MIT,Copyright (c) 2026 lucio.editors/vscode/LICENSE— copy, sovsce packageruns without--skip-license. Verified present in the.vsixasLICENSE.txt.CHANGELOG.md— v0.2.0, one paragraph per area (formatter + safety net, CLI, linter, language server, editors, corpus), each linking its feature READMEs.- Version bumped to 0.2.0:
Cargo.toml[workspace.package](all seven crates inherit),Cargo.lock,editors/vscode/package.json,editors/vscode/package-lock.json(both entries). vfmt --version→vfmt 0.2.0;initialize→serverInfo→{"name":"vfmt-server","version":"0.2.0"}, checked over the wire.tools/release.sh— host-target release build, smoke test,.vsix,SHA256SUMS, intodist/. Std tooling only, no new dependency.tools/RELEASING.md— bump locations, gate, artifacts,.vsixdetails including the sandbox-pathvscefailure, install/sideload, tag. Marketplace/OpenVSX commands kept as an explicitly optional appendix..gitignore—/dist.README.md— "Install and releases" section; the VS Code install steps now point atrelease.shinstead of--skip-licenseand0.1.0.editors/vscode/README.md— install steps corrected (npm ci, no--skip-license,0.2.0,dist/), sideloading named as the supported path. Not restructured for a marketplace audience (see Work log).TODO.md— release-prep item plus the one-line publishing note.cargo fmt --check,cargo clippy --all-targets,cargo test --workspaceall green after the bump.- Not done, deliberately (owner-only): a Marketplace publisher id
(
publisherstaysREPLACE-ME),vsce/ovsxtokens, an extension icon andgalleryBanner(binary brand assets are not mine to invent), confirming the public repo URL, and any actual publish. - Not done, deliberately: cross-compiled binaries, a release tarball layout, CI packaging, and signing/notarization. Each is a real project with a dependency behind it; none is needed to hand someone a binary.
- Not verified here:
code --install-extension dist/vfmt-0.2.0.vsix. Installing into the user's editor is a change to their environment, not a validation step — the same line editor-packaging's dev round drew. The package was built and its contents inspected instead.
Work log
2026-08-19 — dev agent
- Scope trim mid-round. The brief's item 4 was "marketplace-facing polish"
(publisher
lucio, keywords/categories,repository/bugs/homepage, an end-user restructure ofeditors/vscode/README.md). The lead relayed an owner decision partway through: marketplace publishing is completely optional and deferred, so drop all of it. Nothing had been written yet, so there was nothing to revert —editors/vscode/package.jsonis untouched except for"version",publisheris stillREPLACE-ME, and thecategories/repositoryfields it already carried from the editor-packaging round were left exactly as they were rather than "cleaned up" (they are harmless and pre-existing; removing them would be a change nobody asked for). What I did keep ineditors/vscode/README.mdis a correctness edit, not a marketing one: its install block still said--skip-licenseandvfmt-0.1.0.vsix, both of which are now false. - The
LICENSEclosed an open Handshake, not just a checkbox.docs/features/editor-packaging/README.mdfiled "Repo root: noLICENSEfile exists" as a request, and its README and the top-level README both carried a--skip-licenseworkaround. WithLICENSEat the root and a copy ineditors/vscode/,npx @vscode/vsce packageruns clean and shipsextension/LICENSE.txt— confirmed in the built package, not assumed. - No version string was hard-coded anywhere, and none had to be added.
vfmt --versionandServerInfo.versionboth already readenv!("CARGO_PKG_VERSION"), and all seven crates useversion.workspace = true, so the bump is genuinely one line plus the two lockfiles. I checked for version-asserting tests before bumping (the brief warned some might exist):crates/vfmt_server/tests/e2e.rs:393assertsserverInfo.nameonly, and no test anywhere matches0.1.0. Nothing needed fixing, and nothing undercrates/was touched — the concurrent parser/formatter round's files are untouched by me. release.shreads the version out of the built binary rather than greppingCargo.toml. It costs one line and makes "the artifact is named 0.2.0 but is actually a stale 0.1.0 build" unrepresentable.- The smoke test runs inside
release.sh, before packaging. It is dependency-free node, so it can run beforenpm ci, and it is exactly the check that catches a server binary that builds but cannot speak LSP. A release script that ships an untested binary is a release script that ships a broken one eventually. Ifnodeis absent the script says so on stderr and continues rather than failing — the binaries are still valid artifacts. - The checksum line is explicit, not a glob.
shasum -a 256 vfmt-*would have matchedvfmt-server-*twice and raced the> SHA256SUMSredirect against its own glob; the script builds the file list by name instead. - The
vscesandbox-path failure is documented where someone will hit it. editor-packaging's QA traced it (vsce shells out tonpm list --parseableand globs the result; under a UUID-bearing sandbox path the captured output comes back rewritten, so it globs a nonexistent directory, collects zero files, and fails with "Extension entrypoint(s) missing").release.shsidesteps it structurally by packaging inside the repo and sending only the output to-o, with a comment saying why the line looks like that, andtools/RELEASING.mdrepeats it so a future failure is recognized rather than re-diagnosed. It reproduced for me exactly as documented: the run from the repo path succeeded first try. dist/is gitignored as/dist(anchored, like the existing/targetand/corpusentries) so adistdirectory nested somewhere else would still be tracked.- What the changelog deliberately is not. It has no per-round entries, no
"round 12", no bug-fix bullet lists — six paragraphs, one per user-visible
area, each ending in links to the feature READMEs that hold the detail. The
corpus paragraph quotes the current measured number (476/820 = 58.0 %, zero
verification errors, zero crashes) from
docs/features/directives-in-instances/README.md, which is the most recent measurement, rather than the stale 35.2 % baseline indocs/features/corpus-check/README.md. - Did not run
git commit/git push. Did not modify any file undercrates/.
What was validated on this machine, precisely:
| Check | Result |
|---|---|
tools/release.sh end to end |
exit 0, all four artifacts produced |
target/release/vfmt --version |
vfmt 0.2.0 |
initialize → serverInfo (hand-driven LSP session over stdio) |
{"name":"vfmt-server","version":"0.2.0"}, exit 0 |
node smoke.js dist/vfmt-server-0.2.0-aarch64-apple-darwin |
smoke: OK — 3 messages, exit 0 |
npx @vscode/vsce package without --skip-license |
packaged, 321 files, 463.1 KB |
.vsix contains extension/LICENSE.txt |
yes, 1062 bytes (the MIT text) |
.vsix contains smoke.js |
no (unzip -l | grep -c smoke.js → 0) |
cd dist && shasum -a 256 -c SHA256SUMS |
3/3 OK |
git check-ignore dist/vfmt-0.2.0.vsix |
ignored via .gitignore:4:/dist |
cargo test --workspace |
589 passed, 0 failed, exit 0 |
cargo fmt --check |
exit 0 |
cargo clippy --all-targets |
exit 0, zero warnings |
Artifacts (aarch64-apple-darwin, vfmt 0.2.0):
| File | Bytes | SHA-256 |
|---|---|---|
vfmt-0.2.0-aarch64-apple-darwin |
1,292,080 | 5a0c9d7ad936230461be163efdfec8b654c5c49e3efcd19641a8d091014083aa |
vfmt-server-0.2.0-aarch64-apple-darwin |
2,211,072 | ab3a5d8acb19bc5ec692ac0150b3f0d475e5a7d4a160d20255a2bb2ded5d0e09 |
vfmt-0.2.0.vsix |
474,214 | 1c9493d2225d5766e930b089de38ab7213478f150619a81f46ec84a4f2771afe |
(The .vsix hash is not reproducible across runs — a zip embeds mtimes — so it
identifies one build, not the source it came from.)
Two honesty notes about the numbers above.
- The
.vsixindist/was repackaged after the full script run. The end-to-endtools/release.shrun (all four artifacts, exit 0) happened before the correctness edit toeditors/vscode/README.md, and that file ships inside the package asextension/readme.md. Rather than leavedist/describing an older tree I re-ran the script's own two packaging commands by hand (npx @vscode/vsce package --out ..., then the sameshasum -a 256list) and re-verifiedshasum -c; the table anddist/SHA256SUMSare that result. The two binaries are untouched from the script run. - A later full re-run of
tools/release.shfailed to build, and not because of anything here. The concurrently-running parser/formatter agent hadcrates/vlog_parsermid-edit —parse()gained a secondsource: &strparameter thatlib.rshad not caught up with (3 errors, then 10 a minute later, acrosscrates/vlog_parser/src/{ast,parser,token}.rs). Per the brief that is theirs to finish, not mine to edit; reporting instead. The gate numbers above (cargo test --workspace,fmt,clippy) were taken before that breakage landed and are honest for the tree as it stood then — they must be re-run once the other round compiles again, and so must a cleantools/release.sh. One useful thing the failure did prove: the script aborts on the cargo failure beforerm -rf "$dist", so a broken build cannot destroy the previous artifacts.
QA log
2026-08-19 — QA agent
Verdict: PASS on every claim. No blocking findings. Verified against the
dist/ artifacts left by the dev round first, before touching anything, so
every number below that says "matches the table" was checked against the
original build. Per the brief's concurrency note, workspace-wide cargo gates
were not treated as pass/fail — see the honesty note at the bottom for what
happened when I exercised tools/release.sh anyway.
1. Scope-trim compliance — PASS.
git diff editors/vscode/package.json is a one-line diff: "version" only.
publisher is still the literal string REPLACE-ME; categories,
repository etc. are untouched (pre-existing, not added this round).
git diff editors/vscode/README.md is exactly the three claimed edits:
--skip-license removed, vfmt-0.1.0.vsix → vfmt-0.2.0.vsix, and a new
"sideloading is the supported install" paragraph — no marketplace-audience
restructuring. Marketplace commands (vsce publish, ovsx publish) appear
only inside tools/RELEASING.md's ## Appendix — if the owner ever publishes to a marketplace section, explicitly headed "Optional and deferred."
Independent corroboration: sideloading the built .vsix (see job below)
resolved the extension id as [email protected] — the placeholder is
live, not just present in the source file.
2. Artifacts — PASS, checked against the dist/ state as left by the dev, before I ran anything myself:
cd dist && shasum -a 256 -c SHA256SUMS→3/3 OK, and the three hashes indist/SHA256SUMSmatched the work-log table character for character (5a0c9d7a…83aa,ab3a5d8a…d5d0e09,1c9493d2…2771afe), as did all three file sizes (1,292,080 / 2,211,072 / 474,214 bytes).unzip -l dist/vfmt-0.2.0.vsix→ exactly321 files;extension/LICENSE.txtpresent at exactly1062bytes;grep -c smoke.jsover the listing →0.unzip -p dist/vfmt-0.2.0.vsix extension/readme.md | diff - editors/vscode/README.md→ identical. The hand-repackage claim (vsix readme matches the current vscode README, not the one from the full script run) checks out.
3. Version — PASS.
dist/vfmt-0.2.0-aarch64-apple-darwin --version → vfmt 0.2.0. Hand-rolled a
minimal LSP client (Python, framed initialize over stdio) against
dist/vfmt-server-0.2.0-aarch64-apple-darwin: serverInfo came back
{"name":"vfmt-server","version":"0.2.0"} — confirms the claim independent of
the smoke test, which doesn't check serverInfo at all. All seven
crates/*/Cargo.toml have version.workspace = true (grepped each file by
hand). Cargo.lock shows version = "0.2.0" for all seven workspace crates
and zero "0.1.0" entries.
4. LICENSE — PASS.
diff LICENSE editors/vscode/LICENSE → identical. MIT text, "Copyright (c)
2026 lucio" present in both. The owner-may-rename note is in this README's
Assumptions section, as claimed.
5. CHANGELOG — PASS.
Extracted all 26 docs/features/.../README.md links from CHANGELOG.md and
confirmed every path exists on disk — 26/26 resolve. The corpus paragraph's
"476/820 (58.0%)... zero verification errors... zero crashes" matches
docs/features/directives-in-instances/README.md lines 256, 394 and 455
exactly. Confirmed that feature dir is genuinely the most recent corpus
measurement (mtime 12:06 vs. corpus-check/README.md's stale 35.2% baseline,
and no corpus-measuring feature dir postdates it before release-prep
itself). "The first released version... 0.1.0 was never tagged or published"
is present verbatim. No per-round bullet lists — six area paragraphs, as
described.
6. RELEASING.md — PASS, one non-blocking note.
§1's four bump locations match reality; a repo-wide git grep -n "0\.1\.0"
turned up exactly one hit outside Cargo.lock, and it is not a checklist
gap: docs/features/vfmt-core-lift/README.md:399 quotes an illustrative
cargo tree example (vfmt_core v0.1.0 (...)) inside a different, older
feature's doc prose — not a version string any tool reads or ships. Leaving
it as an FYI for whoever next touches that doc, not filing it as a
release-prep defect. The sandbox-path vsce warning is present in
tools/RELEASING.md (§4, "Known environment issue") and I hit the same
mechanism myself: tools/release.sh packages from the repo root and it
worked; nothing about my session's paths triggered it. The marketplace
appendix is clearly headed "Optional and deferred."
7. release.sh — PASS, with a live confirmation of the claimed silver
lining. set -eu at the top; reading top to bottom, cargo build (which
can fail) runs at line 38, rm -rf "$dist" at line 47. I got to observe this
empirically, not just by reading: see the honesty note below — a real
concurrent-round compile failure hit mid-QA, and dist/ came through
untouched. No sudo anywhere in the script (grep -n sudo → no match). No
credentials or tokens touched (the two marketplace commands with tokens live
only in RELEASING.md's appendix, never in release.sh). dist/ is gitignored
via the .gitignore diff (/dist, anchored like /target and /corpus).
One footnote, not a defect: the script isn't actually network-free — cargo build and npm ci will reach out if their local caches are cold — but
nothing in the feature's docs claims "no network" for release.sh itself
(checked README.md, RELEASING.md, and the script's own header comment), so
this isn't a false claim, just worth knowing before running it offline.
Additional jobs:
- Sideload dry run — did the real install, not just unzip-inspection,
since it's cheaply reversible:
code --install-extension dist/vfmt-0.2.0.vsix→ "successfully installed";code --list-extensions --show-versionsshowed[email protected];code --uninstall-extension replace-me.vfmt→ "successfully uninstalled", confirmed gone from the list afterward. What a user would see: VS Code installs and activates "vfmt — Verilog/SystemVerilog" with no publisher verification badge (sinceREPLACE-MEisn't a real Marketplace identity) — consistent with a sideload-only extension, nothing more. package-lock.jsonversion check — PASS. Both the top-level"version"andpackages[""].versionread"0.2.0".- Nothing under
crates/touched by this feature — PASS. The onlycrates/files with pending changes arevlog_formatter/src/format.rsandvlog_parser/src/{ast,lib,parser,token}.rs— all attributable to the concurrently-running parser/formatter round (touched exactly the files that round's own compile errors pointed at, see below), none of them plausibly a release-prep edit (no version strings, no CLI/LSP wiring in the diffs).crates/vfmt,crates/vfmt_server,crates/vfmt_core,crates/vlog_linterandcrates/vlog_semanticshow no pending changes at all.
Honesty note — what I did to the tree, and why the dist/ hashes above are
"as of the start of QA", not "as of right now". After validating the
original dist/ (all results above are against that original build), I
attempted a compile as instructed. cargo build --release -p vfmt -p vfmt_server happened to succeed on the first try (18s, clean). Following the
brief's instruction to attempt tools/release.sh end-to-end once, I ran it:
it failed with a real error, crates/vlog_parser/src/parser.rs:3109,
at_postfix_segment called with 0 args against a 1-arg signature — a
concurrent-round mid-edit snapshot, not anything release-prep touches.
Crucially, dist/ was left completely untouched by the failed run
(same file timestamps as the original build), which is the empirical
confirmation of item 7's claim above. Since the instruction was "attempted
once" and a failure isn't informative about the actual release path, I ran it
a second time a few minutes later; by then the concurrent round had apparently
moved past that error, and it succeeded end-to-end, which overwrote dist/
with a fresh build. I re-validated that new output for self-consistency
(shasum -c 3/3 OK against its own new SHA256SUMS, --version → vfmt 0.2.0, vsix still 321 files / no smoke.js / LICENSE.txt present) — the
script still produces a correct, internally consistent release even against a
tree that moved under it. But the specific hashes quoted in the Work log
table above (5a0c9d7a…, ab3a5d8a…, 1c9493d2…) no longer match what is
physically in dist/ as of this QA pass, because my second release.sh run
regenerated it against newer vlog_parser/vlog_formatter source. This is
expected given dist/ is documented as disposable and gitignored
("Nothing should ever be authored there"), not a defect in the feature — but
flagging it so the lead doesn't cross-check the table against the live
directory and see a false mismatch. cargo fmt --check / cargo clippy --all-targets / cargo test --workspace were not re-run as pass/fail
gates, per the brief.
Review
2026-08-19 — lead. Verdict: accepted and committed. vfmt 0.2.0 is a buildable, checksummed, sideloadable release — publishing stays fully optional per the owner, and nothing was published anywhere.
Points reviewed and accepted:
- The mid-flight scope trim was handled exactly right: the trim
arrived before any marketplace polish was written, the README edit
that did ship is correctness-only (the stale
--skip-licenseand versioned-vsix references), and QA corroborated the placeholder publisher live ([email protected]on a real install/uninstall cycle). - The LICENSE closing the vsce handshake (packaging now runs
without
--skip-license) resolves the last open item from editor-packaging; the owner-may-rename note keeps the copyright line honestly provisional. - The version story is one line plus lockfiles because every crate workspace-inherits — verified zero 0.1.0 leftovers — and both binaries report 0.2.0 without new wiring.
- CHANGELOG as a user document: six area paragraphs, 26 verified links, the current corpus truth (58.0%, zero verification errors) rather than the flattering-baseline framing, and the honest "first release" statement.
- QA's process note is preserved: dist/ was regenerated mid-QA by a third release.sh run, so the current artifacts are self-consistent but differ from the work-log's hash table — expected for generated artifacts (dist/ is gitignored precisely because hashes are per-build), and the abort-before-delete ordering got a live, unplanned proof along the way.
Owner actions remain exactly the TODO one-liner: publishing whenever (or never), an icon, a real publisher id, and the copyright name if "lucio" isn't right.