Repository navigation
docs(skills,spec): what a package skill does in the in-app ask assistant; trigger context is client-sent - #37313
Conversation
…, 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>
📓 Docs Drift CheckThis PR changes 1 package(s): 1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 1 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 176 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # 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
|
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>
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 维护者速读
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), |
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/speconmain.Clause-②: no
Metadata-protocol: none
Landing: this diff touches
skills/**anddocs/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 asd2c498192. This session cannot read that repository; the reading is the cloud seat's.维护者速读
What changes
skills/objectstack-ai/SKILL.md, Trigger Conditions: one new paragraph on the in-appaskassistant, marked as a cloud surface. Its four statements are the card's:surfaceaskorbothloads for the app the user is in, and thebuildside is not served while in-app build is closed;appName,objectName,recordId,selectionKindanduserRole;userRoleincluded, is routing, never access control: the turn's tools still run under the caller's own permissions.instructionsare what MCP serves". The edition note at the top and theinstructionsrow say the same. The sentence keeps its three facts: none of the built-ins is available on the open edition,surfaceandtriggerConditionsare inert there, andtoolsbinds nothing there but is read.skills/objectstack-ai/evals/skills-tools-knowledge.json, eval 5: the last sentence ofexpected_outputwas "The runtime'sask/buildagents pick the skill up by surface." It is now "The in-appaskassistant picks the skill up by surface (askorboth) for the app the user is in, and a tool the skill names outside the allow-set is dropped with a diagnostic."prompt,must_containandmust_not_containare unchanged.packages/spec/src/ai/skill.zod.ts: the.describe()oftriggerConditionsgains 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 withgen:docs. The onetriggerConditionsrow 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.mdanddocs/adr/0064-tool-scoping-to-agent.md: one add-only header line each, under**Consumers**. Both name the cloud record ascloud ADR-0118, by its title "App-package skills load onask; their tools are intersected with an allow-set", with a link to its file on cloudmain. ADR-0063's line says the record implements §2 of that ADR onask; ADR-0064's line says it records the allow-set an app-package skill's tools are intersected with onask. No existing line changes, neither line makes a status claim, anddocs/adr/README.mdstays current (adr-index --checkexit 0)..changeset/37002-ask-skill-text.md:patchon@objectstack/skillsand@objectstack/spec.Read first, by risk:
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.Two-minute check:
node scripts/check-skills-token-ratchet.mjsprintsskills/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.
SKILL.mdlinesSKILL.mdbytesSKILL.mdtokens (ceiling 6801)SKILL.mdfiles, linesSKILL.mdfiles, tokensThe 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.mjsis 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 underpackages/names either.pnpm --filter @objectstack/spec typecheck, under the verify lock, at 20ede3d:VERDICT command-exit 0. The later commit changesSKILL.mdand the changeset only, which notscprogram reads.@objectstack/specowe no test here: the public surface is byte-identical apart from one description string, andcheck:api-surfaceis 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-airan 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:aiExposed, and its forbiddenknowledge:matched inside a code comment that readssearch_knowledge: platform knowledge tool.The answer did refuse the agent and write asurface: 'ask'skill.handler:matched inside a comment that reads "It has no handler:". The answer also authors a tool record, which the expected answer does not.do not retry.None of the three is on a token this diff touches:
aiExposed,knowledge:,handler:anddo not retryappear on no added or removed line. Eval 5's assertions are unchanged; only itsexpected_outputmoved. Evals 1, 2, 3, 6 and 8 pass with the skill. No baseline round ran onmain'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, statusallowed_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
toolsis 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.toolsrow. 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, filedocs/adr/0118-app-package-skills-on-ask-tool-allow-set.md, on cloudmainase738843ba, 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-loadsis NOT MEASURED locally: it exits 3 until every dual-build package in the workspace has adist/, 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
selectionKindtakes and whatappNameholds 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.tskeeps two comments this card does not reach: the one abovefieldgives'channel'as an example context field, which is not among the five the card names, and the one abovetriggerConditionssays "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.
node scripts/pm/dispatch-gates.mjs --commandsderived for the diff, 113 exit 0 and 1 exit 3.--ranreconciliation:114 derived, 113 run, 1 NOT-MEASURED, 0 UNRUN.--ranreconciliation 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 pluspnpm check:adr-index, which is among the 21. The other 94 were not run again on this head.node scripts/check-skills-token-ratchet.mjsandpnpm check:role-wordwere, 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:generatedbefore regenerating:1 of 14 artifact(s) stale, namelycontent/docs/references/**. Afterpnpm --filter @objectstack/spec gen:docs:All 14 generated artifacts are up to date.pnpm exec turbo run build --concurrency=2over the dependencies of@objectstack/scenariosand over@objectstack/client-reactwith 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.check-adr-linksand its self-test,check:adr-anchors,check:adr-index,check:adr-symbol-anchors,check-closing-keyword-parityand its self-test,check-comment-mask-corpus,plan-test-core-shards --self-test, lintcheck: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.check-skills-token-ratchetand its self-test, speccheck:skill-docs,check:skill-refs,check:skill-examples,check:docs,check:generated,check:api-surface,check:authorable-surface,check:liveness,check:llms-txt, thencheck: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, lintcheck:doc-formula-expressionsandcheck:doc-security-posture.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.mjsat f301512:VERDICT clean exit 0againstorigin/main1a62867 and the one open pull that sharesSKILL.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