Repository navigation
fix(qa): walled-boot boots --no-compile --no-watch, contributor-member grows --position, RUNNER.md carries the v18.4.0 sweep's environment facts - #33367
Merged
Conversation
…ributor-member grows --position walled-boot spawned `os dev` with the compile and watch defaults, so on a shared checkout it rewrote the showcase's dist/objectstack.json under every other runner and recompiled it on a source save. It now passes --no-compile --no-watch, as RUNNER.md prescribes for a shared tree. contributor-member gains --position NAME: it binds one more position through the same sys_user_position POST step 3 sends, after the subset proof, and re-reads the stored row. The approvals persona (showcase_finance) no longer needs a separate POST. Claude-Session: https://claude.ai/code/session_01FEkQ5ngu3885adndgvQofR Co-authored-by: Claude <noreply@anthropic.com>
Each fact re-measured at 87330e8 (source reading or a live boot): the install ledger follows OS_HOME and the DELETE door removes its file; a --no-compile boot serves the last compile's environment; a plain scratch copy keeps pnpm's relative links; the canonical boot's shared-tree exports and flags; localhost-only origin and curl's empty-header spelling; the setsid list form; vitest 4's --maxWorkers and the spec-declarations need of tsc pins; the live e2e proxy and timeout; item-by-item result writes; and the two qa-fixture changes. Claude-Session: https://claude.ai/code/session_01FEkQ5ngu3885adndgvQofR Co-authored-by: Claude <noreply@anthropic.com>
This was referenced Nov 14, 2026
Contributor
Author
|
domain:devx#4 · os-project-manager · session_01FEkQ5ooRyyS95kdyC2dPEX 席位核对 · ACCEPT · head
|
This was referenced Nov 14, 2026
Merged
scbdzhwl
pushed a commit
to scbdzhwl/objectstack-analysis
that referenced
this pull request
Nov 16, 2026
…the boot's OS_PORT (objectstack-ai#33406) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XAvhM3jY1jCc9QWVrVgRVuA)_ domain:devx#4 · os-project-manager · session_01FEkQ5ngu3885adndgvQofR Fixes objectstack-ai#33371 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:只改 `docs/qa/platform-checklist/RUNNER.md` 里「showcase 自连连接器」那一条。旧文说导出 `OS_PORT` 就能修好,新文写明实测事实:连接器地址在编译时定下,`--no-compile` 启动时导出 `OS_PORT` 不起作用。两条可行路线都实测过,并写明哪条在共享检出上安全。另补一段端口被占时自动顺延的说明。 - 为什么改:旧文和 RUNNER 自己「共享检出用 `--no-compile`」的规定互相矛盾,照做的跑测会把正确的产品判成 BLOCKED。产品行为与 `self-url.ts` 头注释一致,过时的是 RUNNER。 - 风险与回滚:只改一份 QA 文档,不动产品、不发布。回滚即还原本 PR。 - 先看:`RUNNER.md` 连接器条目里的「Two routes work」两条路线,以及「A held port moves the boot」那一段。 - 两分钟验证:`pnpm check:platform-checklist`,预期退出码 0。 - 需要你做的:无,席位落地。 ## What changes `docs/qa/platform-checklist/RUNNER.md` only: - The connector self-URL entry is rewritten. The new headline says the connectors dial the self-URL the artifact was **compiled** with, so on a `--no-compile` boot an exported `OS_PORT` does not move it. The entry no longer prescribes `OS_PORT` as the fix there. Instead it says plainly that neither `OS_PORT` nor `SHOWCASE_SELF_URL` is read until the next compile. - It names two routes, each measured below, and says which is safe on a shared checkout. Route 1 compiles in a private copy and is safe. Route 2 uses the default compile on the tree, which rewrites the shared `dist/objectstack.json`, so it is only for a checkout no other runner boots. - It keeps the warning that `fetch failed` impersonates an egress block. The QA run objectstack-ai#25817 reading (at `6679644a`) is now dated as pre-objectstack-ai#26130 and marked as no longer holding. The `2889760a` paragraph is dropped because the measured entry supersedes it. - The stale "`-p` alone is not enough" headline is gone: `os dev` exports `-p` for its compile (`portFlagEnv`), and that was measured below. - New paragraph on the port shift: `os dev` takes the next free port and prints it twice, while the runner's shell keeps its `OS_PORT`. Runners should read the port from the boot log. - Two pointers: the `--no-compile` entry's objectstack-ai#33025 sentence now points at the connector entry, and the canonical boot line says a connector run boots a private copy that compiles. `self-url.ts`, the showcase connectors, the CLI, `scripts/qa/**` and `areas/*.json` are untouched. ## Why At `e0ce1b52` the product matches `self-url.ts`'s own header, which says the metadata is served "as last built" under `os dev --no-compile` (leg A below). RUNNER's entry was the stale part. ## Tests — live measurements All legs ran at `origin/main` `e0ce1b52` after `pnpm build --concurrency=2` under the verify lock (VERDICT command-exit 0, 119/119). Each probe signs in as the seeded admin and creates a `showcase_task`. It then reads the newest run from `GET /api/v1/automation/showcase_declarative_connector_ping/runs`, then `GET /api/v1/meta/connector/showcase_status_api`, then `/api/v1/health` uptime. | leg | boot | artifact | ping run | metadata `baseUrl` | shared tree artifact | |---|---|---|---|---|---| | A — the freeze | tree, `--no-compile --no-watch -p 41781`, `OS_PORT=41781` exported | compiled with no `OS_PORT` (`127.0.0.1:3000` ×4) | **failed**, `connector_action(showcase_status_api.request) failed: fetch failed` | `http://127.0.0.1:3000` | — | | B — route 1 | private copy (`cp -a` and an absolute `node_modules` symlink), default compile, `--no-watch -p 41782`, `OS_PORT=41782` | `Compiling …` once; copy's artifact `127.0.0.1:41782` ×3 | **completed**, ping step success, `ping.body` uptime 7.4 s (health 13.6 s six seconds later) | `http://127.0.0.1:41782` | sha256 `04d18b8a9def596a…`, mtime 1794681892 before and after | | B′ — route 1, `-p` only | same copy, `OS_PORT`/`PORT` unset, `-p 41786` | `127.0.0.1:41786` ×3 | **completed**, uptime 9.6 s (health 15.8 s) | `http://127.0.0.1:41786` | — | | C — port shift | same copy, 41783 held by a listener, `-p 41783`, `OS_PORT=41783` | `127.0.0.1:41784` ×3 | **completed**, uptime 10.2 s (health 16.4 s) | `http://127.0.0.1:41784` | — | | D — route 2 | tree, default compile, `--no-watch -p 41785`, `OS_PORT=41785` | `Compiling …` once; the tree's artifact rewritten | **completed**, uptime 9.7 s (health 15.8 s) | `http://127.0.0.1:41785` | sha256 → `edbbc9076e31ccf8…`, port 41785 baked in ×3 | The one `127.0.0.1:3000` left in a recompiled artifact is the OpenAPI document's `servers[0].url`. The artifact's own note says the connector's `baseUrl` overrides it on every dispatch. In leg C the log printed `⚠ Port 41783 is in use — serving on 41784 instead.` at line 6, before the compile, and `↪ server bound to port 41784 (requested 41783)` at line 171. Every boot ran under `setsid` and was stopped by its process group, read from the listener; each port was free afterwards. Leg D ran in this dev's own worktree, not a shared one. No ablation was owed: the diff is docs only (os-dev.md). ## Acceptance notes - `skip-changeset`: `docs/qa/**` ships in no package (root `private: true`). - The branch was restarted from `origin/main` after objectstack-ai#33367 merged (as `98c3a80440`). This PR's diff is only this card's two commits. ## Verification On head `7ffd1193` (merge base `origin/main` `e0ce1b52`), the derived list from `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` has 16 commands. Each exit code was captured before any pipe: <details><summary>16 derived, 16 run, all exit 0; --ran reconciliation exit 0</summary> ```text node scripts/check-adr-links.mjs :: exit 0 node scripts/check-adr-links.mjs --self-test :: exit 0 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-corpus.mjs :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:platform-checklist :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` `dispatch-gates --ran`: "16 run, 0 NOT-MEASURED (a DERIVED zero …)", exit 0. Also: `node scripts/check-platform-checklist.mjs --changed-from origin/main` exit 0, and the control-byte scan found 0 hits. </details> No package is touched, so no package build, test, typecheck or scoped lint is owed. Every other family belongs to CI. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (n/a) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. (no lintable file touched) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (publishes nothing: `skip-changeset`) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (n/a) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5ngu3885adndgvQofR)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5ngu3885adndgvQofR --------- Co-authored-by: Claude <noreply@anthropic.com>
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
domain:devx#4 · os-project-manager · session_01FEkQ5ngu3885adndgvQofR
Fixes #33334
Clause-②: no
Metadata-protocol: none
维护者速读
scripts/qa/qa-fixture.mjs的walled-boot现在带--no-compile --no-watch启动,contributor-member新增--position NAME,一条命令就能造出审批人身份;RUNNER.md写入 v18.4.0 测试轮踩到的环境事实(装包落盘位置、共享产物、临时副本、localhost 来源、vitest 参数、live e2e 代理与超时等),每条都在当前 main 上重新实测。scripts/qa/qa-fixture.mjs的--position段(先做子集证明再加岗位)与walled-boot的启动参数;RUNNER.md装包台账那一条(按OS_HOME落盘,旧文写反了)。node scripts/qa/qa-fixture.mjs contributor-member --position showcase_finance,预期退出码 0,输出带extraPosition。What changes
scripts/qa/qa-fixture.mjswalled-bootspawnsobjectstack dev --ui --seed-admin --no-compile --no-watch …(row 12). Both flags exist onos devat 87330e8:compileandwatchareFlags.booleanwithallowNoinpackages/cli/src/commands/dev.ts(L351, L374), and--no-compilestill compiles when the artifact is missing (devCompilesAtBoot). The doc block says why.contributor-member --position NAME(row 13) binds one more position through the samePOST /api/v1/data/sys_user_positionstep 3 sends — no new door — after the step 4 subset proof, so a wider position cannot fail it, then re-reads the stored row as admin. A bare--positionis refused (exit 2) before anything is written; a name the security catalog does not hold is refused by the server (position-catalog-refusal.ts), and the fixture exits 1 naming the answer. The result gainsextraPosition { position, rowId }. Usage text updated.docs/qa/platform-checklist/RUNNER.md— one sentence or clause per still-true fact, placed where a runner reads it:--no-compile --no-watchCompilingline--position--no-compileserves another runner's compiledev.tsL672 staleness comment;examples/app-showcase/src/system/self-url.tsheader ("except underos dev --no-compile, which serves the metadata as last built"); live leg under row 94--no-compileentry: "as built" means under the last compile's environmentos package installwrites into the tree; no door undoes itOS_HOMEwroteexamples/app-showcase/.objectstack/installed-packages/com.qa.ledger33334.json;DELETE /api/v1/marketplace/install-local/com.qa.ledger33334answered 200 and the file was gone; a boot withOS_HOMEset put the same install inOS_HOME/installed-packages/and left the tree ledger empty. Source:resolveInstalledPackagesDir()(local-manifest-source.tsL289)OS_HOMEdoes NOT isolate a package install"); rewritten to the measured fact. "No door undoes it" does not hold: the DELETE door doescp -ascratch copy does not bootreadlink examples/app-showcase/node_modules/@objectstack/cli→../../../../packages/cli; acp -acopy outside the tree:pnpm exec objectstack --versionexit 1,Cannot find module …/node_modules/@objectstack/cli/bin/run.js; withnode_modulesreplaced by an absolute symlink: exit 0,@objectstack/cli/18.4.0. The packages+node_modules mirror recipe is from #33048/#33096, not re-driven herersyncentryOS_PORTon a--no-compilebootOS_PORT(baseUrlhttp://127.0.0.1:3000×4 indist/objectstack.json), boot--no-compilewithOS_PORT=41771exported; ashowcase_taskcreate firedshowcase_declarative_connector_ping, runfailed,connector_action(showcase_status_api.request) failed: fetch failed;GET /api/v1/meta/connector/showcase_status_api→ baseUrlhttp://127.0.0.1:3000; nothing listened on 3000ui/playwright.live.config.tssets notimeout(Playwright default 30 s); #33096 measured the spec at 41 s and passed with--timeout=120000packages/specbuildscript skips the DTS pass underOS_SKIP_DTS;rest-route-generation-tombstones.test.tsL181 spawnstscagainst@objectstack/spec/api--poolOptions.forks.maxForks; dogfood one file per invocationpnpm exec vitest run --poolOptions.forks.maxForks=1 …inpackages/qa/dogfood→ exit 1,CACError: Unknown option --poolOptions(vitest 4.1.12); the OOM half is the records' (#33081, #33092), not re-runlocalhostPOST /api/v1/auth/sign-in/email: localhost URL + localhost Origin 200; 127.0.0.1 URL + localhost Origin 200; either URL +Origin: http://127.0.0.1:41771403INVALID_ORIGIN; 127.0.0.1 URL with no Origin 403INVALID_ORIGINIf-Match:drops the headercurl -v(8.5.0):-H 'If-Match:'sends noIf-Matchline,-H 'If-Match;'sendsIf-Match:emptyOS_STORAGE_LOCAL_ROOTwrites uploads into the treecapability-composition.tsL296 falls back to.objectstack/data/uploads. The fact was already in RUNNER (uploads entry)cd APP && setsid cmd &records the subshell pid; "record$!of a bare setsid"$!was a bash subshell (pgid of the subshell, not ofsleep); the bare form's$!had already exited ("Done") withsleepin its own group. So the record's remedy does not hold; RUNNER's existing recipe (read the group from the listener) is the right one$!warning; no$!recipe writtenDEV_PROXY_TARGET; write results item by itemui/apps/console/vite.config.tsL1642 proxies/apitoDEV_PROXY_TARGET(defaulthttp://localhost:3000);VITE_SERVER_URLprefixes the console's fetches (ui/apps/console/src/App.tsxL112). Restart loss: #32953 and #33096 recordsNo
areas/*.json, no product package, noplugin-email.Tests
scripts/qa/qa-fixture.mjshas no test harness (git grep qa-fixturefinds no test of it), so these are real runs on a booted showcase at 87330e8 (fullpnpm build --concurrency=2under the verify lock, VERDICT command-exit 0).contributor-member --position (stock boot, --no-compile, OS_PORT=41771)
The persona is an approver: as the member,
PATCH /api/v1/data/showcase_invoice/8btoIYVkD72ehqk6 {status:"sent", issued_on}→ 200;GET /api/v1/approvals/requestsas the member → 1 request,status: pending, the member's user id first inpending_approvers.walled-boot (isolated)
No ablation: the diff changes a script and a doc, neither pinned by a test (os-dev.md: scripts and docs are not ablated).
Acceptance notes
--no-compileboot the showcase's declarative connectors dial the base URL frozen indist/objectstack.jsonat compile time, whateverOS_PORTthe boot exports (measured above). RUNNER's connector entry (L305–L351) still says the live dispatch reached the exported port on an artifact boot (QA run QA run · release-18.2.0-manual-set (29/29) · 6679644a · 2026-10-25 · 25 PASS / 4 PARTIAL / 0 FAIL / 0 BLOCKED / 0 NOT-RUN #25817, measured before cli/dev: on anos devboot withOS_PORTset, served connector metadata reads the build-timebaseUrl(http://127.0.0.1:3000) while dispatch reaches the live port, so/metadisagrees with what runs #26130) and prescribesOS_PORTas the fix, which does not hold on the--no-compileboot RUNNER also prescribes for a shared tree.self-url.ts's header documents the--no-compilefreeze for the served metadata, so whoever carries it decides between a runtime defect (the declarative instance should follow the serving environment) and a RUNNER correction; this PR writes neither.OS_HOMEsince the changeresolveInstalledPackagesDir()documents), so the entry was rewritten, not appended to.skip-changeset: neither path ships.scripts/qa/anddocs/qa/sit at the repo root (package.jsonprivate: true), and no workspacepackage.jsonnames either.os devshifted from the requested 41772 to 41773 because an unrelated process held 41772, whileOS_PORT=41772stayed exported in the runner's shell. The dev process prints the shift; a runner that keeps using its ownOS_PORTvalue would probe the wrong port.Verification
On head
0a1b706b(branchclaude/project-thread-shtfdh, merge baseorigin/main87330e8), the list fromnode scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack(32 commands), each exit code captured before any pipe:32 derived, 32 run, all exit 0; --ran reconciliation exit 0
dispatch-gates --ran: "32 derived famil(ies) accounted for — 32 run, 0 NOT-MEASURED (a DERIVED zero …)", exit 0. Also: root eslint onscripts/qa/qa-fixture.mjs(--no-inline-config) exit 0;node scripts/check-platform-checklist.mjs --changed-from origin/mainexit 0; control-byte scan over both files 0 hits.No package is touched, so there is no package build, test or typecheck owed; every other family is CI's and is read from this PR's check-runs.
Human Minimum
packages/specholds no runtime logic. (n/a, not touched)pnpm lintpasses. (scoped to the touched script; repo-wide run is CI's)main, one pull request.skip-changeset)packages/spectouched: its generated artifacts are regenerated and committed. (n/a)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5ngu3885adndgvQofR