Skip to content

Make until --version report the version in package.json #1

Closed

Description

@Balanov

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 --version prints the version field of package.json. On the current tree that is 0.3.0.
  • The CLI, the proof bundle and the benchmark read the version from one place. A release bumps package.json only; nothing else carries a second copy of the string.
  • scripts/bench.mjs no longer compares the CLI output against a literal version. It compares it against the version the tool reports.
  • scripts/proof.mjs writes the same version into the proof bundle that it reports in summary.version.
  • A test asserts that the version the CLI reports equals the version field of package.json, so a future drift fails the suite instead of the release.
  • CITATION.cff, package-lock.json, app/package.json and app/package-lock.json carry the same value in the same change.
  • npm run check passes.
  • npm run proof and npm run bench pass.
  • If app/public/proof.json changes as a result, it is regenerated with npm run proof and 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-edit app/public/proof.json.
  • No change to any claim in README.md other than the version string itself.

Activity

  1. added
    help wanted
    good first issue
    on Nov 14, 2026
  2. Balanov commented on Nov 14, 2026

    @Balanov
    OwnerAuthor

    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.

  3. added a commit that references this issue on Nov 14, 2026
    5946d2e
  4. Balanov commented on Nov 14, 2026

    @Balanov
    OwnerAuthor

    The version now comes from package.json: pull request #4 by @vishruthasgowda reads it in bin/until.mjs instead 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 version field of package.json. Without it the next release can drift the same way, because the copy in scripts/proof.mjs, the copy in scripts/bench.mjs and the literals in CITATION.cff and the lock files are still separate.

    A small, self-contained first contribution. The command to run is in CONTRIBUTING.md; npm run check and npm run proof must stay green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions