Repository navigation
impl(033): increment 4, runtime origin and CLI output - #123
Conversation
AI review (no-findings)Looking at the changed files, I'll trace through the key logic paths: the
if let rustev_core::Supplied::Failed(_) = &s
&& let Some(r) = out.record.attempts.last()
.and_then(|a| cx.rt.backends.get(&a.backend_id))
{
ev.note_failure(...);
}
ev.supply(...)Note is always before supply. If no attempts exist or the backend_id isn't registered, the context falls back to
Matches on
Guard is placed after
Requires both
Everything looks correct and internally consistent. {"head": "10b2ec76981a478cfcaf49766a1e019475ac4ce8", "verdict": "no-findings", "findings": []}Subject: da5b8a5...10b2ec7, diff digest 8dd00b8c15ae57170eae776404a3b7f7aee68096bff123794a17221bfd508ca5, 1 call(s). An AI comment is not an approval. |
da5b8a5 to
717316e
Compare
10b2ec7 to
fc4a328
Compare
AI review (no-findings)Looking at the changed files carefully:
The old
if let rustev_core::Supplied::Failed(_) = &s
&& let Some(r) = out.record.attempts.last()
.and_then(|a| cx.rt.backends.get(&a.backend_id))If
The plan-3 capture guard fires before the mismatches loop and before any decision runs; the test asserts the record file is absent, which is consistent.
Correctly gates on both Tests and goldens The four run goldens are internally self-consistent: No bugs, security problems, or spec inconsistencies found. {"head": "fc4a328f2b021ee9d1f362bf56efaca31a9998a6", "verdict": "no-findings", "findings": []}Subject: 717316e...fc4a328, diff digest b724628d8954333cd43603aadf2cf9f98cd3ffc6a9d500db21d41bc562eda7c9, 1 call(s). An AI comment is not an approval. |
717316e to
2a0fedd
Compare
fc4a328 to
6c9ab67
Compare
AI review (no-findings)Reading through the diff carefully, focusing on correctness, consistency, and security.
The old
The guard
The
The new explicit
The function returns the value of the final
The tuple change from Golden files All four No bugs, security problems, or inconsistencies found. {"head": "6c9ab67328555eb59cf35f983f6a3b71c9b74620", "verdict": "no-findings", "findings": []}Subject: 2a0fedd...6c9ab67, diff digest c7295095a9e3aa8562a4d561df7d44c5b3b49a169f9f14900b6ba089c34bb497, 1 call(s). An AI comment is not an approval. |
2a0fedd to
02e21fb
Compare
6c9ab67 to
e1dacd6
Compare
AI review (no-findings)Reviewing the diff carefully across all changed files.
The old
The context is noted before
Schema guard (
Correct — a plan with actionability runs as v3 and writes a
Golden files
No bugs, security issues, or inconsistencies found. {"head": "e1dacd633436cddb6603eba382512132988231a9", "verdict": "no-findings", "findings": []}Subject: 02e21fb...e1dacd6, diff digest 3d4acb80b0d4c3976e9ea684ece9043e2e4d3375324351f8a44139eadc881d20, 1 call(s). An AI comment is not an approval. |
02e21fb to
cb0bdcd
Compare
e1dacd6 to
9444b88
Compare
AI review (no-findings)Reviewing the diff for bugs, security issues, and inconsistencies.
The function maps each
The original code returned
The check
Without
Golden files The four No bugs, security problems, or inconsistencies found. {"head": "9444b88f646182aa5558279bdeadb2f0abbe6e50", "verdict": "no-findings", "findings": []}Subject: cb0bdcd...9444b88, diff digest a5279e73785e74e532faa442b883f4dfc474c0a851264f43fcd3043ffcacf0be, 1 call(s). An AI comment is not an approval. |
9444b88 to
fc88043
Compare
AI review (findings)Looking at the changed files, I'll work through each area of the diff.
The function comment (and the spec.md increment 4 paragraph) both say:
But
The replacement comment reads: But
When multiple instances of the same step fail,
Needed so a plan 3 can write its record. Consistent with the early capture-refusal guard in Golden files All four new run goldens are consistent with test assertions. The {"head": "fc880435e84b4996847277af3768ce2ed89a9910", "verdict": "findings", "findings": [{"path": "crates/rustev-cli/src/run.rs", "line": 196, "summary": "The `addressing` doc comment says 'null for a proposal or an escalation', but `Outcome::UnresolvedAction` returns actual (non-null) `addressed_to` and `transient` values; if 'escalation' maps to `UnresolvedAction` per spec 3.11.3, the implementation contradicts the spec text."}, {"path": "crates/rustev-cli/src/run.rs", "line": 372, "summary": "Updated comment says 'whose capture the runtime refuses' but the runtime's FileSink now accepts rustev.run/3 after this PR; the capture refusal is performed solely by the CLI's own `execute` guard, so the comment is inaccurate."}]}Subject: 4af0b63...fc88043, diff digest a5279e73785e74e532faa442b883f4dfc474c0a851264f43fcd3043ffcacf0be, 1 call(s). An AI comment is not an approval. |
fc88043 to
480d38c
Compare
AI review (no-findings)Reviewing the diff against the spec, golden files, and internal consistency.
The function ends with an implicit return (no trailing
_ => (json!(null), json!(null)),The
Instance key alignment
Sink accepting
Golden consistency
No bugs, security problems, or inconsistencies found. {"head": "480d38ca91a437e99ef62e27cdcae16cfe65d7f7", "verdict": "no-findings", "findings": []}Subject: 4af0b63...480d38c, diff digest 8504eda930b2ac18f06a0fdb23861b91968eb83f645fe545c69debd501b2384a, 1 call(s). An AI comment is not an approval. |
Spec 033, increment 5 of 5: remaining coverage, mutation seeds, Verification and `implementation: complete`. Stacked on #123. - `crates/rustev-core/tests/actionability_rows.rs`: the computed party of every cause class as the golden `actionability.addressing.json` (each provenance class declared/not declared caller-controlled, observed/accepted, mixed accepted, `backend` per origin, budget, deadline, capability, policy, no cause, mixed combinations) via the now-public `rustev_core::computed_party`; `downgrade_grade` over spec 032 fixtures (authoritative to estimated, a `hint` stays `hint`, a pass changes nothing); `provenance_within` on a step value; `relax` and `relaxed{by}`; `escalate`; third-party plus user-supplied missing fields computed `upstream`; a terminal check issuing no semantic request on support routing; the future-window example as judgment 2 and evidence 2 goldens. - Mutation harness: the seven seeds of the Acceptance section, each detected by a named test failing. The harness's 120 s timeout counted all seven as detected on macOS (binary launch stalls), so each was also applied in place and run to completion; that exposed the terminal-check seed surviving, fixed by the support-routing test above. - Verification section declares the acceptance commands; `make verify` runs 033. - Node binding conformance remains externally blocked on spec 027 and is not claimed.
Spec 033, increment 4 of 5: the runtime origin (3.9) and the CLI output (3.11, amending 006). Stacked on #122.
RuntimeBuilder::host_backendregisters a host-implemented backend (originhost);backendstaysupstream, the default. Before supplying a failure, the runtime notes the last attempt's backend to the core (Evaluation::note_failure,FailureContext: origin and declared determinism), which thebackendcause andinvalid_backend_output's transience use. Plans withoutactionabilityread neither; run records keep their bytes.rustev_core::transientexposes 3.6.4's table.plan showaddscaller_controlled, checks with each branch's classes, consequence and static party, groups, remediations and question ids (other plans unchanged);runprintsrustev.judgment/2whole with top-leveladdressed_to/transient(statusjudged, exit 0 for every outcome). The record file sink acceptsrustev.run/3so a plan 3 runs; capture of a plan 3 decision is refused before any decision runs (spec 032 3.11 defers it to 036).refusal-16.json,refusal-17.json,actionable.show.json,actionable.run-{propose,refused,needs,unresolved}.json. Existing CLI goldens unchanged.Review round 1 (2 findings): both comments made precise:
addressinglists each outcome (an unresolved orneeds_inputoutcome's action, a refusal's party withfalse,nullfor a proposal or anescalate, which carries no action); the capture comment says the runtime refuses capturing a plan 3 decision whatever the sink accepts, andexecuterefuses the combination first.