Scope AGENTS.md specification-document sibling reading rule to avoid whole-repo doc reading on localized edits
I maintainer di solito rispondono entro 1 giorno
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
What happened
On Issue #255 (run 37953012856), the code agent was tasked with adding a verification check in ears-manager check and updating related documentation.
In AGENTS.md, the "Rules for creating or modifying sibling entries" defines sibling entries for "Specification documents under docs/" as "every other governed Markdown document under docs/", and commands: "Read all sibling entries first. Before drafting or revising an entry, read every other entry in the same list or governed collection."
With 20 Markdown files currently under docs/, the agent spent the first 31 turns (27 minutes, 45% of its entire 60-minute budget) exhaustively reading nearly all 20 specification documents before writing any code.
This accumulated over 200,000 tokens in the conversation context. With xai/grok-4.6 deep reasoning, inference latency reached 40–120+ seconds per turn. Over the 78-turn session, 96.0% of the wall-clock time (3,457s out of 3,600s) was spent waiting for model inference, while tool execution took only 142s total. The agent completed the Go implementation, unit tests, linters (scripts/lint.py), and test suites by Turn 75 (minute 58), but was force-terminated by the 3,600s budget timeout during Step 10 seconds before running git commit, resulting in 100% of the work being discarded.
What could go better
While reading sibling entries is effective for discrete, compact lists (such as numbered rules in AGENTS.md or tools in a directory), defining the sibling set of any document under docs/ as "every other governed Markdown document under docs/" forces agents to read the entire repository documentation upfront.
This violates the core scaffolding principles of minimal hand-written context and progressive disclosure (Principle 3 and 4 in agent-scaffolding). As docs/ grew from a few initial files to 20 documents, this rule turned into an escalating token and latency trap.
Cross-document consistency is already governed by "Rules for creating or modifying specification documents", which specifically directs agents to check components.md and overview.md for enumerated interfaces and constraints.
Confidence: High. The transcript shows 27 consecutive minutes spent reading 20 files in docs/ before any implementation began, directly cited by the agent as complying with Rule 1 of sibling entries.
Proposed change
In AGENTS.md under "Rules for creating or modifying sibling entries":
- Refine the sibling scope for specification documents under
docs/to be scoped to the immediate directory/collection (e.g., other documents indocs/architecture/agent-harness/, or ADRs indocs/decisions/), rather than the entiredocs/tree. - Clarify that cross-cutting architecture and component coverage is handled through the directed checks in "Rules for creating or modifying specification documents" (checking
docs/architecture/components.mdanddocs/architecture/overview.md), rather than requiring an unconditional upfront read of all Markdown documents across the entire repository.
Validation criteria
On the next 5 code or fix agent runs on redhat-et/ProtoBot that modify a specification document under docs/, the exploration phase before implementation takes fewer than 10 turns and under 50,000 input tokens for document reading, avoiding timeout failures caused by context-inflated inference latency.
Generated by retro agent from https://github.com/redhat-et/ProtoBot/issues/255
- Lingua principale
- Go
- Stelle
- 6
- Fork
- 8
- Merge medio
- 1g 2h
- PR unite (30g)
- 96
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di redhat-et/ProtoBot
-
Group fullsend and agents package updates in Renovate configurationForse già presa @JohnStrunk l’ha presa 2 giorni fa. Apertaenhancement feature infra ready-for-triage triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
redhat-et/ProtoBot#277 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement feature infra ready-for-triage triaged
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
redhat-et/ProtoBot#288 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Support multiple proposed change sets in selfhost_test.go to prevent fixture test failures during registered artifact updatesForse già presa @fullsend-ai-coder l’ha presa 2 giorni fa. Apertabug component:ears-manager ready-for-triage ready-to-code
Difficoltà 3/5 Mezza giornata Idoneità per principianti 25/100
redhat-et/ProtoBot#282 · 3 commenti · 2 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Add CI and pre-commit validation for .fullsend/harness/*.yaml base URL SHA-256 integrityForse già presa @JohnStrunk l’ha presa 2 giorni fa. Apertaenhancement feature infra ready-for-triage triaged
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
redhat-et/ProtoBot#279 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Ensure all ProtoBot OpenCode usage and installs target v2Forse già presa @JohnStrunk l’ha presa 3 giorni fa. Apertacomponent:drafting-table enhancement feature triaged
redhat-et/ProtoBot#272 · 8 commenti · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di redhat-et/ProtoBot
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
QuantumNous/new-api#7839 ·
I maintainer di solito rispondono entro 1 giorno
-
bug needs-triage service/costoptimizationhub
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
hashicorp/terraform-provider-aws#50507 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
adcontextprotocol/adcp-go#567 ·
I maintainer di solito rispondono entro 1 giorno
-
bug raised-by:desk
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
medici-finance/assay#3097 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
supabase-community/supabase-kubernetes#275 ·
I maintainer di solito rispondono entro 1 giorno