Skip to content

What the review checks, how loud it is, and what fits in 3,087 bytes #1029

Description

@simonoppowa

Part of #1023

Question

What does the review check, how loud is it — and what fits in 3,087 bytes?

Largely tool-independent as originally written, and #1035 proved the substance is right. What #1034 added is a hard byte budget, which turns this from an editorial question into an engineering one.

The budget

Codex reads AGENTS.md on the review path, wants a ## Code Review Rules heading, and truncates at 32 KiB silently (openai/codex#13386, open).

AGENTS.md   29,681 bytes
cap         32,768 bytes  (32 KiB)
headroom     3,087 bytes  — 90.6% consumed

There is no ## Code Review Rules heading today, and adding one costs from that 3,087. The file has grown steadily — docs-correction PRs land most weeks — so this will breach on its own, quietly, with no error and no signal beyond reviews mysteriously getting worse.

Decide:

  • Does the review section fit in the headroom, or does AGENTS.md get trimmed / split? Codex merges instruction files root→leaf, so a nested AGENTS.md may carry per-directory rules — worth establishing whether that relieves the root file.
  • Ordering as insurance. If truncation cuts the tail, then position is protection: the non-negotiables belong early in the file, not wherever they landed historically. Cheap, and it survives the file growing.
  • A guard against silent breach. A CI check failing when AGENTS.md exceeds ~31 KiB would turn a silent degradation into a visible one. This repo already runs just check_l10n for an analogous quiet failure, so the pattern exists.

What the rules should say

From #1035, the conventions a review must enforce — with the evidence that they matter:

  • Real translations, not English placeholders. The single most valuable catch in the trial: three of four new strings left verbatim English across eight locales, against CONTRIBUTING.md:54, and structurally invisible to CI because just check_l10n only fails on missing keys.
  • ARB key parity — nine locales at equal count, discounting template-only @key metadata. State the exception explicitly or a reviewer will report a false violation (raw counts legitimately differ: en 1011, de 986, cs 982, all at 946 real keys).
  • Semantics(identifier:) on new interactive widgets, kebab-case, with the container: true rule stated as conditional on a layout-greedy parent — the trial showed a good reviewer reasons about this rather than pattern-matching it.
  • No Co-authored-by: trailer naming an AI; conventional-commit PR titles; lib/generated/ never hand-edited; Row title overflow rules.

How loud

Advisory by permission — Codex holds checks: read/statuses: read and cannot block. The remaining question is volume and tone on a first-time contributor's PR, since general code review is the noisiest kind and this repo has 19 outside contributors to keep. Decide whether the rules cap findings, set a confidence bar, or say nothing about volume at all.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions