2.4 KiB
2.4 KiB
description, alwaysApply
| description | alwaysApply |
|---|---|
| sow-tools / Crucible — the build/conversion/sync toolchain repo. | true |
sow-tools / Crucible Agent Guide
This repo owns the builder logic for the migration: one Go module
(gitea.westgate.pw/ShadowsOverWestgate/sow-tools) producing the crucible
dispatcher and the crucible-<name> binaries (D11). Read
../AGENTS.md (migration hub) and
../../KICKOFF_PROMPT.md first.
What this repo owns / does not own
Owns: build/extract/validate/compare pipeline, ERF/HAK packing, topdata 2da/tlk
compilation, wiki rendering/deploy, depot blob verify, music conversion,
changelog. Does not own authored game content (that is sow-module /
sow-topdata / sow-assets-manifest) or any production deploy authority (that
is sow-platform).
Scaffold rules (Phase 5)
- Source is not transplanted. The migration hard rules forbid copying the
internal/packages fromgitea/sow-toolsautomatically. The operator migrates them at cutover; seedocs/migration-from-nwn-tool.md. - Fail closed, never fake. Unwired builders exit
70. Do not stub a builder to emit a placeholder artifact. - Binaries are not committed. They are CI artifacts / image layers (D19).
/bin/,*.exe,nwn-tool,sow-toolkitare gitignored. - No home-dir /
NWN_ROOTguessing. Builders take roots explicitly via flag or env. Seedocs/consumer-contract.md. - The registry is the command surface.
internal/dispatch.Registryis the single source of truth; keep it in sync withcmd/anddocs/command-surface.md. Adding a builder = acmd/crucible-<name>/main.goshim + aRegistryentry + a doc row.
Wiring a builder (operator cutover)
- Migrate the relevant
internal/package(s) fromgitea/sow-tools. - Register a handler and flip the builder off the unwired path in
internal/dispatch. - Add tests; keep outputs deterministic (same input → same bytes).
make checkmust stay green;make smokeis updated to expect a wired exit.
Commands
nix develop && make check # vet + test + shellcheck + yamllint
make build # cmd/* -> ./bin
make smoke # assert fail-closed contract
make image # crucible:<sha>
Git
Never commit, branch, or push. Suggest a commit message; let the operator do it.