Accept diagnostic retention and pipeline success decisions

This commit is contained in:
2026-11-25 05:20:32 +00:00
parent 73883ef780
commit 003c6d7c61
2 changed files with 44 additions and 26 deletions

View File

@@ -12,8 +12,8 @@ results. This document adds prioritization and cross-report consolidation, not
another code audit or an implementation plan.
The companion [remediation discussion](discussion.md) collects review
recommendations and open choices in discussion order. Its proposals do not change
the finding statuses or authorize remediation.
recommendations and open choices in discussion order. Accepted decisions there
qualify proposed remediation; finding statuses here track implementation.
The **45 original finding entries** reduce to **33 outstanding catalog entries
and one resolved documentation entry**. Repeated responsibility findings are
@@ -199,6 +199,11 @@ bounded available diagnostics as incomplete failure information, and avoid the
duplicate pass. Test the combined failure, preserving existing warning bounds
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.
### CAT-010 — Process Signals Do Not Reach Cooperative Cancellation
**Assessment:** Static executable integration weakness; original P3.

View File

@@ -10,9 +10,9 @@ and subsequent discussion decisions, not another audit or a completed
implementation plan.
Prepared on 2026-11-24 against catalog revision
`5a0650250686353cf34fbbbf0e780b04f60e70c1`. All recommendations below remain
proposals. No remediation or policy change is approved merely by its inclusion
here. Record decisions in the corresponding item as discussion proceeds.
`5a0650250686353cf34fbbbf0e780b04f60e70c1`. Each item distinguishes accepted
decisions from proposals still under discussion. Acceptance selects the intended
design; implementation remains pending unless explicitly recorded otherwise.
The review supports the existing typed pipeline and native-kit architecture.
The strongest opportunities are removing repeated interpretation, unnecessary
@@ -28,37 +28,50 @@ order, and unresolved choices need not delay independent fixes.
## 1. Diagnostic Capacity And Pipeline Success
**Findings:** CAT-009; related CAT-008 and CAT-022.
**Status:** Open behavior decision.
**Status:** Accepted; implementation pending.
CAT-009 identifies a real loss of aggregation errors and available diagnostics.
Its suggested remediation also preserves the existing policy that exceeding the
warning-group bound can fail an otherwise successful pipeline. These are separate
issues: fixing error loss does not require endorsing that policy indefinitely.
The recommendation is to reconsider whether diagnostic volume alone should
invalidate acceptable artifacts. This is particularly relevant to the
artifact-first direction. Possible designs include bounded presentation with an
explicit overflow indication, or removing an unnecessary group-count cap. Neither
should conceal fallback/degradation or suppress genuine execution and diagnostic
contract errors.
**Accepted decisions:**
Questions to settle:
- Diagnostic volume alone does not fail a pipeline. Artifact acceptance continues
to follow the configured validation and strict/permissive decisions.
- Retain every distinct diagnostic group. Remove the local producer group-count
cap and both final warning/non-warning group-count caps. Remove collection-level
truncation and omission bookkeeping used solely to enforce those caps; do not
replace them with configurable limits.
- Retain grouping, occurrence counts, and representative sampling within each
group, initially keeping the existing three-example behavior and omitted-sample
counts. Distinct-group retention does not require storing every occurrence.
- Preserve diagnostics from completed operations when later execution fails,
independently of lane continuation. Incomplete lanes remain ineligible for
artifact publication.
- Preserve genuine diagnostic-contract, arithmetic-overflow, reporting, and
requested-capture failures. When finalization fails, retain the primary and
finalization causes alongside available valid diagnostics. The error can
explain incompleteness; no new report schema or durable sidecar is needed.
- Keep the small completion report, fallback disclosure, and native CommandKit
presentation unchanged.
- Should exceeding a diagnostic capacity limit fail the pipeline?
- If not, should the collection retain all groups or retain a bounded summary
with explicit omitted-information reporting?
- What information must remain available on failure, and how should an incomplete
diagnostic collection be identified without adding another report protocol?
This removes capacity-driven acceptance policy and collection-overflow paths while
preserving useful summaries. Memory grows with distinct groups; grouping and
representative samples still prevent repeated occurrences from requiring one
retained message each. No exhaustive diagnostic ledger is introduced.
The initial preference is against failing acceptable artifact production solely
because diagnostic volume exceeds a reporting limit. This is a proposed policy
change, not authority to silently truncate actionable warnings. Existing bounded
aggregation is retained by [ADR-0015](../../adr/0015-separate-process-warnings-from-quality-diagnostics.md)
Removing group caps eliminates the ordinary capacity-overflow case in CAT-009,
but genuine finalization failures must still retain their causes and available
diagnostics. CAT-008's completed-work diagnostic loss remains a separate fix.
Existing bounded aggregation is retained by
[ADR-0015](../../adr/0015-separate-process-warnings-from-quality-diagnostics.md)
and [ADR-0024](../../adr/0024-publish-artifacts-with-native-reports-and-debug-evidence.md).
Any selected change must be reconciled with those decisions and canonical
documentation when implemented.
Reconcile this accepted change with those architectural decisions and canonical
documentation during implementation, preserving accepted ADR bodies.
**Decision:** Pending.
**Decision:** Accepted as above. No open policy choices remain in this item.
## 2. Convenient Debug Evidence And Repeated Full-Source Capture
@@ -172,7 +185,7 @@ That fix need not wait for the broader producer refactor.
## 6. Finalization, Completed Diagnostics, And Intermediate Lifetimes
**Findings:** CAT-006, CAT-008, CAT-009, CAT-022; coordinate CAT-023 at the CLI boundary.
**Status:** Open technical design review; overflow policy depends on Item 1.
**Status:** Open technical design review; apply Item 1's accepted diagnostic policy.
Design diagnostic collection and lifetime reduction together. Completed work's
diagnostics must survive a later failure before its intermediate values are