Skip to content

docs(skills,spec): agent model.provider is refused, bar the 18.x openai residue; objectstack-ai eval cases 2, 6, 7 grade every correct spelling - #38156

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-qzyoei
Nov 28, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-qzyoei

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #37850

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用 AI 技能写智能体的开发者会读到更准确的一句话:智能体模型里的「服务商」字段已退役、会被拒绝,唯一例外是旧版工具自动写进去的 openai 默认值,会被接受并自动删掉;做法不变,仍是删掉它。运行时行为不变。
  • 为什么做:上一次去掉这个字段的改动在审核里留下的四个尾巴:说法不准一处、评测判分词太窄三处(另一处过期行号已被别的改动删掉)。
  • 出错会怎样:只影响技能文字和评测读数,产品行为不变;判分若放得太松会把没学会的答案判对,本次用两轮旧录音重判,不带技能的答案一个也没有因此变对。可以直接撤回。
  • 要你做什么:技能包是对外发布的受管文件,需要你批准合并。

What changes

  • skills/objectstack-ai/SKILL.md (Model Configuration): "provider is retired (protocol 19): writing it is a parse error" becomes "retired (protocol 19) and refused, except the 'openai' an 18.x toolchain wrote out, which parses and is stripped. Delete it." The instruction is unchanged. The file sits at zero token headroom, so the clause is paid for by deletions in the same section: ", never a provider" (the next clause says the deployment chooses it), the model row's "for the environment" and "model " in "free-string model name", and the temperature row's "min(0).max(2), " (the same cell says "Outside 0–2 is a parse error"). Ceiling unchanged.
  • packages/spec/src/ai/agent.zod.ts: the provider tombstone's jsdoc, which said the same words, names the one value that parses (MODEL_PROVIDER_RETIRED_KEY_RESIDUE) and that tsc refuses it all the same. Comment only.
  • skills/objectstack-ai/evals/skills-tools-knowledge.json:
    • case 2 (sampling settings): expected_output says "refused" instead of "a parse error"; must_not_contain goes from the one spelling provider: 'anthropic', to nine code spellings: single or double quotes, followed by a comma, a newline, } or }, and the JSON form "provider": "anthropic". The backtick-terminated inline warning (`provider: 'anthropic'`) still passes.
    • case 6 (nightly approval script): the must_contain_any group gains refuses.
    • case 7 (run_action with confirm: true): do not retry moves from must_contain into a must_contain_any group ["do not retry", "Do not retry", "don't retry", "Don't retry"].
  • .changeset/37850-agent-model-provider-refused-residue.md: @objectstack/skills patch, @objectstack/spec patch (jsdoc).

Why

The four boxes of #37850, each against main 581ae76:

  1. N1, the parse-error wording. True for every value but one: acceptRetiredDefaultResidue(…, { provider: 'openai' }) at agent.zod.ts:71/:96 strips the 18.x default (pinned by agent-model-provider-retirement.test.ts:91-95). Fixed in the skill and the jsdoc.
  2. N2, case 2's single forbidden spelling. Fixed as a set of spellings, not the bare key: a bare provider: fails correct answers that quote the retired spelling to warn (round-1 answers do exactly that).
  3. SKILL.md:457 citing agent.zod.ts:234, :251. Already gone on main: docs(skills): objectstack-ai teaches the unknown-key refusal for the two retired agent keys #37939 (62dd9e1) rewrote that passage and dropped the citation. Closed with that reason; nothing to change.
  4. Cases 6 and 7 missing their literal phrases. Judged against the recorded answers of both skills: stop teaching an agent's model.provider after its retirement (#37712) #37796 rounds (round records kept by the seat): the grading token was wrong in both, the teaching is right.
    • Case 7: all six with-skill answers say "Don't retry" / "Do not retry" / "don't retry" next to the right handling of pending_confirmation and no_confirmation_service; the grader is a case-sensitive literal match (grade.ts), and SKILL.md:212 teaches "do not retry".
    • Case 6: feat(qa): skill-evals grader takes an any-of form; objectstack-ai case 6 moves to it #37969 (dc45b1e) already moved it to an any-of group; one correct with-skill answer still failed it only because it wrote "refuses" ("ObjectStack refuses decisions made with API tokens").

Verification

Re-grade of the recorded rounds under the new assertions (literal grader, script in the thread scratchpad)

Round 2 (runner fb8b3f2, the clean round):

case with-skill before → after no-skill before → after
2 3/3 → 3/3 0/3 → 0/3
6 1/3 → 3/3 0/3 → 0/3
7 0/3 → 3/3 0/3 → 0/3

Round 1 (789e0c7) with-skill: case 6 0/3 → 3/3, case 7 0/3 → 3/3. Round 1's no-skill arm read project memory (#37842), so its case 2 flips (graded then under an older assertion) are not evidence either way.

pnpm --filter @objectstack/scenarios skill-evals --regrade on a copy of round 2 exits 0: the catalog loads; it sets cases 2/6/7 apart as changed since the round, as designed, so the table above is the literal-grader reading.

Local gates at c5dee31; at 72007e7 (S1, a line number only) and at 61188fd (main merged + the 5-byte cut) the token ratchet, check-nul-bytes, check:skill-links, check:skill-frame-sync, check:skill-identifier-liveness, check:skill-docs, check:skill-refs and check:empty-changeset re-run, exit 0

All exit 0: node scripts/check-skills-token-ratchet.mjs (skills/objectstack-ai/SKILL.md is 6893 tokens (ceiling 6893; headroom 0)), check-affected-docs, check-drift-comment, @objectstack/spec build + check:generated (All 14 generated artifacts are up to date), check:docs, check:skill-docs, check:skill-refs, check:liveness, check:llms-txt, check:doc-authoring, check:pm-skill-id-lint, check:skill-compatibility, check:skill-frame-sync, check:skill-frame-freshness, check:skill-identifier-liveness, check:skill-links, check:spec-docblock-symbol-anchors, check:spec-parsed-alias, check:skill-top-level-keys, check-nul-bytes, check:empty-changeset. The rest of the derived families are CI's.

Skills readings (lines), against main at the merge: skills/objectstack-ai/SKILL.md 488 → 489; bundle (all skills/*/SKILL.md) 4953 → 4954. Tokens: 6906 → 6906 of 6906 (before the merge: 6893 → 6893 of 6893).

No eval round run (Sales paused rounds). Two-minute check: node scripts/check-skills-token-ratchet.mjs | grep objectstack-ai/SKILL prints ✓ at 6893.

Acceptance notes

  • Read first: the SKILL.md hunk (the residue sentence and the three deletions paying for it), then case 2's spellings.
  • Case 2 still lets a code line with trailing spaces or a // comment after provider: 'anthropic' (no comma), or provider:'anthropic' with no space, slip past; closing those with literal substrings would start catching the inline prose warning. Left open.
  • Accepted nits from the contract review (not changed this round): case 2's two } spellings also fail a correct answer that warns inline with the braces (the retired key shown inside a backticked model: { … }), so "the inline warning still passes" holds for the bare-key form only, and a fenced counter-example still fails; case 7 still misses a typographic apostrophe, "never retry", or bold inside the phrase; case 6's any-of group is met by generic refusal wording and leans on its one forbidden call spelling (older than this PR).
  • SKILL.md:365's cite moves agent.zod.ts:87-95 → :89-97: the jsdoc hunk adds two lines above the model block's keys (review S1).

Serial

Open PR #38013 edits other hunks of the same two skill files (the knowledge-service sentence at SKILL.md:244, case 14); the text merges clean. It does not fit under the token ceiling, though: #38013 re-pins skills/objectstack-ai/SKILL.md to 6906 at its own measurement (27650 bytes), this PR adds 3 bytes (27596 → 27599), and the two merged are 27653 bytes, ceil((27653 - 27) / 4) = 6907, one over #38013's row. Whichever lands second goes red on the token ratchet and must cut 2 bytes or re-pin; merging main alone is not enough.

Resolved here: #38013 landed first, and this PR's first merge-queue run went red on exactly that row (6907 / 6906). main is merged in (c725268) and 61188fd deletes a repeated noun inside this PR's own Model Configuration hunk ("among the providers turned on" → "among the ones turned on", 5 bytes; "the ones" refers back to "the provider" five words earlier). The file is 6906 / 6906 and no ceiling moves. The cut is sized to land on the row: the ratchet is red below its ceiling too, so a larger cut would have had to lower the row in the same commit.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (jsdoc only)
  • 2. Every name I added uses the casing for its kind. (none added)
  • 3. No formatter ran; pnpm lint passes. (left to CI)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (check:generated: all up to date, nothing to commit)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgUDWstaVZQkWbWFNBK


Generated by Claude Code

…nai' residue; three objectstack-ai eval cases graded on every correct spelling

The objectstack-ai skill and the provider jsdoc on AIModelConfigSchema said
writing provider is a parse error; the 'openai' an 18.x toolchain wrote out
parses and is stripped. Both now say refused and name that exception.

Eval case 2 forbids the written line in nine code spellings instead of one;
case 6's any-of group accepts "refuses"; case 7's "do not retry" becomes an
any-of group of its four case spellings.

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

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json e3bdc748841f8ec72aedc3d795227273f25c6baa → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 732a70f41808a42172a9ec25f88c68c330796bf8 — the merge of head 61188fd276bf5b55b2e2aa7c403b8d6ee740b6bc into base e3bdc748841f8ec72aedc3d795227273f25c6baa, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 732a70f41808a42172a9ec25f88c68c330796bf8 && git checkout 732a70f41808a42172a9ec25f88c68c330796bf8
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin e3bdc748841f8ec72aedc3d795227273f25c6baa 61188fd276bf5b55b2e2aa7c403b8d6ee740b6bc && git checkout -B drift-repro e3bdc748841f8ec72aedc3d795227273f25c6baa && git merge --no-ff 61188fd276bf5b55b2e2aa7c403b8d6ee740b6bc

node scripts/docs-audit/affected-docs.mjs --json e3bdc748841f8ec72aedc3d795227273f25c6baa

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c5dee3126d16a8498dbdaa97faf881cbf2ac3c72
Local-runs: none
Scope: packages/spec/src/ai/agent.zod.ts, skills/objectstack-ai/SKILL.md, skills/objectstack-ai/evals/skills-tools-knowledge.json + none
Security-touching: yes

Inputs: card #37850 (body, 3 comments), PR #38156 (body, 4 files, net diff against main 581ae76), the check-runs on the head. Read outside the diff, not reviewed: packages/spec/src/shared/retired-key.ts, packages/spec/src/ai/agent-model-provider-retirement.test.ts, packages/qa/scenarios/src/skill-evals/grade.ts, scripts/check-skills-token-ratchet.mjs, and the head of open PR #38013 (5bc3ee1). No file in the diff implements the hits: the fourth file is the changeset. Check-runs read at 2026-11-28T04:44Z.

Security-touching: yes because the eval hunks for cases 6 and 7 change how answers about who may approve or confirm an action are graded. The SKILL.md and jsdoc hunks teach no such behaviour.

① Derived judgments

  • Accept-set: unchanged. Right. The agent.zod.ts hunk is three jsdoc lines on the provider tombstone; the shape, retiredKey(MODEL_PROVIDER_RETIRED) and the acceptRetiredDefaultResidue(…, MODEL_PROVIDER_RETIRED_KEY_RESIDUE) wrap are byte-identical.
  • Public surface: the published skill text and the .d.ts jsdoc. Right. No export, type or schema description (.describe()) changes; the jsdoc sits on a shape key, not in a describe string.
  • Eval catalog: three cases regraded, no prompt changed. Right as a description of the diff (judged in ④).
  • Gates. Concluded success on this head: Check Changeset, Spec property liveness, Governed Surface Queue Guard, Flag docs affected by code changes, PR-body guards, Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Dogfood Regression Gate, Check PR Size. Still in_progress at the reading above, so NOT yet a verdict: Build Core, the Type Check family (workspace, source gates, consumer gates, debt ledger), the Lint family (ESLint, repo and tooling gates, docs and code guards, CI/release/engine gates, the two scoped lints), Test Core 1-10/10, Build UI Deps, Live E2E UI. The dev's local exits are not a substitute. S1 below moves the head, so the delta record reads those families on the new head.

② Semver level

@objectstack/skills patch and @objectstack/spec patch: right. The skills catalog ships skills/**, and the spec change is a comment that reaches consumers only through the declaration files. Clause-②: no and Metadata-protocol: none match the diff on the PR body and in the changeset: nothing an author can write is accepted or refused differently. Check Changeset is green.

③ Boundary flags

④ Design judgment

packages/spec/src/ai/agent.zod.ts (jsdoc). Holds against the code. acceptRetiredDefaultResidue strips a key only when its value is strictly equal to the captured literal, ahead of the closed shape; every other value reaches the untouched tombstone. The retirement test pins all three legs: 'openai' parses and the output carries no provider; 'OpenAI', 'openai ', 'anthropic' and the rest are refused with the prescription; z.input stays never, so tsc refuses the key whatever its value. "One value parses … tsc refuses it all the same" is exact.

skills/objectstack-ai/SKILL.md (Model Configuration). The new sentence — retired and refused, except the 'openai' an 18.x toolchain wrote out, which parses and is stripped; delete it — agrees with the same code, and the instruction is unchanged. The four deletions that pay for it lose nothing a reader needs: "never a provider" is restated by the clause that follows and by the next sentence; "Outside 0–2 is a parse error" carries the bound that min(0).max(2) spelled; "free-string name" in the model row is unambiguous; "for the environment" narrowed a default the reader cannot set from metadata anyway.

S1 (should-fix) — the PR makes the section's own line cite stale. SKILL.md:365 cites packages/spec/src/ai/agent.zod.ts:87-95 for the model block's keys. On main that range is exactly provider (87) through topP (95). The jsdoc hunk adds two lines above them, so on this head the keys are :89-97, and :87-95 now opens on two comment lines and stops at temperature, dropping maxTokens — one of the two keys the sentence is about. This is the defect class box 3 of this card exists for, re-introduced by the PR in the same file. Fix: 87-95 becomes 89-97 (byte-neutral, the ceiling holds), or keep the jsdoc at its old line count.

skills/objectstack-ai/evals/skills-tools-knowledge.json. Judged against each prompt, the skill text and the literal, case-sensitive grader.

  • Case 2: expected_output now says "refused", matching the skill. The nine forbidden spellings only narrow what passes; no wrong answer gains a pass.
  • Case 6: refuses is an inflection of a token already in the group; the wrong answer is still caught by pendingActions.approve(. No new wrong pass that refused did not already allow.
  • Case 7: the any-of group is the four case and contraction spellings of the phrase SKILL.md:212 teaches; the three hard tokens and both forbidden tokens are unchanged. No wrong answer gains a pass.
  • Verdict on box 4 (grading token wrong, teaching right): agreed for both cases on the skill text. The recorded-round re-grade the PR reports was not re-run here and is not relied on.

Nits, no effect on the contract:

  • N1 (nit) — case 2's two } spellings fail a correct answer that warns inline with the braces (the retired key shown inside a backticked model: { … }), which the old single token passed. The PR body's "the inline warning still passes" is true of the bare-key form only. The card's own note (a counter-example line fails the case) stays open for fenced examples.
  • N2 (nit) — case 7 still misses a correct answer that uses a typographic apostrophe, "never retry", or bold inside the phrase.
  • N3 (nit) — case 6's any-of group is met by generic refusal wording, so the case leans on its one forbidden call spelling. Older than this PR.

Open on this head: S1. No must-fix.

Implemented-by: claude/project-thread-qzyoei
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA

VERDICT: PASS

…9-97, where the model keys sit after the jsdoc grew

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgUDWstaVZQkWbWFNBK
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 72007e7b7e6a223f408e4528f589716cc9032294
Local-runs: none
Scope: packages/spec/src/ai/agent.zod.ts, skills/objectstack-ai/SKILL.md, skills/objectstack-ai/evals/skills-tools-knowledge.json + none
Security-touching: yes

Delta record on record 7234230385 (head c5dee31). Judged: the one commit c5dee31..72007e7 and whether S1 holds closed. Everything else stands as that record judged it. Check-runs read at 2026-11-28T04:47Z.

Security-touching: yes is carried from the first record (the eval hunks for cases 6 and 7); the delta commit itself teaches no such behaviour.

① Derived judgments

  • The delta is one line of one file. Right. skills/objectstack-ai/SKILL.md:365: the cite agent.zod.ts:87-95 becomes agent.zod.ts:89-97. No other path moved; agent.zod.ts, the eval catalog and the changeset are byte-identical to c5dee31. Accept-set and public surface: as the first record.
  • Gates on this head: none red, most not yet a verdict. Concluded success: Governed Surface Queue Guard, Check PR Size. One PR-body guards run is cancelled, superseded by a second run of the same check that is in_progress. Still in_progress at the reading above: Check Changeset, Spec property liveness, Flag docs affected by code changes, PR-body guards, filter (so Build Core, Test Core and the UI jobs have not been created yet), the Type Check family (workspace, source gates, consumer gates, debt ledger), and the Lint family (ESLint, repo and tooling gates, docs and code guards, CI/release/engine gates, PM dispatch-gates, tooling self-tests, the two scoped lints). The PASS below is on the diff; a red conclusion on any of these overrides it, and the adopting seat reads them before it acts.

② Semver level

Unchanged: the changeset is byte-identical, and a corrected line cite publishes nothing the two patch bumps do not already cover. Clause-②: no holds.

③ Boundary flags

④ Design judgment

S1: closed. On this head agent.zod.ts:89 is provider: retiredKey(MODEL_PROVIDER_RETIRED) and :97 is topP, so :89-97 is exactly the model block's keys, maxTokens included. The edit is digit-for-digit, the file's byte count is unchanged, and the token row holds at 6893.

N1, N2, N3 (nits of the first record): left as accepted deviations, no edit. That is within the rule for a nit; none affects the contract.

The delta introduces nothing new. No must-fix, no should-fix.

Implemented-by: claude/project-thread-qzyoei
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head 72007e7 · card #37850 · area s2-ai · 2026-11-28T05:18Z

L1 checklist

  • Shape and checks. The head has 59 success, 13 skipped, 1 cancelled and no failures. The cancelled run is the first PR-body guards run, superseded by its rerun after the body edit, which succeeded. mergeable_state is clean; the PR is a draft. It changes 4 files: skills/objectstack-ai/SKILL.md, its eval catalog, the agent.zod.ts jsdoc and a changeset. SKILL.md stays at 6893/6893 tokens.
  • Contract review at CONTRACT_REVIEW_TIER. First record 7234230385 (head c5dee31): PASS with S1 (should-fix), a line cite the jsdoc hunk made stale. Delta record 7234263172 at this head: S1: closed, No must-fix, no should-fix. Nits N1–N3 (case 2's } spellings, case 7's typographic apostrophe and "never retry", case 6's generic wording) are listed in the PR body as accepted deviations. Both transcripts pass verify-review-tier. The seat adopts the records.
  • What changes for an agent. The skill and the schema jsdoc now say an agent's model.provider is retired and refused, with one exception: the 18.x residue provider: 'openai' is parsed and stripped. Case 2 forbids nine spellings of the key instead of one. Cases 6 and 7 grade the phrases the skill teaches. The SKILL.md:457 box closes without an edit, because docs(skills): objectstack-ai teaches the unknown-key refusal for the two retired agent keys #37939 already removed that cite.
  • Security label. The record reads Security-touching: yes: the case 6 and 7 hunks change how answers about who may approve or confirm an action are graded. The teaching itself is unchanged. The security label was added at 2026-11-28T04:45Z. Nothing private.
  • Serial. Open PR feat(metadata-core)!: a knowledge source is saved only on a deployment that mounts the knowledge service #38013 also edits objectstack-ai/SKILL.md. The hunks are disjoint, but the merged file prices one token over feat(metadata-core)!: a knowledge source is saved only on a deployment that mounts the knowledge service #38013's ratchet row. The PR body's ## Serial section says whichever lands second cuts 2 bytes or re-pins.
  • Declarations. Clause-②: no, Metadata-protocol: none, Rule-change: none, @objectstack/skills and @objectstack/spec patch. Fixes #37850 is right: each box is fixed or closed with a reason.
  • Governance. skills/** is Tier H. It lands on the maintainer's approval.

Tier: H. Landing: hand-off to the maintainer follows this record.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Tier H hand-off · 2026-11-28T05:19Z · head 72007e7 · approver os-zhuang

维护者速读

  • 改了什么: 这是 PR docs(skills): the AI skill stops teaching an agent's model.provider #37841 的审核后续,都在 AI 技能(objectstack-ai)里:
    • 关于 agent 的 model.provider,技能和 schema 注释原来都写「写了就是解析错误」,现在改成「已退役、会被拒绝」,并点明唯一例外:18.x 留下的 'openai' 会被接受后剥掉。
    • 评测题 2 的禁用写法从一种扩成九种,模型换个引号或换个位置写就不会被漏判。
    • 评测题 6、7 是判分词写得太死,把正确答案判错了,这次放宽成几种等价写法。
    • 另有一处过期的行号引用,已由别的 PR 删掉,这次没改。
  • 影响: 只改技能文字、评测判分和注释,不改产品行为。用技能写 agent 的 Agent 不会再被误导去写 provider。评测分数更准,带技能组的这两题会从误判 0 分变成正确得分。技能文件没超出字数上限。
  • 请你留意: 开着的 PR feat(metadata-core)!: a knowledge source is saved only on a deployment that mounts the knowledge service #38013 也改这个技能文件。两边改的段落不重叠,但合起来会比字数上限多 1,后合并的那个需要再删 2 个字节或者重新定上限。另外,题 6、7 涉及「谁能批准或确认操作」的判分,按规则加了 security 标签,没有需要私下处理的内容。
  • 审核: 契约审核(最高档)首轮 PASS,带一条建议改(行号引用过期),已修正;delta 审核 PASS(7234263172),没有遗留项。席位 L1 ACCEPT 在本评论前一条。
  • 要你做什么: 需要你批准后才能合并。撤回这一次合并即恢复原样。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 28, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 28, 2026 05:29
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 28, 2026
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
…n so the file fits its 6906-token row after main's knowledge-source edit

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgUDWstaVZQkWbWFNBK
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Relay pr_dequeue · session_01L6bhgV6i8jfWwSXjpWJrjA · request fw-20261128T065207Z-0480bf

Merge-queue dequeue of #38156 — cause own-failure.

The relay sends dequeuePullRequest after this comment and confirms the removal by reading the queue back; the run row of this request carries the outcome. Re-queue once the cause is fixed (landing-operations.md, the landing seat's queue duty).

@objectstack-fleet
objectstack-fleet Bot removed this pull request from the merge queue due to a manual request Nov 28, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 61188fd276bf5b55b2e2aa7c403b8d6ee740b6bc
Local-runs: none
Scope: packages/spec/src/ai/agent.zod.ts, skills/objectstack-ai/SKILL.md, skills/objectstack-ai/evals/skills-tools-knowledge.json + none
Security-touching: yes

Delta record on records 7234230385 (head c5dee31) and 7234263172 (head 72007e7). Judged: the two commits 72007e7..61188fd — the merge of main (c725268) and the byte cut (61188fd). Everything else stands as those records judged it.

Security-touching: yes is carried from the first record (the eval hunks for cases 6 and 7); neither delta commit teaches such behaviour.

① Derived judgments

  • The merge brought in main and nothing else. Right. c725268 has parents 72007e7 and main at 4f7aa88. Its tree differs from that main parent in exactly the PR's four files (the changeset, agent.zod.ts, SKILL.md, the eval catalog), with the PR's own hunks; no other path differs. agent.zod.ts and the changeset are byte-identical to 72007e7; the eval catalog differs from 72007e7 by one line, case 14, which is feat(metadata-core)!: a knowledge source is saved only on a deployment that mounts the knowledge service #38013's edit arriving from main.
  • The cut is one line of one file. Right. skills/objectstack-ai/SKILL.md:368: "among the providers turned on" becomes "among the ones turned on". 27653 bytes to 27648; ceil((27648 - 27) / 4) = 6906 against the 6906 row feat(metadata-core)!: a knowledge source is saved only on a deployment that mounts the knowledge service #38013 landed.
  • The S1 cite still holds after the merge. On this head agent.zod.ts:89 is the provider tombstone and :97 is topP.
  • Accept-set and public surface: as the first record. No schema, type or export moved.
  • Gates on this head: all concluded, none red. success: Build Core, Test Core (the ten shards and the roll-up), Test UI (the sixteen shards and the roll-up), Build and E2E UI, Live E2E UI, Type Check UI, the Type Check family (workspace, source gates, consumer gates, debt ledger) and its roll-up, the Lint family (ESLint, repo and tooling gates, docs and code guards, CI/release/engine gates, PM dispatch-gates, tooling self-tests, the two scoped lints) and its roll-up, Check Changeset, Spec property liveness, Governed Surface Queue Guard, Flag docs affected by code changes, PR-body guards, Dogfood Regression Gate, Check PR Size. One earlier PR-body guards run is cancelled, superseded by the run of the same check that concluded success. None pending.

② Semver level

Unchanged: the changeset is byte-identical, and neither a merge of main nor a two-word swap in the skill publishes anything the two patch bumps do not cover. Clause-②: no holds.

③ Boundary flags

④ Design judgment

skills/objectstack-ai/SKILL.md, the cut. The sentence now reads: the deployment's AI settings choose the provider and resolve the model name among the ones turned on. Nothing a reader needs is removed: "provider" is named eight words earlier in the same sentence, the retirement prescription in agent.zod.ts says the same thing ("resolves that name among the providers it has turned on"), and case 2's expected_output still spells "among the providers turned on", which the skill sentence does not contradict.

  • N4 (nit) — "the ones" can also be read as the model names turned on, since "the model name" is the nearer noun. Both readings give the same instruction (name a model; the deployment resolves it among what it has enabled), so nothing an author writes changes. Left as an accepted deviation or a later wording pass; a fix must stay inside the 3-byte slack of the 6906 row.

S1: closed, as in record 7234263172, and still closed after the merge. N1, N2, N3: unchanged, accepted deviations.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-qzyoei
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA (isolated contract-review sub-agent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT (delta) · head 61188fd · card #37850 · area s2-ai · 2026-11-28T07:27Z

L1 delta over ACCEPT 7234602506's head 72007e7

  • Why the head moved. feat(metadata-core)!: a knowledge source is saved only on a deployment that mounts the knowledge service #38013 landed first and moved the skills/objectstack-ai/SKILL.md token row to 6906, so this PR read 6907/6906 in the queue and was dequeued (own-failure). Two commits followed: c725268 merges main (at 4f7aa88), and 61188fd cuts 5 bytes ("among the providers turned on" → "among the ones turned on"; "provider" is named eight words earlier in the same sentence).
  • Checks. Every check on 61188fd is green apart from expected skips; one superseded PR-body guards run is cancelled and its rerun is green. The token ratchet reads 6906/6906.
  • Contract review. Delta 7235941384 at this head is a PASS with No must-fix, no should-fix. The merge brought in main and nothing else; the cut removes nothing a reader needs. N4 (the "ones" antecedent) is an accepted deviation: both readings give the same instruction. The transcript passes verify-review-tier; the seat adopts the record.
  • Declarations. Unchanged: Clause-②: no, Metadata-protocol: none, @objectstack/skills + @objectstack/spec patch, Fixes #37850.
  • Governance. Tier H. The maintainer approved this head (06:59Z); with a same-head contract PASS, the landing terms hold.

Tier: H. Landing: auto-merge armed in this stroke on the maintainer's approval of this head.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 46121921404 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (4/10) — 失败步骤: Run this shard's tests

    @objectstack/driver-sql:test:  FAIL  src/sql-driver-11389-date-tz-skew.test.ts > #11389 — the process-zone axis is non-vacuous > sweeps a zone EAST of UTC, a zone WEST of UTC, and UTC itself
      ↳ 失败原因: @objectstack/driver-sql:test: Error: Test timed out in 5000ms.
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • src/sql-driver-11389-date-tz-skew.test.ts — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 18 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — re-queue · head 61188fd · card #37850 · area s2-ai · 2026-11-28T08:06Z

Merge-group run 46121921404 failed on one test only: @objectstack/driver-sql, src/sql-driver-11389-date-tz-skew.test.ts ("sweeps a zone EAST of UTC, a zone WEST of UTC, and UTC itself"), Test timed out in 5000ms. The re-queue facts hold:

  • nothing this diff changes can reach the test: the diff is skill text, an eval JSON, a changeset, and four lines of a docblock in packages/spec/src/ai/agent.zod.ts, with no executable line;
  • the same test is green on the queue base (main push CI at a9901ed, success);
  • the first error is a timeout, not an assertion.

Triage (7236358065) reads one hit of this signature in 24 h, so no flake card yet. The head is unchanged since ACCEPT 7235959667 and the maintainer's approval of this head; auto-merge is re-armed in this stroke.

Merged via the queue into main with commit 3ffa92d Nov 28, 2026
72 of 73 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-qzyoei branch November 28, 2026 08:40
@objectstack-fleet objectstack-fleet Bot mentioned this pull request Nov 28, 2026
4 tasks
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 28, 2026
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 protocol:ai security 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.

review follow-ups of PR #37841

3 participants