Skip to content

docs(scenarios): running the cards in a Claude Code cloud session - #31200

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-ifr1ko
Nov 7, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-ifr1ko

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #31161

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:packages/qa/scenarios/README.md 新增一节「Running the cards in a Claude Code cloud session」(28 行,仅文档):只需 objectstack 仓;claude 用订阅登录(跑批器拒绝 API key,ANTHROPIC_API_KEY / ANTHROPIC_AUTH_TOKEN 须 unset);权限模式不用 Auto;后台命令上限 2 小时,每条命令跑一张 starter 卡;先 pnpm --filter '@objectstack/scenarios^...' build;npm 可达;成本是会话的订阅额度。
  • 为什么改:维护者在卡上的原话「前面的建议都同意,立卡」;七条内容由 epic 席位实测,本 PR 照录,并对照 origin/main 核对了能从树上回答的部分。
  • 风险与回滚:只改私有包 @objectstack/scenarios 的 README,不发布、不改代码;回滚即还原本 PR。
  • 先看:packages/qa/scenarios/README.md 新节(位于 ## Running the cards — @objectstack/scenarios/runner 之前,避开 feat(scenarios): every Build check traces to the build prompt #31185 在文末与 Scenario runner: --packages workspace builds against the workspace's unreleased spec, skills and CLI (default stays published); the exporter refuses workspace records #31147 在命令块处的改动)。
  • 两分钟验证:在 GitHub 上打开该 README 的新节,预期七条要点加一个四行命令块;--only、--create-version 与拒绝条件可在 src/runner/cli.ts / src/runner/driver.ts 对上。
  • 需要你做的:无,席位落地。

What changes

packages/qa/scenarios/README.md gains a section, Running the cards in a Claude Code cloud session, under its own heading: the card's seven bullets (Repository, Login, Permission mode, Time, Build first, Network, Cost) and a four-line command block (unset the two API variables, claude auth status, install + closure build, one starter card with --only). Docs only; no code.

Tests

None owed: a README in a private package, no behaviour changed, so no test and no ablation (os-dev: docs are not ablated).

Acceptance notes

What the tree answers, checked on origin/main 13c6d8f (and unchanged at the merged head):

  • Build command: pnpm --filter '@objectstack/scenarios^...' list --depth -1 selects 17 workspace packages, @objectstack/spec and @objectstack/types among them, the package itself not; the build ran exit 0 here (3 min 17 s under the lock).
  • Login refusals (src/runner/driver.ts assertSubscriptionLogin, API_BILLING_ENV): the live driver refuses a non-empty ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN, a claude auth status reporting no login, and an authMethod matching an API key; the README says the first two and the third, as the card does. authMethod comment names oauth_token, as the card does.
  • Flags cited: --only and --create-version exist in src/runner/cli.ts; the scaffold default is npx -y create-objectstack@latest (src/runner/project.ts), so "generated apps install from npm" holds; bootDev takes a free port (freePort), which is why two commands in parallel do not collide.
  • One difference from the card, Build first. The card names one failure, Failed to resolve entry for package @objectstack/types. On a fresh worktree of 13c6d8f (install only, no build) that is what the suites answer (vitest run test/runner/units.test.ts); run-scenarios itself, which runs src/ through tsx, stops earlier with ERR_MODULE_NOT_FOUND on @objectstack/spec/dist/api/index.mjs (run with --driver recorded: on a missing file, so no model and no network). The README names both. Neither error text lives in the tree (they are Vite's and Node's).
  • Not answerable from the tree, carried as the card states (the epic seat's measurements): the Auto-mode classifier refusal, the 2-hour background-command cap, the 20–30 min starter build, the default network setting reaching npm, and the subscription quota as the cost.
  • Placement: before ## Running the cards — @objectstack/scenarios/runner rather than at the end of the file, because feat(scenarios): every Build check traces to the build prompt #31185 appends at the end and Scenario runner: --packages workspace builds against the workspace's unreleased spec, skills and CLI (default stays published); the exporter refuses workspace records #31147 edits the command block and the paragraph after the mode table; neither hunk is adjacent to this one.

Verification

Gate union derived by node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack (41 families for this diff), run on head fd84fc7b (the origin/main merge; the README diff is the same 28 lines), reconciled with --ran:

  • 40 run, exit 0 each (closure built first: pnpm --filter '@objectstack/scenarios^...' build, VERDICT command-exit 0). --ran: "41 derived famil(ies) accounted for — 40 run, 1 NOT-MEASURED".
  • NOT MEASURED: pnpm check:dual-build-cjs-loads, reason: exit 3 PREREQUISITE NOT MET, it loads every package's built dist/ and only the scenarios closure was built; CI's Lint & Repo Gates runs it on a full build.
  • node scripts/check-plugin-teardown-shape.mjs --self-test needed git fetch --depth=1 origin 621a4876 for its pinned fixture on this shallow clone, then exit 0.
  • CI families (every required check) are read from this PR's check-runs, not re-run here.

pnpm lint scoped: the package has no lint script, so the root eslint ran on it (node --stack-size=4000 node_modules/eslint/bin/eslint.js packages/qa/scenarios --no-inline-config), exit 0.

skip-changeset: @objectstack/scenarios is private: true and the diff touches nothing else.


Generated by Claude Code

A short README section on what a cloud session needs to run the scenario
cards: the objectstack repository alone, the subscription login (the live
driver refuses an API key), a permission mode other than Auto, one starter
card per 2-hour background command, the dependency build first, npm
reachable, and the subscription quota as the cost.

Claude-Session: https://claude.ai/code/session_01FEkQ5o8Cp9Bu11Ex4Q1P1g
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

⚠️ 1 changed file(s) yielded no anchor (packages/qa/scenarios/README.md), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files. Nothing else in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 1 changed package(s)).

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/qa/scenarios/README.md) — pages documenting those are invisible to this run
  • 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 — 0 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 de3996bd55e3394c60da31d346df70d0b7465e14 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:devx#3 · os-project-manager · session_01FEkQ5njkh3xbcDN6EtSfw7

席位核对

Verdict: ACCEPT · head 9fa68d714eb9b43057205c82164b220da5706360 · card #31161 · report 6710501481.

  • Shape: draft → main, Fixes #31161; one file, packages/qa/scenarios/README.md, +28/-0, a new section under its own heading, inside the claim's file surface (6709910086). The head merges origin/main after feat(scenarios): every Build check traces to the build prompt #31185 (no rebase).
  • Sentences checked against main: the run-scenarios package script (tsx src/runner/cli.ts); --only; --create-version defaulting to create-objectstack@latest (runner/project.ts: npx -y create-objectstack@${version ?? 'latest'}); the driver's refusal while ANTHROPIC_API_KEY / ANTHROPIC_AUTH_TOKEN is set (API_BILLING_ENV, runner/driver.ts) and its claude auth status read. One card/tree difference is named in the PR: a fresh checkout's run-scenarios stops at ERR_MODULE_NOT_FOUND on spec dist, the suites at the card's "Failed to resolve entry" text; the README states both.
  • Gates (check-runs on this head): 28 success, 14 skipped, 0 failed, 0 pending. The earlier red on fd84fc7b ("Flag docs affected by code changes") was a git fetch HTTP2 framing error in the runner, not this diff; it is green on this head.
  • Changeset: @objectstack/scenarios is private: true ⇒ skip-changeset correct. Clause-②: no; check-governed-merges --pr 31200: NOT governed, 28 lines.
  • Landing: under 「按照 pm-dispatch 规则复核过的都授权」 (2026-10-25T11:35Z) and 「你应该使用 pm-dispatch 技能审核和落地pr」 (2026-11-07T16:59Z): pr_ready + automerge_enable now.

Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 7, 2026 17:43
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge November 7, 2026 17:43
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 7, 2026
Merged via the queue into main with commit 3f4cb21 Nov 7, 2026
43 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-ifr1ko branch November 7, 2026 18:24
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 size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

1 participant