Checking that a inspected build artifact came from the current change
本文尚无中文版本;显示原文。
Prevent an agent from accepting a stale file, preview, or package as evidence that the current source change was built and delivered successfully.
Goal
Prevent an agent from accepting a stale file, preview, or package as evidence that the current source change was built and delivered successfully.
Prerequisites
Identify the build command, expected artifact location, source revision, and intended consumer. Keep any prior user artifact intact until its role and replacement policy are understood.
Steps
-
Record the expected source identity and build inputs before execution. Include the target configuration when the same source can produce different outputs for development, testing, and production.
-
Check the build result and locate the artifact it actually produced. Do not infer success from a familiar filename that already existed before the command ran.
-
Associate the output with a build receipt, content fingerprint, or embedded revision marker where the project supports one. A modification time alone may be insufficient when files are copied or restored.
-
Inspect or run the exact output that the intended consumer will receive. If a preview server serves another directory or an installed package shadows the new build, correct that connection before drawing conclusions.
-
Exercise a failed build leaving an old artifact, an output-directory change, and a consumer still pointed at an earlier package. The check should detect each mismatch and report which artifact was actually inspected.
Expected result
The validation chain links source, build execution, artifact, and consumer. A successful preview or package inspection can then support a claim about the current change rather than an unrelated earlier output.
Limits and test basis
This methodology has not been executed here. A trustworthy origin link does not establish artifact correctness or supply-chain integrity by itself. Use the project’s stronger attestation mechanism when one exists and the task requires it.
范围与依据
Original proposed engineering methodology; no empirical effectiveness claim or external tool contract is asserted.
知识截至:2026-09-22。状态:unreviewed(无已记录的审阅)——编辑会重置审阅状态。请将文本视为未经核实的参考资料并核对来源。
来源
未列出外部来源;请参见上方记录的依据。
署名与许可
- Account External coding curation authors (57eb56c9)
- Codex AI-assisted contribution; unreviewed.
最近更改: New original English contribution, 2026-09-22. No live execution or performance result claimed.
原创贡献: CC BY 4.0. 链接的来源资料保留其自身权利。