Require inline frontmatter values and correct the package contract
Check instruction packages / check (push) Successful in 4s
Check instruction packages / check (pull_request) Successful in 4s

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>
This commit is contained in:
adminandClaude Opus 5.5 committed 2026-11-25 18:53:47 -05:00
1 parent 8c7d967efd
commit 1e9e46bc09
4 files changed
+69 -54

No files matched your search

@@ -49,7 +49,8 @@ lower-case 64-hex SHA-256 digests. Any additional field — such as `tools`,
- Every file in the directory except the sidecar is declared, and every
declared file is present with exactly its declared SHA-256.
- No symbolic links, executable bits, or non-regular files; at most 64 entries
and 8 directory levels.
(files and directories), and no relative path longer than 8 segments
including the file name.
- Each file is non-empty UTF-8 without a BOM or NUL bytes; the sidecar plus all
declared files total at most 128 KiB.
@@ -66,19 +67,22 @@ metadata:
relayview-version: <major.minor.patch>
```
`metadata:` stands alone on its line, followed by exactly those two indented
keys. Any other key, such as `tools` or `allowed-tools`, fails the check.
Every key other than `metadata` is written `key: value` with a non-empty
value. `metadata:` stands alone on its line, followed by exactly those two
indented keys. Any other key, such as `tools` or `allowed-tools`, fails the
check.
## Identity and archive
The package identity is the SHA-256 of `relayview-instruction-package-v1\0`
followed by length-framed parts (a 4-byte big-endian length, then the bytes):
the raw sidecar bytes, then for each declared path in sorted order the UTF-8
path and the file bytes.
the raw sidecar bytes, then for each declared path, sorted as whole strings,
the UTF-8 path and the file bytes.
The release archive is an uncompressed ZIP containing the repository
`LICENSE` and `NOTICE.md`, then every package file under `<package-name>/` in
sorted path order. Every entry carries the timestamp 1980-01-01 00:00:00 and
`LICENSE` and `NOTICE.md`, then every package file under `<package-name>/`,
sorted segment by segment (so `a/b.md` precedes `a-b/c.md`, unlike the
whole-string order the identity uses). Every entry carries the timestamp 1980-01-01 00:00:00 and
mode `0644`, so the archive digest depends only on those bytes.
RelayView's `scripts/verify-first-party-skills-source.py` recomputes both
@@ -96,26 +100,32 @@ retained sessions.
## RelayView adoption of the Tester and Coordinator pairs
RelayView's owner admits `planner`, `implementer`, `reviewer`, and `designer`
packages. Before RelayView pins a release containing a `tester` or
`coordinator` package, its sidecar admission must accept that pair:
RelayView's owner admits only `planner`, `implementer`, `reviewer`, and
`designer` packages. No released package declares `tester` or `coordinator`
yet. The planned releases below are proposed, not published:
| Release | New pair | Packages |
| Proposed release | New pair | Planned packages |
| --- | --- | --- |
| `v0.15.0` | `tester`/`testing` | `tester-inspection` (schema 1), `tester-communication` (schema 3) |
| `v0.17.0` | `coordinator`/`coordination` | coordinator automatic and manual methods (schema 1), `coordinator-communication` (schema 3) |
| `v0.15.0` | `tester`/`testing` | Tester inspection (schema 1) and Tester communication (schema 3) |
| `v0.17.0` | `coordinator`/`coordination` | Coordinator automatic and manual methods (schema 1) and Coordinator communication (schema 3) |
The RelayView change for each pair:
Before RelayView pins a release containing either pair, it must:
1. Accept the pair in the owner's sidecar admission (the role-to-step map in
`src/owner/workflowPresets.ts`), with schema 1 and schema 3; keep schema 2
Planner-only and schema 3 closed to `designer`.
2. Add the step to the Skills settings contract and named-set validation so
the role's sets can be selected (`src/api/contract-skill-settings.ts`, the
generated owner schemas, and the set step check in
`src/owner/workflowPresets.ts`).
3. Pin the release in `first-party-skills/<tag>/` with its `bundle-lock.json`
and add the bundle to `scripts/verify-first-party-skills-source.py`.
1. **Know the role.** Add it to the owner's role types (`SkillWorkflowRole` /
`TrustedSkillRole` in `src/owner/workflowPresets.ts`) and give it an
explicit step in `roleStep()`, which otherwise answers `design` for any
role it does not name.
2. **Admit the sidecar.** In `loadInstructionPackage`, accept the role in its
explicit role check and map it to its step in `expectedStep`. Accept schema 1
and schema 3, keep schema 2 Planner-only, and keep schema 3 closed to
`designer`.
3. **Expose it in Skills settings.** Add the role and step to the package,
assignment, and set-selection schemas in `src/api/contract-skill-settings.ts`
and the generated owner schemas, and to named-set role and step validation
in `src/owner/workflowPresets.ts`, so the role's sets can be selected.
4. **Pin and verify the release.** Add `first-party-skills/<tag>/` with its
`bundle-lock.json`, and add the bundle to
`scripts/verify-first-party-skills-source.py`.
The identity framing, archive format, file rules, and frontmatter rules do not
change, so existing bundle locks stay valid.
change for these pairs, so existing bundle locks stay valid.