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
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