Repository navigation
spec(030): verification and closure - #420
Conversation
AI review (findings)Reviewing the two changed files.
The No other concrete defects found in either file. The module-discovery loop only matches
Lifecycle transition from {"head": "b312586bd514e4cd28a8ee394ec8cc455d38f08d", "verdict": "findings", "findings": [{"path": "integrations/rustev-bedrock/tests/environment.rs", "line": 65, "summary": "`std::fs::read_dir(root.join(\"src/bin\")).unwrap()` panics if the `src/bin/` directory does not exist, which is the expected layout for a library crate with no binary — causing the test to hard-fail rather than pass."}]}Subject: 90dcc79...b312586, diff digest 11d55186d97d363c479553f3b405b88367c0d785fb808762286eb1b6fd304999, 1 call(s). An AI comment is not an approval. |
b312586 to
77b661b
Compare
AI review (findings)Reading the diff closely: the spec advances
|
77b661b to
9e3d1a3
Compare
AI review (findings)Reviewing the two changed files.
1. Lines 62–68: } else if let Some(name) = line
.split_once("mod ")
.filter(|(vis, _)| vis.is_empty() || vis.starts_with("pub"))
.and_then(|(_, l)| l.strip_suffix(';'))
2. Lines 78–83: {"head": "9e3d1a30e411c5beb5bdc731e1ad948a3d3f150c", "verdict": "findings", "findings": [{"path": "integrations/rustev-bedrock/tests/environment.rs", "line": 66, "summary": "`strip_suffix(';')` silently misses `mod name; // comment` declarations, causing those files to be excluded from the environment-access scan without any error or warning."}, {"path": "integrations/rustev-bedrock/tests/environment.rs", "line": 80, "summary": "`compiled_sources` enqueues all `read_dir` entries from `src/bin` and `examples` without filtering to `.rs` files, so any subdirectory or non-text file causes `declared_modules` to panic via `read_to_string(...).unwrap()`."}]}Subject: 90dcc79...9e3d1a3, diff digest 07334b3726e73578d40865d4fccfc89284d56aa3761c2998e35b662707b17285, 1 call(s). An AI comment is not an approval. |
9e3d1a3 to
8155fdc
Compare
AI review (findings)Looking at the two changed files: the spec lifecycle update ( Spec changes — the lifecycle transition (
The enforcement logic in let shipped = text.split("#[cfg(test)]").next().unwrap();
fn a() { … } // scanned ✓
#[cfg(test)] mod t1 { … }
fn b() { std::env::var("X"); … } // not scanned ✗
#[cfg(test)] mod t2 { … }would pass the test despite A secondary robustness issue: {"head": "8155fdc2b068754b4ed18ddab5322f561a6af38e", "verdict": "findings", "findings": [{"path": "integrations/rustev-bedrock/tests/environment.rs", "line": 91, "summary": "split(\"#[cfg(test)]\").next() only examines code before the first test attribute, silently omitting production code that follows any earlier #[cfg(test)] block, yielding false negatives for the spec 030 §3.5 acceptance criterion."}]}Subject: 90dcc79...8155fdc, diff digest 6bb970cd5f8a027bcf185e63fb095ab15e83c07c63bc0fcc99cdd9bd853189ca, 1 call(s). An AI comment is not an approval. |
8155fdc to
e84ffd7
Compare
AI review (findings)Looking at both changed files.
Concrete defect — overly broad assert!(!manifest.lines().any(|l| l.trim().starts_with("default =")));This rejects any Theoretical concern — '}' => depth -= 1,In debug builds {"head": "e84ffd720f2a55f1cc09b79af893fcd3c27629ce", "verdict": "findings", "findings": [{"path": "integrations/rustev-bedrock/tests/environment.rs", "line": 36, "summary": "The assertion `!manifest.lines().any(|l| l.trim().starts_with(\"default =\"))` is broader than the acceptance criterion: it fails on any Cargo.toml with a `default = []` entry (valid, explicit no-default-features) even though the loop already catches aws-config appearing in a default feature list."}]}Subject: 90dcc79...e84ffd7, diff digest 18b91227782c1175cd6e81bc938164f595eda4ac4e2a56eeed7d2466cf0ba0a7, 1 call(s). An AI comment is not an approval. |
e84ffd7 to
4e12b48
Compare
AI review (findings)Reviewing the two changed files: a new test file and a spec lifecycle update.
The transition from
The One concrete bug: in {"head": "4e12b48550d471119bf351fd1cc7c5e4467db1ee", "verdict": "findings", "findings": [{"path": "integrations/rustev-bedrock/tests/environment.rs", "line": 117, "summary": "canonicalize().unwrap() is called on every ALLOWED entry for every scanned file unconditionally, so a missing allowed path (e.g. src/aws_config_provider.rs) panics with an opaque IO error for the first file in the scan rather than a clear assertion failure."}]}Subject: 90dcc79...4e12b48, diff digest 367f0614ad6a0ea197790d4ba8ed5abad5f9ce8264f30a7d6dc250ec7eef7ad9, 1 call(s). An AI comment is not an approval. |
4e12b48 to
3c6d2fc
Compare
AI review (findings)Reviewing the two changed files: a new acceptance test ( Spec ( Test file ( Finding 1 —
Finding 2 —
{"head": "3c6d2fc3c180a349d1588b9f744638ce3bd247e4", "verdict": "findings", "findings": [{"path": "integrations/rustev-bedrock/tests/environment.rs", "line": 74, "summary": "match_indices searches raw bytes and matches #[path = \"] inside comments and string literals, causing read_to_string().unwrap() to panic when the extracted path does not exist on disk."}, {"path": "integrations/rustev-bedrock/tests/environment.rs", "line": 94, "summary": "item.find('{') finds the first brace anywhere after #[cfg(test)], so when the annotated item is brace-less (use, const, etc.) the following production block is consumed and stripped, creating a false negative in the env-access scan."}]}Subject: 90dcc79...3c6d2fc, diff digest 9fd126788a96c49f340a08d661292b0c15afe9b01b89c1fea17493cfd5a089e6, 1 call(s). An AI comment is not an approval. |
3c6d2fc to
23bc19c
Compare
AI review (no-findings)Reviewing the two changed files.
The new test has two parts:
The sanity assert
No concrete defects found in either file. {"head": "23bc19c826b15475b5fa2106a10d33293021597b", "verdict": "no-findings", "findings": []}Subject: 90dcc79...23bc19c, diff digest 8a5a0b1e18a6793379f771cd9bf139dc252b6075a0e5f3ec02df868ee61457e2, 1 call(s). An AI comment is not an approval. |
Summary
Spec 030 (AWS Bedrock backend): verification and closure, after #416 recorded the Responses exchange.
implementation: complete: every acceptance item is met. The implementation record gains a closing entry mapping each acceptance item and section 5 row to its tests, and notes that increment 2's "blocked on the owner" paragraph is resolved (live probe and smoke ran on both wires within R-29's cap; recorded fixtures exist;030is already inVERIFIED_SPECS).integrations/rustev-bedrock/tests/environment.rsfor the one acceptance item with no test: without theaws-configfeature,aws-configis an optional dependency only that feature enables, and no compiled source (own modules, the#[path]sources, the binary, the example) outside the feature module and the smoke example touchesstd::env. Checked to fail when anstd::envread is planted insrc/mapping.rs.status:is unchanged. No contract text changes.This unblocks spec 039's Bedrock
rankitems (A-49): its offline fixtures and swap test, then the optional paid liveranksmoke (Decision 18).Verification
spec-spine verify 030: passed (3 commands).cargo clippy -p rustev-bedrock --all-targets -- -D warnings, with and withoutaws-config;cargo fmt --all --check.make gate: passed aftermake refresh.scripts/check-authored-content.sh: clean.