Repository navigation
impl(010): increment 2, the rustev-aicortex adapter - #157
Conversation
AI review (no-findings)Reviewing the PR systematically across the new crate implementation, spec changes, and dependency additions.
No concrete defects found. {"head": "374a86b716c2dfe57c579737a7e6a9ba2b6de93b", "verdict": "no-findings", "findings": []}Subject: 07cd08a...374a86b, diff digest 1a430e4e64111859bb271e62f09151b13bab44d5e3616f8384cb3d3b70a02d5d, 1 call(s). An AI comment is not an approval. |
374a86b to
b988788
Compare
AI review (no-findings)Reviewing the PR: new Code correctness
Derivation of proposal/claim UUIDs uses length-prefixed SHA-256 with distinct domain strings, giving collision-resistant IDs that are stable across resubmissions. ✓
Security / Principle compliance
Governance consistency
No concrete defects found. {"head": "b9887886bbd5ce5039ce848d8b2c2a6559af9f24", "verdict": "no-findings", "findings": []}Subject: 3a238a1...b988788, diff digest 1a430e4e64111859bb271e62f09151b13bab44d5e3616f8384cb3d3b70a02d5d, 1 call(s). An AI comment is not an approval. |
b988788 to
413c222
Compare
AI review (findings)Reviewing the PR for bugs, security problems, and inconsistencies. The PR implements
{"head": "413c2227d75b7da937ec428eb14b6feb1c23b68d", "verdict": "findings", "findings": [{"path": "Cargo.lock", "line": null, "summary": "The `uuid` package entry gains a new dependency `serde_core`, not a recognized crate in the serde ecosystem; its version, source, and checksum are not visible in the diff, making its provenance unverifiable and posing a supply-chain risk."}]}Subject: 3a238a1...413c222, diff digest 27c1443ef2a8b08e26e7cd5ea3bc782b426bd9add97e96bb4f0f3ca23b41c5f5, 1 call(s). An AI comment is not an approval. |
AI review (no-findings)Reviewing the PR, which implements Architecture and boundary compliance
context.rs
time.rs The H. Hinnant days-to-civil algorithm is correctly applied. The test vectors ( proposal.rs
Spec and governance
tools/rustev-release/tests/manifests.rs The change from No bugs, security defects, or governance inconsistencies found. {"head": "413c2227d75b7da937ec428eb14b6feb1c23b68d", "verdict": "no-findings", "findings": []}Subject: 3a238a1...413c222, diff digest 27c1443ef2a8b08e26e7cd5ea3bc782b426bd9add97e96bb4f0f3ca23b41c5f5, 1 call(s). An AI comment is not an approval. |
413c222 to
2a80b7b
Compare
AI review (no-findings)Reviewing the diff for the new Cargo.toml / Cargo.lock — New git-pinned dependencies match the lock-file revision
No concrete bugs, security defects, or governance contradictions found in the evidence supplied. {"head": "2a80b7b2b92b00cf50e8672dd87c49d2149d9ec2", "verdict": "no-findings", "findings": []}Subject: fd19273...2a80b7b, diff digest 27c1443ef2a8b08e26e7cd5ea3bc782b426bd9add97e96bb4f0f3ca23b41c5f5, 1 call(s). An AI comment is not an approval. |
2a80b7b to
199b201
Compare
AI review (no-findings)Reviewing the PR, which introduces the
H. Hinnant's days-to-civil algorithm; the four test vectors (
The original Spec consistency
No concrete defects found. {"head": "199b2011a8c2b6e584dd1b05b3b4a4745857e244", "verdict": "no-findings", "findings": []}Subject: 70a6424...199b201, diff digest 27c1443ef2a8b08e26e7cd5ea3bc782b426bd9add97e96bb4f0f3ca23b41c5f5, 1 call(s). An AI comment is not an approval. |
199b201 to
0024f6c
Compare
AI review (no-findings)Reviewing the PR, which adds the Cargo.lock / dependency additions All new packages resolve from either the pinned Git revision (
The
The planned flag is removed from
The old test used No bugs, security defects, or governance inconsistencies found. {"head": "0024f6c0074bcfa5c06d28d841c155ccbc5b753d", "verdict": "no-findings", "findings": []}Subject: cf6665c...0024f6c, diff digest 396852e959668a446f6583fa2521212cb9335eb7cc43ddec2cf09a7cad216dc0, 1 call(s). An AI comment is not an approval. |
0024f6c to
0550224
Compare
AI review (no-findings)Reviewing the PR, which introduces
No concrete defects found. {"head": "0550224ff82850562ed3db4641d073b34c1a26de", "verdict": "no-findings", "findings": []}Subject: 70b99ea...0550224, diff digest c2544bd4b71402be58ed9b70ce51775723fada04316224501077b78fb2799715, 1 call(s). An AI comment is not an approval. |
0550224 to
2ccb9f9
Compare
AI review (findings)Reviewing the PR: it adds the Code observations:
Concrete finding: The {"head": "2ccb9f90ff499415e608020177704b9c3e668f28", "verdict": "findings", "findings": [{"path": "Cargo.lock", "line": null, "summary": "The uuid 1.16.0 package entry gains serde_core as a new transitive dependency introduced by the aicortex packages; serde_core is not part of the standard serde ecosystem and this addition is not acknowledged in the binding record's supply-chain review (item 1)."}]}Subject: 68f40c0...2ccb9f9, diff digest c2544bd4b71402be58ed9b70ce51775723fada04316224501077b78fb2799715, 1 call(s). An AI comment is not an approval. |
2ccb9f9 to
242c75f
Compare
AI review (no-findings)I reviewed all changed paths for bugs, security problems, and inconsistencies. Here is my analysis:
Boundary enforcement
Hardcoded secrets in tests
No concrete defects found. {"head": "242c75f97c0675d5a05afbd666e60bcc23c4e675", "verdict": "no-findings", "findings": []}Subject: 68f40c0...242c75f, diff digest 7cbbbe1618c2a3997f95e9bcd5540bd78ab122ff718125e677f4a74f585ae93d, 1 call(s). An AI comment is not an approval. |
242c75f to
12e3b29
Compare
AI review (no-findings)Reviewing the diff across all changed paths.
No concrete defects found. {"head": "12e3b29f8e6b86ff866037df79bba2fbfa52503d", "verdict": "no-findings", "findings": []}Subject: 1b0ce68...12e3b29, diff digest d3bb485d04f75d5bdfbad539ebf8daa14825ea038354bce9661ee2f6cb1524ef, 1 call(s). An AI comment is not an approval. |
Spec 029 increment 3: repeat sets and `rustev.repeat-report/1` (3.1, 3.2.5, 3.5, 3.6). Library only; no CLI, ledger, baseline or gate yet; no live run, provider call or spend. `implementation` stays `in-progress`. - `rustev-eval/src/repeat.rs` (new): `repeat(RepeatInputs)` over N reconciled runs. Refuses the `live` source (`live-source-unavailable`), N outside 1 to 64, unreconciled case measures (`reconcile`), runs that differ in dataset, split, evaluator configuration, plan or metric list or do not list the split's cases in manifest order (`mixed-runs`), a `replay` set whose runs are not identical (`not-reproducible`), an unreported stability metric or override, and a cohort over the bootstrap bound (`bootstrap-too-large`). The report names the source, configurations, dataset, split and fixed role (3.7.1), provenance, adapter rules, plan, each run's document digests and run seed, the stable cohort, and per cohort (`all`, then each slice) every metric's per-run values, `mean`, `sd`, `min`, `max`, `pooled`, interval and band with its basis. Slices below their minimum are unknown throughout; a metric without a per-case measure (cost totals, `brier`) has across-run statistics in `all` only. Latency, queue and cost metrics state their observation (`historical` for candidate runs, 3.11.2). A held-out report records `held_out` as unknown until increment 4 adds the ledger. - `rustev-eval/src/report.rs`, `eval_cases.rs`: `cost_per_1000/observed` and `/estimated` case measures (3.2.5), unknown unless cost units are declared comparable, the observed series unknown for a case with liability or an unknown charge; none for a candidate. - `rustev-eval/src/repeat_stats.rs`: `across_runs`, factored out of `run_stats` unchanged, for metrics stated only by the run reports. - Tests (`tests/reports.rs`): replay set (zero `deterministic_replay` band, pooled equal to the report, distinct run seeds, stable cohort, totals and `brier`, observations, unknown `cost_per_1000`, a reported slice and one below its minimum, round trip and byte determinism); captured set with a case losing its bundle (stable cohort, positive `k_sd` band); one captured run (unknown band); differing replays, the live source and N of 0 and 65 refused; mixed baseline and candidate runs, unreconciled measures and an unreported stability metric refused; a candidate set with historical observations and `interval_width` bands. - `tools/rustev-release/archive-policy.json`: `src/repeat.rs`. - Spec 029: increment 3 record and engineering choices. Still open from increment 2: owner decision D-029-1 (Brier per-case measures), recorded in spec 029's implementation record. Local verification (macOS arm64): `make gate` passes with spec-spine 0.31.0; `cargo clippy -p rustev-eval --all-targets -- -D warnings`, `cargo test -p rustev-eval` and `cargo test -p rustev-fp-corpus` pass. Review round 1 (1 finding, not a defect, evidence added): the finding says a candidate's cases get a known `cost_per_1000/observed` when costs are comparable and known. The cost measures sit inside `case_measures_of`'s `if inputs.candidate.is_none()` block (opened above the latency loop, outside the reviewed hunk), so a candidate's cases carry none. A comment now says so in the hunk, and a new test, `cost_per_1000_is_measured_for_a_baseline_and_never_for_a_candidate`, declares cost units comparable and checks that the baseline's cases carry cost per 1000 while the candidate's carry none and its repeat report's `cost_per_1000/observed` is historical and unknown. Review round 2: no findings. Rebased onto `main` after #159 (no conflict). `make code` passes locally on this head, except two failures caused by other worktrees sharing the build target (a test binary removed by a concurrent `cargo clean`, and `rustev-jev`'s `lodging_swap` finding its output directory already created by a concurrent run); each passes when rerun alone. Review round 3 (1 finding, fixed by making the rule explicit): the finding says `cost_unknown_attempts` should carry no observation. It is one of the four cost series a spec 004 candidate report replaces with "the candidate was not executed; latency and cost are the baseline's", so it is an observation of the runs and historical for a candidate, as 3.12.4 needs. `observation` now lists latency, queue, the four cost series and `cost_per_1000/*` by name instead of a `cost_` prefix, with that reason in its comment; the candidate test checks the cost series are historical and a quality metric has no observation. Local on this head: `make gate` passes; `cargo test --workspace --no-fail-fast` passes except `rustev-release --test manifests`, which reports a `rustev-aicortex` member that exists only in another lane's worktree sharing the build target, and passes when run alone; clippy, fmt and boundaries pass. Rebased onto `main` after #157 (no conflict); `rustev-eval` and `rustev-release` tests (including `manifests`, now that `rustev-aicortex` is on `main`) and `rustev-eval` clippy pass on the rebased head. Review round 4: no findings. Rebased onto `main` after #162 (no conflict). Review round 5: no findings. Rebased onto `main` after #160 (no conflict); `make code` and `make gate` pass locally on this head. Review round 6: no findings. Its `code` run failed in `rustev-remote-http --test runtime_batch` (`a_deadline_or_a_cancellation_after_send_ends_every_member_as_independent_calls_do`), a timing test in a crate this PR does not touch. Rebased onto `main` after #167, which changes no Rust source, so the previous head's local `make code` still covers the Rust tree; `make gate` passes.
Spec 010, increment 2: the
rustev-aicortexadapter, a non-released integration. Follows #156 (spec 021 3.4, R-49, merged), which makes therustev-aicortexbinding record's item 1 pass; rebased ontomainafter it. Nothing here authorizes a release, publication, live service call, spend or real-user data.Changes
integrations/rustev-aicortex/:AicortexContext, a bounded read of one claim-history page per bound subject under an explicit transaction bound, mapped through a declared projection of 1 to 64 field bindings into attributed snapshot entries (values, conflicts, refusals and missing fields named; no partial history read as complete), andstage_observation, an observation proposal with its Rustev lineage staged into the host'sTxnBuilderand never committed. Aicortex is pinned at the record's revision6415b765e5267188b4ecf302a93869352e28cccc, with Rahi=0.6.0, which that revision pins. Tests: unit tests of the projection, kind mapping, identities and refusals, and integration tests against a single-voter Rahi 0.6.0 store with Aicortex's schema on loopback. The code is the adapter kept onwip/010-rustev-aicortex-adapter(c776546), unchanged.specs/010-integrations/spec.md: therustev-aicortexrecord's item 1 passes under R-49 (its Git dependency is outside the release closure; every release member still resolves from crates.io only), so the record passes every row;planned: trueis removed from itsestablishesentry; the Verification block runs its tests, clippy and build and the authorization-type grep; the implementation record describes increment 2.tools/rustev-release/release-set.json:rustev-aicortexis excluded from the release family.docs/backlog.mdRUSTEV-015 state.tools/rustev-release/tests/manifests.rs: impl(021): the manifest source rule covers the release closure (R-49) #156'sa_git_source_only_an_excluded_package_reaches_is_not_judgedasserted exactly one violation when the resolve graph is absent, which held only while no workspace package had a Git source. Withrustev-aicortexits real Aicortex packages are judged too (codefailed onb988788), so that case now asserts the added package is among the violations and every violation is a source violation.Cargo.lock: regenerated by Cargo for the Aicortex revision and Rahi 0.6.0's graph (Rahi 0.7.1's entries stay; Cargo now names the two Rahi versions explicitly in dependency lists).Limitation
The adapter pins Rahi 0.6.0 and
rustev-rahipins 0.7.1, so one host cell cannot link both until Aicortex adopts Rahi 0.7.1 (record item 1).rustev-servestays unimplemented (its record refuses).Review history
Round 1 on
374a86b(stacked on #156): no findings. Rebased ontomainat3a238a1after #156 merged (no conflict, derived shards unchanged). Round 2 onb988788: no findings, but thecodejob failed on the manifest test above; fixed in this head.Round 3 on
413c222(1 finding, rejected with evidence): it readserde_coreinuuid's dependency list as an unrecognized crate.serde_coreis serde's own core crate, whichserde1.0.220 and later depend on;mainat3a238a1already locks it (Cargo.lock:name = "serde_core",version = "1.0.229", crates.io, checksum67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48), andserde1.0.229's entry lists it. This PR adds noserde_corepackage entry; only theuuidedge is new, because Aicortex enablesuuid'sserdefeature.Round 3 rerun on
413c222(thecodejob had a timing flake inrustev-remote-http'sruntime_batch, untouched here; run re-run): no findings. Rebased ontomainatfd19273(#155, no conflict).Round 4 on
2a80b7b: no findings. Rebased ontomainat70a6424(#154, no conflict).Round 5 on
199b201: no findings; held for the coordinator's merge hold. Rebased ontomainatcf6665c(#151, no conflict;Cargo.lockstill resolves with--locked).Round 6 on
0024f6c: no findings; held for the coordinator's merge hold. Rebased ontomainat70b99ea(#158):release-set.jsonkept both the newrustev-otelexclusion and this one; the manifest tests pass locally (18 of 18).Round 7 on
0550224: no findings. Rebased ontomainat68f40c0(#161, no conflict).Round 8 on
2ccb9f9(1 finding, the sameserde_corequestion as round 3): therustev-aicortexrecord's item 1 now states the newuuid -> serde_coreedge and whereserde_corecomes from, so the evidence is inside the diff.Round 9 on
242c75f: no findings. Rebased ontomainat1b0ce68(#159, no conflict).