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