You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
impl(056): part a, the version command and the declared support-routing example - #324
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spec 056 (the next family release, the CLI version command, declared consumer examples and the fresh-consumer qualification), part a.
rustev versionandrustev --versionprintrustev <version>(therustev-clipackage version) and a newline, exit 0. Either form with any further argument is a usage error.rustev --helplists the command. No other command changes.rustev-pkg-support-routingadds SYNTHETIC package data with public constants:EXAMPLE_RULES(a copy ofbackends/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) andEXAMPLE_JUDGMENT(the expected judgment atEVALUATION_TIME_MS, reproduced in the workspace).tools/rustev-release/archive-policy.jsonlists the four data files.implementation: in-progressand 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).