Repository navigation
docs: add AGENTS.md for coding agents - #10
Merged
Merged
Conversation
Part 1 describes the CoreTrace project and the rules shared by its repositories, identical to coretrace's. Part 2 describes the template: scope, commands, layout, invariants, what it lacks, and what a tool created from it must rewrite.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Adds
AGENTS.md, the instructions coding agents read before working in a repository. As thisrepository is the template new tools start from, the file is also the first version of every
new tool's
AGENTS.md. It has two parts:coretraceindocs: add AGENTS.md, update the debt register and add a debt baseline coretrace#228: what each repository does and how they fit together, the contracts
between them, where a problem is fixed, and the rules shared by all (development, boundaries,
technical debt cycle).
layout, what
coretrace_add_tool()produces, six invariants taken from the files, whatPart 1 assumes and this repository lacks (tests,
severity/*labels, a debt register), andwhat a tool created from the template must do with the file.
For the reviewer:
review, this copy has to follow.
coretrace's documentation and CMakemodules and from those repositories' READMEs; their code was not read.
CORETRACE_COMPILER_GIT_TAGdefaults to the branchmain, as doesextern-project/;extern-project/CMakeLists.txtnamessrc/main.cppwhile the file issrc/main.c, and thatfile includes
StackUsageAnalyzer.hpp;CMakeLists.txtincludes aCheckLLVMVersionmodulethat
cmake/does not hold, so the LLVM minimum check is skipped. The second was notconfirmed by a build.
How it was tested
Documentation only.
./scripts/format-check.shwas run withclang-format20 and passes.coretrace-compiler. The buildcommands of Part 2 are those of
CONTRIBUTING.md.one of docs: add AGENTS.md, update the debt register and add a debt baseline coretrace#228.