You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,10 +41,26 @@ llm-d Router. Go service that routes inference requests to model-serving pods vi
41
41
42
42
- Standard Go. `make format` and `make lint` are authoritative.
43
43
- Comments are terse and only present when the WHY is non-obvious. Never paraphrase the code.
44
-
- Docs and comments describe the current state on its own terms. No "previously", "now", "recently", "renamed from", "added to fix", or other temporal or conversational framing. A reader with no context for the change must still understand the text.
44
+
- Docs and comments describe the current state on its own terms. No "previously", "now", "recently", "renamed from", "added to fix", "this PR", "see above", or other temporal, deictic, or conversational framing. A reader with no context for the change must still understand the text.
45
45
- State each fact once, in its canonical location. Do not duplicate across struct docs, prose, tables, inline comments, and examples.
46
46
- Do not use Unicode symbols or special characters in general, unless explicitly requested.
47
47
48
+
### Constructions to delete
49
+
50
+
Model-drafted prose drifts toward compressed, rhetorical phrasing. Before shipping any prose (comments, docs, commit bodies, PR descriptions), decompress it: rewrite each such sentence as a plain statement of the fact it carries, judged against what the change is actually for. The test: if a sentence sounds quotable, delete it.
51
+
52
+
| Tic | Example | Fix |
53
+
|---|---|---|
54
+
| X, not Y | "the queue is not a buffer, it is a fairness mechanism" | say what it is, once |
55
+
| Coined aphorism | "a shed request is not a failure, it is the contract" | delete the sentence |
56
+
| Closing zinger | a paragraph that ends on a beat instead of a fact | end on information |
57
+
| Triads for rhythm | "no locks to take, no channels to drain, no state to sync" | one clause |
58
+
| Portent counters | "three things follow", "two points are worth noting" | just say them |
| Editorial tails | "..., which is exactly what we want" | cut, or a new sentence |
61
+
| Grandeur adjectives | comprehensive, robust, seamless, production-ready | name the verified behavior |
62
+
| Dash pileup | more than one dash pair per paragraph | periods |
63
+
48
64
### Logging
49
65
50
66
The codebase uses `go-logr` via controller-runtime. Verbosity constants are defined in `pkg/common/observability/logging` (`DEFAULT=2`, `VERBOSE=3`, `DEBUG=4`, `TRACE=5`).
0 commit comments