fix: keep Bedrock live smoke on Bedrock runtime#99607
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 9:59 AM ET / 13:59 UTC. Summary PR surface: Source +21, Tests +578. Total +599 across 3 files. Reproducibility: yes. by source inspection. Current main synthesizes explicit Bedrock fallback models as Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Next step before merge
Security Review detailsBest possible solution: Land this focused harness/registry fix after normal required checks stay green, while keeping the separate Bedrock prompt-abort fallback work tracked in #99608. Do we have a high-confidence way to reproduce the issue? Yes, by source inspection. Current main synthesizes explicit Bedrock fallback models as Is this the best way to solve the issue? Yes. The PR fixes the explicit fallback model, provider-config merge, and default registry boundaries that prevent the smoke from exercising Bedrock, while leaving the separate long-context runtime abort behavior to #99608. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a98a64649ec0. Label changesLabel justifications:
Evidence reviewedPR surface: Source +21, Tests +578. Total +599 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4889bf51fa
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Added the requested real Bedrock Gateway live-smoke proof to the PR Evidence section. The new run used AWS profile auth only ( @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Addressed the remaining item from #99607 (comment) in 9a52f9d. What changed:
Proof:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9a52f9d468
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Addressed the Bedrock discovery-region review thread in bf1f796. Focused proof added and passing:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
bf1f796 to
ca14d31
Compare
31bce01 to
da325e0
Compare
* fix: preserve Bedrock live API providers * fix: derive Bedrock smoke region from AWS config * fix: honor Bedrock discovery region in smoke * fix: keep Bedrock live smoke on Bedrock runtime --------- Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com>
* fix: preserve Bedrock live API providers * fix: derive Bedrock smoke region from AWS config * fix: honor Bedrock discovery region in smoke * fix: keep Bedrock live smoke on Bedrock runtime --------- Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com>
Related: #87876
AI-assisted: yes
What Problem This Solves
Fixes an issue where maintainers running explicit Bedrock Gateway live smokes could select
amazon-bedrock/...models but fail before exercising Bedrock Converse. Explicit fallback candidates were synthesized as OpenAI Responses models or written with an invalid temporary provider config, and duplicate source-module loading could hide the registered Bedrock API provider.Why This Change Was Made
The live harness now keeps explicit Bedrock fallback candidates on
bedrock-converse-stream, writes a valid AWS SDK Bedrock provider config for temporary live model files, derives the temporary Bedrock runtime region from configured provider endpoints, AWS env, or the selected AWS profile instead of pinningus-east-1, and shares LLM API provider registrations across duplicate module instances in the same process.User Impact
Maintainers can use explicit Bedrock model refs in Gateway live smokes to validate the real Bedrock runtime path for their AWS profile/region setup instead of tripping over harness/setup failures. This PR is a test/live-smoke enabler and does not close #87876 by itself.
Evidence
node scripts/run-vitest.mjs packages/llm-runtime/src/api-registry.test.tsnode scripts/test-live.mjs -- src/gateway/gateway-models.profiles.live.test.ts -t "writes valid AWS SDK provider config|uses AWS_REGION|preserves configured Bedrock provider endpoints|uses configured Bedrock discovery regions|uses selected AWS profile region|strips AWS profile region inline comments|prefers AWS credentials profile regions|uses the Bedrock Converse API"git diff --check~/.agents/skills/autoreview/scripts/autoreview --mode local --prompt "Review autofix for PR #99607, https://github.com/openclaw/openclaw/pull/99607#issuecomment-4878396209. ..."-> clean, no accepted/actionable findings.AWS_REGION/AWS_DEFAULT_REGIONin the smoke process: