Repository navigation
impl(039): the paid live Bedrock rank smoke, recorded - #448
Conversation
AI review (findings)Reviewing the changes: new rank smoke fixtures and replay test for the Bedrock integration (spec 039, Decision 18), plus a Cost arithmetic check (spec.md narrative):
Fixture consistency check –
The Responses fixture's The integration likely derives {"head": "b3e54aa8c93a13c8ea8e0f7aaf4581fb31a7f086", "verdict": "findings", "findings": [{"path": "integrations/rustev-bedrock/fixtures/recorded/responses-rank-smoke-0.json", "line": 24, "summary": "exchange_record sets `truncated: true` while response_body shows status `completed` with a full ranking; the field was likely set as a side-effect of redacting the reasoning item's content to an empty array, but if the integration treats it as a signal of an incomplete model response the replay assertion at recorded.rs:181 will panic."}]}Subject: 3dc1e1c...b3e54aa, diff digest e0755acb5f61fb8a047c464a4572e3ff5eb3078649b3c5809334156ff3bbecb0, 1 call(s). An AI comment is not an approval. |
b3e54aa to
fac68ec
Compare
AI review (findings)Reviewing the PR, which extends the Bedrock integration's recorded smoke tests to cover Projection structure doesn't match the recorded request body In However, the serialized user-message content in the recorded Converse fixture ( {"instance":{"text":"apple"},"mode":"listwise","presented":[...],"values":{}}The extra fields ( If the mapping layer serialises the full projection as the message content (rather than extracting a strict subset of keys), the bytes sent during replay will differ from those sent live, the request digest won't match {
"head": "fac68ec4e4dfbe82ab172a6d5c47685957b5b798",
"verdict": "findings",
"findings": [
{
"path": "integrations/rustev-bedrock/src/evidence.rs",
"line": 13,
"summary": "probe_projection(\"rank\") emits \"candidates\", \"task\", and \"operation\" fields absent from the recorded request body; if the mapping layer does not strip these, the replayed request bytes will not match the recorded digest and the offline replay test will fail."
}
]
}Subject: 50ca9ad...fac68ec, diff digest b47a4a4c653aeb0b8b0988c1e64704268dc5535c9d65df36302225776bda2e2a, 1 call(s). An AI comment is not an approval. |
One listwise rank call on each wire under Decision 18 with synthetic content, reserved against the R-29 testing journal. The smoke's synthetic projection gains rank; both exchanges are recorded, redacted, and replay offline; spec 039 records the result and the journal totals.
fac68ec to
958d21b
Compare
AI review (no-findings)I reviewed the full diff, checking the new fixture consistency, evidence code, test updates, and spec change.
No concrete defects found. {"head": "958d21bea9eed37b9005246734fcd4fba7bae6de", "verdict": "no-findings", "findings": []}Subject: 50ca9ad...958d21b, diff digest 62027f25f99192d9e05d119035a6cfa650167d3b6bb19df780503ec77b615557, 1 call(s). An AI comment is not an approval. |
Records the paid live Bedrock
ranksmoke that spec 039 Decision 18 allows, outside declared verification.Change
rustev-bedrockevidence::probe_projectionbuilds a listwiserankprojection over three synthetic candidates (spec 039 3.15 item 4) when the bound operation isrank. Other operations are unchanged.fixtures/recorded/with the bindings they were recorded under:us.openai.gpt-5.6-lunawithjson_schemaus.anthropic.claude-haiku-5-5withtool_useThe policies are the existing ones. Redaction follows the existing fixtures: the AWS request id, the provider response and item ids, and the encrypted reasoning content.
tests/recorded.rsreplays all seven recorded exchanges offline and expects the rankingapple,pear,plumfor the tworankones.status:andimplementation:are unchanged.Spend
Both calls were reserved against the shared R-29 testing journal:
Headroom after both calls is 4,976,780,968 nano-USD of the USD 5 cap. The smoke shows reachability and the mapping on live bytes only. It makes no quality claim.
Checks
make gatemake codebash scripts/check-authored-content.shcargo test -p rustev-bedrock --locked --test recorded --test ranking --test rank_swap --test environment