Repository navigation
Conversation
CRAP (Change Risk Anti-Patterns) combines cyclomatic complexity with test coverage: cc^2 * (1 - cov)^3 + cc. It is computed at output time from the existing complexity and coverage data, so no analysis types change. - JSON: metrics.crap is a number with coverage data and null without it, so consumers can parse the key unconditionally. - Terminal and LLM markdown output show it next to coverage. - [crap].coverage_source selects direct (default) or transitive coverage.
This was referenced Oct 12, 2026
This was referenced Oct 13, 2026
Score each function's editability per model tier (small to frontier) from complexity, nesting, length, coverage, context tokens and ripple, with ranked improvement actions. Opt-in via [llm_editability].
thedrow
force-pushed
the
feat/llm-editability
branch
from
October 13, 2026 02:18
e2f8cfa to
60f4040
Compare
Match custom profile ids ignoring case, and let llm-models run when a configured model name is invalid. Clamp callee advice to the function's own size, reject non-finite weights, and keep editability fields out of v3 JSON.
This branch has not been deployed
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.
Summary
[llm_editability] enabled = true. Model profiles and per-language settings are configurable, anddebtmap llm-modelslists them.This is PR 2 of 3. Next: recent LLM churn (#150).
Test plan
llm::cargo test --bin debtmap,output_validation_testNot yet done
[llm_editability]section (models, profiles, languages, thresholds, weights), thellm-modelscommand, and the JSON/markdown fields.How to stack these
These pull requests target
master. From a clone ofiepathos/debtmap, link them bottom to top, then merge the stack:gh stack linkrecords the stack on GitHub.gh stack mergemerges that stack in one step. Pass a pull request number to stop at that pull request. Order: CRAP scores (#148), editability (#149), churn (#150), topics (#151), content reverts (#152).