Accept HTTP report relocation into the adapter

This commit is contained in:
2026-11-25 17:03:42 +00:00
parent 8d784e11a7
commit f040f6906c

View File

@@ -1,7 +1,7 @@
# Audit Remediation Discussion
Created 2026-11-24; updated 2026-11-25. Status: topics 1–6 accepted; remaining
topics pending discussion. No remediation implementation is recorded yet.
Created 2026-11-24; updated 2026-11-25. Status: topics 1–7 accepted.
No remediation implementation is recorded yet.
This document gives maintainers an ordered agenda for working through the
[audit catalog](catalog.md). The catalog and its source reports own the findings
@@ -35,8 +35,8 @@ deferral from this review under **Deferred HTTP Adapter Work** in
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.
reader reuse separate from the accepted local reader fixes. Report-package
relocation is accepted remediation work under topic 7, not a deferral.
## Discussion Order And Decision Record
@@ -52,7 +52,7 @@ are proposals, not authorization to introduce new behavior.
| 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 | 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 |
| 7. Decide whether to move HTTP report ownership | 16 | Accepted 2026-11-25: move the HTTP collector, projection, and focused tests into the HTTP adapter to make its maintenance-mode boundary explicit. |
## 1. Correct The Production Defects
@@ -193,18 +193,23 @@ warranted. Carry deferred HTTP cleanup into the future-work entry above.
## 7. Decide Whether To Move HTTP Report Ownership
[Catalog entry 16](catalog.md#16-http-terminal-report-ownership-spans-two-packages)
offers two coherent choices: co-locate the collector/projection with the HTTP
adapter, or retain the isolated package with its HTTP-specific purpose clear.
**Decision — accepted 2026-11-25:** Implement the relocation proposed in
[catalog entry 16](catalog.md#16-http-terminal-report-ownership-spans-two-packages).
Move the HTTP terminal collector, projection types, and focused tests from
`internal/report` into dedicated files within `internal/adapter/http`; make
implementation names private where practical and remove the obsolete package.
Update affected imports and internal documentation, and carry the accepted
accounting-test corrections with the implementation.
**Recommendation:** Defer moving it unless adjacent report work makes the
maintenance benefit concrete. Package count alone is insufficient justification.
The accounting-test correction in topic 2 can proceed in either location.
This consolidates HTTP-specific functionality behind the adapter's
maintenance-mode boundary and distinguishes it from the actively evolving
application. Maintenance mode does not preclude a focused refactor that makes
that ownership clearer. This work belongs in the remediation roadmap, not
Deferred HTTP Adapter Work.
**Decision to record:** Retain the current boundary or move the implementation
and focused tests together. Either choice should preserve HTTP wire behavior,
terminal-only observation, detached snapshots, and request isolation, while
keeping CLI native reports distinct. No shared reporting framework is needed.
Preserve HTTP wire behavior, terminal-only observation, detached snapshots,
and request isolation. CLI reporting remains on the native upstream path;
introduce no shared reporting framework or HTTP reporting expansion.
## Review Basis