From 89f498aa6b0908a3dafa28a557322bbad94644d0 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Thu, 3 Dec 2026 16:05:52 +0000 Subject: [PATCH] Close out the Notarius upgrade --- docs/roadmap/application-upgrade-sequence.md | 10 +- .../0024-scriptorium-v0-16-adoption.md | 3 +- .../features/0025-audita-v4-adoption.md | 3 +- .../features/0026-notarius-v0-10-adoption.md | 43 ++- docs/roadmap/implementation.md | 254 +----------------- docs/status.md | 12 +- 6 files changed, 62 insertions(+), 263 deletions(-) diff --git a/docs/roadmap/application-upgrade-sequence.md b/docs/roadmap/application-upgrade-sequence.md index cdb62c7..71942c4 100644 --- a/docs/roadmap/application-upgrade-sequence.md +++ b/docs/roadmap/application-upgrade-sequence.md @@ -20,15 +20,15 @@ match the other three targets. - [x] [Feature 0024: Standalone Scriptorium adoption](features/0024-scriptorium-v0-16-adoption.md) — closed after independent review with no findings; role `e936d52` passed the full offline suite and all clean repeats. - [x] [Feature 0025: Standalone Audita adoption](features/0025-audita-v4-adoption.md) — closed after independent review with no findings; role `b818f60` passed the full offline suite and all clean repeats. -- [ ] [Feature 0026: Standalone Notarius adoption](features/0026-notarius-v0-10-adoption.md) — role `85cd3a3` implemented and validated; independent review pending. +- [x] [Feature 0026: Standalone Notarius adoption](features/0026-notarius-v0-10-adoption.md) — closed after independent review with no findings; role `85cd3a3` passed the full offline suite and all clean repeats. - [ ] Standalone Narratio adoption. - [ ] Compatible prompt/campaign assets and coordinated suite integration. - [ ] Collection assembly and consumer dependency/guidance updates. -Scriptorium and Audita adoption are complete. Notarius implementation awaits -independent review and closeout. Later features will be scoped individually; this -ordering does not require separate features for every listed integration -deliverable. Keep one active implementation plan at +Scriptorium, Audita, and Notarius adoption are complete, and their reviewed role +commits are pushed. Standalone Narratio adoption is next. Later features will be +scoped individually; this ordering does not require separate features for every +listed integration deliverable. Keep one active implementation plan at [implementation.md](implementation.md), following roadmap approval. ### Boundaries and Migration Consequences diff --git a/docs/roadmap/features/0024-scriptorium-v0-16-adoption.md b/docs/roadmap/features/0024-scriptorium-v0-16-adoption.md index 1473073..9843e15 100644 --- a/docs/roadmap/features/0024-scriptorium-v0-16-adoption.md +++ b/docs/roadmap/features/0024-scriptorium-v0-16-adoption.md @@ -231,7 +231,8 @@ Native configuration fields preserve omission and explicit falsey values. Other role, suite, collection, consumer, and asset selections remain unchanged. The review exercised only the authorized local test host; it did not establish live provider behavior or coordinated suite compatibility. Role and workspace -commits remain local pending separately authorized publication. +commits were left local at closeout. The role was subsequently pushed during +[Feature 0026 closeout](0026-notarius-v0-10-adoption.md#publication). ## Upstream References diff --git a/docs/roadmap/features/0025-audita-v4-adoption.md b/docs/roadmap/features/0025-audita-v4-adoption.md index 60210d7..80c5eed 100644 --- a/docs/roadmap/features/0025-audita-v4-adoption.md +++ b/docs/roadmap/features/0025-audita-v4-adoption.md @@ -302,7 +302,8 @@ nested nulls; application defaults remain upstream-owned. Suite, collection, consumer, other role, and asset selections are unchanged. Validation used only the authorized local test host; no live provider, credential, operational deployment, or coordinated suite compatibility was established. Feature commits -have not been pushed by this work. +were left local at closeout. The role was subsequently pushed during +[Feature 0026 closeout](0026-notarius-v0-10-adoption.md#publication). ## Open Questions diff --git a/docs/roadmap/features/0026-notarius-v0-10-adoption.md b/docs/roadmap/features/0026-notarius-v0-10-adoption.md index 9969461..9339d79 100644 --- a/docs/roadmap/features/0026-notarius-v0-10-adoption.md +++ b/docs/roadmap/features/0026-notarius-v0-10-adoption.md @@ -1,6 +1,6 @@ # Feature 0026: Adopt Notarius v0.10.0 in the Standalone Role -Status: in_progress +Status: done ## Summary @@ -230,9 +230,9 @@ fingerprints, migration machinery, or provider checks are needed. ## Dependencies and Follow-up Work Scriptorium and Audita adoption are complete and provide reviewed native-field -and build-identity examples. The standalone role implementation awaits -independent review. The [implementation plan](../implementation.md) records -the handoff. +and build-identity examples. The standalone Notarius implementation and +independent review are complete. Git history preserves the executed staged plan; +no implementation plan is active. Narratio adoption follows Notarius implementation, independent review, and closeout. Later suite integration owns the D&D pipeline/tuning migration, @@ -243,8 +243,8 @@ and consumer handoff. No end-to-end D&D compatibility is claimed by this feature ## Implementation Evidence Standalone role commit `85cd3a397f63342df8309aa4f36d9900ff610e41` implements -the native schema 6 interface and version identity. Independent review is pending; -the feature remains in progress. +the native schema 6 interface and version identity. Workspace handoff `1d9e315` +records the implementation results. From `ansible-role-notarius`, these commands passed: @@ -271,6 +271,37 @@ on `1.27/stable`, so its Snap selection did not change. No production task or rebuild trigger was added. No provider, reference-file contents, operational deployment or suite compatibility was validated; suite selections remain intact. +## Independent Review and Closeout + +Closed on 2026-12-03 after independent review of role `85cd3a3` against the +approved roadmap and executed plan. No actionable code-quality issues, +implementation gaps, or unnecessarily strengthened requirements were found. +`docs/roadmap/remediation.md` was left unchanged. + +The reviewer independently reran `bash -n tests/integration`, changed-commit +whitespace checks, and the complete `tests/integration` harness. Syntax checking, +production-profile lint, native configuration and pipeline validation, supplied +resource/settings inspection, caller-owned imports, explicit version selection, +and custom-executable missing-binary recovery passed. All four immediate repeats +reported `changed=0` and `failed=0`. Edited documentation's local links passed. + +The role retains its minimal production task flow and original build condition. +Nullable native fields preserve omission, supported falsey values, and nested +nulls. No live provider, reference-file contents, operational deployment, or +coordinated suite compatibility was validated. Suite and asset selections remain +unchanged; Narratio adoption is next in the agreed upgrade sequence. + +### Publication + +The reviewed Notarius role `85cd3a3`, Audita role `b818f60`, and Scriptorium role +`e936d52` were pushed to their upstream `main` branches during this closeout. +The deployment consumer's outstanding history was reconciled with its newer +upstream work and pushed as merge `2a30824`. The resolved tree matches the newer +consumer tree: its existing dependency pins, forge URLs, collection installation +fix, and removal of the obsolete deployment guide were preserved. These pushes +publish existing commits without advancing the suite compatibility set or +creating a new tagged release. + ## Open Questions None. The variable mapping and runtime-state boundary are approved decisions. diff --git a/docs/roadmap/implementation.md b/docs/roadmap/implementation.md index c15dcd7..a968545 100644 --- a/docs/roadmap/implementation.md +++ b/docs/roadmap/implementation.md @@ -1,248 +1,12 @@ -# Implementation Plan 0026: Adopt Notarius v0.10.0 +# Implementation Plan -Status: ready +No implementation plan is active. -Target executor: GPT-5.6-Terra +[Feature 0026: Standalone Notarius v0.10.0 adoption](features/0026-notarius-v0-10-adoption.md) +is complete after independent review with no findings. Git history preserves +the executed staged plan. -Feature roadmap: [Feature 0026](features/0026-notarius-v0-10-adoption.md) - -Active plan location: `docs/roadmap/implementation.md` - -## Objective - -Deliver the approved standalone Notarius v0.10.0 role interface, schema 6, -source-build identity, documentation, and offline role coverage. The feature -roadmap owns the scope and acceptance criteria. Change the role's coupled -configuration interface and its tests together, then record the workspace handoff. - -## Execution Rules - -- This staged plan is approved for implementation. Execute Stage 1 followed by - Stage 2; reread each stage's listed policies immediately before it. -- Confirm repository state and preserve unrelated changes. Commit each validated - stage in its owning repository, and mark its completion in this plan. Do not - push, publish, change suite pins, or deploy to an operational host. -- Keep the existing Git, binary stat/build, file and template flow. The binary - stat decides whether the imperative build is needed; rebuild only on checkout - change or missing binary. Preserve its change semantics and build environment. - Trust other modules to converge state. Add no production validation, version - probe, assembly facts, compatibility loader, state file, or custom module. -- Test supplied values and observable outcomes, not default snapshots, task - traces, trusted module postconditions, native framework internals, or cache - algorithms. No provider, preflight, extraction, credential, reference-file - read, HTTP service, or full upstream release suite is a required gate. -- Follow workspace tooling instructions for missing tools. Report an actual - unresolved prerequisite or contract conflict without weakening role behavior. - -## Starting State and Preconditions - -- The feature roadmap and this staged implementation plan are approved. -- `ansible-role-notarius` is clean on `main` at - `6aef48b7e12e3651971444b8c224d96ff1879e6c`, selecting v0.8.1, schema 5, - and Go `1.26/stable`. Recheck and preserve subsequent unrelated work. -- The read-only application source is `../notarius`; tag v0.10.0 resolves to - `752c9b44d2c0bb3bfb1e02a5d4379f7cc5b6261e`. Use that tag's contracts. -- The workspace `.venv` contains Ansible, `/snap/bin/go` is Go 1.27.4 on - `1.27/stable`, and passwordless sudo is available at planning time. If tools - are missing, follow the workspace README and pinned `requirements-dev.txt`. -- The local Ubuntu 26.04 host is the existing role test host. Its harness uses - sudo and manages `/usr/local/src/notarius`, `/usr/local/bin/notarius`, and - `/usr/local/etc/notarius/config.yml`; the existing imported fixture is - `/usr/local/etc/notarius/test-pipelines.yml`. Local testing may change these - paths and provision the Go Snap, distinct from operational deployment. -- Reuse the role's `collections/requirements.yml`, currently - `community.general` 13.3.0, and its temporary collection path. Keep other pins. - -## Repository Scope - -- `ansible-role-notarius` owns build/defaults/spec/template, README, and tests. -- The workspace owns implementation tracking and review evidence. -- `../notarius`, framework sources, and the reviewed Scriptorium/Audita roles - are read-only references. Follow upstream agent reading guides when inspecting. -- Other roles, assets, pipeline, collection, and consumer remain unchanged; do - not run their integration suites or change their compatibility selections. - -## Stage 1: Deliver the Native Notarius Role and Offline Coverage - -**Complete:** role implementation and required offline validation passed. - -### Objective - -Leave a coherent standalone role that installs v0.10.0 and renders schema 6 -from field-specific caller inputs, with documentation and offline tests migrated -in the same commit. - -### Required Policy Review - -Read `AGENTS.md`, `docs/orientation.md`, `docs/conventions.md`, -`docs/ansible.md`, and `docs/testing.md`, then the approved feature roadmap and -its tagged configuration, native migration, shared reference, and operations -references. Read `../notarius/AGENTS.md` and its applicable reading guide and -inspect role-local agent instructions before editing. - -### Preconditions - -This plan is approved; starting-state and tool checks have been confirmed. -Inspect the role's defaults, argument spec, template, tasks, README, integration -harness, `tests/converge.yml`, and `tests/prepare-import.yml` before editing. - -### Owning Repository - -`ansible-role-notarius` - -### Required Changes - -1. Set `notarius_version: v0.10.0`, `notarius_config_version: 6`, and - `notarius_go_snap_channel: 1.27/stable`. Preserve the configured repository, - paths, metadata, dependency switch and Go executable. Build `./cmd/notarius` - with `-trimpath`, `CGO_ENABLED=0`, `GOWORK=off`, and `GOTOOLCHAIN=local`. - Replace the old ldflags with: - - ```yaml - "-s -w -X go.maximumdirect.net/releasekit/internal/runtimeinfo.injectedVersion={{ notarius_version }}" - ``` - -2. Implement all eight nullable native variables from the feature roadmap, with - optional list/dict/path/int types as specified there. Retain nullable - `notarius_pipelines`, `notarius_output_directory`, and - `notarius_debug_directory`. Remove all retired variables enumerated in the - roadmap from active defaults, spec, template, fixtures, and examples; mention - them only in migration guidance. Do not translate their values. -3. Use the existing single template. Always emit the selected version; render - imports at `config.imports`, native resource fields at `promptkit`, workers - at `concurrency.workers`, and cache directory at root. Omit null leaves and - empty parents using `is not none`, serialize caller structures unchanged, - and preserve supported falsey and nested-null values. Explicitly supplied - nulls yield only `version: 6`; no application policy defaults are invented. -4. Update README defaults, inventory example, validation, and migration guide. - Cover native resources and qualified IDs, source-relative imports and whole - record replacement, overlays versus LLM profiles, workers versus backend - admission, producer turns/mode versus transport retry and structural repair, - CLI migration and durable output boundary, and the cache/reference/debug - consequences stated in the roadmap. Link tagged upstream contracts. Explain - caller ownership of assets, shared references, credentials and runtime calls. -5. Migrate the existing harness in place, retaining temporary collection setup, - local inventory, cleanup, syntax and production lint. Use native `config - validate`, `config show`, `pipeline validate`, `promptkit show`, and `version` - commands, with flags following the full command path. Immediately repeat each - identical role case and require `changed=0` and `failed=0`: - - - Explicitly set all optional application inputs to null and schema version - to 6; verify the managed document contains only the marker and validates. - - Supply synthetic backend/profile/prompt resources (including a namespaced - profile), source-relative schema root, positive workers, output/cache/debug - values, and caller-composed pipeline maps. Use a representative supported - pipeline shaped from the tagged minimal example, with native producer mode, - cache and turn controls and shared reference collection selections. Include - supported nested null/empty and falsey values; inspect deployed values and - selected resources offline, and run native pipeline validation without - provider calls, transcript bytes, reference bytes, or cache allocation. - - Exercise a caller-owned required import and empty containers in an existing - case, using native path-selected config inspection to confirm composition. - The role supplies import entries; fixture setup and cleanup own the file. - - Replace the v0.7.0 selection case with explicitly requested v0.10.0. - Retain missing-binary recovery using the caller's Go wrapper with dependency - management disabled, assert wrapper use and `notarius v0.10.0`, and repeat. - - Native inspection assertions should cover supplied values, not derived - defaults or complete reports. Use valid fixture values; workers must be - positive, output directory nonempty, and schema root source-relative. - -### Validation - -From `ansible-role-notarius` run: - -```sh -bash -n tests/integration -git diff --check -tests/integration -``` - -The harness must install the pinned collection, pass syntax and production -profile lint, run native offline validation and inspection, verify explicit -version selection and recovery, and report four clean repeats. If lint attempts -an unrelated dependency download, its offline mode may be used after dependency -installation. Do not silence real lint failures. - -### Completion Criteria - -The role's defaults, spec, template, documentation and tests agree; the selected -version and supplied configuration pass offline, with clean repeats. No new -production task or build trigger exists. Record commands, results, fixture -adjustments and test-host changes for handoff. - -### Commit - -Commit intent: `Update Notarius to its native configuration interface`. - -## Stage 2: Record the Implementation Handoff - -**Complete:** implementation evidence and pending review recorded. - -### Objective - -Record the tested role revision and leave Feature 0026 ready for independent -review while preserving the existing suite compatibility set. - -### Required Policy Review - -Reread `AGENTS.md`, `docs/orientation.md`, `docs/conventions.md`, -`docs/planning.md`, and `docs/testing.md` before recording validation claims. - -### Preconditions - -Stage 1 is committed and required checks passed. Inspect the actual role commit, -role working tree, workspace changes, and other repository status. - -### Owning Repository - -Workspace root. - -### Required Changes - -1. Record role commit, exact checks and results, supplied native configuration - and version outcomes, clean repeats, limitations, deviations, and test-host - changes in Feature 0026. State that independent review remains pending. -2. Update `docs/status.md`, the current upgrade-sequence entry, and concise plan - progress notes. Use `in_progress`, not `done`. Mark completion of this stage. - Do not begin Narratio adoption before review and closeout. -3. Preserve other repositories and dependency selections. Do not write speculative - remediation, publish, retire the plan, or claim a live deployment/provider test. - -### Validation - -From the workspace root run: - -```sh -git diff --check -git -C ansible-role-notarius status --short -scripts/status -``` - -Check edited Markdown's local links. Compare the committed role diff and recorded -evidence against every feature acceptance criterion; reuse Stage 1's successful -checks for unchanged role code. Confirm out-of-scope trees and pins are unchanged. -Existing ahead-of-origin commits are not failures. - -### Completion Criteria - -Evidence accurately identifies the role revision and pending review. After the -handoff commit, role and workspace contain no uncommitted feature work; report -unrelated changes separately. No suite deployment or credential validation is -claimed. - -### Commit - -Commit intent: `Record the Notarius update for review`. - -## Final Validation and Handoff - -Report both commits, commands and results, deviations, remaining failures, and -any complexity added beyond the planned task flow with the requirement that -justified it. Identify local test-host changes. Feature 0026 stays in progress -until independent review; Narratio follows review and closeout. - -## Progress Notes - -Role `85cd3a397f63342df8309aa4f36d9900ff610e41` passed required offline -checks. Workspace handoff records the results; independent review is pending. +The next scope in the [agreed upgrade sequence](application-upgrade-sequence.md) +is standalone Narratio v4.0.0 adoption. Agree on its feature roadmap before +preparing a new staged plan here. Suite, collection, consumer, and asset +integration remain later work. diff --git a/docs/status.md b/docs/status.md index ae13d79..331c824 100644 --- a/docs/status.md +++ b/docs/status.md @@ -4,10 +4,12 @@ Last updated: 2026-12-03 Current milestone: Operational D&D pipeline deployment -Current focus: Feature 0026's standalone Notarius v0.10.0 role is implemented -at `85cd3a3` and awaits independent review. Features 0024 and 0025 are complete -after independent review, at Scriptorium role `e936d52` and Audita role `b818f60`. -The active plan is at `docs/roadmap/implementation.md`. +Current focus: Features 0024 through 0026 are complete after independent review +with no findings: Scriptorium role `e936d52`, Audita role `b818f60`, and Notarius +role `85cd3a3`. All three role updates are pushed. The consumer's divergent +history is reconciled and pushed at `2a30824`, preserving its newer deployment +configuration. No implementation plan is active; standalone Narratio v4.0.0 +adoption is the recommended next scope. The agreed sequence is Scriptorium → Audita → Notarius → Narratio → coordinated assets/suite integration → collection and consumer updates. Existing suite pins remain unchanged. See the @@ -51,7 +53,7 @@ Scriptorium → Audita → Notarius → Narratio → coordinated assets/suite in | F0023 | Adopt Narratio v3.1.0 and forward Scriptorium credentials | Narratio role, pipeline role, collection, consumer, and workspace | done | Public Narratio role `758aed7a`, pipeline `0f841fd`, collection `002e86c`; local consumer `67cc22f`. Independent review found no actionable issues; [feature evidence](roadmap/features/0023-narratio-scriptorium-credentials.md) | | F0024 | Adopt Scriptorium v0.16.0 | Scriptorium role and workspace | done | Role `e936d52` passed independent review with no findings and a fresh full offline suite run; [completion evidence](roadmap/features/0024-scriptorium-v0-16-adoption.md); suite unchanged | | F0025 | Adopt Audita v4.3.0 | Audita role and workspace | done | Role `b818f60` passed independent review with no findings and a fresh full offline suite run; [completion evidence](roadmap/features/0025-audita-v4-adoption.md); suite unchanged | -| F0026 | Adopt Notarius v0.10.0 | Notarius role and workspace | in_progress | Role `85cd3a3` validated; [evidence](roadmap/features/0026-notarius-v0-10-adoption.md); independent review pending; suite unchanged | +| F0026 | Adopt Notarius v0.10.0 | Notarius role and workspace | done | Public role `85cd3a3` passed independent review with no findings and a fresh full offline suite run; [completion and publication evidence](roadmap/features/0026-notarius-v0-10-adoption.md); suite unchanged | | R0001 | Simplify completed standalone-role test suites | workspace and standalone roles | done | Role commits `e08c63c`, `d2d0b9d`, and `cfecf37` passed implementation and independent review | ## Updating This File