Skip to content

feat(scaffold): new projects run their tests in CI - #35260

Merged
os-zhuang merged 2 commits into
mainfrom
claude/project-thread-xrqhmc
Nov 19, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/project-thread-xrqhmc

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Warren · project thread

Fixes #35218

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:脚手架生成的项目在 CI 里跑 pnpm test。npm create objectstack 模板的 ci.yml 在 validate、lint、typecheck 之后加一步 pnpm test;os init -t app 和 -t empty 加上 test: vitest run、vitest 开发依赖和一个样板测试(app.test.ts、project.test.ts,只读项目定义,不启动引擎)。技能 objectstack-project §2 改成「脚手架 CI 四步都跑」。
  • 为什么改:skills: a published project-process skill for metadata apps — areas and grades, first touch, which document at which stage, testing and acceptance #35218 的最后一项(「新脚手架的应用在 CI 里跑测试」)。feat(skills): objectstack-project, a process skill for metadata-app projects #35221 里单加 CI 步骤会让 cli 的两条脚手架钉子测试变红:os init 的模板要声明 CI 跑的每个脚本,且声明了 test 就必须带一个能过的样板测试(空测试集必须失败,不能用 --passWithNoTests)。
  • 风险与回滚:只改脚手架模板和文本,不动运行时;已有项目不受影响。os init -t app/empty 新项目多装一个 vitest。回滚即 revert。
  • 先看:packages/cli/src/commands/init.ts(app/empty 两个模板);packages/create-objectstack/src/templates/blank/.github/workflows/ci.yml;skills/objectstack-project/SKILL.md §2 第一段。
  • 两分钟验证:pnpm --filter @objectstack/cli exec vitest run test/scaffold-test-script-passes.test.ts test/scaffold-ci-script-parity.test.ts 通过(需先构建 cli 的依赖);pnpm --filter create-objectstack exec vitest run src/template-ci-workflow.test.ts 通过。
  • 需要你做的:改了 skills/**,Tier H,需 os-zhuang 在 GitHub 上 Approve。

What changes

  • Bundled template (create-objectstack): .github/workflows/ci.yml runs pnpm test after typecheck; template-ci-workflow.test.ts now requires the test step beside validate, lint and typecheck.
  • os init (packages/cli/src/commands/init.ts): the app and empty templates declare test: 'vitest run' and vitest (the shared SCAFFOLD_VITEST_RANGE), and ship one starter test each, shaped like the plugin template's package.test.ts: importing the config runs defineStack(), and the test asserts the manifest type (and, for app, that every object src/objects exports is handed to the stack). The comment points at @objectstack/verify bootStack for tests that need the engine. The empty description says it now carries one starter test.
  • Pins adjusted to the new shape: init-scaffold-authoring-rules.test.ts picks the templates that emit an object file (it used "has any srcFiles", which empty now has with no object); generate-scaffold-wiring.test.ts's two empty cases assert no file under src/ rather than no file at all. scaffold-test-script-passes.test.ts derives its roster from TEMPLATES and now runs app and empty too; its header's spawn count is updated.
  • Skill: objectstack-project §2 says a scaffolded project's CI runs all four checks, an older scaffold may lack the pnpm test step, and a project adds vitest, the test script and @objectstack/verify (for bootStack) where missing. 2901 tokens against its ceiling of 2901 (row unchanged).
  • Docs: content/docs/deployment/cli.mdx template table, empty row.

Contract review

Round 1 on ef3f4b5: PASS with two should-fixes (the test budget, and the skill's @objectstack/verify sentence), both fixed in bffdcfc; delta review on bffdcfc: PASS, nothing open.

Tests

  • @objectstack/cli (after building its workspace deps), every init* and scaffold* test file: 302 passed, 2 skipped; the two *-mcp-stdio-early-initialize.integration files need a built packages/cli/dist and fail to load on the base tree the same way locally.
  • scaffold-test-script-passes.test.ts: os init -t app, -t plugin and -t empty each pass their emitted test script in a sandbox; the empty-suite control fails as required.
  • create-objectstack: 25 files / 381 tests pass.
  • Skill gates: token ratchet, check:role-word, check:skill-links, check:skill-compatibility, check:skill-identifier-liveness, check:skill-frame-sync; check:scaffold-emission-policy; changeset gates.

Acceptance notes


🤖 Generated with Claude Code

https://claude.ai/code/session_01JQwxbWfVxrJ6N3xZaG1Eoe

The bundled template's ci.yml runs `pnpm test` after validate, lint and
typecheck. `os init -t app` and `-t empty` declare `test: vitest run`, list
vitest, and ship one starter test each (app.test.ts, project.test.ts) that
reads the definition, so the CI parity and starter-test pins hold for every
scaffolder. The objectstack-project skill's §2 says the CI runs all four.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbWfVxrJ6N3xZaG1Eoe
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 19, 2026
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/cli, objectstack-blank, touching 3 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/create-objectstack/src/templates/blank/.github/workflows/ci.yml), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

6 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/deployment/cli.mdx (via os init (command, read off packages/cli/src/commands/init.ts))
  • content/docs/deployment/troubleshooting.mdx (via os init (command, read off packages/cli/src/commands/init.ts))
  • content/docs/getting-started/examples.mdx (via os init (command, read off packages/cli/src/commands/init.ts))
  • content/docs/getting-started/your-first-project.mdx (via os init (command, read off packages/cli/src/commands/init.ts))
  • content/docs/plugins/index.mdx (via os init (command, read off packages/cli/src/commands/init.ts))
  • content/docs/protocol/kernel/index.mdx (via os init (command, read off packages/cli/src/commands/init.ts))

⛔ 5 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-1.mdx (via os init (command, read off packages/cli/src/commands/init.ts))
  • content/docs/releases/v17/17-4.mdx (via os init (command, read off packages/cli/src/commands/init.ts))
  • content/docs/releases/v17/17-5.mdx (via os init (command, read off packages/cli/src/commands/init.ts))
  • content/docs/releases/v17/17-7.mdx (via os init (command, read off packages/cli/src/commands/init.ts))
  • content/docs/releases/v18/18-1.mdx (via os init (command, read off packages/cli/src/commands/init.ts))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/create-objectstack/src/templates/blank/.github/workflows/ci.yml) — pages documenting those are invisible to this run
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • 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 — 40 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 f4dbcc2153566226f283c79c73255369c2c97587 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json f4dbcc2153566226f283c79c73255369c2c97587

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

epic:#35205#2 · os-warren · session_01JQwxbWfVxrJ6N3xZaG1Eoe

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ef3f4b5b03ab534867f05728917e9aa5a2baa756
Local-runs: none
Scope: skills/objectstack-project/SKILL.md + packages/create-objectstack/src/templates/blank/.github/workflows/ci.yml, packages/cli/src/commands/init.ts, packages/create-objectstack/src/template-ci-workflow.test.ts, packages/cli/test/scaffold-test-script-passes.test.ts, packages/cli/test/init-scaffold-authoring-rules.test.ts, packages/cli/test/generate-scaffold-wiring.test.ts
Security-touching: no

Read: card #35218 (body and its 3 comments), PR #35260 (body, 9 files, 58 check-runs on the head), the net diff, and the cited code in the tree at the head. .changeset/** and content/docs/deployment/cli.mdx are outside this record: the lane seat's ACCEPT.

① Derived judgments

  • No accept-set changes: no schema, no validator, no lint rule, no protocol file is in the diff. Right.
  • Public surface, scaffold output of os init -t app and -t empty: each gains scripts.test: 'vitest run', devDependencies.vitest at SCAFFOLD_VITEST_RANGE, and one root-level test file (app.test.ts, project.test.ts). Additive, and only for projects created after the release. Right. -t plugin and os create plugin are unchanged.
  • Public surface, bundled template: ci.yml gains a fourth step, pnpm test, after typecheck. The template's package.json already declares test: vitest run, vitest, @objectstack/verify, and ships note.test.ts and vitest.config.ts, so the step has a script and a test to run. Right.
  • Cross-scaffolder parity (scaffold-ci-script-parity.test.ts, not in the diff, read): it derives the required scripts from the workflow, so the new step makes test required of every TEMPLATES entry with the same command as the template. All three entries now declare test: 'vitest run', equal to the template's value. Right.
  • Gate verdicts on the head: all 58 check-runs concluded; none failed. Test Core (aggregate and shards 1/10 to 10/10), Type Check jobs, Lint jobs, Check Changeset, Scaffold with repo dist, Scaffold outside the monorepo, install, build and Governed Surface Queue Guard are success; the rest are skipped by path filter.

② Semver level

  • Changeset .changeset/35218-scaffold-ci-runs-tests.md: create-objectstack, @objectstack/cli and @objectstack/skills at patch. The diff publishes template text, scaffold emission and skill wording; no API, schema or runtime behaviour changes, and no existing project changes. Patch matches. Check Changeset is success.
  • Clause-②: no. The PR body and the changeset both carry Clause-②: no and Metadata-protocol: none; the diff touches no packages/spec file and narrows nothing. Agreed.

③ Boundary flags

  • Dev flag (PR body, acceptance notes): the test-budget: 20 line rests on a reading taken with eight spawns, and "the CI reading on this PR is checked before ACCEPT and the budget re-measured if it no longer fits". Not answered on this head: the check-runs give job wall times only (Test Core shards ran between 3 min 11 s and 19 min 2 s), not this file's duration, and nothing on the card or the PR records a reading. See S1.
  • Card comment 6987973072: the ci.yml item was deferred from feat(skills): objectstack-project, a process skill for metadata-app projects #35221 until os init -t app and -t empty ship starter tests. This PR delivers exactly that. Answered.
  • Card "Open" items (grade, experimental_sync on an installed app, Tier H approval): not changed by this diff. The Tier H approval stays owed; the PR is still a draft.
  • Card "Done when", third item (hotcrm's docs/PRIORITIES.md): outside this repository. The PR says Fixes #35218, which closes the card on merge with that item open elsewhere. For the lane seat to confirm against hotcrm#2661; not a finding on this diff.
  • SQL push-down: the diff has no query, no id materialisation and no join. Nothing to flag.

④ Design judgment

skills/objectstack-project/SKILL.md (hits). The §2 sentence now reads: a scaffolded project's CI runs all four checks; an older scaffold may lack the pnpm test step; with no test script, add vitest, @objectstack/verify and the script.

  • npm create objectstack: holds. The template's workflow runs validate, lint, typecheck, test, and template-ci-workflow.test.ts now requires all four.
  • os init -t app / empty / plugin: pnpm validate && pnpm lint && pnpm typecheck && pnpm test now works on all three (it did not on app and empty before). init.ts emits no workflow, so "a scaffolded project's CI" is true of these only after the project takes the template's ci.yml. That generalisation was already in the sentence feat(skills): objectstack-project, a process skill for metadata-app projects #35221 landed ("runs the first three") and is not made worse here.
  • os create plugin: declares test and typecheck, no validate or lint, and no CI. It is a kernel code plugin, which the skill's description and §2 ("A plugin's own tests use LiteKernel") send to objectstack-platform. Outside what the sentence claims; unchanged by the diff.

S2 (should-fix) — the skill no longer tells an os init project to add @objectstack/verify. The sentence adds verify only under "No test script?". After this PR every os init template declares a test script and none declares @objectstack/verify (init.ts, the three devDependencies getters), so the condition is false for exactly the projects this PR creates. The old sentence ("A project from os init has no test script: add vitest, @objectstack/verify and the script first") did reach them. §2 then teaches bootStack from @objectstack/verify and points at the README in node_modules/@objectstack/verify, neither of which exists in such a project. The card's eval scenario "a business-fact test" on an os init -t app project now starts with an unresolved import the skill did not predict. The starter test's own comment says to add the package, but the skill is the contract under review. Fix: key the instruction on what is missing (no test script, or no @objectstack/verify in devDependencies), within the token ceiling.

packages/create-objectstack/src/templates/blank/.github/workflows/ci.yml. The step is - run: pnpm test, last in the job, inside the existing 15-minute timeout. Its comment (business facts pinned with bootStack, note.test.ts is the shape) is true of the template it ships in. Agrees with the skill.

packages/cli/src/commands/init.ts. app.test.ts is the plugin template's package.test.ts with the manifest type changed: it imports the config (so defineStack() runs its strict parse) and asserts every export of src/objects is in stack.objects. project.test.ts asserts the manifest type and a truthy namespace, both of which the empty config writes. Both sit at the project root, inside the emitted tsconfig's *.ts include, so typecheck covers them. Neither uses --passWithNoTests or an empty suite. The empty description string and the code comments match the emission. Agrees with the skill and the changeset.

packages/create-objectstack/src/template-ci-workflow.test.ts. One assertion added (invoked contains test); nothing removed. Strengthened.

packages/cli/test/generate-scaffold-wiring.test.ts. The two empty cases moved from "no file at all" to "no file in a directory" and "no file under src/". Each still holds what its title claims (no directory to wire; no object for an app or a view to name), and the not.toContain('import * as') half is untouched. Adapted, not weakened.

packages/cli/test/scaffold-test-script-passes.test.ts. The roster is derived, so it now holds app, plugin and empty; each must emit a test file, exit 0, pass at least one test, and run exactly the shipped files. The control now runs on ROSTER[0], which is app rather than plugin; it still deletes the shipped tests and requires a non-zero exit. The spawn count in the header is correct: seven vitest runs and three tsc runs. Not weakened.

S1 (should-fix) — the test-budget: 20 line states a derivation that no longer measures this file. The grammar in scripts/measure-test-shard-timings.mjs defines SECONDS as the measured CI reading x 1.25, rounded up to the next 10 s. The line now says "ten spawns" and keeps "slowest CI reading 14.9 s (run 41217827347) ... x 1.25, rounded up", a reading taken when the file spawned eight times. No reading of the ten-spawn file is on the line, the card or the PR, and this head's check-runs do not expose one, so whether 20 still fits is unknown. Scaled by spawn count the reading would be about 18.6 s, which the grammar rounds to 30, not 20; the PR body's 14.95 s is a local run, not a CI reading. Fix: read this file's duration from the head's Test Core run and put that reading on the line, keeping 20 if it is at or under 16.0 s and declaring 30 otherwise.

N1 (nit) — packages/cli/test/init-scaffold-authoring-rules.test.ts: the OWD case's roster is now built with the same predicate its body uses to collect object files, so expect(objectSources.length).toBeGreaterThan(0) can no longer fail, and a template whose object files moved out of src/objects/ would leave the roster silently instead of failing. Today's coverage is unchanged: app and plugin are both still in the roster, the first case in the file runs the author-time rules (including the OWD rule) on every template, and generate-scaffold-wiring.test.ts pins that both templates' starter object reaches the stack. Left as an accepted deviation; a follow-up could assert the roster contains app and plugin.

N2 (nit) — os init with no name scaffolds into the current directory and writeTemplateSrcFiles overwrites plain files. -t empty used to write nothing but the config there; it now overwrites an existing root project.test.ts (and -t app an existing app.test.ts). The same already held for the app and plugin files under src/ and for package.test.ts. Left as a follow-up.

Implemented-by: claude/project-thread-xrqhmc
Reviewed-by: session_01JQwxbWfVxrJ6N3xZaG1Eoe

VERDICT: PASS

- S1: the starter-test file's budget is re-measured for ten spawns (local
  11.6 s -> 16.4 s against eight, scaled from the 14.9 s CI reading) and
  declared at 30.
- S2: the skill tells every project to add `@objectstack/verify` where it is
  missing, not only a project without a `test` script.

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

Copy link
Copy Markdown
Contributor Author

epic:#35205#2 · os-warren · session_01JQwxbWfVxrJ6N3xZaG1Eoe

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: bffdcfc9cdd53804a136f77f74579d20ac0df295
Local-runs: none
Scope: skills/objectstack-project/SKILL.md + packages/cli/test/scaffold-test-script-passes.test.ts
Security-touching: no

Delta review of the record on ef3f4b5b03ab534867f05728917e9aa5a2baa756. Read: the delta diff between the two heads (two files, one line pair each), the two changed lines in the tree at this head, the test-budget grammar in scripts/measure-test-shard-timings.mjs, and the check-runs on this head. Everything the earlier record judged outside these two hunks is unchanged and stands as judged there.

① Derived judgments

  • The delta changes no accept-set and no public surface beyond one sentence of skill wording and one test-file header comment. Right.
  • Gate verdicts on this head are NOT in yet. At the time of reading, 28 check-runs are listed: 5 concluded as skipped (opt-in and queue jobs), 23 are in progress, none has failed, and the Test Core, Build Core and Build Docs jobs have not been created yet. This record judges the design only. The seat adopting it must wait for the conclusions, in particular the lint job that carries the skill token ratchet (the skill sat at 2896 of 2901 before this delta) and Test Core.

② Semver level

  • The changeset is not in the delta. Patch on create-objectstack, @objectstack/cli and @objectstack/skills still matches what the diff publishes.
  • Clause-②: no. Unchanged, and agreed: the delta touches no packages/spec file and narrows nothing.

③ Boundary flags

  • The dev flag on the test budget (the earlier record's ③, first entry) is answered by the new header line; see S1 below.
  • The PR body still describes the earlier head: it says test-budget: 20 and that the skill tells "a project with no test script" to add the three pieces. The tree is what is judged, so this is not a finding; the lane seat may want the body brought in step before ACCEPT.
  • The other entries of the earlier ③ are unchanged.
  • SQL push-down: nothing in the delta queries anything.

④ Design judgment

S1: closed

The line now declares test-budget: 30 and states where the number comes from: the CI reading of 14.9 s at eight spawns, a local measurement on this change of 11.6 s at eight spawns and 16.4 s at ten, the ratio 1.41, an estimate of about 21.0 s on CI, x 1.25, rounded up. The arithmetic holds (16.4 / 11.6 = 1.41; 14.9 x 1.41 = 21.0; 21.0 x 1.25 = 26.3, rounded up to 30). The line still parses under the grammar: one header line, a whole multiple of 10 above the 10 s line, an existing class, a non-empty reason.

Is a local ratio an honest reading? The grammar asks for a measured CI reading, and this is an estimate built on one, not a CI reading at ten spawns. It is honest for three reasons. The line says so in its own words, so no reader takes 21.0 s for a measurement. The grammar lets a budget rise only by a PR that re-measures and says why, and this one does both. And the declared number does not depend on the method: any CI reading from 16.0 s to 24.0 s rounds to 30, and both the dev's estimate (21.0 s) and the plain spawn-count scaling in the earlier record (18.6 s) fall inside that range. The local figures themselves are the dev's and were not reproduced here. If the scheduled window later reads the file above 24.0 s it will be listed against its budget, which is the grammar working as designed.

S2: closed

The sentence now reads "Add vitest, the test script and @objectstack/verify (for bootStack) where missing." The instruction is keyed on each piece being absent, not on the test script alone, so it reaches an os init -t app, -t empty or -t plugin project (script and vitest present, @objectstack/verify absent) as well as an older scaffold with no script. It names what verify is for, which ties it to the bootStack passage further down §2. It still holds for npm create objectstack, where nothing is missing. The first half of the sentence is unchanged.

N1 and N2 from the earlier record are unchanged: accepted deviation and follow-up.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-xrqhmc
Reviewed-by: session_01JQwxbWfVxrJ6N3xZaG1Eoe

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

epic:#35205#2 · os-warren · session_01JQwxbWfVxrJ6N3xZaG1Eoe

维护者速读(席位终稿,head bffdcfc9)

  • 改了什么:脚手架生成的项目在 CI 里跑 pnpm test。npm create objectstack 模板的 ci.yml 在 validate、lint、typecheck 后加 pnpm test;os init -t app 和 -t empty 加 test: vitest run、vitest 开发依赖和一个样板测试(只读项目定义,不启动引擎);技能 objectstack-project §2 改成 CI 四步都跑、缺什么补什么。
  • 为什么改:skills: a published project-process skill for metadata apps — areas and grades, first touch, which document at which stage, testing and acceptance #35218 剩下的一项(新脚手架的应用在 CI 里跑测试)。feat(skills): objectstack-project, a process skill for metadata-app projects #35221 里单加这一步会让 cli 的脚手架钉子测试变红,所以要两个脚手架一起改。
  • 风险与回滚:只改脚手架模板、测试和文本,不动运行时;已有项目不受影响。样板测试文件的耗时预算从 20 秒调到 30 秒(多跑两次子进程)。回滚即 revert。
  • 先看:packages/cli/src/commands/init.ts(app/empty 两个模板);packages/create-objectstack/src/templates/blank/.github/workflows/ci.yml;skills/objectstack-project/SKILL.md §2 第一段。
  • 两分钟验证:pnpm --filter create-objectstack exec vitest run src/template-ci-workflow.test.ts 通过;CI 上 Test Core 全绿(含 scaffold-test-script-passes、scaffold-ci-script-parity)。
  • 需要你做的:改了 skills/**,Tier H,请 @os-zhuang 在 GitHub 上 Approve。契约复审 PASS 在案:评论 6996588014,Head-sha bffdcfc9cdd53804a136f77f74579d20ac0df295(第 1 轮 6996494963 的 2 条 should-fix 已关闭)。@os-warren 知会。

席位意见:可以合。合并后 #35218 关闭;卡片第三项 hotcrm docs/PRIORITIES.md 归 hotcrm#2661。

席位核对 — ACCEPT · epic:#35205#2 · head bffdcfc9cdd53804a136f77f74579d20ac0df295

  1. 形态:9 个文件:init.ts、3 个 cli 测试、模板 ci.yml 和它的测试、技能 1 处、cli 文档 1 处、changeset。无 packages/spec/src/**,无运行时代码。Clause-②: no,Metadata-protocol: none。
  2. 前提实测:本地构建 cli 依赖后跑全部 init* / scaffold* 测试 302 过(两份 MCP 集成测试需 cli 自身 dist,基线同样加载失败);os init -t app/plugin/empty 的样板测试在沙盒里各自通过,空测试集对照失败。耗时本地 8 次子进程 11.6 秒、10 次 16.4 秒。
  3. 门禁 check-runs:head bffdcfc9 上 62 个 check-run 全部 success 或预期 skipped,无红。
  4. 接受的偏差:N1(OWD 名单与测试体同一谓词,守卫不会失败;覆盖面不变)留作接受的偏差。
  5. 范围外去向:N2(无名 os init 在非空目录会覆盖同名根目录测试文件,其他模板文件早已如此)留作后续;hotcrm 那一项归 hotcrm#2661。Skills-docs: 不适用。
  6. 落地条款:Tier H,等 os-zhuang Approve;批准后席位做落地前检、清 pm:awaiting-merge、翻 ready、入队。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 19, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 19, 2026 02:17
@os-zhuang
os-zhuang enabled auto-merge November 19, 2026 02:17
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 0188989 Nov 19, 2026
68 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-xrqhmc branch November 19, 2026 02:39
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 19, 2026
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/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skills: a published project-process skill for metadata apps — areas and grades, first touch, which document at which stage, testing and acceptance

3 participants