Repository navigation
feat(spec)!: retire an agent's model.provider — no runtime read it; the deployment's AI settings choose the provider - #37783
Conversation
…he deployment's AI settings choose the provider ADR-0049 enforce-or-remove. `AIModelConfigSchema.provider` (openai / azure_openai / anthropic / local) was parsed and never read: the AI runtime applies the model name, temperature and maxTokens only, and the providers a deployment turns on are its own AI settings, a list the enum never matched. - retiredKey() tombstone with the prescription; the 18.x emitted default `openai` is stripped as residue (acceptRetiredDefaultResidue) - D2 conversion agent-model-provider-removed (step 19, lossless, retired from the load path), RETIRED_KEYS_BY_MAJOR[19] entry, D3 semantic entry agent-model-provider-retired, step-19 rationale - liveness ledger note, authorable-surface + reference docs regenerated, agent form help text and its 11 locale bundles, removal-version JOIN row - agent metadata preview shows the model name only - docs, CLI explain, benchmark and test fixtures stop authoring the key - pin suite with a tree-scoped absence walk (radius declared in vitest.repo-tests.json) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTnm6d4W7ugSacDJ3j
📓 Docs Drift CheckThis PR changes 3 package(s): 10 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 6 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 188 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 0a464e68ec78fbf141cea399c1474829a99f2b28 && git checkout 0a464e68ec78fbf141cea399c1474829a99f2b28
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 44ccf94a409362dbb3c16fc2f03b321d4e91b797 a610db7a0b656eba611b617cc84209e2908374db && git checkout -B drift-repro 44ccf94a409362dbb3c16fc2f03b321d4e91b797 && git merge --no-ff a610db7a0b656eba611b617cc84209e2908374db
node scripts/docs-audit/affected-docs.mjs --json 44ccf94a409362dbb3c16fc2f03b321d4e91b797
|
… preview pill reads the model name Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTnm6d4W7ugSacDJ3j
…-up card named Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTnm6d4W7ugSacDJ3j
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Gates: check-runs on this head read at 2026-11-27T04:24Z. All 70 are complete: 61 success, 9 skipped, none failed or still running. The skipped nine are the opt-in and queue-only lanes (the 18.x upgrade harness, the packed-tarball smoke, the dogfood shards and CLI verify, Temporal conformance, UI published artifacts, the two queue verdicts and the schedule gate), so dogfood is judged in the merge queue, not here. The head has not moved. Inputs: card #37712 with its three comments (triage 7205353375, hold 7206344767, claim 7207860184), the PR body, its 42-file list and net diff, the check-runs. The cited code was read in the live tree at ① Derived judgments
② Semver level
Clause-②: no (narrowing) is right: the accept set shrinks and nothing widens. ③ Boundary flags
④ Design judgmentNo must-fix. S1 (should-fix) — the agent's own wrong-layer guidance still prescribes the retired key. The diff does not touch it. An author who writes Per
Implementing files: the retirement pin asserts the tombstone at both doors, the residue with a near-value control, the stored and boot seams, and the registration; Nits:
Outside this diff, not graded: S1 earns a delta review of its fix. Implemented-by: VERDICT: PASS |
…etirement, never pointed at model.provider - AgentSchema's wrong-layer guidance for `provider` now says there is no provider key at either level and names `agent.model.model`; pinned - D3 reason names the judgement an upgrader really owes (is the named model one the deployment offers); the changeset drops the never-accepted provider-without-model row and says AIModelConfigSchema is a pipe now - DEFAULT_CHANGES_BY_MAJOR[19] reason and the unreleased model-optional changeset agree with the retirement Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTnm6d4W7ugSacDJ3j
|
DELIBERATE CORRECTION — This PR rewrites one pending release note it did not add:
Restoring the base text would put those false sentences back. The seat confirms by its same-head contract-review record. Session: session_01L6bhgTnm6d4W7ugSacDJ3j Generated by Claude Code |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Gates: check-runs on this head read at 2026-11-27T05:03Z. All 70 are complete: 60 success, 9 skipped (the same opt-in and queue-only lanes as on the first head), 1 failure. The failure is Delta round. This record follows 7209785394 on ① Derived judgments
② Semver levelUnchanged and still right: Clause-②: no (narrowing) is still right. ③ Boundary flagsDELIBERATE CORRECTION — confirmed. The commit rewrites
No other sentence of that note is made false by this PR: the default it describes is gone with the key, the block is still strict, and
④ Design judgmentNo must-fix, no should-fix.
No regression found. The new constant spells no authoring shape the absence walk matches, and the commit touches no conversion, registry entry or generated output.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head a610db7 · card #37712 · area s2-ai · 2026-11-27T05:09ZL1 checklist
Tier: S. Landing: ready + auto-merge by this stroke. |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Tier H hand-off · 2026-11-27T05:26Z · head a610db7 · approver 席位更正: 前一条 ACCEPT(7210402548)把落地级别写成 Tier S,错了。这个 PR 声明 维护者速读
|
…bjectstack-ai#37841) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuNTptyd1j97p7dHXZLEeH2g)_ Fixes objectstack-ai#37796 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:照我们技能包写应用的 AI 助手,以后在代理的模型配置里只写模型名,不再写“提供方”这一项;想用哪家提供方,到部署的 AI 设置里打开。 - 为什么做:“提供方”这一项今天已经退役,写了会被平台拒收,而对外发布的技能页还在教它;这是那次退役欠下的技能页跟进。 - 出错会怎样:只改教学文字和一道评测题,运行时不变;最坏是 AI 助手照旧文字给出过时写法,把文字改回即可撤回。 - 要你做什么:这是对外发布的技能包,需要你批准后才能合并。 ## What changes - **`skills/objectstack-ai/SKILL.md`, Model Configuration.** The `provider` row leaves the agent model table. The paragraph above the table now says the `model` block names a model and never a provider: the deployment's AI settings choose the provider and match the model name among the providers turned on, and a written `provider` is a parse error whose fix is to delete the key (retired in protocol 19). The `model`, `temperature` and `maxTokens` / `topP` rows are untouched. - **The schema citation in the same paragraph** moves from `packages/spec/src/ai/agent.zod.ts:37-45` to `:87-95`. PR objectstack-ai#37783 added 50 lines above the key list, so the old range pointed into a comment block. `:87` is the `provider` tombstone and `:95` is `topP`. - **`skills/objectstack-ai/evals/skills-tools-knowledge.json`, case 2.** The prompt is unchanged: a copilot that should use Anthropic at temperature 0.3 with a 2000-token cap. The expected answer now writes no provider key, puts sampling under `model`, names the model in the free-string `model` or leaves it to the host's default, and sends the choice of Anthropic to the deployment's AI settings. `must_contain` goes from `provider`, `anthropic`, `temperature`, `maxTokens` to `temperature`, `maxTokens`, `deployment`. `must_not_contain` goes from empty to the written line `provider: 'anthropic',`. - **`.changeset/37796-skills-agent-model-provider-retired.md`**: one `@objectstack/skills` patch. - **`.changeset/37711-skills-agent-model-optional.md`**: a DELIBERATE CORRECTION, declared below. ## Why PR objectstack-ai#37783 (merge `f07d63a5`) retired an agent's `model.provider`. The published skill still listed the key with its enum, and eval case 2 graded an answer as correct only when it wrote `provider`. An AI that follows the skill would write a key the platform now refuses. The Model Registry's own provider list (`ModelProviderSchema`) is a live key and this PR does not describe it. Its only mention in the bundle was inside the removed row. ## DELIBERATE CORRECTION `Check Changeset` is red on purpose: this PR edits a pending release note it did not add, `.changeset/37711-skills-agent-model-optional.md` (from PR objectstack-ai#37765). That note ships in the same release as this change, and two of its sentences would be false on release day. Title, before: > docs(skills): an agent's model name and provider are optional Title, after: > docs(skills): an agent's model name is optional Body, before: > `skills/objectstack-ai/SKILL.md` (Model Configuration) now teaches that `model.model` is optional, and that an agent without one runs on the host's default model for the environment, and that `model.provider` is optional with no default (the deployment's choice) instead of defaulting to `openai`. The inline enum list is unchanged, and the schema citation now points at `packages/spec/src/ai/agent.zod.ts:37-45`. The `objectstack-ai` eval case on sampling settings accepts an omitted `model` and states the provider has no default. Published prose only: it teaches the optional `model` / `provider` already on main since objectstack-ai#37697. Body, after: > `skills/objectstack-ai/SKILL.md` (Model Configuration) now teaches that `model.model` is optional, and that an agent without one runs on the host's default model for the environment. It no longer says `model.provider` defaults to `openai`; the key itself leaves the page in the same release (see the changeset on the skill no longer teaching `model.provider`). The `objectstack-ai` eval case on sampling settings accepts an omitted `model`. Published prose only: it teaches the optional `model` already on main since objectstack-ai#37697. The note's last sentence (the token budget) is unchanged. The precedent is PR objectstack-ai#37783 itself, which corrected `.changeset/37686-agent-model-name-optional.md` the same way. ## Tests ### Skill eval run (recorded) `pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-ai --repeats 3 --concurrency 4`, on head `fb8b3f20`. 12 cases, 2 arms, 3 repeats: 72 of 72 turns ran in 8 min, none out of the denominator. Subscription login, no API key, CLI 2.1.332, the login's default model and effort. | case | with-skill | no-skill | |:--|--:|--:| | **case 2 (this PR)** | **3/3** | **0/3** | | bundle, all 12 cases | 30/36 (83%) | 1/36 (3%) | Case 2, read answer by answer: all three with-skill answers put `temperature` and `maxTokens` under `model`, write no provider key, and send Anthropic to the deployment's AI settings. All three no-skill answers write `provider: 'anthropic',` inside the `model` block, which is the refused spelling. <details> <summary>Per-case table, round 2 (head fb8b3f2)</summary> | case | with-skill | no-skill | with-skill missed | with-skill carried forbidden | |:--|--:|--:|:--|:--| | objectstack-ai#1 | 3/3 | 1/3 | | | | objectstack-ai#2 | 3/3 | 0/3 | | | | objectstack-ai#3 | 3/3 | 0/3 | | | | objectstack-ai#4 | 3/3 | 0/3 | | | | objectstack-ai#5 | 2/3 | 0/3 | `aiExposed` | | | objectstack-ai#6 | 1/3 | 0/3 | `signed-in session` `refused` | | | objectstack-ai#7 | 0/3 | 0/3 | `do not retry` | | | objectstack-ai#8 | 3/3 | 0/3 | | | | objectstack-ai#9 | 3/3 | 0/3 | | | | objectstack-ai#10 | 3/3 | 0/3 | | | | objectstack-ai#11 | 3/3 | 0/3 | | | | objectstack-ai#12 | 3/3 | 0/3 | | | </details> <details> <summary>Round 1 (head 789e0c7) and why the forbidden token changed</summary> The first commit graded case 2 with `must_not_contain: ["provider:"]`. Round 1 scored it 1/3 with-skill. The two failing answers were correct: each wrote no provider key and named the retired spelling only to warn against it ("writing `provider: 'anthropic'` now fails to parse"). A bare `provider:` graded that warning as a failure. The second commit narrows the token to the object-literal line `provider: 'anthropic',` (with its trailing comma), which a warning in prose does not carry and every no-skill answer in round 2 does. The three round 1 with-skill answers pass under the final tokens when read by hand. Round 1's no-skill arm is not a clean baseline for case 2. The turns inherited this container's project-memory variables, and all three no-skill answers quoted the team's notes on the retirement. Round 2 was started with `CLAUDE_COWORK_MEMORY_PATH_OVERRIDE` and `CLAUDE_MEMORY_STORES` unset, and no case 2 answer mentions memory. </details> Cases 5, 6 and 7 are not touched by this PR. Their with-skill misses are literal-phrase misses in both rounds and are listed under Acceptance notes. ### Local gates, on head `fb8b3f20` `node scripts/pm/dispatch-gates.mjs --commands` derived 49 families for this diff. `--ran` reconciliation: 49 derived, 48 run, 1 NOT-MEASURED, 0 unrun. - 47 exit 0, among them `check-skills-token-ratchet` (and its self-test), `check:skill-identifier-liveness`, `check:skill-links`, `check:skill-compatibility`, `check:skill-frame-sync`, `check:pm-skill-id-lint`, `check:doc-authoring`, `check:nul-bytes`, `check:published-files` and `@objectstack/spec` `check:skill-docs`. - `node scripts/check-empty-changeset.mjs --base origin/main` exit 1: the DELIBERATE CORRECTION above. It names `.changeset/37711-skills-agent-model-optional.md` and nothing else. - `pnpm check:dual-build-cjs-loads` exit 3, NOT MEASURED: it needs a full `pnpm build`, and this container built only the scenario runner's closure. CI runs it. - Outside the derived set, also exit 0: `@objectstack/spec` `check:skill-refs` and `check:skill-served-sections`. ### Size readings (`skills/**`) | reading | before | after | |:--|--:|--:| | `skills/objectstack-ai/SKILL.md`, lines | 485 | 487 | | `skills/objectstack-ai/SKILL.md`, tokens | 6801 | 6801 (ceiling 6801, no row moved) | | all `skills/*/SKILL.md`, lines | 4960 | 4962 | | `evals/skills-tools-knowledge.json`, tokens (measured, not ratcheted) | 3359 | 3411 | | bundle total, tokens | 301302 | 301354 | The new sentences in `SKILL.md` are paid for by the deleted row. The bundle total grows by the eval fixture alone. ## Acceptance notes - The branch is the harness-assigned `claude/project-thread-2rm2nh`, not `claude/issue-37796-…`. - The skill's `description` still lists "configuring an LLM provider" among its triggers. Left as is: a user who asks that is now told where the provider is chosen. Changing it would move when the skill loads, which this card does not ask for. - `SKILL.md:457` cites `packages/spec/src/ai/agent.zod.ts:234, :251` for the `agent.tools` / `agent.knowledge` tombstones. Those lines did not hold the tombstones before PR objectstack-ai#37783 either, so this PR leaves the citation alone. Noted, not filed. - Eval cases 6 and 7 miss literal phrases (`signed-in session`, `refused`, `do not retry`) on the with-skill arm in both rounds, case 7 in all six turns. That reads as a grading-token question on those cases, not as something this diff moved. Noted for the seat. - The eval runner passes its whole environment to each turn, so a round started inside a project container carries that project's memory into both arms. Noted for the seat with the round 1 records as evidence. ## Verification Read first, by risk: 1. `skills/objectstack-ai/SKILL.md`, the hunk under `## Model Configuration`: three new sentences that ship to every customer install. 2. `skills/objectstack-ai/evals/skills-tools-knowledge.json`, case 2: the token lists. 3. `.changeset/37711-skills-agent-model-optional.md`: the corrected note. Two-minute check: `sed -n '84,96p' packages/spec/src/ai/agent.zod.ts` shows `provider: retiredKey(...)` at `:87` and `topP` at `:95`, the range the skill now cites, and `node scripts/check-skills-token-ratchet.mjs` prints `skills/objectstack-ai/SKILL.md is 6801 tokens (ceiling 6801; headroom 0)`. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (No schema change.) - [x] 2. Every name I added uses the casing for its kind. (No name added.) - [ ] 3. No formatter ran. `pnpm lint` is read from CI on this prose-only diff. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` is not touched. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [ ] The *Before Submitting* list in CONTRIBUTING.md: lint and the test jobs are read from CI; the rest is done. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgUjtV7ahUH66wxpMk7)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgUjtV7ahUH66wxpMk7 --------- Co-authored-by: Claude <noreply@anthropic.com>
objectstack-ai#37812) <!-- claude-projects-attribution: {"github_login":"os-elon-musk"} --> _Requested by **Elon** · [project thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DG44bgtJm8kWx4oK68re6GX)_ Fixes objectstack-ai#37733 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感;查阅决策记录目录的人会看到「就记录问 AI」那条记录的状态说明换成了最新写法,写明它修订过不止一次(目录每格有长度上限,后半句照旧截断)。 - 为什么做:这条记录本周又修订了一次,目录由记录自动生成,却没有跟着重新生成;替查阅决策记录的人和读取目录的工具消除目录与记录的不一致。 - 出错会怎样:最多是目录里这一行文字不对,任何功能都不受影响;撤回这一次改动即恢复原样。 - 要你做什么:合入或批准这一次改动(决策记录目录属于须经你手的范围)。 ## What changes `docs/adr/README.md`, the generated ADR index, is regenerated with `node scripts/adr-index.mjs`. One row moves: the status cell of ADR-0160. | | ADR-0160 status cell | |:---|:---| | before | `Accepted — merged 2026-11-24 (PR objectstack#37115); amended 2026-11-25 (s…` | | after | `Accepted — merged 2026-11-24 (PR objectstack#37115); amended 2026-11-25, 2…` | - Cause: the `**Status**:` line of ADR-0160 was rewritten twice without an index regeneration: by commit eec1040 (PR objectstack-ai#37573, `amended 2026-11-25 and 2026-11-26`) and then by commit 031a19d (PR objectstack-ai#37785, which added the fifth and sixth amendments, `amended 2026-11-25, 2026-11-26 and 2026-11-27`). Both touched the record only. The index projects that line clipped to the cell width, so the visible change is the clipped tail. - Diff: 1 file, +1 / −1 (line 230). No ADR body, no script, no other index row. - The file is generator output. Nothing in it is hand-edited or hand-trimmed. - No changeset: `docs/adr/**` ships in no released package, so this pull request carries `skip-changeset`, declared on the create. ## Tests No package is touched, so there is no build closure to make and no package test or typecheck to run. The generator's own self-test ran inside `pnpm check:adr-index`: 60 assertions, green. ## Acceptance notes - Card acceptance, "`adr:index` regenerated on main; its check passes with no other index change": `node scripts/adr-index.mjs --check` exits 1 (stale) on `main` and exits 0 on this branch at its head 4976072 (the area's re-run after objectstack-ai#37785 landed), and the net diff against `main` is the ADR-0160 row alone. "No other index change" is a measured reading here, not an assumption. - Idempotent: a second `node scripts/adr-index.mjs` on the regenerated tree prints `unchanged` and leaves the same blob (ef06360 at 4976072; 803949a was the first head's). - The row does not show the new date itself. The generator clips the status cell at a fixed width and the clip lands inside `, 2026-11-26 and 2026-11-27`. - `main` moved while this was in flight. The branch carries one merge commit, 0315963 (`main` at c826e8a, which brought in objectstack-ai#37785), and the index was regenerated on top of it in 4976072. `main` has since moved four more commits to 9b50fed (objectstack-ai#37798, objectstack-ai#37783, objectstack-ai#37821, objectstack-ai#37826); none of them touches `docs/adr/`, `ui/docs/adr/` or the generator, so the index stays current against today's `main`. - Governed surface: `docs/adr/**` is Tier H. This pull request is opened as a draft and is left as one; landing it is the maintainer's act. - Noted, not filed: the index went stale with nothing red because its check is report-only by ruling. The last index regeneration on `main`, commit 972114d, did not carry the new ADR-0160 status text, so that index was generated on a tree without eec1040 and the file then text-merged. That is the expected cost of a report-only check, not a defect. ## Verification Read first, one file: 1. `docs/adr/README.md`, line 230, the only hunk of the net diff. The risk to check is that the row is exactly what the generator prints for the current `**Status**:` line of ADR-0160, and that nothing else moved. Two-minute check: on this branch run `node scripts/adr-index.mjs --check`. Expected: the line `adr-index: OK — docs/adr/README.md is current and every record parsed.` and exit 0. On `main` the same command prints `docs/adr/README.md is stale` and exits 1. <details> <summary>Premise on main (objectstack cac93cc, first head)</summary> ```text $ node scripts/adr-index.mjs --check adr-index: ✗ docs/adr/README.md is stale — run `node scripts/adr-index.mjs` (pnpm adr:index) and commit the result. exit 1 ``` </details> <details> <summary>Regeneration and its check (objectstack b234dce, first head; re-run at 4976072 after the merge of main)</summary> ```text $ node scripts/adr-index.mjs adr-index: wrote docs/adr/README.md (251 lines). exit 0 $ git diff --numstat 1 1 docs/adr/README.md $ node scripts/adr-index.mjs --check adr-index: OK — docs/adr/README.md is current and every record parsed. exit 0 $ node scripts/adr-index.mjs adr-index: unchanged docs/adr/README.md (251 lines). exit 0 $ node scripts/pm/overlap-check.mjs overlap-check: claude/area-o1C-37733 (b234dce) changes 1 file(s); against origin/main (44ccf94) and 0 PR head(s) ✓ origin/main: merges cleanly VERDICT clean exit 0 ``` </details> <details> <summary>Local gates on objectstack b234dce (first head): the 21 commands that dispatch-gates derives for this diff. The head 4976072 is judged by its check-runs: 25 success, 19 skipped, 0 failed</summary> Each exit code was captured before any pipe. `node scripts/pm/dispatch-gates.mjs --ran` answers: `21 derived famil(ies) accounted for — 21 run, 0 NOT-MEASURED`, exit 0. ```text exit 0 node scripts/check-adr-links.mjs exit 0 node scripts/check-adr-links.mjs --self-test exit 0 node scripts/check-closing-keyword-parity.mjs exit 0 node scripts/check-closing-keyword-parity.mjs --self-test exit 0 node scripts/check-comment-mask-corpus.mjs exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions exit 0 pnpm check:adr-anchors exit 0 pnpm check:adr-index exit 0 pnpm check:adr-symbol-anchors exit 0 pnpm check:ci-filter-parity exit 0 pnpm check:closed-ceremony-text exit 0 pnpm check:cross-package-test-inputs exit 0 pnpm check:doc-authoring exit 0 pnpm check:driver-memory-census exit 0 pnpm check:gitlink-declared exit 0 pnpm check:nul-bytes exit 0 pnpm check:pm-governed-merges exit 0 pnpm check:pm-prior-rulings exit 0 pnpm check:refd-timer-probe exit 0 pnpm check:watch-hint-literal ``` `pnpm check:adr-index` printed: `adr-index --report: OK — docs/adr/README.md is current, every record parsed, self-test 60 assertions green.` The `check:doc-formula-expressions` line is its second run. The first exited 3, PREREQUISITE NOT MET, because `@objectstack/formula` and `@objectstack/lint` were not built in this worktree. Both were then built under the shared verify lock (`VERDICT command-exit 0`) and the gate was run again. Every other family is left to CI on this pull request. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP <!-- signed: repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Sales · project thread
Fixes #37712
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #37796
维护者速读
model.provider(openai / azure_openai / anthropic / local)从来没有运行时读取,按 ADR-0049「执行或移除」退役。供应商由部署的 AI 设置决定,agent 只写模型名。provider会报错,并提示删掉这一行;os migrate meta --from 18 --write会自动删。18.x 默认写进去的provider: 'openai'会被静默剥掉,已构建、已存储的 agent 照常加载。元数据预览不再显示供应商标签。运行时行为不变。What changes
packages/spec/src/ai/agent.zod.ts):AIModelConfigSchema.provideris aretiredKey()tombstone with the prescription, so writing it failstsc(input typenever) and the parse answers with the fix. The 18.x emitted defaultprovider: 'openai'is accepted as inert residue and stripped (acceptRetiredDefaultResidue, the feat(spec): retired-defaulted-key tolerance — the retired default parses as inert residue and strips; non-default values keep the loud refusal (#12497 class rule) #12840 rule for a retired defaulted key; same shape asViewSharingSchema). Every other value meets the tombstone.agent-model-provider-removed(conversions/entries/19/, step 19,retiredFromLoadPath: true,retiredAfter: '18.6.0', losslessstripKeys);RETIRED_KEYS_BY_MAJOR[19]entryai/AIModelConfig:provider; D3 semantic entryagent-model-provider-retired(relevanceagents); one sentence in the step-19 rationale; JOIN row inretired-key-removal-version.pin.test.ts.liveness/agent.jsonmodelrow note records the removal (a nested key has no row of its own). Evidence andverifiedAtunchanged: this session cannot read the cloud repository to re-verify it.authorable-surface/ai.json([RETIRED]row),content/docs/references/ai/agent.mdx.DEFAULT_CHANGES_BY_MAJOR[19](from feat(spec): an agent's model name becomes optional — absent means the environment's default model #37697): the reason no longer tells authors to writeprovider: 'openai'; it points at this retirement instead.modelhelp text no longer names a provider; the 11 locale bundles were regenerated (en) and hand-trimmed (the other ten drop the provider word only).AgentPreview.tsx): the preview shows the model name alone; a stale draft that still carries a provider never shows it.content/docs/ai/agents.mdx(table row + 4 examples),getting-started/common-patterns.mdx,packages/spec/docs/MCP_GUIDE.md,docs/notes/crm-development-standards.mdx,os explain agenttext and example,benchmark.bench.ts,metadata-validation-sweep.test.ts,agent.test.ts.src/ai/agent-model-provider-retirement.test.ts: refusal at every door (schema,defineStack), residue strip with a near-value control,tscchannel, D2 conversion on the stored-row seam and the boot door, idempotence, load-path retirement, registration, and a tree-scoped absence walk over the declared radius (added tovitest.repo-tests.json)..changeset/37712-agent-model-provider-retired.md,@objectstack/specminor, BREAKING banner, FROM → TO table, ADR-0087 marker.Why
ADR-0049 enforce-or-remove. Removal, not enforcement, because:
AI_PROVIDERSinpackages/services/service-settings/src/manifests/ai-models.ts(gateway,openai,anthropic,google,deepseek,dashscope,cloudflare,siliconflow,openrouter).azure_openaiandlocalare not providers a deployment has, and most real ones cannot be written. Enforcing it would mean redesigning the key, not adding a reader.model.model, which is live.Acceptance notes
Decided in the thread (small things): the residue stage is adopted. Every released 18.x toolchain wrote
provider: 'openai'into each parsedmodelblock, so refusing that value would refuse agents nobody wrote a provider for; the feat(spec): retired-defaulted-key tolerance — the retired default parses as inert residue and strips; non-default values keep the loud refusal (#12497 class rule) #12840 rule names this case. Cost: an explicitprovider: 'openai'in untyped JSON is stripped silently (tscstill refuses it in TypeScript).Overlap:
overlap-checkagainstorigin/mainis clean. Against feat(spec,service-knowledge)!: knowledge_source is a governed metadata type with its loader, its registry and two authoring guards #37676 there is one conflict inpackages/spec/src/conversions/registry.ts(both insert a line at the head of the sortedMAJOR_19_CONVERSIONSlist). It cannot be avoided by placement; whichever lands second keeps both lines sorted by identifier. The step-19 rationale sentence was placed so it does not conflict.Out of scope: the ledger says
model.topPhas no reader either.top_pis a mainstream setting, so the fix is a reader in cloud's AI runtime (carrier: cloud, raised with the seat).Skills (follow-up skills: stop teaching an agent's model.provider after its retirement (#37712) #37796):
skills/objectstack-ai/SKILL.md:370(providertable row) andskills/objectstack-ai/evals/skills-tools-knowledge.json:17(expected output names the enum). The tombstone keeps the identifier inpackages/, so neither gate goes red on this PR; the skills card follows the retirement.Absence walk radius: the tree-scoped absence walk covers the five roots
spec#testalready declares and excludesui/; theui/agent fixtures were cleaned by hand (commit 8655944). They are untyped objects, so tsc did not catch them either.Verification
automationPreviews.i18n-10862and three more (emptyCollection-8526,ResourceListPage.servedListColumns-36860,apps/console/src/preview-samples.ts) stop writingprovider(commit 8655944); those 5 files 121 passed, console preview-samples 47 passed.pnpm --filter @objectstack/spec buildthencheck:generated: 14/14 up to date.check:empty-state,check:skill-examples,check:skill-served-sections,check:yaml-examples,check:template-manifests,check:variant-docs,check:error-code-provenance,check:duration-unit-keys,check:exported-any,check:dual-source-exports,check:entry-nameability,check:browser-reachable-entries,check:scripts-typecheck,check:llms-txt: all exit 0.pnpm --filter @objectstack/spec typecheck(tsc + scripts + test-typecheck): 0.@objectstack/specfull vitest: 998 files, 30139 passed; the one failure on the first run (retired-key-removal-version.pinJOIN row) is fixed and that file re-run green.pnpm check:i18n: all bundles in sync.check:skill-identifier-liveness,check:doc-authoring,check:adr-0087-registration,check:empty-changeset,check:changeset-fixed,check:cross-package-test-inputs,check-changeset-no-major: 0.packages/clitest/commands.test.ts+test/explain-rule-id.test.ts: 64 passed.packages/objectqlmetadata-validation-sweep.test.ts: passed.uiAgentPreview*: 24 passed.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses (changed files).main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Session: session_01L6bhgTnm6d4W7ugSacDJ3j
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgTnm6d4W7ugSacDJ3j