Files
ClaudeandClaude Fable 5.2 808bcbbc9a
Independent Staging Quality Gate / publish (push) Canceled after 0s
Independent Staging Quality Gate / validate-python (push) Canceled after 5m46s
Independent Staging Quality Gate / validate-frontend (push) Canceled after 5m48s
fix: annual report survives length overflows and internal wording; synastry writer is told the banned verdicts (BUG-1911, BUG-1912)
Annual: a structured-output length failure now names the field and its cap
in the retry and gets a third attempt; internal wording left after the one
rewrite is cleaned by the program; rewrite prompts carry a readable hint per
gate code instead of the raw code. Two real runs after the fix completed.
Synastry: the V3 system prompt lists the reader gate's banned verdict words,
kept equal to the gate by a test. A trial with thinking off is recorded and
not adopted.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-16 02:01:50 +08:00
..

报告解读验收包

在仓库的 frontend 目录运行。先安装该目录的 npm 依赖。现场重算事实包还需要安装仓库的 Python 运行依赖。

离线回放

node --import tsx ../tools/report-reading-acceptance/run.mts \
  --case jobs --out /tmp/report-220-a1 --replay /path/to/draft-A-1.raw.json

工具默认调用本仓报告计算服务重算当前事实包,不启动 HTTP 服务。--python 可以选择 Python 解释器,例如 Windows 下使用 --python python。也可以用 --facts /path/to/current-facts.json 传入当前事实包。CI 用合成草稿和事实包走这条路径,无需网络或模型凭据。

三份归档草稿分别指定独立输出目录。A-1、A-2 对应 jobs,B-1 对应 obama。旧草稿的 claim_type 转成 claims 数组,双空的 claim_type 和 grade 转成事实段。现行复查仍会检查每一段,转换记录保留字段变化。样例的 today 固定为原验收日期。出生时间与 Rodden 评级来自 cases.json 所列 Astro-Databank,十进制市级坐标沿用仓库的 Jobs 公开记录 和 Obama 公开记录。

在线生成

node --import tsx ../tools/report-reading-acceptance/run.mts \
  --case obama --out /tmp/report-220-online

在线模式复用生产报告写作器,默认模型为 deepseek-flash,可用 --model 指定。凭据依次读取 DEEPSEEK_API_KEY、DS_KEY 和 /workspace/keys/ds_key。

重新计算事实时使用前端产品默认岁差和交点(Raman、平均交点)。原样回放既有事实包时用 --facts。

检查输出

  • 输出落在 <out>/<case>/。input.json 是实际计算请求。facts.json、caps.json 和 system_prompt.txt 是本次使用的材料。raw.json 保存被选中尝试的模型回复。旧草稿回放时,它保存转换前的 JSON 值。
  • reading.json 是存储形状,final.md 复用页面的 Markdown 导出。postcheck.json 和 transform_log.json 记录每次尝试、逐节结果、自动重绑和重写结果。statistics 分别记录首轮拦截、重绑修好、重写修好、最后仍拦截的节数,以及首轮和最终的原因计数。整份草稿被拒时,工具仍写出诊断并返回非零状态。
  • 有章节重写回复时,repair_raw.json 保存该回复,其哈希对应 repair.attempt。合并后的报告以被选中的完整草稿作为 raw.json。仅在受控验收包与服务端转换记录保留因超长而丢弃的段落原文。
  • manifest.json 保存验收包各文件的字节哈希。JSON 使用 UTF-16 键排序和 ECMAScript 数字表示,以紧凑 UTF-8 写出。快照中的 stored_sha256 对 reading.json 去掉 snapshot 后的规范化 JSON 计算。其余五个快照哈希对应输入、事实、等级合同、系统提示和原始回复文件。任何快照哈希或规则不一致都会返回非零状态。
  • 验收包写到仓库之外,留在受控验收环境。命令结束时输出本次 Git 提交及复跑命令。