Repository navigation
impl(030): live probe and smoke, recorded fixtures - #392
Conversation
AI review (no-findings)Reviewing the diff across the bedrock integration, the new
Recorded fixtures
Makefile No concrete defect found. {"head": "35f161581bc2c984d4d53cf5f63f9b67f8fb2a5d", "verdict": "no-findings", "findings": []}Subject: 4dcf72b...35f1615, diff digest 88573cf921df2b0dbf45fa483ca028fad3e1ba895dbdad55d4c816c8082e9bf1, 1 call(s). An AI comment is not an approval. |
35f1615 to
30b1791
Compare
AI review (findings)Reviewing the diff for bugs, security problems, and inconsistencies.
Naming inconsistency in smoke fixture: The let backend = crate::BedrockBackend::new(
"bedrock-probe".into(), // ← same name for both probe and smoke paths
...The fixture is labeled "smoke" and its provenance string says "smoke (3.14 item 4)", but the attempt ID embedded in {"head": "30b1791cc9558155f91f8563095890f99c068c7d", "verdict": "findings", "findings": [{"path": "integrations/rustev-bedrock/fixtures/recorded/converse-smoke-0.json", "line": 17, "summary": "Smoke fixture's attempt_id carries a 'bedrock-probe-' prefix because run_cli always names the backend 'bedrock-probe' regardless of the smoke flag, making the call type irrecoverable from the recorded artifact."}]}Subject: bfe423c...30b1791, diff digest 88573cf921df2b0dbf45fa483ca028fad3e1ba895dbdad55d4c816c8082e9bf1, 1 call(s). An AI comment is not an approval. |
30b1791 to
32c122d
Compare
AI review (findings)Reviewing the diff for bugs, security issues, and inconsistencies. Credential handling in
assert_eq!(host("https://[::1]:443/x"), "[::1]");But the implementation yields No other concrete defects found. The {"head": "32c122d351e7e9cb2eea032dd4672b12728300b3", "verdict": "findings", "findings": [{"path": "integrations/rustev-bedrock/src/net.rs", "line": 156, "summary": "host_header calls authority.host() for the default-port IPv6 case, which strips the square brackets (returning e.g. '::1' instead of '[::1]'), producing an invalid HTTP Host header; the test assertion in tests/signing.rs expects the bracketed form, so the test and the implementation contradict each other."}]}Subject: bfe423c...32c122d, diff digest 9f9accea50f296cf294f679363f3c33a04a164d31ac1ccc8542da1cf22cff5f6, 1 call(s). An AI comment is not an approval. |
32c122d to
bb6cd23
Compare
AI review (findings)Reviewing the diff carefully across all changed files.
This is not a credential-leak issue — the secret scan completes before any Everything else reviewed:
{"head": "bb6cd23a18ae012f6974902147c6cf1dda5c63fa", "verdict": "findings", "findings": [{"path": "integrations/rustev-bedrock/src/evidence.rs", "line": 76, "summary": "If std::fs::write fails on exchange i, files 0..i-1 are left on disk and not cleaned up; the returned error gives no indication of partial output."}]}Subject: bfe423c...bb6cd23, diff digest 9024384403ac09788a33efaa1b3d40f95c55cc3a4a82e3540f698335e450854b, 1 call(s). An AI comment is not an approval. |
bb6cd23 to
fe4e003
Compare
AI review (no-findings)Reviewing the changed paths for bugs, security problems, and inconsistencies.
The secret scan runs on raw bytes before JSON encoding (
Replacing the full default credential chain with
The loopback server is straightforward HTTP/1.1 with Content-Length parsing. The replay verifies binding, request digest, charge, members (output digest), provider extras (region, profile, raw usage) against the recorded fixture.
Response bodies differ in Spec 030 increment 3 The narrative accurately reflects the two bugs fixed (panicking provider, host-header default port), the No concrete defects found. {"head": "fe4e003c529f63d6762507b77ef41ca3130d8b8e", "verdict": "no-findings", "findings": []}Subject: bfe423c...fe4e003, diff digest 5427906f8897278428416ccd48ac7d91c803940bb1452a89ee2065f20d651d2b, 1 call(s). An AI comment is not an approval. |
Live probe and smoke on us.anthropic.claude-haiku-5-5 from ca-central-1 (A-65); four recorded Converse fixtures replayed offline. Fixes the aws-config provider panic (environment only, 3.5 item 2) and signatures over host:443. The probe and smoke gain --out DIR for evidence and print the journal before and after. 030 joins VERIFIED_SPECS.
fe4e003 to
52a12d0
Compare
AI review (no-findings)Reviewing the changed files for bugs, security issues, and inconsistencies.
The secret-scan logic operates on raw The directory atomicity via a sibling staging path is correct:
The default-port stripping is correct. The decision to strip the suffix from the raw authority string (rather than reconstruct from
Switching from the full default chain to
The mini HTTP server accumulates bytes into a growing buffer, finds The smoke fixture's
Moving the scratch journal path from Spec 030 / Makefile / verify.py
No concrete defects found. {"head": "52a12d0273a8eba971a2f08244db10b6b31757dc", "verdict": "no-findings", "findings": []}Subject: 99c7b8c...52a12d0, diff digest 79c1305d7475b6034a52d6793da3cc9397acfca54e0900a8fa3ed5e00ee95904, 1 call(s). An AI comment is not an approval. |
Spec 030: the live probe and smoke against Bedrock, the recorded Converse fixtures they produced, and the two defects the live stage found. 030 joins
VERIFIED_SPECS. Stacked on #391 (the 3.5 item 2 amendment, A-65).What landed
us.anthropic.claude-haiku-5-5on Converse fromca-central-1through theus.geographic profile, synthetic content only. The probe (3.11) was reachable on 3 sequential calls; the smoke (3.14 item 4) returned a mapped output on 1. Each call answeredapplefor 613 input and 34 output tokens, 86,130 units estimated.aws-configprovider panicked. The default chain builds an instance metadata client, andaws-confighas no HTTP client. The provider now reads only the environment (3.5 item 2, amended by spec(030): the aws-config feature reads environment credentials only (A-65) #391).tests/credentials.rscovers it.host:443were refused. Thehostheader carried the default port, and bedrock-runtime answeredInvalidSignatureException.net::host_headerdrops the scheme's default port. A control-plane request signed both ways confirmed the cause without invoking a model.tests/signing.rscovers it.--out DIRand print the journal before and after. Evidence is refused when any part carries a credential value; the first refused signature showed why (the error echoes the session token).fixtures/recorded/holds the live binding, the policy and the four exchanges, labeled recorded, synthetic content only, AWS request ids redacted.tests/recorded.rsreplays them on loopback and checks the recorded request digest, output digest and charge.tests/spend.rswrote its scratch journal above the repository root, so its feature-gated test always failed; it now usesCARGO_TARGET_TMPDIR. No command had run the feature before spec(030): the aws-config feature reads environment credentials only (A-65) #391's verification block.Spend (testing journal, nano-USD units)
Verified
make gate,spec-spine verify 030(3 commands, including--features aws-config),cargo clippy -p rustev-bedrock --features aws-config --all-targets -D warnings,scripts/check-authored-content.sh.make coderuns in CI.Not done
implementation: in-progress.