diff --git a/docs/roadmap/application-upgrade-sequence.md b/docs/roadmap/application-upgrade-sequence.md index d81e3b2..2304eb2 100644 --- a/docs/roadmap/application-upgrade-sequence.md +++ b/docs/roadmap/application-upgrade-sequence.md @@ -19,14 +19,14 @@ 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. -- [ ] Standalone Audita adoption — next recommended scope, targeting v4.3.0. +- [ ] [Feature 0025: Standalone Audita adoption](features/0025-audita-v4-adoption.md) — roadmap and staged implementation plan approved; ready for the v4.3.0 sprint. - [ ] Standalone Notarius adoption. - [ ] Standalone Narratio adoption. - [ ] Compatible prompt/campaign assets and coordinated suite integration. - [ ] Collection assembly and consumer dependency/guidance updates. -The Scriptorium feature is complete and no implementation plan is active. -Select and scope the Audita feature next. Later features will be scoped +The Scriptorium feature is complete. The Audita roadmap and implementation plan +are approved and ready for execution. 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 new file mode 100644 index 0000000..76cceb8 --- /dev/null +++ b/docs/roadmap/features/0025-audita-v4-adoption.md @@ -0,0 +1,267 @@ +# Feature 0025: Adopt Audita v4.3.0 in the Standalone Role + +Status: ready + +## Summary + +Update the standalone Audita role from v2.0.1 to v4.3.0, managing native +configuration schema 3 and shared PromptKit resources through the ordinary +inventory interface. This is the next feature in the agreed +[application upgrade sequence](../application-upgrade-sequence.md), after +completed Scriptorium adoption. Suite integration remains separate work. + +## Problem or Opportunity + +The current role renders schema 2 with application-owned backends, external +profile directories, module lists, confidence thresholds, and structural-repair +settings that the new release no longer accepts. Its build command references +the old module path and application-private version symbol, and selects Go 1.26. +A version-only update would leave both build and configuration incompatible. + +Audita v4.3.0 uses schema 3, ordered pipeline stage records, native PromptKit +profiles/backends/prompts, named glossary collections, and distinct semantic +correction-repair controls. Native configuration inspection can validate a +minimal document without a provider or selected processing profile. The generic +role should expose those choices while leaving application defaults upstream. + +## Scope + +- Adopt v4.3.0, schema 3, Go 1.27, and native source-build version identity. +- Replace retired configuration variables with native field-specific settings, + preserving still-supported controls and inventory composition. +- Support native imports, PromptKit resources, stage records, glossary + definitions/selections, and semantic correction repair. +- Document the breaking interface and caller responsibilities; migrate the + existing offline behavioral suite and record the reviewed role revision. + +## Non-goals + +- Changing pipeline, collection, consumer, other application roles, or their + application/dependency selections; migrating campaign or prompt assets. +- Selecting D&D endpoints, models, credential names, processing stages, retry + budgets, report policy, or production/testing overlays in the generic role. +- Updating upstream applications, deploying to an operational host, live model + calls, provider readiness checks, or new release publication. +- Automatic legacy conversion, aliases, dual-schema rendering, role-owned + secret loading, service management, or production configuration validation. +- Deploying arbitrary companion/overlay/glossary files, managing CLI invocation + inputs, or implementing Audita's validators and native composition rules. + +## Target End State + +### Installation and schema + +`audita_version` defaults to `v4.3.0`, `audita_go_snap_channel` to `1.27/stable`, +and `audita_config_version` to `3`. Retain the existing installation paths, +repository URL, configurable Go executable, dependency-management switch, and +configuration owner/group/mode interface. Dependency opt-out requires a caller- +provided compatible toolchain; the application minimum is Go 1.27.0, distinct +from its maintainer's selected 1.27.4 release toolchain. + +Build `./cmd/audita` from the selected checkout rather than the obsolete +unversioned package path. This respects Audita's `/v4` module declaration. +Embed the selected version through the ReleaseKit v0.10.0 version-injection +contract, as in the reviewed Scriptorium role. Keep the existing build +environment, output metadata, and rebuild trigger: checkout changed or binary +absent. No release launcher or new production task is needed. + +The role deliberately identifies its managed configuration format with +`version: 3`; this is a schema marker, not duplicated upstream tuning. Other +application settings are optional and null by default. A no-input configuration +invocation renders only the version marker and passes offline native validation. +That does not imply a ready-to-run model processing pipeline: callers select +profiles and any required glossary entries for the stages they intend to run. + +### Native public variables + +Add these optional variables, each defaulting to null: + +| Variable | Type | Rendered field | +| --- | --- | --- | +| `audita_config_imports` | list of dictionaries | `config.imports` | +| `audita_promptkit_backends` | list of dictionaries | `promptkit.backends` | +| `audita_promptkit_profiles` | list of dictionaries | `promptkit.profiles` | +| `audita_promptkit_prompts` | list of dictionaries | `promptkit.prompts` | +| `audita_promptkit_collections` | dictionary | `promptkit.collections` | +| `audita_promptkit_schema_root` | path | `promptkit.schema_root` | +| `audita_pipeline_stages` | list of dictionaries | `pipeline.stages` | +| `audita_glossary_collections` | dictionary | `glossary_collections` | +| `audita_glossaries` | list of strings | `glossaries` | +| `audita_protected_terms` | list of strings | `protected_terms` | +| `audita_llm_correction_repair_profile` | string | `llm.correction_repair_profile` | +| `audita_llm_correction_repair_attempts` | integer | `llm.correction_repair_attempts` | + +`audita_llm_proposal_profile` also becomes optional with a null default. Retain +`audita_llm_validation_profile`, transient retries, operation timeout, validation +token budget, output schema, chunking, numeric normalization settings, context, +reporting settings, and diagnostics work directory under their existing names. +Their optional defaults remain null. The `llm` parent is omitted when all its +descendant variables are null, like every other optional nested section. + +This intentionally supersedes Feature 0019's v2-specific requirement for +`audita_backends` and `audita_llm_proposal_profile`. Schema 3 no longer requires +an application backend mapping or external profile files to load configuration; +stage records may select profiles individually, and an explicit empty stage +list permits normalization without model work. Do not retain an obsolete +required-variable guard or fabricate a default provider/profile to satisfy it. + +### Retired interface + +Remove the following from defaults, argument specifications, templates, tests, +and active examples; document the migration rather than translating old values: + +| Retired variable | Native replacement or intent | +| --- | --- | +| `audita_backends` | `audita_promptkit_backends`, using native ID-bearing list records | +| `audita_profiles_dir` | native profile definitions and caller-owned imports/companions | +| `audita_pipeline_modules` | `audita_pipeline_stages`, preserving explicit ordered records | +| `audita_llm_repair_attempts` | prompt-owned `output.repair_attempts` for structural repair | +| `audita_thresholds_glossary` | removed; no replacement confidence policy | +| `audita_thresholds_homophones` | removed; no replacement confidence policy | +| `audita_thresholds_spoken_word` | removed; no replacement confidence policy | +| `audita_thresholds_grammar` | removed; no replacement confidence policy | +| `audita_diagnostics_debug` | native invocation `--debug`, outside application YAML | + +Semantic correction repair is a different operation from structural output +repair and transient retry. Do not map the old repair count into the new +correction-repair count. Prompt replacement must retain a complete compatible +Audita output contract; link upstream rather than synthesizing or rewriting one. + +### Composition and ownership + +Render supplied complete native fields through one ordinary template. Use +`is not none`, serialize values appropriately, and preserve explicit supported +falsey values. Root null variables mean omission; nested nulls inside caller- +supplied stage/resource records retain native clearing semantics. + +The stage list passes through ordered records, including repeated modules, +optional IDs, selections, and per-stage `llm`, `validation`, and `context` +overrides. `[]` remains an intentional normalization-only selection. Inventory +may concatenate stage/resource lists and combine glossary/collection mappings; +the role does not add a merge engine or a parallel raw-document interface. + +Imports are supported by this release, unlike the v2 baseline. Callers own +referenced fragments and native resource files, their declaration-relative +paths, and runtime overlay selection. Native PromptKit definitions can also be +managed inline through the dedicated variables. Credentials remain environment +variable names inside native resources; values are provided outside this role. +Do not preserve obsolete application backend credential substitution semantics. + +Inline `glossary_collections` uses Audita's application vocabulary schema, +including optional collection instructions. Runtime `--glossary-file` inputs +instead use the shared glossary envelope and must be passed explicitly by the +invoking application/operator. The role does not add a YAML setting for that +CLI-only input or assume automatic glossary-file discovery. The later Narratio +and suite features own prepared shared documents and their bindings. + +### Operator guidance + +README examples use the new public variables and valid native resources. Explain +minimal configuration versus processing readiness, root versus per-stage +selection, intentional empty selections, caller composition, imports, native +profiles/overlays, and qualified collection IDs. Keep invocation/report paths +outside role configuration except where upstream exposes a native setting. + +Link the schema 3, v4.1 structural-repair, and v4.3 runtime-glossary migration +guides. Cover removal of confidence scores/thresholds and YAML debug selection, +native inspection commands, explicit shared glossary files, and the distinction +between offline inspection and provider-contacting preflight. Secret bootstrap +and provider behavior remain upstream-owned. Do not turn optional preflight, +live inference, or migration of old session state into installation gates. + +## Repository Ownership + +- `ansible-role-audita`: generic build/configuration interface, migration + documentation, and repository-local tests. +- Workspace: roadmap, later staged plan, tracking, and review evidence. +- Audita and its selected framework sources: read-only application contracts. +- Other roles, assets, pipeline, collection, and consumer repositories: unchanged. + +## Constraints and Settled Decisions + +Follow the [Ansible](../../ansible.md), [testing](../../testing.md), and +[planning](../../planning.md) policies and [MVP architecture](../mvp.md). +The [upgrade sequence](../application-upgrade-sequence.md) keeps the current +suite compatibility set until coordinated integration. Standalone adoption +does not pair the new Audita with the existing Narratio deployment. + +Public v4.3.0 resolves to `6f97f31ccb1436c9b1e144182f6ad0b1fd9524be`, verified +through the repository URL used by the role. That tag, not a moving branch, +defines this feature's application contract. Existing suite-owned D&D settings +will be migrated deliberately in their later feature, not copied into new generic +defaults. No application defaults database or broader upgrade/removal policy is +introduced here. + +## Simplest Viable Implementation + +Adjust version/schema/toolchain defaults and the existing build command. Replace +retired fields in the existing defaults, argument spec, single template, and +README with their native counterparts. Adapt the current test harness and +fixtures in place. Keep the existing Git, binary stat/build, file, and template +tasks. No state assembly, production probes, helper abstraction, migration task, +or role-private persisted bookkeeping is needed. + +## Acceptance Criteria + +- An explicitly requested v4.3.0 source build reports that version through + native `audita version`; no assertion freezes the current default version. +- The minimal schema 3 document validates offline without fabricated backend, + profile, credential, or glossary inputs. Tests of omission explicitly supply + null rather than snapshotting today's defaults. +- Representative supplied native backends/profiles, stage records with per-stage + settings, glossary definitions/selections, and correction-repair controls reach + the managed document and native offline inspection. Include meaningful zero, + false, empty-string, empty-list, and null-omission behavior where supported, + retaining useful fractional normalization coverage. +- A small caller-owned import composes successfully. Native resource inspection + resolves supplied IDs without a provider call. Reuse representative cases to + exercise the new boundaries; do not test a full ConfigKit/PromptKit matrix, + default catalog identities, or Audita's correction quality. +- Native empty stage selection and empty vocabulary selections are preserved; + the role does not substitute an upstream or D&D stage/collection choice. +- Existing missing-binary/custom-Go-executable recovery remains covered with + dependency management disabled. Every role case has an immediate identical + repeat reporting no changes. Tests do not recheck module postconditions. +- Repository syntax, production-profile lint, shell syntax, and relevant offline + integration checks pass. No remote controller, actual pipeline host, API key, + provider smoke check, or full upstream release suite is required. +- Defaults/spec/template/README agree. Migration guidance explains the retired + interface and the new optional caller boundary. Completion records the tested + standalone role revision while suite/collection/consumer selections stay put. + +## Rationale and Alternatives + +Native complete fields preserve inventory composition and upstream ownership +without reproducing the retired per-provider application schema. Nullable +optional variables permit both caller-defined root profiles and per-stage policy +without choosing an installation-specific model in the role. + +Keeping the old required inputs or silently translating module names, confidence +thresholds, and repair budgets would impose obsolete or different semantics. +Operators retaining the old configuration keep the earlier role revision; +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. This roadmap and its staged implementation plan +are approved. The plan at [implementation.md](../implementation.md) is ready +for execution. + +Notarius adoption follows Audita implementation, review, and closeout. 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. + +## Open Questions + +None. The native variable interface and optional caller-input boundary are +approved decisions. + +## Upstream References + +- [v4.3.0 release](https://gitea.maximumdirect.net/eric/audita/src/tag/v4.3.0/docs/releases/v4.3.0.md) +- [Configuration](https://gitea.maximumdirect.net/eric/audita/src/tag/v4.3.0/docs/config.md) +- [Schema 3 migration](https://gitea.maximumdirect.net/eric/audita/src/tag/v4.3.0/docs/migrations/v3.md) +- [Structural-repair migration](https://gitea.maximumdirect.net/eric/audita/src/tag/v4.3.0/docs/migrations/v4.1.md) +- [Shared glossary migration](https://gitea.maximumdirect.net/eric/audita/src/tag/v4.3.0/docs/migrations/v4.3.md) diff --git a/docs/roadmap/implementation.md b/docs/roadmap/implementation.md index 48b0766..2693626 100644 --- a/docs/roadmap/implementation.md +++ b/docs/roadmap/implementation.md @@ -1,12 +1,346 @@ -# Implementation Plan +# Implementation Plan 0025: Adopt Audita v4.3.0 -No implementation plan is currently active. +Status: ready -[Feature 0024](features/0024-scriptorium-v0-16-adoption.md) was closed on -2026-12-02 after implementation and independent review with no actionable -findings. Its roadmap retains the completion evidence; Git history preserves -the executed staged implementation plan. +Target executor: GPT-5.6-Terra -The next recommended scope is standalone Audita v4.3.0 adoption, following the -[agreed upgrade sequence](application-upgrade-sequence.md). Agree on its feature -roadmap before preparing a new staged 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 + +### 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 + +### 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 + +Feature roadmap and staged implementation plan approved. Ready for the +implementation sprint; no implementation stage has begun. + +## Open Questions + +None. The native mapping, optional caller boundary, build identity, toolchain, +offline test scope, and repository ownership are settled by the approved roadmap. diff --git a/docs/status.md b/docs/status.md index fc387bf..e989171 100644 --- a/docs/status.md +++ b/docs/status.md @@ -1,17 +1,18 @@ # Workspace Status -Last updated: 2026-12-02 +Last updated: 2026-12-03 Current milestone: Operational D&D pipeline deployment -Current focus: Feature 0024 is complete after independent review with no findings. -The standalone Scriptorium v0.16.0 role is recorded at `e936d52`; no implementation -plan is active. Standalone Audita v4.3.0 adoption is the next recommended scope. +Current focus: Feature 0025's standalone Audita v4.3.0 roadmap and staged plan +are approved and ready for the implementation sprint. Feature 0024 is +complete after independent review with no findings; the Scriptorium role is +recorded at `e936d52`. 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 -[completion evidence](roadmap/features/0024-scriptorium-v0-16-adoption.md). +[current feature](roadmap/features/0025-audita-v4-adoption.md). | ID | Deliverable | Owner | State | Evidence or next step | | --- | --- | --- | --- | --- | @@ -49,6 +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 | ready | [Feature roadmap](roadmap/features/0025-audita-v4-adoption.md) and [staged implementation plan](roadmap/implementation.md) approved; ready for implementation; 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