Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 30, 2026, 4:19 PM ET / 20:19 UTC. Summary PR surface: Source +192, Tests +698, Docs +1. Total +891 across 16 files. Reproducibility: yes. source inspection shows current main can still serialize provider Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land one maintainer/security-reviewed current-main fix for the generated credential cluster that sanitizes root Do we have a high-confidence way to reproduce the issue? Yes, source inspection shows current main can still serialize provider Is this the best way to solve the issue? No, not as submitted: the PR is a plausible old-base fix, but the best fix must be retargeted to current main's SQLite auth store and plugin catalog sidecars before it is safe. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 640258d7b31d. Label changesLabel justifications:
Evidence reviewedPR surface: Source +192, Tests +698, Docs +1. Total +891 across 16 files. View PR surface stats
Security concerns:
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
|
ClawSweeper PR egg ✨ Hatched: 🌱 uncommon Tiny Signal Puff Hatch commandComment Hatchability rules:
Rarity: 🌱 uncommon. What is this egg doing here?
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Updated in
Validation:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Updated in
Validation:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Updated in
Validation:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review PR body now has current-head real behavior proof for d5f96f1 with copied redacted live output from equivalent tree 4497822feac55fee0e0442f93328e5da0e423cc5. Current-head local validation passed: models-config.plan.test, models-config.write-serialization.test, models-config.runtime-source-snapshot.test, tsconfig.core typecheck, oxfmt on the touched files, oxlint on the touched files, and git diff --check. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞👀 Command router queued. I will update this comment with the next step. Re-review progress:
|
|
@clawsweeper re-review Head: I refreshed the PR body real behavior proof for this exact head after the production write-path fix. Current latest check runs for this head show |
|
🦞👀 Command router queued. I will update this comment with the next step. Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
Closing due to inactivity. |
Summary
apiKeyvalues after merge-mode preservation, source-managed enforcement, and provider compatibility transforms so oldmodels.jsonkeys cannot be reintroduced into the final prompt-facing catalogmodels.jsonplaintext provider keys before the empty-providerskippath can preserve themmodels.json-only plaintext provider keys into the target agent's localauth-profiles.jsonbefore writing the stripped catalog when there is no configured provider key and no target-local auth profile for that providermodels.jsonkey migration for non-main agentsLITELLM_KEYto env-backed auth-profilekeyRefs, while preserving ambiguous env-shaped plaintext strings as inline local auth-profile keyssecretref-managedcompatibility markersReal behavior proof (required for external PRs)
models.jsonfiles should not persist plaintext providerapiKeyvalues. Cleanup should preserve upgrade auth outside the prompt-facing catalog, including non-main agent local migration boundaries and env-shaped legacy values that must only becomekeyRefs when an env marker or observed env value proves they are env-backed. The rebased branch should also preserve current-main plugin metadata discovery and manifest-aware model normalization.4637af01e2f1bf0212758c7450eeb5ca328b8ba7(treeMatchesRemoteHead: true; local commit3a249e79e3cd0be76920458c507fed56374b6ffbhas the same tree because the remote commit was created through the GitHub Git Database API), macOS, Node.jsv24.1.0,/usr/bin/python3for fs-safe pinned writes. Provider keys in proof output are redacted.The inline Node proof script created temporary local agent dirs, called
ensureOpenClawModelsJson,planOpenClawModelsJsonWithDeps,discoverModels,ensureAuthProfileStore, andcreateProviderAuthResolver, and exercised these real paths: inline custom provider stripping, legacy configuredmodels.jsonkey migration, catalog-only cleanup, env-presentkeyRefmigration, ambiguous env-shaped plaintext preservation, non-main inherited-profile migration boundary, pi model discovery compatibility, and manifest-aware model normalization after stripping.{ "remoteHead": "4637af01e2f1bf0212758c7450eeb5ca328b8ba7", "localCommit": "3a249e79e3cd0be76920458c507fed56374b6ffb", "treeMatchesRemoteHead": true, "localTree": "d14a38d666241655a0efe6dc30ef6b88a89da3bc", "tempRoot": "<tmp>", "inlineCustomProvider": { "apiKeyMarker": "secretref-managed", "hasPlaintextInModelsJson": false, "discoverModelsFindsCustomModel": "custom-model" }, "legacyModelsJsonOnlyUpgrade": { "apiKeyMarker": "secretref-managed", "hasPlaintextInModelsJson": false, "migratedProfile": { "type": "api_key", "provider": "custom", "copyToAgents": false, "displayName": "Migrated from models.json", "key": "<redacted>" }, "discoverModelsFindsLegacyModel": "legacy-model" }, "catalogOnlyLegacyCleanup": { "apiKeyMarker": "secretref-managed", "hasPlaintextInModelsJson": false, "migratedProfile": { "type": "api_key", "provider": "custom", "copyToAgents": false, "displayName": "Migrated from models.json", "key": "<redacted>" }, "discoverModelsFindsCatalogOnlyModel": "catalog-only-model" }, "envPresentCatalogMigration": { "modelsJsonPromptSafe": true, "migratedProfile": { "type": "api_key", "provider": "custom", "hasInlineKey": false, "keyRef": { "source": "env", "provider": "default", "id": "LITELLM_KEY" }, "copyToAgents": false }, "runtimeAuth": { "mode": "api_key", "source": "profile", "profileId": "custom:models-json", "apiKeyMarker": "LITELLM_KEY", "resolvedEnvValueSeen": true } }, "ambiguousEnvShapedCredential": { "modelsJsonPromptSafe": true, "migratedProfile": { "type": "api_key", "provider": "custom", "hasInlineKey": true, "hasKeyRef": false, "copyToAgents": false }, "runtimeAuth": { "mode": "api_key", "source": "profile", "profileId": "custom:models-json", "preservedLocalKeySeen": true } }, "inheritedProfileBoundary": { "modelsJsonPromptSafe": true, "localMigratedProfile": { "type": "api_key", "provider": "custom", "copyToAgents": false, "displayName": "Migrated from models.json", "key": "<redacted>" }, "runtimeAuth": { "mode": "api_key", "source": "profile", "profileId": "custom:models-json", "resolvedWorkerKey": true } }, "manifestAwareModelNormalization": { "planAction": "write", "normalizedModelId": "plugin-prefix/bare-model", "apiKeyMarker": "secretref-managed" } }models.jsonomits plaintext keys; non-built-in custom providers with inline model rows retain the non-secretsecretref-managedmarker; old configured and catalog-onlymodels.jsoncredentials migrate intoauth-profiles.json; env-present legacy catalog values migrate as env-backedkeyRefcredentials and resolve through provider auth; ambiguous env-shaped legacy values with no env signal are preserved as inline local auth-profile keys instead of unresolved env refs; a non-main agent with an inherited same-profile ID still migrates its local legacy catalog key and runtime auth resolves the worker-local key; pidiscoverModelscan still find custom model rows; and manifest-aware model normalization still threads plugin policies through the stripped catalog path.Tests
node scripts/run-vitest.mjs src/agents/models-config.write-serialization.test.ts --maxWorkers=1 --reporter=dotnode scripts/run-vitest.mjs src/agents/models-config.plan.test.ts --maxWorkers=1 --reporter=dotnode scripts/run-vitest.mjs src/agents/models-config.runtime-source-snapshot.test.ts --maxWorkers=1 --reporter=dotorigin/mainwith the same three targeted tests after merging the current proof/fix treePNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false PNPM_CONFIG_OFFLINE=true PNPM_CONFIG_PM_ON_FAIL=ignore pnpm exec tsc --noEmit --pretty false -p tsconfig.core.jsonNODE_OPTIONS=--max-old-space-size=8192 PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false PNPM_CONFIG_OFFLINE=true PNPM_CONFIG_PM_ON_FAIL=ignore pnpm exec tsc --noEmit --pretty false -p test/tsconfig/tsconfig.core.test.jsonPNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false PNPM_CONFIG_OFFLINE=true PNPM_CONFIG_PM_ON_FAIL=ignore pnpm exec oxfmt --check --threads=1 src/agents/models-config.ts src/agents/models-config.plan.ts src/agents/models-config.write-serialization.test.ts src/agents/models-config.plan.test.ts src/agents/models-config.runtime-source-snapshot.test.ts src/agents/models-config.providers.normalize.ts src/plugins/installed-plugin-index-registry.ts src/plugins/installed-plugin-index.ts src/plugins/plugin-metadata-snapshot.ts src/plugins/plugin-registry-snapshot.ts src/plugins/plugin-metadata-snapshot.types.ts src/plugins/plugin-registry-snapshot.types.tsnode scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json src/agents/models-config.ts src/agents/models-config.plan.ts src/agents/models-config.write-serialization.test.ts src/agents/models-config.plan.test.ts src/agents/models-config.runtime-source-snapshot.test.ts src/agents/models-config.providers.normalize.ts src/plugins/installed-plugin-index-registry.ts src/plugins/installed-plugin-index.ts src/plugins/plugin-metadata-snapshot.ts src/plugins/plugin-registry-snapshot.ts src/plugins/plugin-metadata-snapshot.types.ts src/plugins/plugin-registry-snapshot.types.tspnpm docs:listPNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false PNPM_CONFIG_OFFLINE=true PNPM_CONFIG_PM_ON_FAIL=ignore pnpm exec oxfmt --check --threads=1 docs/concepts/models.md docs/reference/secretref-credential-surface.md src/config/schema.help.tsnode scripts/run-vitest.mjs src/config/schema.help.quality.test.ts --maxWorkers=1 --reporter=dotgit diff --checkRefs #11829