Document the library migration and update examples

This commit is contained in:
2026-11-23 04:47:06 +00:00
parent fa5d834f13
commit 752ec676a6
18 changed files with 217 additions and 75 deletions

View File

@@ -1,7 +1,8 @@
# Audita Configuration
Audita uses version 3 application configuration. See the [migration guide](migrations/v3.md)
and [examples](../examples/) for complete projects. Command syntax is owned by
and [v4.1 migration guide](migrations/v4.1.md), and [examples](../examples/)
for complete projects. Command syntax is owned by
[the CLI reference](cli.md).
## Loading and composition
@@ -18,16 +19,33 @@ base for an optional `overlays/<name>.yml`, optional `glossary.yml`, and recursi
`glossary/` YAML files. Without a main source, automatic companion files are not
loaded from the working directory. ConfigKit composes sources, resolves native
inheritance, applies explicit overrides, records derived defaults, and validates
the result. Its [configuration reference](https://forge.maximumdirect.net/base-layer/configkit/src/tag/v1.2.0/docs/config.md)
the result. Its [configuration reference](https://forge.maximumdirect.net/base-layer/configkit/src/tag/v1.4.0/docs/config.md)
owns native composition and provenance semantics.
Before shared configuration loading, Audita runs configured ConfigKit secrets
bootstrap against the selected main source. This can populate the process
environment for processing and native inspection; help and version do not load
configuration. A bootstrap failure stops the acquisition before transcript and
output preparation. See the [ConfigKit secrets documentation](https://forge.maximumdirect.net/base-layer/configkit/src/tag/v1.4.0/docs/config.md)
for directory and overwrite controls.
### PromptKit profiles and operator prompts
PromptKit loads its default catalog and Audita's embedded prompts, followed by
optional `prompts.yml` and recursive `prompts/` YAML files beside the application
main. Native imports, resource collections, inheritance, and replacement apply.
The combined result contains native PromptKit settings under `/promptkit`.
Audita combines the bundled OpenRouter catalog and its embedded prompts and
schemas with optional wrapperless `prompts.yml` and recursive `prompts/` YAML
files beside the application main. These companions are mounted at `/promptkit`;
a main or overlay may instead contain a `promptkit` section. Native imports,
resource collections, inheritance, and replacement apply.
Profiles, backends, models, credentials, admission, and provider parameters belong
to PromptKit configuration; see its [format reference](https://forge.maximumdirect.net/base-layer/promptkit/src/tag/v0.23.0/docs/formats.md).
to PromptKit configuration; see its [format reference](https://forge.maximumdirect.net/base-layer/promptkit/src/tag/v0.25.0/docs/formats.md).
The selected prompt owns its output contract and structural-repair budget;
operators replacing a prompt must supply a contract compatible with Audita's
expected response. See the [migration guide](migrations/v4.1.md).
Declare `provider: openrouter` for custom OpenRouter backends or `provider: vllm`
for vLLM; an omitted provider remains generic. Neither an endpoint nor a backend
ID implies provider conventions or zero cost. PromptKit owns those settings and
their [usage and cost semantics](https://forge.maximumdirect.net/base-layer/promptkit/src/tag/v0.25.0/docs/integrations/openai-compatible-chat.md).
The engine captures its sources for an invocation. Edit files and run a new
invocation to pick up changes. Inspection does not require model credentials.
@@ -74,7 +92,6 @@ specified by the [editorial acceptance boundary](policy/architecture.md#correcti
| `llm.correction_repair_profile` | effective proposal profile | Profile for correction repair; null clears an inherited selection before fallback. |
| `llm.correction_repair_attempts` | `1` | Nonnegative repair attempts per correction; zero disables correction repair. |
| `llm.transient_retries` | `2` | Additional transient attempts per generation. |
| `llm.repair_attempts` | `2` | Structural repairs, from zero through three. |
| `llm.operation_timeout` | `15m` | Positive duration per logical operation. |
| `validation.max_prompt_tokens` | `2048` | Positive validation batching budget. |
| `context.description` | empty | Prompt context; at most 500 bytes after trimming. |