Redact local paths from public evidence - #5
Merged
Conversation
huyuxinn
added a commit
that referenced
this pull request
Aug 16, 2026
呼应 main 的 redact-public-evidence-paths(PR #5)政策,并修掉 "绝对路径在别人机器上是死链接"的消费正确性问题: - lib/ledger.py 新增 to_portable_uri/resolve_uri(锚 ASSET_PIPELINE_ROOT 环境变量,缺省 ACTIVE_ROOT,与 runtime_config 语义一致); validate_ledger(check_files) 经 resolve_uri 解析相对 uri - 写入方(import_materialize/backfill_upstream/writeback_verification) 一律写 ACTIVE_ROOT 相对 posix 路径;读取方(usd_enrich/rescale_backfill) 经 resolve_uri(usd_enrich 在边界处转绝对路径交给编译器) - 存量一次性迁移 scripts/ledger/relativize_paths.py:87 份账本重写 (80 份 /home 前缀剥除 + 7 份旧纪元 "../" CWD 相对 uri 归一), isaac/sweep 证据搬入 results/(gitignore 本地保留),0 失败; 账本内 /home|/Users 字符串清零,卫生测试固化 (test_ledger_path_hygiene.py,与源码卫生测试同族) - s10.2 判据升级为内容判定(选中 model 实测含 red):08-03 写死的 "必须选 301_cup" 在原生资产获得模型级实测颜色后成为陈旧金标 ——039_mug m10 实测红 40.9% 主导,按类目精确匹配胜出是正确行为 验证(全部真实运行):272 测试 + 仓库级 104 测试全绿;全库审计 asset_library 64/65 clean(余 1 为 08-13 已标记的 /tmp webcache 旧账) + upstream 16/16;Isaac can 案经相对 uri 全链复跑,指标与前日逐位一致; s12 外部专属 5/5;s10 全过。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MWzzZx8VvE8dNYDEfFjQSg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
<USER_HOME>Why
The logs are small, intentional acceptance evidence, but the absolute workstation paths exposed real local account names that are not part of the public evidence contract.
Validation
/home/<user>and/Users/<user>paths in public evidence logsRepo-docs sync gate
Answer-only: this redaction does not change the compiler, platform, evidence semantics, or paths documented in
repo-docs/; no guide patch is required.