Repository navigation
fix(rust): refuse unexecuted effect assertions (#8927) - #8934
Conversation
Share the existing SPEC-0197 admission and refusal across side-effect and call-deletion assert_eq!/assert! oracles, preserving reachable observers. Pin strong, medium, dead and mixed controls; invalidate classified caches. Analyzer/Cargo qualification and honesty corpus enrollment remain pending the bounded worker's admitted build resources; retain this candidate Draft.
Keep exact refusal-note assertions on the strong contexts that #8924 retains for admission. Medium dead oracles may be dropped at extraction; they still retain no observation or discriminator.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 13 minutes. View limit details
Comment |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-head candidate inspection, recorded by the delivery author as COMMENT.
reviewed_head_sha:1326fadb515344a0b6d238c0df9f31952c68fba1
tree:31fb95bb7bc5891aeb062790f6e0a722dd784560
integration_basis:fe098012eeb27d10a825f3c0f8fd9f3dfc6fdddf
claim_boundary:#8927 effect assertion admission; #8924 extraction and #8740 observer identity are untouched.
No blocking implementation defect was found in the complete nine-file diff. A fresh read-only reviewer independently matched all changed-file Git blob hashes to the committed compare and traced the admission decision through classifier/evidence.rs into reveal.rs before effect matching, confirmation, strongest-oracle selection and related-test projection. Original assertion counts remain intact, so rejected assertions cannot manufacture singleton fallback evidence. Admitted siblings remain creditable. Refusal macro identity, effect-specific advice and all three classified-cache generations follow the change.
Oracle challenge: literal strong/medium expectations, two exact effect subjects, three dead contexts, direct/mixed controls and produced-payload mutations discriminate the intended behavior. Removing only the new admission would retain dead strong assertions and violate the pinned reachable_unrevealed/Observe-no/none-strength results. The retained standalone runtime harness establishes compiled fixture semantics (30 subjects, one collected/executed test each); it does not establish analyzer behavior or full test-target compilation.
Blocking evidence-package gap: AGENTS.md requires confirmed false promotions in the standing honesty corpus; the new matrix is not yet enrolled. Materialize the dead/reachable fixture controls, generate actual candidate expected output and add independent nonempty/count/class/oracle invariants. No expected/check.json was fabricated.
proof_and_ci_observed: complete committed compare and blob parity; runtime receipt/source/log hashes inspected; Rust1.95 format and TOML/whitespace checks reported by delivery owner.
proof_or_review_missing: analyzer red/green/removal execution; Cargo compilation and baseline/check-fast/precommit; honesty enrollment; goldens/fixtures/dogfood; rendered analyzer execution; hosted qualification and final published-head/integration review.
affected_currentness_dimensions: implementation, stimulus, oracle, refusal guidance, cache generation, spec/traceability/changelog.
platform_relevance: parser/admission change is platform-neutral; the narrow runtime fixture execution was native Windows Rust1.95; no native analyzer or hosted matrix pass is claimed.
disposition: REVIEW_INCOMPLETE. Source-review confidence is high for the bounded repair. Keep Draft; no merge-ready request until missing proof and integration judgment are composed and refreshed.
Normalize whitespace before checking the same ordered guidance phrase. Preserve JSON, effect-class, provenance and missing-oracle assertions.
Render a cloned analyzer report with its next steps removed and require the same whitespace-normalized guidance check to reject that output.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Affected exact-head review for the test-only repair.
reviewed_head_sha:13890df64b884c103c09d1907c6955c57b5d24b6
tree:ba43132db2dfe53b16aab4f90b54f55f7bafb96b
reviewed_delta:1326fadb515344a0b6d238c0df9f31952c68fba1...13890df
changed_surface:crates/ripr/tests/owner_pin_execution/effect_assertions.rs
disposition:REVIEW_INCOMPLETE; affected source review has no actionable findings and permits guarded Draft publication/requalification.
A read-only independent reviewer matched blob4c08c0b5d6564904f05266cedb2b8fc4dbbd2f56 and traced the renderer/API. Whitespace normalization retains the identical ordered phrase; missing, wrong-sink and reordered guidance cannot satisfy it. The negative clone clears every finding's next step, rerenders actual Human output, and rejects it with the same helper. Human sections/shared catalogue and next_step producers render no guidance for None. CheckOutput is public/Clone with mutable findings, and the field is public. Production source and per-family JSON/class/stage/oracle pins are unchanged.
Cloud evidence at the old1326 head establishes a test-oracle defect: original/restored analyzer runs exit101 at the raw Human substring while the surgical admission removal fails the intended assert_eq/after_return/side_effect class assertion. The observed Human phrase wraps across lines. The retained five-input standalone calibration passes, including missing-guidance, wrong-sink and reordered negatives; it is not analyzer requalification.
Residual: Human phrase presence is report-level; per-family JSON pins remain intact, preserving the preceding test's scope. Exact-new-head analyzer execution, actual missing-guidance rerender success, complete matrix, corpus/goldens/default-feature/required qualification remain pending. Prior unaffected source-review conclusions remain valid. No local heavy build, CI request or merge was performed.
EffortlessSteven
left a comment
There was a problem hiding this comment.
[P1] Preserve reachable std/core-qualified effect assertions
Failure mode: At exact 13890df64b884c103c09d1907c6955c57b5d24b6, a collected, unconditional std::assert!(*notifier.sent.borrow() == Vec::from(["order-42".to_string()])); after process_order(¬ifier, "order-42") loses its existing medium effect observation. Both side_effect and call_deletion become reachable_unrevealed with Observe/Discriminate no, unknown oracle and none strength. ::core::assert! behaves identically. Direct, same-test live/dead, and separate-test live/dead controls all lose the reachable oracle (12 finding mismatches). The diagnostic says the qualified assertion is opaque and might hide a return, despite its verified standard root.
Why here: OwnerPinSyntax::admits_equality_assertion newly gates qualified assert! for effect families, but the reused execution reader's qualified escape/root handling specializes in assert_eq! (StdRootedCalls and std_rooted_macro_path(..., "assert_eq")). The new consumer now refuses valid standard boolean assertions. This contradicts #8927's preservation of independently reachable observers. This is a candidate regression, rather than an inferred baseline failure: removing only the new SideEffect/CallDeletion arms restores these direct controls to weakly_exposed / mock_expectation / medium, and exact source restoration reproduces the refusal.
Fix direction: Repair the same candidate's existing qualified-root/context authority so verified, unshadowed standard assert! can establish execution without bypassing the new dead-context gate. Keep root rebinding/opaque macro refusal, do not simply remove effect admission, and add these qualified live/dead controls alongside the retained bare assertion matrix.
Observed execution on native Linux, Rust/Cargo 1.95.0, lang-rust-only:
- Candidate/restored: each ran one named integration test through public
check_workspaceand JSON/Human rendering; 24 scenarios, 48 findings each. All 12 qualified equality scenarios pass their class/stage/oracle/related-row pins, including three dead contexts and live siblings. All boolean dead contexts stay uncredited. The 6 reachable boolean scenarios produce the 12 mismatches above; native exit 101 is the intended behavioral finding, not compilation/setup failure. - Surgical removal: only delete
SideEffect/CallDeletionfrom the two new family matches; withISSUE8927_ONLY_CONTEXT=direct, the same literal pins pass (4 scenarios, 8 findings, exit 0). An earlier unfiltered removal also detects dead equality credit in the separate-test row, as expected; removal is a wrong-implementation control, not a proposed fix. - Restoration: original tracked production file restored byte-for-byte (SHA256
db3ec953225356795cf739e8e34330c32aa62da68620d1355c52dcbc2704c51f); tracked diff empty; all 48 finding observations recur. - Native runtime: 24 correct/wrong subjects for the two qualified boolean spellings across six contexts compile with
rustc --edition=2024 --test; all 28 listed/executed tests match expectations. Correct subjects pass; wrong effects fail direct/mixed/separate and pass after-return/if-false/uncalled-closure. - Additional retained observation: qualified
assert_eq!(..., vec![...])can instead withhold a gap asstatic_unknowndue to nested macro binding. The principal reproducer below avoids nested macros, so this limitation cannot explain its boolean failure.
Reproduction: save the source below as crates/ripr/tests/issue8927_consumer_probe.rs in a disposable checkout of the reviewed head, create a writable evidence directory, then run:
ISSUE8927_EVIDENCE=/absolute/probe-output CARGO_BUILD_JOBS=1 CARGO_INCREMENTAL=0 CARGO_PROFILE_TEST_DEBUG=0 CARGO_PROFILE_DEV_DEBUG=0 cargo test --locked -p ripr --no-default-features --features lang-rust --test issue8927_consumer_probe -- --nocaptureProbe SHA256: ba57980dee81b26cc3540c2613912481a4bd16c48110e3d3dd020e6cccdf3bcc. Candidate and removal reports check exact nonempty subject inventories. Omit the optional context filter for the complete matrix; use only direct for the causal preservation control.
Inspected surfaces: complete nine-file candidate diff; shared admission, reveal filtering before effect matching/strongest-oracle selection, refusal evidence and human/JSON guidance, cache-generation pins, SPEC-0197 and traceability. No extraction/graph-traversal changes made. #8931 is untouched.
Disposition: REPAIR_REQUIRED for qualified reachable-assertion compatibility; confidence high. Current PR head rechecked unchanged at 04:17 UTC. Candidate/branch ownership remains with the assigned #8927 delivery owner. Source/evidence only were exercised in a detached inspection tree; no candidate branch write, CI request, merge, release or deployment. Parent retains overall follow-through and existing holds. The owner should repair this finding, retain dead-context honesty, then resume the already-recorded corpus/default-feature/broader proof and integration obligations. These focused results do not satisfy those missing dimensions or establish merge readiness.
Complete disposable analyzer probe
use ripr::{CheckInput, Mode, OutputFormat, check_workspace, render_check};
use std::path::{Path, PathBuf};
#[test]
fn qualified_effect_assertions_and_live_siblings() -> Result<(), String> {
let fixture = Path::new(env!("CARGO_MANIFEST_DIR"))
.join("../../fixtures/observation_verified_side_effect");
let production = std::fs::read_to_string(fixture.join("input/src/lib.rs"))
.map_err(|error| error.to_string())?;
let evidence = PathBuf::from(std::env::var("ISSUE8927_EVIDENCE").map_err(|e| e.to_string())?);
let mut mismatches = Vec::new();
for (macro_path, assertion) in [
(
"std_eq",
"std::assert_eq!(notifier.sent.borrow().first().map(String::as_str), Some(\"order-42\"));",
),
(
"core_eq",
"::core::assert_eq!(notifier.sent.borrow().first().map(String::as_str), Some(\"order-42\"));",
),
(
"std_assert",
"std::assert!(*notifier.sent.borrow() == Vec::from([\"order-42\".to_string()]));",
),
(
"core_assert",
"::core::assert!(*notifier.sent.borrow() == Vec::from([\"order-42\".to_string()]));",
),
] {
for context in [
"direct",
"after_return",
"if_false",
"uncalled_closure",
"mixed",
"separate",
] {
if std::env::var("ISSUE8927_ONLY_CONTEXT").is_ok_and(|wanted| wanted != context) {
continue;
}
let test = |name: &str, check: &str| {
format!(
"#[test]\nfn {name}() {{\nlet notifier = Notifier::new();\nprocess_order(¬ifier, \"order-42\");\n{check}\n}}\n"
)
};
let check = match context {
"direct" | "separate" => assertion.to_owned(),
"after_return" => format!("return;\n{assertion}"),
"if_false" => format!("if false {{\n{assertion}\n}}"),
"uncalled_closure" => format!("let _never = || {{\n{assertion}\n}};"),
"mixed" => format!("{assertion}\nreturn;\n{assertion}"),
_ => return Err("unknown context".into()),
};
let mut tests = test("process_order_exact", &check);
if context == "separate" {
tests.push_str(&test(
"process_order_dead",
&format!("return;\n{assertion}"),
));
}
let source =
format!("{production}\n#[cfg(test)]\nmod tests {{\nuse super::*;\n{tests}}}\n");
let root = evidence.join(format!("{macro_path}_{context}"));
std::fs::create_dir_all(root.join("src")).map_err(|e| e.to_string())?;
std::fs::copy(fixture.join("input/Cargo.toml"), root.join("Cargo.toml"))
.map_err(|e| e.to_string())?;
std::fs::write(root.join("src/lib.rs"), source).map_err(|e| e.to_string())?;
let report = check_workspace(CheckInput {
root: root.clone(),
diff_file: Some(fixture.join("diff.patch")),
mode: Mode::Fast,
format: OutputFormat::Json,
include_unchanged_tests: true,
..CheckInput::default()
})?;
let rendered = render_check(&report, &OutputFormat::Json)?;
std::fs::write(root.join("report.json"), &rendered).map_err(|e| e.to_string())?;
std::fs::write(
root.join("report.txt"),
render_check(&report, &OutputFormat::Human)?,
)
.map_err(|e| e.to_string())?;
let json: serde_json::Value =
serde_json::from_str(&rendered).map_err(|e| e.to_string())?;
assert_eq!(json["analysis_outcome"]["analysis_complete"], true);
let findings = json["findings"].as_array().ok_or("missing findings")?;
assert_eq!(findings.len(), 2, "{macro_path}/{context}: subjects");
let live = matches!(context, "direct" | "mixed" | "separate");
for family in ["side_effect", "call_deletion"] {
let selected: Vec<_> = findings
.iter()
.filter(|f| f["probe"]["family"] == family)
.collect();
assert_eq!(
selected.len(),
1,
"{macro_path}/{context}/{family}: subject"
);
let finding = selected[0];
let strong = macro_path.ends_with("eq");
let expected = if live {
if strong { "exposed" } else { "weakly_exposed" }
} else {
"reachable_unrevealed"
};
if finding["classification"] != expected {
mismatches.push(format!(
"{macro_path}/{context}/{family}: expected {expected}, observed {}",
finding["classification"]
));
continue;
}
assert_eq!(finding["ripr"]["reach"]["state"], "yes");
assert_eq!(
finding["ripr"]["observe"]["state"],
if live { "yes" } else { "no" }
);
assert_eq!(
finding["ripr"]["discriminate"]["state"],
if live {
if strong { "yes" } else { "weak" }
} else {
"no"
}
);
assert_eq!(
finding["oracle_kind"],
if live {
if strong {
"exact_value"
} else {
"mock_expectation"
}
} else {
"unknown"
}
);
assert_eq!(
finding["oracle_strength"],
if live {
if strong { "strong" } else { "medium" }
} else {
"none"
}
);
let related = finding["related_tests"]
.as_array()
.ok_or("missing related tests")?;
assert_eq!(related.len(), if context == "separate" { 2 } else { 1 });
if !live {
assert_eq!(related[0]["oracle"], "");
assert_eq!(related[0]["oracle_strength"], "none");
}
if !live && strong {
let leaf = if macro_path.ends_with("eq") {
"assert_eq"
} else {
"assert"
};
let evidence_text = finding["evidence"].to_string();
assert!(
evidence_text.contains(&format!("`{leaf}!` in process_order_exact")),
"actual macro refusal: {evidence_text}"
);
assert!(
finding["ripr"]["observe"]["summary"]
.as_str()
.ok_or("summary")?
.contains("rust_assertion_context_unestablished")
);
}
if context == "separate" {
let dead = related
.iter()
.find(|t| t["name"] == "process_order_dead")
.ok_or("dead sibling")?;
assert_eq!(dead["oracle"], "");
assert_eq!(dead["oracle_strength"], "none");
let reached = related
.iter()
.find(|t| t["name"] == "process_order_exact")
.ok_or("live sibling")?;
assert_eq!(
reached["oracle_strength"],
if strong { "strong" } else { "medium" }
);
}
}
println!("{macro_path}/{context}: two findings, live={live}");
}
}
assert!(mismatches.is_empty(), "{}", mismatches.join("\n"));
Ok(())
}Bump classified cache generations to 1.86/0.92 over main's 1.85/0.91 (#8600). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
…on (#8927) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
…generation 1.86 fixtures (#8927) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
…on unit test (#8927) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
|
Independent exact-head review of 08fca17 (base fc35890). Disposition: REPAIR_REQUIRED. Blocking
Over-refusal of live assertions (vs parent), non-blocking but undisclosed
Verified clean
Not established: the Generated by Claude Code |
|
Technical handoff for the current #8934 delivery owner (observed Ready head 08fca17; current repair-required review). The bounded inherited-fixture repair is now Draft #8984, frozen at 6c5ec4a on fc35890. No #8934 branch or owned stimulus was changed. The inherited patch maps notifier.send(order_id) to17 while the actual tail-return is at18. Aligned production analysis returns exactly one SideEffect (exposed) and one ReturnValue (weakly_exposed), zero CallDeletion. Nonempty public-path family/class/location controls and pre-analysis early/late/old-side coordinate rejection bind that distinction; the old coordinates fail the family assertion with {call_deletion,side_effect}. The old execution observations remain authentic for those inputs, but their CallDeletion rows are not genuine standalone-call family proof. SideEffect observations should be assessed independently; this handoff does not refute their separate admission findings. Please keep genuine CallDeletion proof on your owned aligned semicolon-terminated standalone-call stimuli, with nonempty family pins and source/diff setup rejection. #8984 is Draft, not landed; do not assume it is already integrated. Local focused controls2/2, fixture/contracts/traceability, published-head check-fast (15 gates, full workspace/all-target Clippy), precommit, honesty corpus and full goldens check passed; locked fixture dependency preparation closed the initial goldens environment gap. Hosted qualification remains unestablished. The generic return-value advice limitation in #8984 is explicitly retained, not hand-edited out of actual expectations. Parent delivery owner retains acceptance/qualification coordination. |
|
REPAIR_REQUIRED — completed isolated #8934 + #8984 composition review, observed 2026-10-20 19:05 UTC. Observed current #8934 head Actionable result now: authentic aligned standalone-call stimuli reproduce false credit for SideEffect and genuine CallDeletion when the assertion shares a line with its enclosing context. For example: pub fn process_order(notifier: &Notifier, order_id: &str) -> bool {
notifier.send(order_id); // actual changed line 18; diff @@ -16,5 +16,5 @@
true
}
// in a collected test, after process_order(¬ifier, "order-42"):
for _ in 0..1 { break; assert_eq!(*notifier.sent.borrow(), vec!["order-42".to_string()]); }Actual complete public 104 scenarios per style (2 authentic stimuli × 4 assertion forms × 13 contexts), 208 finding rows per style; every case asserts analysis_complete, exactly2 findings, exact families, line18/expression and nonempty related tests before admission checks. Expanded:18 mismatches; compact:141 (mix of dead credits and live over-refusals). This is focused local proof, not hosted qualification. Independent runtime controls:52 compiled subjects (bare equality, aligned standalone call, 13 contexts ×2 styles ×correct/wrong producer), exactly1 listed/executed test each; all52 matched expectations. Wrong effects fail direct/mixed and pass every dead context. Thus the compact failure is analyzer over-credit, not a malformed/unexecuted runtime control. Fixture reconciliation: aligned tail-return stimuli produce exactly Raw JSON/Human reports, actual generated sources/diffs, compiler/list/run logs and executable witnesses are retained in Completed repair queue and actual tests
Identity/configuration and limits
Complete independent analyzer probe (full-run source SHA256 466908c1f5ec356f31f3e35186c797211bda7b9a6b49225041b2c3da5ef7a58e)use ripr::{check_workspace, render_check, CheckInput, Mode, OutputFormat};
use std::path::{Path, PathBuf};
fn context(name: &str, a: &str) -> String {
match name {
"direct" => a.into(),
"mixed" => format!("{a}\nreturn;\n{a}"),
"after_return" => format!("return;\n{a}"),
"if_false" => format!("if false {{\n{a}\n}}"),
"uncalled_closure" => format!("let _c = || {{\n{a}\n}};"),
"for_break" => format!("for _ in 0..1 {{ break;\n{a}\n}}"),
"for_continue" => format!("for _ in 0..1 {{ continue;\n{a}\n}}"),
"for_zero" => format!("for _ in 0..0 {{\n{a}\n}}"),
"loop_break" => format!("loop {{ break;\n{a}\n}}"),
"label_break" => format!("'a: {{ break 'a;\n{a}\n}}"),
"macro_uninvoked" => format!("macro_rules! w {{ () => {{\n{a}\n}} }}"),
"macro_discard" => format!("macro_rules! w {{ ($($t:tt)*) => {{}} }}\nw!({a});"),
"cfg_let" => format!("#[cfg(any())] let _x = {{\n{a}\n1 }};"),
_ => unreachable!(),
}
}
#[test]
fn aligned_authentic_family_admission_matrix() -> Result<(), String> {
let evidence = PathBuf::from(std::env::var("REVIEW_EVIDENCE").map_err(|e| e.to_string())?);
let fixture = Path::new(env!("CARGO_MANIFEST_DIR")).join("../../fixtures/observation_verified_side_effect");
let tail = std::fs::read_to_string(fixture.join("input/src/lib.rs")).map_err(|e| e.to_string())?;
let tail_diff = std::fs::read_to_string(fixture.join("diff.patch")).map_err(|e| e.to_string())?;
let mut bad = Vec::new();
let mut rows = 0;
let compact = std::env::var("REVIEW_STYLE").is_ok_and(|s| s == "compact");
for stimulus in ["tail", "standalone"] {
let (production, diff, families, expression) = if stimulus == "tail" {
(tail.clone(), tail_diff.clone(), vec!["return_value", "side_effect"], "notifier.send(order_id)")
} else {
(tail.replace(" notifier.send(order_id)\n", " notifier.send(order_id);\n true\n"),
tail_diff.replace("@@ -16,4 +16,4 @@", "@@ -16,5 +16,5 @@").replace("notifier.send(\"static_msg\")", "notifier.send(\"static_msg\");").replace("notifier.send(order_id)\n", "notifier.send(order_id);\n true\n"),
vec!["call_deletion", "side_effect"], "notifier.send(order_id);")
};
// Exact source/diff coordinate controls run before analysis, without offset recovery.
let call_line = production.lines().position(|l| l.trim() == expression).ok_or("missing changed call")? + 1;
assert_eq!(call_line, 18);
assert!(diff.contains("+ notifier.send(order_id)"));
assert!(diff.contains("@@ -16,"));
for (form, assertion) in [
("eq", "assert_eq!(*notifier.sent.borrow(), vec![\"order-42\".to_string()]);"),
("matches", "assert!(matches!(notifier.sent.borrow().first().map(String::as_str), Some(\"order-42\")));"),
("std_eq", "std::assert_eq!(notifier.sent.borrow().first().map(String::as_str), Some(\"order-42\"));"),
("std_assert", "std::assert!(*notifier.sent.borrow() == Vec::from([\"order-42\".to_string()]));"),
] {
for ctx in ["direct", "mixed", "after_return", "if_false", "uncalled_closure", "for_break", "for_continue", "for_zero", "loop_break", "label_break", "macro_uninvoked", "macro_discard", "cfg_let"] {
let root = evidence.join(format!("{stimulus}_{form}_{ctx}{}", if compact { "_compact" } else { "" }));
std::fs::create_dir_all(root.join("src")).map_err(|e| e.to_string())?;
std::fs::copy(fixture.join("input/Cargo.toml"), root.join("Cargo.toml")).map_err(|e| e.to_string())?;
let oracle = context(ctx, assertion);
let oracle = if compact { oracle.replace('\n', " ") } else { oracle };
let src = format!("{production}\n#[cfg(test)]\nmod tests {{\nuse super::*;\n#[test]\nfn process_order_exact() {{\nlet notifier = Notifier::new();\nprocess_order(¬ifier, \"order-42\");\n{oracle}\n}}\n}}\n");
std::fs::write(root.join("src/lib.rs"), src).map_err(|e| e.to_string())?;
std::fs::write(root.join("diff.patch"), &diff).map_err(|e| e.to_string())?;
let report = check_workspace(CheckInput { root: root.clone(), diff_file: Some(root.join("diff.patch")), mode: Mode::Fast, format: OutputFormat::Json, include_unchanged_tests: true, ..CheckInput::default() })?;
let rendered = render_check(&report, &OutputFormat::Json)?;
std::fs::write(root.join("report.json"), &rendered).map_err(|e| e.to_string())?;
std::fs::write(root.join("report.txt"), render_check(&report, &OutputFormat::Human)?).map_err(|e| e.to_string())?;
let json: serde_json::Value = serde_json::from_str(&rendered).map_err(|e| e.to_string())?;
assert_eq!(json["analysis_outcome"]["analysis_complete"], true, "{stimulus}/{form}/{ctx}");
let fs = json["findings"].as_array().ok_or("missing findings")?;
assert_eq!(fs.len(), 2, "nonempty inventory: {stimulus}/{form}/{ctx}");
let actual: std::collections::BTreeSet<_> = fs.iter().map(|f| f["probe"]["family"].as_str().unwrap_or("")).collect();
assert_eq!(actual, families.iter().copied().collect(), "authentic families: {stimulus}/{form}/{ctx}");
for family in &families {
let selected: Vec<_> = fs.iter().filter(|f| f["probe"]["family"] == *family).collect();
assert_eq!(selected.len(), 1);
let f = selected[0];
assert_eq!(f["probe"]["line"], 18);
assert_eq!(f["probe"]["expression"].as_str().ok_or("expression")?.trim().trim_end_matches(';'), expression.trim_end_matches(';'));
assert!(!f["related_tests"].as_array().ok_or("related")?.is_empty());
let class = f["classification"].as_str().ok_or("class")?;
println!("ROW {stimulus}/{form}/{ctx}/{family}={class}");
rows += 1;
if *family == "return_value" { continue; }
let credited = matches!(class, "exposed" | "weakly_exposed");
let live = matches!(ctx, "direct" | "mixed");
if credited != live {
bad.push(format!("{stimulus}/{form}/{ctx}/{family}: live={live} class={class}"));
}
if live && credited {
assert_eq!(f["ripr"]["observe"]["state"], "yes");
assert_ne!(f["oracle_strength"], "none");
}
}
}
}
}
std::fs::write(evidence.join(if compact { "violations-compact.txt" } else { "violations.txt" }), bad.join("\n")).map_err(|e| e.to_string())?;
println!("SUMMARY rows={rows} violations={}", bad.len());
assert!(bad.is_empty(), "{}", bad.join("\n"));
Ok(())
}Raw analyzer observations: expanded then compact; each ends with actual denominator/mismatch summaryActual cache failure and retained original/challenge witness identities |
|
Evidence handoff to the current #8934 takeover/analyzer delivery owner; source ownership and repair-required disposition are preserved. #8983 investigation with scope correction and acceptance recommendation is now complete. Evidence-only commit cf849173 changes only a bounded handoff directory; no competing implementation PR or shared-consumer writer. On your unchanged A surgical four-name dispatch expansion removes108 dead credits but also36 live credits: bare candidates are not collected; std macros are opaque under assert_eq-specialized root/escape handling. This is a discrimination experiment, not a proposed patch. Original source restored exactly and captured baseline rerun reproduces all264 rows. Please compose actual collection/execution/root authority with live-preservation controls rather than widen only the match; keep sink identity and oracle strength separate. The adjacent numeric plain/std::assert dead-return rows need an explicit scope disposition. Your current aligned standalone/compact-line provenance review remains separate and necessary; this probe uses multiline assertions. Exact config, source/patch/binary hashes, raw matrices/Cargo/runtime logs and bounded recommendation are linked in the evidence commit. No full/hosted qualification, Ready/merge clearance or hold removal. Next transition stays with your single production writer and parent acceptance coordination. |
There was a problem hiding this comment.
Verification questions
- Confirm cache-generation ownership is internally coherent for this head: production, currentness tests, docs, and fixture commitments advance together.
- Confirm the sweep's must-credit oracle exempts nested-macro std::assert_eq and std::assert forms even in direct controls.
- Confirm the classifier unit test replaced a bare assert! oracle with unwrap_err() to avoid the new synthetic-source gate, but no equivalent source-file assert! oracle assertion was added at this call site.
- Confirm the sweep labels direct and mixed rows discriminating but exempts qualified forms containing nested macros from must-credit enforcement.
Refuted
- The new effect gate can be bypassed because compound statements have no outer assertion path.; refuted because: admits_equality_assertion fail-closes compound effect facts containing assert_eq/assert and routes them through self.refusal; the generated sweep includes loops, macro bodies, expressions, and one-line prefixed contexts.
- The changed Rust analyzer and fixtures introduce a worker/async/GC/transfer lifetime defect.; refuted because: The reviewed changed surfaces contain synchronous AST/string/file analysis and test execution only; no worker boundary, async task crossing, shared memory, transferable object, GC root, or detach operation is present.
- The effect-assertion admission changes might cause an active-view or resize-related UB regression.; refuted because: The changed code operates on Rust source syntax, classifications, strings, sets, and reports only. No active-view or backing-store contract is touched, and unsafe-review found no new unsafe/native gaps.
- The new macro-path and compound-statement parsing introduces an exploitable denial of service through recursive or unbounded attacker-controlled input.; refuted because: The analyzed artifacts are repository Rust source text, and the patch adds no externally controlled recursive grammar or unbounded processing loop. No concrete pathological-input evidence was found.
Evidence gaps
- The planned cargo-test execution has not yet produced a receipt in the review packet.
- Dynamic proof for the changed Rust analyzer is not available in this packet.
- The late cargo-test phase is the remaining executable proof for the focused suite.
- Model proof intent was rejected by deterministic validation.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REPAIR_REQUIRED — independent changed-head inspection of e390314 (tree df40c12b1d45f331c97ba58dc80058ac067998e4).
Confirmed P2: classifier/evidence.rs derives refused-assertion identity from the outer macro of compound oracle text. An aligned line-18 effect subject with !true && { assert_eq!(...); true }; emits a nameless ! refusal. macro_rules! w { ($($t:tt)*) => {} } w!(assert_eq!(...)); renders the misleading Human hint “the standard macro_rules!”. Both correctly remain reachable_unrevealed; this finding concerns truthful refusal provenance and guidance, not a new admission bypass. Seven exact-head JSON/Human CLI controls completed with exit 0, including live exposed and correctly named after-return controls. Repair disclosure separately from admission; selecting a tail macro as the admission root could reopen the compound bypass.
Verified repairs from handoff 6335212185: the seeded assert! Human hint, should-panic current-class explanation and changelog tuple are corrected. Full/sharded/compact pins are coherent at 1.97/0.104/0.104; #9077, #9363 and #9479 are ancestors. The decoy test now separates its positive/negative discrimination from the verbatim-module refusal. Qualified nonnested live controls, all three dead fixtures, exact line-18 family inventory and six per-family corpus rows are substantive; the blanket qualified-control waiver concern is stale. SPEC0197 should clarify that DuplicateSpellingOneRuns is accepted only by effect families, and its macro-swallowing fail-open paragraph is superseded by the current compound gate.
Required qualification run https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/39896394717 is terminal success, including Ripr Rust Small Result. Its actual checkout is 2ebf92b, parents 5c20172 + e390314, tree df40c12b1d45f331c97ba58dc80058ac067998e4. It does not qualify a future repair or current-main composition. Main f1784d2 conflicts in the sibling-effect Human golden and changelog; a conflict-only composition has been prepared separately, preserving the existing owner's canonical head and unpublished work. #9118 remains dependent at head 0fd4c05 with common ancestor 0edf184; no #9118 branch write or retarget performed.
Next: complete the joined disclosure/integration repair, focused proof and independent review, then have the canonical owner adopt it without overwriting unpublished work. No new qualification request, merge clearance or merge action. Classic branch-protection read is separately unavailable through the connected app (403 Resource not accessible by integration); no alternate route attempted.
|
Third-wave repair handoff; existing canonical owner retained. Owner / governing claim: #8927 / canonical #8934. Canonical remains Draft at e390314 (tree df40c12b1d45f331c97ba58dc80058ac067998e4); the last Ready head 6415b5c is superseded. No canonical branch write, #9118 branch write, Ready transition or merge was performed. Candidate: additive handoff branch Review: independent exact-head source review accepted ee86304; independent generated-delta review accepted bb7d06b with no new findings. The seeded assert! hint, should-panic explanation, changelog tuple and decoy discrimination repairs are verified. Mock-count (#9077), joined-task (#9363), skip-list (#9479), qualified live controls, exact line-18 effect inventory and cache tuple 1.97/0.104/0.104 remain preserved. This is an accepted repair candidate, not final merge clearance. Validation (Linux, rustc1.95.0): source/test blobs at ee86304 passed 39 owner-pin tests (37 initially; two offline fixture setup failures cleared after the locked anyhow1.0.100 fetch), 18 sibling-effect tests, seven real CLI JSON/Human controls, two Human-hint unit tests, one next-step unit test, check-fast's 15 gates including strict workspace/all-target Clippy, fmt, spec format, traceability and documentation-artifact checks. Those production/test blobs are byte-unchanged at bb7d06b. Full goldens passed on bb7d06b with producer version identifying that exact head; producer SHA256 3c720781b547858158a21fdf04f317bf935ba2828f8098b315f721254c3713c8. The one initial generic-hint golden drift was inspected and blessed with a specific provenance reason, without JSON/classification changes. No local checks remain running. Frozen qualification: run39896394717 is terminal success with all nine jobs accounted for, including Ripr Rust Small Result. Actual checkout 2ebf92b has parents 5c20172 + e390314 and tree df40c12b1d45f331c97ba58dc80058ac067998e4. Retain that result on its original subject; it does not qualify this repair. No duplicate run or new qualification request was made. Dependency: #9118 stays at 0fd4c05, common ancestor0edf184f1ae24e59bc25c5211ac3515272ec0558, and waits for actual #8934 landing. Its later owner composition must preserve 403 dependency corpus rows plus four live controls =407 unique IDs, rather than restore the obsolete corpus losing37 rows. Next: the existing canonical owner should reconcile any unpublished work, adopt the additive commits into #8934, inspect the resulting exact GitHub merge subject, then complete the normal current-head review/Ready/required-qualification path. No source or proof work needs restarting on unchanged blobs. Current remaining evidence limits: canonical adoption has not occurred, this successor has no hosted qualification, and the connected app's classic main branch-protection read was denied403 Resource not accessible by integration. No alternate route, credential change or denied-payload reuse was attempted. |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZHDKLVQqArSZrUFKSkREo
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Canonical owner adoption: fast-forwarded this branch to the reviewed wave-3 integration commit bb7d06b (composes e390314 with main f1784d2 plus the compound-oracle hint repair), then merged current main afc6054 (no conflicts). New head 24d4ea5. Cache pins still 1.97 / 0.104 / 0.104. Generated by Claude Code |
There was a problem hiding this comment.
Confirmed findings
- The false-block Human golden contradicts its own refusal: it says standard assert_eq!, while the fixture input and refusal identify assert!.
Verification questions
- Confirm the generated public analyzer route checks exact two-family, line-18 inventory before classification and uses native correct/wrong controls for six assertion spellings.
- Confirm the sweep's direct qualified live controls for std::assert_eq! and std::assert! are exempt from mandatory credit.
Refuted
- This diff changes a JS worker, async, GC, detach, or transfer boundary.; refuted because: The changed runtime behavior is synchronous Rust syntax/classifier logic and Rust integration tests; no JavaScript runtime or worker message/lifetime boundary appears in the changed source surfaces.
- The root divergence reader can be bypassed by nested exit, while true, or aliased process exit and therefore misclassifies later assertions.; refuted because: These are disclosed residual syntactic limitations, not an undiscovered new path in this change; the documented effect-family gate still fails closed for the newly covered contexts.
- The changed analyzer code could expose an OOB, UAF, type-confusion, secret-disclosure, or practical DoS exploit primitive.; refuted because: The changed paths perform bounded AST inspection, string classification, metadata construction, cache-version selection, and fixture execution. No new unsafe/native operation or attacker-controlled unbounded loop appears on changed lines; unsafe-review also reported zero new gaps.
- This diff contains an active-view or backing-store lifetime boundary that could be invalidated by resize, detach, or transfer.; refuted because: The changed production surfaces synchronously parse and classify Rust source, update Rust cache generations, and render static findings; no JavaScript runtime, ArrayBuffer, TypedArray, worker, message-passing, transferable, GC-root, or async-detach surface appears in the changed-file set or seeded thread.
- The new SyntaxRef validation may retain borrowed AST nodes across function calls or escape the syntax tree.; refuted because: Reviewed call sites consume TextSize/cloneable path strings and owned collection entries within the same analysis flow; no borrowed AST handle is stored in the assertion metadata or cache structures.
Evidence gaps
- Failed ripr execution and absent late cargo-test receipt leave behavioral integration unverified in this packet, but no security-sensitive failing artifact is shown.
- Model proof intent was rejected by deterministic validation.
Parked follow-ups
- The root-divergence reader scans a bounded AST and assertion text rather than executing generated Rust; disclosed residual control-flow gaps are analyzer false-credit limitations, not native memory-unsafety primitives.
- Residual fail-open contexts are explicitly bounded and documented rather than silently treated as complete control-flow proof.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY for exact head 24d4ea5 (tree 70a38adc01ccc70b661c27a8fbfe22f0757e726e), subject to the normal protected expected-head merge operation.
Fresh independent review verified canonical adoption as bb7d06b + main afc6054 with no conflict-resolution delta. All reviewed #8934 Rust production/test/golden blobs are retained; only traceability receives upstream mappings. Mock-count #9077, joined-task #9363 and skip-list #9479 remain ancestors, with coherent 1.97/0.104/0.104 generations. Compound-oracle disclosure remains truthful and generic when identity is unknown; known assert!/assert_eq! refusals retain the actual name.
Current review5624479901's confirmed false-block mismatch is refuted by this exact source: fixtures/effect_assertion_in_false_block/expected/human.txt lines15–16 both name assert!, and both JSON refusal notes name assert!. Its qualified-control question is also resolved: the waiver covers only two nested-vec spellings; nonnested std/core Vec::from controls remain mandatory across direct/mixed cases and the executed correct/wrong matrix. All five inline threads are resolved. External review quota notices and rejected model proof are retained as provider limits, not represented as independent clearance.
Required qualification https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/39906239065 is terminal success, all nine routed jobs accounted for, including Ripr Rust Small Result. Logs bind actual checkout to 6cce786, parents ef5aa75 + 24d4ea5, tree472eae329332203e5d34c619f092db9db6f59b77. Required tests:19747 passed, five skipped. Clippy, doctests, goldens, fixture/verdict contracts and schema producer sweep passed. The 48 current-head check runs are terminal success or expected skipped routes, with successful external statuses. No duplicate qualification was requested.
Independent source integration inspection of current main64a98db5 + this head (clean composition treedcd37b2aa85e677bccdd0e614770e299d5b65b22) found no claim-essential missing execution for the named effect admission/hint invariants. Later helper reach still filters assertions through unchanged execution admission before credit; new entry-pin credit is ReturnValue-only, radix parsing leaves retained stimuli unchanged, and Rust refusal/output fallback remains intact. This newer composition is source-reviewed, not relabeled as executed qualification.
The active main ruleset requires resolved threads, no approving-review count, and permits squash. GitHub currently reports clean mergeability. The earlier classic-protection GET remains unreadable (403 Resource not accessible by integration); it was not retried through another route and is retained as an evidence limit. Normal server enforcement remains required: no admin bypass, force update or settings change is authorized or planned. #9118 is a downstream follow-up, not a parent prerequisite. The PR body now carries current source-of-truth links and this exact qualification scope; offline shape validation passed.
|
Landing verified: #8934 is merged/closed. Reviewed head24d4ea5bbfb362646b2a773a6497c09a860d4aa1 landed through normal expected-head squash as b777448 at2026-10-23T07:41:50Z. Parent68b927aa4d7f4a8581ade5c7cd04c053257e3bc8; tree6baf21b95422393479868d8e46fdfc85d33e47fe. Git readback confirms main contains that squash and its tree exactly matches the inspected composition. Fresh exact-head REVIEW_READY: #8934 (review) . Existing qualification39906239065 is terminal success:19747 tests passed/five skipped on actual checkout6cce786b, parents ef5aa75 +24d4ea5b, tree472eae329332203e5d34c619f092db9db6f59b77. All50 current-head checks were terminal success or expected skipped routes and all five inline threads resolved at final merge admission. No duplicate qualification or enforcement bypass was used. The classic-protection read remained unavailable and was not retried. #8927's implementation acceptance is recorded at #8927 (comment) ; its GitHub issue state remains open. GitHub automatically retargeted downstream #9118 to main after the parent merge. Its head remains0fd4c055c877aa46b3f71d576e989718f1bc0172, open/unmerged and conflicting; no manual retarget or branch write occurred here. Corpus counts are subject-specific: submitted24d=403, qualified6cce=404, landedb777=407 unique IDs. Adding #9118's four controls to the landed subject gives411. Preserve the added Python else-arm, Rust method-entry and two radix rows, plus the landed reachable_unrevealed expectation for rust_sibling_parser_cannot_observe_aggregation_effect. The earlier handoff's403+4 arithmetic belongs to its older composition. The remaining delivery work is #9118's owner composition, separate from this completed parent merge. Automatic main-push health runs are distinct from PR qualification; no post-merge health pass is asserted by this receipt. |
Retain only the live fixture/corpus follow-up to landed #8934. Preserve all 407 mainline corpus rows, add four live controls, and reconcile the Human repair-readiness hint under RIPR-SPEC-0197.
Effect-family side_effect/call_deletion findings now refuse assert_eq!/assert! oracles whose execution is unestablished, while retained live observers keep their credit. Compound-oracle refusal provenance and Human guidance use generic assertion wording when the exact assertion macro is unknown.
Source-of-truth Links
Proposal: #8927
Spec: RIPR-SPEC-0197
ADR: none; existing analyzer and output ownership are retained.
Plan item: #8927
Governing issue or accepted claim: #8927
Acceptance delta (one sentence): SideEffect and CallDeletion assertions after return, in literal-false blocks, uncalled closures or the named compound contexts cannot provide oracle credit, while the retained executed direct, mixed and qualified controls keep their existing credit.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): codex/8927-effect-assertion-admission; reviewed head 24d4ea5.
Stack parent or prerequisite PR (if any): none outstanding; mock-count #9077, joined-task #9363 and skip-list #9479 are landed ancestors.
Proposed replacement of PR (if any; not yet accepted): none; #8934 remains canonical.
Acceptance retained from a replaced candidate (if any): none; the reviewed additive handoff bb7d06b was adopted into this same PR.
Accepted winner and losing candidate disposition (when decided): #8934 is the existing canonical candidate; no rival PR requires disposition.
Change and evidence
The owner adopted bb7d06b and merged main afc6054 without a conflict delta. Candidate tree: 70a38adc01ccc70b661c27a8fbfe22f0757e726e. Independent fresh exact-head review confirms the reviewed Rust source, tests and goldens remain intact.
Validation
Required qualification 39906239065 is terminal success, including Ripr Rust Small Result. Its actual checkout is 6cce786, parents ef5aa75 + 24d4ea5, tree 472eae329332203e5d34c619f092db9db6f59b77. Required Rust tests: 19,747 passed, five skipped; doctests, strict Clippy, goldens, fixture/verdict contracts and schema producer sweep passed.
Retained focused proof on the unchanged adopted implementation includes 39 owner-pin tests, 18 sibling-effect tests, seven JSON/Human CLI controls, three focused hint/next-step unit tests, check-fast's 15 selected gates and full goldens. The original two fixture setup failures cleared after fetching locked anyhow 1.0.100; they are not presented as initial passes. See repair handoff.
The later main 64a98db composes cleanly with this head (tree dcd37b2aa85e677bccdd0e614770e299d5b65b22). Independent source applicability review found no bypass of assertion admission or change to the named refusal/hint invariants; that newer tree is not claimed as executed.
Limits and follow-up
#8983 retains the disclosed syntactic fail-open and conservative over-refusal residuals; nested-macro qualified forms can remain static_unknown. This does not claim general control-flow proof or add other assertion families.
#9118 remains the dependent portable live-fixture/corpus follow-up and waits for this PR's actual landing. Its later composition must retain the dependency corpus plus its four live controls.
Changelog: changelog.d/8927-effect-assertion-execution.md. Rollback is the bounded assertion-admission/disclosure change with a fresh classified-cache generation, preserving later main semantics. No release or publication is part of this PR.