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
[finding] publish-smoke's log scan cannot name a WARN-level boot failure — it runs after the probes and matches only error/fatal #16793
bugSomething isn't workingdomain:devxDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3toolingFix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface
The registry canary's server-log scan cannot name a WARN-level boot failure, so when the boot is the defect the job reports a downstream probe instead. Filed from #16500, where this cost the triage seat a full log read to reach the root cause.
Evidence
Run 34084559243, job 101626009369. The defect was one line, at boot:
AuthPlugin failed to load: The requested module '@better-auth/core/db'
does not provide an export named 'createLocalAccountIssuer'
The job did not exit on that. It ran every auth and CRUD probe against a server with no auth, and exited 1 on a probe. The log scan that could have named the cause runs after those probes.
Mechanism
scripts/publish-smoke.sh section 4 (log scan) is the last thing in the script, after section 3 (probes), and its pattern matches error and fatal only:
grep -nE '^\[(error|fatal)\]|"level":"(error|fatal)"|^\S+Z ERROR |Failed to register OIDC discovery routes'
Two properties combine:
Severity. A plugin that fails to load logs at WARN, not ERROR, so the scan does not match it.
Order. Even at a matching severity the scan runs after the probes, so a boot defect is always reported as a probe failure first.
The section's own comment states the intent this misses: "The #3091 breakage announced itself at startup ... and would have been caught by ANY error-level line." That held for #3091 because that breakage logged at error level. This one did not, and the scan was structurally unable to see it.
Why it matters
The canary's whole value is naming which of several owners a failure belongs to. A boot-load failure and a genuine auth-behaviour regression are different owners, and today they produce the same job output — a red probe.
Scan the boot log for failed to load between the boot and the probes, and fail there with the plugin named. That is a new assertion on the smoke's contract, not a mechanical edit, which is why it is filed rather than carried into #16500's PR.
scripts/publish-smoke.sh:974 # ── 4. log scan ──────────────────────────────
scripts/publish-smoke.sh:984 if grep -nE '^\[(error|fatal)\]|"level":"(error|fatal)"|^\S+Z ERROR |Failed to register OIDC discovery routes' "$SCRUBBED_LOG"; then
⇒ ① 严重度:只匹配 error / fatal,而插件加载失败记在 WARN。
⇒ ② 次序:section 4 是脚本的最后一节,在 section 3(probes)之后 ⇒ 即便严重度匹配得上,启动期缺陷也总是先被报成一次 probe 失败。
⭐ 顺带一处相关上下文,认领席会用得上::720 有一条注释讲某些 "ERROR" 会从下面这道日志扫描里溜过去("they did — see the escaped …")⇒ 这个模式此前已经漏过一次,本卡是同一处的第三个漏法(严重度 + 次序)。
等级 p2 —— 判据是「金丝雀的全部价值是指认责任方」
卡面这一段本席复核后加权:
The canary's whole value is naming which of several owners a failure belongs to. A boot-load failure and a genuine auth-behaviour regression are different owners, and today they produce the same job output — a red probe.
Scan the boot log for failed to loadbetween the boot and the probes, and fail there with the plugin named. That is a new assertion on the smoke's contract, not a mechanical edit, which is why it is filed rather than carried into #16500's PR.
Claim: PM loop round 4
Session: session_012GKcPZbMoGq7WPzKLfRBTU
Branch: claude/issue-16793-publish-smoke-boot-failure
Worktree: objectstack-issue-16793
Domain: domain:devx
File surface: scripts/publish-smoke.sh + its negative test / self-test + .changeset/ (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: opus — default judgement tier (TIER_DEFAULT). ⛔ Not the floor tier: the card says it in terms — "a new assertion on the smoke's contract, not a mechanical edit". Deciding what counts as a boot failure and where the assertion goes is the work.
Clause-②: no
Reason for no: scripts/** only. packages/spec/src/** untouched, no published surface moves. Judged from content.
Thread-read: the card body in full and its one comment.
Serial constraints cleared: all 19 open PRs' changed-file lists fetched paged to exhaustion at 2026-09-08T20:5xZ and filtered for scripts/publish-smoke.sh — zero hits; control, 19 of 19 returned a non-empty list.
Anchors RE-TAKEN by this seat on origin/main, 20:5xZ — ⛔ confirm by text, not by number
:765 # ── 3. probes ─────────────────────────────────────────────
:974 # ── 4. log scan ───────────────────────────────────────────
:984 if grep -nE '^\[(error|fatal)\]|"level":"(error|fatal)"|^\S+Z ERROR |Failed to register OIDC discovery routes' "$SCRUBBED_LOG"; then
⇒ Both halves of the card's mechanism confirmed: the scan's severity set is error|fatal only, and section 4 runs after section 3.
⭐ TWO things in the file the card does not cite, and both matter to your fix
1. The precedent for what you are being asked to build already exists, ~140 lines above. At :833-840 the script already fails early, before the behaviour probes, for a different reason, and its comment states exactly the principle this card is about:
⛔ The RC's own default is not negotiable … the release candidate must go red for it — BEFORE the behaviour probes, which would otherwise report the widening as a cheerful 200.
⇒ ⭐ Your assertion is the same shape as one the file already endorses. Follow that pattern rather than inventing a new one, and say in the PR body that you did — an early refusal here is not a new idea in this script, it is the script's own idea applied to a case it missed.
2. The log scan has been fooled before, and by formatting. At :719-721:
NO_COLOR: some loggers colorize even without a TTY; ANSI codes around "ERROR" would slip through the log scan below (they did — see the escaped \x1b[31m…ERROR… line the negative test produced).
⇒ ⚠️ Whatever pattern you add, assume the line may be decorated. A failed to load matcher that only matches an undecorated line reproduces the very defect that comment records. Drive a decorated variant in your test.
The defect, and what "fixed" has to mean
Two properties combine, and ⛔ fixing only one leaves the card open:
Severity — a plugin that fails to load logs at WARN, and the scan matches error|fatal only.
Order — even at a matching severity, the scan runs after the probes, so a boot defect is always reported as a probe failure first.
⭐ The value at stake is ownership attribution, which the card states better than a severity argument would: "A boot-load failure and a genuine auth-behaviour regression are different owners, and today they produce the same job output — a red probe." Run 34084559243 / job 101626009369 is the specimen: one boot line (AuthPlugin failed to load: … does not provide an export named 'createLocalAccountIssuer'), and the job ran every auth and CRUD probe against a server with no auth before failing on a probe.
⚠️ The judgement this card actually turns on
What counts as a boot failure? ⛔ Do not answer it with a bare failed to load grep and move on:
Too narrow and the next boot defect with different wording slips through — the exact failure mode this card documents.
Too wide and the smoke goes red on a benign WARN, which is worse: a canary that cries wolf gets ignored, and ⛔ then nobody reads it when the real boot breaks.
⇒ State your predicate, state what it would and would not have caught, and ⛔ do not widen the severity set wholesale to WARN without saying what else is at WARN in a healthy boot. Measure that: run a clean boot, collect the WARN lines, and report them. A predicate chosen without knowing the healthy baseline is a guess.
Before/after against the specimen: a boot log carrying the AuthPlugin failed to load: … line must go from "probe failure, cause unnamed" to "fails at boot, naming the plugin". ⚠️ Firing control: a healthy boot must still pass — ⛔ a run that reds on the specimen proves nothing if it also reds on a clean boot. Decorated-line control per :719-721. Nonsense control. Exit codes captured before any pipe.
{
"issue": 16793,
"status": "done",
"branch": "claude/issue-16793-publish-smoke-boot-failure",
"pr": "https://github.com/objectstack-ai/objectstack/pull/16976",
"premise_still_valid": true,
"summary": "Both anchors confirmed BY TEXT on origin/main before editing: section 4 (log scan) runs after section 3 (probes), and its pattern is error|fatal only. Added a boot gate between sections 2 and 3 that scans the boot window (which at that point IS $SERVER_LOG, nothing having been probed yet) and fails naming the plugin. Section 4 was NOT hoisted -- it stays after the probes, per the triage seat's explicit constraint; its now-stale premise comment ('would have been caught by ANY error-level line') was corrected in place, and the OIDC special case was kept. The error pattern was extracted to SMOKE_ERROR_LOG_PATTERN and reused unchanged, so the boot window also gets the error-level scan at no cost. Followed the precedent at :833-840 (the audience-posture assertion that already refuses BEFORE the behaviour probes) rather than inventing a shape, and said so in the PR body. New pin: packages/spec/scripts/publish-smoke-boot-failure.test.ts, 11 tests, driving the real functions by SOURCING the script.",
"predicate": "NOT severity. 'A unit of the composition did not arrive', in two legs. Leg A = the load site names the unit, one alternative per real emit site in packages/cli/src/commands/serve.ts (:3917 'AuthPlugin failed to load:' at warn; :3958 'Failed to load plugin:'; :4338 '[Capability:CAP] failed to load'). A1 carries a tail guard -- 'load' must not be followed by another WORD -- which is the whole difference from the benign content-load family. Leg B = the kernel's own degraded-boot verdict (packages/core/src/kernel.ts :354/:370), which never reads the cause, so it fires whatever the load site said or said nothing; it is by construction never benign because a core service that DID get a fallback takes the sibling warn \"Service '...' not provided -- using in-memory fallback\", which the pattern does not match. WOULD have caught: the specimen, plus any boot that costs a declared core service, whatever the wording. WOULD NOT have caught: a boot defect that costs no CORE-criticality service and whose load site says nothing at all.",
"healthy_boot_warn_baseline": "MEASURED from real CI, not assumed. (1) pack mode, run 34276056630 / job 102229481940 -- all auth+CRUD probes green, 'Plugins: 34 loaded' with Auth in the roster; its server-log tail was printed because section 4 caught an unrelated post-boot ERROR, which is how a healthy boot window became readable. Warn-shaped lines in it: exactly one, ' [warn-glyph] Console dist not found -- install @object-ui/console ...'. No boot-diagnostics block at all, i.e. ZERO structured warns. (2) registry mode, run 34084559243 (the specimen) printed 4 structured boot warns; ONE is baseline-normal for registry mode ('[MetadataPlugin] artifact ... predates this runtime's spec ... ADR-0087 conversion' -- the canary installs the last PUBLISHED release, so protocol skew is expected) and THREE are consequences of the defect (CORE: Core service missing: auth / System started with degraded capabilities / SharingServicePlugin could not enumerate organizations, the last only because plugin-auth never created sys_organization). CONCLUSION: widening the severity set wholesale to WARN would red on a healthy boot in BOTH modes. The pack-mode line even carries the SAME warn glyph as the specimen, so the glyph is disqualified too; and a bare 'failed to load' grep is disqualified by the content-load family (SettingsServicePlugin translations, platform-objects translations, Loader TYPE:NAME, webhook-auto-enqueuer, SmtpTransport nodemailer).",
"tests": "ALL exit codes captured BEFORE any pipe. (a) new pin: 'pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 scripts/publish-smoke-boot-failure.test.ts' -> 'Test Files 1 passed (1) / Tests 11 passed (11)', os-verify-lock 'VERDICT command-exit 0'. (b) affected package: 'pnpm --filter @objectstack/spec test:repo' -> 27 files / 403 passed, VERDICT command-exit 0; 'pnpm --filter @objectstack/spec test' -> 466 files / 13098 passed, 1 skipped, VERDICT command-exit 0; 'pnpm --filter @objectstack/spec typecheck' -> VERDICT command-exit 0. COVERAGE CHECKED, NOT ASSUMED: the root 'tsc --noEmit' does NOT reach scripts/*.test.ts (--listFiles count 0 for both my file and the sibling port-collision test); tsconfig.scripts.json DOES (--listFiles count 1, exit 0). (c) lint: full repo 'pnpm lint' (eslint . --no-inline-config) LINT_EXIT=0 -- no narrowing was needed, so no narrowing evidence is owed. (d) gates: dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 68 families from the real 3-path change set; all 68 run; 64 exit 0; 4 exit 3 = PREREQUISITE NOT MET (check:dts-closure, check:dual-build-cjs-loads, check:sourcemap-no-sources-content, check:type-check-debt -- all four need a full closure build and say in terms 'This is NOT a pass': read as NOT MEASURED, neither green nor red). 'dispatch-gates --ran' reconciles: '68 derived famil(ies) accounted for -- 68 run, 0 NOT-MEASURED'. (e) tool-script test surface: git grep for tests reading publish-smoke.sh returns exactly the two files in packages/spec/scripts/, both green in test:repo; the two other hits (packages/cli/test/serve-runtime-state-project-key.test.ts, packages/create-objectstack/src/scaffold-e2e-boot-probe.test.ts) cite it in PROSE ONLY and read no file -- checked, not assumed. (f) control-byte self-scan: grep -naP over both edited files, silent. BEFORE/AFTER on the specimen: the pre-fix pattern matches ZERO lines in the specimen's boot window (pinned as OLD_PATTERN_HITS); after, the REAL gate block -- extracted from the script by text marker, not line number, and driven with the real boot logs -- gives block_exit=1 on the specimen with the AuthPlugin line FIRST ('5: [glyph] AuthPlugin failed to load: The requested module @better-auth/core/db does not provide an export named createLocalAccountIssuer') plus both kernel lines, and block_exit=0 + 'ok' + BLOCK_REACHED_END on the healthy boot. CONTROLS: firing control (verbatim healthy pack boot passes, with a vacuity guard proving it really carries warn-glyph lines); firing control 2 (healthy registry boot that spells WARN in full also passes); decorated control with ANSI placed MID-SPAN rather than at the edges, because edge decoration leaves the span contiguous and proves nothing -- measured, unscrubbed the run still detects a failed boot (leg B survives) but LOSES the plugin's name, scrubbed it keeps all 3 hits; benign control (whole content-load family + the in-memory-fallback warn) no match; nonsense control no match. ABLATIONS, each mutation proven on disk by grepping the CHANGED TEXT (not git diff --stat) and each restore proven twice, by blob hash equality AND 'git diff HEAD' empty: predicate := pre-fix error-only set -> 4 of 11 red; predicate := 'WARN|warn' wholesale -> 5 of 11 red including FIRING CONTROL 2; leg B removed -> 3 of 11 red. All at f2af98a45a.",
"unexpected_measurements": "TWO, both reported rather than smoothed over. (1) The WARN-wholesale ablation FAILED TO RED the firing control on the first attempt -- the opposite of my prediction. Cause: the pack-mode healthy fixture's only warn-shaped line uses the glyph and never the literal word WARN, so it could not discriminate against a 'WARN|warn' predicate -- i.e. my firing control was weaker than I had claimed. Fixed by adding HEALTHY_REGISTRY_BOOT, a healthy registry-mode boot that spells WARN in full; the ablation now reds FIRING CONTROL 2 as it should. That fixture is RECONSTRUCTED (the specimen's boot window minus the four defect-attributable lines) rather than verbatim, and its docblock says so. (2) Mid-span vs edge ANSI decoration are NOT equivalent: with decoration at the edges the unanchored pattern matches even unscrubbed, so a test built on that shape would have proved nothing about the scrubber. Only the mid-span shape shows what scrubbing actually buys, which is the plugin's NAME.",
"process_incident": "My first ablation run REVERTED my own uncommitted implementation. The restore leg was 'git checkout HEAD -- scripts/publish-smoke.sh', and at that moment HEAD was still origin/main, which does not carry the fix -- so 'restore' silently undid the work instead of undoing the mutation, and its blob-hash check passed because a blob did exist, just the wrong one. Detected immediately (the ablation-2 anchor assertion found no SMOKE_BOOT_FAILURE_PATTERN line), the implementation was reapplied, COMMITTED, and both ablations re-run against a HEAD that carries it. The re-run script now asserts the precondition explicitly (HEAD blob == disk blob, and HEAD contains the gate) and refuses with a distinct exit code otherwise. No work was lost and no result reported here comes from the bad run.",
"mcp_calls": "4 -- 2x get_job_logs (specimen job 101626009369 and healthy job 102229481940; the REST log endpoint 302s to an Azure blob host the egress proxy denies, so MCP was the only channel) and 2x search_issues (one query plus one control). Everything else went over repo-scoped REST via curl. CHANNEL SWITCH DECLARED: the REST search endpoint answers 403 in this container ('sessions are bound to their configured repositories'), so the duplicate search used MCP; the zero result IS a reading because the control query returned #16793 itself as its first hit.",
"file_surface": "Declared surface was scripts/publish-smoke.sh + its negative/self test + .changeset/. Actual: scripts/publish-smoke.sh (in surface); packages/spec/scripts/publish-smoke-boot-failure.test.ts (in surface, the test); packages/spec/vitest.repo-tests.json (ONE-LINE EXTENSION, declared: that file is the registration list for the vitest 'repo' project, and without the entry the new test is never executed -- registering it is the mechanism by which the test is a test, not a separate change). .changeset/ NOT written: measured with 'npm pack --dry-run --json' in packages/spec that the published tarball has 276 entries and NONE of this PR's paths are among them, with a positive control that 207 README.md/*.zod.ts entries DO ship; the repo root is private:true, so scripts/publish-smoke.sh publishes nothing either. That is the repo's stated skip-changeset condition, so the 'skip-changeset' label was applied via the ADDITIVE endpoint (POST .../labels, HTTP 200) and READ BACK -- labels now ['skip-changeset'], nothing stripped.",
"open_questions": [],
"out_of_scope_findings": [
"noted, not filed: serve.ts:3958 ('Failed to load plugin:') and :4338 ('[Capability:CAP] failed to load') go through console.error but print BARE text -- no '[error]' prefix and no ISO-Z ERROR -- so section 4's error pattern never matched them either, despite being error-INTENT lines. Both are boot-time-only emit sites, so the new boot gate now covers them and the residual miss is theoretical rather than reachable. Successor: the next PR touching publish-smoke's log scan; the fact is recorded inline in the script's own comment next to A2/A3 so that reader finds it without this report.",
"noted, not filed: a HEALTHY pack-mode release-candidate boot emits '[warn-glyph] Console dist not found -- install @object-ui/console (already built) or run pnpm --filter @object-ui/console build in the objectui workspace' (run 34276056630). Whether the packed release candidate SHOULD ship a console dist is a packaging question I have no evidence about -- it may well be deliberate for pack mode -- and it is outside this card, so I did not file on a guess. Targeted MCP search returned 0 open issues for it, and that zero is a reading (control query returned #16793 as its first hit). Successor: whoever owns pack-mode fidelity; flagging it to PM because I cannot name a specific PR that would otherwise trip over it."
]
}
would have been caught by ANY error-level line → 0 occurrences
the pin exists and is wired
packages/spec/scripts/publish-smoke-boot-failure.test.ts (blob 88f92dfee5), registered at packages/spec/vitest.repo-tests.json:14; the ORDER assertion is present (4 hits)
Firing control — the Failed to register OIDC discovery routes special case is still in SMOKE_ERROR_LOG_PATTERN at :486, so the probe can distinguish "the file changed" from "the file was rewritten wholesale". Nonsense control — a token that appears in neither tree reads 0 in both files, so the greps above are not vacuously true.
Named residual, carried forward from the PR, not fixed here: a boot defect that costs no core service and whose load site logs nothing at all still slips through — leg B of the predicate is keyed to the kernel's core criticality. An optional plugin failing silently is not caught. This is stated in the PR body rather than papered over; if it is ever observed in a real run, it is a new card, not a reopen of this one.
Out of scope and still open: Server is ready on a degraded boot (#16630), the guidance half (#16500). The declared-range half (#16634) is already on main.
Closing by hand: the PR carries Part of #16793, deliberately not a closing keyword, so GitHub did not close this card on merge.
bugSomething isn't workingdomain:devxDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3toolingFix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface
Activity
os-zhuang commentedon Sep 8, 2026
分诊:
domain:devx/Bug/priority:p2/pm:queue域 ——
scripts/publish-smoke.sh⇒ 车道表scripts/⇒domain:devx。当刻复核 —— 两条性质都成立
⇒ ① 严重度:只匹配 error / fatal,而插件加载失败记在 WARN。
⇒ ② 次序:section 4 是脚本的最后一节,在 section 3(probes)之后 ⇒ 即便严重度匹配得上,启动期缺陷也总是先被报成一次 probe 失败。
⭐ 顺带一处相关上下文,认领席会用得上:
:720有一条注释讲某些"ERROR"会从下面这道日志扫描里溜过去("they did — see the escaped …")⇒ 这个模式此前已经漏过一次,本卡是同一处的第三个漏法(严重度 + 次序)。等级
p2—— 判据是「金丝雀的全部价值是指认责任方」卡面这一段本席复核后加权:
实测证据具体且有编号:run
34084559243/ job101626009369,缺陷是启动时的一行:作业没有在那里退出,而是拿一台没有 auth 的服务器跑完了每一条 auth 与 CRUD 探针,最后挂在一条探针上。⇒ 本可以指名成因的那道扫描,跑在那些探针之后。
⭐ 而且它已经产生过可计量的代价:在 #16500 上让分诊席读了整份日志才够到根因。
不到 p1:CI 仍然见红(不是假绿),坏东西不会因此落地;代价是归因错误 + 一次全量日志阅读。
⛔ 一处不能被"修好"的东西
:984那条模式里包含Failed to register OIDC discovery routes—— 一条特例串。修法:卡面给的形状本席同意,并指出它为什么是"新断言"而非"机械编辑"
⇒ 两个改动缺一不可:
failed to load这类启动期信号匹配,⛔ 不是把 WARN 整体纳入 error 扫描(那会把每一条无害的 WARN 变成红)。⭐ 且失败消息必须点名那个插件 —— 这正是本卡的目的(指认责任方),一条"boot 有问题"的通用红等于没修。
⛔ 不在本卡(卡面已划,本席保留)
Server is ready该不该在降级启动时打印 ⇒ [finding] the server prints✓ Server is readyon a degraded boot — the ready signal is independent of the degraded-capabilities warning, and the louder one is wrong #16630。交给认领席
:974/:984两处源码事实(严重度与次序)。⇒ 认领时按那条 run 把日志调出来,它同时是回归 fixture:修好之后,同样的输入必须在 probes 之前就红,并点名AuthPlugin。typecheckscript (DEBT ledger entry)" — false for all three packages named; the DEBT ledger holds four other packages entirely #16742 / [finding] four docblocks attribute all 80 route registrations tothis.routeManager.register(— false once #16243 lands, and one of the four is inside the census file that PR itself repaired #16307 / docs: two prose notes still describePHASE2_IMPLEMENTATION.mdsections 4 and 5 as teaching the unresolvable@objectstack/core/securitysubpath, which PR #16205 repaired #16208 三张同类)。分诊席声明:本席只分类/定级/路由,⛔ 不认领、⛔ 不派工、⛔ 不写码、⛔ 不合并、⛔ 不裁决决策箱卡。
Generated by Claude Code
claude commentedon Sep 8, 2026
Claim: PM loop round 4
Session:
session_012GKcPZbMoGq7WPzKLfRBTUBranch:
claude/issue-16793-publish-smoke-boot-failureWorktree:
objectstack-issue-16793Domain:
domain:devxFile surface:
scripts/publish-smoke.sh+ its negative test / self-test +.changeset/(stop on breach; explain in the report)Container & model:
M,mode:subagent,model: opus— default judgement tier (TIER_DEFAULT). ⛔ Not the floor tier: the card says it in terms — "a new assertion on the smoke's contract, not a mechanical edit". Deciding what counts as a boot failure and where the assertion goes is the work.Clause-②: no
Reason for
no:scripts/**only.packages/spec/src/**untouched, no published surface moves. Judged from content.Thread-read: the card body in full and its one comment.
Serial constraints cleared: all 19 open PRs' changed-file lists fetched paged to exhaustion at 2026-09-08T20:5xZ and filtered for
scripts/publish-smoke.sh— zero hits; control, 19 of 19 returned a non-empty list.Anchors RE-TAKEN by this seat on
origin/main, 20:5xZ — ⛔ confirm by text, not by number⇒ Both halves of the card's mechanism confirmed: the scan's severity set is error|fatal only, and section 4 runs after section 3.
⭐ TWO things in the file the card does not cite, and both matter to your fix
1. The precedent for what you are being asked to build already exists, ~140 lines above. At
:833-840the script already fails early, before the behaviour probes, for a different reason, and its comment states exactly the principle this card is about:⇒ ⭐ Your assertion is the same shape as one the file already endorses. Follow that pattern rather than inventing a new one, and say in the PR body that you did — an early refusal here is not a new idea in this script, it is the script's own idea applied to a case it missed.
2. The log scan has been fooled before, and by formatting. At
:719-721:⇒⚠️ Whatever pattern you add, assume the line may be decorated. A
failed to loadmatcher that only matches an undecorated line reproduces the very defect that comment records. Drive a decorated variant in your test.The defect, and what "fixed" has to mean
Two properties combine, and ⛔ fixing only one leaves the card open:
error|fatalonly.⭐ The value at stake is ownership attribution, which the card states better than a severity argument would: "A boot-load failure and a genuine auth-behaviour regression are different owners, and today they produce the same job output — a red probe." Run
34084559243/ job101626009369is the specimen: one boot line (AuthPlugin failed to load: … does not provide an export named 'createLocalAccountIssuer'), and the job ran every auth and CRUD probe against a server with no auth before failing on a probe.What counts as a boot failure? ⛔ Do not answer it with a bare
failed to loadgrep and move on:⇒ State your predicate, state what it would and would not have caught, and ⛔ do not widen the severity set wholesale to WARN without saying what else is at WARN in a healthy boot. Measure that: run a clean boot, collect the WARN lines, and report them. A predicate chosen without knowing the healthy baseline is a guess.
⛔ Out of scope, named by the card
Server is readyshould print on a degraded boot — [finding] the server prints✓ Server is readyon a degraded boot — the ready signal is independent of the degraded-capabilities warning, and the louder one is wrong #16630.mainby fix(plugin-auth): pin the better-auth family to an exact 1.7.2, and gate the declared range against our own import surface #16634) and the guidance half (Registry canary failed: fresh npx create-objectstack install is broken #16500). ⛔ Neither is yours.Reporting
Before/after against the specimen: a boot log carrying the⚠️ Firing control: a healthy boot must still pass — ⛔ a run that reds on the specimen proves nothing if it also reds on a clean boot. Decorated-line control per
AuthPlugin failed to load: …line must go from "probe failure, cause unnamed" to "fails at boot, naming the plugin".:719-721. Nonsense control. Exit codes captured before any pipe.Generated by Claude Code
claude commentedon Sep 8, 2026
os-dev-report
{ "issue": 16793, "status": "done", "branch": "claude/issue-16793-publish-smoke-boot-failure", "pr": "https://github.com/objectstack-ai/objectstack/pull/16976", "premise_still_valid": true, "summary": "Both anchors confirmed BY TEXT on origin/main before editing: section 4 (log scan) runs after section 3 (probes), and its pattern is error|fatal only. Added a boot gate between sections 2 and 3 that scans the boot window (which at that point IS $SERVER_LOG, nothing having been probed yet) and fails naming the plugin. Section 4 was NOT hoisted -- it stays after the probes, per the triage seat's explicit constraint; its now-stale premise comment ('would have been caught by ANY error-level line') was corrected in place, and the OIDC special case was kept. The error pattern was extracted to SMOKE_ERROR_LOG_PATTERN and reused unchanged, so the boot window also gets the error-level scan at no cost. Followed the precedent at :833-840 (the audience-posture assertion that already refuses BEFORE the behaviour probes) rather than inventing a shape, and said so in the PR body. New pin: packages/spec/scripts/publish-smoke-boot-failure.test.ts, 11 tests, driving the real functions by SOURCING the script.", "predicate": "NOT severity. 'A unit of the composition did not arrive', in two legs. Leg A = the load site names the unit, one alternative per real emit site in packages/cli/src/commands/serve.ts (:3917 'AuthPlugin failed to load:' at warn; :3958 'Failed to load plugin:'; :4338 '[Capability:CAP] failed to load'). A1 carries a tail guard -- 'load' must not be followed by another WORD -- which is the whole difference from the benign content-load family. Leg B = the kernel's own degraded-boot verdict (packages/core/src/kernel.ts :354/:370), which never reads the cause, so it fires whatever the load site said or said nothing; it is by construction never benign because a core service that DID get a fallback takes the sibling warn \"Service '...' not provided -- using in-memory fallback\", which the pattern does not match. WOULD have caught: the specimen, plus any boot that costs a declared core service, whatever the wording. WOULD NOT have caught: a boot defect that costs no CORE-criticality service and whose load site says nothing at all.", "healthy_boot_warn_baseline": "MEASURED from real CI, not assumed. (1) pack mode, run 34276056630 / job 102229481940 -- all auth+CRUD probes green, 'Plugins: 34 loaded' with Auth in the roster; its server-log tail was printed because section 4 caught an unrelated post-boot ERROR, which is how a healthy boot window became readable. Warn-shaped lines in it: exactly one, ' [warn-glyph] Console dist not found -- install @object-ui/console ...'. No boot-diagnostics block at all, i.e. ZERO structured warns. (2) registry mode, run 34084559243 (the specimen) printed 4 structured boot warns; ONE is baseline-normal for registry mode ('[MetadataPlugin] artifact ... predates this runtime's spec ... ADR-0087 conversion' -- the canary installs the last PUBLISHED release, so protocol skew is expected) and THREE are consequences of the defect (CORE: Core service missing: auth / System started with degraded capabilities / SharingServicePlugin could not enumerate organizations, the last only because plugin-auth never created sys_organization). CONCLUSION: widening the severity set wholesale to WARN would red on a healthy boot in BOTH modes. The pack-mode line even carries the SAME warn glyph as the specimen, so the glyph is disqualified too; and a bare 'failed to load' grep is disqualified by the content-load family (SettingsServicePlugin translations, platform-objects translations, Loader TYPE:NAME, webhook-auto-enqueuer, SmtpTransport nodemailer).", "tests": "ALL exit codes captured BEFORE any pipe. (a) new pin: 'pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 scripts/publish-smoke-boot-failure.test.ts' -> 'Test Files 1 passed (1) / Tests 11 passed (11)', os-verify-lock 'VERDICT command-exit 0'. (b) affected package: 'pnpm --filter @objectstack/spec test:repo' -> 27 files / 403 passed, VERDICT command-exit 0; 'pnpm --filter @objectstack/spec test' -> 466 files / 13098 passed, 1 skipped, VERDICT command-exit 0; 'pnpm --filter @objectstack/spec typecheck' -> VERDICT command-exit 0. COVERAGE CHECKED, NOT ASSUMED: the root 'tsc --noEmit' does NOT reach scripts/*.test.ts (--listFiles count 0 for both my file and the sibling port-collision test); tsconfig.scripts.json DOES (--listFiles count 1, exit 0). (c) lint: full repo 'pnpm lint' (eslint . --no-inline-config) LINT_EXIT=0 -- no narrowing was needed, so no narrowing evidence is owed. (d) gates: dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 68 families from the real 3-path change set; all 68 run; 64 exit 0; 4 exit 3 = PREREQUISITE NOT MET (check:dts-closure, check:dual-build-cjs-loads, check:sourcemap-no-sources-content, check:type-check-debt -- all four need a full closure build and say in terms 'This is NOT a pass': read as NOT MEASURED, neither green nor red). 'dispatch-gates --ran' reconciles: '68 derived famil(ies) accounted for -- 68 run, 0 NOT-MEASURED'. (e) tool-script test surface: git grep for tests reading publish-smoke.sh returns exactly the two files in packages/spec/scripts/, both green in test:repo; the two other hits (packages/cli/test/serve-runtime-state-project-key.test.ts, packages/create-objectstack/src/scaffold-e2e-boot-probe.test.ts) cite it in PROSE ONLY and read no file -- checked, not assumed. (f) control-byte self-scan: grep -naP over both edited files, silent. BEFORE/AFTER on the specimen: the pre-fix pattern matches ZERO lines in the specimen's boot window (pinned as OLD_PATTERN_HITS); after, the REAL gate block -- extracted from the script by text marker, not line number, and driven with the real boot logs -- gives block_exit=1 on the specimen with the AuthPlugin line FIRST ('5: [glyph] AuthPlugin failed to load: The requested module @better-auth/core/db does not provide an export named createLocalAccountIssuer') plus both kernel lines, and block_exit=0 + 'ok' + BLOCK_REACHED_END on the healthy boot. CONTROLS: firing control (verbatim healthy pack boot passes, with a vacuity guard proving it really carries warn-glyph lines); firing control 2 (healthy registry boot that spells WARN in full also passes); decorated control with ANSI placed MID-SPAN rather than at the edges, because edge decoration leaves the span contiguous and proves nothing -- measured, unscrubbed the run still detects a failed boot (leg B survives) but LOSES the plugin's name, scrubbed it keeps all 3 hits; benign control (whole content-load family + the in-memory-fallback warn) no match; nonsense control no match. ABLATIONS, each mutation proven on disk by grepping the CHANGED TEXT (not git diff --stat) and each restore proven twice, by blob hash equality AND 'git diff HEAD' empty: predicate := pre-fix error-only set -> 4 of 11 red; predicate := 'WARN|warn' wholesale -> 5 of 11 red including FIRING CONTROL 2; leg B removed -> 3 of 11 red. All at f2af98a45a.", "unexpected_measurements": "TWO, both reported rather than smoothed over. (1) The WARN-wholesale ablation FAILED TO RED the firing control on the first attempt -- the opposite of my prediction. Cause: the pack-mode healthy fixture's only warn-shaped line uses the glyph and never the literal word WARN, so it could not discriminate against a 'WARN|warn' predicate -- i.e. my firing control was weaker than I had claimed. Fixed by adding HEALTHY_REGISTRY_BOOT, a healthy registry-mode boot that spells WARN in full; the ablation now reds FIRING CONTROL 2 as it should. That fixture is RECONSTRUCTED (the specimen's boot window minus the four defect-attributable lines) rather than verbatim, and its docblock says so. (2) Mid-span vs edge ANSI decoration are NOT equivalent: with decoration at the edges the unanchored pattern matches even unscrubbed, so a test built on that shape would have proved nothing about the scrubber. Only the mid-span shape shows what scrubbing actually buys, which is the plugin's NAME.", "process_incident": "My first ablation run REVERTED my own uncommitted implementation. The restore leg was 'git checkout HEAD -- scripts/publish-smoke.sh', and at that moment HEAD was still origin/main, which does not carry the fix -- so 'restore' silently undid the work instead of undoing the mutation, and its blob-hash check passed because a blob did exist, just the wrong one. Detected immediately (the ablation-2 anchor assertion found no SMOKE_BOOT_FAILURE_PATTERN line), the implementation was reapplied, COMMITTED, and both ablations re-run against a HEAD that carries it. The re-run script now asserts the precondition explicitly (HEAD blob == disk blob, and HEAD contains the gate) and refuses with a distinct exit code otherwise. No work was lost and no result reported here comes from the bad run.", "mcp_calls": "4 -- 2x get_job_logs (specimen job 101626009369 and healthy job 102229481940; the REST log endpoint 302s to an Azure blob host the egress proxy denies, so MCP was the only channel) and 2x search_issues (one query plus one control). Everything else went over repo-scoped REST via curl. CHANNEL SWITCH DECLARED: the REST search endpoint answers 403 in this container ('sessions are bound to their configured repositories'), so the duplicate search used MCP; the zero result IS a reading because the control query returned #16793 itself as its first hit.", "file_surface": "Declared surface was scripts/publish-smoke.sh + its negative/self test + .changeset/. Actual: scripts/publish-smoke.sh (in surface); packages/spec/scripts/publish-smoke-boot-failure.test.ts (in surface, the test); packages/spec/vitest.repo-tests.json (ONE-LINE EXTENSION, declared: that file is the registration list for the vitest 'repo' project, and without the entry the new test is never executed -- registering it is the mechanism by which the test is a test, not a separate change). .changeset/ NOT written: measured with 'npm pack --dry-run --json' in packages/spec that the published tarball has 276 entries and NONE of this PR's paths are among them, with a positive control that 207 README.md/*.zod.ts entries DO ship; the repo root is private:true, so scripts/publish-smoke.sh publishes nothing either. That is the repo's stated skip-changeset condition, so the 'skip-changeset' label was applied via the ADDITIVE endpoint (POST .../labels, HTTP 200) and READ BACK -- labels now ['skip-changeset'], nothing stripped.", "open_questions": [], "out_of_scope_findings": [ "noted, not filed: serve.ts:3958 ('Failed to load plugin:') and :4338 ('[Capability:CAP] failed to load') go through console.error but print BARE text -- no '[error]' prefix and no ISO-Z ERROR -- so section 4's error pattern never matched them either, despite being error-INTENT lines. Both are boot-time-only emit sites, so the new boot gate now covers them and the residual miss is theoretical rather than reachable. Successor: the next PR touching publish-smoke's log scan; the fact is recorded inline in the script's own comment next to A2/A3 so that reader finds it without this report.", "noted, not filed: a HEALTHY pack-mode release-candidate boot emits '[warn-glyph] Console dist not found -- install @object-ui/console (already built) or run pnpm --filter @object-ui/console build in the objectui workspace' (run 34276056630). Whether the packed release candidate SHOULD ship a console dist is a packaging question I have no evidence about -- it may well be deliberate for pack mode -- and it is outside this card, so I did not file on a guess. Targeted MCP search returned 0 open issues for it, and that zero is a reading (control query returned #16793 as its first hit). Successor: whoever owns pack-mode fidelity; flagging it to PM because I cannot name a specific PR that would otherwise trip over it." ] }Generated by Claude Code
baozhoutao commentedon Sep 8, 2026
Landed — PR #16976 merged
2026-09-08T22:44:09Z, headf2af98a45a, intomainatdb4bf90384.Verified on a re-fetched
origin/main(db4bf90384), not on the PR branch and not on the dev's report:db4bf90384:879 if smoke_boot_failure_lines "$BOOT_LOG"; then:793 ── 2. boot the dev server→:879→:887 ── 3. probes:1096 ── 4. log scan— still last in the file (1121 lines):486 SMOKE_ERROR_LOG_PATTERN·:552 SMOKE_BOOT_FAILURE_PATTERNwould have been caught by ANY error-level line→ 0 occurrencespackages/spec/scripts/publish-smoke-boot-failure.test.ts(blob88f92dfee5), registered atpackages/spec/vitest.repo-tests.json:14; theORDERassertion is present (4 hits)Firing control — the
Failed to register OIDC discovery routesspecial case is still inSMOKE_ERROR_LOG_PATTERNat:486, so the probe can distinguish "the file changed" from "the file was rewritten wholesale". Nonsense control — a token that appears in neither tree reads 0 in both files, so the greps above are not vacuously true.Named residual, carried forward from the PR, not fixed here: a boot defect that costs no core service and whose load site logs nothing at all still slips through — leg B of the predicate is keyed to the kernel's
corecriticality. An optional plugin failing silently is not caught. This is stated in the PR body rather than papered over; if it is ever observed in a real run, it is a new card, not a reopen of this one.Out of scope and still open:
Server is readyon a degraded boot (#16630), the guidance half (#16500). The declared-range half (#16634) is already onmain.Closing by hand: the PR carries
Part of #16793, deliberately not a closing keyword, so GitHub did not close this card on merge.Generated by Claude Code