Repository navigation
Closed
Labels
Description
What is missing today
The version lives in several places and they no longer agree.
package.json says 0.3.0 and CHANGELOG.md records the 0.3.0 release, but bin/until.mjs hard-codes const VERSION = "0.2.0", so node bin/until.mjs --version prints 0.2.0. The same string is written into the proof bundle by scripts/proof.mjs (summary.version), into the benchmark by scripts/bench.mjs (version), and asserted literally in the benchmark CLI startup check, which rejects the sample unless the CLI prints exactly 0.2.0. CITATION.cff, package-lock.json, app/package.json and app/package-lock.json still say 0.2.0 as well.
No test covers this, so the next release drifts the same way.
What done means
node bin/until.mjs --versionprints theversionfield ofpackage.json. On the current tree that is0.3.0.- The CLI, the proof bundle and the benchmark read the version from one place. A release bumps
package.jsononly; nothing else carries a second copy of the string. scripts/bench.mjsno longer compares the CLI output against a literal version. It compares it against the version the tool reports.scripts/proof.mjswrites the same version into the proof bundle that it reports insummary.version.- A test asserts that the version the CLI reports equals the
versionfield ofpackage.json, so a future drift fails the suite instead of the release. CITATION.cff,package-lock.json,app/package.jsonandapp/package-lock.jsoncarry the same value in the same change.npm run checkpasses.npm run proofandnpm run benchpass.- If
app/public/proof.jsonchanges as a result, it is regenerated withnpm run proofand committed, and the published-evidence integrity test still passes.
Boundary
- No new runtime npm dependency. The core keeps zero runtime dependencies.
- No change to the commands, the CLI flags, the SQLite schema, the loop or the exit codes.
- No telemetry, no account, no network call in CI.
- The published proof artifact stays reproducible with
npm run proof. Do not hand-editapp/public/proof.json. - No change to any claim in
README.mdother than the version string itself.
Activity
Balanov commentedon Nov 14, 2026
The drift that this issue describes is fixed in pull request #3: every copy of the version now says 0.3.0, the CLI reports 0.3.0, and the benchmark record and the proof bundle are regenerated.
What is left is the part this issue is really about: the version is still copied by hand into the CLI, the proof bundle, the benchmark, CITATION.cff and the lock files, and nothing fails when one of them is missed. The acceptance criteria above stand as they are.
Read CLI version from package.json (fixes Balanov#1)
Balanov commentedon Nov 14, 2026
The version now comes from
package.json: pull request #4 by @vishruthasgowda reads it inbin/until.mjsinstead of carrying a literal, and it is merged.What is left from the acceptance criteria is the regression test: a test that asserts the version the CLI reports equals the
versionfield ofpackage.json. Without it the next release can drift the same way, because the copy inscripts/proof.mjs, the copy inscripts/bench.mjsand the literals inCITATION.cffand the lock files are still separate.A small, self-contained first contribution. The command to run is in
CONTRIBUTING.md;npm run checkandnpm run proofmust stay green.