Repository navigation
fix(anthropic): static model alias lane misses the Fable 5.1 family aliases - #137376
Conversation
…liases openclaw#135638 added the fable, fable-5.1, haiku, and opus-4.7 aliases to the Anthropic manifest, and mythos-5 has been declared there since July. The built-in Anthropic alias map that callers use when they skip manifest normalization (status and session display, the preliminary run route, plugin model allowlists, usage cost keys) still knew only the opus and sonnet families, so anthropic/fable resolved while anthropic/opus did not. Align the built-in map with the manifest declarations, the way the Opus 5 rollout in openclaw#113391 and openclaw#113392 updated both owners together.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check could not safely complete for this revision. ClawSweeper will not retry this unchanged revision. Next step: No contributor action is requested. Maintainers should inspect the linked workflow run. |
|
Codex review: needs maintainer review before merge. Reviewed September 7, 2026, 3:05 AM ET / 07:05 UTC. ClawSweeper reviewWhat this changesAligns Anthropic model aliases across manifest-free lookup paths and adds a manifest-parity test that targeted CI selects when the manifest changes. Merge readiness✅ Ready for maintainer review This PR remains useful: current main and the latest release still have the static alias gap. The earlier CI-routing finding is addressed, the supplied production-helper proof covers the repair, and no blocking defect was found. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw normalizes configured model names before displaying sessions, identifying preliminary run routes, and comparing model allowlists. Some callers deliberately avoid plugin metadata, so their built-in aliases must agree with the Anthropic plugin’s declarations. flowchart TD
A[Configured model name] --> B{Plugin metadata enabled}
B -->|Yes| C[Manifest alias policy]
B -->|No| D[Built-in alias table]
C --> D
D --> E[Canonical model reference]
E --> F[Session displays and run routing]
E --> G[Model allowlist comparisons]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +8, Tests +49, Other +10. Total +67 across 7 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep manifest-free normalization aligned with the declared aliases and enforce parity through the existing targeted-test planner. Do we have a high-confidence way to reproduce the issue? Yes: current source deterministically returns the raw missing aliases when manifest normalization is disabled, and the contributor supplies matching before/after production-helper output. This review did not execute a reproduction. Is this the best way to solve the issue? Yes: extending the existing table repairs its explicit manifest-free contract without introducing runtime metadata discovery. The eight runtime lines are justified by that boundary; replacing them with manifest loading would change the callers’ intended behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a325c39220f1. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
The remaining merge-risk note is that this table mirrors manifest data and could drift again on the next alias rollout. Commit 9e7d8a4 turns that into a test rather than a convention: the existing static-normalization suite ( Verification: 13 of 13 pass on this branch. With the alias table reverted to |
…anifest The manifest-free alias table mirrors manifest data by design, so a future alias rollout that updates only the manifest would reopen the same drift. Read the bundled Anthropic manifest in the existing static-normalization suite and assert that every declared alias resolves identically with manifest normalization disabled.
…rity suite The manifest parity test in src/agents/model-ref-shared.test.ts reads extensions/anthropic/openclaw.plugin.json instead of importing it, so the import-graph planner never selected it for a manifest-only edit and a manifest-only alias rollout could pass targeted CI without running the guard. Declare the manifest as a policy-test watch and let policy watches apply to extension-owned paths, which the planner previously filtered out before consulting the watch table. Extension-only diffs keep their complete plugin suites; the watched host suite is added beside them.
|
The routing finding was correct: the parity test reads the manifest instead of importing it, so a manifest-only diff never selected it. Measured with Commit fce29af fixes that at the planner's existing owner for tests that scan files rather than import them. Routing coverage: The |
Resolve scripts/lib/ci-changed-node-test-plan.mts: main narrowed the same policy-target filter to admit plugin control-UI paths (openclaw#134943), while this branch removed it so a policy watch can name an extension-owned manifest. Keep both by computing the targets first and admitting an extension path when main's condition holds or a watch actually names it.
|
Refreshed onto current The conflict was real and confined to one file, and the two sides were changing the same filter for different reasons, so this is worth writing down rather than just resolving. What collidedBoth sides edited the extension-path filter in front of
livePaths
.filter(
(changedPath) =>
!changedPath.startsWith("extensions/") || isPluginControlUiPath(changedPath),
)
.map((changedPath) => [changedPath, resolvePolicyTestTargets([changedPath])]),This branch had removed the filter outright, because the watch it adds names Taking either side alone loses the other's case. ResolutionCompute the targets first, then admit an extension path when const policyTargetsByPath = new Map(
livePaths
.map((changedPath) => [changedPath, resolvePolicyTestTargets([changedPath])] as const)
.filter(
([changedPath, policyTargets]) =>
!changedPath.startsWith("extensions/") ||
isPluginControlUiPath(changedPath) ||
policyTargets.length > 0,
),
);This is narrower than what the branch carried before the refresh. Removing the filter made every extension path eligible; this admits only the ones a declared watch names, which is the case this PR actually needs, and it leaves #134943's control-UI relaxation untouched. Measured on the merged treePlanner suites with Mutation control — the resolved block reverted to Exactly one failure, and it is this PR's own case, so the resolution is load-bearing rather than a formatting merge. Nothing else in the patch moved: the alias table, the manifest-reading parity test, and the |
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency removals notedThis PR only removes dependencies from the dependency graph, so the dependency guard is informational and does not require
A later push that adds or changes dependency graph entries will require a fresh security approval. |
|
landpr-approve-unrelated-red |
|
Thanks @Yigtwxx! Proof: All 14 declared aliases now resolve through real status and session output, the public
CI exception: Run 34311158485 completed with one failed child, checks-node-compact-large-19, plus its dependent aggregate. The failure was A controlled reproduction on main The affected inline deadline path in The guarded merge used the recorded standing approval for this unrelated failure. The original failure, main controls, reviews, and contributor ancestry are retained. |
…1-prep * commit 'b04a3f83adad8bd6a2ca8408e7940fc6bcbde212': (636 commits) docs(cli): split the doctor command reference by reader job (openclaw#142855) fix(ui): explain paused weekly skill reviews (openclaw#142840) docs(automations): describe supported schedule options (openclaw#135964) fix(image): close registration resources after generation (openclaw#142843) fix(slack): keep ack reactions independent of status reactions (openclaw#142595) fix(ui): avoid flashes when switching cold sessions (openclaw#134868) refactor(tests): share independent no-queued-reply expectations (openclaw#142845) perf: reduce generated media reference formatting overhead (openclaw#142836) fix: sessions_yield keeps long transcript history available (openclaw#137381) fix(music): close registration resources after generation (openclaw#142834) fix: update confirmation shows stale commit counts after refresh (openclaw#142837) fix(ci): retain Android emulator post-timeout evidence (openclaw#142835) fix(talk): retain final delivery across delegation waves (openclaw#142830) docs(gateway): run Linux system services as the state owner (openclaw#136266) fix(models): align static Anthropic aliases with manifest (openclaw#137376) test(gateway): simplify session lifecycle gates and report early rollback failures (openclaw#142833) refactor(ai): keep model policy parsing independent of transport host (openclaw#142804) refactor: simplify interactive SDK forwarding (openclaw#142824) fix(cli): finish pending cleanup before automatic macOS exit (openclaw#142814) docs(memory-lancedb): clarify enforced compatibility ranges (openclaw#142827) ...
…37376) Align the built-in Anthropic aliases with the bundled manifest so saved model selections, static usage pricing, and plugin model allowlists use the declared canonical targets. Keep explicitly pinned aliases and other providers' distinct targets unchanged. Retain the contributor's manifest-parity regression guard and route manifest-only edits to it alongside existing plugin and Control UI tests. Co-authored-by: Ayaan Zaidi <[email protected]>
Related: #135638
What Problem This Solves
Fixes an issue where operators selecting newer Anthropic aliases would see raw aliases in status and session listings, miss model-cost estimates, or have a plugin reject the corresponding canonical model. Existing
opusandsonnetaliases worked on those same static paths.Why This Change Was Made
The built-in normalization table now matches all 14 aliases declared by the bundled Anthropic manifest. A manifest-parity regression test and its CI routing catch future drift without loading plugin metadata in these static paths.
User Impact
Saved model overrides, usage-cost lookup, and plugin model allowlists resolve the declared aliases consistently. Version-pinned aliases keep their pinned targets, other providers keep their distinct defaults, and explicit recorded runtime model IDs retain their existing literal display behavior.
Evidence
Pinned main
3f0f98ef7efe3c3fceb180b9bef908de5792c7b4leaves seven declared aliases raw in realstatus --jsonandsessions --all-agents --limit all --jsonoutput for saved model overrides.Main omits the corresponding cost in the public
session_statusprojection and rejects canonical requests allowed through those aliases in normal plugin loading. Canonical controls succeed at each boundary.The manifest-parity regression test fails on main at
fablefor the intended reason.All 237 focused normalization and CI-planner tests pass on the candidate. Formatting, syntax lint, size and assertion checks pass.
The targeted type-aware lint process reached its native memory limit. Its failed output is retained; hosted CI owns the full typed lint and typechecks.
Candidate
0ac1c3762bd1cb37583b890de646cb4a7b1f9fcbresolves all 14 declared aliases in both CLI displays and matches canonical cost controls. All 60 allowlist cases pass acrossallowedModelsandallowedCompletionModels.Fresh source-blind runtime validation also checks uppercase qualified inputs, reverse alias requests, blank and unknown inputs, provider separation, and changed synthetic usage/prices. Those controls pass.
Exact-head hosted CI and final landing review remain pending.
Original alias, regression-test, and CI-routing changes by @Yigtwxx are retained with contributor ancestry and credit.