Skip to content

WIP: docs(ledger): census backfill — record the Executor::new constructor path - #2100

Merged
caomengxuan666 merged 1 commit into
masterfrom
chore/ledger-executor-new-backfill
Oct 29, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
chore/ledger-executor-new-backfill

Conversation

@caomengxuan666

@caomengxuan666 caomengxuan666 commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

补登 rubash::Executor::new 消费路径,解 canary covers 红,master 既存缺口。

背景

canary 的「Ledger covers everything niubash consumes」步现红:1 个 MISSING——rubash::Executor::new。出处:niubash#694 的 dump / pretty-print 修复(niubash#695 落地)在 niubash src/main.rs 的 read_invocation_script_operand 里借裸 Executor 跑引擎自家 find_script_on_path(无斜杠脚本操作数的 $PATH 搜索),以根重导出拼写命名构造器,而账本普查从未登记该消费路径。此红在 master 既存——#2095/#695 锁步对清掉 E0063 漂移后,配对 job 才走到 ledger 完整性步而显形(fix-fd-batch 收敛节在案),与任何在飞 PR 无关。

本 PR

只改 docs/api-ledger.md(+37/−2):

  • 头部 addendum(Executor::new 补登注记)
  • §0 补登普查基线:rubash b41150e4 / niubash 4f9e8a17,occurrences 按 §0 机械口径实测——rubash::Executor::new (1),恰 1 文件 src/main.rs
  • §2.1 根重导出行补记构造器路径;§4 生命周期行补记 builder 之外保留的这一个直接 new
  • §6 一条:method rubash::Executor::new(按 kind、path 排序置于 method 块首)

配对

niubash 侧同字节 PR:unixwin/niubash#697 。两仓账本须逐字节一致:本 PR 的 canary cmp 步在配对 PR 合入前会红(对 niubash master 的旧账本),对方的 ledger-sync 亦然——这是配对账本的既定合入形态,两 PR 须紧邻合入,次序请主会话裁定。本簇不自合。

Refs niubash#694(消费出处);本 PR 不关任何 issue。

本地验证(补登后树实测)

  • scripts/check-api-ledger.py --self-test:通过
  • presence tripwire:all 157 ledger symbols present,exit 0
  • covers(canary 同命令 --repo . --niu <niubash master 树>):exit 0,all 79 consumed niubash paths are recorded;补登前同一命令 exit 1、恰为这 1 个 MISSING(另有 2 条 recorded-but-not-consumed warning 为既存、与本次无关)
  • 两仓副本 cmp:逐字节一致

…path (niubash#694)

The completeness half of the canary flags one path as consumed-by-niubash but unrecorded: rubash::Executor::new — niubash#694's dump / pretty-print fix (landed by niubash#695) borrows a bare Executor in read_invocation_script_operand to run find_script_on_path for a slash-less script operand, naming the constructor under its root re-export spelling, which no census ever registered. The gap is pre-existing on master — it surfaced in the pairing job's ledger step once the #2095/#695 lockstep cleared.

Records the path with a header addendum, a §0 backfill census basis (rubash b41150e / niubash 4f9e8a17; occurrence count measured under the §0 rule: 1, in src/main.rs), a §2.1 root re-exports row amendment, a §4 lifecycle-row note, and one §6 entry (method rubash::Executor::new). Docs only; the mirror commit lands in niubash under the same branch name.
@caomengxuan666
caomengxuan666 marked this pull request as ready for review October 29, 2026 10:37
@caomengxuan666
caomengxuan666 merged commit 23c6743 into master Oct 29, 2026
10 of 11 checks passed
@caomengxuan666
caomengxuan666 deleted the chore/ledger-executor-new-backfill branch October 30, 2026 01:41
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