# CASAN DevKit (Level 2 — Adoption Kit) Everything a new project needs to adopt the CASAN governance harness in a repeatable way. **Level 2 = Level 1 core harness + adoption tooling.** ## Contents | Path | Purpose | |---|---| | `install.sh` | Install core harness + `bin/casan` into a target repo, scaffold a domain, register it | | `Dockerfile.harness` | Minimal image to run the gate on any mounted repo (`casan gate`) | | `templates/domain-pack/` | Per-project domain scaffold (input / golden-runs / corpus / `domain-pack.yaml`) | | `templates/gitea-workflow/ci.yml` | Reusable Gitea Actions gate workflow | | `templates/project/` | Minimal new-project skeleton that consumes the harness | ## Quick adopt ```bash # from a CASAN source hub or an extracted casan-devkit bundle packages/casan-devkit/install.sh --target ../my-project --project ticketing --domain "Ticketing" cd ../my-project # add requirement + golden baseline under apps/ticketing/domain/, then: CASAN_DOMAIN_ROOT=apps/ticketing/domain bin/casan gate bin/casan reuse # HARNESS_REUSE_VALID ``` ## Guides - `docs/packaging/ADOPTION_GUIDE.md` — end-to-end adoption - `docs/packaging/DOMAIN_PACK_GUIDE.md` — how to fill a domain pack - `docs/packaging/CI_GUIDE.md` — wire the gate into Gitea CI - `docs/packaging/DOCKER_GUIDE.md` — run/build the harness image Adoption is **config + domain only** — you never edit gate logic (H1→H7).