|
1 | 1 | # AGENTS.md |
2 | 2 |
|
3 | | -## Project |
4 | | -LogLens is a defensive C++20 CLI for parsing Linux authentication logs and generating structured detection reports. |
5 | | - |
6 | | -## Priorities |
7 | | -1. Working MVP first |
8 | | -2. Clean modular C++20 |
9 | | -3. Safe public-repo content |
10 | | -4. Reproducible build and tests |
11 | | -5. Clear README and docs |
12 | | - |
13 | | -## Constraints |
14 | | -- Do not add offensive or exploitation functionality |
15 | | -- Do not use real IPs, secrets, usernames, or private infrastructure identifiers |
16 | | -- Prefer standard library over third-party dependencies |
17 | | -- Keep file structure simple |
18 | | -- Avoid unnecessary templates or meta-programming |
19 | | -- Avoid heavy regex-only designs if a clearer parser is possible |
20 | | -- Keep detection rules centralized and configurable |
21 | | - |
22 | | -## Code style |
23 | | -- C++20 |
24 | | -- Readable names |
25 | | -- Small functions |
26 | | -- Comments only where they add real value |
27 | | -- Fail gracefully on malformed log lines |
28 | | - |
29 | | -## Repository rules |
30 | | -- Always update README when adding user-visible features |
31 | | -- Add or update tests for parser and detector changes |
32 | | -- Preserve public-safe placeholders like 203.0.113.x and example-host |
33 | | -- Do not introduce large unrelated refactors |
34 | | - |
35 | | -## Task behavior |
36 | | -When given a task: |
37 | | -1. inspect repository state |
38 | | -2. explain plan briefly |
39 | | -3. implement in small steps |
40 | | -4. run build/tests if available |
41 | | -5. summarize created/modified files and remaining issues |
| 3 | +## LogLens Repo Rules |
| 4 | + |
| 5 | +- Keep the repository defensive and public-safe. Do not add offensive, exploitation, persistence, or live attack functionality. |
| 6 | +- Use only safe placeholders such as `203.0.113.x` and `example-host`. Never add real IPs, usernames, secrets, or private identifiers. |
| 7 | +- Prefer standard C++20 and the standard library. Keep code modular, readable, and easy to extend. |
| 8 | +- Keep detection rules centralized and configurable. Avoid large unrelated refactors. |
| 9 | +- Fail gracefully on malformed log lines. |
| 10 | +- Update README or docs for user-visible changes. |
| 11 | +- Tests are required for code changes. Add or update parser/detector tests and run available build/tests when possible: |
| 12 | + `cmake -S . -B build` |
| 13 | + `cmake --build build` |
| 14 | + `ctest --test-dir build --output-on-failure` |
0 commit comments