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
kernel: a failed boot's rollbackStartedPlugins() destroys only plugins whose start() succeeded, while performShutdown() destroys every plugin with a destroy — a plugin that initialised but did not start is never torn down on a refused boot #37462
area:datadomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p3
Filing gate: ① · Source: fleet (L1 S3 of seat repo:objectstack#5 on PR #37450, comment 7184319598; contract record 7184310941; the #37429 dev's out-of-scope note). Follow-up of #37429.
Grading: area:data · reach: read — packages/core/src/kernel.tsrollbackStartedPlugins() (called at ~:587 and ~:671 on a failed boot) destroys only plugins whose start() succeeded; performShutdown() destroys every plugin that has a destroy. A plugin whose init() opened a resource and whose start() never ran (or failed) keeps it after a refused boot · evidence: read, no measured wrong answer (on #37429 the datasource-admin plugin's destroy happened to close the default datasource).
Suggested-grade: p3 · resource left open after a refused boot in-process (tests, embedded hosts); a process exit cleans it.
What
Decide one teardown rule for both paths: on a failed boot, destroy every plugin whose init() ran (in reverse order), as shutdown does, or record why rollback is narrower. Pin it with a plugin that opens a resource in init() and a boot that fails before or during its start().
Related: #37429 (PR #37450).
Dedupe: searched 'rollbackStartedPlugins' — no open card.
Triage: lands in area:data · domain:server · Bug · priority:p3 · pm:queue · size S; rationale: on a refused boot the kernel tears down only the plugins that started, not every plugin that initialised. A resource opened in init() stays open in-process (tests, embedded hosts) until the process exits. Read-only, no measured wrong answer, so p3 as suggested.
Picked by card-pick.mjs --order area:data --seat repo:objectstack#8 at 2026-11-28T10:25Z: p3 close-out (a resource a plugin opened in init() stays open after a refused boot). The maintainer in this seat's session, verbatim: 「开一个 objectstack 全仓座位」 with intake area:data; 「batch 调到 5,可以用云卡」; then on more concurrency through cloud cards, batch 「8 (Recommended)」; 「现在并发多少,还能加速吗」.
Claim: PM loop round 1
Session: session_017xRBcSAaBEfQpU2yJexSJ8
Account: sunhaolin
Branch: claude/issue-37462-kernel-rollback-teardown
Worktree: objectstack-issue-37462
Domain: domain:server
Seat: repo:objectstack#8
File surface: packages/core/src/kernel.ts (rollbackStartedPlugins, performShutdown), co-located tests, one changeset 37462-<slug>.md (stop on breach; explain in the report)
Container & model: S, mode:cloud, model: opus (dispatch-gates --tier: no path-derived mandate; default tier), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack — the kernel failed-boot teardown
Thread-read: none
Premise: measured first by the cloud dev on current main (the card's reproduction), before any edit; a premise that no longer holds is reported, not built.
Serial constraints cleared: check-handover.mjs --inflight --paths=packages/core/src/kernel.ts reads no overlap; the two claims naming no path (#38150, #37903, seat 3) were read by hand: Studio packaging and console metadata readers, no meeting surface; textual overlap re-checked with overlap-check.mjs before every push.
Scope this dispatch: the whole card. Fixes #37462.
{
"issue": 37462,
"status": "done",
"branch": "claude/issue-37462-kernel-rollback-teardown",
"pr": null,
"session": "session_017xRBcSzJaAdrYCvfw2wLRN",
"premise_still_valid": true,
"summary": "Reproduced on main 9f5562f4: a plugin that opened a resource in init() kept it after a refused boot when its own start() threw, an earlier start() failed, or a later init() failed; the CONTROL (normal shutdown destroys it) was green. Fix (the card's first option): ObjectKernel tracks initializedPlugins (added when init() resolves) instead of startedPlugins, rollbackInitializedPlugins() destroys them in reverse init order and clears the set first, the outer catch also rolls back an `initializing` kernel, and the Phase 2 rollback now runs with the kernel `stopping` (on main a shutdown() issued from inside a rollback destroy() destroyed every plugin a second time). Before choosing the wider rule I read all 35 class-style plugin destroy() implementations under packages/**: every one is safe without a prior start() (guarded handles, constructor-initialised fields, unbind helpers that accept undefined, server close() that returns early when not listening). Branch pushed at afaa0f0a. The draft PR is NOT open and this report is NOT posted: the auto-mode classifier refused both relay writes, and per the dispatch neither was retried another way. Title, body and report are in the final message for the seat to send.",
"tests": "Repro on 9f5562f4 (new pins, unmodified kernel): `vitest run src/kernel.failed-boot-rollback.test.ts`: Tests 8 failed | 23 passed (31); the CONTROL pin passed. Fixed, afaa0f0a: same file, Tests 31 passed (31). `pnpm --filter @objectstack/core test`: Test Files 158 passed (158), Tests 3816 passed (3816). `pnpm --filter @objectstack/core typecheck`: exit 0, including check:test-typecheck OK (4 pinned debt signatures held). Ablations via scripts/ablation-replace.mjs (tests import src, so no dist leg): A, rollback reads pluginStartupDurations.keys() (the started set): anchor 1->0 and blob ed44fc7a->7df0b058, then 9 failed | 22 passed; restored blob == HEAD, git diff HEAD empty. B, delete `this.state = 'stopping'` before the Phase 2 rollback: anchor 1->0, 1 failed (the no-double-destroy pin after a start() failure) | 30 passed; restored blob == HEAD. A first attempt at A was refused by the tool itself (its replacement text already occurred in the file, so its count could not rise) and the file was restored; it ran no tests and is not counted.",
"gates": "Local subset on afaa0f0a: the 67 families from `node scripts/pm/dispatch-gates.mjs --commands`, each run with its exit captured before any pipe. 64 exit 0. `check-plugin-teardown-shape.mjs --self-test` exited 3 on the shallow clone (the pinned fixture commit 621a4876 was unreachable); after `git fetch --depth=1 origin 621a4876` it exited 0 (48 cases). `check:dual-build-cjs-loads` and `check:lean-entry-closure`: exit 3, PREREQUISITE NOT MET (they need every workspace package built), so NOT MEASURED locally; CI builds them. `dispatch-gates --ran`: exit 0, '67 derived famil(ies) accounted for — 65 run, 2 NOT-MEASURED (0 DERIVED from a recorded exit 3, 2 claimed)'. `node scripts/pm/overlap-check.mjs`: VERDICT clean exit 0 vs origin/main 9f5562f4. PR check-runs: NOT MEASURED, because no PR exists yet (pr_create refused).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "2 — mcp__github__issue_read (get, get_comments); both reads, no write tool",
"api_writes": "0 — two relay writes were attempted and both were refused by the auto-mode classifier before running, so nothing was sent: (1) fleet-write/dispatch.mjs pr_create; (2) post-stamped.mjs --comment=37462 (this report). git push (not a REST write) delivered afaa0f0a.",
"deviations": "Both relay writes were refused by the Claude Code auto-mode classifier with reason '[Undermining Oversight]': (1) `node scripts/pm/fleet-write/dispatch.mjs --repo objectstack-ai/objectstack --actions-file pr-actions.json` (pr_create; its --dry-run validated); (2) `node scripts/pm/post-stamped.mjs --comment=37462 --file=report-comment.md` (its --dry-run exited 0). Neither was retried by any other route. The seat sends the PR and this report comment from the final message. No PR subscription was made, because there is no PR.",
"open_questions": [
{
"question": "Shutdown and failed-boot rollback now destroy the same SET of plugins but in different ORDERS: performShutdown() uses reverse registration order (this.plugins insertion order), while the rollback uses reverse init order (dependency-resolved), which is the order rollback has always used. Should shutdown order be aligned?",
"options": [
"A Leave both as they are; the orders differ only when registration order is not the dependency order, and ObjectQL's destroy comment names reverse registration order",
"B A separate card to move performShutdown() to reverse init order, after an audit of destroy() pairs that depend on registration order"
],
"recommendation": "A for this card, because it changes nothing on the normal shutdown path. File B only if a maintainer wants one order everywhere."
},
{
"question": "Plugin-author docs now understate when destroy() runs: content/docs/protocol/kernel/plugin-spec.mdx section 5 ('on rollback when a later plugin's start() fails'), content/docs/protocol/kernel/lifecycle.mdx ('already-started plugins roll back') and packages/core/ADVANCED_FEATURES.md ('rollback started plugins'). They are outside this dispatch's file surface, so they were not edited.",
"options": [
"A Widen the file surface and add a one-sentence update to plugin-spec.mdx section 5 on this PR (destroy() runs for every initialised plugin on a failed boot and must tolerate an unrun start())",
"B A docs-only follow-up PR"
],
"recommendation": "A, because the sentence plugin authors read should land with the behaviour it describes."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: this card's seat · the three understating doc sentences in open_questions[1] · noted, not filed"
]
}
Posted verbatim by seat repo:objectstack#8 (session_017xRBcSAaBEfQpU2yJexSJ8), on the maintainer's go-ahead for relay PR creation. The seat opened the draft PR as #38312 from head afaa0f0a.
Seat rulings on open_questions: Q1 = A: performShutdown() order stays as it is in this card. Q2 = A: the file surface widens to the one-sentence update of content/docs/protocol/kernel/plugin-spec.mdx section 5 (and the matching lifecycle.mdx / packages/core/ADVANCED_FEATURES.md lines), so the sentence plugin authors read lands with the behaviour. That goes out as a patch round on this PR.
{
"issue": 37462,
"status": "done",
"branch": "claude/issue-37462-kernel-rollback-teardown",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38312",
"session": "session_017xRBcSzJaAdrYCvfw2wLRN",
"premise_still_valid": true,
"delta": "patch round for seat rulings Q1=A (shutdown order unchanged, nothing done) and Q2=A (doc update on this PR)",
"summary": "Docs-only patch round on PR #38312, head afaa0f0a -> 9620e91c (one commit; no code or test change). Five spots in the three files the seat named now state what the tree does. content/docs/protocol/kernel/plugin-spec.mdx: section 5 says destroy() runs on shutdown (reverse registration order) and, on a failed boot, for every plugin whose init() finished (reverse init order), so a destroy() must tolerate start() never having run; the example's destroy() comment says the same. content/docs/protocol/kernel/lifecycle.mdx: the example's destroy() comment, and the `rollbackOnFailure: true` resolution line. packages/core/ADVANCED_FEATURES.md: section 5's lead sentence. Nothing in content/docs/releases or content/docs/references was touched. The lifecycle line's pre-existing 'process exits with code 1' clause was left as it was: the ruling asked for nothing more, and bootstrap() itself rejects, it does not exit.",
"tests": "No code or test changed in this round (git diff afaa0f0a..9620e91c touches only the three doc files), so the core suite was not rerun; its afaa0f0a readings stand (158/158 files, 3816/3816 tests, typecheck exit 0).",
"gates": "Derived on 9620e91c: 98 families (the 67 from afaa0f0a plus 31 docs and spec families for the new paths), each run with its exit captured before any pipe. 95 exit 0 on the first pass. `check:skill-examples` exited 3 (PREREQUISITE NOT MET: client-react had no dist); after `pnpm --filter '@objectstack/client-react...' build` it exited 0 ('351 prose examples type-check across 3 surface(s)'). `check:dual-build-cjs-loads` and `check:lean-entry-closure`: exit 3, PREREQUISITE NOT MET (they need every workspace package built), NOT MEASURED locally; CI builds them. `dispatch-gates --ran`: exit 0, '98 derived famil(ies) accounted for — 96 run, 2 NOT-MEASURED (0 DERIVED from a recorded exit 3, 2 claimed)'. `overlap-check`: VERDICT clean exit 0 vs origin/main c091d28c. PR check-runs for 9620e91c: in_progress at report time, not waited on.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "1 this round — mcp__github__pull_request_read (get #38312); read only, no write tool",
"api_writes": "0 — the one relay write attempted (post-stamped.mjs --comment=37462, this report; its --dry-run exited 0) was refused by the auto-mode classifier, '[Undermining Oversight]', and was not retried another way. git push (not a REST write) delivered 9620e91c.",
"pr_body_patch": [
{
"section": "## Acceptance notes, second bullet",
"before": "- Plugin-author docs now understate when `destroy()` runs. `content/docs/protocol/kernel/plugin-spec.mdx` section 5 says \"on rollback when a later plugin's `start()` fails\". `lifecycle.mdx` and `packages/core/ADVANCED_FEATURES.md` say \"already-started plugins roll back\". Nothing in them is false, but they are incomplete. They are outside this dispatch's file surface, so they are not edited here.",
"after": "- Plugin-author docs now state the rule (the seat widened the file surface for it). `content/docs/protocol/kernel/plugin-spec.mdx` (section 5 and the example's `destroy()` comment), `content/docs/protocol/kernel/lifecycle.mdx` (the example's `destroy()` comment and the `rollbackOnFailure: true` line) and `packages/core/ADVANCED_FEATURES.md` (section 5's lead sentence) now say that on a failed boot `destroy()` runs for every plugin whose `init()` finished, in reverse init order, and must tolerate `start()` never having run. The lifecycle line's existing \"process exits with code 1\" clause is unchanged."
},
{
"section": "## Verification, last paragraph",
"before": "Gates, on afaa0f0a: `dispatch-gates --ran` reads \"67 derived famil(ies) accounted for — 65 run, 2 NOT-MEASURED, 0 UNRUN\"; `overlap-check` reads clean against origin/main. Every family CI runs is read from this PR's check-runs.",
"after": "Gates, on 9620e91c: `dispatch-gates --ran` reads \"98 derived famil(ies) accounted for — 96 run, 2 NOT-MEASURED, 0 UNRUN\"; `overlap-check` reads clean against origin/main. Every family CI runs is read from this PR's check-runs."
}
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [],
"deviations": "The delta report could not be posted: the auto-mode classifier refused `node scripts/pm/post-stamped.mjs --comment=37462 --file=delta-comment.md`, reason '[Undermining Oversight]'. Per the seat's message the turn ends with the report in one fenced block; the seat posts it and applies pr_body_patch."
}
Posted verbatim by seat repo:objectstack#8 (session_017xRBcSAaBEfQpU2yJexSJ8): the dev's comment write was refused by its permission classifier and not rerouted. The seat applied the pr_body_patch to PR #38312.
area:datadomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p3
Activity
objectstack-fleet commentedon Nov 26, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:data · domain:server · Bug · priority:p3 ·
pm:queue· size S; rationale: on a refused boot the kernel tears down only the plugins that started, not every plugin that initialised. A resource opened ininit()stays open in-process (tests, embedded hosts) until the process exits. Read-only, no measured wrong answer, so p3 as suggested.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Picked by
card-pick.mjs --order area:data --seat repo:objectstack#8at 2026-11-28T10:25Z: p3 close-out (a resource a plugin opened in init() stays open after a refused boot). The maintainer in this seat's session, verbatim: 「开一个 objectstack 全仓座位」 with intakearea:data; 「batch 调到 5,可以用云卡」; then on more concurrency through cloud cards, batch 「8 (Recommended)」; 「现在并发多少,还能加速吗」.Claim: PM loop round 1
Session:
session_017xRBcSAaBEfQpU2yJexSJ8Account:
sunhaolinBranch:
claude/issue-37462-kernel-rollback-teardownWorktree:
objectstack-issue-37462Domain:
domain:serverSeat:
repo:objectstack#8File surface:
packages/core/src/kernel.ts(rollbackStartedPlugins,performShutdown), co-located tests, one changeset37462-<slug>.md(stop on breach; explain in the report)Container & model:
S,mode:cloud,model: opus (dispatch-gates --tier: no path-derived mandate; default tier),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
objectstack — the kernel failed-boot teardownThread-read:
nonePremise: measured first by the cloud dev on current main (the card's reproduction), before any edit; a premise that no longer holds is reported, not built.
Serial constraints cleared:
check-handover.mjs --inflight --paths=packages/core/src/kernel.tsreads no overlap; the two claims naming no path (#38150, #37903, seat 3) were read by hand: Studio packaging and console metadata readers, no meeting surface; textual overlap re-checked withoverlap-check.mjsbefore every push.Scope this dispatch: the whole card.
Fixes #37462.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSzJaAdrYCvfw2wLRN
os-dev-report
{ "issue": 37462, "status": "done", "branch": "claude/issue-37462-kernel-rollback-teardown", "pr": null, "session": "session_017xRBcSzJaAdrYCvfw2wLRN", "premise_still_valid": true, "summary": "Reproduced on main 9f5562f4: a plugin that opened a resource in init() kept it after a refused boot when its own start() threw, an earlier start() failed, or a later init() failed; the CONTROL (normal shutdown destroys it) was green. Fix (the card's first option): ObjectKernel tracks initializedPlugins (added when init() resolves) instead of startedPlugins, rollbackInitializedPlugins() destroys them in reverse init order and clears the set first, the outer catch also rolls back an `initializing` kernel, and the Phase 2 rollback now runs with the kernel `stopping` (on main a shutdown() issued from inside a rollback destroy() destroyed every plugin a second time). Before choosing the wider rule I read all 35 class-style plugin destroy() implementations under packages/**: every one is safe without a prior start() (guarded handles, constructor-initialised fields, unbind helpers that accept undefined, server close() that returns early when not listening). Branch pushed at afaa0f0a. The draft PR is NOT open and this report is NOT posted: the auto-mode classifier refused both relay writes, and per the dispatch neither was retried another way. Title, body and report are in the final message for the seat to send.", "tests": "Repro on 9f5562f4 (new pins, unmodified kernel): `vitest run src/kernel.failed-boot-rollback.test.ts`: Tests 8 failed | 23 passed (31); the CONTROL pin passed. Fixed, afaa0f0a: same file, Tests 31 passed (31). `pnpm --filter @objectstack/core test`: Test Files 158 passed (158), Tests 3816 passed (3816). `pnpm --filter @objectstack/core typecheck`: exit 0, including check:test-typecheck OK (4 pinned debt signatures held). Ablations via scripts/ablation-replace.mjs (tests import src, so no dist leg): A, rollback reads pluginStartupDurations.keys() (the started set): anchor 1->0 and blob ed44fc7a->7df0b058, then 9 failed | 22 passed; restored blob == HEAD, git diff HEAD empty. B, delete `this.state = 'stopping'` before the Phase 2 rollback: anchor 1->0, 1 failed (the no-double-destroy pin after a start() failure) | 30 passed; restored blob == HEAD. A first attempt at A was refused by the tool itself (its replacement text already occurred in the file, so its count could not rise) and the file was restored; it ran no tests and is not counted.", "gates": "Local subset on afaa0f0a: the 67 families from `node scripts/pm/dispatch-gates.mjs --commands`, each run with its exit captured before any pipe. 64 exit 0. `check-plugin-teardown-shape.mjs --self-test` exited 3 on the shallow clone (the pinned fixture commit 621a4876 was unreachable); after `git fetch --depth=1 origin 621a4876` it exited 0 (48 cases). `check:dual-build-cjs-loads` and `check:lean-entry-closure`: exit 3, PREREQUISITE NOT MET (they need every workspace package built), so NOT MEASURED locally; CI builds them. `dispatch-gates --ran`: exit 0, '67 derived famil(ies) accounted for — 65 run, 2 NOT-MEASURED (0 DERIVED from a recorded exit 3, 2 claimed)'. `node scripts/pm/overlap-check.mjs`: VERDICT clean exit 0 vs origin/main 9f5562f4. PR check-runs: NOT MEASURED, because no PR exists yet (pr_create refused).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "2 — mcp__github__issue_read (get, get_comments); both reads, no write tool", "api_writes": "0 — two relay writes were attempted and both were refused by the auto-mode classifier before running, so nothing was sent: (1) fleet-write/dispatch.mjs pr_create; (2) post-stamped.mjs --comment=37462 (this report). git push (not a REST write) delivered afaa0f0a.", "deviations": "Both relay writes were refused by the Claude Code auto-mode classifier with reason '[Undermining Oversight]': (1) `node scripts/pm/fleet-write/dispatch.mjs --repo objectstack-ai/objectstack --actions-file pr-actions.json` (pr_create; its --dry-run validated); (2) `node scripts/pm/post-stamped.mjs --comment=37462 --file=report-comment.md` (its --dry-run exited 0). Neither was retried by any other route. The seat sends the PR and this report comment from the final message. No PR subscription was made, because there is no PR.", "open_questions": [ { "question": "Shutdown and failed-boot rollback now destroy the same SET of plugins but in different ORDERS: performShutdown() uses reverse registration order (this.plugins insertion order), while the rollback uses reverse init order (dependency-resolved), which is the order rollback has always used. Should shutdown order be aligned?", "options": [ "A Leave both as they are; the orders differ only when registration order is not the dependency order, and ObjectQL's destroy comment names reverse registration order", "B A separate card to move performShutdown() to reverse init order, after an audit of destroy() pairs that depend on registration order" ], "recommendation": "A for this card, because it changes nothing on the normal shutdown path. File B only if a maintainer wants one order everywhere." }, { "question": "Plugin-author docs now understate when destroy() runs: content/docs/protocol/kernel/plugin-spec.mdx section 5 ('on rollback when a later plugin's start() fails'), content/docs/protocol/kernel/lifecycle.mdx ('already-started plugins roll back') and packages/core/ADVANCED_FEATURES.md ('rollback started plugins'). They are outside this dispatch's file surface, so they were not edited.", "options": [ "A Widen the file surface and add a one-sentence update to plugin-spec.mdx section 5 on this PR (destroy() runs for every initialised plugin on a failed boot and must tolerate an unrun start())", "B A docs-only follow-up PR" ], "recommendation": "A, because the sentence plugin authors read should land with the behaviour it describes." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: this card's seat · the three understating doc sentences in open_questions[1] · noted, not filed" ] }Posted verbatim by seat
repo:objectstack#8(session_017xRBcSAaBEfQpU2yJexSJ8), on the maintainer's go-ahead for relay PR creation. The seat opened the draft PR as #38312 from headafaa0f0a.Seat rulings on
open_questions: Q1 = A:performShutdown()order stays as it is in this card. Q2 = A: the file surface widens to the one-sentence update ofcontent/docs/protocol/kernel/plugin-spec.mdxsection 5 (and the matchinglifecycle.mdx/packages/core/ADVANCED_FEATURES.mdlines), so the sentence plugin authors read lands with the behaviour. That goes out as a patch round on this PR.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSzJaAdrYCvfw2wLRN
os-dev-report
{ "issue": 37462, "status": "done", "branch": "claude/issue-37462-kernel-rollback-teardown", "pr": "https://github.com/objectstack-ai/objectstack/pull/38312", "session": "session_017xRBcSzJaAdrYCvfw2wLRN", "premise_still_valid": true, "delta": "patch round for seat rulings Q1=A (shutdown order unchanged, nothing done) and Q2=A (doc update on this PR)", "summary": "Docs-only patch round on PR #38312, head afaa0f0a -> 9620e91c (one commit; no code or test change). Five spots in the three files the seat named now state what the tree does. content/docs/protocol/kernel/plugin-spec.mdx: section 5 says destroy() runs on shutdown (reverse registration order) and, on a failed boot, for every plugin whose init() finished (reverse init order), so a destroy() must tolerate start() never having run; the example's destroy() comment says the same. content/docs/protocol/kernel/lifecycle.mdx: the example's destroy() comment, and the `rollbackOnFailure: true` resolution line. packages/core/ADVANCED_FEATURES.md: section 5's lead sentence. Nothing in content/docs/releases or content/docs/references was touched. The lifecycle line's pre-existing 'process exits with code 1' clause was left as it was: the ruling asked for nothing more, and bootstrap() itself rejects, it does not exit.", "tests": "No code or test changed in this round (git diff afaa0f0a..9620e91c touches only the three doc files), so the core suite was not rerun; its afaa0f0a readings stand (158/158 files, 3816/3816 tests, typecheck exit 0).", "gates": "Derived on 9620e91c: 98 families (the 67 from afaa0f0a plus 31 docs and spec families for the new paths), each run with its exit captured before any pipe. 95 exit 0 on the first pass. `check:skill-examples` exited 3 (PREREQUISITE NOT MET: client-react had no dist); after `pnpm --filter '@objectstack/client-react...' build` it exited 0 ('351 prose examples type-check across 3 surface(s)'). `check:dual-build-cjs-loads` and `check:lean-entry-closure`: exit 3, PREREQUISITE NOT MET (they need every workspace package built), NOT MEASURED locally; CI builds them. `dispatch-gates --ran`: exit 0, '98 derived famil(ies) accounted for — 96 run, 2 NOT-MEASURED (0 DERIVED from a recorded exit 3, 2 claimed)'. `overlap-check`: VERDICT clean exit 0 vs origin/main c091d28c. PR check-runs for 9620e91c: in_progress at report time, not waited on.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "1 this round — mcp__github__pull_request_read (get #38312); read only, no write tool", "api_writes": "0 — the one relay write attempted (post-stamped.mjs --comment=37462, this report; its --dry-run exited 0) was refused by the auto-mode classifier, '[Undermining Oversight]', and was not retried another way. git push (not a REST write) delivered 9620e91c.", "pr_body_patch": [ { "section": "## Acceptance notes, second bullet", "before": "- Plugin-author docs now understate when `destroy()` runs. `content/docs/protocol/kernel/plugin-spec.mdx` section 5 says \"on rollback when a later plugin's `start()` fails\". `lifecycle.mdx` and `packages/core/ADVANCED_FEATURES.md` say \"already-started plugins roll back\". Nothing in them is false, but they are incomplete. They are outside this dispatch's file surface, so they are not edited here.", "after": "- Plugin-author docs now state the rule (the seat widened the file surface for it). `content/docs/protocol/kernel/plugin-spec.mdx` (section 5 and the example's `destroy()` comment), `content/docs/protocol/kernel/lifecycle.mdx` (the example's `destroy()` comment and the `rollbackOnFailure: true` line) and `packages/core/ADVANCED_FEATURES.md` (section 5's lead sentence) now say that on a failed boot `destroy()` runs for every plugin whose `init()` finished, in reverse init order, and must tolerate `start()` never having run. The lifecycle line's existing \"process exits with code 1\" clause is unchanged." }, { "section": "## Verification, last paragraph", "before": "Gates, on afaa0f0a: `dispatch-gates --ran` reads \"67 derived famil(ies) accounted for — 65 run, 2 NOT-MEASURED, 0 UNRUN\"; `overlap-check` reads clean against origin/main. Every family CI runs is read from this PR's check-runs.", "after": "Gates, on 9620e91c: `dispatch-gates --ran` reads \"98 derived famil(ies) accounted for — 96 run, 2 NOT-MEASURED, 0 UNRUN\"; `overlap-check` reads clean against origin/main. Every family CI runs is read from this PR's check-runs." } ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "deviations": "The delta report could not be posted: the auto-mode classifier refused `node scripts/pm/post-stamped.mjs --comment=37462 --file=delta-comment.md`, reason '[Undermining Oversight]'. Per the seat's message the turn ends with the report in one fenced block; the seat posts it and applies pr_body_patch." }Posted verbatim by seat
repo:objectstack#8(session_017xRBcSAaBEfQpU2yJexSJ8): the dev's comment write was refused by its permission classifier and not rerouted. The seat applied thepr_body_patchto PR #38312.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Closed by PR #38312 (merged,
Fixes #37462) · 2026-11-28T15:47Z. The claim (seatrepo:objectstack#8) ends with the merge;pm:dispatchedremoved.