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. 링크된 출처 자료는 각자의 권리를 유지합니다.