Retain all diagnostic groups without capacity caps

This commit is contained in:
2026-11-26 01:59:34 +00:00
parent 6133902b9b
commit b0dc84a479
16 changed files with 146 additions and 116 deletions

View File

@@ -3,8 +3,9 @@
**Status:** Accepted in part. Durable warning/diagnostic files and receipt
presentation are superseded by
[ADR-0024](0024-publish-artifacts-with-native-reports-and-debug-evidence.md).
Process-warning classification, module-owned meaning, and bounded origin-aware
aggregation remain accepted.
Diagnostic group caps are superseded by
[ADR-0028](0028-retain-all-diagnostic-groups.md). Process-warning classification,
module-owned meaning, origin-aware aggregation, and sample limits remain accepted.
**Date:** 2026-08-27
## Context

View File

@@ -2,7 +2,8 @@
**Status:** Accepted; the requirement for one native invocation ExecutionGroup is
partially superseded by [ADR-0025](0025-use-consumer-owned-execution-observation.md),
and whole-source evidence representation by [ADR-0027](0027-share-whole-source-capture-evidence.md).
whole-source evidence representation by [ADR-0027](0027-share-whole-source-capture-evidence.md),
and diagnostic group caps by [ADR-0028](0028-retain-all-diagnostic-groups.md).
All other decisions remain accepted.
**Date:** 2026-11-22

View File

@@ -0,0 +1,35 @@
# ADR-0028: Retain all diagnostic groups
**Status:** Accepted
**Date:** 2026-11-25
## Context
Fixed local and final diagnostic group caps could fail otherwise valid work or
discard non-warning groups. The caps did not represent selected input limits,
and truncated collections could not preserve every completed finding.
## Decision
Retain all valid diagnostic groups in stable origin-aware order, without local
or final group-count caps. Preserve exact checked occurrence totals, at most
three distinct samples per group, and the per-group omitted-sample count.
Invalid diagnostics and arithmetic overflow still fail. No replacement limit,
exhaustive occurrence ledger, or durable report sidecar is introduced.
This supersedes only the group-cap and collection-truncation portions of
[ADR-0015](0015-separate-process-warnings-from-quality-diagnostics.md) and
[ADR-0024](0024-publish-artifacts-with-native-reports-and-debug-evidence.md).
Their diagnostic classifications and other accepted decisions remain in force.
## Alternatives considered
- Increase or configure the caps: this retains the arbitrary failure or loss
boundary without establishing a selected resource policy.
- Record every occurrence: this adds an exhaustive ledger that is not needed
for grouped diagnostic presentation.
## Consequences
Group memory grows with distinct findings. Samples remain bounded per group,
but the application makes no global group-count or diagnostic-memory guarantee.

View File

@@ -164,6 +164,10 @@ it projects selected citations in source order, not a second typed output channe
[Evidence internals](../../internal/framework/pipeline/evidence_output.go) and
the [evidence contract](../integrations/evidence-context.md) define those owners.
Diagnostic aggregation retains every valid origin-aware group in stable order,
checks occurrence-count overflow, and keeps up to three representative samples
per group with an omitted-sample count.
The encoder receives owned normalized/auxiliary values and returns logical files.
It does not choose a directory, publish a report, or serialize execution ledgers.
[JSON output](../integrations/json-output.md) owns logical paths and payloads;

View File

@@ -159,8 +159,10 @@ fallbacks. A hit does not establish fresh acceptance under changed policy.
Consumers needing new inference/assessment deliberately choose bypass/refresh.
Process warnings retain native visibility; quality advisories are not promoted
to warnings. [Configuration](config.md#producer-controls) owns selected modes,
turn allowances, defaults, and precedence.
to warnings. All diagnostic groups are retained, with representative samples
per group rather than an exhaustive occurrence ledger.
[Configuration](config.md#producer-controls) owns selected modes, turn allowances,
defaults, and precedence.
## Output Bundles

View File

@@ -194,8 +194,8 @@ admission before returning.
Warnings are process signals: configuration degradation, qualified fallback,
or incomplete configured work. Quality and grounding findings are advisories;
accepted cleanup is observation. Modules own classification, while the framework
adds origin and aggregates bounded groups. A non-degraded successful run has no
actionable warnings. Retain
adds origin and aggregates all groups with bounded samples. A non-degraded
successful run has no actionable warnings. Retain
[ADR-0015](../adr/0015-separate-process-warnings-from-quality-diagnostics.md)'s
classification decision, not its retired durable reporting contracts.

View File

@@ -244,7 +244,8 @@ and failure semantics rather than silently truncating warnings into success.
**Subsequent decision:** [Discussion Item 1](discussion.md#1-diagnostic-capacity-and-pipeline-success)
selects removal of diagnostic group-count caps while retaining per-group sampling
and genuine failure causes. That accepted design replaces the warning-bound
preservation recommendation above; implementation remains pending.
preservation recommendation above. Group caps and truncation are removed; the
single failure-finalization boundary and preservation of causes remain pending.
### CAT-010 — Process Signals Do Not Reach Cooperative Cancellation

View File

@@ -446,6 +446,13 @@ accepted bodies. Update state/LLM/operations and affected evidence tests.
## Stage 14 — Remove Group Caps, Retain Sampling And Overflow Checks
**Completed.** Local and final group-count caps and collection-only truncation
metadata are removed; origin-aware ordering, three samples, omitted-sample
counts, validation, and checked occurrence totals remain. Many-group collector,
aggregator, and runner regressions pass, as do overflow and the prescribed
contracts, diagnostics, pipeline, and CLI suites. ADR-0028 records the capacity
decision. CAT-009's single finalization and failure-cause work remains pending.
**Coverage:** CAT-009 capacity policy. **Prerequisites:** none.
In contracts/diagnostics, collector, aggregator, and CLI consumers, remove local/