Skip to content

docs(#3508): add hack/ directory conventions to AGENTS.md - #3509

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/3508-hack-dir-agents-guidance
Open

docs(#3508): add hack/ directory conventions to AGENTS.md#3509
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/3508-hack-dir-agents-guidance

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

What:

Add a hack/ Directory Conventions section to AGENTS.md documenting the purpose, target environment, accepted trade-offs, and reviewer guidance for scripts in the hack/ directory.

Why:

On PR #3430, the review agent repeatedly raised low-severity robustness and portability findings (Bash <4.4 compatibility, regex dot escaping, broad git add, hardcoded branch lists) on developer utility scripts in hack/. These findings were rejected by the author across 8–10 review rounds over 28 days because they applied production-code standards to attended developer utilities. The root cause is that AGENTS.md contained no guidance about the hack/ directory or its intended audience and requirements.

This change provides the context signal so review agents can calibrate severity from the first review — suppressing low-severity robustness/portability findings and focusing on correctness, data loss, git safety, and security concerns.

Tickets:


Closes #3508

Post-script verification

  • Branch is not main/master (agent/3508-hack-dir-agents-guidance)
  • Secret scan passed (gitleaks — a94dbb685345a1a9f664d6e4b4fc6726f6c89356..HEAD)
  • PR body secret scan passed (gitleaks — no-git)

Document that scripts in hack/ are attended developer utilities
targeting RHEL 8+ / Fedora (Bash 4.4+), not production code.
Add reviewer guidance to suppress low-severity robustness and
portability findings (e.g., Bash <4.4 compatibility, regex dot
escaping, broad git staging) and focus on correctness, data loss,
git safety, and security concerns.

This gives review agents the context signal needed to calibrate
severity for hack/ scripts, preventing repeated low-value findings
like those seen on PR #3430.

Closes #3508
@fullsend-ai-review

fullsend-ai-review Bot commented Aug 19, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:10 AM UTC · Completed 9:24 AM UTC

Commit: 87c4a29 · View workflow run →

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

Medium

Low

  • [technical accuracy] AGENTS.md:65 — The bullet "Reliance on modern Bash features (associative arrays, readarray, ${var,,}, etc.)" lists readarray and ${var,,} as examples of features relied upon, but no hack/ script currently uses them — only declare -A (associative arrays) is used in go-mod-upgrade-prs.sh. Consider rewording to clarify these are permitted features rather than currently-used ones (e.g., "Reliance on modern Bash features ... is permitted").

Labels: PR adds documentation conventions to AGENTS.md for the hack/ directory, calibrating agent review behavior

@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

- Unescaped dots in sed/grep patterns operating on controlled, predictable inputs
- Hardcoded branch lists that change infrequently and are updated manually
- `git add -A` or broad staging when the script controls the entire working tree context

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 bullet 'Reliance on modern Bash features (associative arrays, readarray, ${var,,}, etc.)' lists readarray and ${var,,} as examples of features relied upon, but no hack/ script currently uses them — only declare -A (associative arrays) is used in go-mod-upgrade-prs.sh. The wording implies current usage that does not exist.

Suggested fix: Reword to clarify these are permitted features rather than currently-used ones (e.g., 'Reliance on modern Bash features (associative arrays, readarray, ${var,,}, etc.) is permitted').

@fullsend-ai-review fullsend-ai-review Bot added requires-manual-review Review requires human judgment documentation Improvements or additions to documentation agentic labels Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agentic documentation Improvements or additions to documentation requires-manual-review Review requires human judgment size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add AGENTS.md guidance for hack/ directory script conventions and review expectations

0 participants