Repository navigation
fix(bedrock): report failed catalog refreshes - #139750
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 6, 2026, 12:50 AM ET / 04:50 UTC. ClawSweeper reviewWhat this changesThe Bedrock plugins report failed catalog acquisitions, preserve successful empty results, and restrict Mantle cache reuse to the same region and bearer credential. Merge readiness⛔ Blocked before merge - 3 items remain This remains a useful, bounded fix beyond the merged prerequisite, but it also changes released public discovery APIs without preserving their existing fallback contract. Priority: P2 Review scores
Verification
How this fits togetherBedrock plugins acquire model lists from AWS and pass them to OpenClaw’s shared catalog owner. That owner publishes refresh status and retains compatible previous inventory for model-list consumers. flowchart TD
A[AWS region and credentials] --> B[Bedrock discovery plugins]
B --> C[AWS model list endpoints]
C --> D{Acquisition result}
D -->|Success including empty| E[Shared catalog owner]
D -->|Failure status| E
F[Compatible previous inventory] --> E
E --> G[Published model lists]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource -30, Tests +95, Docs +10. Total +75 across 8 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep strict acquisition in registered catalog hooks while preserving released advisory API defaults through the same implementation, with compatibility proof for both call modes. Do we have a high-confidence way to reproduce the issue? Yes, from source: a profile-list failure is swallowed on current main, and an expired Mantle refresh failure returns old rows as success. No runtime reproduction was executed during this review. Is this the best way to solve the issue? Partly: reporting acquisition outcomes through the existing owner is appropriate, but strict behavior should not silently replace the released public APIs’ advisory defaults. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2d361a8cdbaf. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Addressed the released API finding and its rank-up move in
The PR body retains the earlier restart failures and limits: the later credential check passed after a full process restart, not as proof of an in-process environment-reload fix. AI-assisted. |
|
landpr-approve-unrelated-red |
|
Landed as d1dce5857a3a, from reviewed head 3d808687abe0.
Approved unrelated CI exception: Run 34014085273, attempt 1, completed with 80 successful jobs and 16 skipped jobs. The only failed child is check-test-types-core-2 / 101434839002; the aggregate gate fails with it. The same TS2353 occurs in main run 34013195358 / job 101432500182. Verified introducing commit f172f13 (#139753) renamed fields in Limits: Synthetic HTTPS proves acquisition handling, not vendor authorization or inference. Recorded restart-time failures remain; the account-change proof uses a full process restart and does not claim the separate in-process environment-reload issue is fixed. AI-assisted. |
Report strict bundled Bedrock and Mantle acquisition outcomes through the existing catalog owner. Do not cache partial Bedrock listings or substitute expired Mantle results for strict callers. Preserve released public advisory defaults, complete empty catalogs, cleanup, recovery and non-attempt behavior. Validated with built CLI/Gateway failure, recovery and empty-catalog scenarios, focused provider tests, typed lint and independent review. AI-assisted. Co-authored-by: Ayaan Zaidi <[email protected]>
Related: #136257, #139649, #139747. AI-assisted.
What Problem This Solves
Two regional catalog providers reported success after failed discovery. One cached partial foundation-only results; the other reused expired rows or a cache entry from different credentials.
Why This Change Was Made
Bundled hooks select strict acquisition through the shared outcome owner. Foundation and profile listing must both complete before caching. Cache reuse requires the same region and credential. Published helpers retain advisory defaults while avoiding complete-cache claims for partial results or cross-credential reuse.
User Impact
Failed refreshes remain visible with compatible previous models. Recovery can succeed on the next attempt. Successful empty catalogs remain empty through later outages. No operator configuration, authentication-selection, or persistence change is added.
Consumers: both catalog hooks now publish actual failure and empty outcomes; public helper callers retain advisory compatibility.
Evidence
Built checks reproduced partial caching and hidden failure. Fifteen regressions failed before the fix; 316 provider tests and 13 registration checks passed. Compiled API/Gateway checks covered strict/advisory outcomes, recovery, empty results, concurrency, and changed credentials against synthetic endpoints. In-process restart failed; full-process restart applied credentials. Existing restart behavior can retain old settings. Live auth was not tested.