Skip to content

feat(scenarios): run-scenarios --packages published|workspace; the gallery exporter refuses workspace records - #31188

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

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-r1z0z3

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #31147

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:场景跑批器 run-scenarios 新增 --packages published|workspace,默认 published(行为不变)。workspace 先按发布的方式构建、pnpm pack 本仓所有会发布的包,再用打包出的 create-objectstack 原样脚手架项目,依赖与技能都装自这些 tarball;每份运行记录和计分卡首行写明包来源(packages: published 18.3.0 或 packages: workspace @ SHA (unreleased))。画廊导出器只导出 published 的运行,workspace 记录(以及未写明来源的记录)一律拒绝。
  • 为什么改:维护者裁决「两种都要」:发版后跑已发布的包,发版前用工作区未发布的包先测技能改动有没有让 AI 少犯错;未发布的结果绝不能进画廊。
  • 第二轮(head 38562001):CI 的 pnpm 是 Corepack 垫片,在仓外无 packageManager 的项目目录里会解析到 registry 最新版 pnpm 12,它不读 npm_config_*,于是装依赖时直奔 npm 而失败。现在 workspace 模式里脚手架和收尾安装用的每个 pnpm 都固定为本仓自己的版本(见下文 pnpm is pinned to the workspace's)。
  • 风险与回滚:只动私有包 @objectstack/scenarios,不发布任何东西,create-objectstack 未改;published 路径的脚手架命令不变,只多读一次已装的 spec 版本写进记录。回滚即还原本 PR。
  • 先看:packages/qa/scenarios/src/runner/packages.ts(打包、pnpmfile、overrides、安装后核验)、src/export/record.ts 的 unpublishedRunRefusal 与 exporter.ts 的调用点、src/runner/cli.ts 的 --packages 接线。
  • 两分钟验证:pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/runner/packages.test.ts test/export/exporter.test.ts,预期 49/49 通过(含工作区独有技能标记落进 .claude/skills/、workspace 记录被导出器拒绝)。
  • 需要你做的:无,席位落地。

What changes

  • run-scenarios --packages published|workspace (runner/cli.ts), default published, which keeps today's scaffold command (npx -y create-objectstack@VERSION) byte for byte. --packages workspace beside --create-version is refused: the version names a published scaffolder.
  • workspace mode (runner/packages.ts, new), built once per run before the first card:
    1. Builds what the release builds for the packages it publishes: every non-private workspace package named @objectstack/* or create-objectstack (75 today), turbo run build build:dist filtered to them (build:dist is the Console copy the release's console:build makes).
    2. pnpm packs each one: the tarball npm would serve, files[] only, every workspace: range rewritten to the version.
    3. Scaffolds with the packed create-objectstack, untouched: npx -y file:TARBALL NAME, its own install, its own skills sync, its own summary. Every pnpm it runs, and the install in step 4, is the workspace's own pinned pnpm (pinnedPnpm, see Acceptance notes). Its pnpm install is pointed at the tarballs by a global pnpmfile (npm_config_global_pnpmfile) whose readPackage hook rewrites every packed name in every dependency field of every manifest. The project's package.json is not rewritten: it pins the version, as a published scaffold does.
    4. Persists the same map as overrides in the project's pnpm-workspace.yaml and installs again, so a later pnpm add by the agent stays on the tarballs.
    5. Verifies, and refuses the scaffold (the mode is skipped with the reason, like a failed scaffold) unless every @objectstack/* / create-objectstack entry in node_modules/.pnpm is a tarball (@file+…) and .claude/skills/ holds the workspace build's catalog (packages/skills/dist/skills), skill for skill and file for file.
  • The package source in the record and the scorecard (runner/scorecard.ts): RunRecordMeta.packages is required, so every record states it as env.packages ({ source: 'published', versions } or { source: 'workspace', commit, uncommitted }) and env.packagesLine; the scorecard table's first line is packages: published 18.3.0 or packages: workspace @ SHA (unreleased) (+ uncommitted changes when the tree had any). The published version is the @objectstack/spec each scaffolded project installed.
  • ⛔ The gallery exporter refuses every run not on published packages (export/record.ts unpublishedRunRefusal, checked in exporter.ts before the pass judgement): a workspace record, a record that states no package source (written before this flag), and a published record with no version are refused per card, with the reason; as for any refusal, an app the previous index listed is removed when its newest record is refused. The export CLI offers no flag around it.
  • runCommand / scaffold (runner/project.ts) take an environment addition (the pnpmfile variable, and the PATH that leads with the pinned pnpm), merged over the existing environment. README: the --packages command line and a Package source paragraph.

Why

The maintainer's ruling on the card, verbatim: 「两种都要」 — run on the published packages after each release, and a runner option to run on the workspace's unreleased packages beforehand, so a skill change can be measured before it ships. A workspace run's @objectstack/spec pin still reads 18.3.0 (the workspace has not been versioned), which is why the exporter cannot trust the version and refuses on the stated source instead.

Tests

  • Workspace mode against a workspace of its own (test/runner/packages.test.ts, new, 9 cases, ~3 s of tests): a temp pnpm workspace holding a skills catalog with a marker skill and a stand-in create-objectstack that does what the real one does in its order (write the manifest and pnpm-workspace.yaml, pnpm install, copy each skill). The pack, the npx -y file: scaffold, the pnpmfile and both installs are the real tools, at a version npm never published, so an install that reached for the registry fails instead of quietly finding something. Pins: only the released packages are built and packed (a private one is not) and the commit is stated; the marker present only in the workspace build is in .claude/skills/ and the verification is empty; the installed package is the tarball (@file+), not a link, and a file outside files is absent; package.json keeps the version pin, pnpm-workspace.yaml gains the overrides, the lockfile carries no pnpmfile checksum; the hook rewrites only packed names, in every field; every install ran the workspace's pinned pnpm (the project's node_modules/.modules.yaml names the checkout's pnpm --version; the temp workspace declares that pin as the real root does). A failed scaffold reports its whole output. Negative pins: a published catalog in .claude/skills/ (no marker, an extra skill) is refused file by file; a registry store entry is refused; a project with no pnpm store is refused.
  • Exporter (test/export/exporter.test.ts, new top-level describe, 4 cases): a workspace record that passed every half (judgeRecord passes it) is refused and nothing of it is written; a newer workspace record removes the published export it follows; a record with no package source, and a published one with no version, are refused; a published run exports and its scorecard.md states packages: published 18.3.0.
  • Flag and line (test/runner/units.test.ts, new describe, 3 cases): default published, workspace taken, an unknown value and workspace + --create-version refused; both line forms; the published version read from the installed spec. Existing record fixtures (orchestrate.test.ts, export/fixture.ts) now state published 18.3.0.
Ablations (each restored: blob == HEAD, git diff HEAD empty)

Ablations 1–3 run through scripts/ablation-replace.mjs (anchor x1 → x0, replacement x0 → x1); the suites import src/ directly, so no dist leg.

  • Ablation 1, the exporter refusal disarmed (its if (unpublished) guard in exporter.ts ANDed with an always-false String("ABL1").length comparison): exporter.test.ts -t 'only a run on published packages' → 3 failed | 1 passed (the workspace, newer-workspace and unstated/versionless cases red; the published case green).
  • Ablation 2, the skills file comparison disarmed (its if (differ.length) guard in packages.ts ANDed with an always-false String("ABL2").length comparison): packages.test.ts → 1 failed | 7 passed (the published-catalog refusal).
  • Ablation 3, the pnpmfile variable renamed (ABL3_npm_config_global_pnpmfile): packages.test.ts → the beforeAll scaffold answers exit 1 (the install reaches for a version npm never published), the suite reds, 5 cases do not run.
  • Ablation 4 (round 2, on the packages.ts that 38562001 carries, by a saved copy of packages.ts restored with cmp clean), the shim dropped from the scaffold's PATH (env.PATH set to the inherited PATH), run under a CI-shaped Corepack (COREPACK_HOME set, corepack enable into a temp bin first on PATH, CI=true): packages.test.ts → the beforeAll scaffold answers exit 1 with CI's exact error, No matching version found for @objectstack/skills@0.0.0-scenario-workspace-test while fetching it from https://registry.npmjs.org/; restored, 9 passed.
Live workspace scaffold, no model (the order's no-live-run rule held)

Measured in this container on the branch after a release-shape build of the scaffold closure plus the Console (turbo run build build:dist, 98 tasks, 15 min 14 s, exit 0):

  • Packed 75 tarballs in 20 s; scaffold with the packed create-objectstack exit 0 in 14 s; settle (overrides + install, Already up to date) exit 0 in 7 s.
  • node_modules/.pnpm: 61 @objectstack/* entries, 0 not from a tarball; @objectstack/spec resolves to .pnpm/@objectstack+spec@file+..+..+workspace-packages+objectstack-spec-18.3.0.tgz.
  • .claude/skills/: 11 skills, byte-identical to packages/skills/dist/skills (the catalog's top-level README.md is not a skill and is not synced, measured with diff -rq); skills-lock.json entries source: @objectstack/skills, sourceType: node_modules.
  • objectstack validate in the project: exit 0. objectstack dev --fresh (bootDev): /api/v1/health 200 after 13 s, stopped.
  • Control: a published create-objectstack@18.3.0 scaffold of the same name, run through the same verification, is refused on every @objectstack/* store entry (registry) and on 47 skill files that differ from the workspace catalog — the check tells the two apart on today's main.
  • A first measurement used npx -y --package=TARBALL create-objectstack: the scaffold exited 0 with no skills, because npx hands --package to its child as npm_config_package and the scaffolder's own npx -y skills@1.7.2 … then ran skills@1.7.2 as a bin of the scaffolder's tarball (sh: 1: skills@1.7.2: not found). The verification refused it; the scaffold now names the tarball positionally (npx -y file:TARBALL), as the published one is named.
  • A recorded-driver end-to-end run (--driver recorded:F) is NOT MEASURED (listed below).

NOT MEASURED

  • A recorded-driver end-to-end run (--driver recorded:F). No recording of a card exists in this container, and making one needs a live model run, which is paused.
  • The agent's own later pnpm add in a workspace-mode project. It runs whatever pnpm that project directory resolves, because the pin covers only the runner's scaffold and settle steps. It stays on the tarballs through the overrides persisted in pnpm-workspace.yaml, but that mechanism is measured on pnpm 10.31 only. Under a Corepack whose unpinned default is a later major, it is not measured.

Acceptance notes

  • pnpm is pinned to the workspace's (round 2). Round 1 went red on Test Core (5/8) for packages.test.ts, while it was green locally. CI's pnpm is a Corepack shim, and the scaffolded project lives in a temp directory outside the checkout with no packageManager field, so Corepack resolved the registry's latest there: pnpm 12.18.0 on 2026-11-07. pnpm 12 reads none of npm_config_*, so the global pnpmfile went unread and the install asked npm for a version it never published. The container measured green only because its pnpm is a standalone 10.31.0. A real run on a machine whose pnpm is Corepack's would have failed the same way, so the fix is in the runner and not only in the test. prepareWorkspacePackages now writes a pnpm shim (pinnedPnpm, runner/packages.ts). It runs the pnpm on PATH from inside the checkout, where Corepack (or pnpm's own version management) resolves the root's packageManager pin, and points it at the caller's directory with --dir. The shim is refused unless it answers the same --version the checkout does. The scaffold and the settle install both run under a PATH led by it. The settle install still runs without the pnpmfile, so the lockfile records no pnpmfile checksum. Measured under a CI-shaped Corepack: the Corepack store afterwards holds only the pinned 10.31.0 and no lastKnownGood.json, so the setup-pnpm store guard's incident shape is not armed. The shim is a POSIX sh script, so workspace mode runs on Linux and macOS, not on Windows.

  • Why a pnpmfile and then overrides, not one of them. The scaffolder writes pnpm-workspace.yaml and installs in the same process, so overrides cannot be in place before its install; a global pnpmfile is the one pnpm 10.31 reads from the environment (npm_config_global_pnpmfile; pnpm_config_global_pnpmfile is not read, measured: the install reached for the registry). A lockfile written under a pnpmfile records its checksum, and a later install without it would re-resolve from npm; the persisted overrides plus the second install remove that path. Running the scaffolder with --skip-install and installing in the runner was rejected: it would copy the scaffolder's skills command into the runner, where a later bump of its pinned skills CLI would not follow.

  • Pack, not link, as the card expected: a tarball holds files[] only (pinned: a file outside files is absent from the installed package).

  • Scope of the overrides: every package the release publishes, not only the scaffold's closure, so a package the agent adds later is the workspace's too.

  • Workspace mode needs pnpm for the scaffolder's install; with npm the verification finds no .pnpm store and refuses the scaffold, never a silent npm install. The runner already runs inside this pnpm workspace.

  • A record written before this PR states no package source and is refused by the exporter; run the card again. Records are local, git-ignored output, and the gallery is not live yet.

  • The build step is the release's own and runs through turbo; a second run of an unchanged tree is a cache hit. A cold build of the scaffold closure plus the Console took 15 min here.

  • No change to create-objectstack: the scaffolder needed no hook, so nothing published moves and no changeset is owed (skip-changeset).

Verification

Round 2, head 38562001 (one commit on 4551309a, touching runner/packages.ts and test/runner/packages.test.ts only):

  • Reproduced CI's red under a CI-shaped Corepack (above). With the fix, packages.test.ts reports 9 passed both under that Corepack and under the standalone pnpm. The whole package under Corepack reports Test Files 24 passed (24), Tests 471 passed (471). tsc --noEmit exits 0.
  • Derived gates: 51 commands, all exit 0; --ran reconciliation: 51 run, 0 NOT-MEASURED. A first pass on the round-2 commit had check:cross-package-test-inputs exit 1, because the test read the repo-root package.json for the pin. The test now asks pnpm --version in its own directory instead, and the gate exits 0.

Round 1: all on head 4551309a, in worktree objectstack-issue-31147, base 8ef4d309; origin/main has moved 8 commits since, none under packages/qa/scenarios, packages/create-objectstack or packages/skills, and git merge-tree is clean.

  • Package suite, under the verify lock after pnpm --filter "@objectstack/scenarios..." build: pnpm --filter @objectstack/scenarios test → Test Files 24 passed (24), Tests 470 passed (470); pnpm --filter @objectstack/scenarios typecheck (tsc --noEmit, tests included) exit 0; VERDICT command-exit 0.
  • Lint scoped to the package: pnpm exec eslint packages/qa/scenarios --no-inline-config exit 0.
  • Derived gates: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack → 51 commands; all 51 run, each exit 0; --ran reconciliation: 51 derived, 51 run, 0 NOT-MEASURED, 0 UNRUN. (A first round on an earlier head read check-plugin-teardown-shape --self-test and check:dual-build-cjs-loads exit 3, prerequisite not met; after git fetch --depth=1 of the self-test's pinned commit and the package build, both exit 0 on this head.)
  • Changeset: none. The diff touches only the private @objectstack/scenarios ("private": true): skip-changeset.
  • Dogfood battery: n/a (no ! in the title, no (narrowing) arm).
The 51 derived gates, as run
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-adoption.mjs :: exit 0
node scripts/check-comment-mask-adoption.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-dts-emitted.mjs --self-test :: exit 0
node scripts/check-issue-citations.mjs :: exit 0
node scripts/check-plugin-teardown-shape.mjs :: exit 0
node scripts/check-plugin-teardown-shape.mjs --self-test :: exit 0
node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0
node scripts/docs-audit/check-affected-docs.mjs :: exit 0
node scripts/docs-audit/check-drift-comment.mjs :: exit 0
pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:dispatcher-error-vocabulary :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:dts-closure :: exit 0
pnpm check:dual-build-cjs-loads :: exit 0
pnpm check:engine-double-contract :: exit 0
pnpm check:error-status-conformance :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:issue-citations :: exit 0
pnpm check:keyed-text-bounds :: exit 0
pnpm check:lean-entry-closure :: exit 0
pnpm check:logger-receiver-detach :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:objectql-double-limit :: exit 0
pnpm check:org-identifier :: exit 0
pnpm check:page-declaration-shape :: exit 0
pnpm check:platform-object-tenancy-census :: exit 0
pnpm check:published-files :: exit 0
pnpm check:query-options-erasure :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:registry-log-declared :: exit 0
pnpm check:rest-log-spy-declared :: exit 0
pnpm check:slot-lookup :: exit 0
pnpm check:sourcemap-no-sources-content :: exit 0
pnpm check:system-context-census :: exit 0
pnpm check:test-source-alias :: exit 0
pnpm check:tier-file-adoption :: exit 0
pnpm check:type-check-coverage :: exit 0
pnpm check:type-check-debt :: exit 0
pnpm check:undeclared-dep-imports :: exit 0
pnpm check:vouch-for-reference-callers :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:where-matcher :: exit 0

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (Publishes nothing: skip-changeset.)
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (Not touched.)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

Generated by Claude Code

…porter refuses workspace records

`--packages workspace` builds and packs every package the release publishes,
scaffolds with the packed create-objectstack (its install pointed at the
tarballs by a global pnpmfile), persists the tarballs as pnpm overrides, and
refuses the scaffold unless every @objectstack/* package is a tarball and
.claude/skills/ equals the workspace catalog. Every record and scorecard
states its package source; the gallery exporter exports only published runs.

Claude-Session: https://claude.ai/code/session_01FEkQ5motx584vybgif8qQe
Co-Authored-By: Claude <noreply@anthropic.com>
…tional file: spec, and compare skills skill by skill

npx hands --package= to its children as npm_config_package, so the scaffolder's own
npx skills@... ran as a bin of the scaffolder tarball and installed no skill. The
sync copies each skill directory whole and leaves the catalog's top-level README.

Claude-Session: https://claude.ai/code/session_01FEkQ5motx584vybgif8qQe
Co-Authored-By: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 7, 2026
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tests labels Nov 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/scenarios, touching 47 documentable anchor(s). ⚠️ 3 changed file(s) yielded no anchor (packages/qa/scenarios/README.md, packages/qa/scenarios/src/export/cli.ts, packages/qa/scenarios/src/runner/index.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

24 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 66b17a3ed34b48a8270e5d61cbf7bfcb2fea898c.

⛔ 5 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 3 changed file(s) yielded no anchor (packages/qa/scenarios/README.md, packages/qa/scenarios/src/export/cli.ts, packages/qa/scenarios/src/runner/index.ts) — pages documenting those are invisible to this run
  • 12 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 63 of 226 client-bound route-ledger rows — the other 163 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 163: 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; 104 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 — 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 66b17a3ed34b48a8270e5d61cbf7bfcb2fea898c → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 66b17a3ed34b48a8270e5d61cbf7bfcb2fea898c

⚠️ 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 66b17a3ed34b48a8270e5d61cbf7bfcb2fea898c → pass the list as
args.docs, on the commit named under Which tree this was computed on.

The scaffolded project sits outside the checkout and pins no packageManager,
so under Corepack its pnpm resolved the registry's latest (pnpm 12), which
reads no npm_config_* variables: the global pnpmfile went unread and the
install asked npm for the unreleased version. Every pnpm the scaffold and the
settle step run now goes through a shim that runs the pnpm on PATH from inside
the checkout, where the root's pin applies, with --dir pointing at the caller.

The test workspace declares the repository's pin, asserts the project was
installed by it, and reports the scaffold's full output when it fails.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5motx584vybgif8qQe
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对

Verdict: ACCEPT · head 38562001b6482c348bf79c73f0e8952751b69fa6 · card #31147 · report 6710054609 plus the round-2 note in the PR body.

  • Shape: draft → main, Fixes #31147; 14 files, +746/-30, all inside the claim's file surface (6709192169): packages/qa/scenarios/src/runner/**, src/export/**, their tests and the package README. create-objectstack is untouched (no scaffold hook needed), so no changeset is owed for it.
  • Round 1 → round 2: the round-1 head was red on its own packages.test.ts in CI. Cause, reproduced under a CI-shaped Corepack: the scaffolded project sits outside the checkout with no packageManager pin, so Corepack resolved the registry's latest pnpm (12), which reads no npm_config_*; the global pnpmfile went unread. Fix read in the diff 4551309a..38562001: pinnedPnpm writes a POSIX sh shim that runs the PATH pnpm from inside the checkout with --dir set to the caller, and refuses unless it answers the checkout's own --version. Scaffold and settle both run under it (runCommand adds env to subscriptionOnlyEnv(), it does not replace it); settle still runs without the pnpmfile. A new case pins .modules.yaml's packageManager to the checkout's pnpm. Ablating the shim restores the CI error. No test skipped.
  • Gates (check-runs on this head): 33 success, 17 skipped, 0 failed, 0 pending, including Lint & Repo Gates, TypeScript Type Check and all eight Test Core shards. Local: 471/471 scenarios suite under Corepack, tsc 0, dispatch-gates --ran 51/51, 0 NOT-MEASURED.
  • Changeset: @objectstack/scenarios is private: true ⇒ skip-changeset correct. Clause-②: no; check-governed-merges --pr 31188: NOT governed, 776 lines ≤ 3000.
  • Accepted deviations (NOT MEASURED, stated in the PR body): the agent's later pnpm add in a real run uses whatever pnpm the project dir resolves, and the persisted overrides are measured on pnpm 10.31 only. The shim is POSIX sh, so Linux and macOS only.
  • Serial: Scenario runner: --model / --author-model / --ask-model, with the served model recorded per turn #31160 (PR feat(scenarios): run-scenarios --model / --author-model / --ask-model, with the served model recorded per turn #31204) and Scenario runner: an external driver contract (--driver external:<cmd>) and a Codex driver, so the same card can measure other agent tools; check WorkBuddy #31159 share runner/cli.ts and queue behind this landing.
  • 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 18:03
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge November 7, 2026 18:03
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 7, 2026
Merged via the queue into main with commit 86e9ef0 Nov 7, 2026
51 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-r1z0z3 branch November 7, 2026 18:41
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/l skip-changeset PR has no user-facing published change; bypasses the changeset gate tests

Projects

None yet

1 participant