Adapt agent guidance and supporting docs for BeatGlow

This commit is contained in:
maze committed 2026-10-29 17:44:29 +01:00
1 parent 7916bc0b78
commit 07dc1ec5b3
5 files changed
+154 -1

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
# Go documentation
- Document new or changed exported APIs and interfaces. Explain private code when
its lifecycle, protocol behavior or invariants are not clear from the code.
- Start API comments with the declared name and write complete sentences. Use
paragraphs and Go doc links such as `[Player]` for relevant Go identifiers.
- Describe the contract: parameter constraints, units, defaults, return values,
blocking behavior and resource ownership when they matter to callers.
- For error returns, explain actionable failure conditions and recognizable
sentinel errors that the implementation actually returns. Do not invent error
types, guarantees or recovery behavior.
- State concurrency restrictions explicitly. Do not assume a type is safe for
concurrent use simply because no warning exists.
- Keep interface contracts and implementations consistent. Explain meaningful
deviations rather than copying comments mechanically.
- For documentation-only tasks, preserve runtime behavior. Correct inaccurate
documentation after checking the implementation; keep separate logic fixes scoped.
- Wrap prose around 100 characters where practical. Avoid documenting obvious
implementation steps or adding repetitive boilerplate.
Adapted from [Flow's Go documentation guide](https://github.com/onflow/flow-go/blob/master/docs/agents/GoDocs.md).