docs(agents): AGENTS.md states ADR 0051's accepted rules 3 and 5 (Guardrails hook-or-patch bullet, Hard Stops line)

Open Beginner friendly
#2,822 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
cpp, markdown
Domain
documentation

Research direction

Read docs/adr/0051-socket-hooks-network-thread-hot-paths-one-implementation-written-debt.md (rules 3 and 5 and its Consequences) and docs/adr/0038 for non-hot sites, then open AGENTS.md at the "Guardrails" bullet and the C++ addendum's "This IS" line. Reword both so they state the ADR's rules and link to the ADRs without restating them; touch nothing else. Done means the falsifier holds — no remaining "hook-or-byte-patch" or Hard-Stop-blocks wording — and just test-changed passes.

Written by the indexing model from the issue text.

Description

documentation

ADR 0051 is accepted, and its Consequences name two AGENTS.md texts that change with it; AGENTS.md still says what ADR 0051 amends, so the instruction file and the accepted ADR disagree.

Evidence at release/v6.20.0 once #2817's commit folds

  • docs/adr/0051-socket-hooks-network-thread-hot-paths-one-implementation-written-debt.md, Status accepted; its Consequences name the AGENTS.md "Guardrails" bullet "Prefer a hook to a byte patch" and the C++ addendum's "This IS" line that says the Hard Stops table is enforced, as texts that change when it is accepted.
  • AGENTS.md "Guardrails": "Prefer a hook to a byte patch. ... Where a hook would cost something measurable (a per-frame hot path ...), the exception is a full replacement of the containing function or a checked byte patch": ADR 0051 rule 3 says a hot path is reconstructed and never hooked or byte-patched.
  • AGENTS.md's C++ addendum: "A code-review gate: the "Code Review Hard Stops" table is enforced": ADR 0051 rule 5 makes a departure from a Hard Stop a written debt row, not a block.

Not shown

  • The exact new wording: it states ADR 0051's rules 3 and 5 and points to the ADR, without repeating it (settle-the-instructions: one home).

Falsifier

AGENTS.md already says a hot path is reconstructed and never hooked or byte-patched, and that a Hard Stop departure is written debt.

Work

  1. Reword the "Guardrails" bullet to ADR 0051 rule 3 (and ADR 0038 for non-hot sites), pointing at both ADRs.
  2. Reword the addendum's Hard Stops line to ADR 0051 rule 5 (a departure is a debt row, the same turn).
  3. No other AGENTS.md change; just test-changed and the AGENTS.md checks it plans pass.

Points: 1.

Dominant language
C++
Stars
3
Forks
5
Avg merge
4h 7m
Merged PRs (30d)
634

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EchoTools/nevr-runtime

All issues in EchoTools/nevr-runtime

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.