Record completed observability upgrade and final verification

This commit is contained in:
2026-11-23 02:59:05 +00:00
parent aace4e98e9
commit 06f8fcb66f
2 changed files with 50 additions and 7 deletions

View File

@@ -7,6 +7,9 @@ roadmap owns scope and policy choices; this document owns execution order.
The inspected baseline is `1483e8e`: configuration version 6, PromptKit v0.24.0, The inspected baseline is `1483e8e`: configuration version 6, PromptKit v0.24.0,
CommandKit v0.7.0, ckconfig v0.10.0, ckprompt v0.11.0, and ConfigKit v1.4.0. CommandKit v0.7.0, ckconfig v0.10.0, ckprompt v0.11.0, and ConfigKit v1.4.0.
All eight stages are complete. Their markers record the implementation and
verification; Stage 8 records the final assembled checks.
Each numbered stage is one bounded Luna implementation prompt. Execute them in Each numbered stage is one bounded Luna implementation prompt. Execute them in
order as one end-to-end sprint. Intermediate stages may leave compile errors or order as one end-to-end sprint. Intermediate stages may leave compile errors or
temporarily outdated documentation; do not add compatibility fields, temporary temporarily outdated documentation; do not add compatibility fields, temporary
@@ -435,6 +438,43 @@ permanent documentation checker or network-dependent test is required.
## Stage 8 — Verify The End-To-End Sprint ## Stage 8 — Verify The End-To-End Sprint
**Status:** Complete. Reviewed the final tree against all seven feature
verification items and the selected scope, not just its completion markers:
| Requirement | Current evidence |
| --- | --- |
| Shared composition and examples | Existing native load/configuration/preflight coverage passes; both maintained examples pass direct offline preflight with usage enabled. ConfigKit v1.4.0 and Go 1.27.0 are retained. |
| Actual corrected/concurrent/nested work | [Assembled recovery](../../internal/cli/recovery_contract_test.go) compares actual fake calls with native debug facts and requested usage, including returned failure, selective recovery, and a full hit. No overlapping totals are added. |
| Streams, input modes, and failures | [Completion/delivery coverage](../../internal/cli/run_result_command_test.go) and [built-in help](../../internal/cli/application_test.go) cover unchanged report values, native alias/quiet behavior, cancellation, help-only startup, and diagnostic-write failure with retained publication. Executable checks also cover omission, explicit false, and last repeated selection. |
| Context, prepared reuse, and evidence | [Native capture](../../internal/framework/pipeline/native_capture_test.go), [prepared cache](../../internal/framework/pipeline/producer_cache_test.go), and [runner capture](../../internal/framework/pipeline/operation_capture_test.go) cover raw once-only contextual events, independent IDs, concurrency, preparation/hit silence, frozen misses, unknown evidence, and no implicit runner summary. |
| Real provider boundary | [Local HTTP coverage](../../internal/cli/provider_accounting_test.go) uses the production loader/client with an arbitrary explicit OpenRouter backend, verifying reasoning/cache details, positive and known-zero cost, native result/debug/diagnostic propagation, and unchanged artifacts. Missing cost remains unknown in capture coverage. |
| Native smoke interface | The same HTTP fixture checks explicit JSON, native default text/help, reasoning and nullable cache ratio, no added smoke cost, and no duplicate ordinary accounting. The selected API uses prompts for target selection, not prompt-input execution, as clarified above. Examples retain native provider inheritance and omit zero-cost defaults. |
| Architecture and documentation | [ADR-0025](../adr/0025-use-consumer-owned-execution-observation.md), the status-only ADR-0024 diff, current policy/internals, selected integration links, and operator/consumer guidance agree with implemented ownership. |
Final `GOWORK=off` checks pass: `go test ./...`, `go vet ./...`,
`go test -race ./internal/framework/pipeline ./internal/cli`, `go mod verify`,
and a fresh build in an explicitly allocated temporary directory. All seven
listed executable commands pass with the OpenRouter credential unset; three
additional offline invocation-selection checks pass with separate valid JSON
stdout and native diagnostics. No model call is required by these commands.
Removal review finds no removed input/option fields or invocation forwarding.
Only requested CLI capture allocates an application group; explicit request
capture callbacks remain. Worker contexts derive from their parent and all
started work joins before CLI finalization/reporting. Success, returned failure,
cancellation, retained publication, and snapshot-write failures are covered.
Diff review confirms prompts/models, schemas/paths, examples, configuration
version, assessment/budgets, workers/admission, cache policy, completion fields,
license texts, and published release history are unchanged.
All current local links resolve in the 81-file documentation review; seven
pre-existing historical release links remain historical. The 70 selected upstream
destinations/anchors and five selected dependency notice hashes match local
release sources. ADR-0024's accepted body and unrelated decisions are unchanged.
`git diff --check` passes. No paid inference, billing/model-quality claim,
application accounting model, permanent new gate, release, tag, push, planning
document deletion, or user-data change was needed.
**Goal:** Confirm the complete target, remove migration leftovers, and report **Goal:** Confirm the complete target, remove migration leftovers, and report
actual validation results. This stage is verification and targeted correction, actual validation results. This stage is verification and targeted correction,
not a second refactoring initiative. not a second refactoring initiative.

View File

@@ -7,9 +7,10 @@ execution-observation, provider-accounting, and operator-reporting capabilities.
Retain the existing configuration ownership, typed pipeline, accepted-result Retain the existing configuration ownership, typed pipeline, accepted-result
cache, domain artifacts, and application assessment boundaries. cache, domain artifacts, and application assessment boundaries.
This document defines the selected target and its policy choices. Implementation This document defines the selected target and its policy choices. The dependency
remains pending; recording these decisions changes no application behavior or upgrade, consumer-owned observation, native reporting integration, and verification
dependencies. [The implementation plan](implementation.md) owns staged execution. are complete. [The implementation plan](implementation.md) records each completed
stage and its evidence; canonical documentation describes the current workflow.
## Reviewed Baseline And Published Targets ## Reviewed Baseline And Published Targets
@@ -400,11 +401,13 @@ inherited by their child builds. The resulting executable passed both maintained
examples' offline preflight with `--show-tokens --format json`, showed the examples' offline preflight with `--show-tokens --format json`, showed the
inherited `openrouter` provider on `limited-openrouter`, and displayed bare inherited `openrouter` provider on `limited-openrouter`, and displayed bare
`config explain` help without a usage summary. Local roadmap links and whitespace `config explain` help without a usage summary. Local roadmap links and whitespace
checks passed. Repository dependency files and application code remain unchanged. checks passed. At that review checkpoint, repository dependency files and
application code were unchanged.
These checks establish baseline compatibility, not completion of the proposed Those review-time checks established baseline compatibility, not completion of
contextual-enrollment refactor or new accounting integration coverage. No live the later contextual-enrollment refactor or accounting integration coverage.
provider, production-model, or billing tests were run. The implementation plan now records that completed work and final verification.
No live-provider, production-model, or billing test was required or claimed.
## Scope Boundaries ## Scope Boundaries