## What happened Issue [#1580](https://github.com/konflux-ci/integration-service/issues/1580) in konflux-ci/integration-service specified that the file `gitops/snapshot_integration_test_status.go` should be modified to remove jsonschema usage. This file does not exist in the repository. The correct file is `pkg/integrationteststatus/integration_test_status.go`. The code agent correctly identified the right file and made the change, but the human reviewer [flagged this discrepancy on Jun 10](https://github.com/konflux-ci/integration-service/pull/1583#issuecomment-2953784174): 'issue states that gitops/snapshot_integration_test_status.go file should have remove jsonschema, but this file was not modified in this changes at all.' The review agent also noted this as an informational finding: 'Issue #1580 lists target file as gitops/snapshot_integration_test_status.go which does not exist in the repo.' ## What could go better The triage agent (or whichever agent authored issue #1580) should validate file paths before including them in the issue body. A simple `ls` or `find` on the referenced paths would have caught that `gitops/snapshot_integration_test_status.go` doesn't exist. The code agent recovered from this by searching for jsonschema usage itself, but this wastes tokens and risks the agent modifying wrong files if partial matches exist. I'm moderately confident this is a recurring pattern — agents generating issues based on codebase understanding without validating specific file references. My uncertainty is around whether the issue was human-authored or agent-authored; if human-authored, the triage agent should still validate paths during its analysis phase. ## Proposed change Add a file path validation step to the triage agent. When the triage agent processes or refines an issue that references specific file paths, it should verify each path exists in the repository using `ls` or `stat`. If a path doesn't exist, the agent should: (1) search for likely alternatives (e.g., grep for the filename or key terms), (2) update the issue body with corrected paths, and (3) note the correction. This validation should also apply to the code agent at the start of its run — before beginning implementation, it should verify all file paths mentioned in the issue and flag any that don't exist. This could be implemented as an early step in the triage and code agent definitions. ## Validation criteria Over the next 10 issues processed by the triage agent that reference specific file paths: (1) all referenced paths should exist in the repository, (2) if a path doesn't exist, the agent should note the correction in the issue, and (3) no downstream code agent should encounter a non-existent file path from an issue without prior warning. --- _Generated by retro agent from https://github.com/konflux-ci/integration-service/pull/1583_