Move native request capture into a shared framework package

This commit is contained in:
2026-11-26 01:46:29 +00:00
parent 73023f6397
commit d0cc20c539
12 changed files with 318 additions and 215 deletions

View File

@@ -147,7 +147,7 @@ Other callers may attach their own native observer. See the
[ownership decision](../adr/0025-use-consumer-owned-execution-observation.md);
do not add overlapping totals or a durable profile inventory.
[Native capture](../../internal/framework/pipeline/native_capture.go) composes
[Native capture](../../internal/framework/capture/native.go) composes
observers/preparation callbacks rather than replacing them. Retain prepared
details cheaply during callbacks, then write at normal boundaries. Cache paths
reuse existing details; debug never triggers a second preparation or model call.

View File

@@ -31,7 +31,7 @@ streams or roots. Standard inspection/preflight paths do not become runs.
| Semantic reconciliation | [internal/framework/semanticreconcile](../../internal/framework/semanticreconcile/) | Prepared reconciliation operations, bounded candidate/window inputs, request-local proposal safety, typed fresh application, and evaluation-scoped details. |
| Embedded content | [assets](../../assets/) | Content-only native prompt/profile/schema/message files imported with filesystem contexts; no behavioral registry. |
| Accepted-result cache | [internal/framework/artifactcache](../../internal/framework/artifactcache/) | Raw accepted artifact/plan bytes under native content keys, confined atomic publication, and deployment-owned creation permissions. |
| Capture and file placement | [internal/core/fileio](../../internal/core/fileio/), [internal/core/debugbundle](../../internal/core/debugbundle/), [internal/framework/debug](../../internal/framework/debug/) | Confined writes, run capture allocation/start-time latest link, incremental evidence, one terminalization, and retained causes. |
| Capture and file placement | [internal/core/fileio](../../internal/core/fileio/), [internal/core/debugbundle](../../internal/core/debugbundle/), [internal/framework/debug](../../internal/framework/debug/), [internal/framework/capture](../../internal/framework/capture/) | Confined writes, run capture allocation/start-time latest link, native request evidence, one terminalization, and retained causes. |
| Source auxiliaries | [internal/framework/chunkmap](../../internal/framework/chunkmap/), [internal/framework/evidencecontext](../../internal/framework/evidencecontext/) | Materialized chunk-map and selected citation/source-unit artifacts with intrinsic contracts. |
| Production extensions | [internal/modules/generic](../../internal/modules/generic/), [internal/modules/seriatim](../../internal/modules/seriatim/), [internal/modules/dnd](../../internal/modules/dnd/) | Domain-neutral operations, Seriatim input, D&D typed artifact families/validators/codecs/projections, and registrar policy. |

View File

@@ -146,7 +146,7 @@ records source/reference/incoming artifacts, normalization originals/mappings/
proposals, candidates, complete findings/guidance, fallback/deterministic outcomes,
and cache selection/current artifact bytes.
[NativeCapture](../../internal/framework/pipeline/native_capture.go) composes
[NativeCapture](../../internal/framework/capture/native.go) composes
existing observers and preparation callbacks. Preparation callbacks retain
detached details cheaply; ordinary boundaries write prepared contracts, native
results, raw response text, and full readable exchanges. Events are written
@@ -185,7 +185,8 @@ owns handling.
- [Recorder](../../internal/framework/debug/recorder_test.go) and
[allocation](../../internal/core/debugbundle/bundle_test.go) cover incremental
failure retention, concurrent starts, and one terminalization.
- [Native evidence](../../internal/framework/pipeline/native_capture_test.go) and
- [Native capture](../../internal/framework/capture/native_test.go),
[native evidence integration](../../internal/framework/pipeline/native_capture_test.go), and
[configuration capture](../../internal/cli/run_capture_test.go) cover available
content, exact sensitivity, observer composition, and no duplicate preparation.
- [Output writes](../../internal/cli/run_id_test.go) and