From 06f8fcb66f20f3b2f6fd258f8fcb8087f095688d Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Mon, 23 Nov 2026 02:59:05 +0000 Subject: [PATCH] Record completed observability upgrade and final verification --- docs/roadmap/implementation.md | 40 ++++++++++++++++++++++++++++++++++ docs/roadmap/upgrade-kit.md | 17 +++++++++------ 2 files changed, 50 insertions(+), 7 deletions(-) diff --git a/docs/roadmap/implementation.md b/docs/roadmap/implementation.md index 6842216d..825ba416 100644 --- a/docs/roadmap/implementation.md +++ b/docs/roadmap/implementation.md @@ -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, 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 order as one end-to-end sprint. Intermediate stages may leave compile errors or 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 +**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 actual validation results. This stage is verification and targeted correction, not a second refactoring initiative. diff --git a/docs/roadmap/upgrade-kit.md b/docs/roadmap/upgrade-kit.md index 58aa137c..eddf2215 100644 --- a/docs/roadmap/upgrade-kit.md +++ b/docs/roadmap/upgrade-kit.md @@ -7,9 +7,10 @@ execution-observation, provider-accounting, and operator-reporting capabilities. Retain the existing configuration ownership, typed pipeline, accepted-result cache, domain artifacts, and application assessment boundaries. -This document defines the selected target and its policy choices. Implementation -remains pending; recording these decisions changes no application behavior or -dependencies. [The implementation plan](implementation.md) owns staged execution. +This document defines the selected target and its policy choices. The dependency +upgrade, consumer-owned observation, native reporting integration, and verification +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 @@ -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 inherited `openrouter` provider on `limited-openrouter`, and displayed bare `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 -contextual-enrollment refactor or new accounting integration coverage. No live -provider, production-model, or billing tests were run. +Those review-time checks established baseline compatibility, not completion of +the later contextual-enrollment refactor or accounting integration coverage. +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