Translation fidelity along the traceability map: compare each COBOL paragraph with the Java method it became
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start from traceability.json produced by the forge/det-port, which maps each generated Java method to its COBOL source line and fact, and from the existing structural fingerprint tooling (sfs) the issue contrasts against. The new tool goes under tests/tools/; first check how traceability entries link paragraphs to methods. Done means a per-paragraph structural comparison with shuffled and unrelated controls, plus a run on the burned-estate ports in both styles.
由索引模型根据 Issue 内容生成。
描述
Why
A structural-fidelity analysis of the det-port on the burned estates (2026-11-02; ~/gitgalaxy/cics-fidelity/ on nyx) found two things:
- The translations are complete: 184 cases, 47,717 statements, 0 holes.
- They keep each estate's relative structure: the between-program distance geometry is preserved (Mantel ρ 0.45-0.47, p = 0.001), and per-program function count and size correlate 0.82-0.86.
But a global fingerprint (sfs, portable or structure lens) cannot pick out a port's own COBOL source: 1-3 of 124 programs, against 0.8 % chance. A plain size matcher does better. The reason is that det-port Java is mechanical by design: byte storage, a runtime, one call per statement, dispatch methods. Every port has the same shape, a median of 32-36 Java methods against 7 COBOL paragraphs, and that shared style swamps each program's individual signal.
So whole-program fingerprints are the wrong instrument for translation fidelity. The forge and det-port already know the mapping: every generated class and method is traced to its source line and fact (traceability.json). Fidelity should be measured along that map.
Proposal
For each translated program, pair every COBOL paragraph or section with the Java method(s) traced to it, and compare their structure:
- branch outcomes (IF/EVALUATE/PERFORM UNTIL against if/switch/loops);
- calls out (PERFORM / CALL / LINK against invocations);
- size, and the reads/writes of data items against field access.
Report per program, per paragraph and per estate:
- the share of paragraphs whose structure survives within a tolerance;
- the outliers;
- an estate-level fidelity score.
Controls: shuffled paragraph-method pairs, and pairs from unrelated programs, so a fidelity score comes with its chance level.
Where it fits
- The architecture roadmap's "cross-language blueprint fidelity" item.
- A structural layer beside the equivalence proofs. Proofs say the Java does what the COBOL did; this would say the Java is shaped like the COBOL, paragraph by paragraph, which is what a reviewer reads.
- It is measurement only: no new cases or proofs on the burned estates (that evidence work is melek's lane).
Acceptance
- A tool (
tests/tools/…) that reads a port plus itstraceability.jsonand writes a per-paragraph structural comparison. - Shuffled and unrelated controls, with the score reported against them.
- A run over the burned-estate det-ports in both styles (default,
--style structured --typed --groups), with the headline numbers posted here.
- 主要语言
- Python
- 星标
- 57
- 派生
- 11
- 平均合并
- 1 小时 30 分钟
- 30 天内合并 PR
- 971
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
squid-protocol/gitgalaxy 的其他 Issue
-
ci-red-main
难度 2/5 1-3 小时 新手友好度 69/100
squid-protocol/gitgalaxy#7719 ·
维护者通常 1 天内回复
-
claim:melek scope:core
难度 5/5 一周以上 新手友好度 25/100
squid-protocol/gitgalaxy#7709 · 9 条评论 ·
维护者通常 1 天内回复
-
claim:nyx enhancement legacy-modernization priority: medium scope:frontier
难度 5/5 一周以上 新手友好度 25/100
squid-protocol/gitgalaxy#7646 · 3 条评论 ·
维护者通常 1 天内回复
-
claim:nyx enhancement legacy-modernization priority: medium scope:frontier
难度 5/5 一周以上 新手友好度 35/100
squid-protocol/gitgalaxy#7644 · 3 条评论 ·
维护者通常 1 天内回复
-
L5: CardDemo online programs, account for the last det-port survivors (watcher1)可能已有人在做 @squid-protocol 于 1 天前认领。 未关闭claim:watcher1 scope:core
squid-protocol/gitgalaxy#7636 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 squid-protocol/gitgalaxy 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
area:docs documentation effort:M ready-for-agent
难度 2/5 1-3 小时 新手友好度 76/100
mczielinski/ob-analytics#423 ·
维护者通常 1 天内回复
-
infra
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 3 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 68/100
vllm-project/vllm-ascend#21033 ·
维护者通常 1 天内回复