Repository navigation
docs(scenarios): running the cards in a Claude Code cloud session - #31200
Merged
Merged
Conversation
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>
Contributor
📓 Docs Drift Check
What this run could not see
Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
Contributor
Author
|
domain:devx#3 · os-project-manager · session_01FEkQ5njkh3xbcDN6EtSfw7 席位核对Verdict: ACCEPT · head
Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 可达;成本是会话的订阅额度。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 在命令块处的改动)。--only、--create-version与拒绝条件可在src/runner/cli.ts/src/runner/driver.ts对上。What changes
packages/qa/scenarios/README.mdgains 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 (unsetthe two API variables,claude auth status, install + closure build, onestartercard 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/main13c6d8f (and unchanged at the merged head):pnpm --filter '@objectstack/scenarios^...' list --depth -1selects 17 workspace packages,@objectstack/specand@objectstack/typesamong them, the package itself not; the build ran exit 0 here (3 min 17 s under the lock).src/runner/driver.tsassertSubscriptionLogin,API_BILLING_ENV): the live driver refuses a non-emptyANTHROPIC_API_KEYorANTHROPIC_AUTH_TOKEN, aclaude auth statusreporting no login, and anauthMethodmatching an API key; the README says the first two and the third, as the card does.authMethodcomment namesoauth_token, as the card does.--onlyand--create-versionexist insrc/runner/cli.ts; the scaffold default isnpx -y create-objectstack@latest(src/runner/project.ts), so "generated apps install from npm" holds;bootDevtakes a free port (freePort), which is why two commands in parallel do not collide.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-scenariositself, which runssrc/through tsx, stops earlier withERR_MODULE_NOT_FOUNDon@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).starterbuild, the default network setting reaching npm, and the subscription quota as the cost.## Running the cards — @objectstack/scenarios/runnerrather 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 headfd84fc7b(theorigin/mainmerge; the README diff is the same 28 lines), reconciled with--ran:pnpm --filter '@objectstack/scenarios^...' build, VERDICT command-exit 0).--ran: "41 derived famil(ies) accounted for — 40 run, 1 NOT-MEASURED".pnpm check:dual-build-cjs-loads, reason: exit 3 PREREQUISITE NOT MET, it loads every package's builtdist/and only the scenarios closure was built; CI'sLint & Repo Gatesruns it on a full build.node scripts/check-plugin-teardown-shape.mjs --self-testneededgit fetch --depth=1 origin 621a4876for its pinned fixture on this shallow clone, then exit 0.pnpm lintscoped: the package has nolintscript, 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/scenariosisprivate: trueand the diff touches nothing else.Generated by Claude Code