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 # Audit Remediation Discussion
Created 2026-11-24; updated 2026-11-25. Status: topics 1–6 accepted; remaining Created 2026-11-24; updated 2026-11-25. Status: topics 1–7 accepted.
topics pending discussion. No remediation implementation is recorded yet. No remediation implementation is recorded yet.
This document gives maintainers an ordered agenda for working through the This document gives maintainers an ordered agenda for working through the
[audit catalog](catalog.md). The catalog and its source reports own the findings [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 the remediation roadmap must carry it forward and complete it as remaining
decisions and implementation dispositions are settled. Record deferred work as decisions and implementation dispositions are settled. Record deferred work as
conditional future consideration, not a delivery commitment. Keep upstream conditional future consideration, not a delivery commitment. Keep upstream
reader reuse separate from the accepted local reader fixes; add report-package reader reuse separate from the accepted local reader fixes. Report-package
placement if topic 7 selects deferral. relocation is accepted remediation work under topic 7, not a deferral.
## Discussion Order And Decision Record ## 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. | | 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. | | 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. | | 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 ## 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 ## 7. Decide Whether To Move HTTP Report Ownership
[Catalog entry 16](catalog.md#16-http-terminal-report-ownership-spans-two-packages) **Decision — accepted 2026-11-25:** Implement the relocation proposed in
offers two coherent choices: co-locate the collector/projection with the HTTP [catalog entry 16](catalog.md#16-http-terminal-report-ownership-spans-two-packages).
adapter, or retain the isolated package with its HTTP-specific purpose clear. 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 This consolidates HTTP-specific functionality behind the adapter's
maintenance benefit concrete. Package count alone is insufficient justification. maintenance-mode boundary and distinguishes it from the actively evolving
The accounting-test correction in topic 2 can proceed in either location. 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 Preserve HTTP wire behavior, terminal-only observation, detached snapshots,
and focused tests together. Either choice should preserve HTTP wire behavior, and request isolation. CLI reporting remains on the native upstream path;
terminal-only observation, detached snapshots, and request isolation, while introduce no shared reporting framework or HTTP reporting expansion.
keeping CLI native reports distinct. No shared reporting framework is needed.
## Review Basis ## Review Basis