11 KiB
Implementation Plan 0026: Adopt Notarius v0.10.0
Status: ready
Target executor: GPT-5.6-Terra
Feature roadmap: Feature 0026
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-notariusis clean onmainat6aef48b7e12e3651971444b8c224d96ff1879e6c, selecting v0.8.1, schema 5, and Go1.26/stable. Recheck and preserve subsequent unrelated work.- The read-only application source is
../notarius; tag v0.10.0 resolves to752c9b44d2c0bb3bfb1e02a5d4379f7cc5b6261e. Use that tag's contracts. - The workspace
.venvcontains Ansible,/snap/bin/gois Go 1.27.4 on1.27/stable, and passwordless sudo is available at planning time. If tools are missing, follow the workspace README and pinnedrequirements-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, currentlycommunity.general13.3.0, and its temporary collection path. Keep other pins.
Repository Scope
ansible-role-notariusowns 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
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
-
Set
notarius_version: v0.10.0,notarius_config_version: 6, andnotarius_go_snap_channel: 1.27/stable. Preserve the configured repository, paths, metadata, dependency switch and Go executable. Build./cmd/notariuswith-trimpath,CGO_ENABLED=0,GOWORK=off, andGOTOOLCHAIN=local. Replace the old ldflags with:"-s -w -X go.maximumdirect.net/releasekit/internal/runtimeinfo.injectedVersion={{ notarius_version }}" -
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, andnotarius_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. -
Use the existing single template. Always emit the selected version; render imports at
config.imports, native resource fields atpromptkit, workers atconcurrency.workers, and cache directory at root. Omit null leaves and empty parents usingis not none, serialize caller structures unchanged, and preserve supported falsey and nested-null values. Explicitly supplied nulls yield onlyversion: 6; no application policy defaults are invented. -
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.
-
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, andversioncommands, with flags following the full command path. Immediately repeat each identical role case and requirechanged=0andfailed=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:
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
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
- 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.
- Update
docs/status.md, the current upgrade-sequence entry, and concise plan progress notes. Usein_progress, notdone. Mark completion of this stage. Do not begin Narratio adoption before review and closeout. - 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:
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
Roadmap and staged plan approved on 2026-12-03. Ready for implementation; no implementation stage has begun.