Repository navigation
Commit 232d3bb
chore(devx): launch entries for the scheduled-work and react-pages-off showcase boots (#30154)
<!-- claude-projects-attribution: {"github_login":"marchtian"} -->
_Requested by **田騏** · [project
thread](https://claude.ai/code/project/chan_01VmuUhXU9SSUzqJYyXSmYSi?thread=cmsg_01VmuUhXU9SSUzqJYyXSmYSiNjyvCdXYygFqntMNR7S2dW)_
Fixes #29819
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:`.claude/launch.json` 新增两条可直接启动的 showcase 配置(3778 开启定时任务、3779 关闭
React 页面),两个 Studio 检查项改为点名这两条配置。
- 为什么改:QA 只能从 launch.json 起服务,原来没有这两种启动方式,`flow-status-matches-runtime`
的定时腿和 `custom-page-source-tiers` 的关闭态每次都只能记 partial / blocked。
- 风险与回滚:只加配置和检查清单文字,不动任何发布包和运行时代码;回滚即 revert 本 PR。
- 先看:`.claude/launch.json`(两条新配置的 env
写法),`docs/qa/platform-checklist/areas/studio-authoring.json` 的
flow-status-matches-runtime(定时腿改在新配置的独立库上重建流程)。
- 两分钟验证:`jq -r '.configurations[].name'
.claude/launch.json`,预期三行:showcase-dogfood-3777、showcase-scheduled-work-3778、showcase-react-pages-off-3779。
- 需要你做的:无,`.claude/**` 属 Tier S,席位凭当前 head 的 Contract review PASS 落地。
## What changes
- `.claude/launch.json` gains two entries beside
`showcase-dogfood-3777`. Each has its own port and its own
`file:/tmp/...` DB, and exports `OS_PORT` as RUNNER.md asks for any
non-3000 boot:
- `showcase-scheduled-work-3778` exports
`OS_AUTOMATION_SCHEDULED_WORK_ENABLED=1`. DB:
`file:/tmp/showcase-scheduled-work-3778/data.db`.
- `showcase-react-pages-off-3779` exports `OS_PAGE_REACT_ENABLED=false`.
DB: `file:/tmp/showcase-react-pages-off-3779/data.db`.
- How the env is set: the launch format this repo uses has no `env` key
anywhere. Both committed launch files use only `name`,
`runtimeExecutable`, `runtimeArgs`, `port` and `url`. The repo already
sets env from an entry through its runtime command:
`ui/.claude/launch.json` `console-build-test` runs `bash -lc "...
VITE_SERVER_URL= DEV_PROXY_TARGET=... exec pnpm dev ..."`. The new
entries do the same thing with `runtimeExecutable: "env"`, so no shell
string is needed and the argument list stays readable.
- `docs/qa/platform-checklist/areas/studio-authoring.json`:
- `studio-authoring.flow-status-matches-runtime` (rev 4 to 5).
`fixtures.requires[2]` and `steps[4]` name
`showcase-scheduled-work-3778` as the schedule leg's second boot. That
entry has its own DB, so the step authors the writable package's
schedule flow again there and runs it beside the default boot.
`steps[5]` now says it stays on the default boot. `acceptance[3].clause`
now reads "a schedule flow authored the same way" (the flow is
re-authored on that entry's own DB). A history row was added.
- `studio-authoring.custom-page-source-tiers` (rev 5 to 6).
`fixtures.requires[1]` and `steps[6]` name
`showcase-react-pages-off-3779` as the off-state boot of the both-sides
gate. The blocked(environment) fallback now applies only if that entry
cannot boot. No clause changed. A history row was added.
- The card's third gap, `studio-authoring.picklist-bound-select`, is
already met and is not touched here. PR #30128 (merged as 55337f4)
re-pointed its `fixtures.requires[0]` to a picklist and a
picklistExtensions entry added in a scratch copy of the showcase, never
the shared tree (item rev 5). So that item no longer needs a seed change
to `examples/app-showcase/objectstack.config.ts`, and this PR changes
nothing under `examples/app-showcase/**`.
## Tests
No code changed, so there is no unit test. The evidence is the boot
probe and the gates below.
## Acceptance notes
- `OS_PAGE_REACT_ENABLED=false` does override the showcase's committed
`.env` value `OS_PAGE_REACT_ENABLED=true`. `os dev` loads `.env*`
through `dotenvFlow.config` (`packages/cli/src/commands/dev.ts:432`).
dotenv-flow 4.1.0 sets a file variable only when
`!process.env.hasOwnProperty(varname)`
(`node_modules/.pnpm/dotenv-flow@4.1.0/.../lib/dotenv-flow.js:193`). The
CLI notes the same precedence at
`packages/cli/src/commands/doctor.ts:448` and
`packages/cli/src/utils/schema-migrate.ts:906`. The serve path reads the
variable at `packages/cli/src/utils/console.ts:930-942`
(`readReactPagesTier`; `false` is in `REACT_PAGES_OFF`).
- `OS_AUTOMATION_SCHEDULED_WORK_ENABLED=1` is an accepted ON value:
`resolveScheduledWorkEnabled()` accepts `1`, `true`, `on` and `yes`
(`packages/types/src/env.ts:237-240`).
- The new entries carry `--no-compile` and `--no-watch` (contract review
6637078272, S1): the schedule leg boots beside the default boot of the
same checkout, and a compiling boot would rewrite the shared
`dist/objectstack.json` the live boot's artifact watcher re-ingests.
`--no-compile` still compiles when the artifact is missing
(`packages/cli/src/utils/dev-compile-at-boot.ts`).
`showcase-dogfood-3777` boots alone and is unchanged.
## Verification
<details><summary>Boot probe (head 71ec4cc, built closure of the
showcase plus the CLI)</summary>
- `showcase-scheduled-work-3778`, booted with the exact entry args:
health 200. The banner printed `32 flow(s) 21 bound`. With an
authenticated `GET /api/v1/automation/_status`,
`showcase_scheduled_digest` answered `bound: true` (triggerType
schedule) and `showcase_task_due_reminder` answered `bound: true`
(time_relative).
- `showcase-react-pages-off-3779`, booted with the exact entry args as
the control leg (no scheduled-work switch): health 200, and the banner
printed `32 flow(s) 19 bound`, the default-boot count RUNNER.md records.
- The react-pages-off rendering itself is NOT MEASURED in the browser.
This container has no `packages/console/dist`, and the boot logged
`ConsoleNotBuilt`. The env precedence above was measured directly
instead. With `OS_PAGE_REACT_ENABLED=false` exported,
`dotenvFlow.config` in `examples/app-showcase` kept `false`. With it
unset, it loaded `true` from `.env`.
- Both servers were stopped by process group, and their `/tmp` DB
directories were removed.
</details>
<details><summary>Gates (dispatch-gates --commands at 71ec4cc, 19
derived)</summary>
All 19 derived commands exited 0. Seven of them first exited 3
(PREREQUISITE NOT MET) before `pnpm install --frozen-lockfile`, and
`check:doc-formula-expressions` also needed its formula and lint build.
Each was re-run after that, and those re-runs exited 0. `--ran`
reconciliation: 19 derived, 19 run, 0 NOT-MEASURED (a derived zero).
`node scripts/check-platform-checklist.mjs`: OK, 16 areas and 360 items.
</details>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- signed: domain:devx#2 · marchtian ·
session_017ihL2ebbZkr2QAEG1x7UC8 -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 917f024 commit 232d3bb
2 files changed
Lines changed: 62 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
21 | 67 | | |
22 | 68 | | |
23 | 69 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1282 | 1282 | | |
1283 | 1283 | | |
1284 | 1284 | | |
1285 | | - | |
| 1285 | + | |
1286 | 1286 | | |
1287 | 1287 | | |
1288 | 1288 | | |
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
1292 | 1292 | | |
1293 | | - | |
| 1293 | + | |
1294 | 1294 | | |
1295 | 1295 | | |
1296 | 1296 | | |
| |||
1304 | 1304 | | |
1305 | 1305 | | |
1306 | 1306 | | |
1307 | | - | |
| 1307 | + | |
1308 | 1308 | | |
1309 | 1309 | | |
1310 | 1310 | | |
| |||
1369 | 1369 | | |
1370 | 1370 | | |
1371 | 1371 | | |
1372 | | - | |
| 1372 | + | |
| 1373 | + | |
1373 | 1374 | | |
1374 | 1375 | | |
1375 | 1376 | | |
| |||
2651 | 2652 | | |
2652 | 2653 | | |
2653 | 2654 | | |
2654 | | - | |
| 2655 | + | |
2655 | 2656 | | |
2656 | 2657 | | |
2657 | 2658 | | |
| |||
2662 | 2663 | | |
2663 | 2664 | | |
2664 | 2665 | | |
2665 | | - | |
| 2666 | + | |
2666 | 2667 | | |
2667 | 2668 | | |
2668 | 2669 | | |
2669 | 2670 | | |
2670 | 2671 | | |
2671 | 2672 | | |
2672 | 2673 | | |
2673 | | - | |
2674 | | - | |
| 2674 | + | |
| 2675 | + | |
2675 | 2676 | | |
2676 | 2677 | | |
2677 | 2678 | | |
| |||
2693 | 2694 | | |
2694 | 2695 | | |
2695 | 2696 | | |
2696 | | - | |
| 2697 | + | |
2697 | 2698 | | |
2698 | 2699 | | |
2699 | 2700 | | |
| |||
2741 | 2742 | | |
2742 | 2743 | | |
2743 | 2744 | | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
2744 | 2751 | | |
2745 | 2752 | | |
2746 | 2753 | | |
| |||
0 commit comments