Repository navigation
feat(scenarios): the door rules arm has a built-in corpus, the hosted build door's authoring rules ported as data - #35267
Conversation
Claude-Session: https://claude.ai/code/session_01JQwxbaX2qDxUq9sF93EqqL Co-authored-by: Claude <noreply@anthropic.com>
…gs, boot env Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbaX2qDxUq9sF93EqqL
…sal is a publish finding Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbaX2qDxUq9sF93EqqL
…our-mode refusal Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbaX2qDxUq9sF93EqqL
…s a door finding Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbaX2qDxUq9sF93EqqL
…rule text Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbaX2qDxUq9sF93EqqL
… build door's authoring rules ported as data Claude-Session: https://claude.ai/code/session_01JQwxbaX2qDxUq9sF93EqqL Co-authored-by: Claude <noreply@anthropic.com>
…d content scan; changeset Claude-Session: https://claude.ai/code/session_01JQwxbaX2qDxUq9sF93EqqL Co-authored-by: Claude <noreply@anthropic.com>
…hosted text's citations are struck Claude-Session: https://claude.ai/code/session_01JQwxbaX2qDxUq9sF93EqqL Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 72 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 19 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 1 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 1e99b932a9de8770ca9c062b192b9397dac87ef7 && git checkout 1e99b932a9de8770ca9c062b192b9397dac87ef7
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f4dbcc2153566226f283c79c73255369c2c97587 6e244858be3dcfd43422aff2f5dbd64a5a74f972 && git checkout -B drift-repro f4dbcc2153566226f283c79c73255369c2c97587 && git merge --no-ff 6e244858be3dcfd43422aff2f5dbd64a5a74f972
node scripts/docs-audit/affected-docs.mjs --json f4dbcc2153566226f283c79c73255369c2c97587
|
…on PATH Claude-Session: https://claude.ai/code/session_01JQwxbaX2qDxUq9sF93EqqL Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-warren · session_01JQwxbXr9wLAH24MEgxaLud 席位核对L1 full · ACCEPT · Head-sha: Net diff against merge base The maintainer's word
Against the card
Read at the head
Delta
|
|
repo:objectstack#1 · os-warren · session_01JQwxbaX2qDxUq9sF93EqqL Landing · 2026-11-19T01:29Z. Head
Marked ready, and auto-merge is armed. |
Part of #34780
Clause-②: no
Metadata-protocol: none
维护者速读
--door-rules builtin:把托管产品 MCP 构建门交给客户端的作者规则(54 条规则 + 2 段前言)以数据形式搬进@objectstack/scenarios,带 5 个可省略的命名集合。--door-rules时行为与之前完全相同,--door-rules FILE仍可用。语料里删掉了 1 条只适用于托管运行时的规则,并去掉了 13 处 cloud 工单号引用,其余逐字保留。回滚即还原本 PR。packages/qa/scenarios/src/runner/door-rules-corpus.ts头部注释(来源路径、cloud 提交号、删掉了什么);src/runner/door.ts的readDoorRules(builtin分支,与规则文件走同一套校验);test/runner/door.test.ts末尾的内容扫描用例。pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/runner/door.test.ts,预期 27 个用例全绿。RULES=builtin即可。What changes
@objectstack/scenariosonly. No product package is touched, and no hosted-service code is ported, only data.src/runner/door-rules-corpus.ts. It holds the authoring rules the hosted product's MCP build door hands its client, in exactly the{ rules: [{ id, text }], sets }shape the rules arm already reads: 54 rules plus the two corpora's preambles (metadata-authoring-preamble,solution-design-preamble), 56 entries.--door-rules-omit:metadata-authoring(45) andsolution-design(11): each corpus, its preamble included.inline(27) andondemand(29): what the hosted door hands its client up front, and what it serves only when the client asks for a rule by id.--door-rules-omit ondemandis the closest a file of texts comes to the hosted delivery.names-build-door-tools(38): the rules whose own text, before any published section, names a tool the hosted build door registers (PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio']in@objectstack/spec).src/runner/door.ts,src/runner/cli.ts).--door-rules builtin, orOS_SCENARIOS_DOOR_RULES=builtin, reads the built-in corpus. It goes through the same judge as a rules file: shape, unique ids, sets, selector. The record states it asfile: builtinwith the sha256 of its JSON.--door-rules FILEis kept unchanged. With no--door-rules, the arm has no rules, as before, so the bare arm and its records keep their meaning. A file literally namedbuiltinis given with a path (./builtin).RULES=builtin. The quick-reference command list gains one--door-rules builtinline.Where the text comes from
The text was rendered, not retyped, from
objectstack-ai/cloudatc9b6664d9ac8cdc16df61a40febe3b5c71f41f11. The call wasauthoringCorporaAt(authoringTierFor('mcp', undefined, undefined, { status: 'none' }), undefined, 'mcp'), which takes the door-mode text of each rule fromcorpusAt. The cloud source files, all underpackages/service-ai-studio/src/:tools/get-authoring-rules.tool.ts(authoringCorporaAt)authoring-whitelist.ts(authoringTierFor)skills/authoring-rule.ts(corpusAt,ruleOffered)skills/authoring-source.ts(restriction-profile readingnone)skills/metadata-authoring-skill.tsskills/solution-design-skill.tsskills/published-skills.ts,skills/published-refs.tsEach rule ends with the published sections it cites. Those were read from this repository's own
skills/catalog, built at this branch's base onmain(cdb327fdf03). Cloud itself pins the framework at958ee035, so a published section may differ from what cloud serves today by whateverskills/changed between those commits.Acceptance notes
14b-tier. It describes the hosted runtime's timer lifecycle: a clock trigger runs inside a per-environment kernel that the hosting builds on demand. That is control-plane only.flow-node-types,13,14b,14c,process-approval-flow.example.comsamples already public inskills/, plus the placeholderurl:'https://…'. A test enforces this.cloud#plus a number) across 12 rules are struck, with the brackets or comma around them. Example:Live failure (cloud#972): …becomesLive failure: ….pnpm check:doc-authoringrefuses a tracker id in a runtime string, and a baseline entry is maintainer-only. Nothing else in any text differs from what the hosted door serves.--door-rules FILEis given". It is selected explicitly with--door-rules builtinrather than switched on whenever the flag is absent. Reason: an implicit default would make the bare arm (no rules) unreachable without a newnonespelling, and would change what existing door-mode records mean.CLAUDE.md; theinlineset alone, about 21,000.list_objects,describe_object,validate_expression). Sonames-build-door-toolsmeans "names a hosted build-door tool", not "names only tools the client lacks".Tests
test/runner/door.test.tshas a new top-level describe with 6 cases:builtin(same rules, same sha256);omit ondemandleaves exactlyinline;names-build-door-toolsequals its derivation fromPLATFORM_TOOLS_BY_PACKAGE['service-ai-studio'];localhost, IPs and key-shaped strings, with planted positives proving the scan can fail;--door-rules builtinparses,makeDriveraccepts it, and the arm text and refusal wording are right.builtinbranch ofreadDoorRuleswas disabled (if (path === BUILTIN_DOOR_RULES && false)). The tests importsrcdirectly, so no build was involved. Result: 3 of 27 failed, the 3 cases that read throughbuiltin. The file was restored fromHEADbyte-identical (blob7b80f58d2dc1), andgit diff HEADis empty.Readings at bdcf01e
pnpm --filter @objectstack/scenarios build && pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2(under the verify lock):VERDICT command-exit 0, Test Files 40 passed (40), Tests 1182 passed (1182).pnpm --filter @objectstack/scenarios typecheck: exit 0 (at 52d808b; the only later change is the corpus data module's strings).builtincases; restored.pnpm check:doc-authoring: exit 0 after the strike. Before it, the gate named 10 (file, id) pairs in the data module.Verification
Derived gate families at bdcf01e (`dispatch-gates --repo objectstack-ai/objectstack --commands`, 67 families)
pnpm check:dts-closureexited 1 once, namingpackages/objectql/dist/*.d.ts. A concurrent rebuild of@objectstack/objectqlin this worktree was in progress at that moment (its dist is stamped mid-run). The standalone re-run exited 0: 260/260 declaration files present.pnpm check:dual-build-cjs-loads: NOT MEASURED, exit 3, PREREQUISITE NOT MET. It needs every package'sdist/, and only the scenarios closure was built here. CI owns it.dispatch-gates --ran: 67 derived, 67 run, 0 unrun.node scripts/pm/overlap-check.mjs --repo=objectstack-ai/objectstack:VERDICT clean exit 0(origin/main merges cleanly, 0 open PR heads overlap).Generated by Claude Code