Plan to replace duplicated library documentation with upstream links

This commit is contained in:
2026-11-23 01:03:42 +00:00
parent a301ad1f27
commit 11f45c8812

View File

@@ -133,14 +133,8 @@ needed later; this upgrade does not need additional inspection commands.
Adopt `LoadSecretsIntoEnvironmentFromConfig` in the common configuration
acquisition path, before the shared `LoadLayered` call and before concurrent
model work. This is an agreed adoption choice for consistency with other
ConfigKit consumers. Operators opt into directory loading through the native
main-document controls:
```yaml
config:
secrets_dir: secrets
secrets_overwrite: false
```
ConfigKit consumers. Use its native main-document controls as defined in the
[upstream bootstrap contract](https://forge.maximumdirect.net/base-layer/configkit/src/tag/v1.4.0/docs/config.md#explicit-secrets-directory-bootstrap).
Pass the selected host `File` or `SearchConfig` source to the helper, then use
its returned prepared source as the layered load's main input. Reuse that
@@ -149,14 +143,10 @@ the file. Engine construction consumes the completed result without repeating
bootstrap. Missing optional discovery and configurations without `secrets_dir`
retain the native no-op behavior.
Use upstream path resolution, eligible-file handling, and overwrite semantics.
The directory is relative to the selected main file within its filesystem root.
Existing environment values, including empty ones, win by default;
`secrets_overwrite: true` explicitly enables replacement. Keep these controls
at the main document root, as required upstream; imports, companions, and
overlays do not own bootstrap policy. No additional Audita bootstrap flags or
environment precedence rules are needed. The [upstream bootstrap contract](https://forge.maximumdirect.net/base-layer/configkit/src/tag/v1.4.0/docs/config.md#explicit-secrets-directory-bootstrap)
owns the detailed file and resource limits.
Use upstream path resolution, eligible-file handling, overwrite semantics, and
partial-effect behavior. No additional Audita bootstrap flags or environment
precedence rules are needed. Link to the upstream contract for those controls
and their limits.
Retain the returned `SecretsReport` even on failure. Use native safe diagnostics
and the report's names, paths, and statuses for startup reporting, with routine
@@ -171,9 +161,8 @@ Inspection may therefore populate the process environment, while remaining
independent of provider calls and processing readiness. Independent comparison
acquisitions each prepare their selected main, and share the normal process
environment; they do not receive isolated credential environments. Document
these startup effects and the fact that bootstrap loads all eligible entries,
including names not referenced by Audita or PromptKit. Credential selection
after bootstrap continues to belong to PromptKit.
Audita's startup integration and link upstream for bootstrap behavior and
credential selection.
## PromptKit: Adapt Configuration and Schema Boundaries
@@ -231,10 +220,10 @@ own output definition. Keep transient retries and semantic correction repair
distinct, with their existing operation deadlines and partial-success behavior.
Update ordinary and coordinated request construction together.
Native schema files require an applicable source context or explicit root and
self-contained references. Document these upstream rules for external prompt
files. Do not add another schema resolver or introduce broader schema
prohibitions in Audita.
Link to the upstream schema reference for external prompt definitions and file
resolution. Audita's documentation should identify its shipped schema selection
and domain requirements. Do not add another schema resolver or introduce
broader schema prohibitions in Audita.
### Providers and execution evidence
@@ -289,6 +278,52 @@ annotated YAML evidence; machine consumers should request `--format yaml` or
usage, and smoke reports do not gain a cost field. Update affected examples and
tests without promising historical incidental formatting.
## Documentation Ownership and Consolidation
**Agreed documentation direction:** Audita identifies the ConfigKit, PromptKit,
and CommandKit libraries it imports and links to their canonical upstream
documentation. Upstream owns descriptions of its features, configuration
fields, defaults, algorithms, CLI grammar, output formats, and API behavior.
Replace local explanations of adopted library features with those links.
Keep Audita's selected integration and application-owned behavior local:
configuration discovery and companion locations chosen by Audita, input mounts,
role/profile mappings, explicit processing budgets, domain response schemas,
failure classification, transcript/report handling, and application migration
steps. A concise integration statement should explain where the adopted library
fits and link upstream for its behavior. Planning documents may identify APIs
and migration constraints needed to explain the proposed work; those details
should not grow into a parallel library reference in the published documentation.
Align the documentation during this upgrade, including existing duplication:
| Affected material | Required alignment |
| --- | --- |
| [Documentation policy](../policy/documentation.md) | Record this application-specific ownership clarification for adopted libraries, retaining the general allocation of Audita's documentation topics. |
| [Configuration](../config.md) | Retain Audita's schema, source selection, companion mounts, role settings, and overrides. Link to ConfigKit for composition and secrets controls, and to PromptKit for its settings and resource formats; avoid reproducing their field/default references. |
| [CLI](../cli.md) | Identify the installed CommandKit integrations and link to the upstream command reference. Describe Audita's `process` command and application-specific stream/exit mapping locally. Introduce native usage reporting by availability and an upstream link, without a local reference for its flags, report layout, or formatting rules. |
| [LLM integration](../integrations/openai-compatible-llm.md) | Reduce the document to Audita's adapter boundary, role/schema/budget choices, and mapping of model failures into processing outcomes. Link upstream for transport, provider conventions, credentials, retry/repair mechanics, admission, and token/cost semantics. |
| [Operations](../operations.md) and [subprocess integration](../integrations/subprocess.md) | Describe when Audita invokes secrets bootstrap and how startup failure affects processing/output preparation. Link to ConfigKit for bootstrap behavior and to CommandKit for native diagnostic reporting; retain Audita-owned output lifecycle and subprocess handling. |
| [LLM runtime](../internal/llm-runtime.md), [prompt registry](../internal/prompts.md), [diagnostics internals](../internal/diagnostics-reporting.md), and [CLI/configuration recipes](../internal/cli-config.md) | Retain Audita's component wiring, call sites, domain attribution, and change recipes. Replace standalone explanations of upstream loading, coordination, observation, schema resolution, and metrics with focused upstream links. |
| [Maintained examples](../../examples/README.md) and [migration guides](../migrations/) | Keep minimal runnable Audita projects, application-specific prompt inputs, and actual Audita conversion steps. Link upstream for general library tutorials and native command syntax rather than expanding local walkthroughs into library manuals. |
Use links to canonical documentation for the selected upstream releases, using
the release identities recorded above. Refresh outdated upstream references as
part of current guidance; migration guides should link to the source or target
release appropriate to the conversion they describe. Link to the owning topic
or section, rather than copying the upstream reference into another local page.
Preserve immutable release records and accepted ADR decisions; this work
concerns maintained documentation. Keep attribution notices in their existing
canonical location.
Completion requires the adopted libraries to be discoverable through brief
adoption statements and canonical upstream links. Apply that approach to the
new secrets, schema, provider, and token/cost capabilities rather than adding
local feature references. Review the affected documents for duplicated library
explanations while checking that Audita-specific choices and workflows remain
understandable. No new library reference pages or recurring documentation gates
are needed.
## Work and Validation
The implementation should cover the following outcomes:
@@ -305,9 +340,10 @@ The implementation should cover the following outcomes:
- Adopt native usage reporting and retain useful new metadata in optional debug
evidence. Preserve cancellation causes, recoverable timeouts, and joined work.
- Update canonical configuration, CLI, operations, LLM integration, and internal
documentation plus maintained examples. Review old source paths, upstream
links, and scripts consuming native reports. Add migration guidance for any
actual input or inspection changes.
documentation plus maintained examples under the ownership and consolidation
direction above. Replace duplicated library guidance with canonical upstream
links. Review old source paths and scripts consuming native reports, and add
migration guidance for actual Audita input or inspection changes.
- Update the five attribution entries and commit-pinned notice/source links.
The reviewed target `COPYRIGHT` and `LICENSE` files are unchanged from the
selected releases, and all five remain `LGPL-3.0-or-later`. Reuse applicable