Set up tandem Audita and overlay development
This commit is contained in:
10
.gitignore
vendored
10
.gitignore
vendored
@@ -41,3 +41,13 @@ Network Trash Folder
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
|
||||
|
||||
# Personal development settings, companions, and session artifacts
|
||||
/audita.local.yml
|
||||
/prompts.yml
|
||||
/prompts/
|
||||
/glossary.yml
|
||||
/glossary/
|
||||
/.local/
|
||||
/.env
|
||||
|
||||
26
AGENTS.md
Normal file
26
AGENTS.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# Working in audita-pipelines-dnd
|
||||
|
||||
Start with README.md for current status, development commands, and ownership.
|
||||
|
||||
This repository owns the D&D overlays and their public contracts. Audita owns
|
||||
its domain-agnostic processing, CLI, and glossary format. Keep D&D recipe decisions
|
||||
here and general capabilities in Audita. Link upstream contracts rather than
|
||||
copying their reference documentation.
|
||||
|
||||
The production/testing input contract, exact stages, and profile selections are
|
||||
still being discussed. Do not treat illustrative fixtures as accepted recipe
|
||||
contracts. Testing means a cheaper, shorter development run.
|
||||
|
||||
Keep changes proportionate. Use native Audita, ConfigKit, and PromptKit behavior;
|
||||
do not add a local loader or merge system. Do not introduce extra requirements
|
||||
or guarantees without an agreed need. Keep real session data, personal settings,
|
||||
and credentials in ignored local files. Use synthetic committed fixtures.
|
||||
|
||||
Validate configuration changes with scripts/check.sh and a compatible Audita
|
||||
binary. It checks configuration and normalization without calling a model; it
|
||||
does not establish recipe quality or model readiness. Add behavioral checks as
|
||||
recipes land, avoiding assertions about incidental prompt wording.
|
||||
|
||||
Keep commits scoped to this repository and review staged changes before committing.
|
||||
Commit completed, validated work locally by default. Do not push or publish without
|
||||
explicit authorization. Preserve unrelated changes in this and sibling repositories.
|
||||
80
README.md
80
README.md
@@ -1,2 +1,82 @@
|
||||
# audita-pipelines-dnd
|
||||
|
||||
D&D processing recipes for [Audita](https://forge.maximumdirect.net/eric/audita).
|
||||
Audita provides domain-agnostic transcript processing; this repository owns the
|
||||
D&D overlays and the public input contracts followed by Narratio and other callers.
|
||||
|
||||
## Status
|
||||
|
||||
Development scaffolding is available. The planned overlays are
|
||||
`overlays/dnd-production.yml` and `overlays/dnd-testing.yml`; they have not yet been
|
||||
implemented. Production will be the normal polishing recipe. Testing will be a
|
||||
cheaper, shorter development run. Glossary roles, stage sequences, and model-profile
|
||||
requirements remain open. There is no released recipe contract yet.
|
||||
|
||||
As the overlays land, this README will define their supported Audita versions,
|
||||
logical glossary roles, required/default inputs, profile requirements, and
|
||||
installation and invocation. Both should accept the same prepared input dataset
|
||||
where practical. Recipe revisions can be selected independently of Audita releases.
|
||||
|
||||
Audita's planned `--glossary-file` interface is not implemented in the current
|
||||
v4.1 baseline. Existing configured glossary collections work in the meantime.
|
||||
See Audita's [configuration reference](https://forge.maximumdirect.net/eric/audita/src/branch/main/docs/config.md)
|
||||
and [CLI reference](https://forge.maximumdirect.net/eric/audita/src/branch/main/docs/cli.md)
|
||||
for native formats and implemented behavior.
|
||||
|
||||
## Develop alongside Audita
|
||||
|
||||
A convenient checkout layout is:
|
||||
|
||||
```text
|
||||
Workspace/
|
||||
audita/
|
||||
audita-pipelines-dnd/
|
||||
```
|
||||
|
||||
Build from the Audita checkout:
|
||||
|
||||
```sh
|
||||
cd ../audita
|
||||
go build -o ./bin/audita ./cmd/audita
|
||||
```
|
||||
|
||||
From this repository, run the offline development checks:
|
||||
|
||||
```sh
|
||||
./scripts/check.sh ../audita/bin/audita
|
||||
```
|
||||
|
||||
The script also accepts `AUDITA_BIN`, or defaults to `audita` on PATH. The sibling
|
||||
layout is a convenience, not a dependency. Checks validate the synthetic main
|
||||
configuration and any implemented overlays, then process a tiny transcript with
|
||||
normalization only. They make no model calls and do not establish model readiness
|
||||
or editorial quality. The fixture's empty stage list is for this check only; it
|
||||
does not define either D&D pipeline.
|
||||
|
||||
For personal development, copy the fixture to a main file at the repository root:
|
||||
|
||||
```sh
|
||||
cp examples/development/config.yml audita.local.yml
|
||||
```
|
||||
|
||||
`audita.local.yml` is ignored. Edit it to configure your processing pipeline and
|
||||
profiles. Root `prompts.yml`, `prompts/`, `glossary.yml`, and `glossary/` are also
|
||||
ignored for personal companions, and `.local/` is available for private inputs,
|
||||
credentials, and outputs. Keep real session material out of committed examples.
|
||||
|
||||
Once implemented, overlays in this repository's root `overlays/` directory will
|
||||
be discovered beside that main file. A target invocation is:
|
||||
|
||||
```sh
|
||||
../audita/bin/audita process --config audita.local.yml \
|
||||
--overlay dnd-testing --output .local/polished.json .local/transcript.json
|
||||
```
|
||||
|
||||
This command is for the future overlay, and requires configured profiles and
|
||||
usable glossary inputs. For deployment, copy the chosen overlay files into the
|
||||
`overlays/` directory beside the deployment's main Audita configuration. No
|
||||
submodule, Go workspace, or custom overlay installer is required.
|
||||
|
||||
## License
|
||||
|
||||
[CC0 1.0 Universal](LICENSE).
|
||||
|
||||
6
examples/development/config.yml
Normal file
6
examples/development/config.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
# Synthetic fixture for configuration and normalization checks only.
|
||||
version: 3
|
||||
pipeline:
|
||||
stages: []
|
||||
reporting:
|
||||
enabled: false
|
||||
9
examples/development/transcript.json
Normal file
9
examples/development/transcript.json
Normal file
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"speaker": "Guide",
|
||||
"start": 0,
|
||||
"end": 3,
|
||||
"text": "We arrive at the old stone bridge."
|
||||
}
|
||||
]
|
||||
0
overlays/.gitkeep
Normal file
0
overlays/.gitkeep
Normal file
29
scripts/check.sh
Executable file
29
scripts/check.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
# Offline wiring checks; no model execution or recipe-quality assertions.
|
||||
set -eu
|
||||
|
||||
audita_bin=${1:-${AUDITA_BIN:-audita}}
|
||||
repo_dir=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
fixture="$repo_dir/examples/development/config.yml"
|
||||
|
||||
"$audita_bin" config validate --config "$fixture"
|
||||
|
||||
# Keep the main next to overlays so native overlay discovery is exercised.
|
||||
# This temporary bundle contains only committed development inputs.
|
||||
check_dir=$(mktemp -d)
|
||||
trap 'rm -rf "$check_dir"' EXIT
|
||||
trap 'exit 1' HUP INT TERM
|
||||
cp "$fixture" "$check_dir/config.yml"
|
||||
mkdir "$check_dir/overlays"
|
||||
for overlay in "$repo_dir"/overlays/*.yml; do
|
||||
[ -f "$overlay" ] || continue
|
||||
cp "$overlay" "$check_dir/overlays/"
|
||||
overlay_name=$(basename "$overlay" .yml)
|
||||
"$audita_bin" config validate --config "$check_dir/config.yml" --overlay "$overlay_name"
|
||||
done
|
||||
|
||||
"$audita_bin" process --config "$fixture" \
|
||||
--output "$check_dir/normalized.json" \
|
||||
"$repo_dir/examples/development/transcript.json"
|
||||
test -s "$check_dir/normalized.json"
|
||||
printf '%s\n' 'Configuration and normalization checks passed; no model calls were made.'
|
||||
Reference in New Issue
Block a user