|
|
|
|
@@ -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.
|
|
|
|
|
|