Record accepted audit test improvements

This commit is contained in:
2026-11-25 14:39:01 +00:00
parent 5da4942b30
commit d23022de03

View File

@@ -1,6 +1,6 @@
# Audit Remediation Discussion
Created 2026-11-24; updated 2026-11-25. Status: topic 1 accepted; remaining
Created 2026-11-24; updated 2026-11-25. Status: topics 1–2 accepted; remaining
topics pending discussion. No remediation implementation is recorded yet.
This document gives maintainers an ordered agenda for working through the
@@ -34,7 +34,7 @@ are proposals, not authorization to introduce new behavior.
| Topic | Catalog entries | Decision |
| --- | --- | --- |
| 1. Correct the production defects | 1–3 | Accepted 2026-11-25: lossless numbers, pathname identity, regular-file acquisition with cooperative cancellation; upstream reader reuse is separate follow-up. |
| 2. Strengthen existing behavioral protection | 4, 7, 9–13 | Pending |
| 2. Strengthen existing behavioral protection | 4, 7, 9–13 | Accepted 2026-11-25: strengthen tests at application boundaries, consolidate redundant scenarios, and remove incidental assertions without new runtime requirements. |
| 3. Improve startup diagnostics at the owning boundary | 8 | Pending |
| 4. Select HTTP connection-lifetime policy | 5 | Pending |
| 5. Establish whether additional memory controls are needed | 6 | Pending |
@@ -75,21 +75,25 @@ release are not prerequisites for correcting the local defect.
## 2. Strengthen Existing Behavioral Protection
**Recommendation:** Proceed without new product requirements. Prefer replacing
weak or redundant assertions over expanding the test inventory.
**Decision — accepted 2026-11-25:** Strengthen protection for existing behavior
without new product requirements. Replace weak or redundant assertions rather
than broadly expanding the test inventory.
| Catalog entries | Recommended disposition |
| Catalog entries | Accepted disposition |
| --- | --- |
| [4 and 7](catalog.md#4-shared-engine-lifetime-is-not-protected-at-server-composition) | Consolidate shared-capacity protection at the real server boundary. Register cancellation, release, and joining before launching workers; bound the second request. Remove the lower-level duplicate only when its meaningful protection is covered. |
| [9](catalog.md#9-artifact-hash-tests-reuse-the-production-implementation-as-oracle) | Replace the production-helper oracle with independently meaningful digest expectations. |
| [9](catalog.md#9-artifact-hash-tests-reuse-the-production-implementation-as-oracle) | Replace the production-helper oracle with independently known digests for fixed content. A suitable upstream public comparison remains an alternative when interoperability is the purpose. |
| [10](catalog.md#10-collector-fixtures-cannot-detect-swapped-cache-usage-fields) | Use distinct accounting values and check required field names and value/known/complete semantics. |
| [11](catalog.md#11-server-engine-construction-failure-lacks-boundary-coverage) | Cover a resolved configuration whose engine construction fails: typed cause, nonzero status, and no listen attempt. This need not wait for topic 3's diagnostic design. |
| [12](catalog.md#12-removed-flag-tests-can-pass-because-the-prompt-operand-is-missing) | Supply otherwise-valid invocations and verify rejection of the removed flag specifically. Retain the selected hard-cutover protection. |
| [12](catalog.md#12-removed-flag-tests-can-pass-because-the-prompt-operand-is-missing) | Supply otherwise-valid invocations and verify rejection of the removed flag specifically, using native typed evidence where available or a minimal flag-specific diagnostic fragment. Retain the selected hard-cutover protection. |
| [13](catalog.md#13-http-error-mapping-tests-pin-noncontractual-prose) | Assert status, code, precedence, usable messages, and cause privacy without freezing noncontractual sentences. |
Preserve distinct privacy and retry checks when consolidating capacity tests.
Retain exact wording assertions only where wording is expressly contractual;
constructor-failure coverage must not prescribe the pending diagnostic design.
The numeric representation assertion belongs with the precision correction in
topic 1. Avoid coverage quotas, exhaustive upstream test matrices, and tests
that silently establish new resource or disclosure guarantees.
topic 1. Avoid coverage quotas, exhaustive upstream test matrices, new runtime
limits, and tests that silently establish resource or disclosure guarantees.
## 3. Improve Startup Diagnostics At The Owning Boundary