Repository navigation
feat(profile): 头部 13 张图表改为双簇页签布局——锚点条 + details 页签; - #8
Merged
Merged
Conversation
- 9+4 双簇:每簇一行居中锚点栏 + 13 个 details 页签,growth/latency 默认展开,图表连同说明行原子移入页签 - FIG/DATA 标记序列零变更(lint 计数与改前一致:75 DATA + 13 FIG),中英 README 逐行镜像,锚点 id 两版共用 - 离线 substitute() 模拟通过:包裹层逐字节存活、替换幂等、标记流稳定、cur_year 仍为单行 - 页面高度由约 13 个模块收敛至页签条 + 双展开页签(约 3.7 倍缩减) 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- GitHub 将 summary 内 <a name> 重写为 name="user-content-<id>",裸 #<id> 无法命中; - 跟随 GitHub 脚注机制的官方约定,13 个栏链接 href 统一加前缀,实机验证可滚动定位 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- tests/_bps.py:AST 按名提取加载器,绕开模块级网络执行暴露纯函数接缝,行号无关抗重构 - test_contract.py:scan_markers/audit_parity/audit_assets/substitute 契约锁定 + 双 README 真实 Golden Master(75 DATA + 13 FIG、幂等、标记流稳定、标记外逐字节不变) - test_svg_gates.py:13 张真实资产过闸 + 9 类变异逐门拒绝 + 3 个渲染器合成输入字节级 Golden Master - test_cli.py:--lint 退出码与输出格式、未知参数 ABORT 快照 - tests/golden/:渲染 Golden Master(生成时已验确定性与过闸) 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- 全部 13 个渲染器以合成输入字节级锁定(生成器从测试 _cases() 直接生成,杜绝夹具双源漂移) - 参数化 subTest 覆盖 + 金样文件恰好十三份的闭包断言 - 每份金样生成时验证确定性与过闸 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- 模块级线性执行(import 即跑网络)收敛为 refresh()(采集+派生+渲染,窄接口 6 键返回)+ main()(argv/lint/守卫/写盘),文件区段顺序即控制流的 L4 根因消除 - 闭包依赖三函数(ecdf_points/windowed_run/cadence_alt)随数据闭包内聚移入 refresh() - 单文件零依赖设计保持(README 承诺),不拆包;测试加载器零改动 - 等价性证明:31/31 特征化测试 + --lint 逐字一致 + 实时全链路 --check 新旧代码输出字节级相同(含同点 fail-closed ABORT) 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- 星拆分守卫(v3 出生即恒真,真守卫是 acc_stars None-die,git 考古 01380a0) - ZERO_Y 常量断言 ×2(常量表达式永不可触发,不变量由注释承载;且 assert 与全文件 die() 风格不一致并在 -O 下消失) - ext_owners 死全局(计算后零读取,四维雷达确认) - emit() 僵尸参数 cls(函数体不读,调用方自行推导) 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- lang_of_commit→commit_dates(名为语言实为提交日期);ta/ts/na/ns→total_*/share_*(ts 与 CSS 类名碰撞) - surplus_alt 的 wp/ep→wd_peak_h/we_peak_h(对齐既有 fact 键);render_ground 参数 rel→rel_counts(他处 rel 指 release 对象) - anon_contribution_counts 的 html→page(遮蔽 import html);punchcard 的 pc,pr→mo,ring(pc_ 前缀他处指 punchcard facts) - sub1pct/sub1_txt→types_under_one_pct/under_one_pct_note;_join→oxford_join;render_growth docstring 悬空引用 figure_alt→*_alt/ALTS - AST 作用域感知重命名(只改标识符不触字符串字面量),13/13 金样字节级守护 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- 小时轴序 6 处重复推导 → HOUR_ORDER 模块常量(加载器白名单机制同步) - GitHub 时间戳格式串 15 处散布 → parse_iso/parse_iso_local 双助手 - 最长连击双实现(全时段手写循环 vs windowed_run)→ 统一为 windowed_run 全域调用(空窗由 IndexError 变为干净 die) - translateX 扫掠 CSS 4 处内联 → sweep_x_motion(sweep_y_motion 的孪生,逐图调参显式保留) - 13/13 金样字节级守护 + 实时全链路 --check 与基线逐字节一致 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
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.
变更内容(两部分:页签布局 + 刷新管线梳理清减)
一、主页头部 13 图表页签化
13 张图表由竖直堆叠(约 13 模块高)改为双簇页签切换布局:沿用 9+4 分组,每簇居中锚点栏 +
<details>页签,growth/latency默认展开,图表连同说明原子移入页签,高度约缩 3.7×。锚点栏链接用#user-content-<id>前缀命中 GitHub 渲染锚点(实机验证后修正)。二、
scripts/build_profile_svgs.py梳理清减(六阶段流水线)refresh()(采集+派生+渲染,窄接口)+main()+__main__守卫;闭包依赖三函数随之内聚;保持单文件零依赖(README 承诺)ext_owners死全局、emit僵尸参数lang_of_commit→commit_dates、_join→oxford_join、sub1pct→types_under_one_pct等(AST 作用域感知,不触字符串)HOUR_ORDER常量(6→1)、parse_iso/parse_iso_local(15 处格式串→2)、连击算法双实现统一、sweep_x_motion提取(4 处内联 CSS)验证
--lint输出与基线逐字节一致;PR CI lint 绿--check三次对比:结构重塑后、去重后均与基线脚本输出逐字节一致(含同点 fail-closed 单调性 ABORT)🤖 Generated with Claude Code