diff --git a/docs/roadmap/application-upgrade-sequence.md b/docs/roadmap/application-upgrade-sequence.md index 038a4f5..f45e8bb 100644 --- a/docs/roadmap/application-upgrade-sequence.md +++ b/docs/roadmap/application-upgrade-sequence.md @@ -19,15 +19,15 @@ Seriatim remains at v1.5.0. The reviewed Narratio v4.0.0 integration baselines 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. -- [ ] [Feature 0025: Standalone Audita adoption](features/0025-audita-v4-adoption.md) — role `b818f60` implemented and validated; independent review pending. -- [ ] Standalone Notarius adoption. +- [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. +- [ ] Standalone Notarius adoption — next scope to plan, targeting v0.10.0. - [ ] Standalone Narratio adoption. - [ ] Compatible prompt/campaign assets and coordinated suite integration. - [ ] Collection assembly and consumer dependency/guidance updates. -The Scriptorium feature is complete. Audita implementation awaits independent -review and closeout. Later features will be scoped individually; this ordering -does not require separate features for every listed +Scriptorium and Audita adoption are complete; no implementation plan is active. +Scope the standalone Notarius update 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. diff --git a/docs/roadmap/features/0025-audita-v4-adoption.md b/docs/roadmap/features/0025-audita-v4-adoption.md index 8bf31a3..60210d7 100644 --- a/docs/roadmap/features/0025-audita-v4-adoption.md +++ b/docs/roadmap/features/0025-audita-v4-adoption.md @@ -1,6 +1,6 @@ # Feature 0025: Adopt Audita v4.3.0 in the Standalone Role -Status: in_progress +Status: done ## Summary @@ -243,12 +243,10 @@ this feature implements one coherent native interface. ## Dependencies and Follow-up Work -Feature 0024 is complete; its Go/version-identity and native-resource conventions -provide a reviewed reference. The standalone role implementation is ready for -independent review. The [implementation plan](../implementation.md) records the -handoff. +The standalone role implementation and independent review are complete. Git +history preserves the executed staged plan; no implementation plan is active. -Notarius adoption follows Audita implementation, review, and closeout. Later +Notarius adoption is next in the agreed sequence. Later Narratio/suite integration owns D&D stage/profile policy, prepared shared glossary inputs, testing overlays, credential forwarding, dependency pins, and consumer upgrade guidance. No coordinated end-to-end compatibility is claimed here. @@ -256,8 +254,8 @@ upgrade guidance. No coordinated end-to-end compatibility is claimed here. ## Implementation Evidence Standalone role commit `b818f6067789d7fdd09a8a4a54134452089811c8` implements -schema 3 and the native configuration interface. Independent review is pending; -the feature remains in progress. +schema 3 and the native configuration interface. Workspace handoff `bd938f9` +records the implementation results. From `ansible-role-audita`, these commands passed: @@ -284,6 +282,28 @@ rebuild trigger was added, and no deviation from the approved role behavior was needed. No provider, credential, operational deployment, or suite compatibility was validated; suite selections remain unchanged. +## Independent Review and Closeout + +Closed on 2026-12-03 after independent review of role `b818f60` 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 full `tests/integration` harness. Native configuration +validation, supplied resource and settings inspection, caller-owned imports, +explicit version selection, custom-executable missing-binary recovery, syntax +checking, and production-profile lint passed. All four immediate repeats reported +`changed=0` and `failed=0`. Edited documentation's local links also passed. + +The role retains its original production task flow and rebuild condition. +Nullable configuration fields preserve omission, explicit falsey values, and +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. + ## Open Questions None. The native variable interface and optional caller-input boundary are diff --git a/docs/roadmap/implementation.md b/docs/roadmap/implementation.md index f3fed8e..4ac7fe3 100644 --- a/docs/roadmap/implementation.md +++ b/docs/roadmap/implementation.md @@ -1,350 +1,11 @@ -# Implementation Plan 0025: Adopt Audita v4.3.0 +# Implementation Plan -Status: ready +No implementation plan is currently active. -Target executor: GPT-5.6-Terra +[Feature 0025](features/0025-audita-v4-adoption.md) was closed on 2026-12-03 +after implementation and independent review with no actionable findings. Its +roadmap retains completion evidence; Git history preserves the executed plan. -Feature roadmap: [Feature 0025](features/0025-audita-v4-adoption.md) - -Active plan location: `docs/roadmap/implementation.md` - -## Objective - -Deliver the approved standalone Audita v4.3.0 role update: schema 3, native -PromptKit resources, stage and glossary configuration, optional caller inputs, -Go 1.27, correct version identity, and focused offline coverage. The feature -roadmap owns scope and rationale. The role is a small, coupled interface -migration; complete its production changes, documentation, and tests together -before committing, then record the workspace handoff separately. - -## Execution Rules - -- Execute Stage 1, then Stage 2. Before each stage, confirm its owning repository, - working-tree state, and preconditions and reread its listed policy documents. -- Preserve unrelated and pre-existing changes. Commit each validated stage in - its owning repository using the specified plain English intent. No push, - release publication, consumer refresh, or operational deployment is included. -- Keep the existing declarative task flow. The binary stat is justified by the - imperative build. Rebuild only for checkout changes or a missing binary; - retain its existing `changed_when: true`. Trust the other modules to converge - their documented state without supplemental checks or bookkeeping. -- Add no production version/configuration validation, compatibility loader, - migration command, assembly facts, raw-document override, or custom module. -- Tests protect supplied configuration and observable outcomes, not defaults, - task traces, module postconditions, or framework internals. Avoid provider - calls, generation, standalone preflight, smoke tests, and HTTP listeners. -- Missing local tools are setup work. Follow the workspace tooling instructions; - do not invent a remote-controller, `ansible-doc`, API-key, full upstream test, - or release-check prerequisite. Report actual unresolved failures accurately - rather than weakening the approved role behavior to bypass them. - -## Starting State and Preconditions - -- The feature roadmap and this implementation plan are approved. Planning is - complete; no implementation stage has begun. -- `ansible-role-audita` starts at - `c3dd59f5ac9b942306ffe540ae9e71d493998137` on `main`, selecting Audita - v2.0.1, configuration schema 2, and Go `1.26/stable`. Confirm the current tree - and preserve any later unrelated work. -- Public Audita v4.3.0 resolves to - `6f97f31ccb1436c9b1e144182f6ad0b1fd9524be`. The authoritative application - checkout is `../audita`; use that tag's contracts, not later branch changes. -- Scriptorium Feature 0024 is complete. Its role commit `e936d52` is a read-only - reference for native resource rendering, version injection, and offline tests. -- The existing local test host is Ubuntu 26.04 and is the approved proxy. The - harness uses sudo and manages `/usr/local/src/audita` and - `/usr/local/bin/audita`; configuration fixtures live in a temporary directory. - Local test convergence is authorized by the approved implementation plan and - is distinct from deployment to an operational controller or pipeline host. -- The workspace `.venv` provides Ansible tools. If missing, use `README.md`'s - Development Tooling instructions and `requirements-dev.txt`, without an - unrelated tooling upgrade or system-Python package installation. -- `/snap/bin/go` is Go 1.27.4 at planning time. The role must itself select - `1.27/stable` when managing dependencies. Build with `audita_go_binary`, not - the first `go` on PATH, and retain `GOTOOLCHAIN=local`. -- Reuse `collections/requirements.yml`, currently `community.general` 13.3.0, - and the harness's temporary collection path. No other dependency pin changes - are needed. - -## Repository Scope - -- `ansible-role-audita`: defaults, argument spec, template/build, README, and - repository-local tests. -- Workspace: implementation evidence and Feature 0025 tracking. -- `../audita`, selected framework sources, and the completed Scriptorium role - are read-only references. Follow upstream agent reading guides when inspecting - those sources; no upstream edits are part of this plan. -- Other roles, suite, collection, consumer, and asset repositories remain - unchanged. Do not run their integration suites or advance their pins; they - still select the older compatible application set. - -## Stage 1: Deliver the Native Audita Role and Offline Coverage - -**Complete:** role implementation and required offline validation passed. - -### Objective - -Leave a coherent standalone role that installs v4.3.0 and renders native schema -3 configuration from optional, field-specific inventory inputs. - -### Required Policy Review - -Immediately before this stage, read these workspace-relative files: - -- `AGENTS.md` -- `docs/orientation.md` -- `docs/conventions.md` -- `docs/ansible.md` -- `docs/testing.md` - -Read the approved feature roadmap and its tagged configuration/migration -references. Inspect any role-local agent instructions. Upstream inspection -starts with `../audita/AGENTS.md` and its required reading guide. - -### Preconditions - -The starting-state checks above are satisfied and this implementation plan is -approved. Inspect the existing `defaults/main.yml`, `meta/argument_specs.yml`, -`templates/config.yml.j2`, `tasks/main.yml`, README, and tests before editing. -Keep the role's production interface and test migration in this one stage so a -committed revision does not retain fixtures requiring the retired schema. - -### Owning Repository - -`ansible-role-audita` - -### Required Changes - -1. Set `audita_version: v4.3.0`, `audita_config_version: 3`, and - `audita_go_snap_channel: 1.27/stable`. Preserve installation/configuration - paths, ownership/modes, dependency opt-out, and the configurable Go executable. - In the existing build command use `./cmd/audita` as the main package and: - - ```yaml - "-s -w -X go.maximumdirect.net/releasekit/internal/runtimeinfo.injectedVersion={{ audita_version }}" - ``` - - This is the linker symbol used by the selected ReleaseKit v0.10.0 builder; - Audita reads it through public `buildinfo.Version()`. Do not invoke a release - launcher or introduce receipts, a new linker-option variable, or a new build - trigger. Keep `CGO_ENABLED=0`, `GOWORK=off`, `GOTOOLCHAIN=local`, and `-trimpath`. - -2. Implement the roadmap's complete variable mapping. Add the twelve optional - fields in its native-variable table with null defaults. Use `list` with - `elements: dict` for imports, native resource lists, and stages; `dict` for - both collection mappings; `list` with `elements: str` for glossary and - protected-term selections; `path` for schema root; and the stated string/int - types for correction repair. Make `audita_llm_proposal_profile` optional with - a null default and `required: false`. Keep the configuration version's existing - integer interface with default 3. Retain supported optional variables/types, - including fractional normalization fields, without copying upstream tuning. - -3. Remove all nine retired variables listed in the feature roadmap from active - defaults/spec/template/tests/examples. Mention them only in migration guidance. - Remove the old required backend mapping and profile-directory fixture - assumptions. Do not translate old module lists, confidence thresholds, - `diagnostics.debug`, or structural-repair budgets into new policy. - -4. Update the existing single configuration template. Always emit the selected - schema marker. Emit `config.imports`, `promptkit` fields, stages, glossary - fields, and correction-repair settings at their native paths. Each optional - leaf uses `is not none`; each nested section's condition includes all its - supported descendants. In particular, `llm` may now be entirely absent, and - `diagnostics` depends only on the retained work-directory field. Serialize - supplied structures without filtering nested nulls, applying merges, or - rewriting IDs. Preserve zero, false, empty strings/lists/mappings where native - inputs support them. With optional settings null, render only `version: 3`. - -5. Rewrite README defaults, examples, and migration guidance for this interface. - Explain valid minimal configuration versus model-processing readiness and - the v2-specific required-input decision superseded by the new role. Show native - definitions or a caller-owned import, ordinary inventory list/map composition, - per-stage selections, and overlays versus LLM profiles. Explain structural - repair versus semantic correction repair versus transient retries. Link the - schema 3, v4.1, and v4.3 migration guides. Distinguish inline Audita glossary - collections from explicit runtime shared glossary files; do not add a role - variable for a CLI-only glossary path or a YAML debug setting. Provider values, - secrets, arbitrary imported assets, and runtime invocations remain caller-owned. - -6. Migrate the existing harness and verifier in place. Retain the local inventory, - temporary configuration paths, collection installation, and custom-Go recovery. - Replace `config print-effective`, `--view` projections, and old profile files - with native `config show` and `promptkit show` inspection. Common harness - arguments should identify paths/ownership and explicitly select configuration - version 3, without supplying an unconditional provider/profile to every case. - Use four focused role cases, each followed immediately by identical convergence: - - - **Minimal configuration:** explicitly supply null for the optional - application fields and require the managed document to parse as - `{"version": 3}`. Run native offline configuration validation. This proves - supplied null omission, not the current default document or profile catalog. - - **Representative native settings:** supply synthetic backends and profiles - through the new resource-list variables. Use caller IDs such as - `fixture-backend`, `fixture-proposal`, `fixture-validation`, and - `fixture-repair`, with a localhost endpoint and synthetic models, no secret - reference, a positive concurrency limit, queue capacity zero, and a nested - false provider parameter. Include a distinct synthetic prompt (not an - Audita bundled prompt replacement), a small namespaced collection, and a - source-relative schema root `schemas` created beside the temporary main - file. Inspect supplied resources offline; no schema generation or model - call is needed. - - Also supply named inline glossary collections, root selections, and ordered - stage records with explicit per-stage settings. Compose at least one list - and one mapping from caller variables using ordinary Jinja expressions. - Two `grammar` records with distinct IDs can demonstrate preserved order - without invoking a model. Include a stage-local empty glossary selection - and nested null validation-profile override; check their authored deployment, - without testing ConfigKit's complete inheritance/fallback implementation. - Exercise the new correction-repair profile/count, retry zero, fractional - normalization, an empty context description, and `reporting.enabled: false`. - Retain omission checks for selected explicitly null optional fields. - - **Caller-owned import and empty selections:** supply a required import of a - small temporary `fragments/context.yml` with an explicit fixture description. - Supply `audita_pipeline_stages: []`, `audita_glossaries: []`, - `audita_protected_terms: []`, and `audita_glossary_collections: {}`; root - profiles remain unset. Verify literal empty containers and use native - path-selected inspection to observe the imported description and empty - stage list. This proves the role's import/selection boundary, not glossary - domain extraction or online processing. Do not add a preflight gate. - - **Missing binary and caller executable:** retain the existing Go wrapper - and deletion of the test binary, then apply with dependency management - disabled and `audita_version: v4.3.0` explicitly selected. Require wrapper - use and `audita version` output `audita v4.3.0`. Repeat with the same inputs. - Do not assert build arguments, task names, or the default version. - - Use native commands with flags after the complete command path, for example: - - ```sh - /usr/local/bin/audita config validate --config "$config_path" - /usr/local/bin/audita config show --config "$config_path" --path /pipeline/stages --format json - /usr/local/bin/audita promptkit show profile fixture-proposal --config "$config_path" --format json - /usr/local/bin/audita promptkit show prompt fixture-note --config "$config_path" --format json - ``` - - Native path-selected config show returns the selected value, without the old - profile-summary wrapper. Assert supplied scalar/list/mapping outcomes and - meaningful template omissions, not incidental whole inspection reports or - derived transport defaults. The representative prompt/resources must be - self-contained; inspecting a synthetic prompt does not prove an Audita - correction prompt's output contract, which remains an upstream responsibility. - -### Validation - -From `ansible-role-audita`, run: - -```sh -bash -n tests/integration -git diff --check -tests/integration -``` - -The harness installs the pinned collection, runs syntax checking and -production-profile lint on the changed role/tests, validates native documents, -inspects supplied configuration/resources, checks explicit version identity and -custom-executable recovery, and requires four clean immediate repeats. If lint -tries to reinstall unrelated dependencies, use `--offline` after the pinned -dependencies are installed, as in the Scriptorium harness; retain real lint checks. - -Use workspace README instructions if tools are missing. The local sudo access -and Snap provisioning used by the existing harness are sufficient; no controller -deployment, provider, API key, upstream Go test suite, or release check is needed. -Do not add live tests or weaken the platform guard as a substitute for setup. - -### Completion Criteria - -The role's public defaults/spec/template/README agree. The minimal, supplied -native, imported/empty, and recovery configurations work through the installed -application's offline interface; each identical repeat reports `changed=0` and -no failures. Record actual commands/results and any fixture adjustments. The -production task flow and rebuild triggers remain unchanged. No unrelated -repository or suite dependency selection is modified. - -### Commit - -Commit intent: `Update Audita to its native version 4 configuration`. - -## Stage 2: Record the Implementation Handoff - -**Complete:** implementation evidence and pending review recorded. - -### Objective - -Record the validated standalone role revision and leave Feature 0025 ready for -independent review while preserving the existing suite compatibility set. - -### Required Policy Review - -Immediately before this stage, reread these workspace-relative files: - -- `AGENTS.md` -- `docs/orientation.md` -- `docs/conventions.md` -- `docs/planning.md` -- `docs/testing.md` before recording validation claims - -### Preconditions - -Stage 1 is committed and all its required checks passed. Inspect the actual -role revision and both working trees; preserve unrelated outstanding changes. - -### Owning Repository - -Workspace root. - -### Required Changes - -1. Record the role commit, successful commands, native configuration/version - outcomes, immediate clean-repeat results, limitations, and any deviations in - the Feature 0025 roadmap. State that independent review is pending. -2. Update `docs/status.md`, the current upgrade-sequence entry, and concise plan - progress notes. Use `in_progress`, not `done`; do not begin Notarius adoption - before Audita review and closeout. Keep the executed plan available for review. -3. Record any local tooling/test-host changes accurately. Do not claim suite - compatibility, real credentials, or live model quality from offline role - validation. Do not edit remediation findings speculatively or publish pins. - -### Validation - -From the workspace root, run: - -```sh -git diff --check -git -C ansible-role-audita status --short -scripts/status -``` - -Check edited Markdown's local links. Compare final implementation and evidence -against each feature acceptance criterion. Reuse Stage 1's passed checks for -unchanged content; rerun only checks affected by later changes. Confirm no -out-of-scope tree or dependency selection changed. Existing ahead-of-origin -commits are not uncommitted work or a validation failure. - -### Completion Criteria - -The handoff identifies the tested role revision and review evidence accurately. -After the handoff commit, the role/workspace contain no uncommitted feature work; -report unrelated work separately. Review remains pending and no operational -deployment or publication is claimed. - -### Commit - -Commit intent: `Record the Audita update for review`. - -## Final Validation and Handoff - -Report both stage commit identifiers, commands/results, deviations, outstanding -failures, and any added complexity with its required behavior. Identify shared -test-host changes. Do not mark Feature 0025 done or retire this plan before -independent review. Notarius is next in the agreed application sequence after -Audita's review and closeout; coordinated suite/asset/consumer work remains later. - -## Progress Notes - -Role `b818f6067789d7fdd09a8a4a54134452089811c8` passed required offline -checks. Workspace handoff records the results; independent review is pending. - -## Open Questions - -None. The native mapping, optional caller boundary, build identity, toolchain, -offline test scope, and repository ownership are settled by the approved roadmap. +Standalone Notarius v0.10.0 adoption is next in the +[agreed upgrade sequence](application-upgrade-sequence.md). Agree on its feature +roadmap before preparing a new staged implementation plan. diff --git a/docs/status.md b/docs/status.md index 8ab40b9..96ed8e5 100644 --- a/docs/status.md +++ b/docs/status.md @@ -4,14 +4,15 @@ Last updated: 2026-12-03 Current milestone: Operational D&D pipeline deployment -Current focus: Feature 0025's standalone Audita v4.3.0 role is implemented -at `b818f60` and awaits independent review. Feature 0024 is complete after -independent review with no findings; the Scriptorium role is recorded at `e936d52`. +Current focus: Feature 0025 is complete after independent review with no findings; +the Audita role is recorded at `b818f60`. Feature 0024 remains complete at +Scriptorium role `e936d52`. No implementation plan is active. Standalone Notarius +v0.10.0 adoption is next to scope. The agreed sequence is Scriptorium → Audita → Notarius → Narratio → coordinated assets/suite integration → collection and consumer updates. Existing suite pins remain unchanged. See the [upgrade sequence](roadmap/application-upgrade-sequence.md) and -[current feature](roadmap/features/0025-audita-v4-adoption.md). +[completion evidence](roadmap/features/0025-audita-v4-adoption.md). | ID | Deliverable | Owner | State | Evidence or next step | | --- | --- | --- | --- | --- | @@ -49,7 +50,7 @@ Scriptorium → Audita → Notarius → Narratio → coordinated assets/suite in | A0001 | Audit completed standalone-role test suites | workspace and standalone roles | done | Findings recorded in `docs/roadmap/test-suite-audit-findings.md` | | 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 | in_progress | Role `b818f60` validated; [evidence](roadmap/features/0025-audita-v4-adoption.md); independent review pending; 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 | | 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