From 789e0c74ac596de12daa37b2590032de91949f0a Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 06:07:29 +0000 Subject: [PATCH 1/2] docs(skills): the AI skill stops teaching an agent's model.provider The agent model table drops the provider row. The section says the model block names a model and never a provider: the deployment's AI settings choose the provider, and a written provider is a parse error. The schema citation follows the key list to agent.zod.ts:87-95. Eval case 2 expects no provider key. The pending skills changeset for the optional model name no longer claims the provider key stays. Claude-Session: https://claude.ai/code/session_01L6bhgUjtV7ahUH66wxpMk7 Co-authored-by: Claude --- .changeset/37711-skills-agent-model-optional.md | 4 ++-- .../37796-skills-agent-model-provider-retired.md | 14 ++++++++++++++ skills/objectstack-ai/SKILL.md | 6 ++++-- .../evals/skills-tools-knowledge.json | 6 +++--- 4 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 .changeset/37796-skills-agent-model-provider-retired.md diff --git a/.changeset/37711-skills-agent-model-optional.md b/.changeset/37711-skills-agent-model-optional.md index 3aed65d6722..7a2a67f3449 100644 --- a/.changeset/37711-skills-agent-model-optional.md +++ b/.changeset/37711-skills-agent-model-optional.md @@ -2,9 +2,9 @@ '@objectstack/skills': patch --- -docs(skills): an agent's model name and provider are optional +docs(skills): an agent's model name is optional Clause-②: no Metadata-protocol: none -`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 #37697. The file sat at zero token headroom, so the words are paid for by tightening the same section; no fact is removed. +`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 #37697. The file sat at zero token headroom, so the words are paid for by tightening the same section; no fact is removed. diff --git a/.changeset/37796-skills-agent-model-provider-retired.md b/.changeset/37796-skills-agent-model-provider-retired.md new file mode 100644 index 00000000000..4a706f437ec --- /dev/null +++ b/.changeset/37796-skills-agent-model-provider-retired.md @@ -0,0 +1,14 @@ +--- +'@objectstack/skills': patch +--- + +docs(skills): the AI skill stops teaching an agent's `model.provider` + +Clause-②: no +Metadata-protocol: none + +`skills/objectstack-ai/SKILL.md` (Model Configuration) drops the `provider` row from the agent model table. The section now says the `model` block names a model and never a provider: the deployment's AI settings choose the provider and resolve 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, conversion `agent-model-provider-removed`). The schema citation moves to `packages/spec/src/ai/agent.zod.ts:87-95`, the key list after the retirement. + +The `objectstack-ai` eval case on sampling settings keeps its prompt (a copilot that should use Anthropic at temperature 0.3 with a 2000-token cap) and now expects the answer to write no provider key: sampling goes under `model`, the model is named in the free-string `model` or left to the host's default, and turning a provider on is the deployment's AI settings. Its assertions no longer require `provider` and `anthropic`; they require `deployment` and refuse `provider:`. + +Published prose only: it teaches the retirement already on main. The file sat at zero token headroom, so the new sentences are paid for by the deleted row and no ceiling moves. diff --git a/skills/objectstack-ai/SKILL.md b/skills/objectstack-ai/SKILL.md index 7a89e6400d0..be9e2d8e874 100644 --- a/skills/objectstack-ai/SKILL.md +++ b/skills/objectstack-ai/SKILL.md @@ -362,11 +362,13 @@ live, but listing-only: carried onto the tool, never sent to the model). ## Model Configuration Sampling lives under an agent's `model` (`AIModelConfigSchema`), **never a -top-level `temperature` / `maxTokens`** (`packages/spec/src/ai/agent.zod.ts:37-45`): +top-level `temperature` / `maxTokens`** (`packages/spec/src/ai/agent.zod.ts:87-95`). +The block names a model, never a provider: the deployment's AI settings choose +the provider and resolve the model name among the providers turned on. +`provider` is retired (protocol 19): writing it is a parse error. Delete it. | Key | Contract | |:--|:--| -| `provider` | Optional, no default (the deployment's choice): inline enum `openai` \| `azure_openai` \| `anthropic` \| `local`. Model-registry entries (`ModelProviderSchema`) add `google`, `cohere`, `huggingface`, `custom` | | `model` | Optional free-string model name; absent = the host's default model for the environment | | `temperature` | `min(0).max(2)`, default `0.7`. **Outside 0–2 is a parse error** | | `maxTokens` / `topP` | Optional, schema-unbounded numbers | diff --git a/skills/objectstack-ai/evals/skills-tools-knowledge.json b/skills/objectstack-ai/evals/skills-tools-knowledge.json index 9282e6562da..78298c7fe96 100644 --- a/skills/objectstack-ai/evals/skills-tools-knowledge.json +++ b/skills/objectstack-ai/evals/skills-tools-knowledge.json @@ -14,11 +14,11 @@ { "id": 2, "prompt": "Our copilot should use Anthropic with a low temperature (0.3) and cap responses at 2000 tokens. Where do these settings go in the metadata?", - "expected_output": "Places sampling under the agent's `model` block (`AIModelConfigSchema`): `provider: 'anthropic'`, `temperature: 0.3` (0–2, outside is a parse error) and `maxTokens: 2000`; a free-string `model` is optional (absent runs on the host's default model), so omitting it is correct. States that there is no top-level `temperature` / `maxTokens` on an agent and that the inline `provider` enum is `openai | azure_openai | anthropic | local`, with no default.", + "expected_output": "Places sampling under the agent's `model` block (`AIModelConfigSchema`): `temperature: 0.3` (0–2, outside is a parse error) and `maxTokens: 2000`, and states that there is no top-level `temperature` / `maxTokens` on an agent. Writes no provider key: `provider` is retired in protocol 19 and a parse error, because the deployment's AI settings choose the provider, not the agent. To run on an Anthropic model, names that model in the free-string `model` (the deployment resolves the name among the providers turned on) or omits it to run on the host's default model; turning Anthropic on is done in the deployment's AI settings, not in metadata.", "files": [], "assertions": { - "must_contain": ["provider", "anthropic", "temperature", "maxTokens"], - "must_not_contain": [] + "must_contain": ["temperature", "maxTokens", "deployment"], + "must_not_contain": ["provider:"] } }, { From fb8b3f20419216ec4c83505668209406797f1bf8 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 06:21:59 +0000 Subject: [PATCH 2/2] docs(skills): eval case 2 refuses the written provider line, not the word A first eval round graded two of three correct with-skill answers as failures: each named the retired spelling to warn against it. The case now refuses the object-literal line and keeps the deployment token. Claude-Session: https://claude.ai/code/session_01L6bhgUjtV7ahUH66wxpMk7 Co-authored-by: Claude --- .changeset/37796-skills-agent-model-provider-retired.md | 2 +- skills/objectstack-ai/evals/skills-tools-knowledge.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.changeset/37796-skills-agent-model-provider-retired.md b/.changeset/37796-skills-agent-model-provider-retired.md index 4a706f437ec..1c78526b236 100644 --- a/.changeset/37796-skills-agent-model-provider-retired.md +++ b/.changeset/37796-skills-agent-model-provider-retired.md @@ -9,6 +9,6 @@ Metadata-protocol: none `skills/objectstack-ai/SKILL.md` (Model Configuration) drops the `provider` row from the agent model table. The section now says the `model` block names a model and never a provider: the deployment's AI settings choose the provider and resolve 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, conversion `agent-model-provider-removed`). The schema citation moves to `packages/spec/src/ai/agent.zod.ts:87-95`, the key list after the retirement. -The `objectstack-ai` eval case on sampling settings keeps its prompt (a copilot that should use Anthropic at temperature 0.3 with a 2000-token cap) and now expects the answer to write no provider key: sampling goes under `model`, the model is named in the free-string `model` or left to the host's default, and turning a provider on is the deployment's AI settings. Its assertions no longer require `provider` and `anthropic`; they require `deployment` and refuse `provider:`. +The `objectstack-ai` eval case on sampling settings keeps its prompt (a copilot that should use Anthropic at temperature 0.3 with a 2000-token cap) and now expects the answer to write no provider key: sampling goes under `model`, the model is named in the free-string `model` or left to the host's default, and turning a provider on is the deployment's AI settings. Its assertions no longer require `provider` and `anthropic`; they require `deployment` and refuse the written line `provider: 'anthropic',`. An answer that quotes the retired spelling to warn against it still passes. Published prose only: it teaches the retirement already on main. The file sat at zero token headroom, so the new sentences are paid for by the deleted row and no ceiling moves. diff --git a/skills/objectstack-ai/evals/skills-tools-knowledge.json b/skills/objectstack-ai/evals/skills-tools-knowledge.json index 78298c7fe96..4e5fc58b3a5 100644 --- a/skills/objectstack-ai/evals/skills-tools-knowledge.json +++ b/skills/objectstack-ai/evals/skills-tools-knowledge.json @@ -18,7 +18,7 @@ "files": [], "assertions": { "must_contain": ["temperature", "maxTokens", "deployment"], - "must_not_contain": ["provider:"] + "must_not_contain": ["provider: 'anthropic',"] } }, {