diff --git a/.gitea/workflows/check.yml b/.gitea/workflows/check.yml index 955fa22..0101eef 100644 --- a/.gitea/workflows/check.yml +++ b/.gitea/workflows/check.yml @@ -14,5 +14,6 @@ jobs: - run: python3 -m unittest discover -s tests -v - run: for package in packages/*; do python3 -m tools.packages check "$package"; done - run: python3 -m tools.packages check examples/starter-planner + - run: for package in tests/fixtures/packages/*; do python3 -m tools.packages check "$package"; done - run: for package in packages/*; do python3 -m tools.packages pack "$package" "dist/${package##*/}.zip"; done - run: python3 -m tools.packages pack examples/starter-planner dist/starter-planner.zip diff --git a/README.md b/README.md index 5acbbfe..4e988c2 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Public source for RelayView-maintained instruction-only role skills and an illus | `packages/c4-diff` | Optional guidance | Reviewer / review | 0.13.0 | | `examples/starter-planner` | Illustrative starter; not a production default | Planner / planning | 0.13.0 | -Only named releases of maintained packages receive RelayView compatibility testing and maintenance. Optional guidance requires explicit role assignment; the Planner and Implementer defaults remain available alongside the pinned Issue Designer default. User forks are maintained by their publishers. Instruction packages use schema version 1, or schema version 2 for a Planner package declaring owner-validated `issueClaim` metadata. Schema 2 accepts a nullable target status label; the owner enforces the claim transition after proved implementation handoff. It contains only `SKILL.md`, declared `.md`/`.txt` resources, and `relayview-skill.json` within each package. Scripts, executable files, undeclared files, and requested permissions fail checks and owner admission. There is no fixed release calendar: maintained packages are versioned when their content or compatibility changes. A breaking owner contract requires a new compatible maintained release before the product depends on it. +Only named releases of maintained packages receive RelayView compatibility testing and maintenance. Optional guidance requires explicit role assignment; the Planner and Implementer defaults remain available alongside the pinned Issue Designer default. User forks are maintained by their publishers. Instruction packages use schema version 1, schema version 2 for a Planner package declaring owner-validated `issueClaim` metadata, or schema version 3 for a role communication package. Schema 2 accepts a nullable target status label; the owner enforces the claim transition after proved implementation handoff. Each package declares one role/step pair: `planner`/`planning`, `implementer`/`implementation`, `reviewer`/`review`, `designer`/`design`, `tester`/`testing`, or `coordinator`/`coordination`. RelayView admits Tester and Coordinator packages only after it adopts those pairs. A package contains only `SKILL.md`, declared `.md`/`.txt` resources, and `relayview-skill.json` within each package. The [instruction package contract](docs/authoritative/instruction-package-contract.md) gives every rule the checks enforce, the identity and archive algorithms, and the RelayView changes each new pair requires. Scripts, executable files, undeclared files, and requested permissions fail checks and owner admission. There is no fixed release calendar: maintained packages are versioned when their content or compatibility changes. A breaking owner contract requires a new compatible maintained release before the product depends on it. ## A named set in RelayView diff --git a/docs/authoritative/instruction-package-contract.md b/docs/authoritative/instruction-package-contract.md new file mode 100644 index 0000000..10969cd --- /dev/null +++ b/docs/authoritative/instruction-package-contract.md @@ -0,0 +1,121 @@ +# Instruction package contract + +An instruction package is one closed directory: `SKILL.md`, optional declared +`.md`/`.txt` resources, and the `relayview-skill.json` sidecar. +`python3 -m tools.packages check ` enforces this contract and prints +the package identity; `python3 -m tools.packages pack ` builds +the release archive and prints its SHA-256. RelayView's owner applies its own +admission check, which stays authoritative: a package that passes here can +still be refused by an owner that does not yet support its role/step pair. + +## Role and step + +Each package guides exactly one role during that role's one step. + +| `role` | `step` | Schemas | +| --- | --- | --- | +| `planner` | `planning` | 1, 2, 3 | +| `implementer` | `implementation` | 1, 3 | +| `reviewer` | `review` | 1, 3 | +| `designer` | `design` | 1 | +| `tester` | `testing` | 1, 3 | +| `coordinator` | `coordination` | 1, 3 | + +Any other pairing, including a known role with another role's step, fails the +check. Role and step names are lower-case strings. + +## Sidecar fields + +The sidecar is UTF-8 JSON without a BOM or NUL bytes, at most 64 KiB, with +exactly the fields its integer `schemaVersion` names: + +- **Schema 1** — `schemaVersion`, `source`, `role`, `step`, `files`. +- **Schema 2** — schema 1 plus `issueClaim: {"statusLabel":