From 05ebbfd666a245475650911a5b29e1634eae7e21 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Thu, 26 Nov 2026 15:41:29 +0000 Subject: [PATCH] Set up tandem Audita and overlay development --- .gitignore | 10 ++++ AGENTS.md | 26 +++++++++ README.md | 80 ++++++++++++++++++++++++++++ examples/development/config.yml | 6 +++ examples/development/transcript.json | 9 ++++ overlays/.gitkeep | 0 scripts/check.sh | 29 ++++++++++ 7 files changed, 160 insertions(+) create mode 100644 AGENTS.md create mode 100644 examples/development/config.yml create mode 100644 examples/development/transcript.json create mode 100644 overlays/.gitkeep create mode 100755 scripts/check.sh diff --git a/.gitignore b/.gitignore index 7647e84..4b68cad 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,13 @@ Network Trash Folder Temporary Items .apdisk + +# Personal development settings, companions, and session artifacts +/audita.local.yml +/prompts.yml +/prompts/ +/glossary.yml +/glossary/ +/.local/ +/.env +/.env.* diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..cb0c1a9 --- /dev/null +++ b/AGENTS.md @@ -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. diff --git a/README.md b/README.md index bb5d17f..d513874 100644 --- a/README.md +++ b/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). diff --git a/examples/development/config.yml b/examples/development/config.yml new file mode 100644 index 0000000..6a8b5fd --- /dev/null +++ b/examples/development/config.yml @@ -0,0 +1,6 @@ +# Synthetic fixture for configuration and normalization checks only. +version: 3 +pipeline: + stages: [] +reporting: + enabled: false diff --git a/examples/development/transcript.json b/examples/development/transcript.json new file mode 100644 index 0000000..41575b0 --- /dev/null +++ b/examples/development/transcript.json @@ -0,0 +1,9 @@ +[ + { + "id": 1, + "speaker": "Guide", + "start": 0, + "end": 3, + "text": "We arrive at the old stone bridge." + } +] diff --git a/overlays/.gitkeep b/overlays/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/scripts/check.sh b/scripts/check.sh new file mode 100755 index 0000000..ae94ff7 --- /dev/null +++ b/scripts/check.sh @@ -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.'