Skip to content

docs(skills,spec): what a package skill does in the in-app ask assistant; trigger context is client-sent - #37313

Merged
os-zhuang merged 4 commits into
mainfrom
claude/issue-37002-ask-skills-text
Nov 25, 2026
Merged

os-zhuang merged 4 commits into
mainfrom
claude/issue-37002-ask-skills-text

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Fixes #37002

Delivers the card's items 1, 2 and 3. Item 4, the lint warning, is not built, and the card does not require it: its text is "Optional, only if the allow-set constant is published in spec by then", the acceptance list does not name it, and no allow-set constant is published in packages/spec on main.

Clause-②: no
Metadata-protocol: none

Landing: this diff touches skills/** and docs/adr/**, Tier H surfaces, so the maintainer merges it. The card says to land it only after objectstack-ai/cloud#4985 has merged. That gate is met: the cloud seat's confirmation on the card (comment 7163165666) records the merge on 2026-11-25 09:32Z as d2c498192. This session cannot read that repository; the reading is the cloud seat's.

维护者速读

  • 用户能看到什么变化:给应用写 AI 技能的作者和替他们写的 AI,在技能文档和协议参考页里读到实情:应用自带的技能在应用内问数助手里随所在应用生效、清单之外的工具会被丢弃并给出提示、触发条件能读哪几项界面信息,以及这些信息由界面上报、只能用来分流、不能当权限。
  • 为什么做:替给应用写技能的作者解决——应用内问数助手的行为已经定下,发布给他们的说明还是旧说法。
  • 出错会怎样:只动说明文字和一条评测的期望描述;写错了作者会学到错的做法,撤回这次合并即可恢复原文。
  • 要你做什么:含受管面(技能文档和两份决策记录各一行指针),由你手工合并。

What changes

  • skills/objectstack-ai/SKILL.md, Trigger Conditions: one new paragraph on the in-app ask assistant, marked as a cloud surface. Its four statements are the card's:
    • a package skill with surface ask or both loads for the app the user is in, and the build side is not served while in-app build is closed;
    • a tool the skill names outside the allow-set is dropped with a diagnostic;
    • a condition can read appName, objectName, recordId, selectionKind and userRole;
    • the client sends all five, so a condition on any of them, userRole included, is routing, never access control: the turn's tools still run under the caller's own permissions.
  • The same file, three deletions that pay for part of the paragraph. Each one restates text the file keeps:
    • under Skill Configuration: "A Skill is a named bundle of tools with dedicated instructions and trigger conditions." The diagram above it and the two tables below it say the same.
    • under Platform agents: "You extend the platform with skills, never by adding an agent." The frontmatter description and the "Skills are your entry point" paragraph say the same.
    • under the built-in skills table, three clauses of the open-edition sentence: "All four are cloud-runtime skills", "authored for cloud", and "their instructions are what MCP serves". The edition note at the top and the instructions row say the same. The sentence keeps its three facts: none of the built-ins is available on the open edition, surface and triggerConditions are inert there, and tools binds nothing there but is read.
  • skills/objectstack-ai/evals/skills-tools-knowledge.json, eval 5: the last sentence of expected_output was "The runtime's ask / build agents pick the skill up by surface." It is now "The in-app ask assistant picks the skill up by surface (ask or both) for the app the user is in, and a tool the skill names outside the allow-set is dropped with a diagnostic." prompt, must_contain and must_not_contain are unchanged.
  • packages/spec/src/ai/skill.zod.ts: the .describe() of triggerConditions gains one sentence: "The context fields a condition reads are reported by the client: a condition is routing, never access control". Nothing else in the file changes.
  • content/docs/references/ai/skill.mdx: regenerated with gen:docs. The one triggerConditions row moves. No other generated artifact was stale, and the JSON schemas are git-ignored.
  • docs/adr/0063-two-kernel-agents-skills-are-the-extension-primitive.md and docs/adr/0064-tool-scoping-to-agent.md: one add-only header line each, under **Consumers**. Both name the cloud record as cloud ADR-0118, by its title "App-package skills load on ask; their tools are intersected with an allow-set", with a link to its file on cloud main. ADR-0063's line says the record implements §2 of that ADR on ask; ADR-0064's line says it records the allow-set an app-package skill's tools are intersected with on ask. No existing line changes, neither line makes a status claim, and docs/adr/README.md stays current (adr-index --check exit 0).
  • .changeset/37002-ask-skill-text.md: patch on @objectstack/skills and @objectstack/spec.

Read first, by risk:

  1. skills/objectstack-ai/SKILL.md, the new paragraph. Every clause is a cloud fact taken from the card body. None of them was checked against cloud code from this session.
  2. The same file's three deletions. Check that each is a restatement and that the open-edition sentence still says what it said.
  3. The two ADR lines. Check the record's number, title and file against the cloud record: they are copied from the cloud seat's confirmation, not read from cloud.

Two-minute check: node scripts/check-skills-token-ratchet.mjs prints skills/objectstack-ai/SKILL.md is 6801 tokens (ceiling 6801; headroom 0) and exits 0.

Skill size readings

Head f301512 against base dfdebfa. The readings are those of 7425db8: the later commit changes two ADR files only.

Reading Before After
SKILL.md lines 464 467
SKILL.md bytes 26968 27221
SKILL.md tokens (ceiling 6801) 6737 6801
all 14 SKILL.md files, lines 4937 4940
all 14 SKILL.md files, tokens 65303 65367
whole shipped tree, tokens 296856 296948
eval file tokens (measured, not ratcheted) 2112 2140

The paragraph adds 509 bytes and the three deletions remove 256, a net of 253 bytes or 64 tokens. That spends the file's whole headroom (64 to 0). No ceiling moves, and scripts/check-skills-token-ratchet.mjs is not edited.

Tests

  • pnpm --filter @objectstack/spec test, under the verify lock, at 7425db8: Test Files 891 passed (891), Tests 28371 passed | 1 todo (28372), VERDICT command-exit 0. The same suite gave the same counts one commit earlier, at 20ede3d. It was not run again at f301512: that commit changes two ADR files, and no test under packages/ names either.
  • pnpm --filter @objectstack/spec typecheck, under the verify lock, at 20ede3d: VERDICT command-exit 0. The later commit changes SKILL.md and the changeset only, which no tsc program reads.
  • No ablation. The diff changes prose, one description string and one generated page, and no behaviour a test pins.
  • Importers of @objectstack/spec owe no test here: the public surface is byte-identical apart from one description string, and check:api-surface is green.

Acceptance notes

  • Eval 5, the acceptance case: measured FAIL at one repetition; the baseline is NOT MEASURED (quota). One round of skill-evals --skills objectstack-ai ran at head 20ede3d: 16 of 16 turns, 8 cases on both arms, one repetition, 6.5 minutes. With-skill scored 5 of 8 and no-skill 0 of 8. The three with-skill misses:

    • eval 5 lacks aiExposed, and its forbidden knowledge: matched inside a code comment that reads search_knowledge: platform knowledge tool. The answer did refuse the agent and write a surface: 'ask' skill.
    • eval 4: its forbidden handler: matched inside a comment that reads "It has no handler:". The answer also authors a tool record, which the expected answer does not.
    • eval 7 says "Never retry the call" where the required token is do not retry.

    None of the three is on a token this diff touches: aiExposed, knowledge:, handler: and do not retry appear on no added or removed line. Eval 5's assertions are unchanged; only its expected_output moved. Evals 1, 2, 3, 6 and 8 pass with the skill. No baseline round ran on main's text, so this round cannot say whether eval 5 passed before this change: the login's seven-day window read 0.84 at the first turn and 0.85 at the last, status allowed_warning, and the seat ruled that no baseline runs for this PR. Whether the card's acceptance line needs a measured pass is the maintainer's call at hand-off.

  • The round ran one commit before the final head. The final commit moved the skill text in two ways, and both leave more teaching in the file than the measured text had: it restored the blueprint row's "agents are platform-supplied, and tools is not the default path", which the measured text had cut, and it shortened the new paragraph by 14 bytes of wording ("In the in-app" to "In-app", "any of them" to "any"). The row was restored because eval 4's miss is in the area that clause repeats.

  • One deletion sits in a section eval 5 leans on: "You extend the platform with skills, never by adding an agent." The file still says it in the frontmatter description, in "Skills are your entry point", and in the retired agent.tools row. Without a baseline its effect on eval 5 is not measured.

  • The cloud record the two ADR lines point at: the cloud seat's confirmation gives cloud ADR-0118, file docs/adr/0118-app-package-skills-on-ask-tool-allow-set.md, on cloud main as e738843ba, and says its own status line still reads "Proposed (2026-11-24)". The two lines here name the record and say nothing about its status.

  • check:dual-build-cjs-loads is NOT MEASURED locally: it exits 3 until every dual-build package in the workspace has a dist/, which is a whole-workspace build this diff does not owe. CI runs it.

  • The card names the allow-set and does not list its members or say where the diagnostic appears, so the skill names it without listing it. An author cannot yet check a tool against it before running. The card's item 4 would answer that once the constant is published in the spec.

  • The values selectionKind takes and what appName holds are given in card comment 7152100136, not in the card body. The dispatch limited cloud facts to the body, so the skill names the five fields and says no more about them.

  • skill.zod.ts keeps two comments this card does not reach: the one above field gives 'channel' as an example context field, which is not among the five the card names, and the one above triggerConditions says "object name, user role, etc.". The card limits the spec edit to the description string.

  • The skill's sentence "An agent's tool set is the union of its surface-compatible skills' tools" is left as written. The new paragraph is where the allow-set is stated.

  • The forbidden tokens of evals 4 and 5 match inside comments of otherwise acceptable answers, and eval 7 requires one wording of an instruction. Those fixtures are not changed here: they are outside this card.

Verification

Two local readings, one per push.

  • At 7425db8, before the ADR lines: the 114 commands node scripts/pm/dispatch-gates.mjs --commands derived for the diff, 113 exit 0 and 1 exit 3. --ran reconciliation: 114 derived, 113 run, 1 NOT-MEASURED, 0 UNRUN.
  • At f301512, the head: the 21 commands the two ADR paths derive, all exit 0. --ran reconciliation over those paths: 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN. The whole-diff derivation on this head is 115 commands: the 114 above plus pnpm check:adr-index, which is among the 21. The other 94 were not run again on this head. node scripts/check-skills-token-ratchet.mjs and pnpm check:role-word were, and both exit 0.
What ran, and how the generated page was regenerated
  • pnpm --filter @objectstack/spec build, under the verify lock: VERDICT command-exit 0.
  • pnpm --filter @objectstack/spec check:generated before regenerating: 1 of 14 artifact(s) stale, namely content/docs/references/**. After pnpm --filter @objectstack/spec gen:docs: All 14 generated artifacts are up to date.
  • The first pass of the gate list, at 20ede3d, had six commands exit 3 for want of a build. pnpm exec turbo run build --concurrency=2 over the dependencies of @objectstack/scenarios and over @objectstack/client-react with its dependencies (45 tasks, VERDICT command-exit 0) cleared five of them. The whole list was then run again at 7425db8, which is the first reading above.
  • The 21 at f301512: check-adr-links and its self-test, check:adr-anchors, check:adr-index, check:adr-symbol-anchors, check-closing-keyword-parity and its self-test, check-comment-mask-corpus, plan-test-core-shards --self-test, lint check:doc-formula-expressions, check:ci-filter-parity, check:closed-ceremony-text, check:cross-package-test-inputs, check:doc-authoring, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:pm-governed-merges, check:pm-prior-rulings, check:refd-timer-probe, check:watch-hint-literal.
  • Exit 0 on the families that read these files: check-skills-token-ratchet and its self-test, spec check:skill-docs, check:skill-refs, check:skill-examples, check:docs, check:generated, check:api-surface, check:authorable-surface, check:liveness, check:llms-txt, then check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:role-word, check:doc-authoring, check:nul-bytes, check:published-files, check-empty-changeset, check-changeset-no-major, check-adr-0087-registration, lint check:doc-formula-expressions and check:doc-security-posture.
  • NOT MEASURED locally: pnpm check:dual-build-cjs-loads, exit 3 at 7425db8, PREREQUISITE NOT MET — this gate reads built output, and some package has no dist/. See the acceptance notes.
  • node scripts/pm/overlap-check.mjs at f301512: VERDICT clean exit 0 against origin/main 1a62867 and the one open pull that shares SKILL.md, the Version Packages pull (chore: version packages (next) #35129).

CI was not waited for. The type-check lanes, Build Core, the UI jobs and the dogfood shards are CI's own runs and have no local reading here.


Generated by Claude Code

…, and that trigger context is client-sent

The AI skill states that a package skill with surface ask or both loads for
the app the user is in, that the build side is not served while in-app build
is closed, that a tool outside the allow-set is dropped with a diagnostic,
which context fields a condition can read, and that those fields are
client-sent: a condition is routing, never access control. Four restated
passages in the same file pay for the new paragraph. The eval case on agent
refusal names the allow-set; its assertions are unchanged. The spec's
triggerConditions describe says the same about the context fields.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
The reference page takes the extended triggerConditions description from
the generator. One patch changeset covers the skills bundle and the spec.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
…raph instead

The blueprint's central-registration row goes back to its text on main, so
the tool-record teaching is unchanged by this branch. The new in-app
assistant paragraph gives up fourteen bytes of its own wording, and the file
sits at its token ceiling.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
@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 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/spec, touching 1 documentable anchor(s).

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/ai/skills.mdx (via SkillSchema (symbol, a top-level const))

⛔ 1 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-0.mdx (via SkillSchema (symbol, a top-level const))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

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 — 176 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 1a628673d264a6f0cbfc2045f54a6e3f993c4170 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 2045a3a1d3943cf1e4a43d8f539d3ddfa74fb063 — the merge of head f3015126fc5bca0013781765b58000fe13edff0a into base 1a628673d264a6f0cbfc2045f54a6e3f993c4170, 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 2045a3a1d3943cf1e4a43d8f539d3ddfa74fb063 && git checkout 2045a3a1d3943cf1e4a43d8f539d3ddfa74fb063
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 1a628673d264a6f0cbfc2045f54a6e3f993c4170 f3015126fc5bca0013781765b58000fe13edff0a && git checkout -B drift-repro 1a628673d264a6f0cbfc2045f54a6e3f993c4170 && git merge --no-ff f3015126fc5bca0013781765b58000fe13edff0a

node scripts/docs-audit/affected-docs.mjs --json 1a628673d264a6f0cbfc2045f54a6e3f993c4170

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

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 1a628673d264a6f0cbfc2045f54a6e3f993c4170 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

One add-only header line in each record names the cloud record on
app-package skills on the ask surface and their tool allow-set, by its
number and title. No existing line changes, and neither line makes a
status claim.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: f3015126fc5bca0013781765b58000fe13edff0a
Local-runs: probe — spec build, check:generated and gen:docs in a throwaway worktree at the head, to read whether the committed skill.mdx is the regen
Scope: packages/spec/src/ai/skill.zod.ts, docs/adr/0063-two-kernel-agents-skills-are-the-extension-primitive.md, docs/adr/0064-tool-scoping-to-agent.md, skills/objectstack-ai/SKILL.md, skills/objectstack-ai/evals/skills-tools-knowledge.json + content/docs/references/ai/skill.mdx
Security-touching: yes

① Derived judgments

  • Clause-②: no holds. The only change under packages/spec/src/** is the .describe() string of SkillSchema.triggerConditions. The schema expression around it (z.array(SkillTriggerConditionSchema).optional()) is byte-identical, so the accepted set and the public surface do not move. check:api-surface and check:authorable-surface are green in the local probe and in CI.
  • Metadata-protocol: none holds: no key, value or default an author writes changes.
  • The newest Claim: comment on the card (7163040587), the PR body and the changeset all read declared · no · no arm through readClause2Line, and none through readMetadataProtocolLine.
  • The generated page is the regen: build VERDICT command-exit 0, All 14 generated artifacts are up to date, and gen:docs leaves git status --short empty at the head.
  • Tier H: skills/** and docs/adr/** are in the file list. This record does not land the PR.
  • Security-touching: yes: the new skill paragraph and the describe both teach that a trigger condition is not access control.
  • Checks at the head, read 2026-11-25T15:08Z: 74 check-runs, 62 success, 12 expected skip, 0 failed, 0 pending. git merge-tree against origin/main d88c41e51d6: clean. K = 3.

② Semver level

  • patch on @objectstack/skills and @objectstack/spec is right: kind none takes patch, nothing is breaking, and both packages are published. The changeset carries both declaration lines.

③ Boundary flags

  • Dev question, cloud ADR number: answered by the cloud seat's comment 7163165666 and delivered in commit f3015126fc5.
  • Dev question, eval 5 baseline: NOT MEASURED (quota) on the seat's ruling; eval 5 read FAIL with the skill at one repetition, on tokens the diff does not touch. Escalated to the maintainer at hand-off; not a finding of this record.
  • Dev question, say more than the card body about the allow-set and the field values: no. The text stays within the card body.
  • Dev question, objectstack-ai/cloud#4985 merged: yes by two card comments (7158486062, 7163165666). Cloud itself is NOT MEASURED from this session (REST 403).
  • Dev question, who sends the PR body: the seat sent it; the stored body opens Fixes #37002.
  • SQL push-down: not applicable, the diff holds no query code.
  • PR author is objectstack-fleet[bot].

④ Design judgment

  • skills/objectstack-ai/SKILL.md. The new paragraph holds against the card: every clause is the card body's, including "routing, never access control" and "the turn's tools still run under the caller's own permissions", and none goes past the cloud facts on the card. It agrees with the spec it teaches on main: surface is ask | build | both, triggerConditions is cloud-runtime-only, and the file's own example already conditions on objectName. It does not contradict the kept sentence on the union of surface-compatible skills' tools (ADR-0064); the allow-set is a further cut for a package skill on ask. The three deletions are restatements of text the head keeps, and the open-edition sentence still states its three facts. Token ratchet: 6801 of 6801, ceiling unmoved.
  • skills/objectstack-ai/evals/skills-tools-knowledge.json. Only eval 5's expected_output moves; it is neither sent nor graded, and the assertions are unchanged. Against the eval prompt it stays a correct description of the expected answer, and it names the allow-set as the card's Acceptance line asks.
  • packages/spec/src/ai/skill.zod.ts. The added sentence is the card's item 2 and is consistent with the field's doc block (cloud-runtime-only activation). First consumer is the cloud runtime; the open side has no reader the sentence could mislead.
  • content/docs/references/ai/skill.mdx. Agrees with the describe it is generated from, verbatim.
  • docs/adr/0063-… and docs/adr/0064-…. One added header line each, no existing line changed, no status claim. Cited as cloud ADR-0118 per Prime Directive 13. Number, title and path match comment 7163165666; "implements §2 of this ADR on ask" is that comment's statement, and §2 of ADR-0063 is "Skills (+ tools / MCP) are the only third-party extension primitive". ADR-0064's line restates the cloud record's title against that ADR's subject.
  • Nits only, none touching correctness or the contract. N1: "the allow-set" and "a package skill" are named and not defined, as in the card. N2: the two ADR lines carry no date; no written rule asks for one. N3: two untouched comments in skill.zod.ts still name 'channel' and "etc.".

Implemented-by: claude/issue-37002-ask-skills-text
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head f3015126fc5bca0013781765b58000fe13edff0a · 2026-11-25T15:12Z

Read against GitHub and the tree, not against the dev's reports. Card #37002 with its eight comments (through 7165920843), the PR body as stored at 2026-11-25T14:53Z, the net diff dfdebfadd58..f3015126fc5 (7 files, +39 −12, 4 commits).

Shape (l1-face.mjs --pr 37313, read 2026-11-25T15:09Z: CLEAN, 13 items)

  • Open, draft, base main, author objectstack-fleet[bot]. Line 1 is Fixes #37002; no closing keyword sits beside any other card number (body read by eye as well).
  • Fixes is right. Items 1, 2 and 3 are in the diff. Item 4 is not owed: the card's text is "Optional, only if the allow-set constant is published in spec by then", the Acceptance line does not name it, and origin/main (d88c41e51d6) publishes no allow-set constant under packages/spec/src (grep for allow-set, allowSet, ASK_*TOOL*: no constant; the one allowSet hit is a local in data/search-fields.ts).
  • No path outside the claim's file surface. No content/docs/releases/ path. No one-shot script in the diff.

Premise, measured

  • Skill paragraph (skills/objectstack-ai/SKILL.md, Trigger Conditions) against the card body, clause by clause: surface ask / both loads for the app the user is in; build not served while in-app build is closed; a tool outside the allow-set is dropped with a diagnostic; the five fields appName, objectName, recordId, selectionKind, userRole; client-sent, "routing, never access control", tools still run under the caller's own permissions. Every clause is the card's, none goes past it. The selectionKind values and the meaning of appName in comment 7152100136 are not stated, so nothing is claimed beyond the body.
  • Three deletions, each read against the text the head keeps: (1) "A Skill is a named bundle…" is restated by the diagram ("Capability bundle with instructions & trigger conditions") and the two tables; (2) "You extend the platform with skills, never by adding an agent" is restated by the frontmatter description and the "Skills are your entry point" paragraph; (3) the open-edition sentence keeps its three facts (none of the built-ins resolves on the open edition; surface / triggerConditions inert there; tools binds nothing there but is read), and the cut clause "their instructions are what MCP serves" is restated by the instructions row. Nothing is lost.
  • Eval 5: one line moves, expected_output only; prompt, must_contain (defineSkill, skills, surface, aiExposed) and must_not_contain (defineAgent({, knowledge:) are byte-identical. expected_output is neither sent to the model nor graded (packages/qa/scenarios/src/skill-evals/cases.ts:92), so the edit cannot move a score. It names the allow-set, as the card's Acceptance line asks.
  • Spec: one .describe() string on SkillSchema.triggerConditions; no shape change. Clause-②: no and Metadata-protocol: none hold.
  • Regen probe in a throwaway worktree at the head (removed afterwards): pnpm --filter @objectstack/spec build under the verify lock, VERDICT command-exit 0; check:generated: All 14 generated artifacts are up to date; gen:docs: Generated 251 files, then git status --short empty. content/docs/references/ai/skill.mdx at the head is the regen.
  • Token ratchet at the head: skills/objectstack-ai/SKILL.md is 6801 tokens (ceiling 6801; headroom 0), exit 0; scripts/check-skills-token-ratchet.mjs is not in the diff, and origin/main has not touched it or skills/objectstack-ai/** since the merge base. Net +3 lines, +64 tokens. The dispatch's line budget is NOT MEASURED here (the dispatch order was not among this reader's inputs).
  • ADR lines: one added header line in each of ADR-0063 and ADR-0064, no existing line changed, no status claim, cited as cloud ADR-0118 (never a bare number, AGENTS.md Prime Directive 13). Number, title and file path match the cloud seat's confirmation 7163165666 word for word; "implements §2 of this ADR on ask" is that comment's own statement. The cloud repository itself is NOT MEASURED from this session (REST answers 403); the reading is the cloud seat's.
  • Declarations through readClause2Line / readMetadataProtocolLine: the newest Claim: comment (7163040587) reads declared · no · arm null; the PR body and the changeset read the same; all three read Metadata-protocol: none.
  • Changeset, sentence by sentence against the diff: every sentence holds (paragraph and its four bullets; the three deletions; ceiling 6801 unchanged; eval 5; the describe; "the schema accepts and refuses what it did"). Level patch on @objectstack/skills and @objectstack/spec is right for kind none; both packages are published.
  • content/docs/references/ai/skill.mdx: the one row that moved carries the describe string verbatim.
  • The PR body's 「维护者速读」: lines 1 to 3 are accurate to the diff. Line 4 asks for a hand merge and names no PASS record; the seat's hand-off note carries the final wording.

Gates — check-runs at f3015126fc5bca0013781765b58000fe13edff0a

  • Polled 14:56Z (34 success, 12 skipped, 23 in progress), 14:58Z (41 / 12 / 18), 15:04Z (59 / 12 / 2), 15:08Z: 74 check-runs, 62 success, 12 skipped, 0 failed, 0 pending. pr-state: 12 expected skip, 0 unexpected skip. Floor: Lint & Repo Gates success, TypeScript Type Check success. Also success: Check Changeset, Governed Surface Queue Guard, Test Core 1 to 10, Test UI 1 to 16.
  • git merge-tree --write-tree origin/main (d88c41e51d6) against the head: exit 0, tree 8071767442, no conflict. mergeable_state clean.
  • landing-k.mjs --pr 37313: PRBASE 1a628673d2 (the last green Test Core, run head = the PR head), K = 3, hold at 15, OK; no locale pack after PRBASE; no shared book moved under the token ratchet. Counted from the git merge base dfdebfadd58 instead, 12 first-parent commits.

Accepted deviations

  • Eval 5, the card's acceptance case: measured FAIL with the skill at one repetition (head 20ede3dc441), baseline on main NOT MEASURED (quota, on the seat's ruling). The misses are tokens inside comments of the answer (knowledge: in search_knowledge:) and a missing aiExposed, on no line this diff adds or removes. Whether the acceptance line needs a measured pass first is the maintainer's call at hand-off. Not graded here.
  • The dev did not patch the PR body (os-dev.md); the seat sent the prepared body. Gate re-run at the head narrowed to the 21 ADR-family commands; CI at the head covers the rest.
  • Cloud facts rest on the card body and the cloud seat's two confirmations (7158486062, 7163165666), not on a read of cloud.

Grades
N1 — The paragraph says "the allow-set" and "a package skill" without saying what or where either is. It is the card's own wording, the PR's Acceptance notes say so, and item 4 anchors it once the constant is published. No effect on correctness.
N2 — The two **Cloud record**: header lines carry no date, and the key is new to this registry. No written rule asks for a date on an add-only pointer (docs/adr/README.md and Prime Directive 13 read; CI is green at the head); dated notes are the precedent elsewhere (ADR-0090, 2026-11-08). The maintainer may want one.
N3 — skill.zod.ts keeps two comments the card does not reach: 'channel' as an example field and "object name, user role, etc.". Untouched and not made false by this diff.

No must-fix, no should-fix.

Out of scope, where it goes

  • Eval fixtures 4, 5 and 7 match forbidden or required tokens too literally (the family of .changeset/35095-eval-forbidden-mention.md): Acceptance notes; not filed by this read.
  • The skill.zod.ts comments (N3): Acceptance notes.
  • Skills-docs: not owed (kind none, no (narrowing) arm). dogfood_battery not owed (no !, no narrowing).
  • Docs Drift Check names content/docs/ai/skills.mdx: read on origin/main, it does not mention triggerConditions, the five fields or the allow-set, so nothing there is made false.

Landing

  • Tier H: the diff touches skills/** and docs/adr/**. Handed to the maintainer; the seat does not ready, queue or arm it before an authorized approval. Landing gate from the card met: objectstack-ai/cloud#4985 merged 2026-11-25 09:32Z as d2c498192 (comments 7158486062, 7163165666). Fixes closes the card on merge.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

维护者速读

  • 用户能看到什么变化:给应用写 AI 技能的作者(和替他们写的 AI)在技能文档和协议参考页里读到实情:应用自带的技能在应用内问数助手里随所在应用生效;清单之外的工具会被丢弃并给出提示;触发条件能读五项界面信息;这些信息由界面上报,只能分流,不能当权限。两份决策记录各加一行,指向 cloud ADR-0118。
  • 为什么做:应用内问数助手的行为已在 cloud 落地,发布给作者的说明还是旧说法。
  • 出错会怎样:只改说明文字、一条评测的期望描述和两行指针,不改任何校验和运行行为;写错了作者会学到错的做法,撤回这次合并即恢复原文。
  • 要你做什么:请批准或手工合并 PR docs(skills,spec): what a package skill does in the in-app ask assistant; trigger context is client-sent #37313。两级审核已通过,PASS 记录是 PR comment 7166471295,Head-sha f3015126fc5bca0013781765b58000fe13edff0a。评测 5 的基线未测量(额度不足):带技能只跑过一次,结果是 FAIL,失分落在答案注释里的词上,这次改动没有碰那些词;是否先补测再合,由你决定。

Approval request at 2026-11-25T15:13Z. Seat opinion: accept. L1 is ACCEPT and the contract review is PASS at this head, with three nits and nothing above them. All 74 check-runs are settled (62 success, 12 expected skip, 0 failed), git merge-tree against origin/main is clean and K = 3. The text states the card's facts and no more; the cloud facts come from the card and the cloud seat's confirmations (7158486062, 7163165666), not from a read of cloud. The one open point is yours: the card's acceptance line says eval 5 "still passes", and that is not shown, because the baseline was not measured.

@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 25, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 25, 2026 16:35
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 489d9fe Nov 25, 2026
80 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-37002-ask-skills-text branch November 25, 2026 17:04
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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue protocol:ai 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 and spec text: app skills on ask, the tool allow-set, and what a trigger condition can read

3 participants