Skip to content

docs: clarify configured media fallback selection - #134574

Merged
steipete merged 1 commit into
mainfrom
codex/docs-media-fallback-selection
Sep 1, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/docs-media-fallback-selection

Conversation

@steipete

@steipete steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

The image, music and video agent-tool pages say automatic fallback across providers is always enabled. The tools actually stop adding automatically discovered candidates when a primary or fallback model is explicitly configured.

Why This Change Was Made

Describe the existing selection order at each named agent-tool boundary: a per-call model override is exclusive, configured primary/fallback models bound the candidate list, and automatic selection applies when neither is configured. Describe provider readiness without assuming that every provider uses the same authentication path.

User Impact

Operators can tell which providers their configured agent tools may try. Runtime behavior, configuration, CLI defaults and plugin SDK contracts are unchanged. Configured fallback models still run in order. The correction is scoped to the agent tools because direct CLI/SDK runtime callers retain their own defaults.

Evidence

Read the complete pages, all three tool and runtime owners, shared selectors, configuration helpers and direct CLI/SDK callers. Explicitness comes from a nonblank primary or fallback, not a timeout-only slot. The tools pass the existing automatic-fallback flag to their runtime; Image also applies it during reference-capability candidate selection. The runtime retains configured candidates even when automatic discovery is disabled.

All 41 relevant source contexts were checked, including the pending Image wrapper cleanup's equivalent argument flow. Local stable-tag and available raw-parent comparisons corroborate the existing policy; the original introduction lies beyond shallow history. All ten normal docs-only changed checks, formatting and managed review passed. No runtime code or test changed; docs are +21/-19. No external provider call or new provider-specific claim is made.

@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS maintainer Maintainer-authored PR labels Sep 1, 2026
@steipete
steipete marked this pull request as ready for review September 1, 2026 00:34
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 8:41 PM ET / September 1, 2026, 00:41 UTC.

ClawSweeper review

What this changes

The PR updates image, music, and video tool documentation to state that an explicit media-model primary or fallback limits candidate fallback to that configured list, while automatic provider discovery applies only when none is configured.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking findings. The correction matches the current agent-tool contract; this maintainer-authored, protected-label PR should remain open for normal maintainer handling rather than automated cleanup.

Priority: P3
Reviewed head: cbda3b20a885096b12bc8c8df525fdad1bfdd85f
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) The focused documentation change accurately describes the source-backed agent-tool selection behavior.
Proof confidence 🌊 off-meta tidepool Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Evidence reviewed 6 items Explicit configuration definition: A media configuration is explicit only when it contains a nonblank primary or fallback model reference, so a timeout-only entry does not disable discovery.
Agent-tool caller behavior: The image, music, and video tools calculate explicit media configuration and pass false for automatic provider fallback only in that case; the shared runtime then retains configured primary/fallback candidates without appending discovered providers.
Shared selection contract and tests: The selector makes a valid per-call model exclusive and appends discovered provider defaults only when automatic fallback is enabled; focused tool tests assert the explicit-config false flag for all three surfaces.
Findings None None.
Security None None.

How this fits together

Agent media tools turn a tool-call override, configured media models, or discovered ready providers into an ordered provider/model candidate list. The media runtimes then attempt that list in order and return the first successful generated asset or aggregated failure details.

flowchart LR
  A[Agent media tool call] --> B[Model override]
  A --> C[Configured media models]
  A --> D[Provider discovery]
  B --> E[Candidate selection]
  C --> E
  D --> E
  E --> F[Media generation runtime]
  F --> G[Generated asset or failure details]
Loading

Decision needed

Question Recommendation
Should this maintainer-authored documentation correction be merged once the exact-head required checks complete? Merge the documentation correction: Land the three-page clarification after normal exact-head checks confirm the rendered documentation.

Why: The technical review is clear, but the protected maintainer label requires explicit maintainer handling under repository policy.

Before merge

  • Complete next step (P2) - No repair work is needed; the remaining action is protected-label maintainer review and normal exact-head check completion.
Agent review details

Security

None.

PR surface

Docs +2. Total +2 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 3 21 19 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 21 19 +2

Review metrics

None.

Technical review

Best possible solution:

Merge the narrowly scoped documentation correction so the public selection order accurately distinguishes agent-tool behavior from the reusable runtime's default discovery behavior.

Do we have a high-confidence way to reproduce the issue?

Not applicable: the PR changes documentation only. The documented behavior is source-verifiable through the three agent-tool callers and their shared candidate selector.

Is this the best way to solve the issue?

Yes. Updating the three affected tool pages is the narrowest maintainable fix because the runtime contract is already correct and direct runtime callers intentionally retain their separate default behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 04d73ea52d82.

Labels

Label changes:

  • add P3: This is a focused documentation correction with no runtime, configuration, or provider-contract change.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.

Label justifications:

  • P3: This is a focused documentation correction with no runtime, configuration, or provider-contract change.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • shakkernerd: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete steipete self-assigned this Sep 1, 2026
@steipete
steipete merged commit a341cc1 into main Sep 1, 2026
111 checks passed
@steipete
steipete deleted the codex/docs-media-fallback-selection branch September 1, 2026 00:58
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant