Skip to content

docs(qa): RUNNER's connector self-URL entry follows the compile, not the boot's OS_PORT - #33406

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-shtfdh
Nov 14, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-shtfdh

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

domain:devx#4 · os-project-manager · session_01FEkQ5ngu3885adndgvQofR

Fixes #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:

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

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:

16 derived, 16 run, all exit 0; --ran reconciliation exit 0
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.

No package is touched, so no package build, test, typecheck or scoped lint is owed. Every other family belongs to CI.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (n/a)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (no lintable file touched)
  • 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. (n/a)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5ngu3885adndgvQofR

…s OS_PORT

On a --no-compile boot the showcase's declarative connectors dial the port
the artifact was compiled with, as self-url.ts's header documents; an
exported OS_PORT does not move them. The entry now says so, names the two
routes that work (a private-copy compile, safe on a shared checkout; the
default compile on the tree, which rewrites the shared artifact), dates
the pre-#26130 #25817 reading, and adds the port-shift note: read the bound
port from the boot log, not from the shell's OS_PORT. Each route was
measured live at e0ce1b5.

Claude-Session: https://claude.ai/code/session_01FEkQ5ngu3885adndgvQofR
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added domain:devx Domain lane — seat card indexed by label:pm:seat skip-changeset PR has no user-facing published change; bypasses the changeset gate labels Nov 14, 2026
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 14, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:devx#4 · os-project-manager · session_01FEkQ5ooRyyS95kdyC2dPEX

席位核对 · ACCEPT · head 7ffd1193 · 2026-11-14T19:14Z

  • 形态: draft → main, attribution first, Fixes #33371. Paths from the PR's file list: docs/qa/platform-checklist/RUNNER.md (+65/-43). No governed path, no packages/spec/src/**, Clause-②: no ⇒ no contract-review face; lane seat lands.
  • Diff read: RUNNER.md's connector self-URL entry rewritten to the measured fact: the served connectors dial the self-URL the artifact was compiled with, so an exported OS_PORT on a --no-compile boot does not move it (matches self-url.ts's header). Two routes, each measured live at e0ce1b52 (ping completed, meta/connector baseUrl on the run's port): a private-copy compile (tree dist/objectstack.json byte-identical, safe on a shared checkout) and the default tree compile (marked ⛔ shared checkouts). The port-shift paragraph names both CLI notices (formatDevPortShiftNotice(), the listening handler) and says to read the port from the boot log. 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 is date-stamped as pre-cli/dev: on an os dev boot with OS_PORT set, served connector metadata reads the build-time baseUrl (http://127.0.0.1:3000) while dispatch reaches the live port, so /meta disagrees with what runs #26130; the egress-impersonation warning stays.
  • 门禁 check-runs (head 7ffd1193): 54 runs · 26 success · 28 skipped · 0 not green; TypeScript Type Check success, Lint & Repo Gates success. K = 2 merges behind main (< 15).
  • Changeset: skip-changeset holds: the touched paths ship in no package.
  • 接受的偏差: none.
  • 范围外去向: nothing routed out. Skills-docs: not owed (Metadata-protocol: none).
  • 落地条款: non-governed, all checks green ⇒ the seat readies and arms auto-merge. Ruling-ref: the maintainer's standing authorisation 「按照 pm-dispatch 规则复核过的都授权」 (2026-10-25T11:35Z) and 「你应该使用 pm-dispatch 技能审核和落地pr」 (this account's project).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 14, 2026 19:15
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 6859b2f Nov 14, 2026
55 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-shtfdh branch November 14, 2026 20:50
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 domain:devx Domain lane — seat card indexed by label:pm:seat size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RUNNER.md connector entry: the showcase self-URL is frozen at compile time on a --no-compile boot, so exporting OS_PORT is not the fix there

1 participant