Skip to content

perf(agents): reuse media tool availability during tool prep - #78852

Closed
guanbear wants to merge 12 commits into
openclaw:mainfrom
guanbear:media-tool-availability-pr4c
Closed

guanbear wants to merge 12 commits into
openclaw:mainfrom
guanbear:media-tool-availability-pr4c

Conversation

@guanbear

@guanbear guanbear commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Warm agent tool preparation repeatedly re-scanned image/video/music generation availability inside each tool factory, even after createOpenClawTools had already planned which optional media tools to build.

Why This Change Was Made

  • Centralize generation eligibility in resolveOptionalMediaToolFactoryPlan.
  • Factories construct tools without a second availability scan once the plan decides.
  • Config-backed models.providers.<id>.apiKey auth works without prepared runtime (after base-url guards).
  • image_generate list readiness uses the shared availability helper with the configured media model so list state matches registration.

User Impact

No intentional product/API change for operators. Same tools should appear for the same inputs, with cheaper warm tool prep.

Evidence

Focused validation (exact head 39d44da575c871ffb50542e6f7a338eee562afd5)

  • node scripts/run-vitest.mjs src/agents/openclaw-tools.media-factory-plan.test.ts src/agents/tools/image-generate-tool.test.ts — green
  • plugin-sdk:api:check / knip green on CI for prior tip with same surface; baseline unchanged vs main

ClawSweeper findings addressed

  • [P1] config-auth without prepared runtime — snapshot signals + regression test
  • [P2] list readiness vs registration — list action passes agents.defaults.mediaModels.image into hasGenerationToolAvailability
  • knip — helper used on list path, not factory hot path

Real behavior proof

Behavior or issue addressed: Media generation tools are planned once; config-auth works without prepared runtime; list readiness matches explicit model registration.

Real environment tested: Local macOS OpenClaw checkout on exact head 39d44da575c871ffb50542e6f7a338eee562afd5, Node 25, real planner modules + temporary plugin metadata snapshot (no live provider network).

Exact steps or command run after this patch:

node scripts/run-vitest.mjs src/agents/openclaw-tools.media-factory-plan.test.ts src/agents/tools/image-generate-tool.test.ts
PROOF_HEAD_SHA=$(git rev-parse HEAD) node --import tsx /tmp/openclaw-78852-media-plan-proof.mjs

Evidence after fix (redacted exact-head runtime JSON):

{
  "head": "39d44da575c871ffb50542e6f7a338eee562afd5",
  "plan": {
    "imageGenerate": true,
    "videoGenerate": true,
    "musicGenerate": true
  },
  "registeredMediaTools": ["image_generate", "music_generate", "video_generate"],
  "timingsMs": {
    "planAvgOverIters": 0.04,
    "createOpenClawToolsWarmAvg": 4.563
  },
  "invariants": {
    "imageGeneratePlannedAndRegistered": true,
    "videoGeneratePlannedAndRegistered": true,
    "musicGeneratePlannedAndRegistered": true
  }
}

Stdout ended with PROOF_OK.

Observed result after fix:

  • Plan registers generation tools for explicit models and for config-apiKey providers without prepared runtime.
  • List action generationAvailable includes configured media model so it cannot report false when registration is true for explicit models.
  • Factories do not re-scan availability on prep hot path; warm createOpenClawTools avg ~4.6 ms on this machine after plan.

What was not tested:

  • Live third-party provider generation API calls
  • Full gateway agent turn on a real channel

Linked context

Performance/refactor of media tool prep; not issue-linked.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: M triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels May 7, 2026
@guanbear
guanbear force-pushed the media-tool-availability-pr4c branch 2 times, most recently from 3efa0d1 to 310ea31 Compare May 7, 2026 08:18
@openclaw-barnacle openclaw-barnacle Bot added proof: supplied External PR includes structured after-fix real behavior proof. and removed triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels May 7, 2026
@clawsweeper

clawsweeper Bot commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 10, 2026, 12:01 AM ET / 04:01 UTC.

ClawSweeper review

What this changes

Centralizes optional image, video, and music generation eligibility during agent tool preparation so their factories do not repeat provider and authentication scans.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 4 items remain

No code-level blocker found: the preparation plan is the right owner for registration eligibility, and the prior list-readiness finding is addressed. The PR still needs a redacted after-fix trace from a configured agent flow rather than only temporary metadata before merge.

Priority: P2
Reviewed head: 39d44da575c871ffb50542e6f7a338eee562afd5

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch and focused source coverage are solid, but the external-PR real-behavior gate remains unproven.
Proof confidence 🦐 gold shrimp (3/6) Needs stronger real behavior proof before merge: The exact-head terminal output uses real modules, but its temporary metadata snapshot does not demonstrate the changed behavior from an actual configured agent; post a redacted configured-agent trace before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The exact-head terminal output uses real modules, but its temporary metadata snapshot does not demonstrate the changed behavior from an actual configured agent; post a redacted configured-agent trace before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 5 items Current repeated availability path: Current main plans media tools in the central builder, then each generation factory still independently calls the shared availability helper before constructing its definition.
Single registration owner on PR head: The PR makes the media plan decide generation eligibility and has the three factories construct only after that plan selects them.
Config-auth guard preserved: The PR recognizes generic tool auth only after manifest base-URL guards, preserving the manifest-owned restriction for configured provider keys.
Findings None None.
Security None None.

How this fits together

Agent tool preparation assembles the tools offered to a model on each run. It combines runtime config, plugin capability metadata, and authentication state to decide which media tools reach the model tool list.

flowchart LR
  A[Agent run options] --> B[Tool preparation]
  C[Runtime config and auth] --> D[Media eligibility plan]
  E[Plugin capability metadata] --> D
  D --> B
  B --> F[Media tool definitions]
  F --> G[Model tool list]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The exact-head terminal output uses real modules, but its temporary metadata snapshot does not demonstrate the changed behavior from an actual configured agent; post a redacted configured-agent trace before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - Merging changes when configured provider keys cause media tools to appear, so compatibility depends on the plan and execution paths continuing to agree for existing plugin and auth configurations.
  • Resolve merge risk (P1) - The branch is behind current main and exact-head CI is still running; refresh merge and proof status before landing.
  • Complete next step (P2) - The remaining merge gate is contributor-provided real behavior proof, not a narrow automated repair.
Agent review details

Security

None.

PR surface

Source +122, Tests +36. Total +158 across 15 files.

View PR surface stats
Area Files Added Removed Net
Source 8 209 87 +122
Tests 7 181 145 +36
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 390 232 +158

Review metrics

Metric Value Why it matters
Production versus test LOC production +209/-87 (net +122); tests +181/-145 (net +36) The production growth centralizes eligibility and config-auth handling, so configured-agent proof is needed to justify the compatibility-sensitive refactor.

Merge-risk options

Maintainer options:

  1. Prove the configured-agent path (recommended)
    Add a redacted exact-head terminal trace from an actual configured agent that shows the selected media tools and warm preparation result.
  2. Accept harness-only evidence
    A maintainer may accept the temporary-metadata harness as sufficient, acknowledging that it does not show an operator configuration path.

Technical review

Best possible solution:

Keep one preparation-time eligibility decision, then add a redacted configured-agent trace showing the registered media tools and warm preparation behavior on the exact merged head.

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

Yes—current main source shows eligibility checked in both preparation and each generation factory; the exact runtime benchmark was not run because this review is read-only.

Is this the best way to solve the issue?

Yes—the preparation plan is the narrowest ownership boundary for registration eligibility, while the shared helper remains for the image list action outside tool preparation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 592bf90b079c.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded performance and registration-behavior refactor in optional agent media tools.
  • merge-risk: 🚨 compatibility: The new plan changes when existing configured provider and plugin setups expose media tools.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The exact-head terminal output uses real modules, but its temporary metadata snapshot does not demonstrate the changed behavior from an actual configured agent; post a redacted configured-agent trace before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

Likely related people:

  • steipete: Current main blames the tool-preparation and shared availability path to Peter Steinberger’s current area commit. (role: recent area contributor; confidence: high; commits: d7cdb2e60b7a; files: src/agents/openclaw-tools.ts, src/agents/openclaw-tools.media-factory-plan.ts, src/agents/tools/media-tool-shared.ts)
  • shakkernerd: History records workspace-scoped plugin metadata work adjacent to the availability snapshot consumed by this PR. (role: workspace-metadata contributor; confidence: medium; commits: f5904392e9a2; files: src/agents/tools/manifest-capability-availability.ts)
  • vincentkoc: History records the shared manifest capability availability extraction that this PR extends for configured-provider auth. (role: shared availability contributor; confidence: medium; commits: 7054aa562e09; files: src/agents/tools/manifest-capability-availability.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Post a redacted exact-head terminal trace from a configured agent showing registered media tools and warm preparation behavior.
  • After updating the PR body, let the automatic review refresh or ask a maintainer to comment @clawsweeper re-review if it does not.

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.

History

Review history (22 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-31T10:08:54.322Z sha 55e6f8e4cc55cc230cc32eacd1d8b481213afcdb :: needs maintainer review before merge. :: none
  • reviewed 2026-08-05T00:15:49.584Z sha 55e6f8e4cc55cc230cc32eacd1d8b481213afcdb :: needs changes before merge. :: [P1] Preserve prepared-provider eligibility in the shared plan | [P2] Remove the blanket Knip suppression
  • reviewed 2026-08-07T01:37:00.164Z sha f81fdf8e1e3000e8218475d310c576f6d1d37f11 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-07T09:40:25.712Z sha b00dd133390f0f94b8af5457eb38c7946409eea1 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-07T15:40:04.982Z sha 3f6b4b0a116c621c43a1e1fc9de05acc0cfd5612 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-07T15:46:17.530Z sha 3f6b4b0a116c621c43a1e1fc9de05acc0cfd5612 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-10T01:52:51.352Z sha d372aae288237a05749b49f4fbb6468b1d792a26 :: needs changes before merge. :: [P1] Preserve config-auth fallback for unprepared providers
  • reviewed 2026-08-10T03:52:10.160Z sha 9529968 :: needs real behavior proof before merge. :: [P2] Pass the configured model into list readiness

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 7, 2026
@guanbear
guanbear force-pushed the media-tool-availability-pr4c branch from 310ea31 to 53be1cb Compare May 7, 2026 08:39
@guanbear

guanbear commented May 7, 2026

Copy link
Copy Markdown
Contributor Author

Addressed the review finding by adding the required Unreleased changelog entry for the agent tool-prep performance change.

Additional local validation for the changelog-only follow-up:

  • pnpm exec oxfmt --check --threads=1 CHANGELOG.md
  • git diff --check

@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 7, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 7, 2026
@guanbear
guanbear force-pushed the media-tool-availability-pr4c branch from 53be1cb to 2e312e9 Compare May 7, 2026 09:42
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 7, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 7, 2026
@guanbear
guanbear force-pushed the media-tool-availability-pr4c branch from 2e312e9 to efedafe Compare May 7, 2026 11:58
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 7, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 7, 2026
@guanbear
guanbear force-pushed the media-tool-availability-pr4c branch from efedafe to 80424bd Compare May 7, 2026 12:19
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 7, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 7, 2026
@guanbear
guanbear force-pushed the media-tool-availability-pr4c branch from 80424bd to a4debb7 Compare May 7, 2026 23:08
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 7, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 7, 2026
@guanbear
guanbear force-pushed the media-tool-availability-pr4c branch from a4debb7 to a763094 Compare May 7, 2026 23:20
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 7, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 7, 2026
@guanbear
guanbear force-pushed the media-tool-availability-pr4c branch from a763094 to 298cdc6 Compare May 8, 2026 00:16
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 8, 2026
@guanbear

guanbear commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up knip fix

Previous tip removed hasGenerationToolAvailability, which unblocked the first knip hit but exposed three more production-only exports that only that helper consumed:

  • getCurrentCapabilityMetadataSnapshot (deleted)
  • loadCapabilityManifestSnapshot (module-private)
  • listAvailableManifestContractValues (deleted; tests now use listAvailableManifestContractPlugins)

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@guanbear

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Rebased onto current main and refreshed exact-head real behavior proof for head d372aae288237a05749b49f4fbb6468b1d792a26.

Local proof on that head:

  • Focused suites: 165 tests passed (media-factory-plan + media-tool-shared + image/video/music generate)
  • Runtime: real createOpenClawTools with explicit media models registers image_generate / video_generate / music_generate matching resolveOptionalMediaToolFactoryPlan (PROOF_OK)
  • Timings (redacted JSON in PR body): plan avg ~0.012 ms / 200 iters; warm createOpenClawTools avg ~5.9 ms

Please re-evaluate proof confidence / needs-proof gate on this head.

@clawsweeper

clawsweeper Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@guanbear

Copy link
Copy Markdown
Contributor Author

Fixed CI check-plugin-sdk-api-baseline on head 032a7eb40b2c4f4b6e782e23ac14f4f0ae591193.

Cause: unexporting loadCapabilityManifestSnapshot and removing listAvailableManifestContractValues drifted docs/.generated/plugin-sdk-api-baseline.sha256.
Fix: pnpm plugin-sdk:api:gen / scripts/generate-plugin-sdk-api-baseline.ts --write and commit the refreshed manifest (plugin-sdk:api:check OK locally).

@guanbear

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Exact head 37d92b21016690ad3432e0742f2280e898e9be92 addresses the P1 and CI blockers:

  1. [P1] config-auth without prepared runtime — hasConfiguredCapabilityProviderSignal now accepts hasProviderAuthForTool (including models.providers.<id>.apiKey) after base-url guards. Regression: plans generation tools from config-backed auth without prepared runtime.
  2. plugin-sdk baseline — rebased onto current main and regenerated docs/.generated/plugin-sdk-api-baseline.sha256; local plugin-sdk:api:check OK.
  3. Focused suite: 31/31 openclaw-tools.media-factory-plan.test.ts passed.

Please re-evaluate for maintainer look (clear waiting-on-author / unranked proof gates if the P1 is resolved).

@clawsweeper

clawsweeper Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@guanbear

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head b877218fb2f93ae836e210256b836832e1c33e41:

P1 (config-auth without prepared runtime)

  • Fixed in snapshot signal path: hasConfiguredCapabilityProviderSignal accepts hasProviderAuthForTool (incl. models.providers.<id>.apiKey) after base-url guards.
  • Regression: plans generation tools from config-backed auth without prepared runtime (31/31 plan tests green).

plugin-sdk baseline

  • Local Mac plugin-sdk:api:gen produces non-CI hashes (even pure main drifts 37 modules vs committed Linux baseline).
  • This head keeps the exact docs/.generated/plugin-sdk-api-baseline.sha256 from current main (net zero baseline diff). Eligibility unexports remain knip-clean.

Please re-rate for maintainer look once CI is green.

@clawsweeper

clawsweeper Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

Knip production deadcode failed on media-tool-shared.ts because
hasGenerationToolAvailability was only referenced by unit tests after
availability moved into resolveOptionalMediaToolFactoryPlan. Remove the
leftover helper and keep the still-useful isConfigured regression.
Removing hasGenerationToolAvailability left three production-only exports
unused. Unexport the internal snapshot loader, delete the dead current-
snapshot helper and listAvailableManifestContractValues, and retarget the
eligibility tests at listAvailableManifestContractPlugins.
… runtime

Recognize models.providers.<id>.apiKey inside snapshot capability signals so
gateway/skill tool prep still plans image/video/music generation without a
prepared model runtime, while keeping manifest base-url guards.
Keep loadCapabilityManifestSnapshot / listAvailableManifestContractValues and
hasGenerationToolAvailability so the Plugin SDK API contract matches main while
factories still use the single media plan owner and config-auth snapshot fix.
Re-export loadCapabilityManifestSnapshot / listAvailableManifestContractValues
and keep hasGenerationToolAvailability for non-plan callers so CI
plugin-sdk:api:check matches main while factories still plan once.
@guanbear

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head 128c7c4569f0b06524e3da97c1298fdf3bc849bc (latest):

P1 config-auth (waiting-on-author)

  • hasConfiguredCapabilityProviderSignal now accepts hasProviderAuthForTool (incl. models.providers.<id>.apiKey) after base-url guards.
  • Regression: plans generation tools from config-backed auth without prepared runtime.

plugin-sdk baseline

  • Restored eligibility export surface to match main so no baseline file change is required (Mac api:gen is not CI-faithful).
  • Factories still plan once via resolveOptionalMediaToolFactoryPlan; hasGenerationToolAvailability remains for non-plan callers.

Local proof

  • 31 plan tests + media-tool-shared + eligibility tests green.

Please re-evaluate for status: ready for maintainer look when exact-head CI is green.

@clawsweeper

clawsweeper Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

Wire hasGenerationToolAvailability into the media factory plan when no
prepared providers are present so knip keeps the helper used and config-auth
fallback stays shared with non-plan callers.
…ty for knip

Unprepared media planning stays on snapshot signals (workspace + base-url +
config auth). Re-export hasGenerationToolAvailability through the plan/tools
barrel so production knip keeps the shared helper.
@guanbear

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head 869a52ce33ba05879edc2f3354a3e26a7e97551b:

  • P1: config-auth via snapshot signals (hasProviderAuthForTool after base-url guards)
  • knip: hasGenerationToolAvailability kept and re-exported through plan/tools barrels (factories still plan once; unprepared path uses snapshot)
  • plugin-sdk baseline: no file change vs main
  • Local: 31/31 media factory plan tests green

Please re-rate for maintainer look when CI is green.

@clawsweeper

clawsweeper Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Keep hasGenerationToolAvailability as a production owner for list/status
readiness while tool prep still plans factories once. Fixes knip unused
export after removing factory re-scans.
@guanbear

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head 9529968cc0d7f04ce5ab6d3b68b3f3876e0c4fc1:

Ready for maintainer look targets

  1. P1 config-auth: snapshot signals accept hasProviderAuthForTool / models.providers.*.apiKey after base-url guards
  2. knip: hasGenerationToolAvailability used by image_generate list action (not factory hot path)
  3. plugin-sdk baseline: unchanged vs main
  4. Local: 31 plan + image-generate + media-tool-shared tests green

Please clear waiting-on-author when CI is green.

@clawsweeper

clawsweeper Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

Keep image_generate list generationAvailable consistent with factory plan
registration when agents.defaults.mediaModels.image is set.
@guanbear

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head 39d44da575c871ffb50542e6f7a338eee562afd5:

  • P2 list readiness: image_generate list now passes agents.defaults.mediaModels.image into hasGenerationToolAvailability so list cannot contradict explicit-model registration.
  • P1 config-auth still in place.
  • PR body refreshed with exact-head evidence.

Please re-evaluate for status: ready for maintainer look.

@clawsweeper

clawsweeper Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@guanbear

Copy link
Copy Markdown
Contributor Author

Closing this PR for now.

It has been open for a long time without maintainer merge traction, and the surface keeps moving under rebases. I’m withdrawing it to reduce review noise rather than keep pinging the queue.

Thanks for the automated review feedback along the way. Happy to open a fresher, narrower PR later if this direction is still useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants