Repository navigation
docs(skills): the AI skill stops teaching an agent's model.provider - #37841
Conversation
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 <noreply@anthropic.com>
…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 <noreply@anthropic.com>
|
repo:objectstack#2 · os-sales · session_01L6bhgUjtV7ahUH66wxpMk7 DELIBERATE CORRECTION · The one failing check is The corrected note is the pending release note of PR #37765. It ships in the same release as this change, and it said two things this PR makes false:
Nothing else in that note changed. The full before and after text is in the PR body under "DELIBERATE CORRECTION". The check stays red; the dispatching seat confirms the correction in its contract review on this head. Generated by Claude Code |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Read for this record: card #37796 and its six comments, the PR body, the four-file list and the net diff against Check-runs on this head: 27 success, 17 skipped, 1 failure. The failure is ① Derived judgments
② Semver level
Clause-②: The new note's sentences agree with the diff. One remark for the lane seat, ungraded because a changeset is outside ④: "An answer that quotes the retired spelling to warn against it still passes" is true of the quote the rounds produced ( DELIBERATE CORRECTION of
The note's last sentence, on the token budget, is unchanged. DELIBERATE CORRECTION: confirmed for ③ Boundary flags
④ Design judgment
N1 (nit) — "writing it is a parse error" is true of every value except one. N2 (nit) — the forbidden token is one spelling. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head fb8b3f2 · card #37796 · area s2-ai · 2026-11-27T07:12ZL1 checklist
Tier: H. Landing: hand-off to the maintainer follows this record. |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Tier H hand-off · 2026-11-27T07:14Z · head fb8b3f2 · approver 维护者速读
|
…y variables (objectstack-ai#38165) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu1VhSQmxMmBJAWNw5MuyuHN)_ Fixes objectstack-ai#37842 Clause-②: no Metadata-protocol: none ## 维护者速读 - 是什么:用户无感。技能评测和场景卡评测在项目容器里跑时,起的每个回合都不再读到本项目的记忆。 - 为什么:属于「评测可信」工作。之前两组(带技能、不带技能)都能读到项目记忆,不带技能的一组照着记忆答对,看起来和带技能一样好,技能的价值被藏住了。 - 出错会怎样:只影响内部评测怎么起提问进程;最坏是某个记忆变量没去干净,结果和以前一样,可直接撤回。 - 要你做的:无。 ## What changes - `packages/qa/scenarios/src/runner/driver.ts`: new `CLAUDE_MEMORY_ENV = ['CLAUDE_COWORK_MEMORY_PATH_OVERRIDE', 'CLAUDE_MEMORY_STORES']`, declared beside `API_BILLING_ENV` and `CLAUDE_EFFORT_ENV`, so the three lists of what a turn is spawned without live in one place. - `packages/qa/scenarios/src/runner/driver.ts`: `ClaudeCodeDriver.turnEnv`, the scenario runner's live driver, also deletes every name in `CLAUDE_MEMORY_ENV`, so its build (author) and ask turns are spawned without the host's memory variables too. Folded in at the seat's word after the first hand-off. - `packages/qa/scenarios/src/skill-evals/run.ts`: `turnEnv` deletes every name in `CLAUDE_MEMORY_ENV`, after the billing and effort variables. `executeRound` already spawns every turn with `turnEnv()`, so both arms of every case get the scrubbed environment. The file header says so. - `packages/qa/scenarios/README.md` (skill-evals section): a new **Isolated from project memory** bullet says a round run inside a project container is isolated from that project's memory, which variables are removed and why, and that the scenario runner's build and ask turns are isolated too. - `.changeset/37842-skill-evals-memory-isolated.md`: `patch` for `@objectstack/scenarios` (the README ships in its `files[]`). Measured before the change, in this container: both variables are set here (presence read only, values never printed). The card's evidence is the two rounds of PR objectstack-ai#37841: with the variables inherited, all three no-skill answers to case 2 quoted a project memory note; with them removed, case 2 scored 3/3 with the skill and 0/3 without. No eval round was run for this PR. ## Tests `packages/qa/scenarios/test/skill-evals/skill-evals.test.ts`: - new block "a turn's environment": a host env carrying `PATH`, `HOME`, both billing variables, the effort variable and both memory variables yields exactly `{ PATH, HOME }`; every name of the three lists is absent; the memory list names both variables; the caller's env object is left as it was. - the existing round test ("a round hands each turn its arm's directory…") now also stubs both memory variables in `process.env` and asserts that none of the four turns (two cases × two arms) receives either one. This pins the wiring through `executeRound`, not only the pure function. `packages/qa/scenarios/test/runner/units.test.ts` (the live driver against a stand-in `claude`): the stand-in's `ENV` turn now also answers which memory variables it was started with; a new test stubs both in `process.env`, runs one build turn and one ask turn through `makeDriver`, and asserts neither turn was started with either. Ablation, one line at a time: with `for (const k of CLAUDE_MEMORY_ENV) delete out[k];` removed from the skill-evals `turnEnv`, 3 tests fail (the two new ones and the round test) and 37 pass; restored, 40/40. With the same line removed from `ClaudeCodeDriver.turnEnv`, the new `units.test.ts` test fails and 95 pass; restored, 96/96. <details><summary>runs</summary> Head ac1dd47. - `pnpm --filter '@objectstack/scenarios^...' build` then `pnpm --filter @objectstack/scenarios build`: exit 0. - `pnpm --filter @objectstack/scenarios test`: 45 files, 1411 tests passed. - `pnpm --filter @objectstack/scenarios typecheck`: exit 0. - `pnpm --filter @objectstack/scenarios skill-evals --self-test`: 44 rows pass. - `node scripts/pm/dispatch-gates.mjs --commands`: 65 derived (the same 65 as on the first head); 64 exit 0; 1 exit 3 (PREREQUISITE NOT MET), so NOT MEASURED locally and left to CI: `node scripts/check-plugin-teardown-shape.mjs --self-test` (its positive control is pinned to a commit this shallow clone cannot reach). </details> ## Acceptance notes - Other memory-named variables the CLI reads (Claude Code 2.1.332's binary names `CLAUDE_CODE_REMOTE_MEMORY_DIR`, `CLAUDE_COWORK_MEMORY_INDEX_CONTENT`, `CLAUDE_COWORK_MEMORY_GUIDELINES`, `CLAUDE_COWORK_MEMORY_EXTRA_GUIDELINES`, `CLAUDE_CODE_MEMORY_API_BASE_URL`, `CLAUDE_CODE_MEMORY_API_TOKEN`): not set in this container, not measured, not handled by this PR. - The card's Expected section also asks that the round's record say the turn environment was scrubbed. The three Done-when items do not, and the dispatch scoped this PR to them, so `round.json` is unchanged; the README now states it for every round. ## Verification Read first: `packages/qa/scenarios/src/skill-evals/run.ts` (`turnEnv`), then `ClaudeCodeDriver.turnEnv` in `src/runner/driver.ts`, then the two new test spots. Two-minute check: `pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/skill-evals/skill-evals.test.ts test/runner/units.test.ts` prints 136 passed. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgXWFXqMUE85PmLT9AE)_ <!-- signed: repo:objectstack#2 · os-sales · session_01L6bhgXWFXqMUE85PmLT9AE --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Sales · project thread
Fixes #37796
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-ai/SKILL.md, Model Configuration. Theproviderrow leaves the agent model table. The paragraph above the table now says themodelblock 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 writtenprovideris a parse error whose fix is to delete the key (retired in protocol 19). Themodel,temperatureandmaxTokens/topProws are untouched.packages/spec/src/ai/agent.zod.ts:37-45to:87-95. PR feat(spec)!: retire an agent's model.provider — no runtime read it; the deployment's AI settings choose the provider #37783 added 50 lines above the key list, so the old range pointed into a comment block.:87is theprovidertombstone and:95istopP.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 undermodel, names the model in the free-stringmodelor leaves it to the host's default, and sends the choice of Anthropic to the deployment's AI settings.must_containgoes fromprovider,anthropic,temperature,maxTokenstotemperature,maxTokens,deployment.must_not_containgoes from empty to the written lineprovider: 'anthropic',..changeset/37796-skills-agent-model-provider-retired.md: one@objectstack/skillspatch..changeset/37711-skills-agent-model-optional.md: a DELIBERATE CORRECTION, declared below.Why
PR #37783 (merge
f07d63a5) retired an agent'smodel.provider. The published skill still listed the key with its enum, and eval case 2 graded an answer as correct only when it wroteprovider. 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 Changesetis red on purpose: this PR edits a pending release note it did not add,.changeset/37711-skills-agent-model-optional.md(from PR #37765). That note ships in the same release as this change, and two of its sentences would be false on release day.Title, before:
Title, after:
Body, before:
Body, after:
The note's last sentence (the token budget) is unchanged. The precedent is PR #37783 itself, which corrected
.changeset/37686-agent-model-name-optional.mdthe same way.Tests
Skill eval run (recorded)
pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-ai --repeats 3 --concurrency 4, on headfb8b3f20. 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 2, read answer by answer: all three with-skill answers put
temperatureandmaxTokensundermodel, write no provider key, and send Anthropic to the deployment's AI settings. All three no-skill answers writeprovider: 'anthropic',inside themodelblock, which is the refused spelling.Per-case table, round 2 (head fb8b3f2)
aiExposedsigned-in sessionrefuseddo not retryRound 1 (head 789e0c7) and why the forbidden token changed
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 ("writingprovider: 'anthropic'now fails to parse"). A bareprovider:graded that warning as a failure. The second commit narrows the token to the object-literal lineprovider: '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_OVERRIDEandCLAUDE_MEMORY_STORESunset, and no case 2 answer mentions memory.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
fb8b3f20node scripts/pm/dispatch-gates.mjs --commandsderived 49 families for this diff.--ranreconciliation: 49 derived, 48 run, 1 NOT-MEASURED, 0 unrun.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-filesand@objectstack/speccheck:skill-docs.node scripts/check-empty-changeset.mjs --base origin/mainexit 1: the DELIBERATE CORRECTION above. It names.changeset/37711-skills-agent-model-optional.mdand nothing else.pnpm check:dual-build-cjs-loadsexit 3, NOT MEASURED: it needs a fullpnpm build, and this container built only the scenario runner's closure. CI runs it.@objectstack/speccheck:skill-refsandcheck:skill-served-sections.Size readings (
skills/**)skills/objectstack-ai/SKILL.md, linesskills/objectstack-ai/SKILL.md, tokensskills/*/SKILL.md, linesevals/skills-tools-knowledge.json, tokens (measured, not ratcheted)The new sentences in
SKILL.mdare paid for by the deleted row. The bundle total grows by the eval fixture alone.Acceptance notes
claude/project-thread-2rm2nh, notclaude/issue-37796-….descriptionstill 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:457citespackages/spec/src/ai/agent.zod.ts:234, :251for theagent.tools/agent.knowledgetombstones. Those lines did not hold the tombstones before PR feat(spec)!: retire an agent's model.provider — no runtime read it; the deployment's AI settings choose the provider #37783 either, so this PR leaves the citation alone. Noted, not filed.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.Verification
Read first, by risk:
skills/objectstack-ai/SKILL.md, the hunk under## Model Configuration: three new sentences that ship to every customer install.skills/objectstack-ai/evals/skills-tools-knowledge.json, case 2: the token lists..changeset/37711-skills-agent-model-optional.md: the corrected note.Two-minute check:
sed -n '84,96p' packages/spec/src/ai/agent.zod.tsshowsprovider: retiredKey(...)at:87andtopPat:95, the range the skill now cites, andnode scripts/check-skills-token-ratchet.mjsprintsskills/objectstack-ai/SKILL.md is 6801 tokens (ceiling 6801; headroom 0).Human Minimum
packages/specholds no runtime logic. (No schema change.)pnpm lintis read from CI on this prose-only diff.main, one pull request.packages/specis not touched.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgUjtV7ahUH66wxpMk7