Repository navigation
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: needs changes before merge. What this changesThe branch exposes the existing environment API-key resolver through a lightweight internal package entry and switches three application callers to it. Review scores
ProductKind: Performance · Worth it: Yes Merge readiness⛔ Needs changes before merge - 1 item remains This PR remains useful and distinct from current main, but the previously reported native source-resolution defect is still present. Maintainer-authored work also requires explicit maintainer judgment before closure. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherStartup authentication and model scanning obtain provider credentials from environment variables. The changed import route reaches the existing credential resolver without importing its broader model-runtime barrel. flowchart TD
A[Startup authentication] --> C[Lightweight credential entry]
B[Model scanning] --> C
C --> D[Existing environment resolver]
E[Environment variables] --> D
D --> F[Provider credential or no credential]
G[Native source loader] --> C
Technical reviewBest possible solution: Keep one shared lightweight credential resolver and make source and packaged loading resolve it consistently while preserving credential behavior. Do we have a high-confidence way to reproduce the issue? Not applicable to the performance refactor itself: source confirms the broad import route, but no matched startup benchmark was supplied. The introduced native-resolution failure is source-reproducible; this review did not execute target code. Is this the best way to solve the issue? Yes, exposing the existing resolver is a narrow approach that avoids duplicate credential logic; its native source alias must accompany the package and build wiring. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7b17e7b7bf81. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +1, Config +6, Other +1. Total +8 across 7 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 8, 2026, 4:54 PM ET / 20:54 UTC (Revision 2). |
|
ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment |
|
Expose the existing environment-key owner through a narrow internal entrypoint and migrate all three env-only callers. Preserve runtime and auth behavior. Proof:87 focused tests, full build, focused type-aware lint and fresh P0-P2 review passed. Complete changed gate reports only inherited unchanged Talk ClientVoiceToolEffect dead export; typechecks and guards passed. Release companion native80-plugin replay does not establish Gateway RSS improvement.
5d7d510 to
21a8ce9
Compare
Current repair and validation (2026-11-25)
Rebased onto current main
ba6d94ec1771, preserving its Google build entries and the currentauth-storage.core.tsowner. Added the narrow entry to the existing core-only native resolver and the strict bundled-package validator, including its existing missing-entry fixture matrix. No dependency or credential policy change.Validation on this repair:
pnpm build: passed (5m17s).umask 022; the new missing-entry case failed before the validator correction. A first run under inheritedumask 077exposed an unrelated existing permission-mode assertion; no expectation was changed.@openclaw/ai, extracted it into an isolated package installation, then resolved the new export and exercised the existing environment-key lookup with a synthetic key: passed.No new startup/memory benchmark or full Docker tarball run is claimed. Hosted CI on the published head remains required; non-draft does not mean merge-ready.
What Problem This Solves
API-key lookups during startup and model scanning load the full model runtime even though they only need environment-key resolution.
User Impact
These lookups avoid unnecessary runtime imports. Credential resolution and provider behavior are unchanged; no migration or configuration change is needed.
Why This Change Was Made
Expose the existing environment-key owner through a narrow internal package entry point and migrate the three environment-only callers. Keep the full runtime exports for their existing consumers.
Evidence
ClientVoiceToolEffectexport in Talk; this PR does not change that owner.Draft forward-port of the authorized 2026.10.1 release repair. Do not merge as part of this release task.