Repository navigation
docs: add AGENTS.md, update the debt register and add a debt baseline - #228
Open
SizzleUnrlsd wants to merge 11 commits into
Open
SizzleUnrlsd wants to merge 11 commits into
SizzleUnrlsd wants to merge 11 commits into
Conversation
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.
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.
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.
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.
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.
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
Three documentation changes on how
ctracekeeps its debt under control.AGENTS.md(new). Instructions for coding agents, in two parts: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).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:
ctrace. Its clang-tidy check set is a choice, as the repository has no.clang-tidy.ROADMAP.mdstill lists build(deps): update coretrace-stack-analyzer past v0.22.0, which does not finish on CoreTrace's own code #169 and Remove USE_EXTERNAL_CLI11: it downloads CLI11 2.3.2 while the vendored header is 2.5.0 #175 as Q4 work, and the README saysclang-format17 while CI installs 20. Neither is changed here.How it was tested
Documentation only:
ctracewas not built and no test was run.AGENTS.mdnames 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 fromdocs/open-source-scope.md, this repository's CMake modules and those repositories' READMEs; their code was not read.gh issue listby label, and the eight pull requests it cites are merged.jq); they were not replayed as written.Checklist
fix(cli): handle missing input.ctest --test-dir build --output-on-failurepasses. Not run: no code changes../scripts/format-check.shpasses. Not run: no C++ changes.docs/or the help text follow the change, if users see it.