2026-12-03 13:11:11 +00:00
|
|
|
# Feature 0025: Adopt Audita v4.3.0 in the Standalone Role
|
|
|
|
|
|
2026-12-03 14:33:45 +00:00
|
|
|
Status: done
|
2026-12-03 13:11:11 +00:00
|
|
|
|
|
|
|
|
## 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
|
|
|
|
|
|
2026-12-03 14:33:45 +00:00
|
|
|
The standalone role implementation and independent review are complete. Git
|
|
|
|
|
history preserves the executed staged plan; no implementation plan is active.
|
2026-12-03 13:11:11 +00:00
|
|
|
|
2026-12-03 14:33:45 +00:00
|
|
|
Notarius adoption is next in the agreed sequence. Later
|
2026-12-03 13:11:11 +00:00
|
|
|
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.
|
|
|
|
|
|
2026-12-03 13:19:50 +00:00
|
|
|
## Implementation Evidence
|
|
|
|
|
|
|
|
|
|
Standalone role commit `b818f6067789d7fdd09a8a4a54134452089811c8` implements
|
2026-12-03 14:33:45 +00:00
|
|
|
schema 3 and the native configuration interface. Workspace handoff `bd938f9`
|
|
|
|
|
records the implementation results.
|
2026-12-03 13:19:50 +00:00
|
|
|
|
|
|
|
|
From `ansible-role-audita`, these commands passed:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
bash -n tests/integration
|
|
|
|
|
git diff --check
|
|
|
|
|
tests/integration
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
The harness installed the pinned collection, passed syntax checking and
|
|
|
|
|
production-profile lint in offline mode, validated minimal and representative
|
|
|
|
|
configuration, and inspected supplied profiles, prompt, stages, glossaries, and
|
|
|
|
|
caller-owned import offline. It checked explicit null omission, nested null,
|
|
|
|
|
empty selections, false, zero, and fractional values. The recovery case used a
|
|
|
|
|
caller-supplied Go wrapper with dependency management disabled and explicitly
|
|
|
|
|
selected v4.3.0; `audita version` reported `audita v4.3.0`. Each of the four
|
|
|
|
|
identical repeat convergences reported `changed=0` and `failed=0`.
|
|
|
|
|
|
|
|
|
|
The test host already had Go 1.27.4 on `1.27/stable`; its Snap selection was
|
|
|
|
|
unchanged. Local convergence updated `/usr/local/src/audita` and
|
|
|
|
|
`/usr/local/bin/audita`, and temporary configuration fixtures were removed.
|
|
|
|
|
The test fixture used a source-relative schema root. No production task or
|
|
|
|
|
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.
|
|
|
|
|
|
2026-12-03 14:33:45 +00:00
|
|
|
## 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
|
2026-12-03 16:05:52 +00:00
|
|
|
were left local at closeout. The role was subsequently pushed during
|
|
|
|
|
[Feature 0026 closeout](0026-notarius-v0-10-adoption.md#publication).
|
2026-12-03 14:33:45 +00:00
|
|
|
|
2026-12-03 13:11:11 +00:00
|
|
|
## 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)
|