engineering
Review an alert that points to a generated file
Trace a scanner alert in generated code to its maintained source or generator. Verify the shipped artifact after repairing the source of the issue.
TrustIvan · · 5 min read
A scanner flags a generated JavaScript bundle in a test report. A developer can change the emitted file locally, but the normal build replaces it. In this fictional case, trace the output to its owned input, then verify the next generated artifact on the same path used by release engineering.
Follow the file through generation
| Fixture record | Example value |
|---|---|
| Reported output | Generated runtime bundle |
| Producer | Release bundling step |
| Candidate input | Locked application dependency |
| Verification | Rebuilt bundle tied to released digest |
Read the scanner's file path, artifact identifier and generation job. Find whether the output came from a compiler, template, vendor package or an earlier published bundle. Match the build's recorded inputs and relevant settings. When there are multiple generators with similar output paths, compare the actual producer in the release build log.
Name the team that can make the change
Use the repository, build or deployment record to identify the editing and release authority. These responsibilities may belong to different teams. Make the primary recipient and their expected outcome explicit. A useful handoff says what was observed, what the owner can change, which boundary requires another team's decision and what evidence closes the work. Record the dependency on any earlier task and the expected time of its result. If someone receives the ticket while the usual owner is away, the scope should be recoverable from linked records.
Record whether the file is part of the deployed artifact and which generation step produced it. Check source maps or other approved build metadata where available. Identify the source module, dependency version or generator template. If the scanner evidence shown at the generated location is insufficient, record what remains uncertain and ask the maintainer for verification.
After repairing the input, rebuild using the normal release pipeline and verify the generated output. If the tool supports different analysis modes, compare its recorded paths on one approved bundle sample before setting policy. The Semgrep comparison covers analysis depth as a purchasing criterion.
Run the normal generator on the known starting fixture and preserve the original finding reference. Then change the owned source or dependency path and rebuild. Use a second case where a cached or prebuilt bundle is carried forward. Confirm the final artifact test can distinguish corrected output from a repeated generated file.
Separate copied and newly generated output
Take a copy of the bundle from the accepted build and compare it with the controlled generated output after the source change. In a separate test, use a retained prebuilt copy so the emitted file still comes from the old producer. The scan and file evidence should point to that exact artifact. Record the generator's input reference, output path and build run so the owning team can tell whether to update code, build configuration or the version of an upstream artifact. Attach the normal packaging path used for the verified release.
Identify the team that can modify the input and the team that can ship the resulting artifact. If a generator owned by another project creates the problem, attach your observed evidence and agree on the input version or output digest that the application can adopt.
Start the review with the ordinary process for the generator's build owner. Record what would happen if the reviewer received the fixture in a handoff with no other context. Give them the identity and timestamp from the generated artifact manifest. Ask them for the evidence that supports the next decision, and observe where they look. When the result cannot be recovered, capture which system lost the reference and give that repair to the owner of the source record.
Verify the accepted fix at its source
The receiving team needs prior evidence, the agreed scope and a useful next step with an owner. Review the packet together for one incomplete case. If the most recent test failed or applies to a different target, the packet should say what observation is missing and who can gather it. Keep a factual record of what changed after transfer. The person who verifies closure should be able to distinguish their own observation from the original owner's expectation. Give the next team a reference they can retain with their own workflow.
Keep the linked chain from original alert to input change, generated output, release artifact and deployment observation. The receiving owner needs to reproduce the build path rather than repair an artifact that will be overwritten.
Verify that the open-work view includes one fixture row awaiting evidence. A reviewer's output should name the system where that evidence will appear and the owner responsible for gathering it. The next decision should still be visible after a new inventory run.
Keep an example of a result accepted by the reviewer and one still awaiting action. Match each example to its evidence and timestamp. This gives the next owner a reference when an automated summary or a later report uses a different display label.
Add a review for optional deployment targets that use a different generation mode. Scope the conclusion to the verified target and give any follow-up work to the build owner who can produce the other artifact.