Skip to content

docs: add AGENTS.md, update the debt register and add a debt baseline - #228

Open
SizzleUnrlsd wants to merge 11 commits into
mainfrom
docs/agents-md
Open

SizzleUnrlsd wants to merge 11 commits into
mainfrom
docs/agents-md

Conversation

@SizzleUnrlsd

@SizzleUnrlsd SizzleUnrlsd commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Three documentation changes on how ctrace keeps its debt under control.

AGENTS.md (new). Instructions for coding agents, in two parts:

  • Part 1, the CoreTrace project, written to be the same in every repository: what each repository does and how they fit together, the contracts between them (finding model, exit codes, interfaces of ctrace, pinned versions, one compiler library per build), where a problem is fixed, how the project is organized, and the rules shared by all: development, boundaries, and a technical debt cycle (observe, qualify against the architecture, record, repay, verify, update the register).
  • Part 2, this repository: scope, commands, the scripts to run and when, the five-stage pipeline, eight invariants taken from the code, how to add a tool, test conventions, and where this repository's debt shows.

docs/quality/technical-debt.md (updated). The register dated from 2026-10-13 and no longer matched the issues:

docs/quality/debt-baseline-2026-11-20.md (new). cppcheck and clang-tidy on the 22 translation units: 69 findings in 23 files, none at error level, by tool and by check family, the five files that concentrate them, a proposed triage and the protocol to repeat the measure.

For the reviewer:

How it was tested

Documentation only: ctrace was not built and no test was run.

  • Every path and command AGENTS.md names was checked to exist in the tree, each invariant was checked against the code it cites, and the license and pinned dependency scripts were run and pass. What Part 1 says of the other repositories comes from docs/open-source-scope.md, this repository's CMake modules and those repositories' READMEs; their code was not read.
  • The register's counts were checked against gh issue list by label, and the eight pull requests it cites are merged.
  • The baseline's figures come from an actual run: cppcheck 2.17.1 and clang-tidy 20.1.2 on the 22 units, all analyzed, clang-tidy without a compilation error. The commands of its "Protocol" section are an equivalent form of what was run (the compilation database was filtered with a script rather than jq); they were not replayed as written.

Checklist

  • The title is an English Conventional Commit, such as fix(cli): handle missing input.
  • Tests cover the change (see the test policy). Not applicable: no code changes.
  • ctest --test-dir build --output-on-failure passes. Not run: no code changes.
  • ./scripts/format-check.sh passes. Not run: no C++ changes.
  • The README, docs/ or the help text follow the change, if users see it.

Describe the open-source scope of ctrace, its pipeline and invariants,
the development rules the repository already applies, and a cycle to
observe, qualify, record, repay and verify technical debt.
Record the reviews of 2026-10-13 and 2026-10-15 to 10-19: 51 issues, 43
closed. Move D1, D8, D12 and D13 to repaid, add D14 to D16 (#192, #203,
#207), and restate D3, D5, D10 and D11 from the current pins and issues.
@SizzleUnrlsd SizzleUnrlsd self-assigned this Nov 20, 2026
Measure ctrace's 22 translation units on 2026-11-20: 69 findings, none
at error level, by tool and by check family, the five files that
concentrate them, a proposed triage, and the protocol to repeat it.
State what every pull request must satisfy, however it was written:
optional declaration with a template box and the ai-assisted label,
review by a maintainer, green gates, no new debt, and one fifth of each
iteration to repay debt. Define four indicators with their baseline.
Point AGENTS.md to the policy and the baseline.
@SizzleUnrlsd SizzleUnrlsd changed the title docs: add AGENTS.md and update the technical debt register docs: add AGENTS.md, the AI-assisted code policy and a debt baseline Nov 20, 2026
No label, no template box and no indicator on the share of assisted
pull requests: the rules apply to every pull request in the same way.
Rename the policy to ai-code-policy.md and restore the pull request
template.
@SizzleUnrlsd SizzleUnrlsd changed the title docs: add AGENTS.md, the AI-assisted code policy and a debt baseline docs: add AGENTS.md, the AI code policy and a debt baseline Nov 20, 2026
Remove the reference to the AI code policy. State the commit rule in
neutral terms and name the three debt indicators directly.
AGENTS.md carries the rules and the debt cycle for every change; the
policy stays out of the repository.
@SizzleUnrlsd SizzleUnrlsd changed the title docs: add AGENTS.md, the AI code policy and a debt baseline docs: add AGENTS.md, update the debt register and add a debt baseline Nov 20, 2026
List the format, license header, pinned dependency, coverage and retry
scripts in AGENTS.md, and say that no script checks commit messages.
Part 1 describes CoreTrace as a whole: the repositories, how they fit
together, the contracts between them, where a problem is fixed, and the
rules and debt cycle shared by all. Part 2 keeps what is specific to
ctrace: commands, scripts, architecture, invariants, tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant