Repository navigation
perf(system-agent): reuse setup metadata per activation - #118352
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 3, 2026, 1:46 AM ET / 05:46 UTC. ClawSweeper reviewWhat this changesThe branch resolves compatible plugin manifest metadata once after setup staging, then passes that immutable manifest list through system-agent route selection, route comparisons, and persistence verification to avoid repeated plugin discovery. Merge readiness⛔ Blocked until real behavior proof is added - 4 items remain Keep this maintainer-labeled PR open for human review. The patch has a coherent activation-scoped metadata boundary and clears the prior changelog finding, but it still lacks inspectable after-fix runtime evidence and this checkout cannot complete the repository-required direct Codex-source contract check. Priority: P3 Review scores
Verification
How this fits togetherSystem-agent setup stages a model and authentication route, validates it with a live inference attempt, then persists the verified route. This PR changes the metadata input used by route projection so model normalization and provider-auth alias lookup reuse one activation-scoped plugin manifest view. flowchart LR
A[Setup request] --> B[Stage model and plugin configuration]
B --> C[Refresh plugin registry when needed]
C --> D[Prepare manifest metadata once]
D --> E[Project baseline and staged routes]
E --> F[Run verified inference]
F --> G[Persist and revalidate route]
Decision needed
Why: The code path affects model/provider routing and the required real-behavior and direct upstream-contract evidence cannot be completed from this read-only checkout. Before merge
Agent review detailsSecurityNone. PR surfaceSource +72, Tests +36. Total +108 across 8 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the single activation-scoped manifest snapshot, but land only after exact-head evidence demonstrates stable baseline, staged, and persisted routes across an auth-alias case and a forced post-install registry refresh. Do we have a high-confidence way to reproduce the issue? Not applicable as a defect reproduction: this PR optimizes an existing setup path. Source inspection identifies the affected activation and route-projection path, but no inspectable after-fix runtime benchmark or trace was supplied. Is this the best way to solve the issue? Unclear until real proof is available. The operation-scoped prepared-fact design matches the plugin metadata lifecycle, but route/auth compatibility should be demonstrated after staging and registry refresh before merge. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e04caa6aee38. LabelsLabel 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
HistoryReview history (3 earlier review cycles)
|
fb58c4f to
5d34a4f
Compare
5d34a4f to
aa55678
Compare
|
Merged via squash.
|
) * perf(system-agent): reuse setup metadata per activation * chore: remove release-owned changelog entry --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Verified inference setup repeatedly rediscovered process-stable plugin metadata while projecting the baseline, staged, persisted, retried, and reconciled routes for one activation. The 122-case setup suite exposed the same cost operators pay during real model setup.
Why This Change Was Made
Prepare one compatibility-checked plugin manifest list after the setup plan and any Codex install/registry refresh, then carry only that immutable list through route selection and persistence retries. Config and workspace trust are still recalculated for every live config, and a plugin refresh explicitly bypasses the prior generation. No broad cache, sharding, config, dependency, or storage surface is added.
User Impact
Verified model setup and recovery checks complete faster, especially for staged provider/plugin configurations, while preserving route-drift, auth-alias, workspace, and post-install safety checks.
Evidence
allowCurrent: falsegeneration after Codex registry refresh.openai/codexorigin/mainbb5054fe47ab: the app server requires an initialized client to consumeturn/*notifications, every started turn ends with a matchingturn/completed, and transport closure remains terminal. Checkedcodex-rs/app-server/README.md:1444,1495,app-server/src/bespoke_event_handling.rs:1271,app-server/tests/common/test_app_server.rs:1005,app-server/src/lib.rs:1003, andapp-server-client/src/remote.rs:414. The "Codex registry refresh" in this PR is OpenClaw's plugin-manifest lifecycle; the upstream app-server probe and its protocol are unchanged.git diff --check, focused type diagnostics, independent owner-boundary review, and final autoreview are clean.