From fc1bbb367323489e58b5fdaedf4b86e170fe8d05 Mon Sep 17 00:00:00 2001 From: OpenAI Codex Date: Tue, 31 Mar 2026 15:47:09 +0800 Subject: [PATCH] Fix comparison baseline for JP-field migration --- AGENTS.md | 27 ++ STEP_RECORD.md | 55 ++- ...vsea-compare-legacy-domain-compatible.html | 360 ++++++++++++++++++ 3 files changed, 426 insertions(+), 16 deletions(-) create mode 100644 src/Domain/navsea-compare-legacy-domain-compatible.html diff --git a/AGENTS.md b/AGENTS.md index 0d242f6..6b539cd 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -35,6 +35,33 @@ Important limitation: - `Karatsu 20nm delivery` is currently not object-auditable with the existing audit script because the delivery PBF no longer preserves enough trace-back anchor fields +## Current Visual Regression Baseline + +For the current goal of: + +- removing Japanese fields from the PBF-facing path +- while keeping the rendered appearance as close as possible to the legacy chart + +use this fixed comparison page as the only primary visual baseline: + +- `http://192.168.200.184/newpec/domain/navsea-compare-legacy-domain-compatible.html` + +The right side of that page is the current working target line. + +Current target PBF line for this goal: + +- `pbf-domain-karatsu-10nm` +- package sources: + - `domain_safety` + - `domain_detail` + +Rules: + +- do not create additional comparison pages for this migration unless explicitly requested +- do not switch the primary comparison URL casually +- treat the fixed page above as the stable regression surface for visual checking +- keep delivery-line experiments separate from this baseline unless the user explicitly redirects the work + ## Working Rules ### 1. Step Record Must Stay Fresh diff --git a/STEP_RECORD.md b/STEP_RECORD.md index 1d8d7c0..19e4928 100644 --- a/STEP_RECORD.md +++ b/STEP_RECORD.md @@ -21,6 +21,30 @@ Remote: `ssh://git@nas:2222/tei/pbf.git` - 已把 `Karatsu 20nm` 的最新展示页和左右对比页切到更贴近旧视觉的 compare style - 已确认 `Karatsu 20nm` 当前“和旧版差很大”的问题,既有 style 原因,也有 delivery 数据覆盖范围与旧版上下文不一致的原因 - 已确认 `domain-compatible` 线上“最接近旧版”的那份 style,与仓库当前同名文件并不一致 +- 已正式确定:当前“去掉 PBF 里的日文字段,同时视觉保持尽量不变”的主工作线,不再以 `20nm delivery compare` 为主,而改用固定的 `domain-compatible` 对比页 + +## Fixed Compare Baseline + +从现在开始,这轮工作的固定比较基线是: + +- 页面: + - `http://192.168.200.184/newpec/domain/navsea-compare-legacy-domain-compatible.html` +- 目标 PBF: + - `http://192.168.200.184/pbf-domain-karatsu-10nm/safety/{z}/{x}/{y}.pbf` + - `http://192.168.200.184/pbf-domain-karatsu-10nm/detail/{z}/{x}/{y}.pbf` + +这条线的定义是: + +- 目标不是先追 `20nm delivery` 交付口径 +- 目标是先在 `Karatsu 10nm Domain compatible` 这条线上,完成: + - PBF / style 对日文字段依赖的移除 + - 同时保持视觉尽量贴近旧版 + +工作规则: + +- 不再新增新的 compare 页面 +- 后续视觉比较统一只看上面这一张固定页面 +- `20nm delivery` 仍可保留为交付线参考,但不再作为当前这轮视觉回归的主页面 ## Latest Audit Status @@ -189,24 +213,23 @@ Remote: `ssh://git@nas:2222/tei/pbf.git` ## Concrete Next Step -下次继续时,建议直接从这一组开始: +下次继续时,建议按这个顺序推进: -- 先排查 [`src/pbf/style.navsea-delivery-karatsu-10nm.json`](/root/sourceserver/pbf/src/pbf/style.navsea-delivery-karatsu-10nm.json) -- 重点看: - - `baseline_outline` - - `baseline_area` - - `depth_contour` - - `bathymetry_line` - - `navigation_marks` +- 先以固定页面 + - `http://192.168.200.184/newpec/domain/navsea-compare-legacy-domain-compatible.html` + 作为唯一视觉基线 +- 以 [`src/Domain/style.domain-legacy-compatible-karatsu-10nm.deployed-2026-03-31.json`](/root/sourceserver/pbf/src/Domain/style.domain-legacy-compatible-karatsu-10nm.deployed-2026-03-31.json) + 作为“最接近旧版”的右侧样式母版 +- 在 Domain compatible 线上逐层确认: + - 哪些 layer 仍依赖 legacy 日文字段 + - 哪些可以直接切到标准字段而不改变视觉 + - 哪些需要加兼容映射才能保持视觉不变 -目标: +当前真正的下一步不再是继续调 `20nm compare` 页面,而是: -- 先把 `baseline` 组的大头 mismatch 压下去 -- 再修 `depth_numeric_missing` -- 最后修 `safety_icon_missing` -- 同时继续拆分 `20nm` 的视觉差距: - - 哪些能靠 style 收敛 - - 哪些必须回到 delivery 数据覆盖范围本身去补 +- 把 deployed baseline style 中对 legacy 字段的依赖系统列出来 +- 以固定 compare 页面做逐步替换验证 +- 每次替换后只在这一个页面上检查视觉回归 ## Important Notes @@ -220,4 +243,4 @@ Remote: `ssh://git@nas:2222/tei/pbf.git` 下次开机如果要快速接上,可以先看这份文件,再按下面这句继续: -`继续处理 STEP_RECORD.md 里记录的下一步,从 Karatsu 10nm delivery 审计的 baseline / depth / navigation marks 三组问题开始修。` +`继续处理 STEP_RECORD.md 里记录的固定 compare 基线,围绕 navsea-compare-legacy-domain-compatible.html 这一个页面,在 pbf-domain-karatsu-10nm 线上逐步去掉日文字段依赖,同时保持视觉尽量不变。` diff --git a/src/Domain/navsea-compare-legacy-domain-compatible.html b/src/Domain/navsea-compare-legacy-domain-compatible.html new file mode 100644 index 0000000..74f2d31 --- /dev/null +++ b/src/Domain/navsea-compare-legacy-domain-compatible.html @@ -0,0 +1,360 @@ + + + + + + NavSea Fixed Compare Baseline + + + + +
+
+
NavSea Fixed Compare Baseline
+
这张页面现在是当前项目唯一固定使用的视觉对比页。左边固定加载原始样式 style.patched.local.json,右边固定加载 Domain compatible 样式 style.domain-legacy-compatible-karatsu-10nm.json,用于在 pbf-domain-karatsu-10nm 线上持续验证“去掉日文字段依赖,同时保持视觉尽量不变”。
+
+
+ +
+
+ +
+
+
+ 左侧 + 原始样式 · style.patched.local.json +
+
+
+
+
+ 右侧 + 固定基线 · Domain compatible / pbf-domain-karatsu-10nm +
+
+ +
+
+ +
等待加载样式…
+ + + + +