Skip to content

[PR] fix(ci): unblock red master — pretest-cache dist mtime refresh, dsh sidScope merge casualty, lifecycle ledger entry (#4541) - #4557

Closed
ranxianglei wants to merge 3 commits into
masterfrom
2026-10-24_4541_pretest-cache-mtime-refresh
Closed

ranxianglei wants to merge 3 commits into
masterfrom
2026-10-24_4541_pretest-cache-mtime-refresh

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

What this fixes

Since #3330 merged to master today 10:31Z, every CI test shard containing the golden-storage-render file hangs on the same subtest, and static-gates + lifecycle-ledger-guard are also red — every merge, including releases, is blocked. Three distinct root causes sit behind the red master; this PR fixes all three as three labeled commits.

1. Pretest dist cache restore leaves archive-time mtimes → the #3330 freshness guard misreads them as stale (the reported symptom)

2. #4525 merge casualty: dangling sidScope in dsh-native.ts → typecheck red (static-gates)

  • The merge kept master-side dispatchScope (object store) while carrying over the new fork-blind-spot log block written against the other side's old string-store sidScope → TS2304, static-gates red on both OS legs.
  • Latent behavior bug in the same block: typeof scoped === "string" against an object store would make scopedActive permanently false.
  • Ported the block to dispatchScope.getStore() with a field-level sid check; corrected an adjacent stale comment referencing the dropped name. Typecheck clean. Never shipped — no tag contains the offending commit.

3. BILI_CODEX_STATE_MODE missing from LIFECYCLE.md → lifecycle-ledger-guard red

Behavior changes

  • Pretest cache HIT log line gains , mtimes refreshed suffix (additive; existing prefix assertions unaffected).
  • On HIT, cached dist file mtimes now advance to hook-run time (by design: mtime = materialization time). No cache key/format/marker change.
  • dsh blind-spot log scopedActive semantics restored — the broken variant never compiled or shipped, so no released-artifact drift.
  • LIFECYCLE.md doc-only.

No config surface changes. No version bump. No kernel/ changes.

查重: 无(按失败签名检索 open+closed issue/PR;子缺陷 1 与 OP 查重结论一致,子缺陷 2/3 为分析中发现,均无既有条目)

Local verification (targeted only, full suite = remote CI): tests/ci-pretest-cache.test.ts 8/8, tests/golden-kernel-dist-guard.test.ts 4/4, tests/issue4215-fork-gate-diagnostics.test.ts 8/8, typecheck clean, lifecycle-ledger-guard OK, CLI smoke (MISS-build then HIT-refresh).

Closes #4541

@ranxianglei ranxianglei changed the title fix(ci): unblock red master — pretest-cache dist mtime refresh, dsh sidScope merge casualty, lifecycle ledger entry (#4541) [PR] fix(ci): unblock red master — pretest-cache dist mtime refresh, dsh sidScope merge casualty, lifecycle ledger entry (#4541) Oct 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-10-24_4541_pretest-cache-mtime-refresh (a7b71f8)

Latest build — install this exact version

npm install -g billion-context@0.0.5503-pr.4557.4913466

This exact version is immutable and reproducible. The rolling pr tag tracks the newest test build across all PRs.

Recent builds (commit → version)

commit version build
a7b71f8 billion-context@0.0.5503-pr.4557.4913466 build

Download artifact

  1. Download the artifact from the Actions run
  2. Extract the tarball and install:
tar xzf billion-context-pr4557.tgz
npm install -g package

Install instructions are refreshed on each push.

@ranxianglei

Copy link
Copy Markdown
Owner Author

(ai: zhipuai-lb/glm-5.3)

陈旧票清理(第三批动作①):目标 issue #4541 已关。为避免重复劳动关闭本 PR;如判断有误请直接 reopen 并留言。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI test shards all red since today 10:31Z: kernel-dist freshness guard rejects cache-restored dist as stale — every merge blocked

1 participant