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
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,15 @@
1
1
#Important rules for agents
2
2
Debugging: Use docs/todo.md as to put issues, inconveniences and impediments that you noticed that you are not fixing on this iteration.
3
3
SQL: Format queries in a way so it's easy to copy them out of the codebase and debug standalone.
4
-
Testing: Always add a custom assertion message when writing assertions in unit tests, including as much context as possible. Incorporate input data and relevant test details so it's immediately clear what is being verified and why it might fail.
5
-
Documentation: When moving around md files also fix the links in them and links to them across all others.
6
-
Debugging: Make sure that error messages towards developer are better than just "500 Internal server error".
7
-
k8s: When changing something in the charts, bump chart version to trigger deployment too.
4
+
Make: Makefile: If you need intermediate result from other target, split it into two and depend on the intermediate result.
8
5
Testing: Code test coverage is measured by codecov. Write useful tests to increase it and check key requirements to hold.
9
-
Debugging: Inject data assertions into IO abstraction libraries to catch any data that violates them.
10
-
Pull requests: Use Conventional Commits convention when formatting the pull request and commits, e.g.`type(scope): TICKETNUMBER title ...`. Skip ticket number if not provided. Field: Public Id.
6
+
k8s: When changing something in the charts, bump chart version to trigger deployment too.
7
+
Debugging: Code test coverage is measured by codecov. Write useful tests to increase it and check key requirements to hold.
8
+
Documentation: When moving around md files also fix the links in them and links to them across all others.
11
9
Front End: Every spot that uses external library has to be covered at least once in tests so it's easy to merge dependabot version bump PRs.
12
10
SQL: Do not rewrite old migrations, not for style changes, not for logic changes, always create new migrations for any changes in DB
13
-
Make: Makefile: If you need intermediate result from other target, split it into two and depend on the intermediate result.
14
-
AI: Colloquial "vectors" are to be called "embeddings"incodebase.
11
+
Debugging: Make sure that error messages towards developer are better than just "500 Internal server error".
12
+
Testing: Always add a custom assertion message when writing assertionsinunit tests, including as much context as possible. Incorporate input data and relevant test details so it's immediately clear what is being verified and why it might fail.
15
13
Style: If a file with code grows longer than 500 lines, refactor it into two or move some parts into already created libraries.
16
14
Documentation: docs/ folder has general project documentation that needs to be kept up to date.
17
15
Testing: To run the pipeline in testing offline mode, launch`TEST_MODE=1 PYTHONPATH=. make -B -j all` and check if everything works as intended.
@@ -20,7 +18,10 @@ Debugging: Don't stub stuff out with insane fallbacks (like lat/lon=0) - instead
20
18
Style: Every feature needs to have comprehensive up-to-date documentation near it, write it.
21
19
Debugging: Keep working until the tests pass, do not stop before that.
22
20
Make: Format target comments as self-documented Makefile, on same line:`target: dependencies | order_only_deps ## Description`
23
-
Debugging: Code test coverage is measured by codecov. Write useful tests to increase it and check key requirements to hold.
21
+
AI: Colloquial "vectors" are to be called "embeddings" in codebase.
22
+
Pull requests: Use Conventional Commits convention when formatting the pull request and commits, e.g.`type(scope): TICKETNUMBER title ...`. Skip ticket number if not provided. Field: Public Id.
23
+
Debugging: Inject data assertions into IO abstraction libraries to catch any data that violates them.
24
+
Front End: New code and its business logic should be covered by tests based on adjusted requirements.
24
25
Style: Clean stuff up if you can: fix typos, make lexics more correct in English.
25
26
Debugging: When refactoring to move a feature, don't forget to remove the original code path.
26
27
SQL: Values in databases and layers should be absolute as much as possible: store "birthday" or "construction date" instead of "age".