You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
objectstack start exits on SIGTERM before its serve child stops (measured twice; reopens the premise of #32149) #34337
Filing gate: out-of-scope finding (class a) of a cloud lane card's report. Reopens the question of #32149, which closed not_planned on the premise that objectstack start forwards SIGTERM to its serve child and waits for it.
What happens
Two multi-replica drill runs on 2026-11-16 sent SIGTERM straight to node …/@objectstack/cli/bin/run.js start (no wrapper process in between) to drain a replica. Each time start exited with code 0, after 114 ms and after 83 ms, while a process of its process group was still alive: process.kill(-pid, 0) succeeded after the exit, and the drill had to reap that leftover process itself. Framework commit b914e724, run from source on a local target.
A supervisor that watches the start process (a container runtime, systemd, a drill) therefore reads "stopped" while the server may still be serving or finishing requests, and what it does next (start a replacement on the same port, reuse the replica's resources) races the old server.
Expected
On SIGTERM, objectstack start forwards the signal to its serve child and exits only after that child has exited, with the child's exit code.
A test pins it: send SIGTERM to start, then assert no process of its group is alive when start exits. With the wait removed, the test goes red.
If today's behaviour is intended, the CLI docs say so and say what a supervisor should signal instead.
Ruling: claimable after batch 1 merges · batch 2 · maintainer 「分两批点名放行,不改级别」 (the option he chose on the decision card) · recorded 2026-11-16T14:26Z
Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T14:19:33Z. Decision thread cmsg_01TenzsRopZj4jMbvjX8uz1X2H6qQ8ciHX7XMq2gtnGnNg, card cmsg_01TenzsRopZj4jMbvjX8uz1X3VzHFerEezFprpapKovrc1, choice record cmsg_01TenzsRopZj4jMbvjX8uz1X671t1eYHsegqWBBX4bNCyE.
Thread-read: none (the card has no comment). Labels at the read: bug, priority:p2, pm:queue, domain:server; unassigned.
The question he was asked
He named 21 open p2 cards and asked whether they should be the next tasks. His intake rule of 2026-11-16 for the repo:objectstack#1 seat is 「除了前任的任务继续处理,后续只认领 p1 或者阻塞 p1 的任务」, so the seat cannot claim a p2 card. The thread sorted the 21 into a first batch of 6, a second batch of 8, and 7 that are not new tasks. Which of them become the seat's next work, and how?
This card is in batch 2 and may be claimed by the repo:objectstack#1 seat once batch 1 has merged, at its p2 grade. The grade does not change. p1 work still comes first.
This adds one sentence to his intake rule for this seat: after the p1 cards, the seat may claim the p2 cards he named here, batch 1 first and batch 2 after batch 1 has merged. It names these 14 cards and no other p2.
Why this card, as told to him: objectstack start exits on SIGTERM before its serve child stops, so a supervisor reads "stopped" while the server still runs. Measured twice in a multi-replica drill. He was told the drill script can reap the leftover process today.
State
This record changes no label and no grade. The card stays priority:p2 and pm:queue until the seat claims it with this record as its Ruling-ref.
Sizes given to him were estimated from the card faces and were not measured.
List and reasons: /mnt/project-files/pm-orders/objectstack/next-batch-2026-11-16.md.
Claim: PM loop round 1 (area o2-G)
Session: session_01ADHkmRfW5u1LRmhWwaYHRp
Account: os-steve
Branch: claude/project-thread-f16pke
Worktree: objectstack (the area session's own checkout)
Domain: domain:server
Seat: repo:objectstack#2
File surface: packages/cli/src/commands/start.ts, packages/cli/src/utils/dev-restart.ts (the shared supervisor), packages/cli/test/start-signal-forwarding.e2e.test.ts or a new per-card test beside it, packages/cli docs for start if the wait is the documented answer, root .changeset/ (stop on breach; explain in the report)
Container & model: S/M, mode:subagent (area session builds it itself), model: default judgment tier, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack: packages/cli start's serve-child supervision (ServeRestartCoordinator) | none: no platform path waits for the serve child's process group today | any supervisor that sends SIGTERM to the start pid (container runtime, systemd, the cloud multi-replica drill); in use today by the cloud drill
Thread-read: 6919206477
Premise: holds (the card's two measured runs at b914e72; the dev round re-measures on origin/main before any change and reports premise_still_valid: false if it no longer reproduces)
Ruling-ref: 6919206477 (batch 2, p2 kept); the maintainer's 2026-11-16T22:11Z word that batch 2 may be claimed now, relayed to this seat in its project thread
Serial constraints cleared: none — open PRs read for packages/cli/src/commands/start.ts, packages/cli/src/utils/dev-restart.ts and the start signal test at origin/main e8cba8f: no overlap
Pre-claim lane: packages/cli → domain:server (SKILL.md domain table, cli row); in repo:objectstack seat 2's area o2-G
Pre-claim deps: no Blocked-by: and no "after #N" on the card; hot files start.ts / dev-restart.ts touched by no open PR (merge-base diff read for each open non-mailbox PR)
Prior rulings read: objectstack,start,exits,sigterm,serve,child,stops,measured,twice,reopens,premise → 144 hits; ADR-0076 D1, ADR-0076 D11, ADR-0093 D4, ADR-0098 Decision §1, ADR-0115 Decision §2, ADR-0116 Decision §4, ADR-0127 D6; thread: 1 ruling(s) (6919206477); repo: objectstack-ai/objectstack. None of them rules that start may exit before its serve child; #32149 closed on the premise that it waits, which this card reopens.
{
"issue": 34337,
"status": "done",
"branch": "claude/project-thread-f16pke",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34518",
"session": "session_01ADHkmRfW5u1LRmhWwaYHRp",
"head": "0fb55f6ec7",
"premise_still_valid": true,
"gates": "local, at head 0fb55f6ec7 (origin/main merged): dispatch-gates --commands derived 92; all 92 run, each `cmd :: exit N` captured before any pipe; all 92 exit 0; `dispatch-gates --ran`: 92 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. Record: /mnt/project-files/objectstack-seat2/34337-gates-ran.txt. First round on the pre-merge head (74 derived): check-plugin-teardown-shape --self-test exit 3 (shallow clone; re-run exit 0 after fetching its pinned commit), check:cli-test-child-env exit 1 (its census of built-entrypoint spawners did not name the new pin; fixed by commit 55ac953d90, re-run exit 0), check:dual-build-cjs-loads and check:i18n-coverage exit 3 (unbuilt workspace packages; re-run exit 0 after building).",
"tests": "New pin packages/cli/test/start-sigterm-process-group.integration.test.ts on the built bin/run.js: 1 passed at the final head. Ablation: stopConfigBundler() call removed and CLI rebuilt (dist grep count 0) -> red, `expected [ '8309 8270 [esbuild] <defunct>' ] to deeply equal []`; restored and rebuilt -> 1 passed. Positive control inside the pin: the group shows start and serve before the SIGTERM. @objectstack/cli unit tier: 425 files / 6034 tests passed. cli typecheck exit 0 (check:test-typecheck needed NODE_OPTIONS=--max-old-space-size=6144 locally; it OOMed at the default heap).",
"line_budget": "n/a, no skills/** touched",
"dogfood_battery": "n/a, no ! in the PR title and Clause-②: no",
"files_changed": [
".changeset/34337-start-sigterm-process-group.md",
"packages/cli/src/commands/serve.ts",
"packages/cli/src/utils/config.ts",
"packages/cli/test/start-sigterm-process-group.integration.test.ts",
"scripts/check-cli-test-child-env.mjs"
],
"deviations": [
"scripts/check-cli-test-child-env.mjs census changed (21 -> 22 files) because the new pin spawns the built entry on purpose; named in the PR body."
],
"mcp_calls": "reads only: issue_read, pull_request_read; no MCP writes",
"api_writes": "2: relay pr_create (POST pulls + assignee), this comment",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Merged: PR #34518 as d4c0c12104; this card closed with it (Fixes). Delivered: serve stops the config bundler's esbuild service at boot, so os start leaves no process of its group behind on SIGTERM, pinned on the built entry. Nothing remains. Lease and dispatch labels removed.
Activity
objectstack-fleet commentedon Nov 16, 2026
coordinator#1 · os-project-manager · session_01FEkQ5p5codnUGsdGxBfaL9
Ruling: claimable after batch 1 merges · batch 2 · maintainer 「分两批点名放行,不改级别」 (the option he chose on the decision card) · recorded 2026-11-16T14:26Z
Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T14:19:33Z. Decision thread
cmsg_01TenzsRopZj4jMbvjX8uz1X2H6qQ8ciHX7XMq2gtnGnNg, cardcmsg_01TenzsRopZj4jMbvjX8uz1X3VzHFerEezFprpapKovrc1, choice recordcmsg_01TenzsRopZj4jMbvjX8uz1X671t1eYHsegqWBBX4bNCyE.Thread-read: none (the card has no comment). Labels at the read:
bug,priority:p2,pm:queue,domain:server; unassigned.The question he was asked
He named 21 open p2 cards and asked whether they should be the next tasks. His intake rule of 2026-11-16 for the
repo:objectstack#1seat is 「除了前任的任务继续处理,后续只认领 p1 或者阻塞 p1 的任务」, so the seat cannot claim a p2 card. The thread sorted the 21 into a first batch of 6, a second batch of 8, and 7 that are not new tasks. Which of them become the seat's next work, and how?The four options on the card, as he read them:
The batches, as listed in the file and the message he was given:
untrusted_key#34166, audit seal: a host checkpoint signer that fails to resolve stops the sealer instead of signing with the local key #34280, actions: an action body has no refusal catalogue — a person-facing throw from an action stays in the author's language #34273, Engine: a predicate delete on an object with delete-family lookups re-deletes by id, so its predicate never reaches the DELETE (a conditional delete is not atomic) #34373, objectstack start exits on SIGTERM before its serve child stops (measured twice; reopens the premise of #32149) #34337, Console: the organization's Localization language never decides a no-locale user's language — the Console always states a language, so the server's deployment-default rung never answers #34392.The ruling
This card is in batch 2 and may be claimed by the
repo:objectstack#1seat once batch 1 has merged, at its p2 grade. The grade does not change. p1 work still comes first.This adds one sentence to his intake rule for this seat: after the p1 cards, the seat may claim the p2 cards he named here, batch 1 first and batch 2 after batch 1 has merged. It names these 14 cards and no other p2.
Why this card, as told to him:
objectstack startexits on SIGTERM before its serve child stops, so a supervisor reads "stopped" while the server still runs. Measured twice in a multi-replica drill. He was told the drill script can reap the leftover process today.State
priority:p2andpm:queueuntil the seat claims it with this record as its Ruling-ref./mnt/project-files/pm-orders/objectstack/next-batch-2026-11-16.md.Notify: rulingto therepo:objectstack#1mailbox, PR pm:mailbox — repo:objectstack#1 · os-project-manager #34367, and to the triage mailbox, PR pm:mailbox — triage#1 · hotlong #32588.Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRfW5u1LRmhWwaYHRp
Claim: PM loop round 1 (area o2-G)
Session:
session_01ADHkmRfW5u1LRmhWwaYHRpAccount:
os-steveBranch:
claude/project-thread-f16pkeWorktree:
objectstack(the area session's own checkout)Domain:
domain:serverSeat:
repo:objectstack#2File surface:
packages/cli/src/commands/start.ts,packages/cli/src/utils/dev-restart.ts(the shared supervisor),packages/cli/test/start-signal-forwarding.e2e.test.tsor a new per-card test beside it,packages/clidocs forstartif the wait is the documented answer, root.changeset/(stop on breach; explain in the report)Container & model:
S/M,mode:subagent(area session builds it itself),model: default judgment tier,effort: highClause-②: no
Metadata-protocol: none
Responsibility:
objectstack: packages/cli start's serve-child supervision (ServeRestartCoordinator) | none: no platform path waits for the serve child's process group today | any supervisor that sends SIGTERM to the start pid (container runtime, systemd, the cloud multi-replica drill); in use today by the cloud drillThread-read: 6919206477
Premise: holds (the card's two measured runs at b914e72; the dev round re-measures on origin/main before any change and reports
premise_still_valid: falseif it no longer reproduces)Ruling-ref: 6919206477 (batch 2, p2 kept); the maintainer's 2026-11-16T22:11Z word that batch 2 may be claimed now, relayed to this seat in its project thread
Serial constraints cleared: none — open PRs read for
packages/cli/src/commands/start.ts,packages/cli/src/utils/dev-restart.tsand the start signal test at origin/main e8cba8f: no overlapPre-claim lane:
packages/cli→domain:server(SKILL.md domain table,clirow); in repo:objectstack seat 2's area o2-GPre-claim deps: no
Blocked-by:and no "after #N" on the card; hot filesstart.ts/dev-restart.tstouched by no open PR (merge-base diff read for each open non-mailbox PR)Prior rulings read: objectstack,start,exits,sigterm,serve,child,stops,measured,twice,reopens,premise → 144 hits; ADR-0076 D1, ADR-0076 D11, ADR-0093 D4, ADR-0098 Decision §1, ADR-0115 Decision §2, ADR-0116 Decision §4, ADR-0127 D6; thread: 1 ruling(s) (6919206477); repo: objectstack-ai/objectstack. None of them rules that
startmay exit before its serve child; #32149 closed on the premise that it waits, which this card reopens.objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRfW5u1LRmhWwaYHRp
os-dev-report
{ "issue": 34337, "status": "done", "branch": "claude/project-thread-f16pke", "pr": "https://github.com/objectstack-ai/objectstack/pull/34518", "session": "session_01ADHkmRfW5u1LRmhWwaYHRp", "head": "0fb55f6ec7", "premise_still_valid": true, "gates": "local, at head 0fb55f6ec7 (origin/main merged): dispatch-gates --commands derived 92; all 92 run, each `cmd :: exit N` captured before any pipe; all 92 exit 0; `dispatch-gates --ran`: 92 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. Record: /mnt/project-files/objectstack-seat2/34337-gates-ran.txt. First round on the pre-merge head (74 derived): check-plugin-teardown-shape --self-test exit 3 (shallow clone; re-run exit 0 after fetching its pinned commit), check:cli-test-child-env exit 1 (its census of built-entrypoint spawners did not name the new pin; fixed by commit 55ac953d90, re-run exit 0), check:dual-build-cjs-loads and check:i18n-coverage exit 3 (unbuilt workspace packages; re-run exit 0 after building).", "tests": "New pin packages/cli/test/start-sigterm-process-group.integration.test.ts on the built bin/run.js: 1 passed at the final head. Ablation: stopConfigBundler() call removed and CLI rebuilt (dist grep count 0) -> red, `expected [ '8309 8270 [esbuild] <defunct>' ] to deeply equal []`; restored and rebuilt -> 1 passed. Positive control inside the pin: the group shows start and serve before the SIGTERM. @objectstack/cli unit tier: 425 files / 6034 tests passed. cli typecheck exit 0 (check:test-typecheck needed NODE_OPTIONS=--max-old-space-size=6144 locally; it OOMed at the default heap).", "line_budget": "n/a, no skills/** touched", "dogfood_battery": "n/a, no ! in the PR title and Clause-②: no", "files_changed": [ ".changeset/34337-start-sigterm-process-group.md", "packages/cli/src/commands/serve.ts", "packages/cli/src/utils/config.ts", "packages/cli/test/start-sigterm-process-group.integration.test.ts", "scripts/check-cli-test-child-env.mjs" ], "deviations": [ "scripts/check-cli-test-child-env.mjs census changed (21 -> 22 files) because the new pin spawns the built entry on purpose; named in the PR body." ], "mcp_calls": "reads only: issue_read, pull_request_read; no MCP writes", "api_writes": "2: relay pr_create (POST pulls + assignee), this comment", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRfW5u1LRmhWwaYHRp
Merged: PR #34518 as
d4c0c12104; this card closed with it (Fixes). Delivered:servestops the config bundler's esbuild service at boot, soos startleaves no process of its group behind on SIGTERM, pinned on the built entry. Nothing remains. Lease and dispatch labels removed.