From f934f7c3cbe2e03bc0e3e4e347f94122a462c68b Mon Sep 17 00:00:00 2001 From: Pranav Mathad Date: Sun, 29 Nov 2026 03:04:32 +0100 Subject: [PATCH] Specify fix text built from facts for pressure points and supporting detail --- spec.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/spec.md b/spec.md index 7d6acd6f..b9edf333 100644 --- a/spec.md +++ b/spec.md @@ -59,6 +59,7 @@ The additional judging hint says findings must be "plausible problems based on a | Scope is set by product quality, not by hours or team size | Agreed | | Merged Stage 5–6 design (seven finding types, fix simulation) | Proposed, open to refinement | | Merged Stage 4 and 7 design (structure grid, arithmetic ranking, "try the fix") | Proposed, open to refinement | +| Fix text for pressure points and supporting detail is built from facts by ordinary code, not written by AI | Agreed | --- @@ -456,6 +457,8 @@ Length limits are enforced by our checks, not by the schema. For the overloaded-class finding type (§9.3), the allowed verdicts are `mixed_concerns`, `single_concern` and `insufficient_evidence`. +Job B does not judge pressure points or supporting detail (§9.3). Their fix text comes from the template (§8.7). + ### 8.4 Checks after every call | Check | Rule | On failure | @@ -509,6 +512,24 @@ For an overloaded class: > `{class}` has {lines} lines, depends on {deps} project classes and is used by {users} files. Its longest functions are {functions}. +The template also gives a fix sentence for the pressure points and for supporting detail (§9.3). Rules: + +- Built only from the finding's stored facts and evidence. No AI call. +- Every number in it is a fact value, and every code name appears in the facts, a path or the evidence: the same rule job B's text must pass (§8.4). +- At most 2 sentences (§8.3). +- `fix.action` is one of the values in §8.3. No new value. +- Shown as "not simulated" (§8.5). +- It is a standard remedy chosen by finding type and filled in with the finding's facts. It does not come from reading the code, and it carries the same "computed summary" label as other template text. +- When a value the sentence needs is missing, or a type has no fix sentence, the finding shows "No improvement proposed." in plain words, never an empty field. + +| Type | Action | Fix sentence | +|---|---|---| +| Shaky foundation | `split_by_responsibility` | Separate the part of `{file}` that changes often from the part that stays, so its {direct_users} direct users depend only on the part that stays. | +| Hidden partners | `extract_interface` | Move what `{a}` and `{b}` share into one place that both use. If they must stay apart, a note in each that names the other makes the pairing visible. | +| Large, complex, often changed | `split_by_responsibility` | Split {top_functions} into smaller functions. No other function in `{file}` has more branches. | + +`{file}`, `{a}` and `{b}` are the finding's targets. `{top_functions}` is the stored fact: one or two function names, each with its line range. + The whole report is therefore complete with zero AI calls. ### 8.8 Models @@ -819,7 +840,7 @@ Measures: overlap of the top 5 and top 10, and rank-biased overlap at p = 0.9, i 1. Verdict line: decisions by status, and the project yardsticks. 2. Decisions, each with source, status, trend and exception count. -3. Top 10 to fix first, each with facts, claim, fix and simulation result. The batch simulation result (§8.5) is shown above the top 10. +3. Top 10 to fix first, each with facts, claim, fix and simulation result. A finding with no fix says "No improvement proposed.", and a fix that was not simulated says "not simulated". The batch simulation result (§8.5) is shown above the top 10. 4. What is healthy, with evidence. 5. Before and after (§12). 6. What was read and what was not: coverage, linking agreement, blind spots, limits of each fact type. @@ -903,6 +924,7 @@ Not used: a vector database, an agent framework, AI-based ranking, AI-based code | Statuses and yardsticks need calibration | Thresholds are initial | | A language without a grammar | History-only facts | | Three repos, no comparison group | The bonus describes; it does not show cause | +| Suggested improvements for pressure points and supporting detail are standard remedies by finding type | Filled with the finding's facts, not written from a reading of the code | ---