Skip to content

[PR] Stale item cleanup: Document transitional feature flag registry + CI guard (BILI_* outside registry → immediate red) | [PR] 陈年件清理:过渡开关台账进文档 + CI 守卫(台账外 BILI_* 直接红) - #3256

Merged
ranxianglei merged 3 commits into
masterfrom
2026-10-15_stale-cleanup-ledger
Oct 20, 2026

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

#3249 仓库侧交付:台账 + 守卫 + 远端分支卫生。本 PR 覆盖验收项 1、3;项 2(persona-anchor 删除)按 issue 要求 gated 在 #2989,保持开放跟踪。

本 PR 内容

远端分支卫生(已执行,无代码改动)

删除 origin 已合并远端分支 1394 条(1386 = 已合并 PR 的同仓 head 分支 + 8 = 完全并入 master 但无对应 PR 记录)。删除前核对:与 open PR head 交集为空。删除后 origin 剩 361 个 head(128 open PR 分支 / 201 closed-unmerged / 30 无 PR 废弃分支,均未并入 master,不在「已合并清零」范围)。另执行一次 git worktree prune 清失效登记。明细见 LIFECYCLE.md §5。

行为变更声明

  • 运行时行为零变化——本 PR 只动文档/脚本/CI。
  • 新增 CI 门禁:今后 src/ 新增 BILI_* 环境变量而不登记 LIFECYCLE.md 将直接红(这正是门禁目的)。
  • 配置面无增改:没有新增/改名任何旋钮,只把既有变量登记成文。

验收状态

Refs #3249(issue 待 #2989 完成后再关)

)

- LIFECYCLE.md: transition-switch/cap ledger (§1, fields: introduced /
  reason / release condition / status), full permanent BILI_* registry
  (§2), non-env identifier list (§3), retirement-module inventory (§4,
  persona-anchor.ts gated on #2989 twin-ification, fold-reconcile legacy
  path on #3248, zero TODO(#NNNN) markers found), hygiene log (§5).
- scripts/lifecycle-ledger-guard.mjs: zero-dep guard failing when a
  BILI_* env var read from src/ is not registered in LIFECYCLE.md
  (stale entries notice-only, matching the sibling guards' posture).
- ci.yml: lifecycle-ledger-guard job alongside docs-coverage /
  config-surface-guard (not pull_request-gated).
- reference/env-vars.md: pointer separating knob-existence policy from
  knob-lifecycle tracking.
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-10-15_stale-cleanup-ledger (04a3cc7)

Option A — Install this exact build (recommended)

npm install -g billion-context@0.0.4761-pr.3256.94d3511

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

Option B — Download artifact

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

Install instructions are refreshed on each push.

…gate)

The three helpers are file-internal; exporting them tripped the
unused-exports CI gate (INTERNAL_ONLY).
@ranxianglei ranxianglei changed the title 陈年件清理:过渡开关台账进文档 + CI 守卫(台账外 BILI_* 直接红) [PR] Stale item cleanup: Document transitional feature flag registry + CI guard (BILI_* outside registry → immediate red) | [PR] 陈年件清理:过渡开关台账进文档 + CI 守卫(台账外 BILI_* 直接红) Oct 16, 2026
@ranxianglei
ranxianglei merged commit b156c02 into master Oct 20, 2026
21 of 22 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

📦 Merged Build Published

This merge to master was published as 0.0.684-master.b156c02 (rolling master tag).

npm install -g billion-context@0.0.684-master.b156c02  # this exact build
npm install -g billion-context@master  # always the newest merged build

npm view billion-context@master prints the current version at any time.

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.

1 participant