多语言合约可追溯性的最小可执行证明
A Minimal Executable Proof for Multi-Language Contract Traceability
AI总结:
本文通过一个包含六种语言实现的DAG-TOML合约的最小可执行证明,展示了合约、实现图、可追溯性链和审查门如何通过可执行见证者进行验证。
摘要:
本文报告了一个故意设计的小型可执行证明,用于一个DAG-TOML合约:用Rust、Go、C、Java、TypeScript和AWK实现的六个“Hello, world!”程序,链接到一个可观察输出合约、一个实现DAG、一个可追溯性文件、一个就绪门和一个证据矩阵。承载合约要求精确的UTF-8字节序列`Hello, world!\n`,零stderr字节,以及退出码0。在本文使用的运行器上,见证者框架报告了五个PASS结果,一个SKIP(因为Java的`javac/java`不在`PATH`中),以及零个FAIL结果。两个辅助见证者行使了更窄的源代码分析主张:一个复杂的Go重写隐藏了连续的问候文字,但在声明的AST符号和简单边级别上仍然对sqry可见;而一个间接的AWK重写使用了声明的源配置文件,因为AWK不在仓库的sqry支持的验证器语言集中。贡献不是一个基准测试、一个通用语义等价性声明或一个生产保证系统。它是一个紧凑的、可证伪的工件,展示了如何通过可执行见证者检查合约、实现图、可追溯性链和审查门。
英文摘要:
This paper reports a deliberately small executable proof for a DAG-TOML contract: six "Hello, world!" implementations in Rust, Go, C, Java, TypeScript, and AWK are linked to one observable-output contract, one implementation DAG, one traceability file, one readiness gate, and one evidence matrix. The load-bearing contract requires the exact UTF-8 byte sequence `Hello, world!\n`, zero stderr bytes, and exit code 0. On the runner used for this paper, the witness harness reported five PASS outcomes, one SKIP for Java because `javac/java` was not on `PATH`, and zero FAIL outcomes. Two sidecar witnesses exercise narrower source-analysis claims: a convoluted Go rewrite hides the contiguous greeting literal but remains visible to sqry at the declared AST symbol and simple-edge level, while an indirect AWK rewrite uses a declared source profile because AWK is not in the repository's sqry-backed validator language set. The contribution is not a benchmark, a claim of general semantic equivalence, or a production assurance system. It is a compact, falsifiable artifact that shows how a contract, implementation graph, traceability chain, and review gate can be checked against executable witnesses.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。