Skip to content

docs(skills): an agent's model name and provider are optional - #37765

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-8tfout
Nov 27, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-8tfout

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Jack · project thread

epic:#5055#1 · hotlong · session_01Q4EjjPtiBXJZAqMqBPe3UD

Fixes #37711

Clause-②: no
Metadata-protocol: none

What

The objectstack-ai skill still taught that an agent names its model and that provider defaults to openai. Since #37697 (merge 3e87d7b6) both are optional and provider has no default. This PR brings the published text and its eval in line.

  • skills/objectstack-ai/SKILL.md, Model Configuration:
    • model is an optional free-string name; absent means the host's default model for the environment.
    • provider is optional with no default (the deployment's choice, see spec: an agent's model.provider is declared but read by no runtime (enforce-or-remove) #37712). The inline enum list is unchanged and still accurate: openai | azure_openai | anthropic | local.
    • The schema citation moves from the stale agent.zod.ts:36-40 to :37-45, the AIModelConfigSchema key list on main.
  • skills/objectstack-ai/evals/skills-tools-knowledge.json, case 2: accepts an omitted model and states the provider has no default. Assertions unchanged.
  • One @objectstack/skills patch changeset.

No tier or sentinel wording (phase 2, not in the framework).

Premise (on origin/main cbc353ed)

packages/spec/src/ai/agent.zod.ts:

37  provider: z.enum(['openai', 'azure_openai', 'anthropic', 'local']).optional(),
38  model: z.string().optional().describe(
39    'Model name (e.g. gpt-4, claude-3-opus). Optional: when absent, the agent runs on the '
40    + 'host\'s default model for this environment, so an agent that only tunes sampling '
41    + '(e.g. `temperature`) need not name a model.',
42  ),
43  temperature: z.number().min(0).max(2).default(0.7),
44  maxTokens: z.number().optional(),
45  topP: z.number().optional(),

Token budget

skills/objectstack-ai/SKILL.md sat at zero headroom (ceiling 6801). The new words are paid for by tightening the same section (shorter intro sentence, shorter registry and maxTokens rows); no fact is removed. The file now measures 6801 / 6801.

Local gates

  • node scripts/check-skills-token-ratchet.mjs exit 0 (61 authored files within ceilings)
  • pnpm check:skill-identifier-liveness exit 0
  • pnpm check:skill-frame-sync exit 0
  • pnpm check:skill-compatibility exit 0
  • pnpm check:skill-top-level-keys exit 0 (14 self-test cases)
  • pnpm check:skill-links exit 0 (272 links, 22 self-test cases)
  • pnpm --filter @objectstack/spec check:skill-docs exit 0
  • pnpm --filter @objectstack/spec check:skill-refs exit 0 (10 generated files in sync)
  • pnpm --filter @objectstack/spec check:skill-served-sections exit 0 (33 self-test cases)
  • pnpm --filter @objectstack/spec check:skill-examples NOT MEASURED, exit 3: @objectstack/client-react dist not built in this container (spec was built). The diff touches no marked example block.
  • eval JSON parses.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q4EjjPtiBXJZAqMqBPe3UD

The objectstack-ai skill's Model Configuration taught a required model name
and a provider defaulting to openai. Since #37697 both are optional: an absent
model runs on the host's default model, and the provider has no default.
Fix the stale agent.zod.ts citation and the eval case that expected a model.

Fixes #37711

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4EjjPtiBXJZAqMqBPe3UD
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 27, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

epic:#5055#1 · hotlong · session_01Q4EjjMmczBEaeiAQ48oDtz

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 85145d7192ed123ca2d8e650febe582acaa96852
Local-runs: none
Scope: skills/objectstack-ai/SKILL.md, skills/objectstack-ai/evals/skills-tools-knowledge.json + none
Security-touching: no
Rule-change-verified: none

Read for this record: card #37711 (body and its four comments), PR #37765 (body, file list, net diff against main), the 44 check-runs on the head, and, to judge the two hits files, packages/spec/src/ai/agent.zod.ts, packages/spec/src/ai/agent.test.ts and packages/spec/src/ai/model-registry.zod.ts on main (8b9b9d23; agent.zod.ts is byte-identical between the PR's merge-base cbc353ed and main). The diff is three files: the two hits files and one changeset. No .claude/** path, no code, no schema. The changeset is outside this scope and is the lane seat's ACCEPT at TIER_DEFAULT.

① Derived judgments

  • Accept-set: unchanged, and that is right. No file under packages/** is in the diff; the optional model and the default-less provider have been on main since feat(spec): an agent's model name becomes optional — absent means the environment's default model #37697 (3e87d7b6). The PR only brings published prose in line with them.
  • Public surface: the published @objectstack/skills text changes in one section (Model Configuration, 5 added / 6 removed lines) and one eval case's expected_output. Right: both are the surface the card names, and nothing else in the skill moved.
  • Eval assertions: must_contain stays provider, anthropic, temperature, maxTokens and must_not_contain stays empty. Right: an answer that omits model passed these before and passes now; the change is to the graded prose only, which no longer demands a model name.
  • Gates: every check-run on the head concluded success or skipped, none failed (28 success, 16 skipped), including Lint & Repo Gates, Lint · docs & code guards, Lint · repo & tooling gates, Check Changeset, PR-body guards and Governed Surface Queue Guard. The skills token ratchet, skill links and skill-examples gates run in the lint workflow, so the head's lint verdicts cover them.
  • Security: no changed hunk teaches permission, sharing, credential, token or authentication behaviour. The hunks cover which model and provider an agent names and where sampling keys live; maxTokens here is an output-length number, not a credential. Security-touching: no holds.

② Semver level

.changeset/37711-skills-agent-model-optional.md bumps @objectstack/skills at patch. That matches what the diff publishes: prose and eval text in the skills package, no schema, no runtime, no new or removed capability. It also matches the standing precedent for skill-wording changes on main (for example 37611-skills-context-key.md). Check Changeset concluded success on the head.

Clause-②: no — correct. The PR body and the changeset both carry the bare line Clause-②: no, and the diff neither widens nor narrows any accept-set: the widening it describes shipped in #37697. Metadata-protocol: none is likewise right, since no metadata shape changes.

③ Boundary flags

The dev's os-dev report (comment 7207803937) carries no open_questions entry. Its flags, each answered:

  • deviations: "prose tightened to stay within the token ceiling (no fact removed)". Checked line by line in ④: holds. The only removed fact is default openai, which the card's scope-add comment (7205260650) orders removed.
  • deviations: "citation moved :36-40 to :37-45". Checked against main: holds exactly (see ④).
  • gates: check:skill-examples NOT-MEASURED locally (exit 3, an unbuilt dependency). Answered by CI: that gate runs in the lint workflow and the head's lint check-runs are green; the diff also touches no example block.
  • Report head f1ddd4f3 differs from the reviewed head 85145d71. Answered: the one later commit changes only the changeset (the Clause-② line reduced to the bare no, its explanation moved into the body paragraph). The two hits files are identical at both heads.
  • line_budget: SKILL.md at 6801 of 6801 tokens, zero headroom. Not a finding for this PR (the ratchet verdict is green), but the next edit to this file must again pay for its words.
  • File surface: the claim limited the dev to the Model Configuration section, the eval file, and the changeset. The diff stays inside it.
  • Not escalated, recorded for the seat: spec: an agent's model.provider is declared but read by no runtime (enforce-or-remove) #37712 (open) states that model.provider is read by no runtime. The skill's new wording, "the deployment's choice", is the wording the scope-add comment prescribes and points at that issue, so it is correct for this card; whether the skill and eval case 2 should go on teaching provider: 'anthropic' as the way to "use Anthropic" belongs to spec: an agent's model.provider is declared but read by no runtime (enforce-or-remove) #37712's outcome, not to this PR.
  • SQL push-down: not applicable. The diff holds no query, no id materialisation and no join; it is prose and JSON text only.

④ Design judgment

skills/objectstack-ai/SKILL.md — against AIModelConfigSchema on main:

  • Citation packages/spec/src/ai/agent.zod.ts:37-45: line 37 is provider, 38 to 42 is model with its describe text, 43 temperature, 44 maxTokens, 45 topP. Exactly the key list, first key to last. Holds.
  • "provider: Optional, no default": line 37 is z.enum([...]).optional() with no .default; agent.test.ts pins that a block naming no provider gets none added. Holds. The inline enum openai | azure_openai | anthropic | local matches line 37.
  • "Model-registry entries (ModelProviderSchema) add google, cohere, huggingface, custom": model-registry.zod.ts:17-26 lists the four inline values plus exactly those four. Holds.
  • "model: Optional free-string model name; absent = the host's default model for the environment": line 38 is z.string().optional() and its describe text reads "when absent, the agent runs on the host's default model for this environment". Holds, close to verbatim.
  • "temperature: min(0).max(2), default 0.7" and "maxTokens / topP: optional, schema-unbounded numbers": lines 43 to 45. Unchanged in substance, holds.
  • "never a top-level temperature / maxTokens": AgentSchema is a strictObject whose guidance entries answer a top-level temperature, provider and maxTokens by pointing under model (agent.zod.ts:329-333). Holds.
  • Facts dropped while tightening: none beyond the ordered removal of default openai. "Sampling parameters" became "Sampling", "accept a wider set: also" became "add", "Optional numbers, unbounded by the schema" became "Optional, schema-unbounded numbers": same content.

skills/objectstack-ai/evals/skills-tools-knowledge.json — case 2, against the prompt ("use Anthropic with a low temperature (0.3) and cap responses at 2000 tokens. Where do these settings go"):

  • The new expected_output asks for provider: 'anthropic', temperature: 0.3, maxTokens: 2000 under model, treats model as optional and an omitted one as correct, and states the inline enum has no default. Each statement holds against lines 37 to 45; agent.test.ts pins that { provider: 'anthropic' } with no model name parses.
  • expected_output does not contradict its assertions: every must_contain term appears in the expected answer, and nothing the expected answer now permits (an omitted model) is required by an assertion. An answer that does name a model is still acceptable under "optional".
  • The file remains valid JSON at the head (the lint gates that read it are green) and only case 2's one line changed.

Findings:

  • S1 (should-fix) — outside the changed hunk, same hits file: skills/objectstack-ai/SKILL.md:455 still cites packages/spec/src/ai/agent.zod.ts:234, :251 for the agent.tools / agent.knowledge tombstones. On main line 234 is a blank line and line 251 is const enabled = memory.longTerm?.enabled === true; inside checkAgentMemoryContract; neither is a tombstone, and they were not before feat(spec): an agent's model name becomes optional — absent means the environment's default model #37697 either (that merge moved them a further four lines). The card's acceptance reads "the cited lines match packages/spec/src/ai/agent.zod.ts on main", while its work item and the claim's file surface name only the Model Configuration citation, which this PR fixes correctly. So the PR meets its claimed scope and does not make this citation worse, but the file still carries a wrong line reference into the same spec file. Not blocking: file a follow-up card for it (the fix needs a decision on what to cite, since AgentSchema on main declares no tools or knowledge key at all, and the file has no token headroom).
  • N1 (nit) — the model row lost "the provider's own" (was "Free string — the provider's own model name"). "Free-string model name" still tells the author the value is not an enum; no effect on correctness.
  • N2 (nit) — the bold on "Model-registry" was dropped in the provider row. Emphasis only.

No must-fix.

Implemented-by: claude/project-thread-8tfout
Reviewed-by: session_01Q4EjjMmczBEaeiAQ48oDtz

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

epic:#5055#1 · hotlong · session_01Q4EjjMmczBEaeiAQ48oDtz

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 85145d7192ed123ca2d8e650febe582acaa96852
Local-runs: none
Scope: skills/objectstack-ai/SKILL.md, skills/objectstack-ai/evals/skills-tools-knowledge.json + none
Security-touching: no
Rule-change-verified: none

Delta over the record in comment 7208179464 on this same head. Nothing in the tree changed: PR #37765 still points at 85145d71, so every judgment of that record stands as written. The one new input is follow-up card #37782, read in full, together with the two test blocks it cites on main (packages/spec/src/ai/agent.test.ts:115-121 and :248-258).

① Derived judgments

Unchanged from 7208179464. No accept-set change, published skill prose and one eval expected_output only, every check-run on the head success or skipped, none failed.

② Semver level

Unchanged from 7208179464. @objectstack/skills at patch matches what the diff publishes.

Clause-②: no — correct, as before.

③ Boundary flags

Unchanged from 7208179464: no open_questions entry, every dev flag answered, SQL push-down not applicable. The one item left open there, S1, is answered below.

④ Design judgment

The design judgment of both hits files is unchanged: every statement the changed hunks make holds against AIModelConfigSchema on main, and the eval case's expected_output agrees with its assertions.

S1: closed — moved to card #37782. Reason:

Accepted deviations, carried from 7208179464 with no action owed:

  • N1 (nit) — the model row no longer says "the provider's own" model name.
  • N2 (nit) — the bold on "Model-registry" in the provider row was dropped.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-8tfout
Reviewed-by: session_01Q4EjjMmczBEaeiAQ48oDtz

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

epic:#5055#1 · hotlong · session_01Q4EjjMmczBEaeiAQ48oDtz

维护者速读

  • 是什么:AI 技能文档跟上框架:agent 的模型名和供应商都可以不写,不写模型就用部署的默认模型,供应商也不再默认是 openai。评测题同步放宽。
  • 影响:只改技能文档和一道评测题,不改代码。
  • 要你做什么:无。走低风险技能文档通道由席位落地(契约审核通过,无安全相关内容)。

Seat opinion: land.

席位核对

Seat L1 verdict: ACCEPT · head 85145d7192ed · 2026-11-27T02:32Z · Fixes #37711.

  1. Shape: draft PR to main, Fixes #37711, no other closing keyword. 3 files (+16/−7): skills/objectstack-ai/SKILL.md (Model Configuration only), skills/objectstack-ai/evals/skills-tools-knowledge.json (case 2's expected_output only), one changeset (@objectstack/skills patch, bare Clause-②: no, Metadata-protocol: none).
  2. Premise measured: AIModelConfigSchema on main (agent.zod.ts:37-45): provider optional with no default, model optional with the "host's default model" describe text; the new citation and every changed sentence match it.
  3. Gates: latest check-run per name on 85145d71: 28 success, 16 skipped, 0 failure. check-governed-merges --pr 37765: GOVERNED (skills/** ×2), low-risk skills arm → Tier S on the record below; 23 changed lines.
  4. Accepted deviations: section tightened to stay at the token ceiling (6801/6801), no fact lost beyond the ordered default openai removal; nits N1/N2 from the review.
  5. Out of scope / follow-ups: S1 (the stale agent.tools / agent.knowledge tombstone paragraph, pre-existing, outside the claimed surface) → skills(objectstack-ai): the "two AgentSchema keys are tombstones" paragraph is stale — agent.tools / agent.knowledge aged out at protocol 18 and its agent.zod.ts:234, :251 citation points at nothing #37782. provider enforce-or-remove stays spec: an agent's model.provider is declared but read by no runtime (enforce-or-remove) #37712. Open docs(skills): objectstack-ai eval case 12 matches its reference answer; citation and rule row corrected #37739 touches the same two files: overlap-check merges clean; whichever lands second re-checks the token ratchet.
  6. Landing: contract review at CONTRACT_REVIEW_TIER PASS on this head, Security-touching: no, no open must-fix/should-fix: comment 7208206475 (round 1: 7208179464, S1 closed by the delta). Ready + auto-merge via the queue.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 27, 2026 02:32
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 9862d63 Nov 27, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-8tfout branch November 27, 2026 02:53
os-elon-musk pushed a commit that referenced this pull request Nov 27, 2026
…ts measurement after #37765

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skills: teach that an agent's model name is optional (follow-up of #37697)

2 participants