docs(progress): record Stage 1 rebuild halted on environment mismatch

A-20260920-068. Backup taken, no build script run, generated artefacts
untouched. This shell has Python 3.10.12 / pandas 2.3.3 and no pyarrow,
while the project pins Python 3.12.14 / pandas 3.0.6 / pyarrow 25.0.1;
pyarrow cannot be installed here (proxy 403) and .venv-research is a
Windows venv. Rebuilding under pandas 2.x would make the item bank and
response dictionary irreproducible against the recorded environment.

Records the exact commands to run in the pinned Windows environment and
the diff expected from the corrections in 0c9645e.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016yuKikAXbByLvsUnh55SRd
This commit is contained in:
Jinotech
2026-09-20 08:29:49 +00:00
co-authored by Claude Opus 5
parent 7cf3c9334b
commit e4a3c65130
+21
View File
@@ -912,3 +912,24 @@ Gate 0 当前判定:`passed`。四项交付物齐备;目标总体政策、
1. 决定是否执行 Stage 1 重建以使生成物与已修正源头一致(需依次运行 YRBS 审计、GSHS 审计、registry、package 四个脚本,并逐项 diff 验证 84 个 item_version_id 不变); 1. 决定是否执行 Stage 1 重建以使生成物与已修正源头一致(需依次运行 YRBS 审计、GSHS 审计、registry、package 四个脚本,并逐项 diff 验证 84 个 item_version_id 不变);
2. 在可访问 `git.jinome.org` 的环境推送四个提交; 2. 在可访问 `git.jinome.org` 的环境推送四个提交;
3. 处理上列未授权修正项、`review_date` 格式与 84 项裁决,再执行 Gate 1 验收。 3. 处理上列未授权修正项、`review_date` 格式与 84 项裁决,再执行 Gate 1 验收。
### A-20260920-068Stage 1 重建尝试——因环境不符而中止
- 时间:2026-09-20T20:29:49+12:00;阶段 1Gate 1 保持 `in_progress`
- 动作:按授权准备执行 Stage 1 重建(先备份生成物、再依次运行四个脚本、逐项 diff 验证)。备份已完成,**未运行任何构建脚本**,工作树生成物保持不变。
- 检查结果(中止理由):本会话设备侧 Linux shell 的运行环境与项目记录的可复现环境不一致,重建会引入与环境绑定的无声漂移。
- 项目锁定:`python-requirements.lock.txt``pandas==3.0.6``numpy==2.5.3``pyarrow==25.0.1``smoke-test-result.json` 记录解释器为 `3.12.14 ... [MSC v.1944 64 bit (AMD64)]`Windows)。
- 本会话可用:Python 3.10.12、pandas 2.3.3、**无 pyarrow**。`pip install pyarrow` 被代理拒绝(`Tunnel connection failed: 403 Forbidden`),与 `git push` 同一网络限制。
- `.venv-research` 仅含 `Scripts/python.exe`,为 Windows 虚拟环境,无法在该 Linux shell 调用。
- 四个脚本中 `audit_yrbs_primary_outcome_sources.py``build_primary_outcome_registry.py` 直接 `import pyarrow.parquet`,缺之无法运行;仅运行其余两个只能落实四项更正中的两项,且会使生成物处于半新半旧的不一致状态。
- pandas 2.x 与 3.x 在字符串 dtype 与 CSV 写出行为上存在差异,以 2.3.3 重写题库与回答字典将使生成物与已记录环境不可复现。
- 输出:无文件变更;备份留存于会话临时目录(不在仓库内),生成物未动。
- 提交/推送状态:`push_pending`,同 A-20260920-067;本地 `main` 领先 `origin/main` 五个提交。
- 未解决问题:生成物仍相对已修正源头过期;须在锁定环境中重建后方能一致。
- 下一步:在 Windows 锁定环境(`E:\Model`)依次执行,四个脚本均无需参数:
1. `.venv-research\Scripts\python.exe research\stage1\audit_yrbs_primary_outcome_sources.py`
2. `.venv-research\Scripts\python.exe research\stage1\audit_gshs_primary_outcome_components.py`
3. `.venv-research\Scripts\python.exe research\stage1\build_primary_outcome_registry.py`
4. `.venv-research\Scripts\python.exe research\stage1\build_primary_outcome_package.py`
随后核对 `git diff`:预期仅 YRBS 1995/1997 总体字符串、NSDUH 四行 attempt 的 `source_file`/验证状态、attempt 五个编码的 `derivation_rule`/`review_status`、摩洛哥与瓦利斯和富图纳的问卷引用发生变化,且 84 个 `item_version_id` 不变;如出现其他变化应停止并复核。