Compare commits

...
22 Commits
Author SHA1 Message Date
anodyine 73f40b0ef3 Merge pull request 'Evolve Designer packages into Specification Designer (v0.15.0)' (#34) from ISSUE-22 into main
Check instruction packages / check (push) Successful in 4s
2026-11-25 20:25:09 -05:00
adminandClaude Opus 5.5 428a944d56 Merge main (Tester packages) into ISSUE-22
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 6s
Keep both the Specification Designer and Tester paragraphs in
OVERRIDING.md and README.md, and both the Testing and Review tiers
boundary rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:24:36 -05:00
adminandClaude Opus 5.5 75e8703956 Say which Designer packages new sessions capture
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:03:45 -05:00
adminandClaude Opus 5.5 1cb75539fa State RelayView adoption steps as requirements
Describe what the owner must preserve when the current Designer release
moves to v0.15.0, pointing at the v0.13.0 hard-codes in loadRelease and
resolveDesignerSkills rather than prescribing a catalog design, and wrap
the override guide's paragraph lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:02:29 -05:00
adminandClaude Opus 5.5 4ce2e49464 Correct RelayView adoption steps and current review wording
Name the operator-release Designer lineage RelayView actually loads and
the retained v0.13.0 catalog it must keep, state today's acceptance rule
beside the proposed Layer A/C tiers, and bound auto_merge_eligible slices
in to-tickets by the unique-resource and sensitive-boundary conditions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:00:49 -05:00
anodyine c461acf6ab Merge pull request 'Add first-party Tester inspection and communication packages (v0.15.0)' (#32) from ISSUE-23 into main
Check instruction packages / check (push) Successful in 5s
2026-11-25 20:00:02 -05:00
adminandClaude Opus 5.5 69054c90fd Address review: label the new default as proposed in RelayView
Keep issue-designer-default as RelayView's pinned default in the
override guide until it pins v0.15.0, move the proof and stamp
customization into the proposed Review tiers row, and frame Layer A/C as
the owner's decision rather than current behavior. Add the fast-tests-only
condition and Layer B naming to the methods, drop the needs-info rule for
open decisions in favor of cautious values, and name the retained-session
release check RelayView must change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:58:49 -05:00
adminandClaude Opus 5.5 d1b1b3c0c8 Address review: interface-neutral probing, owner record wording, test cleanup
Check instruction packages / check (push) Successful in 4s
Check instruction packages / check (pull_request) Successful in 4s
Name screen, command, and service neighbors in the inspection method; say
the packages leave the owner's bundle and escalation record format to the
owner; fold the tester communication checks into the shared communication
test and widen the identifier guard; label the unpublished v0.15.0 release
in the README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:55:19 -05:00
adminandClaude Opus 5.5 88bc6aee98 Evolve Designer packages into Specification Designer v0.15.0
Check instruction packages / check (push) Successful in 4s
Check instruction packages / check (pull_request) Successful in 4s
Add specification-designer-default, which replaces issue-designer-default
as the automatic designer/design package and guides the Operator through
requested proof artifacts, fast-test completeness, declared test
resources, and a recommended Layer B review stamp. Move the eight manual
Designer methods to v0.15.0 with Specification Designer naming and the
proof guidance each one touches.

issue-designer-default stays byte-identical at v0.13.0 for retained
sessions; a test pins its identity. OVERRIDING.md, README.md, and the
package contract record the replacement mapping and the owner changes
RelayView needs before it pins v0.15.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:54:53 -05:00
adminandClaude Opus 5.5 e20d668e3f Add first-party Tester inspection and communication packages
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
tester-inspection (schema 1) teaches the Building Inspector method: exercise
the exact sealed candidate as a user, capture requested proof, separate
verified runtime observations from remaining manual Operator checks, and
escalate with a typed reason and risk summary. tester-communication
(schema 3, communication_context) presents evidence-first proof summaries.
Both target v0.15.0; the override guide, contract, and README list them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:52:44 -05:00
anodyine becb748094 Merge pull request 'Publish the Operator role-skill override guide and layer-4 authoring template' (#31) from ISSUE-21 into main
Check instruction packages / check (push) Successful in 5s
2026-11-25 19:45:38 -05:00
adminandClaude Opus 5.5 2a2575d16f Tighten default-assignment wording and the schema check
Check instruction packages / check (push) Successful in 6s
Check instruction packages / check (pull_request) Successful in 6s
Attribute defaults to the maintained deployment, note the owner restart for
designerSkills, and compare schema lists by entry rather than substring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:41:44 -05:00
adminandClaude Opus 5.5 8a01e785d1 Name where defaults are configured and how Designer methods are assigned
Point Operators at rolePolicies and reviewerSkills for their own defaults,
add the Designer card and designerSkills paths for the pinned methods,
correct the README's default summary, and check the role matrix lists every
package of its role.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:40:21 -05:00
adminandClaude Opus 5.5 602b1baa4a Address review: label the trust pyramid, add first-party assignment
Present the trust pyramid as authoring guidance rather than current RelayView
behavior, add the catalog path for first-party packages outside the pinned
defaults, correct manual-invocation wording for Designer methods, note the
communication-treatment set rejection, and drop the unresolved placeholder.
Derive role schemas from the contract table and pin the role matrix's launch
order to the package matrix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:37:57 -05:00
adminandClaude Opus 5.5 6c74666289 Publish the Operator role-skill override guide
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 4s
Add OVERRIDING.md with the six-role matrix, a complete package matrix
pinned to every sidecar by tests/test_overriding.py, the skill-versus-owner
boundary with proposed owner rules labelled, the fork and override recipe,
release identity verification, and a layer-4 authoring template that the
tests admit as a valid user package. Point the README at the guide in place
of its incomplete package table and stale Designer assignment text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:34:22 -05:00
anodyine c6323b8219 Merge pull request 'Validate Tester and Coordinator role/step pairs' (#30) from ISSUE-20 into main
Check instruction packages / check (push) Successful in 5s
2026-11-25 19:28:00 -05:00
adminandClaude Opus 5.5 da34e1c1bf State the frontmatter line-break rule exactly
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
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>
2026-11-25 19:04:47 -05:00
adminandClaude Opus 5.5 45eff20ecb Enforce LF-only SKILL.md frontmatter
Check instruction packages / check (push) Successful in 6s
Check instruction packages / check (pull_request) Successful in 5s
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>
2026-11-25 19:01:50 -05:00
adminandClaude Opus 5.5 f872770dc9 Document the LF frontmatter rule and pin it with a test
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 6s
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>
2026-11-25 18:58:35 -05:00
adminandClaude Opus 5.5 ddf95ded04 State every enforced frontmatter and layout rule in the contract
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 4s
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>
2026-11-25 18:56:09 -05:00
adminandClaude Opus 5.5 1e9e46bc09 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>
2026-11-25 18:53:47 -05:00
adminandClaude Opus 5.5 8c7d967efd Validate Tester and Coordinator role/step pairs
Check instruction packages / check (push) Successful in 4s
Check instruction packages / check (pull_request) Successful in 8s
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>
2026-11-25 18:50:23 -05:00
44 changed files with 1613 additions and 127 deletions

No files matched your search

+1
View File
@@ -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
+407
View File
@@ -0,0 +1,407 @@
# Overriding RelayView role skills
RelayView's maintained deployment gives each agent role that takes skills
first-party packages from this repository as its default instructions. This guide shows which package each role runs, what
a replacement package can change, what RelayView's owner enforces regardless of
any package, and how to publish a fork that the owner admits.
RelayView's own documentation and admission checks stay authoritative. This
guide describes the owner behavior that RelayView documents as current, and
labels planned behavior as proposed. The
[instruction package contract](docs/authoritative/instruction-package-contract.md)
gives every file, sidecar, and frontmatter rule the local checks enforce.
## Role matrix
A package declares one `role` and its one `step`. Schema 3 packages carry
`treatment: "communication_context"`; schema 2 is the Planner's issue-claim
schema. RelayView's maintained deployment assigns the automatic defaults below,
in launch order. A deployment sets its own Planner and Implementer defaults in
`workflowPresets.rolePolicies.<role>.skills` and its Reviewer defaults in
`workflowPresets.reviewerSkills`; Settings → Skills calls these the Configured
default and shows the saved and effective choice for each role.
| Role | `role` / `step` | Schemas | `communication_context` | RelayView admission | Maintained automatic default (launch order) | Other first-party packages |
| --- | --- | --- | --- | --- | --- | --- |
| Specification Designer | `designer` / `design` | 1 | No (schema 3 is rejected) | Admitted | `issue-designer-default` (pinned) | Default from release v0.15.0, not yet pinned: `specification-designer-default`. Manual: `designer-wayfinder`, `designer-grilling`, `designer-research`, `designer-domain-modeling`, `designer-triage`, `designer-to-spec`, `designer-to-tickets`, `designer-prototype`; the maintained configuration assigns none |
| Technical Coordinator | `coordinator` / `coordination` | 1, 3 | Yes | Not yet admitted | None | None published |
| Planner | `planner` / `planning` | 1, 2, 3 | Yes | Admitted | `planner-investigation`, `planner-scope`, `planner-communication`, `research-auto` | Automatic: `codebase-design`. Manual: `grill-me`, `grilling`, `improve-codebase-architecture`, `research`, `to-questionnaire` |
| Implementer | `implementer` / `implementation` | 1, 3 | Yes | Admitted | `implementer-investigation`, `implementer-handoff`, `implementer-communication` | Automatic: `tdd-auto`, `diagnosing-bugs`, `domain-modeling`. Manual: `tdd`, `pr`, `prototype`, `migrate-to-shoehorn`, `scaffold-exercises`, `shared-abstraction-refactor`, `split-large-files`, `writing-for-agents` |
| Reviewer | `reviewer` / `review` | 1, 3 | Yes | Admitted | `reviewer-investigation`, `code-review-auto`, `reviewer-communication` | Manual: `code-review`, `c4-diff` |
| Tester | `tester` / `testing` | 1, 3 | Yes | Not yet admitted | None | Automatic: `tester-inspection`, `tester-communication`, the proposed defaults once RelayView admits the pair |
RelayView calls the Designer role the Specification Designer. From
`v0.15.0`, `specification-designer-default` replaces `issue-designer-default`
as this repository's Designer default. The replacement adds guidance on
requested proof artifacts, fast-test completeness, declared test resources,
and the recommended review stamp, and the eight methods carry the same
guidance where they touch those decisions. RelayView still pins
`issue-designer-default` and assigns it until it pins `v0.15.0`, which needs
the owner changes the
[contract](docs/authoritative/instruction-package-contract.md#relayview-adoption-of-the-specification-designer-default)
lists. `issue-designer-default` stays unchanged at `v0.13.0` so retained
sessions reconstruct their captured bytes.
RelayView's Tester runs today without skill assignment, and RelayView has no
Technical Coordinator role yet. This repository already validates both pairs
and publishes the Tester packages described in
[Tester packages](#tester-packages), so a fork can be prepared, but RelayView
refuses `tester` and `coordinator` packages until it adopts them; the
[contract](docs/authoritative/instruction-package-contract.md#relayview-adoption-of-the-tester-and-coordinator-pairs)
lists the proposed releases and the owner changes each pair needs.
Other first-party packages run only when an Operator assigns them; see
[assign other first-party guidance](#assign-other-first-party-guidance). A
manual package's text stays out of a session until an Operator invokes it: by
sending `/skill:<name>` to a session that has it assigned, or, for a Designer
method, through the owner's method-entry gate.
## Package matrix
Mode comes from the `SKILL.md` frontmatter: `disable-model-invocation: true`
makes a package manual. Release is the sidecar's `source.reference`, the tag
whose bytes RelayView pins for that package.
| Package | Role / step | Mode | Schema | Sidecar extra | Version | Release | RelayView maintained default |
| --- | --- | --- | --- | --- | --- | --- | --- |
| `specification-designer-default` | `designer` / `design` | automatic | 1 | — | 0.15.0 | `v0.15.0` | Proposed Designer default |
| `issue-designer-default` | `designer` / `design` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Pinned Designer default; replaced by `specification-designer-default` once RelayView pins `v0.15.0` |
| `designer-domain-modeling` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `designer-grilling` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `designer-prototype` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `designer-research` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `designer-to-spec` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `designer-to-tickets` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `designer-triage` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `designer-wayfinder` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `planner-investigation` | `planner` / `planning` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Planner automatic, 1st |
| `planner-scope` | `planner` / `planning` | automatic | 2 | `issueClaim: status/in-progress` | 0.13.0 | `v0.13.0` | Planner automatic, 2nd |
| `planner-communication` | `planner` / `planning` | automatic | 3 | `communication_context` | 0.14.0 | `v0.14.0` | Planner automatic, 3rd |
| `research-auto` | `planner` / `planning` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Planner automatic, 4th |
| `codebase-design` | `planner` / `planning` | automatic | 1 | — | 0.13.0 | `v0.13.0` | No |
| `grill-me` | `planner` / `planning` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `grilling` | `planner` / `planning` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `improve-codebase-architecture` | `planner` / `planning` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `research` | `planner` / `planning` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `to-questionnaire` | `planner` / `planning` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `implementer-investigation` | `implementer` / `implementation` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Implementer automatic, 1st |
| `implementer-handoff` | `implementer` / `implementation` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Implementer automatic, 2nd |
| `implementer-communication` | `implementer` / `implementation` | automatic | 3 | `communication_context` | 0.13.0 | `v0.13.0` | Implementer automatic, 3rd |
| `diagnosing-bugs` | `implementer` / `implementation` | automatic | 1 | — | 0.13.0 | `v0.13.0` | No |
| `domain-modeling` | `implementer` / `implementation` | automatic | 1 | — | 0.13.0 | `v0.13.0` | No |
| `tdd-auto` | `implementer` / `implementation` | automatic | 1 | — | 0.13.0 | `v0.13.0` | No |
| `migrate-to-shoehorn` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `pr` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `prototype` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `scaffold-exercises` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `shared-abstraction-refactor` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `split-large-files` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `tdd` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `writing-for-agents` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `reviewer-investigation` | `reviewer` / `review` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Reviewer automatic, 1st |
| `code-review-auto` | `reviewer` / `review` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Reviewer automatic, 2nd |
| `reviewer-communication` | `reviewer` / `review` | automatic | 3 | `communication_context` | 0.13.0 | `v0.13.0` | Reviewer automatic, 3rd |
| `c4-diff` | `reviewer` / `review` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `code-review` | `reviewer` / `review` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `tester-inspection` | `tester` / `testing` | automatic | 1 | — | 0.15.0 | `v0.15.0` | No; pair not yet admitted |
| `tester-communication` | `tester` / `testing` | automatic | 3 | `communication_context` | 0.15.0 | `v0.15.0` | No; pair not yet admitted |
`tests/test_overriding.py` fails when this table disagrees with a package's
sidecar or frontmatter.
### Tester packages
The two Tester packages are the proposed automatic defaults for the Tester,
also called the Building Inspector, once RelayView admits the
`tester`/`testing` pair. Each replaces independently:
- **`tester-inspection`** carries the inspection method: boot the exact sealed
candidate and use it as a person would, capture the specification's
requested proof artifacts, record obvious UX and runtime defects, and
assemble a Verification Proof Bundle that separates verified runtime
observations from remaining manual Operator checks. It never edits product
code or substitutes a mock for a declared resource, and it escalates with a
typed reason (`verification_incomplete`, `behavioral_tradeoff`, or
`unique_resource_needed`) and a short risk summary. Fork it to change how
the Tester exercises a candidate, which defects it looks for, or when it
escalates. Keep the separation between verified observations and manual
checks: without it, a Review Packet can present an unverified claim as
proof.
- **`tester-communication`** carries the presentation of a proof summary:
observed behavior, defects found, a manual-check checklist, and any
escalation, each pointing to its artifact. Fork it to change tone, order,
or detail; keep `schemaVersion: 3` and the `communication_context`
treatment.
Neither package defines the owner's record format for the bundle or an
escalation, how a bundle is bound to its candidate, or which tools and
resources the Tester may use; RelayView's owner would supply those. The
packages describe only what the Tester observes, writes, and presents within
them.
## What a skill controls and what the owner enforces
A package is model-facing text. It changes how an agent works inside its role;
it never changes what the role may do. A package that requests tools,
permissions, network access, or scripts fails both the local check and owner
admission.
| Concern | A skill can customize | RelayView's owner enforces regardless of skill prose | Owner rule status |
| --- | --- | --- | --- |
| Tools, network, credentials | Which assigned tools to reach for, and in what order | Each role's tool allowlist, network policy, filesystem confinement, and credentials come from its owner capability profile | Current |
| Which instructions load | Its own text and declared resources | Ambient skill discovery is off; only admitted packages are captured, and their bytes and package identity are verified before every launch | Current |
| Specification work | Interview style, question order, method entry, draft shape | Publication, the method-entry gate, and Operator acceptance of a specification | Current |
| Planning and investigation | Investigation methods, scope analysis, research method, Plan presentation | Plan authority, finalization schemas, validation-manifest adoption, research budgets and tool contracts | Current |
| Issue claim | Nothing in prose | The schema-2 `issueClaim` sidecar value selects the claim; the owner validates and performs the Gitea change after proved implementation handoff | Current |
| Implementation handoff | Change focus, clarification cadence, documentation-writing technique | Report fields, documentation disposition, evidence submission, clean committed candidates, stop rules | Current |
| Review | Finding presentation and inspection techniques | Exact-candidate scope, dispositions, correction routing, review and merge gates | Current |
| Communication | Tone, detail, examples, acknowledgements | Publication identity and order, mandatory status, complete durable artifacts; communication packages load only when the frozen `communication_context` treatment is on | Current |
| Manual methods | When a method is worth invoking | `/skill:<name>` reaches a session only if that name is in its captured assignment | Current |
| Acceptance | Nothing | Operator acceptance requires a person | Current |
| Coordination | Wave-selection and contention heuristics, Control Tower reporting tone | Dispatch authority, resource leases, nudge budgets and cooldowns | Proposed |
| Testing | How to exercise a candidate, which defects to look for, when to escalate, and how to present a proof summary | The Tester's tool and resource confinement, the exact-candidate binding of the Verification Proof Bundle and its fields, invalidation of proof from a superseded candidate, and the typed escalation record | Proposed |
| Review tiers | How to frame a risk or escalation summary, and how the Specification Designer proposes proof artifacts, fast-test completeness, test resources, and a review stamp | Repository trust ceiling (Layer A), the Operator's per-specification stamp (Layer B), and the one-way escalation ratchet with typed reasons (Layer C): no agent may downgrade `operator_review_required` | Proposed |
Proposed rows come from RelayView's coordinator and verification operating
model (`docs/speculative/coordinator-and-verification-operating-model.md` in
RelayView), which RelayView documents as speculative architecture. Do not rely on
an owner rule marked Proposed; until RelayView ships it, a package cannot
assume it.
Existing sessions keep the bytes they captured at launch. A new selection
affects only future sessions.
## Fork and override recipe
This example forks `planner-scope` as `team-planner-scope`. Substitute your
own package and name throughout.
1. **Copy the package under a distinct name.** The directory name, the
frontmatter `name`, and the RelayView import ID must all be equal and must
differ from every first-party ID; RelayView never lets a configured or
imported package overwrite an admitted ID.
```sh
cp -R packages/planner-scope team-planner-scope
```
2. **Edit the frontmatter.** Set `name: team-planner-scope`, give it your own
`relayview-display-name` and `relayview-version`, and keep
`disable-model-invocation` as it is unless you mean to change the mode.
Then edit the instructions and resources.
3. **Edit the sidecar.** Set `"source": {"kind": "user", "reference":
"team-planner-scope-1.0.0"}`. Keep `role`, `step`, and `schemaVersion`.
- A Planner scope fork keeps `schemaVersion: 2` and its `issueClaim` object
if it should keep the owner's linked-issue claim; schema 1 declares no
claim, and the owner then claims nothing. An automatic Planner assignment
may contain only one schema-2 package.
- A communication fork keeps `schemaVersion: 3` and
`"treatment": "communication_context"`, so RelayView keeps applying the
communication treatment boundary to it.
- Add any new resource to `files`; every file in the directory except the
sidecar must be declared.
4. **Recalculate the SHA-256 digests.** This rewrites every `files[].sha256`
from the current bytes:
```sh
python3 - team-planner-scope <<'EOF'
import hashlib, json, sys
from pathlib import Path
package = Path(sys.argv[1])
sidecar = package / "relayview-skill.json"
manifest = json.loads(sidecar.read_text())
for item in manifest["files"]:
item["sha256"] = hashlib.sha256((package / item["path"]).read_bytes()).hexdigest()
sidecar.write_text(json.dumps(manifest, indent=2) + "\n")
EOF
```
5. **Check and pack it.** `check` prints the package identity the owner will
record; `pack` writes a reproducible archive and prints its SHA-256.
```sh
python3 -m tools.packages check team-planner-scope
python3 -m tools.packages pack team-planner-scope dist/team-planner-scope.zip
```
Preserve `LICENSE` and `NOTICE.md` when you redistribute a fork; the archive
includes both.
6. **Install it.** Copy the package directory under the owner's configured
`trustedSkills.root`, which must not contain or sit inside any target
repository.
7. **Import it in RelayView Settings → Skills.** Enter the ID
`team-planner-scope` and the path `team-planner-scope/SKILL.md`, relative
to the trusted root. Import requires `source.kind: "user"`, validates the
package, and records its digest; it does not assign it. To change a
package after import, publish it under a new ID.
8. **Assign it.**
- **Planner, Implementer, Reviewer:** add the ID to a named set in
`trustedSkills.sets` with the matching `role`, `step`, and
`invocationMode`, restart the owner to load the set, then select the set
for the role in Settings → Skills and save. A saved automatic set
replaces the whole automatic assignment: list every package the role
should still run.
```yaml
trustedSkills:
sets:
- id: team-planning
name: Team planning
role: planner
step: planning
invocationMode: automatic
members: [planner-investigation, team-planner-scope, planner-communication, research-auto]
```
When a deployment's frozen communication treatment is off, RelayView
rejects a selected automatic set that contains a communication package;
leave `planner-communication` out of the set there.
- **Specification Designer:** select the imported package in the
Specification Designer card, as the default (an automatic package) or as
an optional method (a manual package), and save. No named set or restart
is needed.
New sessions for that role use the fork; existing sessions keep their
captured packages.
### Assign other first-party guidance
RelayView pre-admits the ten maintained Planner, Implementer, and Reviewer
defaults and the nine Designer packages. Settings import accepts only
`source.kind: "user"` packages, so any other first-party package, such as
`tdd-auto` or `grill-me`, is admitted through the owner catalog instead:
1. Copy the package directory from its release, for example
`packages/tdd-auto` at tag `v0.13.0`, under `trustedSkills.root`.
2. Add it to the catalog, keyed by its ID:
```yaml
trustedSkills:
catalog:
tdd-auto: tdd-auto/SKILL.md
```
3. Add the ID to a named set and select it as in step 8 above.
The eight Designer methods are already admitted. Select them as optional
methods in the Specification Designer card, or list their IDs in
`workflowPresets.designerSkills` and restart the owner; that list applies
until an Operator saves a Designer choice in Settings.
## Release identity
A release tag pins public source. Published tags are never moved or rebuilt: a
change to any package byte ships under a new tag, and RelayView keeps every
earlier bundle so retained sessions can reconstruct their exact packages.
RelayView copies a release into `first-party-skills/<tag>/` with a
`bundle-lock.json` recording the source repository, the release tag and
commit, each package's identity and archive SHA-256, and the SHA-256 of every
bundled file, including `LICENSE` and `NOTICE.md`. RelayView's
`npm run verify:first-party-skills-source` recomputes those values from the
tagged source and fails on any difference. To recompute them yourself, for
example for `planner-communication` at `v0.14.0`:
```sh
git fetch --tags origin
git switch --detach v0.14.0
python3 -m tools.packages check packages/planner-communication
python3 -m tools.packages pack packages/planner-communication dist/planner-communication.zip
git switch main
```
The two printed digests match the `identity` and `archiveSha256` recorded for
`planner-communication` in RelayView's `first-party-skills/v0.14.0/bundle-lock.json`.
A fork's changed `source` gives it a distinct identity even when its
instructions match a first-party package, so a bundled update never replaces
a fork.
## Layer-4 authoring template
Correct a recurring defect as low in this trust pyramid as possible, and write
a skill only for a judgment call nothing lower can decide.
1. **Architecture and APIs** — a boundary that makes the failure impossible.
2. **Static checks and fast tests** — a lint rule with a root-cause message, a
type constraint, an import fence, or a regression test.
3. **Verification harness** — a feature map entry, verification driver,
property test, or formal check.
4. **A role skill** — judgment that cannot be checked deterministically.
RelayView's proposed Guardrail Proposal loop, described in the same
speculative operating model, uses this order. It would draft layer 1–3 tasks or a
candidate layer-4 skill when a defect escapes, and would activate a skill only
on explicit Operator approval. Until RelayView ships it, an Operator activates
a layer-4 skill through the [fork and override recipe](#fork-and-override-recipe).
Before writing a layer-4 skill, confirm each item:
- [ ] No architecture change, lint rule, type, test, or harness check can catch
this failure class; if one can, put the correction there instead.
- [ ] The guidance concerns a judgment the role makes, not a tool, permission,
gate, or schema the owner controls.
- [ ] It names one role and step, and adds no instruction an existing package
in that assignment already gives.
Start from this template. Replace each `<...>` with your text, keep the
frontmatter keys exactly as shown, and set `role` and `step` in the sidecar to
the one pair the guidance serves.
```markdown
---
name: team-review-judgment
description: Weigh <the judgment call> when reviewing the assigned candidate.
metadata:
relayview-display-name: Team review judgment
relayview-version: 1.0.0
---
# Team review judgment
Use this guidance when <the situation that needs judgment>, which no check in the repository decides.
## Decide
1. Gather <the facts the decision needs>, reading them from <where they live>.
2. Weigh <the tradeoff>; <the factor> tips it toward <the outcome>.
3. Report the decision, its reason, and the evidence you read.
## Check before finishing
- <A question the agent can answer from its own output, such as "Does each finding name the file and the rule it breaks?">
```
```json
{
"schemaVersion": 1,
"source": {
"kind": "user",
"reference": "team-review-judgment-1.0.0"
},
"role": "reviewer",
"step": "review",
"files": [
{
"path": "SKILL.md",
"sha256": "<sha256 of SKILL.md>"
}
]
}
```
After writing it, confirm each item:
- [ ] Each instruction states an action and a check the agent can run on its
own result, rather than only what to avoid.
- [ ] The text claims no tool, permission, network access, workflow authority,
or owner schema, and does not restate owner-enforced rules.
- [ ] The guidance changed behavior across several runs, judged from each
run's tool calls, not one successful conversation.
- [ ] `python3 -m tools.packages check team-review-judgment` (with your
directory name) passes after recalculating the digest.
+11 -37
View File
@@ -4,38 +4,9 @@ Public source for RelayView-maintained instruction-only role skills and an illus
## Packages and support
| Directory | Status | Role / step | Version |
| --- | --- | --- | --- |
| `packages/{planner,implementer,reviewer}-investigation` | Maintained automatic guidance | One matching role / step each | 0.13.0 |
| `packages/planner-scope` | Maintained default | Planner / planning | 0.13.0 |
| `packages/implementer-handoff` | Maintained default | Implementer / implementation | 0.13.0 |
| `packages/issue-designer-default` | Maintained default | Designer / design | 0.13.0 |
| `packages/designer-wayfinder`, `designer-grilling` | Optional manual guidance | Designer / design | 0.13.0 |
| `packages/designer-prototype` | Optional manual guidance | Designer / design | 0.13.0 |
| `packages/designer-research`, `designer-domain-modeling`, `designer-triage` | Optional manual guidance | Designer / design | 0.13.0 |
| `packages/designer-to-spec`, `designer-to-tickets` | Optional manual guidance | Designer / design | 0.13.0 |
| `packages/codebase-design` | Optional guidance | Planner / planning | 0.13.0 |
| `packages/grill-me` | Optional guidance | Planner / planning | 0.13.0 |
| `packages/grilling` | Optional guidance | Planner / planning | 0.13.0 |
| `packages/to-questionnaire` | Optional guidance | Planner / planning | 0.13.0 |
| `packages/research` | Optional guidance | Planner / planning | 0.13.0 |
| `packages/improve-codebase-architecture` | Optional guidance | Planner / planning | 0.13.0 |
| `packages/diagnosing-bugs` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/domain-modeling` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/migrate-to-shoehorn` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/pr` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/prototype` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/scaffold-exercises` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/shared-abstraction-refactor` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/split-large-files` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/tdd` | Optional manual guidance | Implementer / implementation | 0.13.0 |
| `packages/tdd-auto` | Optional automatic guidance | Implementer / implementation | 0.13.0 |
| `packages/writing-for-agents` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/code-review` | Optional guidance | Reviewer / review | 0.13.0 |
| `packages/c4-diff` | Optional guidance | Reviewer / review | 0.13.0 |
| `examples/starter-planner` | Illustrative starter; not a production default | Planner / planning | 0.13.0 |
[OVERRIDING.md](OVERRIDING.md) lists every package with its role and step, automatic or manual mode, schema, version, and release, and marks the defaults RelayView assigns to each role. It also separates what a package can change from what RelayView's owner enforces, and gives the recipe for publishing and assigning a fork. `examples/starter-planner` is an illustrative Planner starter, not a production default.
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 maintained Planner, Implementer, and Reviewer defaults remain available alongside the pinned Specification 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`. 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
@@ -68,9 +39,7 @@ python -m tools.packages pack examples/starter-planner dist/starter-planner.zip
Replace `examples/starter-planner` in the last two commands with your package directory. The `pack` command writes a reproducible ZIP containing the package, `LICENSE`, and `NOTICE.md`, then prints its SHA-256. The check returns the owner's package identity digest. Both use only Python 3's standard library and this repository's source. Preserve the license and notice when redistributing the package or fork.
To use a user fork, place its closed package directory under the owner's configured trusted root. For Planner, Implementer, or Reviewer guidance, use Settings → Skills to import the relative `SKILL.md` path under a new unique ID. Import validates and records the package; it does not assign it. Add that ID to a role-compatible named set in the owner configuration and restart the owner to load the set. Then select the set for the matching role in Settings → Skills and save. For an optional Designer method, declare its ID and relative `SKILL.md` path in `trustedSkills.catalog`, list the ID in `workflowPresets.designerSkills`, and restart the owner. Designer has no Settings import or set selector for this assignment. These assignments affect future sessions; existing sessions retain their captured bytes. The owner's admission remains authoritative even when these local checks pass.
To use a maintained Planner or Implementer default, copy its release package under the same trusted root, admit its `SKILL.md` through the owner catalog, then select it for its declared role in Settings. Settings import accepts user-source packages; configure first-party packages in the owner catalog. Select a fork with `source.kind: user` and a distinct ID to replace a Planner or Implementer future assignment. RelayView pins and assigns the Issue Designer default automatically; its optional methods use `workflowPresets.designerSkills`. Planner guidance uses existing read and planning tools; Implementer guidance uses existing implementation and reporting tools. Guidance selection does not change a role's tools, credentials, lifecycle stages, validation requirements, Gitea effects, review, merge, or Operator acceptance. The owner keeps the existing Gitea task workflow.
To replace a default or add guidance in RelayView, follow the [fork and override recipe](OVERRIDING.md#fork-and-override-recipe). Assignments affect future sessions; existing sessions retain their captured bytes. The owner's admission remains authoritative even when these local checks pass. Guidance selection does not change a role's tools, credentials, lifecycle stages, validation requirements, Gitea effects, review, merge, or Operator acceptance.
## Write the guidance
@@ -84,14 +53,15 @@ Judge a change over several runs, using the tool calls each run made, not one su
## Release identity
A release tag pins public source. CI runs package checks and archives from that source. RelayView's bundled copy records the source tag and commit plus each package identity and file hash, then verifies the bytes in its own focused test. A bundled update creates a new release identity; it does not overwrite a user fork.
A release tag pins public source. CI runs package checks and archives from that source. RelayView's bundled copy records the source tag and commit plus each package identity and file hash, then verifies the bytes in its own focused test. A bundled update creates a new release identity; it does not overwrite a user fork. [OVERRIDING.md](OVERRIDING.md#release-identity) shows how to recompute a release's identity and archive digests and compare them with RelayView's `bundle-lock.json`.
The MIT license covers this repository only. The contribution policy is in [CONTRIBUTING.md](CONTRIBUTING.md); dependency notices are in [NOTICE.md](NOTICE.md).
The automatic `code-review-auto` package supplies optional bounded, path-aware finding presentation. Broader two-axis standards/spec inspection remains in the manual `code-review` package. Both use only the assigned Reviewer capabilities; required adequacy, disposition and recovery stay with the owner.
Automatic role communication packages (`planner-communication`,
`implementer-communication`, `reviewer-communication`) use schema 3 with
`implementer-communication`, `reviewer-communication`,
`tester-communication`) use schema 3 with
`treatment: "communication_context"`. This metadata declares their ablation
boundary; it grants no tools or authority. Preserve the declaration in forks.
RelayView rejects these packages in a named automatic set when the frozen
@@ -102,4 +72,8 @@ answer/detail/example/acknowledgement presentation only.
The automatic `research-auto` Planner package supplies primary-source selection, preferred-domain exploration/refinement and evidence-reading methodology, publication/version checking, corroboration and already-admitted empirical evidence methods. The manual `research` package remains available on request. Tool arguments, budgets, continuation, recovery and untrusted research provenance belong to the owner.
Planner direct-address presentation is supplied by planner-communication v0.14.0. Other packages retain their existing versions. Forks can replace this presentation while retaining communication_context treatment metadata.
`specification-designer-default` v0.15.0 replaces `issue-designer-default` as this repository's Specification Designer default; RelayView keeps assigning `issue-designer-default` until it pins v0.15.0. With it, the eight Designer methods move to v0.15.0 with Specification Designer naming. They help the Operator specify requested proof artifacts, fast-test completeness, declared test resources, and a recommended Layer B review stamp; the Operator sets the stamp, and RelayView's owner decides review. `issue-designer-default` remains unchanged at v0.13.0 for retained sessions.
The automatic Tester packages `tester-inspection` and `tester-communication`, versioned 0.15.0 for the not-yet-tagged `v0.15.0` release, teach the Building Inspector method: exercise the exact sealed candidate as a user, capture the requested proof, separate verified runtime observations from remaining manual Operator checks, and escalate with a typed reason. They are the proposed Tester defaults; RelayView admits them only after it adopts the `tester`/`testing` pair. See [Tester packages](OVERRIDING.md#tester-packages).
Planner direct-address presentation is supplied by planner-communication v0.14.0. Apart from the new Tester and Specification Designer packages, other packages retain their existing versions. Forks can replace this presentation while retaining communication_context treatment metadata.
@@ -0,0 +1,183 @@
# Instruction package contract
An instruction package is one closed directory: `SKILL.md`, optional declared
`.md`/`.txt` resources, and the `relayview-skill.json` sidecar.
`tools/packages.py` enforces this contract. Its `check` action prints a
package's identity and its `pack` action builds the release archive and prints
its SHA-256, for example:
```sh
python3 -m tools.packages check packages/planner-scope
python3 -m tools.packages pack packages/planner-scope dist/planner-scope.zip
```
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": <label or null>}`;
`planner`/`planning` only. A label matches `status/[a-z][a-z0-9-]{0,63}` and
is never `status/ready-for-agent`.
- **Schema 3** — schema 1 plus `treatment: "communication_context"`; every
pair except `designer`/`design`. The treatment marks the package's ablation
boundary and grants no tools or authority.
`source` is exactly `{"kind": "first-party" | "user", "reference": <1–128 of
[A-Za-z0-9._:-]>}`. `files` lists 1–16 `{"path", "sha256"}` entries: unique
relative paths without `.`/`..`/empty segments or backslashes, at most 256
characters, `SKILL.md` required, other paths ending `.md` or `.txt`, and
lower-case 64-hex SHA-256 digests. Any additional field — such as `tools`,
`permissions`, or `network` — fails the check.
## Package contents
- Every file in the directory except the sidecar is declared, and every
declared file is present with exactly its declared SHA-256.
- The package directory is a real directory, not a symbolic link, and the
sidecar is a regular file.
- No symbolic links, executable bits, or non-regular files; at most 64 entries
(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.
## `SKILL.md` frontmatter
`SKILL.md` opens with a frontmatter block between `---` lines. The block
requires `name`, `description`, and `metadata`, and allows only these keys,
each at most once:
```yaml
name: <the directory name: hyphen-separated lower-case letters and digits, at most 64 characters>
description: <non-empty, at most 1024 characters>
disable-model-invocation: true
metadata:
relayview-display-name: <at most 128 characters>
relayview-version: <major.minor.patch>
```
`disable-model-invocation` is optional and is exactly `true` or `false`; `true`
makes the package manual-only. 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 keys, each indented two spaces. The block has no
blank or comment lines. The block and its delimiters contain no line-break
character other than LF (such as CR, vertical tab, form feed, or a Unicode
line or paragraph separator), and the closing `---` ends with LF or the end of
the file. This line-break rule does not apply to the Markdown body. 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, sorted as whole strings
by Unicode code point, 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>/`,
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`. ZIP headers also record the creating
system, so release digests are computed on a POSIX host, as this repository's
CI does; on such a host the archive digest depends only on those bytes.
RelayView's `scripts/verify-first-party-skills-source.py` recomputes both
values from a tagged release and compares them with its
`first-party-skills/<tag>/bundle-lock.json`. The tests in
`tests/test_role_steps.py` mirror that computation and pin the identity
framing. The `v0.1.0` archive predates the bundled `LICENSE` and `NOTICE.md`;
every later release uses the archive format above.
## Releases are immutable
A published tag is never moved or rebuilt. A change to any package byte ships
under a new release tag; RelayView keeps earlier bundles to reconstruct
retained sessions.
## RelayView adoption of the Tester and Coordinator pairs
RelayView's owner admits only `planner`, `implementer`, `reviewer`, and
`designer` packages. No released package declares `tester` or `coordinator`
yet. `tester-inspection` (schema 1) and `tester-communication` (schema 3)
declare `tester`/`testing` in this repository with source reference `v0.15.0`; that tag
is not yet published. The planned releases below are proposed, not published:
| Proposed release | New pair | Planned packages |
| --- | --- | --- |
| `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) |
Before RelayView pins a release containing either pair, it must:
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 for these pairs, so existing bundle locks stay valid.
## RelayView adoption of the Specification Designer default
From `v0.15.0`, `specification-designer-default` replaces
`issue-designer-default` as the automatic `designer`/`design` package.
`issue-designer-default` stays in `packages/` with its `v0.13.0` bytes, so its
identity and every earlier release are unchanged; it is no longer a maintained
default. The eight manual Designer methods keep their IDs.
RelayView's owner names its Designer default by ID. Before RelayView pins a
release whose Designer default is `specification-designer-default`, it must:
1. **Rename the default.** In `src/owner/workflowPresets.ts`, use the new ID
where the owner assigns the Designer default and its maintained comparison
selection, checks that optional Designer skills differ from it, and
requires it to be the one automatic pinned Designer package.
2. **Load the new release as current.** The current catalog admits the nine
`v0.15.0` packages with their new identities, and new Designer sessions
capture the default and any assigned methods from them. Today the current
catalog takes its Designer packages from the operator release:
`loadRelease` hard-codes their release as `v0.13.0`, and
`OPERATOR_RELEASE_PACKAGES` holds their identities.
3. **Keep reconstructing `v0.13.0` sessions.** A session that recorded the
`v0.13.0` Designer packages, including `issue-designer-default`, must still
resolve to those exact bytes, and earlier lineages must keep resolving as
they do now. Today `resolveDesignerSkills` decides whether to pass a
recorded assignment down the retained catalog chain by comparing its
recorded release with the fixed string `v0.13.0`, so that routing must
change with the new current release.
4. **Pin and verify the release.** Add `first-party-skills/v0.15.0/` with its
`bundle-lock.json`, and add the bundle to
`scripts/verify-first-party-skills-source.py`.
+5 -5
View File
@@ -1,12 +1,12 @@
---
name: designer-domain-modeling
description: Sharpen project terms, invariants, and boundaries for an issue draft.
description: Sharpen project terms, invariants, and boundaries for a specification draft.
disable-model-invocation: true
metadata:
relayview-display-name: Designer domain modeling
relayview-version: 0.13.0
relayview-display-name: Specification Designer domain modeling
relayview-version: 0.15.0
---
# Domain modeling
# Specification Designer domain modeling
Read the assigned project's current context and relevant authoritative contracts. Name concepts in the project's own vocabulary; identify identities, state transitions, invariants, and boundaries that the proposed work touches. Ask the Operator when a term or invariant changes acceptance. Put the resulting definitions and open choices in the draft without claiming a repository document was edited.
Read the assigned project's current context and relevant authoritative contracts. Name concepts in the project's own vocabulary; identify identities, state transitions, invariants, and boundaries that the proposed work touches. For each invariant, note whether a fast deterministic test can check it or it needs runtime or human judgment, and any test resource checking it requires; these notes inform the specification's proof, fast-test completeness, and review stamp. Ask the Operator when a term or invariant changes acceptance. Put the resulting definitions and open choices in the draft without claiming a repository document was edited.
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "db980f11e64f3936e913d33ba71e7f33b5ad171c82af9c814cb7fd32b43b03e2"
"sha256": "84ef1f0f44c07eaf4da5dc06fc50e2b7d8d7b04eab665b9a903e0e5f2d5811b5"
}
]
}
+5 -5
View File
@@ -1,12 +1,12 @@
---
name: designer-grilling
description: Stress test one proposed issue design through focused Operator questions.
description: Stress test one proposed specification through focused Operator questions.
disable-model-invocation: true
metadata:
relayview-display-name: Designer grilling
relayview-version: 0.13.0
relayview-display-name: Specification Designer grilling
relayview-version: 0.15.0
---
# Grilling
# Specification Designer grilling
State the design and scope to be challenged and seek the Operator's agreement before entering this method. Probe one consequential assumption at a time: behavior, boundary, dependency, failure, or verification. Use each answer to choose the next question. Stop when the important branches are resolved or explicitly left open; summarize the agreed design and open decisions in the draft.
State the design and scope to be challenged and seek the Operator's agreement before entering this method. Probe one consequential assumption at a time: behavior, boundary, dependency, failure, or verification. Include the proof decisions: challenge a requested proof artifact that would not show the behavior, a `complete` fast-test completeness claim that depends on a browser, timing, or perception, a missing test resource, and a review stamp the evidence does not support. Use each answer to choose the next question. Stop when the important branches are resolved or explicitly left open; summarize the agreed design and open decisions in the draft.
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "e1cbf117510c6497241122ab8f7564d78d7fdaf85ba6e3b43256c881dea2d6bb"
"sha256": "cb3c310041cb16c701510839eec13d1578aca66e7e4008d09f63e8aa8c3a1596"
}
]
}
+5 -5
View File
@@ -1,15 +1,15 @@
---
name: designer-prototype
description: Plan a bounded throwaway prototype to answer a design question.
description: Plan a bounded throwaway prototype to answer a specification question.
disable-model-invocation: true
metadata:
relayview-display-name: Designer prototype
relayview-version: 0.13.0
relayview-display-name: Specification Designer prototype
relayview-version: 0.15.0
---
# Prototype
# Specification Designer prototype
Propose the exact question, bounded code or data scope, expected preview or data effects, and limits to the Operator before entering this method. Use only owner-admitted prototype controls after agreement. Treat observations as evidence about the question, not production behavior. Record what was tried, observed, and still uncertain; keep throwaway changes out of the issue's implementation claim.
Propose the exact question, bounded code or data scope, expected preview or data effects, and limits to the Operator before entering this method. Use only owner-admitted prototype controls after agreement. Treat observations as evidence about the question, not production behavior. Record what was tried, observed, and still uncertain; keep throwaway changes out of the issue's implementation claim. Use what the Operator saw to settle the specification's requested proof artifacts, since the prototype often shows which recording or screenshot will prove the real change, and to judge whether fast-test completeness is realistic, which test resources real verification needs, and which review stamp to recommend. Behavior the Operator had to judge by using it usually needs runtime or human judgment and keeps `operator_review_required`.
## Let the Operator try it as a user
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "ebf3ff2a5321ca8984e318d37a37c00b9ad9ef3c7966e9cf04eeab996eb16ae3"
"sha256": "1a814e82c0538adfe7c5ae4c6309ef52b516bea3ce4c21327e4faebd7f7160e2"
}
]
}
+5 -5
View File
@@ -1,12 +1,12 @@
---
name: designer-research
description: Research a design question using admitted repository, tracker, and public sources.
description: Research a specification question using admitted repository, tracker, and public sources.
disable-model-invocation: true
metadata:
relayview-display-name: Designer research
relayview-version: 0.13.0
relayview-display-name: Specification Designer research
relayview-version: 0.15.0
---
# Research
# Specification Designer research
Frame the question and the decision it informs. Prefer current primary sources and the assigned repository's authoritative documents. Use only the owner's assigned repository, tracker, and brokered public research tools and active request budget. For each conclusion, keep source, observation time, and completeness visible. Distinguish a source statement from your inference and record material gaps in the draft.
Frame the question and the decision it informs. Prefer current primary sources and the assigned repository's authoritative documents. Use only the owner's assigned repository, tracker, and brokered public research tools and active request budget. For each conclusion, keep source, observation time, and completeness visible. Distinguish a source statement from your inference and record material gaps in the draft. Research can also settle verification facts: which proof the project can produce, whether existing tests make fast-test completeness realistic, and which test resource or unique resource verification depends on. Report them as findings that inform the Operator's review stamp.
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "d745d68f04984c5d69ec0356da24c2147eb9738003096e792f6ad3a72b040cf0"
"sha256": "14230b646b787710e160f8b96f4254dc0b5243df3979ce1955dffa07c21b2311"
}
]
}
+14 -5
View File
@@ -1,12 +1,21 @@
---
name: designer-to-spec
description: Turn an agreed problem into a complete reviewable issue specification.
description: Turn an agreed problem into a complete reviewable specification with requested proof, test resources, and a recommended review stamp.
disable-model-invocation: true
metadata:
relayview-display-name: Designer to spec
relayview-version: 0.13.0
relayview-display-name: Specification Designer to spec
relayview-version: 0.15.0
---
# To spec
# Specification Designer to spec
Use the agreed problem and observed project contracts to draft an outcome, scope boundaries, acceptance observations, failure and recovery behavior, and open decisions. Check prerequisites against the assigned tracker and mark uncertain links as proposed. Save the complete text through the owner-stored draft. The Operator decides readiness and publication.
Use the agreed problem and observed project contracts to draft an outcome, scope boundaries, acceptance observations, failure and recovery behavior, and open decisions. Check prerequisites against the assigned tracker and mark uncertain links as proposed.
Complete the specification's proof and review requirements with the Operator:
- **Requested proof artifacts:** each names what it shows and the result that passes, chosen from a browser recording, screenshots, a CLI/HTTP trace, a statechart, or fast automated tests only; request fast automated tests only by itself, and only when fast-test completeness is `complete`.
- **Fast-test completeness:** `complete` when named deterministic tests running in seconds verify every acceptance observation; otherwise `requires_runtime_or_human_judgment`.
- **Test resources:** managed profiles such as `ml-server:<model>` or `gpu-worker`, or `unique_resource_needed` with the manual steps the Operator performs.
- **Layer B review stamp:** recommend `operator_review_required` unless the specification is fast-test complete, needs no unique resource, and stays outside sensitive boundaries such as public contracts, migrations, security, release configuration, and user-facing screens; then offer `auto_merge_eligible` with that reasoning. The Operator sets the stamp.
Save the complete text through the owner-stored draft. The Operator decides readiness and publication.
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "96afff887cda29d1a2447ef4ccd8f6dd3fbf00b622623bd3d69d6bc0f1efc40d"
"sha256": "919cabb069770b36163da7aa2956d0c268f7e962a540fc0252b4fda40b570b38"
}
]
}
+5 -5
View File
@@ -1,12 +1,12 @@
---
name: designer-to-tickets
description: Decompose an agreed specification into ordered issue proposals.
description: Decompose an agreed specification into ordered issue proposals, each with its own proof and review requirements.
disable-model-invocation: true
metadata:
relayview-display-name: Designer to tickets
relayview-version: 0.13.0
relayview-display-name: Specification Designer to tickets
relayview-version: 0.15.0
---
# To tickets
# Specification Designer to tickets
Choose independently reviewable slices with observable outcomes and prerequisite edges only where one slice truly requires another. For each proposed issue, state scope, acceptance, verification, and context a cold-start agent needs. Present the ordered set and relationship rationale to the Operator. Keep proposals private until Operator review and owner publication.
Choose independently reviewable slices with observable outcomes and prerequisite edges only where one slice truly requires another. For each proposed issue, state scope, acceptance, verification, and context a cold-start agent needs. Give each its own requested proof artifacts, fast-test completeness, test resources, and recommended Layer B review stamp. Where the slices stay independently valuable, separate work that fast deterministic tests verify completely from work that needs runtime or human judgment, so a fast-test-complete slice that needs no unique resource and stays outside sensitive boundaries can be offered as `auto_merge_eligible` while the other keeps `operator_review_required`. Present the ordered set and relationship rationale to the Operator. Keep proposals private until Operator review and owner publication.
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "b52ad8f158a1aa27c469e33e9f15b3b3f47ad8c3658444ee0fc6d137ed80ad53"
"sha256": "b35987c767c838ce5f91fe09ea93068e185cfec6189de7ad52930ba1d9da2f85"
}
]
}
+5 -5
View File
@@ -1,12 +1,12 @@
---
name: designer-triage
description: Classify and route an observed issue before drafting work.
description: Classify and route an observed issue before drafting a specification.
disable-model-invocation: true
metadata:
relayview-display-name: Designer triage
relayview-version: 0.13.0
relayview-display-name: Specification Designer triage
relayview-version: 0.15.0
---
# Triage
# Specification Designer triage
Observe the current report and related tracker state. Separate verified symptoms, missing information, proposed behavior, and duplicate or prerequisite work. Suggest the smallest useful next state and explain the evidence for it. Draft an issue or question for Operator review; only owner controls can change tracker status or placement.
Observe the current report and related tracker state. Separate verified symptoms, missing information, proposed behavior, and duplicate or prerequisite work. Suggest the smallest useful next state and explain the evidence for it. When the next state is a fix, note the proof that would show it fixed, usually a reproduction that becomes a fast regression test, with its likely fast-test completeness, any test resource the reproduction needs, and a recommended review stamp. Draft an issue or question for Operator review; only owner controls can change tracker status or placement.
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "d09d9621c07476e1d3294d952ac85f011ac3ab83308a981817bcb991e70d402d"
"sha256": "e287bde23715c499085fdde8dbda3e2e03ab9e2f23eb4207eb7f857bababbaac"
}
]
}
+5 -5
View File
@@ -1,12 +1,12 @@
---
name: designer-wayfinder
description: Map an uncertain design decision into options and a Operator choice.
description: Map an uncertain specification decision into options and an Operator choice.
disable-model-invocation: true
metadata:
relayview-display-name: Designer Wayfinder
relayview-version: 0.13.0
relayview-display-name: Specification Designer Wayfinder
relayview-version: 0.15.0
---
# Wayfinder
# Specification Designer Wayfinder
Use this method for a decision whose alternatives materially change the work. First describe the decision, why it matters, and the bounded scope to the Operator; enter the method only after the Operator agrees. Observe current facts, list viable options with consequences and reversibility, and ask the smallest question that separates them. Record the Operator's decision and remaining uncertainty in the owner-stored draft when relevant. This is decision work, not a ready implementation claim.
Use this method for a decision whose alternatives materially change the work. First describe the decision, why it matters, and the bounded scope to the Operator; enter the method only after the Operator agrees. Observe current facts, list viable options with consequences and reversibility, including how each changes the proof the Operator would inspect, fast-test completeness, required test resources, and the review stamp it would support, and ask the smallest question that separates them. Record the Operator's decision and remaining uncertainty in the owner-stored draft when relevant. This is decision work, not a ready implementation claim.
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "fb441d89ae15ed309d85dd8af4ae151dd951fb155c19ccf672083cca876e2671"
"sha256": "30b5ff5c914ef038738f65360ce746b35824e2ede5d625f8fb9c1532782449dd"
}
]
}
@@ -0,0 +1,30 @@
---
name: specification-designer-default
description: Guide Specification Designer Chats from observed facts to a reviewable specification with requested proof, test resources, and a recommended review stamp.
metadata:
relayview-display-name: Specification Designer default
relayview-version: 0.15.0
---
# Specification Designer default
As the Specification Designer, help the Operator turn an intent into specifications that a new Planner can implement and a reviewer can verify without this Chat.
Check current facts before drafting. Read the assigned repository's relevant authoritative documentation, code, tests, and tracker observations; state the source, observation time, and any incomplete read. Keep proposed behavior separate from verified current behavior.
Choose the scale with the Operator: one issue for bounded work, an ordered issue set for dependent work, or a narrower question when the outcome is unclear. Ask only for decisions that change scope, acceptance, verification, or authority. A useful specification states the problem, observable outcome, boundaries, prerequisites, and verification including failure behavior. Preserve unresolved choices explicitly.
Use the owner-stored draft for one issue and the ordered set for dependent work. Give each item a complete body, an explicit readiness basis, and the relationships needed to read it independently. Keep known facts and proposed behavior distinct.
## Settle proof and review with the Operator
Before proposing readiness, settle these four decisions for each item. Propose a value from the observed tests, scripts, and environment, give the reason, and confirm it with the Operator.
1. **Requested Proof Artifacts.** Name the evidence the Operator will inspect at review: a browser recording, screenshots, a CLI/HTTP trace, a statechart, or fast automated tests only. Each request names what it shows and the result that passes, such as "a browser recording of saving a skill set, ending on the saved and effective badges", never "verify it works". Request fast automated tests only by itself, and only when Fast-Test Completeness is `complete`.
2. **Fast-Test Completeness.** Choose `complete` only when deterministic automated tests that run in seconds can verify every acceptance observation, and name those tests or the seams they need. Choose `requires_runtime_or_human_judgment` when any observation depends on a running application, a browser, a real service, timing, visual layout, or human perception, or when you cannot name the tests. When unsure, choose `requires_runtime_or_human_judgment` and say what would make the item `complete`. When the Operator leaves a decision open, recommend the cautious value: `requires_runtime_or_human_judgment` and `operator_review_required`.
3. **Declared test resources.** List each managed resource complete verification needs, as a profile such as `ml-server:<model>` for a specific loaded model or `gpu-worker`. Mark `unique_resource_needed` when verification needs something the system cannot provision, such as specialized hardware, an external account, a physical device, or the Operator's own judgment, and write the manual steps the Operator will perform. Keep a mock out of acceptance wherever a declared resource is required.
4. **Layer B Review Stamp.** Recommend `operator_review_required` by default. Recommend `auto_merge_eligible` only when Fast-Test Completeness is `complete`, no `unique_resource_needed` is declared, and the change stays outside sensitive boundaries: public contracts and APIs, schema migrations, authentication and security, CI and release configuration, user-facing screens, and new dependencies, network egress, secrets, or privileges. State which conditions hold. The Operator sets the stamp, and it records only their intent: RelayView's owner decides review. Today every completed task still waits for Operator acceptance, and RelayView's proposed review tiers keep a repository trust ceiling (Layer A) and typed escalations (Layer C) above any stamp. Recommend the stamp the evidence supports; never downgrade `operator_review_required` to spare the Operator a review.
## Mark readiness
At readiness marking, recheck the current issue and comments when an issue exists, cited authoritative documentation, source and tests, and the target and installed environment facts available through assigned tools or attributed Operator observations. Record when and how completely each input was observed. Include non-secret retrieval instructions for a test target, host or service setup, and verification when a future agent will need them. If a material input is stale or unavailable, mark the affected item `needs-info` and name its specific unresolved question and available evidence. Propose `ready-for-agent` only when a new Planner can start from the item and its references without this Chat. The Operator reviews the exact set and publishes through owner controls.
@@ -0,0 +1,15 @@
{
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "ee89b01302af4db2a27106a463f0b9f002e5cdbacd38e020cccabc348ced5355"
}
]
}
+22
View File
@@ -0,0 +1,22 @@
---
name: tester-communication
description: Communication style for the assigned tester; evidence-first proof summaries, proportional answers, Markdown and natural acknowledgements.
metadata:
relayview-display-name: Tester communication
relayview-version: 0.15.0
---
Lead with what you observed on the candidate, the defect you found, or the material uncertainty. Use detail proportional to the immediate question, with no fixed word, line, or token limit. Keep inspection effort independent of conversational length.
For user-facing messages, use Markdown when it makes the answer easier to read. A simple reply may be plain prose. Use concise headings, lists, tables, and inline code only when they help the content; avoid decorative structure. When a command, log excerpt, or trace needs a block, use a fenced code block with the correct language identifier if the language is known.
Keep the acknowledgement brief, clear, and professional, and vary its wording. Describe only work within your current authorization. Receipt never means completed inspection, a passed check, or approval.
Present a proof summary for the Review Packet evidence-first, in this order, and keep each item to the fact and its pointer:
1. **Observed behavior:** what you did and what the candidate visibly did, one line per flow, each pointing to the artifact that shows it.
2. **Defects found:** steps, expected and observed behavior, and the artifact pointer; say "None observed" when there are none.
3. **Manual-check checklist:** each remaining manual Operator check as a checkbox line with its steps, expected observation, and why it was not verified automatically.
4. **Escalation:** the typed reason and its one- or two-sentence risk summary, only when you escalated.
Name the exact candidate the summary covers. Write "observed" only for behavior you saw on that candidate; attribute anything else to its source. Before publishing, check that an Operator can tell from the summary alone what was verified, what was not, and what they must check themselves.
@@ -0,0 +1,16 @@
{
"schemaVersion": 3,
"source": {
"kind": "first-party",
"reference": "v0.15.0"
},
"role": "tester",
"step": "testing",
"treatment": "communication_context",
"files": [
{
"path": "SKILL.md",
"sha256": "bbe8947b610c7c82491e990a214cb9b55d6d31000a4c7dc574a3f485debc6c49"
}
]
}
+23
View File
@@ -0,0 +1,23 @@
---
name: tester-inspection
description: Inspect the sealed candidate as a real user, gather the requested proof, and report verified observations, remaining manual checks, and typed escalations.
metadata:
relayview-display-name: Tester inspection
relayview-version: 0.15.0
---
# Tester inspection
You are the Building Inspector. The Implementer built the candidate and the Planner or Reviewer checked its code; your job is to boot the sealed candidate and use it the way a person would, then report what you saw. Turn on the faucets and flush the toilets: open the screens, run the commands, and walk the flows the specification promises, rather than rereading the diff.
Work only on the exact candidate you were assigned, with the Tester's assigned tools and the resources the owner provides. You never edit product code, tests, or configuration, even to make a check pass. When something is wrong, record it as a defect with its evidence and leave the fix to the roles that own the code.
Follow the [inspection method](inspection.md) for the round:
1. Read the specification's requested proof artifacts, the verification goals the Planner derived from them, and any declared test resources.
2. Boot the candidate and exercise each core flow from a user's point of view, capturing each requested proof artifact as you go.
3. Note obvious UX and runtime defects you meet along the way, even outside the requested proof.
4. Assemble a concise Verification Proof Bundle bound to the exact candidate, separating verified runtime observations from remaining manual Operator checks.
5. Escalate with a typed reason and a short risk summary when a finding needs Operator judgment.
This step is complete when every requested proof artifact is either captured from the candidate or listed as a remaining manual Operator check with the reason it could not be captured, and every defect and escalation names its evidence.
+34
View File
@@ -0,0 +1,34 @@
# Inspection method
## Prepare
- Confirm the candidate you are about to boot is the exact candidate named in your assignment. If the running build, revision, or environment does not match, stop and report the mismatch instead of inspecting something else.
- List each requested proof artifact and verification goal as a line you will close with either a captured artifact or a remaining manual Operator check.
- Check that every declared test resource is available before relying on it. Use the real declared resource; never substitute a mock, stub, recorded response, or smaller stand-in for one and report the result as proof.
## Exercise
- Start from what a user sees first and follow each core flow to its visible outcome: a page renders, a command prints its result, a request returns the promised response, a state change persists after reload.
- Capture each requested artifact while you observe the behavior it shows: a screenshot or recording of the screen, the command and its output, the request and response trace, the relevant log lines. Note which flow and step produced each one.
- Try the obvious neighbors of each flow on the interface the candidate offers. For a screen: an empty input, a repeated action, a reload, the back button, a narrow window. For a command: a missing or invalid argument and a second run. For a service: a malformed or repeated request. Record clear UX or runtime defects such as errors, broken layout, dead controls, unreadable text, hangs, and console or server errors, with the artifact that shows them.
- Judge the result by what you observed. A test suite passing, a log line claiming success, or code that looks correct is not a runtime observation.
## Assemble the Verification Proof Bundle
- Bind the bundle to the exact candidate you exercised. Leave out artifacts captured from any earlier candidate; if you mention one, label it historical.
- **Verified runtime observations:** each states what you did, what you observed, and the artifact that shows it.
- **Defects found:** each states the steps to reproduce, the expected and observed behavior, the severity as a user would feel it, and the artifact that shows it.
- **Remaining manual Operator checks:** each requested proof or verification goal you could not verify, with the reason (a resource was unavailable, the check needs human perception, or the environment could not reach the behavior) and exact steps and the expected observation, so an Operator can run it.
- Claim a pass only for what you observed. Incomplete automated verification is reported as remaining manual Operator checks, never as a pass, and never hidden by a mocked or skipped step.
Before submitting, check each bundle line: can an Operator open the named artifact and see the claimed behavior on this candidate? If not, move the line to the remaining manual Operator checks or remove the claim.
## Escalate with a typed reason
Escalate when a finding needs Operator judgment rather than another correction round. Use the typed reason that fits and a risk summary of one or two sentences naming what the Operator must decide and the evidence behind it:
- `verification_incomplete`: requested proof could not be captured or is ambiguous, so the candidate's behavior is not established.
- `behavioral_tradeoff`: the candidate works but behaves in a way the specification did not settle, such as degraded UX, a changed default, or a visible compromise.
- `unique_resource_needed`: complete verification depends on hardware, credentials, external services, or human perception the system cannot provide.
Escalation is a judgment you report, not a control you hold: a reason without evidence, or a vague escalation made just to be safe, wastes Operator attention. When nothing needs Operator judgment, report the bundle without an escalation.
@@ -0,0 +1,19 @@
{
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.15.0"
},
"role": "tester",
"step": "testing",
"files": [
{
"path": "SKILL.md",
"sha256": "f229c97830f1d35905401c0c915dc68359ffcd8fb7bdf98ce5faedcbd12676a2"
},
{
"path": "inspection.md",
"sha256": "21b1ee3775247e8a5e87122bb193c92656786b4d4cd2c2d078d4b0f1116c7de0"
}
]
}
@@ -0,0 +1,11 @@
---
name: coordinator-communication-fixture
description: Report the running wave, leases, and held issues briefly.
metadata:
relayview-display-name: Coordinator communication fixture
relayview-version: 0.0.1
---
# Coordinator communication fixture
Validation fixture for the coordinator/coordination pair; not a released package.
@@ -0,0 +1,16 @@
{
"schemaVersion": 3,
"source": {
"kind": "user",
"reference": "fixture-1"
},
"role": "coordinator",
"step": "coordination",
"treatment": "communication_context",
"files": [
{
"path": "SKILL.md",
"sha256": "4f380a0e67e5e821dd6b577d7c111981a4f8c61f76e0518d07c157f3cb4251ce"
}
]
}
+11
View File
@@ -0,0 +1,11 @@
---
name: coordinator-fixture
description: Hold contending Ready issues out of the same wave.
metadata:
relayview-display-name: Coordinator fixture
relayview-version: 0.0.1
---
# Coordinator fixture
Validation fixture for the coordinator/coordination pair; not a released package.
@@ -0,0 +1,19 @@
{
"schemaVersion": 1,
"source": {
"kind": "user",
"reference": "fixture-1"
},
"role": "coordinator",
"step": "coordination",
"files": [
{
"path": "SKILL.md",
"sha256": "150d3c53a5a65829230bfad76b48a78d280f63a7d156d3e9d1faa68d70f987af"
},
{
"path": "wave-selection.md",
"sha256": "edc636e0f98163ad3a9538971c99cdea319576f8a5becd63c615418873ad2a6f"
}
]
}
@@ -0,0 +1,3 @@
# Wave selection
Name the shared file, schema, or resource behind each held pair.
@@ -0,0 +1,12 @@
---
name: coordinator-manual-fixture
description: Audit the Ready queue on request.
disable-model-invocation: true
metadata:
relayview-display-name: Coordinator manual fixture
relayview-version: 0.0.1
---
# Coordinator manual fixture
Validation fixture for the coordinator/coordination pair; not a released package.
@@ -0,0 +1,15 @@
{
"schemaVersion": 1,
"source": {
"kind": "user",
"reference": "fixture-1"
},
"role": "coordinator",
"step": "coordination",
"files": [
{
"path": "SKILL.md",
"sha256": "56dd9f2794eba8709da20590238edd5d07f82e2c92a0164f711cac4f690d93d6"
}
]
}
@@ -0,0 +1,11 @@
---
name: tester-communication-fixture
description: Present observed proof before remaining manual checks.
metadata:
relayview-display-name: Tester communication fixture
relayview-version: 0.0.1
---
# Tester communication fixture
Validation fixture for the tester/testing pair; not a released package.
@@ -0,0 +1,16 @@
{
"schemaVersion": 3,
"source": {
"kind": "user",
"reference": "fixture-1"
},
"role": "tester",
"step": "testing",
"treatment": "communication_context",
"files": [
{
"path": "SKILL.md",
"sha256": "5cb3a5fb4b289269ba2139e51ea061031501f9946815d7853104caf80040b3fd"
}
]
}
+11
View File
@@ -0,0 +1,11 @@
---
name: tester-fixture
description: Exercise a sealed candidate and report observed proof.
metadata:
relayview-display-name: Tester fixture
relayview-version: 0.0.1
---
# Tester fixture
Validation fixture for the tester/testing pair; not a released package.
+3
View File
@@ -0,0 +1,3 @@
# Inspection
Record each observation beside the proof artifact that shows it.
@@ -0,0 +1,19 @@
{
"schemaVersion": 1,
"source": {
"kind": "user",
"reference": "fixture-1"
},
"role": "tester",
"step": "testing",
"files": [
{
"path": "SKILL.md",
"sha256": "63d958e9afaaea5fa06e2480743f59f46882c93195e78867d5dd60951cabe640"
},
{
"path": "inspection.md",
"sha256": "62efbba79a3a8d7a95455466755b320b9d54792599fe39da55c276cffaffa341"
}
]
}
+150
View File
@@ -0,0 +1,150 @@
"""Keep the Operator override guide consistent with the packages it describes."""
import hashlib
import json
import re
import tempfile
import unittest
from pathlib import Path
from tools.packages import ROLE_STEPS, check_package
ROOT = Path(__file__).resolve().parents[1]
GUIDE = ROOT / "OVERRIDING.md"
ROLE_NAMES = {
"Specification Designer": "designer",
"Technical Coordinator": "coordinator",
"Planner": "planner",
"Implementer": "implementer",
"Reviewer": "reviewer",
"Tester": "tester",
}
CONTRACT = ROOT / "docs/authoritative/instruction-package-contract.md"
def section(text, heading):
"""Return a level-2 section's body; headings inside code fences do not end it."""
lines, body, fenced = text.splitlines(keepends=True), None, False
for line in lines:
if line.startswith("```"):
fenced = not fenced
if not fenced and line.startswith("## "):
if body is not None:
break
if line.rstrip("\n") == f"## {heading}":
body = []
continue
if body is not None:
body.append(line)
if body is None:
raise AssertionError(f"no '## {heading}' section")
return "".join(body)
def table_rows(text):
rows = []
for line in text.splitlines():
if line.startswith("| ") and not set(line) <= set("|- "):
rows.append([cell.strip() for cell in line.strip("|").split("|")])
return rows[1:]
def codes(cell):
return re.findall(r"`([^`]+)`", cell)
def package_facts(path):
manifest = json.loads((path / "relayview-skill.json").read_text())
frontmatter = (path / "SKILL.md").read_text().split("---\n")[1]
manual = re.search(r"^disable-model-invocation: true$", frontmatter, re.M)
if manifest["schemaVersion"] == 2:
extra = f"issueClaim: {manifest['issueClaim']['statusLabel']}"
elif manifest["schemaVersion"] == 3:
extra = manifest["treatment"]
else:
extra = None
return {
"role_step": [manifest["role"], manifest["step"]],
"mode": "manual" if manual else "automatic",
"schema": str(manifest["schemaVersion"]),
"extra": extra,
"version": re.search(r"relayview-version: (\S+)", frontmatter).group(1),
"release": manifest["source"]["reference"],
}
class OverrideGuideTests(unittest.TestCase):
def setUp(self):
self.text = GUIDE.read_text()
def test_readme_points_operators_to_the_guide(self):
self.assertIn("(OVERRIDING.md)", (ROOT / "README.md").read_text())
def test_package_matrix_matches_every_package_sidecar(self):
rows = table_rows(section(self.text, "Package matrix"))
listed = {}
for row in rows:
name = codes(row[0])[0]
self.assertNotIn(name, listed, f"{name} is listed twice")
extra = codes(row[4])
listed[name] = {
"role_step": codes(row[1]),
"mode": row[2],
"schema": row[3],
"extra": extra[0] if extra else None,
"version": row[5],
"release": codes(row[6])[0],
}
packages = sorted(path.name for path in (ROOT / "packages").iterdir())
self.assertEqual(sorted(listed), packages)
for name in packages:
with self.subTest(package=name):
self.assertEqual(listed[name], package_facts(ROOT / "packages" / name))
def test_role_matrix_matches_contract_and_packages(self):
rows = table_rows(section(self.text, "Role matrix"))
schemas = {codes(row[0])[0]: row[2] for row in table_rows(section(CONTRACT.read_text(), "Role and step"))}
slots = {}
for row in table_rows(section(self.text, "Package matrix")):
slot = re.fullmatch(r"(\w+) automatic, (\d)\w\w", row[7])
if slot:
slots.setdefault(slot.group(1).lower(), []).append((slot.group(2), codes(row[0])[0]))
elif row[7].startswith("Pinned Designer default"):
slots.setdefault("designer", []).append(("1", codes(row[0])[0]))
seen = {}
for row in rows:
role = ROLE_NAMES[row[0]]
seen[role] = row
self.assertEqual(codes(row[1]), [role, ROLE_STEPS[role]])
self.assertEqual(row[2], schemas[role])
self.assertEqual(codes(row[5]), [name for _, name in sorted(slots.get(role, []))])
self.assertEqual(row[3].split(" ")[0], "Yes" if "3" in schemas[role].split(", ") else "No")
for name in codes(row[5]):
with self.subTest(role=role, default=name):
facts = package_facts(ROOT / "packages" / name)
self.assertEqual(facts["role_step"], [role, ROLE_STEPS[role]])
self.assertEqual(facts["mode"], "automatic")
listed = codes(row[5]) + codes(row[6])
packages = [path.name for path in (ROOT / "packages").iterdir() if package_facts(path)["role_step"][0] == role]
self.assertEqual(sorted(listed), sorted(packages))
self.assertEqual(set(seen), set(ROLE_STEPS))
def test_layer_four_template_is_a_valid_user_package(self):
template = section(self.text, "Layer-4 authoring template")
skill = re.search(r"```markdown\n(.*?)```", template, re.S).group(1)
sidecar = re.search(r"```json\n(.*?)```", template, re.S).group(1)
name = re.search(r"^name: (\S+)$", skill, re.M).group(1)
with tempfile.TemporaryDirectory() as directory:
package = Path(directory) / name
package.mkdir()
(package / "SKILL.md").write_text(skill)
digest = hashlib.sha256(skill.encode()).hexdigest()
(package / "relayview-skill.json").write_text(sidecar.replace("<sha256 of SKILL.md>", digest))
check_package(package)
manifest = json.loads((package / "relayview-skill.json").read_text())
self.assertEqual(manifest["source"]["kind"], "user")
if __name__ == "__main__":
unittest.main()
+39 -21
View File
@@ -1,4 +1,5 @@
import json
import re
import hashlib
import shutil
import tempfile
@@ -24,7 +25,7 @@ class PackageTests(unittest.TestCase):
self.assertNotIn("save a research file", text)
def test_communication_packages_declare_their_treatment(self):
for role in ("planner", "implementer", "reviewer"):
for role in ("planner", "implementer", "reviewer", "tester"):
package = ROOT / f"packages/{role}-communication"
result = check_package(package)
manifest = json.loads((package / "relayview-skill.json").read_text())
@@ -34,6 +35,42 @@ class PackageTests(unittest.TestCase):
self.assertIn("acknowledgement", text)
self.assertIn("Markdown", text)
def test_tester_release_sidecars_and_building_inspector_method(self):
expected = {
"tester-inspection": (1, None, (
"Building Inspector", "sealed candidate", "requested proof artifact",
"Verification Proof Bundle", "exact candidate", "remaining manual Operator checks",
"never edit product code", "mock", "verification_incomplete",
"behavioral_tradeoff", "unique_resource_needed", "risk summary",
)),
"tester-communication": (3, "communication_context", (
"observed behavior", "artifact", "defects found", "manual-check checklist",
)),
}
for name, (schema, treatment, phrases) in expected.items():
with self.subTest(name=name):
package = ROOT / "packages" / name
check_package(package)
manifest = json.loads((package / "relayview-skill.json").read_text())
self.assertEqual((manifest["role"], manifest["step"]), ("tester", "testing"))
self.assertEqual(manifest["schemaVersion"], schema)
self.assertEqual(manifest.get("treatment"), treatment)
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.15.0"})
skill = (package / "SKILL.md").read_text()
frontmatter = skill.split("---", 2)[1]
self.assertIn("relayview-version: 0.15.0", frontmatter)
self.assertNotIn("disable-model-invocation", frontmatter)
text = "".join((package / item["path"]).read_text() for item in manifest["files"])
for phrase in phrases:
self.assertIn(phrase.lower(), text.lower())
# Owner artifact and tool schemas stay out of prose: no JSON
# objects or code fences, and no snake_case, camelCase, or
# PascalCase identifiers beyond the typed escalation reasons.
self.assertNotIn("{", text)
self.assertNotIn("```", text)
identifiers = set(re.findall(r"\b\w+_\w+\b|\b[a-z]+[A-Z]\w*\b|\b[A-Z][a-z]+[A-Z]\w*\b", text))
self.assertLessEqual(identifiers, {"verification_incomplete", "behavioral_tradeoff", "unique_resource_needed"})
def test_automatic_review_is_only_extracted_presentation(self):
package = ROOT / "packages/code-review-auto"
check_package(package)
@@ -97,25 +134,6 @@ class PackageTests(unittest.TestCase):
for host in ("/etc/", "/usr/share/", "$HOME", "rg -n"):
self.assertNotIn(host, text)
def test_designer_release_modes_and_source(self):
automatic = "issue-designer-default"
manual = (
"designer-wayfinder", "designer-grilling", "designer-prototype",
"designer-research", "designer-domain-modeling", "designer-triage",
"designer-to-spec", "designer-to-tickets",
)
for name in (automatic, *manual):
with self.subTest(name=name):
package = ROOT / "packages" / name
skill = (package / "SKILL.md").read_text()
frontmatter = skill.split("---", 2)[1]
self.assertEqual("disable-model-invocation: true" in frontmatter, name in manual)
version = "0.13.0"
self.assertIn(f"relayview-version: {version}", frontmatter)
manifest = json.loads((package / "relayview-skill.json").read_text())
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": f"v{version}"})
check_package(package)
def test_tdd_is_available_to_owner_started_implementers(self):
package = ROOT / "packages/tdd-auto"
skill = (package / "SKILL.md").read_text()
@@ -145,7 +163,7 @@ class PackageTests(unittest.TestCase):
"research": ("planner", "planning"),
"improve-codebase-architecture": ("planner", "planning"),
**{name: ("designer", "design") for name in (
"issue-designer-default", "designer-wayfinder", "designer-grilling", "designer-prototype",
"issue-designer-default", "specification-designer-default", "designer-wayfinder", "designer-grilling", "designer-prototype",
"designer-research", "designer-domain-modeling", "designer-triage",
"designer-to-spec", "designer-to-tickets")}}
for name, role_step in expected.items():
+291
View File
@@ -0,0 +1,291 @@
"""Validation of every supported role/step pair, including Tester and Coordinator.
The fixtures under tests/fixtures/packages are valid packages for the newer
role/step pairs; invalid cases are derived from them by one mutation each.
"""
import hashlib
import json
import os
import shutil
import struct
import tempfile
import unittest
import zipfile
from pathlib import Path
from tools.packages import PackageError, check_package, package_archive
ROOT = Path(__file__).resolve().parents[1]
FIXTURES = ROOT / "tests/fixtures/packages"
NEW_PAIR_FIXTURES = {
"tester-fixture": (1, "tester", "testing"),
"tester-communication-fixture": (3, "tester", "testing"),
"coordinator-fixture": (1, "coordinator", "coordination"),
"coordinator-communication-fixture": (3, "coordinator", "coordination"),
"coordinator-manual-fixture": (1, "coordinator", "coordination"),
}
def reference_identity(package):
"""Mirror RelayView's scripts/verify-first-party-skills-source.py identity."""
manifest_bytes = (package / "relayview-skill.json").read_bytes()
identity = hashlib.sha256(b"relayview-instruction-package-v1\0")
def frame(data):
identity.update(struct.pack(">I", len(data)))
identity.update(data)
frame(manifest_bytes)
for item in sorted(json.loads(manifest_bytes)["files"], key=lambda item: item["path"]):
frame(item["path"].encode("utf-8"))
frame((package / item["path"]).read_bytes())
return identity.hexdigest()
def reference_archive_sha256(package, destination):
"""Mirror RelayView's scripts/verify-first-party-skills-source.py archive."""
with zipfile.ZipFile(destination, "w", compression=zipfile.ZIP_STORED) as archive:
files = [(file.name, file) for file in (ROOT / "LICENSE", ROOT / "NOTICE.md")]
files += [(f"{package.name}/{file.relative_to(package).as_posix()}", file)
for file in sorted(package.rglob("*")) if file.is_file()]
for name, file in files:
info = zipfile.ZipInfo(name, date_time=(1980, 1, 1, 0, 0, 0))
info.external_attr = 0o100644 << 16
archive.writestr(info, file.read_bytes())
return hashlib.sha256(Path(destination).read_bytes()).hexdigest()
class FixtureCopy:
"""A temporary copy of one fixture that a test mutates once."""
def __init__(self, name):
self.name = name
def __enter__(self):
self._directory = tempfile.TemporaryDirectory()
self.path = Path(self._directory.name) / self.name
shutil.copytree(FIXTURES / self.name, self.path)
return self
def __exit__(self, *exc):
self._directory.cleanup()
@property
def manifest(self):
return json.loads((self.path / "relayview-skill.json").read_text())
def write_manifest(self, manifest):
(self.path / "relayview-skill.json").write_text(json.dumps(manifest, indent=2) + "\n")
def write_file(self, relative, data, declare=True):
"""Write package content; when declared, refresh its digest so only the content is under test."""
file = self.path / relative
file.write_bytes(data if isinstance(data, bytes) else data.encode("utf-8"))
if declare:
manifest = self.manifest
digest = hashlib.sha256(file.read_bytes()).hexdigest()
entry = next((item for item in manifest["files"] if item["path"] == relative), None)
if entry is None:
manifest["files"].append({"path": relative, "sha256": digest})
else:
entry["sha256"] = digest
self.write_manifest(manifest)
def replace_in_skill(self, old, new):
text = (self.path / "SKILL.md").read_text()
assert old in text, old
self.write_file("SKILL.md", text.replace(old, new, 1))
class NewRoleStepPairTests(unittest.TestCase):
def test_fixtures_declare_the_new_pairs_under_schema_one_and_three(self):
self.assertEqual(sorted(path.name for path in FIXTURES.iterdir()), sorted(NEW_PAIR_FIXTURES))
for name, (schema, role, step) in NEW_PAIR_FIXTURES.items():
with self.subTest(name=name):
manifest = json.loads((FIXTURES / name / "relayview-skill.json").read_text())
self.assertEqual((manifest["schemaVersion"], manifest["role"], manifest["step"]), (schema, role, step))
self.assertEqual(manifest.get("treatment"), "communication_context" if schema == 3 else None)
def test_valid_fixtures_pass_with_relayview_identity_and_archive(self):
for name in NEW_PAIR_FIXTURES:
with self.subTest(name=name), tempfile.TemporaryDirectory() as directory:
package = FIXTURES / name
self.assertEqual(check_package(package), reference_identity(package))
first = package_archive(package, Path(directory) / "one.zip")
second = package_archive(package, Path(directory) / "two.zip")
self.assertEqual(first, second)
self.assertEqual(first, reference_archive_sha256(package, Path(directory) / "reference.zip"))
with zipfile.ZipFile(Path(directory) / "one.zip") as archive:
for info in archive.infolist():
self.assertEqual(info.date_time, (1980, 1, 1, 0, 0, 0))
self.assertEqual(info.external_attr >> 16, 0o100644)
self.assertEqual(info.compress_type, zipfile.ZIP_STORED)
def test_identity_algorithm_is_pinned(self):
# Regression pin: changing this value means the relayview-instruction-package-v1
# framing changed, which would break every RelayView bundle lock.
self.assertEqual(check_package(FIXTURES / "tester-fixture"),
"31a04937d9572067f0c3327fbaba97e11f6962fd7f68fefdb2c70ef8f5aad394")
def test_manual_fixture_disables_model_invocation(self):
self.assertIn("disable-model-invocation: true\n", (FIXTURES / "coordinator-manual-fixture/SKILL.md").read_text())
class RoleStepRejectionTests(unittest.TestCase):
def assertRejected(self, copy, message):
with self.assertRaisesRegex(PackageError, message):
check_package(copy.path)
def test_rejects_wrong_role_step_combinations(self):
combinations = (
("tester", "coordination"), ("coordinator", "testing"),
("tester", "review"), ("tester", "implementation"),
("coordinator", "planning"), ("coordinator", "design"),
("planner", "testing"), ("reviewer", "coordination"), ("designer", "testing"),
("Tester", "testing"), ("coordinator", "Coordination"),
("tester", None), (["tester"], "testing"), ("operator", "coordination"),
)
for name in NEW_PAIR_FIXTURES:
for role, step in combinations:
with self.subTest(name=name, role=role, step=step), FixtureCopy(name) as copy:
copy.write_manifest(dict(copy.manifest, role=role, step=step))
self.assertRejected(copy, "incompatible role or step")
def test_rejects_issue_claim_outside_the_planner(self):
for name in ("tester-fixture", "coordinator-fixture"):
with self.subTest(name=name), FixtureCopy(name) as copy:
copy.write_manifest(dict(copy.manifest, schemaVersion=2, issueClaim={"statusLabel": None}))
self.assertRejected(copy, "invalid issue claim policy")
def test_rejects_schema_and_treatment_mismatches(self):
fields, treatment = "unsupported manifest fields", "invalid communication treatment"
cases = {
"tester-fixture": [
({"treatment": "communication_context"}, fields),
({"schemaVersion": 3}, fields),
({"schemaVersion": True}, fields),
({"schemaVersion": "1"}, fields),
({"schemaVersion": 1.5}, fields),
({"schemaVersion": 4}, fields),
],
"coordinator-communication-fixture": [
({"treatment": "context"}, treatment),
({"treatment": None}, treatment),
({"schemaVersion": 1}, fields),
({"schemaVersion": True}, fields),
],
}
for name, changes in cases.items():
for change, message in changes:
with self.subTest(name=name, change=change), FixtureCopy(name) as copy:
copy.write_manifest(dict(copy.manifest, **change))
self.assertRejected(copy, message)
with FixtureCopy("tester-communication-fixture") as copy:
manifest = copy.manifest
del manifest["treatment"]
copy.write_manifest(manifest)
self.assertRejected(copy, "unsupported manifest fields")
def test_rejects_sidecar_capability_fields(self):
for name in NEW_PAIR_FIXTURES:
for field, value in (("tools", ["shell"]), ("permissions", {"network": True}), ("network", True),
("credentials", ["gitea"]), ("dispatch", True), ("resources", ["gpu-worker"])):
with self.subTest(name=name, field=field), FixtureCopy(name) as copy:
copy.write_manifest(dict(copy.manifest, **{field: value}))
self.assertRejected(copy, "unsupported manifest fields")
with self.subTest(name=name, field="source.scope"), FixtureCopy(name) as copy:
copy.write_manifest(dict(copy.manifest, source={"kind": "user", "reference": "fixture-1", "scope": "all"}))
self.assertRejected(copy, "invalid source")
def test_rejects_bad_digests(self):
for name in ("tester-fixture", "coordinator-fixture"):
resource = next(item["path"] for item in json.loads((FIXTURES / name / "relayview-skill.json").read_text())["files"] if item["path"] != "SKILL.md")
for path in ("SKILL.md", resource):
for digest, message in (("0" * 64, "changed file"), ("A" * 64, "invalid digest"),
("0" * 63, "invalid digest"), (None, "invalid digest")):
with self.subTest(name=name, path=path, digest=digest), FixtureCopy(name) as copy:
manifest = copy.manifest
next(item for item in manifest["files"] if item["path"] == path)["sha256"] = digest
copy.write_manifest(manifest)
self.assertRejected(copy, message)
with self.subTest(name=name, change="content after digest"), FixtureCopy(name) as copy:
(copy.path / resource).write_text("changed\n")
self.assertRejected(copy, "changed file")
def test_rejects_forbidden_frontmatter(self):
metadata, boolean = "unsupported skill metadata", "must be a boolean"
cases = (
("metadata:\n", "tools: [shell]\nmetadata:\n", metadata),
("metadata:\n", "allowed-tools: Bash\nmetadata:\n", metadata),
("metadata:\n", "model: any\nmetadata:\n", metadata),
("metadata:\n", "role: coordinator\nmetadata:\n", metadata),
("metadata:\n", "metadata: {}\n", metadata),
("metadata:\n", "metadata:\n relayview-tools: shell\n", metadata),
("metadata:\n", "metadata:\n relayview-role: tester\n", metadata),
("metadata:\n", "name: other-name\nmetadata:\n", metadata),
("metadata:\n", "disable-model-invocation: yes\nmetadata:\n", boolean),
("metadata:\n", "disable-model-invocation:yes\nmetadata:\n", metadata),
("metadata:\n", "disable-model-invocation:\nmetadata:\n", metadata),
)
for name in NEW_PAIR_FIXTURES:
for old, new, message in cases:
with self.subTest(name=name, new=new), FixtureCopy(name) as copy:
if name == "coordinator-manual-fixture":
# Drop the fixture's own key so an inserted one is not merely a duplicate.
copy.replace_in_skill("disable-model-invocation: true\n", "")
copy.replace_in_skill(old, new)
self.assertRejected(copy, message)
def test_frontmatter_lines_end_in_lf_only(self):
def replace_bytes(old, new, count=1):
return lambda copy: copy.write_file("SKILL.md", (copy.path / "SKILL.md").read_bytes().replace(old, new, count))
cases = (
("CRLF throughout", replace_bytes(b"\n", b"\r\n", -1)),
("CRLF after description", replace_bytes(b"\nmetadata:", b"\r\nmetadata:")),
("lone CR after description", replace_bytes(b"\nmetadata:", b"\rmetadata:")),
("U+2028 after description", replace_bytes(b"\nmetadata:", "\u2028metadata:".encode())),
("CRLF on opening delimiter", replace_bytes(b"---\n", b"---\r\n")),
("CRLF on closing delimiter", replace_bytes(b"\n---\n", b"\n---\r\n")),
)
for name in NEW_PAIR_FIXTURES:
for label, mutate in cases:
with self.subTest(name=name, case=label), FixtureCopy(name) as copy:
mutate(copy)
self.assertRejected(copy, "invalid SKILL.md frontmatter")
def test_line_break_rule_stops_at_the_frontmatter(self):
for name in NEW_PAIR_FIXTURES:
with self.subTest(name=name, case="CRLF body"), FixtureCopy(name) as copy:
text = (copy.path / "SKILL.md").read_text()
head, body = text.split("\n---\n", 1)
copy.write_file("SKILL.md", head + "\n---\n" + body.replace("\n", "\r\n") + "\u2028\n")
check_package(copy.path)
with self.subTest(name=name, case="frontmatter only, no final newline"), FixtureCopy(name) as copy:
text = (copy.path / "SKILL.md").read_text()
copy.write_file("SKILL.md", text.split("\n---\n", 1)[0] + "\n---")
check_package(copy.path)
def test_rejects_unsafe_or_undeclared_content(self):
cases = (
("BOM", lambda copy: copy.write_file("SKILL.md", b"\xef\xbb\xbf" + (copy.path / "SKILL.md").read_bytes()), "invalid text"),
("NUL", lambda copy: copy.write_file("notes.md", "a\x00b\n"), "invalid text"),
("invalid UTF-8", lambda copy: copy.write_file("notes.md", b"\xff\xfe\n"), "invalid UTF-8"),
("empty resource", lambda copy: copy.write_file("notes.md", b""), "text bounds"),
("undeclared", lambda copy: copy.write_file("notes.md", "extra\n", declare=False), "undeclared file"),
("script", lambda copy: copy.write_file("helper.py", "print('unsafe')\n"), "unsupported package content"),
("JSON resource", lambda copy: copy.write_file("data.json", "{}\n"), "unsupported package content"),
("missing declared", lambda copy: copy.write_manifest(dict(copy.manifest, files=copy.manifest["files"] + [{"path": "absent.md", "sha256": "0" * 64}])), "missing declared file"),
("escape", lambda copy: copy.write_manifest(dict(copy.manifest, files=copy.manifest["files"] + [{"path": "../outside.md", "sha256": "0" * 64}])), "invalid file path"),
("executable", lambda copy: os.chmod(copy.path / "SKILL.md", 0o755), "executable"),
("symlink", lambda copy: os.symlink(copy.path / "SKILL.md", copy.path / "link.md"), "is a link"),
)
for name in NEW_PAIR_FIXTURES:
for label, mutate, message in cases:
with self.subTest(name=name, case=label), FixtureCopy(name) as copy:
mutate(copy)
self.assertRejected(copy, message)
if __name__ == "__main__":
unittest.main()
+123
View File
@@ -0,0 +1,123 @@
"""Pin the Specification Designer packages and the retained Issue Designer default."""
import json
import re
import unittest
from pathlib import Path
from tools.packages import check_package
ROOT = Path(__file__).resolve().parents[1]
DEFAULT = "specification-designer-default"
METHODS = (
"designer-to-spec", "designer-to-tickets", "designer-wayfinder", "designer-grilling",
"designer-triage", "designer-prototype", "designer-domain-modeling", "designer-research",
)
PACKAGES = (DEFAULT, *METHODS)
VERSION = "0.15.0"
# The v0.13.0 identity RelayView records for the retained default.
RETAINED = "issue-designer-default"
RETAINED_IDENTITY = "7b000e827b60bf31575fbae3decee3a4c5467432ded90acb7e13e16b775f31d4"
# Owner field and tool names belong to RelayView's system prompt and tool
# guidance, not to replaceable skill prose.
OWNER_SCHEMA_TERMS = (
"specificationMetadata", "proofArtifacts", "fastTestCompleteness", "testResources",
"uniqueResourceNeeded", "reviewStamp", "set.edit", "update_item", "designer_draft",
)
# What each method must say about the four specification decisions: requested
# proof artifacts, fast-test completeness, declared test resources, and the
# Layer B review stamp. Each marker is matched case-insensitively.
METHOD_MARKERS = {
"designer-to-spec": ("proof artifact", "requires_runtime_or_human_judgment", "ml-server:", "unique_resource_needed", "operator_review_required", "auto_merge_eligible"),
"designer-to-tickets": ("proof artifact", "fast-test completeness", "test resource", "review stamp", "auto_merge_eligible"),
"designer-wayfinder": ("proof", "fast-test completeness", "test resource", "review stamp"),
"designer-grilling": ("proof artifact", "fast-test completeness", "test resource", "review stamp"),
"designer-triage": ("proof", "fast-test completeness", "test resource", "review stamp"),
"designer-prototype": ("proof artifact", "fast-test completeness", "test resource", "review stamp"),
"designer-domain-modeling": ("proof", "fast-test completeness", "test resource", "review stamp"),
"designer-research": ("proof", "fast-test completeness", "test resource", "review stamp"),
}
def read(name):
package = ROOT / "packages" / name
skill = (package / "SKILL.md").read_text()
manifest = json.loads((package / "relayview-skill.json").read_text())
resources = "".join((package / item["path"]).read_text() for item in manifest["files"] if item["path"] != "SKILL.md")
frontmatter, body = skill.split("---\n", 2)[1:]
return manifest, frontmatter, body + resources
def field(frontmatter, key):
return re.search(rf"^\s*{re.escape(key)}: (.+)$", frontmatter, re.M).group(1)
class SpecificationDesignerTests(unittest.TestCase):
def test_packages_release_together_with_their_modes(self):
for name in PACKAGES:
with self.subTest(package=name):
manifest, frontmatter, _ = read(name)
check_package(ROOT / "packages" / name)
self.assertEqual(field(frontmatter, "name"), name)
self.assertEqual(field(frontmatter, "relayview-version"), VERSION)
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": f"v{VERSION}"})
self.assertEqual((manifest["schemaVersion"], manifest["role"], manifest["step"]), (1, "designer", "design"))
self.assertEqual("disable-model-invocation: true" in frontmatter, name in METHODS)
def test_packages_use_specification_designer_terminology(self):
for name in PACKAGES:
with self.subTest(package=name):
_, frontmatter, text = read(name)
self.assertNotRegex(frontmatter + text, r"(?i)issue designer")
self.assertTrue(field(frontmatter, "relayview-display-name").startswith("Specification Designer"))
self.assertIn("specification", field(frontmatter, "description").lower())
self.assertIn("Specification Designer", text)
def test_default_guides_all_four_specification_decisions(self):
_, _, text = read(DEFAULT)
for phrase in (
"Requested Proof Artifacts", "browser recording", "screenshot", "CLI/HTTP trace", "statechart",
"fast automated tests only", "Fast-Test Completeness", "`complete`",
"`requires_runtime_or_human_judgment`", "`ml-server:<model>`", "`gpu-worker`",
"`unique_resource_needed`", "Layer B Review Stamp", "`operator_review_required`",
"`auto_merge_eligible`", "Layer A", "Layer C",
):
with self.subTest(phrase=phrase):
self.assertIn(phrase, text)
def test_methods_carry_the_decisions_they_touch(self):
for name, markers in METHOD_MARKERS.items():
for marker in markers:
with self.subTest(package=name, marker=marker):
self.assertIn(marker.lower(), read(name)[2].lower())
def test_operator_owns_the_stamp_and_publication(self):
for name in PACKAGES:
with self.subTest(package=name):
text = read(name)[2]
for term in OWNER_SCHEMA_TERMS:
self.assertNotIn(term, text)
self.assertNotRegex(text, r"(?i)\byou (may |can )?(publish|merge|set the (review )?stamp)")
text = read(DEFAULT)[2]
self.assertIn("The Operator sets the stamp", text)
self.assertIn("never downgrade `operator_review_required`", text)
def test_retained_issue_designer_default_is_untouched(self):
self.assertEqual(check_package(ROOT / "packages" / RETAINED), RETAINED_IDENTITY)
manifest, frontmatter, _ = read(RETAINED)
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.13.0"})
self.assertNotIn("disable-model-invocation", frontmatter)
def test_docs_map_the_retained_default_to_its_replacement(self):
for doc in ("README.md", "OVERRIDING.md"):
with self.subTest(doc=doc):
text = (ROOT / doc).read_text()
self.assertRegex(text, rf"(?i)`{RETAINED}`[^\n]*(replaced by|replaces)[^\n]*`{DEFAULT}`|`{DEFAULT}`[^\n]*replaces[^\n]*`{RETAINED}`")
if __name__ == "__main__":
unittest.main()
+37 -13
View File
@@ -10,6 +10,25 @@ import zipfile
from pathlib import Path
# Each role guides exactly one workflow step. RelayView's owner admits a pair
# only once its own sidecar contract lists it; see
# docs/authoritative/instruction-package-contract.md.
ROLE_STEPS = {
"planner": "planning",
"implementer": "implementation",
"reviewer": "review",
"designer": "design",
"tester": "testing",
"coordinator": "coordination",
}
MANIFEST_FIELDS = {
1: {"schemaVersion", "source", "role", "step", "files"},
2: {"schemaVersion", "source", "role", "step", "files", "issueClaim"},
3: {"schemaVersion", "source", "role", "step", "files", "treatment"},
}
class PackageError(ValueError):
pass
@@ -44,28 +63,25 @@ def check_package(path):
manifest = json.loads(_text(raw_manifest, str(sidecar)))
except (ValueError, TypeError) as error:
_fail(f"{sidecar}: invalid JSON: {error}")
if not isinstance(manifest, dict) or (
(manifest.get("schemaVersion") == 1 and set(manifest) != {"schemaVersion", "source", "role", "step", "files"}) or
(manifest.get("schemaVersion") == 2 and set(manifest) != {"schemaVersion", "source", "role", "step", "files", "issueClaim"}) or
(manifest.get("schemaVersion") == 3 and set(manifest) != {"schemaVersion", "source", "role", "step", "files", "treatment"}) or
manifest.get("schemaVersion") not in (1, 2, 3)
):
version = manifest.get("schemaVersion") if isinstance(manifest, dict) else None
# type() rather than isinstance(): JSON true must not pass as schema 1.
if type(version) is not int or version not in MANIFEST_FIELDS or set(manifest) != MANIFEST_FIELDS[version]:
_fail(f"{path}: unsupported manifest fields")
source = manifest["source"]
if not isinstance(source, dict) or set(source) != {"kind", "reference"}:
_fail(f"{path}: invalid source")
if source["kind"] not in ("first-party", "user") or not isinstance(source["reference"], str) or not re.fullmatch(r"[A-Za-z0-9._:-]{1,128}", source["reference"]):
_fail(f"{path}: invalid source identity")
if (manifest["role"], manifest["step"]) not in (("planner", "planning"), ("implementer", "implementation"), ("reviewer", "review"), ("designer", "design")):
if not isinstance(manifest["role"], str) or ROLE_STEPS.get(manifest["role"]) != manifest["step"]:
_fail(f"{path}: incompatible role or step")
if manifest["schemaVersion"] == 2:
if version == 2:
claim = manifest["issueClaim"]
label = claim.get("statusLabel") if isinstance(claim, dict) else None
if (manifest["role"], manifest["step"]) != ("planner", "planning") or not isinstance(claim, dict) or set(claim) != {"statusLabel"} or (
label is not None and (not isinstance(label, str) or not re.fullmatch(r"status/[a-z][a-z0-9-]{0,63}", label) or label == "status/ready-for-agent")
):
_fail(f"{path}: invalid issue claim policy")
if manifest["schemaVersion"] == 3 and (manifest["treatment"] != "communication_context" or manifest["role"] == "designer"):
if version == 3 and (manifest["treatment"] != "communication_context" or manifest["role"] == "designer"):
_fail(f"{path}: invalid communication treatment")
files = manifest["files"]
if not isinstance(files, list) or not 1 <= len(files) <= 16:
@@ -111,14 +127,18 @@ def check_package(path):
if set(observed) != set(declared):
_fail(f"{path}: missing declared file")
skill = _text(observed["SKILL.md"], "SKILL.md")
match = re.match(r"\A---\r?\n(.*?)\r?\n---(?:\r?\n|\Z)", skill, re.S)
match = re.match(r"\A---\n(.*?)\n---(?:\n|\Z)", skill, re.S)
if not match:
_fail(f"{path}: invalid SKILL.md frontmatter")
frontmatter = match.group(1)
lines = frontmatter.split("\n")
# LF is the only line break: CR, CRLF, and other separators split differently.
if frontmatter.splitlines() != lines:
_fail(f"{path}: invalid SKILL.md frontmatter")
top_keys = []
nested_keys = []
in_metadata = False
for line in frontmatter.splitlines():
for line in lines:
if line.startswith(" "):
if not in_metadata or not re.fullmatch(r" [a-z-]+: .+", line):
_fail(f"{path}: unsupported skill metadata")
@@ -127,11 +147,15 @@ def check_package(path):
key = line.split(":", 1)[0]
top_keys.append(key)
in_metadata = key == "metadata"
# metadata stands alone; every other key carries an inline value.
valid_line = line == "metadata:" if in_metadata else bool(re.fullmatch(r"[a-z-]+: .+", line))
if not valid_line:
_fail(f"{path}: unsupported skill metadata")
else:
_fail(f"{path}: unsupported skill metadata")
if len(top_keys) != len(set(top_keys)) or set(top_keys) - {"name", "description", "metadata", "disable-model-invocation"} or len(nested_keys) != len(set(nested_keys)) or set(nested_keys) != {"relayview-display-name", "relayview-version"}:
_fail(f"{path}: unsupported skill metadata")
values = dict(line.split(": ", 1) for line in frontmatter.splitlines() if not line.startswith(" ") and ": " in line)
values = dict(line.split(": ", 1) for line in lines if not line.startswith(" ") and ": " in line)
if "disable-model-invocation" in values and values["disable-model-invocation"] not in ("true", "false"):
_fail(f"{path}: disable-model-invocation must be a boolean")
expected_name = path.name
@@ -139,7 +163,7 @@ def check_package(path):
_fail(f"{path}: missing or incompatible skill metadata")
if not re.fullmatch(r"[a-z0-9]+(?:-[a-z0-9]+)*", expected_name) or len(expected_name) > 64 or len(values["description"]) > 1024:
_fail(f"{path}: skill name or description exceeds owner bounds")
display_name = next(line.split(": ", 1)[1] for line in frontmatter.splitlines() if line.startswith(" relayview-display-name: "))
display_name = next(line.split(": ", 1)[1] for line in lines if line.startswith(" relayview-display-name: "))
if len(display_name) > 128:
_fail(f"{path}: display name exceeds owner bounds")
digest = hashlib.sha256(b"relayview-instruction-package-v1\0" + _frame(raw_manifest))