Record cleanup scope and track deferred HTTP adapter work

This commit is contained in:
2026-11-25 17:01:30 +00:00
parent 95771ac794
commit 8d784e11a7
2 changed files with 35 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
# Audit Remediation Discussion
Created 2026-11-24; updated 2026-11-25. Status: topics 1–5 accepted; remaining
Created 2026-11-24; updated 2026-11-25. Status: topics 1–6 accepted; remaining
topics pending discussion. No remediation implementation is recorded yet.
This document gives maintainers an ordered agenda for working through the
@@ -29,6 +29,15 @@ need not delay confirmed bug fixes. Retain the boundaries in the
[architecture policy](../../policy/architecture.md) and the proportionality
required by the [testing policy](../../policy/testing.md).
**Roadmap requirement — accepted 2026-11-25:** Preserve every HTTP-related
deferral from this review under **Deferred HTTP Adapter Work** in
[future.md](../future.md). The entry has been started with the agreed deferrals;
the remediation roadmap must carry it forward and complete it as remaining
decisions and implementation dispositions are settled. Record deferred work as
conditional future consideration, not a delivery commitment. Keep upstream
reader reuse separate from the accepted local reader fixes; add report-package
placement if topic 7 selects deferral.
## Discussion Order And Decision Record
Work through the sections below in order. Record accepted scope, deferrals, and
@@ -42,7 +51,7 @@ are proposals, not authorization to introduce new behavior.
| 3. Improve startup diagnostics at the owning boundary | 8 | Accepted 2026-11-25: native explanations for listener failures, upstream-owned capture diagnostics, and independent delivery of the two improvements. |
| 4. Select HTTP connection-lifetime policy | 5 | Accepted 2026-11-25: retain existing transport behavior for trusted hosts on a trusted network; defer new timeout controls and impose no gateway requirement. |
| 5. Establish whether additional memory controls are needed | 6 | Accepted 2026-11-25: retain existing limits and document the known aggregate-memory limitation; additional controls are deferred. |
| 6. Select proportionate local cleanup | 14, 15, 17 | Pending |
| 6. Select proportionate local cleanup | 14, 15, 17 | Accepted 2026-11-25: defer standalone HTTP restructuring, permit small adjacent simplifications, and accept a focused CLI diagnostic cleanup where it reduces maintenance effort. |
| 7. Decide whether to move HTTP report ownership | 16 | Pending |
## 1. Correct The Production Defects
@@ -160,23 +169,27 @@ or HTTP's operating model expands.
## 6. Select Proportionate Local Cleanup
**Recommendation:** Consider these changes when adjacent corrective work makes
their benefit concrete; none is a prerequisite for fixing the defects.
**Decision — accepted 2026-11-25:** Keep cleanup proportionate to maintenance
needs; none is a prerequisite for fixing the defects.
- [14: HTTP handler](catalog.md#14-http-handler-responsibilities-are-hard-to-review-independently):
extract a few cohesive private decoding, mapping, or projection helpers while
retaining a clear request lifecycle and existing behavioral tests.
defer a standalone handler refactor. Make the correctness fixes directly;
permit a small private helper extraction only when it materially clarifies
the affected code. Preserve the request lifecycle and behavioral tests.
- [15: CLI diagnostics](catalog.md#15-cli-diagnostic-adaptation-is-duplicated-and-failure-selection-is-nested):
share the small run/serve evidence-selection bridge and flatten failure
selection where helpful. Preserve native inspection ownership and error
precedence; do not force distinct failure paths into one abstraction.
consolidate the genuinely shared run/serve diagnostic bridge into a private
CLI helper and flatten failure selection where it improves readability.
Preserve distinct explanations, typed causes, precedence, and native
inspection ownership. Retain short duplication if sharing would require
extra options or abstractions. This does not solve the capture-diagnostic gap.
- [17: Optional model mapping](catalog.md#17-optional-model-mapping-has-redundant-nil-handling):
call the existing nil-aware converter unconditionally when touching request
mapping, preserving omitted/null versus explicit-empty behavior.
mapping, preserving omitted/null versus explicit-empty behavior. Leaving the
current correct implementation alone is acceptable; this is not a standalone
remediation task.
**Decision to record:** Which cleanups are useful in the corrective work, and
which should remain deferred? No middleware framework, universal classifier,
or interface for every phase is warranted.
No middleware framework, universal classifier, or interface for every phase is
warranted. Carry deferred HTTP cleanup into the future-work entry above.
## 7. Decide Whether To Move HTTP Report Ownership

View File

@@ -1,5 +1,14 @@
# Future Work
- **Deferred HTTP Adapter Work:** retain HTTP in maintenance mode for trusted
hosts on a trusted network. Reconsider body-read, idle, and response-delivery
deadlines; aggregate input/memory controls; and standalone handler
decomposition only when concrete operating or maintenance needs justify them.
Investigate public upstream artifact-reader reuse separately from the local
correctness fixes, preserving access policy and limits during acquisition.
Optional model-mapping simplification may accompany later mapping work if
left unchanged during remediation. Track further HTTP deferrals from the
[audit discussion](audit/discussion.md) here as decisions are settled.
- **HTTP design review:** review the HTTP interface and execution-report
representation before v1.0.
- **Additional HTTP accounting:** expose reasoning, cost, and cache-ratio