Skip to content

impl(056): part a, the version command and the declared support-routing example - #324

Merged
bartekus merged 1 commit into
mainfrom
impl/056-version-example
Oct 27, 2026
Merged

bartekus merged 1 commit into
mainfrom
impl/056-version-example

Conversation

@bartekus

Copy link
Copy Markdown
Contributor

Spec 056 (the next family release, the CLI version command, declared consumer examples and the fresh-consumer qualification), part a.

  • 3.1: rustev version and rustev --version print rustev <version> (the rustev-cli package version) and a newline, exit 0. Either form with any further argument is a usage error. rustev --help lists the command. No other command changes.
  • 3.2: rustev-pkg-support-routing adds SYNTHETIC package data with public constants: EXAMPLE_RULES (a copy of backends/rustev-backend-rules/tests/fixtures/support-routing.rules.json, kept byte-equal by a test), EXAMPLE_CALIBRATION (the package tests' unfitted temperature artifact bound to that program), EXAMPLE_SNAPSHOT (sr-t01) and EXAMPLE_JUDGMENT (the expected judgment at EVALUATION_TIME_MS, reproduced in the workspace).
  • tools/rustev-release/archive-policy.json lists the four data files.
  • Spec 056: implementation: in-progress and the part a record. Parts b (harness, qualify, signed instruction) and c (workflow) follow.

Tests: crates/rustev-cli/tests/usage.rs, packages/rustev-pkg-support-routing/tests/example.rs, tools/rustev-release/tests/ (archives, embedded files).

@github-actions

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the diff across all changed paths.

crates/rustev-cli/src/args.rs — The version/--version branch is placed before the help branch, correctly short-circuiting before any further parsing. The argv.len() != 1 guard rejects any trailing argument including "--" and "". The HELP constant update is consistent with the new command. No issues.

crates/rustev-cli/src/lib.rs — Invocation::Version arm uses env!("CARGO_PKG_VERSION") (compile-time, correct crate), outputs one text line, exits code::OK. The comment update is accurate. No issues.

crates/rustev-cli/tests/usage.rs — Three new tests exercise the canonical form, the extra-argument rejection (including the edge-cases "" and "--", both correctly caught by len != 1), and the help listing. No issues.

packages/rustev-pkg-support-routing/data/synthetic-example.* — Four fixture files. The calibration, judgment, and snapshot lack a trailing newline; rules.json has one. The byte-for-byte judgment assertion in example.rs line 78 (assert_eq!(judgment.canonical().unwrap(), pkg::EXAMPLE_JUDGMENT)) will pass only if canonical() also produces no trailing newline; since these files were produced by bless that is expected. The dataset hash in the calibration (sha256:dddd…) is an authored placeholder, consistent with the "unfitted, SYNTHETIC" labelling and the assert_eq!(declared, generated_calibration) guard which would have caught any mismatch during bless.

packages/rustev-pkg-support-routing/tests/example.rs — The evaluation loop calls evaluation.pending() once and iterates; evaluation.finish() would return an error (.unwrap() would panic) if any requests remain unsupplied, so an incomplete single-round assumption would surface immediately. The assert_eq!(pkg::EXAMPLE_SNAPSHOT, pkg::snapshot("sr-t01").unwrap()) cross-check is sound. The rules_copy_is_the_backend_fixture_byte_for_byte test reads the pre-existing fixture at runtime—if content diverges the test fails, but that is the intended enforcement mechanism rather than a defect in this PR. No issues with the test logic.

specs/056-release-0-1-1-and-consumer-qualification/spec.md — implementation: in-progress is valid for status: approved (schedulable, W-001 warning per the contract table). The implementation record accurately describes what Part a delivers and what (parts b and c) follows.

tools/rustev-release/archive-policy.json — Four new entries added under rustev-pkg-support-routing, matching the four data files introduced. No issues.

{"head": "83e71c79b1bbec55be233a415efec0b7b1651b40", "verdict": "no-findings", "findings": []}

Subject: 0cf7fd9...83e71c7, diff digest ba31867f3179405341ff4810642c5badf50a28f810e40e9e0a8569001a846a5d, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus enabled auto-merge October 27, 2026 15:37
@bartekus
bartekus added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit a7eb3d8 Oct 27, 2026
33 checks passed
@bartekus
bartekus deleted the impl/056-version-example branch October 27, 2026 18:54
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.

1 participant