Closes#20. The package checker now accepts the two role/step pairs that the Tester and Technical Coordinator packages in epic #19 need. Valid fixtures and one-mutation rejection tests cover both pairs. A new current-truth contract doc describes every rule the checker enforces, plus the RelayView changes needed before it pins v0.15.0 and v0.17.0.
The checker also closes gaps where it was looser than its documented rules:
check_package
- schemaVersion == 1 # JSON `true` passed as schema 1 (True == 1)
+ type(schemaVersion) is int
+ frontmatter "key: value" lines only # `disable-model-invocation:yes` skipped the boolean check
+ `metadata:` stands alone # `metadata: {}` passed
- frontmatter delimiters \r?\n
+ frontmatter uses LF only # CRLF on one line, a lone CR, or U+2028 passed
Nothing changes for schema 2 (issueClaim, Planner only) or schema 3 (communication_context, closed to designer). The identity framing and archive format are also unchanged.
tests/
├── fixtures/packages/ # valid fixtures, one per case
│ ├── tester-fixture (schema 1 + resource)
│ ├── tester-communication-fixture (schema 3)
│ ├── coordinator-fixture (schema 1 + resource)
│ ├── coordinator-communication-fixture (schema 3)
│ └── coordinator-manual-fixture (disable-model-invocation: true)
└── test_role_steps.py # valid cases plus one-mutation rejections
docs/authoritative/instruction-package-contract.md # new: the full contract
test_role_steps.py repeats the identity and archive computation from RelayView's scripts/verify-first-party-skills-source.py and pins one identity value. Each rejection case asserts the reason the checker gives. The cases cover:
wrong role/step pairs (14 per fixture)
issueClaim on a package that isn't a Planner
schema and treatment mismatches
capability fields in the sidecar (tools, permissions, network, credentials, …)
bad or changed digests
forbidden frontmatter keys
non-LF line breaks in the frontmatter
a BOM, NUL bytes, invalid UTF-8, or an empty file
undeclared or path-escaping files
.py/.json resources, executable bits, and symlinks
CI now also runs check on each fixture package.
Evidence
Before: with the new tests and the old tools/packages.py, python3 -m unittest tests.test_role_steps ended with FAILED (failures=75, errors=6). Every valid fixture failed with incompatible role or step. Each later rule (disable-model-invocation:yes, LF-only frontmatter) also had a test that failed before its fix.
Each change is needed: I reverted each first-commit change on its own and the suite fails every time:
role/step table: 65 failures
integer schemaVersion: 1 failure
exact metadata: line: 5 failures
After, at head da34e1c:
Tests: all 33 pass.
CI: every step passes.
Current packages: the identities and archive SHA-256 of all 38 packages/* plus examples/starter-planner are the same as at base c103def.
Every package in every tag: this head's checker accepts all 589 packages and examples across the 20 tags v0.1.0–v0.14.0, and rejects none.
The new checker reproduces every pinned RelayView bundle: a one-off script ran this head's check_package and package_archive on each tagged release. It compared the results with each first-party-skills/<tag>/bundle-lock.json in RelayView (checkout at caad584d):
v0.1.0 6e6a691b68c1 1 packages: identity (new validator) and archive (tag packer) match lock
v0.2.0 370ebd572f76 2 packages: identity (new validator) and archive (new packer) match lock
… (v0.3.0 through v0.13.0 all match)
v0.14.0 c103def91bf0 1 packages: identity (new validator) and archive (new packer) match lock
all 89 pinned packages match
v0.1.0's archive predates bundling LICENSE/NOTICE.md, so its archive was rebuilt with that tag's own packer. The contract notes this.
Historical releases are byte-identical: RelayView's own verifier, run from that checkout against this repository, printed Verified … for all 17 bundles it pins (v0.3.0–v0.14.0):
$ python3 scripts/verify-first-party-skills-source.py --local-source /home/anodyine/Projects/relayview-skills
Verified v0.3.0 at 063d12bfb39400c81bc69a86a31b3bb6a55cf9b1 from local source checkout against the bundled bytes and lock
…
Verified v0.14.0 at c103def91bf0ac0d260686a19ab87a216c2c0346 from local source checkout against the bundled bytes and lock
Its list doesn't include v0.1.0 and v0.2.0. They are covered by the lock comparison above, by the fact that the diff touches nothing under packages/ or examples/, and by tags that did not move: git show-ref --tags -d and git ls-remote --tags origin are identical before and after, 20 tags.
Review loop: I ran six two-axis passes (Standards and Spec) against base c103def. Passes 1–5 found issues, all fixed in this branch:
disable-model-invocation:yes skipping the boolean check
an LF rule that held only by accident
contract wording that was missing or overstated rules (proposed releases, RelayView role-level edits, path depth, sort orders, POSIX archive host, required keys)
weak test assertions
Pass 6, on da34e1c, found nothing actionable on either axis. Nonblocking notes:
The checker is now stricter than RelayView's owner on CRLF frontmatter. This is intentional; the owner's admission stays authoritative.
Duplicate JSON keys in the sidecar resolve last-wins. This predates the PR, and RelayView's JSON.parse behaves the same way.
The test reimplements RelayView's verifier rather than importing it. It can't import it across repositories; running RelayView's verifier directly covers that gap.
Checks run
All on head da34e1c1bf4491414f34ebc435fca4eef4ad2a9e with a clean tree:
python3 -m unittest discover -s tests -v: Ran 33 tests … OK.
Every step in .gitea/workflows/check.yml (check and pack for packages/*, the starter, and the new fixture loop): all passed.
Documentation disposition
updated:
New docs/authoritative/instruction-package-contract.md. It covers:
the role/step and schema table
the sidecar, content and frontmatter rules
the identity and archive algorithms
release immutability
the proposed v0.15.0/v0.17.0 adoption steps RelayView needs: role types and roleStep(), sidecar admission, Skills settings schemas and named sets, and the bundle pin plus verifier
README.md lists all six pairs and schema 3, and links to the contract.
Merge Danger
Door: two-way. The change touches the local checker, tests, docs and CI only. No package bytes change and no tags move.
Blast Radius:tools/packages.py and this repository's CI. The checker now accepts two new pairs, and rejects these:
schemaVersion: true
a frontmatter key:value line without a space, or a key with no value
an inline value on metadata:
non-LF line breaks in the frontmatter
No current or tagged package uses any of these forms.
RelayView's owner still refuses tester and coordinator packages until it adopts the pairs. The contract lists the steps, and the README says the owner's admission stays authoritative.
Rollback: git revert the merge commit.
Reviewer prerequisites
Python 3.9 or later (CI uses python3 on ubuntu-latest), standard library only.
Optional, to repeat the RelayView verification: a RelayView checkout and this repository with its tags.
Manual Test Plan
None. The automated tests and the evidence above cover the behavior.
## Summary
Closes #20. The package checker now accepts the two role/step pairs that the Tester and Technical Coordinator packages in epic #19 need. Valid fixtures and one-mutation rejection tests cover both pairs. A new current-truth contract doc describes every rule the checker enforces, plus the RelayView changes needed before it pins `v0.15.0` and `v0.17.0`.
```diff
ROLE_STEPS
planner → planning
implementer → implementation
reviewer → review
designer → design
+ tester → testing # schemas 1, 3
+ coordinator → coordination # schemas 1, 3
```
The checker also closes gaps where it was looser than its documented rules:
```diff
check_package
- schemaVersion == 1 # JSON `true` passed as schema 1 (True == 1)
+ type(schemaVersion) is int
+ frontmatter "key: value" lines only # `disable-model-invocation:yes` skipped the boolean check
+ `metadata:` stands alone # `metadata: {}` passed
- frontmatter delimiters \r?\n
+ frontmatter uses LF only # CRLF on one line, a lone CR, or U+2028 passed
```
Nothing changes for schema 2 (`issueClaim`, Planner only) or schema 3 (`communication_context`, closed to `designer`). The identity framing and archive format are also unchanged.
```text
tests/
├── fixtures/packages/ # valid fixtures, one per case
│ ├── tester-fixture (schema 1 + resource)
│ ├── tester-communication-fixture (schema 3)
│ ├── coordinator-fixture (schema 1 + resource)
│ ├── coordinator-communication-fixture (schema 3)
│ └── coordinator-manual-fixture (disable-model-invocation: true)
└── test_role_steps.py # valid cases plus one-mutation rejections
docs/authoritative/instruction-package-contract.md # new: the full contract
```
`test_role_steps.py` repeats the identity and archive computation from RelayView's `scripts/verify-first-party-skills-source.py` and pins one identity value. Each rejection case asserts the reason the checker gives. The cases cover:
- wrong role/step pairs (14 per fixture)
- `issueClaim` on a package that isn't a Planner
- schema and treatment mismatches
- capability fields in the sidecar (`tools`, `permissions`, `network`, `credentials`, …)
- bad or changed digests
- forbidden frontmatter keys
- non-LF line breaks in the frontmatter
- a BOM, NUL bytes, invalid UTF-8, or an empty file
- undeclared or path-escaping files
- `.py`/`.json` resources, executable bits, and symlinks
CI now also runs `check` on each fixture package.
## Evidence
- **Before:** with the new tests and the old `tools/packages.py`, `python3 -m unittest tests.test_role_steps` ended with `FAILED (failures=75, errors=6)`. Every valid fixture failed with `incompatible role or step`. Each later rule (`disable-model-invocation:yes`, LF-only frontmatter) also had a test that failed before its fix.
- **Each change is needed:** I reverted each first-commit change on its own and the suite fails every time:
- role/step table: 65 failures
- integer `schemaVersion`: 1 failure
- exact `metadata:` line: 5 failures
- **After, at head `da34e1c`:**
- **Tests:** all 33 pass.
- **CI:** every step passes.
- **Current packages:** the identities and archive SHA-256 of all 38 `packages/*` plus `examples/starter-planner` are the same as at base `c103def`.
- **Every package in every tag:** this head's checker accepts all 589 packages and examples across the 20 tags `v0.1.0`–`v0.14.0`, and rejects none.
- **The new checker reproduces every pinned RelayView bundle:** a one-off script ran this head's `check_package` and `package_archive` on each tagged release. It compared the results with each `first-party-skills/<tag>/bundle-lock.json` in RelayView (checkout at `caad584d`):
```text
v0.1.0 6e6a691b68c1 1 packages: identity (new validator) and archive (tag packer) match lock
v0.2.0 370ebd572f76 2 packages: identity (new validator) and archive (new packer) match lock
… (v0.3.0 through v0.13.0 all match)
v0.14.0 c103def91bf0 1 packages: identity (new validator) and archive (new packer) match lock
all 89 pinned packages match
```
`v0.1.0`'s archive predates bundling `LICENSE`/`NOTICE.md`, so its archive was rebuilt with that tag's own packer. The contract notes this.
- **Historical releases are byte-identical:** RelayView's own verifier, run from that checkout against this repository, printed `Verified …` for all 17 bundles it pins (`v0.3.0`–`v0.14.0`):
```text
$ python3 scripts/verify-first-party-skills-source.py --local-source /home/anodyine/Projects/relayview-skills
Verified v0.3.0 at 063d12bfb39400c81bc69a86a31b3bb6a55cf9b1 from local source checkout against the bundled bytes and lock
…
Verified v0.14.0 at c103def91bf0ac0d260686a19ab87a216c2c0346 from local source checkout against the bundled bytes and lock
```
Its list doesn't include `v0.1.0` and `v0.2.0`. They are covered by the lock comparison above, by the fact that the diff touches nothing under `packages/` or `examples/`, and by tags that did not move: `git show-ref --tags -d` and `git ls-remote --tags origin` are identical before and after, 20 tags.
- **Review loop:** I ran six two-axis passes (Standards and Spec) against base `c103def`. Passes 1–5 found issues, all fixed in this branch:
- `disable-model-invocation:yes` skipping the boolean check
- an LF rule that held only by accident
- contract wording that was missing or overstated rules (proposed releases, RelayView role-level edits, path depth, sort orders, POSIX archive host, required keys)
- weak test assertions
Pass 6, on `da34e1c`, found nothing actionable on either axis. Nonblocking notes:
- The checker is now stricter than RelayView's owner on CRLF frontmatter. This is intentional; the owner's admission stays authoritative.
- Duplicate JSON keys in the sidecar resolve last-wins. This predates the PR, and RelayView's `JSON.parse` behaves the same way.
- The test reimplements RelayView's verifier rather than importing it. It can't import it across repositories; running RelayView's verifier directly covers that gap.
### Checks run
All on head `da34e1c1bf4491414f34ebc435fca4eef4ad2a9e` with a clean tree:
- `python3 -m unittest discover -s tests -v`: `Ran 33 tests … OK`.
- Every step in `.gitea/workflows/check.yml` (check and pack for `packages/*`, the starter, and the new fixture loop): all passed.
## Documentation disposition
**updated**:
- New `docs/authoritative/instruction-package-contract.md`. It covers:
- the role/step and schema table
- the sidecar, content and frontmatter rules
- the identity and archive algorithms
- release immutability
- the proposed `v0.15.0`/`v0.17.0` adoption steps RelayView needs: role types and `roleStep()`, sidecar admission, Skills settings schemas and named sets, and the bundle pin plus verifier
- `README.md` lists all six pairs and schema 3, and links to the contract.
## Merge Danger
**Door:** two-way. The change touches the local checker, tests, docs and CI only. No package bytes change and no tags move.
**Blast Radius:** `tools/packages.py` and this repository's CI. The checker now accepts two new pairs, and rejects these:
- `schemaVersion: true`
- a frontmatter `key:value` line without a space, or a key with no value
- an inline value on `metadata:`
- non-LF line breaks in the frontmatter
No current or tagged package uses any of these forms.
RelayView's owner still refuses `tester` and `coordinator` packages until it adopts the pairs. The contract lists the steps, and the README says the owner's admission stays authoritative.
Rollback: `git revert` the merge commit.
## Reviewer prerequisites
- Python 3.9 or later (CI uses `python3` on `ubuntu-latest`), standard library only.
- Optional, to repeat the RelayView verification: a RelayView checkout and this repository with its tags.
## Manual Test Plan
None. The automated tests and the evidence above cover the behavior.
## Post-Merge Cleanup
```sh
python ~/.claude/skills/gitea-issues/scripts/gitea.py issue remove-worktree --issue 20 --pull 30
```
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Accept tester/testing and coordinator/coordination under schemas 1 and 3,
reject a JSON boolean schemaVersion and an inline metadata frontmatter value,
and cover the new pairs with valid fixtures plus single-mutation rejections.
The tests mirror RelayView's identity and archive computation and pin the
identity framing. Document the full instruction package contract and the
RelayView sidecar changes required before pinning v0.15.0 and v0.17.0.
Refs #20
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reject a top-level frontmatter key without "key: value" form, so
"disable-model-invocation:yes" can no longer bypass the boolean check.
Assert each rejection's reason in the new-pair tests. In the contract,
mark the Tester and Coordinator releases as proposed, list RelayView's
role-level changes, and state the path-depth bound and the identity and
archive sort orders exactly.
Refs #20
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the frontmatter placement, two-space indent, no blank or comment
lines, and real-directory rules; move the example's comment out of its
value line so the example passes; name the code-point sort; and note that
archive digests depend on a POSIX build host. Split the frontmatter line
check into a named condition.
Refs #20
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The checker already rejects CRLF frontmatter; the contract now says so and
a fixture mutation keeps that statement honest. Use the parsed schema
version for the schema 2 and 3 checks, and rewrap the contract.
Refs #20
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The contract stated an LF rule the checker only enforced by accident:
CRLF on a single line, a lone CR, a Unicode line separator, or CRLF on a
delimiter passed. Require LF delimiters and LF-only frontmatter lines, and
test each case. Every package in every tag v0.1.0-v0.14.0 still passes.
The contract now names the required frontmatter keys and shows runnable
check and pack commands.
Refs #20
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Name the separators the checker rejects and the end-of-file closing
delimiter it accepts, and show that the rule stops at the frontmatter: a
CRLF body and a frontmatter-only file still pass. Split frontmatter lines
once and assert the exact rejection reason.
Refs #20
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Closes #20. The package checker now accepts the two role/step pairs that the Tester and Technical Coordinator packages in epic #19 need. Valid fixtures and one-mutation rejection tests cover both pairs. A new current-truth contract doc describes every rule the checker enforces, plus the RelayView changes needed before it pins
v0.15.0andv0.17.0.The checker also closes gaps where it was looser than its documented rules:
Nothing changes for schema 2 (
issueClaim, Planner only) or schema 3 (communication_context, closed todesigner). The identity framing and archive format are also unchanged.test_role_steps.pyrepeats the identity and archive computation from RelayView'sscripts/verify-first-party-skills-source.pyand pins one identity value. Each rejection case asserts the reason the checker gives. The cases cover:issueClaimon a package that isn't a Plannertools,permissions,network,credentials, …).py/.jsonresources, executable bits, and symlinksCI now also runs
checkon each fixture package.Evidence
Before: with the new tests and the old
tools/packages.py,python3 -m unittest tests.test_role_stepsended withFAILED (failures=75, errors=6). Every valid fixture failed withincompatible role or step. Each later rule (disable-model-invocation:yes, LF-only frontmatter) also had a test that failed before its fix.Each change is needed: I reverted each first-commit change on its own and the suite fails every time:
schemaVersion: 1 failuremetadata:line: 5 failuresAfter, at head
da34e1c:packages/*plusexamples/starter-plannerare the same as at basec103def.v0.1.0–v0.14.0, and rejects none.The new checker reproduces every pinned RelayView bundle: a one-off script ran this head's
check_packageandpackage_archiveon each tagged release. It compared the results with eachfirst-party-skills/<tag>/bundle-lock.jsonin RelayView (checkout atcaad584d):v0.1.0's archive predates bundlingLICENSE/NOTICE.md, so its archive was rebuilt with that tag's own packer. The contract notes this.Historical releases are byte-identical: RelayView's own verifier, run from that checkout against this repository, printed
Verified …for all 17 bundles it pins (v0.3.0–v0.14.0):Its list doesn't include
v0.1.0andv0.2.0. They are covered by the lock comparison above, by the fact that the diff touches nothing underpackages/orexamples/, and by tags that did not move:git show-ref --tags -dandgit ls-remote --tags originare identical before and after, 20 tags.Review loop: I ran six two-axis passes (Standards and Spec) against base
c103def. Passes 1–5 found issues, all fixed in this branch:disable-model-invocation:yesskipping the boolean checkPass 6, on
da34e1c, found nothing actionable on either axis. Nonblocking notes:JSON.parsebehaves the same way.Checks run
All on head
da34e1c1bf4491414f34ebc435fca4eef4ad2a9ewith a clean tree:python3 -m unittest discover -s tests -v:Ran 33 tests … OK..gitea/workflows/check.yml(check and pack forpackages/*, the starter, and the new fixture loop): all passed.Documentation disposition
updated:
docs/authoritative/instruction-package-contract.md. It covers:v0.15.0/v0.17.0adoption steps RelayView needs: role types androleStep(), sidecar admission, Skills settings schemas and named sets, and the bundle pin plus verifierREADME.mdlists all six pairs and schema 3, and links to the contract.Merge Danger
Door: two-way. The change touches the local checker, tests, docs and CI only. No package bytes change and no tags move.
Blast Radius:
tools/packages.pyand this repository's CI. The checker now accepts two new pairs, and rejects these:schemaVersion: truekey:valueline without a space, or a key with no valuemetadata:No current or tagged package uses any of these forms.
RelayView's owner still refuses
testerandcoordinatorpackages until it adopts the pairs. The contract lists the steps, and the README says the owner's admission stays authoritative.Rollback:
git revertthe merge commit.Reviewer prerequisites
python3onubuntu-latest), standard library only.Manual Test Plan
None. The automated tests and the evidence above cover the behavior.
Post-Merge Cleanup
🤖 Generated with Claude Code