Skip to content

docs(#3531): add AGENTS.md guidance for Konflux Tekton task substitutions - #3532

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/3531-konflux-tekton-task-guidance
Open

docs(#3531): add AGENTS.md guidance for Konflux Tekton task substitutions#3532
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/3531-konflux-tekton-task-guidance

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

What:

Add a new section to AGENTS.md documenting review guidance for Konflux/MintMaker PRs that substitute Tekton task names (as opposed to routine digest or version bumps).

Why:

PR #3513 substituted clair-scan with roxctl-scan, which left stale string-literal references in benchmark/offliner/scans.go and hack/view-clair-reports.sh. The review agent caught this correctly, but the detection relied on general reasoning rather than explicit repo-specific guidance. Codifying the distinction between digest bumps (low-risk, no cross-file analysis needed) and task substitutions (higher-risk, require grepping for old task name references) makes the behavior more reliable across model versions and helps human reviewers recognize the risk pattern.

The guidance covers:

  • Low-risk updates: digest-only and patch version bumps, no cross-file analysis needed
  • Higher-risk updates: task name changes, reviewers should grep for old task name references in Go source (benchmark/, cmd/, pkg/), shell scripts (hack/), and documentation (docs/, pkg/schema/examples/)
  • Priority distinction: production code paths (should block merge) vs developer utility scripts in hack/ (can be follow-up work)

Tickets:

Related: #3508 (hack/ directory conventions), #3513 (the Konflux PR that motivated this), #3530 (follow-up fix for benchmark offliner)


Closes #3531

Post-script verification

  • Branch is not main/master (agent/3531-konflux-tekton-task-guidance)
  • Secret scan passed (gitleaks — af3fe00e4120446b6a808687cc3a5af96ce3d779..HEAD)
  • PR body secret scan passed (gitleaks — no-git)

…ions

Add a new section documenting the distinction between routine Tekton
task bundle digest/version bumps and task name substitutions in
Konflux/MintMaker PRs. Digest-only bumps are low-risk, but task name
changes (e.g., clair-scan to roxctl-scan) require cross-file analysis
because Go source, shell scripts, and documentation reference task
names as string literals for SLSA provenance filtering. Stale
references silently return empty results rather than errors.

The guidance directs reviewers to grep for old task names in
benchmark/, cmd/, pkg/, hack/, docs/, and pkg/schema/examples/, and
to prioritize production code paths over developer utility scripts
in hack/.

Pre-commit hook (check-commit-message) could not be verified
in-sandbox due to network restrictions blocking the remote hook
repository fetch.

Closes #3531
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Sep 2, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 2, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:45 PM UTC · Completed 6:58 PM UTC

Commit: ca5794c · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $3.00

@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
acceptance 54.46% <ø> (ø)
generative 12.27% <ø> (ø)
integration 23.59% <ø> (ø)
unit 72.21% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fullsend-ai-review fullsend-ai-review Bot added the risk/low PR risk: low label Sep 2, 2026
@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: low (1/5)

Details

Documentation-only PR by a known bot adding 31 lines of guidance to AGENTS.md, with issue scope perfectly matching PR size, no security-sensitive files, and no regression or coupling signals.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

Medium

Low

  • [technical accuracy] AGENTS.md:96 — The guidance states that docs/ and pkg/schema/examples/ contain "example JSON and AsciiDoc references to task names" in the context of task substitutions like clair-scanroxctl-scan. However, the actual references in those locations are to get-clair-scan (a different Tekton task that retrieves scan results) and test:get-clair-scan (a policy rule name), not to the clair-scan scan task itself. This imprecision could lead reviewers to conflate the two tasks when evaluating task substitution PRs, potentially causing over-flagging or under-flagging of stale references.

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the review comment for full details.

Comment thread AGENTS.md
— example JSON and AsciiDoc references to task names.

When stale references are found, distinguish **production code paths**
(Go source in `benchmark/`, `cmd/`, `pkg/` — higher priority, should

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] technical accuracy

The guidance states that docs/ and pkg/schema/examples/ contain 'example JSON and AsciiDoc references to task names' in the context of task substitutions like clair-scan to roxctl-scan. However, the actual references in those locations are to get-clair-scan (a different Tekton task that retrieves scan results) and test:get-clair-scan (a policy rule name), not to the clair-scan scan task itself. This imprecision could lead reviewers to conflate the two tasks when evaluating task substitution PRs, potentially causing over-flagging or under-flagging of stale references.

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Triggers review agent dispatch requires-manual-review Review requires human judgment risk/low PR risk: low size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add AGENTS.md guidance for cross-file impact when Konflux PRs substitute Tekton tasks

0 participants