Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da34e1c1bf | ||
|
|
45eff20ecb | ||
|
|
f872770dc9 | ||
|
|
ddf95ded04 | ||
|
|
1e9e46bc09 | ||
|
|
8c7d967efd | ||
|
|
c103def91b | ||
|
|
485df6bd0d | ||
|
|
86bdca5f22 | ||
|
|
a8462b52ae | ||
|
|
2f060c479e | ||
|
|
86cf1b6f81 | ||
|
|
015b4d1d0e | ||
|
|
01b6c24a57 | ||
|
|
2ddf21cb48 | ||
|
|
dd7b9c9d0b | ||
|
|
6948a2670a | ||
|
|
1f6cce14a8 | ||
|
|
1756c46c06 | ||
|
|
74ace113f6 | ||
|
|
a6fe199ba7 | ||
|
|
82c070df41 |
No files matched your search
@@ -14,5 +14,6 @@ jobs:
|
|||||||
- run: python3 -m unittest discover -s tests -v
|
- run: python3 -m unittest discover -s tests -v
|
||||||
- run: for package in packages/*; do python3 -m tools.packages check "$package"; done
|
- run: for package in packages/*; do python3 -m tools.packages check "$package"; done
|
||||||
- run: python3 -m tools.packages check examples/starter-planner
|
- 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: 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
|
- run: python3 -m tools.packages pack examples/starter-planner dist/starter-planner.zip
|
||||||
@@ -22,6 +22,16 @@ change's documentation disposition and the evidence behind its merge; commands
|
|||||||
presented as runnable must be ready to run as written. See
|
presented as runnable must be ready to run as written. See
|
||||||
`docs/agents/standards.md`.
|
`docs/agents/standards.md`.
|
||||||
|
|
||||||
|
### Credentials
|
||||||
|
|
||||||
|
When T3 Code's `request_secret` tool is available, call it whenever an
|
||||||
|
authorized task needs a sudo password or other credential from the user.
|
||||||
|
Use it instead of asking the user to paste secrets, copy sudo commands,
|
||||||
|
or enter credentials in a terminal. For shell commands use `delivery: "file"`
|
||||||
|
and read the private file inside the command; for supported T3 tools pass
|
||||||
|
`secretRef`. Keep secret values out of output and execute the authorized
|
||||||
|
operation yourself. Pass this rule to delegated agents.
|
||||||
|
|
||||||
### Focused checks
|
### Focused checks
|
||||||
|
|
||||||
`python3 -m unittest discover -s tests -v`
|
`python3 -m unittest discover -s tests -v`
|
||||||
|
|||||||
@@ -1,41 +1,41 @@
|
|||||||
# RelayView skills
|
# RelayView skills
|
||||||
|
|
||||||
Public source for RelayView-maintained instruction-only role skills and an illustrative author starter. The proprietary RelayView owner controls workflow stages, role tools, verification, and Human acceptance. A skill guides one assigned role during one step; it does not add tools, credentials, network access, or workflow authority.
|
Public source for RelayView-maintained instruction-only role skills and an illustrative author starter. The proprietary RelayView owner controls workflow stages, role tools, verification, and Operator acceptance. A skill guides one assigned role during one step; it does not add tools, credentials, network access, or workflow authority.
|
||||||
|
|
||||||
## Packages and support
|
## Packages and support
|
||||||
|
|
||||||
| Directory | Status | Role / step | Version |
|
| Directory | Status | Role / step | Version |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| `packages/{planner,implementer,reviewer}-investigation` | Maintained automatic guidance | One matching role / step each | 0.7.0 |
|
| `packages/{planner,implementer,reviewer}-investigation` | Maintained automatic guidance | One matching role / step each | 0.13.0 |
|
||||||
| `packages/planner-scope` | Maintained default | Planner / planning | 0.8.1 |
|
| `packages/planner-scope` | Maintained default | Planner / planning | 0.13.0 |
|
||||||
| `packages/implementer-handoff` | Maintained default | Implementer / implementation | 0.2.0 |
|
| `packages/implementer-handoff` | Maintained default | Implementer / implementation | 0.13.0 |
|
||||||
| `packages/issue-designer-default` | Maintained default | Designer / design | 0.6.1 |
|
| `packages/issue-designer-default` | Maintained default | Designer / design | 0.13.0 |
|
||||||
| `packages/designer-wayfinder`, `designer-grilling` | Optional manual guidance | Designer / design | 0.6.0 |
|
| `packages/designer-wayfinder`, `designer-grilling` | Optional manual guidance | Designer / design | 0.13.0 |
|
||||||
| `packages/designer-prototype` | Optional manual guidance | Designer / design | 0.6.2 |
|
| `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.6.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.6.0 |
|
| `packages/designer-to-spec`, `designer-to-tickets` | Optional manual guidance | Designer / design | 0.13.0 |
|
||||||
| `packages/codebase-design` | Optional guidance | Planner / planning | 0.3.0 |
|
| `packages/codebase-design` | Optional guidance | Planner / planning | 0.13.0 |
|
||||||
| `packages/grill-me` | Optional guidance | Planner / planning | 0.3.0 |
|
| `packages/grill-me` | Optional guidance | Planner / planning | 0.13.0 |
|
||||||
| `packages/grilling` | Optional guidance | Planner / planning | 0.3.0 |
|
| `packages/grilling` | Optional guidance | Planner / planning | 0.13.0 |
|
||||||
| `packages/to-questionnaire` | Optional guidance | Planner / planning | 0.3.0 |
|
| `packages/to-questionnaire` | Optional guidance | Planner / planning | 0.13.0 |
|
||||||
| `packages/research` | Optional guidance | Planner / planning | 0.3.0 |
|
| `packages/research` | Optional guidance | Planner / planning | 0.13.0 |
|
||||||
| `packages/improve-codebase-architecture` | Optional guidance | Planner / planning | 0.3.0 |
|
| `packages/improve-codebase-architecture` | Optional guidance | Planner / planning | 0.13.0 |
|
||||||
| `packages/diagnosing-bugs` | Optional guidance | Implementer / implementation | 0.3.0 |
|
| `packages/diagnosing-bugs` | Optional guidance | Implementer / implementation | 0.13.0 |
|
||||||
| `packages/domain-modeling` | Optional guidance | Implementer / implementation | 0.3.0 |
|
| `packages/domain-modeling` | Optional guidance | Implementer / implementation | 0.13.0 |
|
||||||
| `packages/migrate-to-shoehorn` | Optional guidance | Implementer / implementation | 0.3.0 |
|
| `packages/migrate-to-shoehorn` | Optional guidance | Implementer / implementation | 0.13.0 |
|
||||||
| `packages/pr` | Optional guidance | Implementer / implementation | 0.3.0 |
|
| `packages/pr` | Optional guidance | Implementer / implementation | 0.13.0 |
|
||||||
| `packages/prototype` | Optional guidance | Implementer / implementation | 0.3.0 |
|
| `packages/prototype` | Optional guidance | Implementer / implementation | 0.13.0 |
|
||||||
| `packages/scaffold-exercises` | Optional guidance | Implementer / implementation | 0.3.0 |
|
| `packages/scaffold-exercises` | Optional guidance | Implementer / implementation | 0.13.0 |
|
||||||
| `packages/shared-abstraction-refactor` | Optional guidance | Implementer / implementation | 0.3.0 |
|
| `packages/shared-abstraction-refactor` | Optional guidance | Implementer / implementation | 0.13.0 |
|
||||||
| `packages/split-large-files` | Optional guidance | Implementer / implementation | 0.3.0 |
|
| `packages/split-large-files` | Optional guidance | Implementer / implementation | 0.13.0 |
|
||||||
| `packages/tdd` | Optional manual guidance | Implementer / implementation | 0.3.0 |
|
| `packages/tdd` | Optional manual guidance | Implementer / implementation | 0.13.0 |
|
||||||
| `packages/tdd-auto` | Optional automatic guidance | Implementer / implementation | 0.3.1 |
|
| `packages/tdd-auto` | Optional automatic guidance | Implementer / implementation | 0.13.0 |
|
||||||
| `packages/writing-for-agents` | Optional guidance | Implementer / implementation | 0.3.0 |
|
| `packages/writing-for-agents` | Optional guidance | Implementer / implementation | 0.13.0 |
|
||||||
| `packages/code-review` | Optional guidance | Reviewer / review | 0.3.0 |
|
| `packages/code-review` | Optional guidance | Reviewer / review | 0.13.0 |
|
||||||
| `packages/c4-diff` | Optional guidance | Reviewer / review | 0.3.0 |
|
| `packages/c4-diff` | Optional guidance | Reviewer / review | 0.13.0 |
|
||||||
| `examples/starter-planner` | Illustrative starter; not a production default | Planner / planning | 0.1.0 |
|
| `examples/starter-planner` | Illustrative starter; not a production default | Planner / planning | 0.13.0 |
|
||||||
|
|
||||||
Only named releases of maintained packages receive RelayView compatibility testing and maintenance. Optional guidance requires explicit role assignment; the Planner and Implementer defaults remain available alongside the pinned Issue Designer default. User forks are maintained by their publishers. Instruction packages use schema version 1, or schema version 2 for a Planner package declaring owner-validated `issueClaim` metadata. Schema 2 accepts a nullable target status label; the owner enforces the claim transition after proved implementation handoff. It contains only `SKILL.md`, declared `.md`/`.txt` resources, and `relayview-skill.json` within each package. Scripts, executable files, undeclared files, and requested permissions fail checks and owner admission. There is no fixed release calendar: maintained packages are versioned when their content or compatibility changes. A breaking owner contract requires a new compatible maintained release before the product depends on it.
|
Only named releases of maintained packages receive RelayView compatibility testing and maintenance. Optional guidance requires explicit role assignment; the Planner and Implementer defaults remain available alongside the pinned Issue Designer default. User forks are maintained by their publishers. Instruction packages use schema version 1, schema version 2 for a Planner package declaring owner-validated `issueClaim` metadata, or schema version 3 for a role communication package. Schema 2 accepts a nullable target status label; the owner enforces the claim transition after proved implementation handoff. Each package declares one role/step pair: `planner`/`planning`, `implementer`/`implementation`, `reviewer`/`review`, `designer`/`design`, `tester`/`testing`, or `coordinator`/`coordination`. RelayView admits Tester and Coordinator packages only after it adopts those pairs. A package contains only `SKILL.md`, declared `.md`/`.txt` resources, and `relayview-skill.json`. 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
|
## A named set in RelayView
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ Replace `examples/starter-planner` in the last two commands with your package di
|
|||||||
|
|
||||||
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 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 Human acceptance. The owner keeps the existing Gitea task workflow.
|
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.
|
||||||
|
|
||||||
## Write the guidance
|
## Write the guidance
|
||||||
|
|
||||||
@@ -87,3 +87,19 @@ Judge a change over several runs, using the tool calls each run made, not one su
|
|||||||
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.
|
||||||
|
|
||||||
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 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
|
||||||
|
`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
|
||||||
|
communication treatment is off. Unrelated automatic packages remain available.
|
||||||
|
The owner retains publication identity/order, mandatory status, complete durable
|
||||||
|
artifacts, verification and Operator acceptance. These packages customize
|
||||||
|
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.
|
||||||
@@ -0,0 +1,149 @@
|
|||||||
|
# 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. 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.
|
||||||
@@ -4,7 +4,7 @@ description: Explain structural changes in an owner-pinned code diff with tracea
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Component diff
|
relayview-display-name: Component diff
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Component diff review
|
# Component diff review
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "reviewer",
|
"role": "reviewer",
|
||||||
"step": "review",
|
"step": "review",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "f1746262e65a8a3de9223a8c42a30b354a6718fea3819079cd13597a258da567"
|
"sha256": "74bd447bb072c0667fb2276398ee2cadc28079917a4c7781fe18fd5e7f868b83"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
name: code-review-auto
|
||||||
|
description: Present findings for the owner-assigned review candidate.
|
||||||
|
metadata:
|
||||||
|
relayview-display-name: Review finding presentation
|
||||||
|
relayview-version: 0.13.0
|
||||||
|
---
|
||||||
|
|
||||||
|
# Review finding presentation
|
||||||
|
|
||||||
|
Keep findings bounded, path-aware, and actionable.
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"schemaVersion": 1,
|
||||||
|
"source": {
|
||||||
|
"kind": "first-party",
|
||||||
|
"reference": "v0.13.0"
|
||||||
|
},
|
||||||
|
"role": "reviewer",
|
||||||
|
"step": "review",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"path": "SKILL.md",
|
||||||
|
"sha256": "2040364a3cd49fb21346295fff371c1ef242e3227e33cd9138c30bbf10923514"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -4,7 +4,7 @@ description: Review the owner-pinned candidate against repository standards and
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Code review
|
relayview-display-name: Code review
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Two-axis code review
|
# Two-axis code review
|
||||||
@@ -12,3 +12,5 @@ metadata:
|
|||||||
Review only the candidate and commit identity supplied by the owner. Keep standards and Plan fidelity separate. For standards, cite the exact repository rule and changed hunk; identify possible design smells as judgment calls, never as rule violations. A documented local standard takes precedence over a general heuristic. For Plan fidelity, identify missing or partial requirements, unrequested behavior, and behavior whose implementation contradicts the accepted Plan. Cite the Plan clause and code evidence for each finding.
|
Review only the candidate and commit identity supplied by the owner. Keep standards and Plan fidelity separate. For standards, cite the exact repository rule and changed hunk; identify possible design smells as judgment calls, never as rule violations. A documented local standard takes precedence over a general heuristic. For Plan fidelity, identify missing or partial requirements, unrequested behavior, and behavior whose implementation contradicts the accepted Plan. Cite the Plan clause and code evidence for each finding.
|
||||||
|
|
||||||
Report both axes even if one has no findings. Distinguish evidence, inference, and uncertainty; skip issues already enforced by tooling unless the enforcement itself failed. Do not edit the candidate, create subagents, choose a new base, change the acceptance state, or request a new review run. The owner controls review scheduling, exact-head binding, and the response to findings.
|
Report both axes even if one has no findings. Distinguish evidence, inference, and uncertainty; skip issues already enforced by tooling unless the enforcement itself failed. Do not edit the candidate, create subagents, choose a new base, change the acceptance state, or request a new review run. The owner controls review scheduling, exact-head binding, and the response to findings.
|
||||||
|
|
||||||
|
Keep findings bounded, path-aware, and actionable.
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "reviewer",
|
"role": "reviewer",
|
||||||
"step": "review",
|
"step": "review",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "c2b05163e738e59573b96f723d5340f56304299bcdf251e38b2d2afb4eda2b5a"
|
"sha256": "c3ce841b0e1e104393d2feabd9982fff08bab59177a8b36a7910dec89a3a8734"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,7 @@ name: codebase-design
|
|||||||
description: Examine module interfaces and seams while drafting a repository Plan.
|
description: Examine module interfaces and seams while drafting a repository Plan.
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Codebase design
|
relayview-display-name: Codebase design
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Codebase design for Planner
|
# Codebase design for Planner
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "planner",
|
"role": "planner",
|
||||||
"step": "planning",
|
"step": "planning",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "8633b139187c3ba62e75338f3792ef6d7a445559b792cfb4926cb722609c161a"
|
"sha256": "4932d91c98ec71eced5decd4b79f6533b93dbe04e78a810b6de7a329bbd4e23f"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "module-guide.md",
|
"path": "module-guide.md",
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ description: Sharpen project terms, invariants, and boundaries for an issue draf
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Designer domain modeling
|
relayview-display-name: Designer domain modeling
|
||||||
relayview-version: 0.6.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Domain modeling
|
# 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 Human 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. 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,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.6.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "designer",
|
"role": "designer",
|
||||||
"step": "design",
|
"step": "design",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "cfb72adc02cf0a488c341d965c16e22d22e90c52ab0540a9072b09c592d1abd7"
|
"sha256": "db980f11e64f3936e913d33ba71e7f33b5ad171c82af9c814cb7fd32b43b03e2"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
name: designer-grilling
|
name: designer-grilling
|
||||||
description: Stress test one proposed issue design through focused Human questions.
|
description: Stress test one proposed issue design through focused Operator questions.
|
||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Designer grilling
|
relayview-display-name: Designer grilling
|
||||||
relayview-version: 0.6.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Grilling
|
# Grilling
|
||||||
|
|
||||||
State the design and scope to be challenged and seek the Human'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. 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,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.6.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "designer",
|
"role": "designer",
|
||||||
"step": "design",
|
"step": "design",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "431da86a21da7b74fa55bce36c1e0fc806d066cd8b1ace7a784e1eb4a2db4a89"
|
"sha256": "e1cbf117510c6497241122ab8f7564d78d7fdaf85ba6e3b43256c881dea2d6bb"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -4,30 +4,30 @@ description: Plan a bounded throwaway prototype to answer a design question.
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Designer prototype
|
relayview-display-name: Designer prototype
|
||||||
relayview-version: 0.6.2
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Prototype
|
# Prototype
|
||||||
|
|
||||||
Propose the exact question, bounded code or data scope, expected preview or data effects, and limits to the Human 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.
|
||||||
|
|
||||||
## Let the Human try it as a user
|
## Let the Operator try it as a user
|
||||||
|
|
||||||
The Human answers the question by using the prototype the way the software's user will. The commands they type are part of the design under review: the command name, its arguments and options, and the directory it runs from.
|
The Operator answers the question by using the prototype the way the software's user will. The commands they type are part of the design under review: the command name, its arguments and options, and the directory it runs from.
|
||||||
|
|
||||||
- Prepare the scenario yourself before handing over. Create the sample data, repositories, and earlier history the question needs, and run any setup steps, so the scenario is ready when the Human arrives.
|
- Prepare the scenario yourself before handing over. Create the sample data, repositories, and earlier history the question needs, and run any setup steps, so the scenario is ready when the Operator arrives.
|
||||||
- Put the scenario's data where the app finds it by default, such as its default config or source directory under HOME, so the user's command needs no extra options.
|
- Put the scenario's data where the app finds it by default, such as its default config or source directory under HOME, so the user's command needs no extra options.
|
||||||
- Make the Human's first command one the software's user will type: the real command name, the syntax this change proposes, and the arguments a user would pass, run from the directory where a user would be.
|
- Make the Operator's first command one the software's user will type: the real command name, the syntax this change proposes, and the arguments a user would pass, run from the directory where a user would be.
|
||||||
- Give each command to try exactly as that user types it, and say what it shows.
|
- Give each command to try exactly as that user types it, and say what it shows.
|
||||||
- Give the Human only the commands needed to answer the design question. Add a reset command only when one of those commands changes the scenario; then put it in `/scratch/bin` and give it by its name alone, followed by the command to try again.
|
- Give the Operator only the commands needed to answer the design question. Add a reset command only when one of those commands changes the scenario; then put it in `/scratch/bin` and give it by its name alone, followed by the command to try again.
|
||||||
- Ask the Human about what they saw as a user of the software, in terms of the design question.
|
- Ask the Operator about what they saw as a user of the software, in terms of the design question.
|
||||||
|
|
||||||
## Before handing over
|
## Before handing over
|
||||||
|
|
||||||
Work through this checklist, then give the Human the shell command and the first command to try:
|
Work through this checklist, then give the Operator the shell command and the first command to try:
|
||||||
|
|
||||||
1. The app's command runs by its own name from `/scratch/bin`: a configured command the owner listed, or a launcher you wrote. Run `cd` to the command directory, then the command with an unknown option, and confirm its usage message names the command as the user types it.
|
1. The app's command runs by its own name from `/scratch/bin`: a configured command the owner listed, or a launcher you wrote. Run `cd` to the command directory, then the command with an unknown option, and confirm its usage message names the command as the user types it.
|
||||||
2. The scenario's data is where the app finds it by default under the workspace's HOME.
|
2. The scenario's data is where the app finds it by default under the workspace's HOME.
|
||||||
3. Helper commands are in `/scratch/bin`, so the Human runs each by its name.
|
3. Helper commands are in `/scratch/bin`, so the Operator runs each by its name.
|
||||||
4. The command directory is set with `configure` to where the app's user runs the app.
|
4. The command directory is set with `configure` to where the app's user runs the app.
|
||||||
5. You ran the first command to try yourself, exactly as the Human will type it, from that directory, and it showed what the question is about.
|
5. You ran the first command to try yourself, exactly as the Operator will type it, from that directory, and it showed what the question is about.
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.6.2"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "designer",
|
"role": "designer",
|
||||||
"step": "design",
|
"step": "design",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "b72f085f33c10ea48f69fbe55c4f364f6a873a8ae2e6baeb8eaf2aaf71df5045"
|
"sha256": "ebf3ff2a5321ca8984e318d37a37c00b9ad9ef3c7966e9cf04eeab996eb16ae3"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@ description: Research a design question using admitted repository, tracker, and
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Designer research
|
relayview-display-name: Designer research
|
||||||
relayview-version: 0.6.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Research
|
# Research
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.6.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "designer",
|
"role": "designer",
|
||||||
"step": "design",
|
"step": "design",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "676c4291d4bab19c76c0d945eefe21aa6787783e4e2d2285e0d6e270303d1e94"
|
"sha256": "d745d68f04984c5d69ec0356da24c2147eb9738003096e792f6ad3a72b040cf0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -4,9 +4,9 @@ description: Turn an agreed problem into a complete reviewable issue specificati
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Designer to spec
|
relayview-display-name: Designer to spec
|
||||||
relayview-version: 0.6.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# To spec
|
# 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 Human 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. Save the complete text through the owner-stored draft. The Operator decides readiness and publication.
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.6.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "designer",
|
"role": "designer",
|
||||||
"step": "design",
|
"step": "design",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "c4b8707f88faf1b9f3e04bb707b45bbb3d89848a8a3b2ac807dc819e8dd29f91"
|
"sha256": "96afff887cda29d1a2447ef4ccd8f6dd3fbf00b622623bd3d69d6bc0f1efc40d"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -4,9 +4,9 @@ description: Decompose an agreed specification into ordered issue proposals.
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Designer to tickets
|
relayview-display-name: Designer to tickets
|
||||||
relayview-version: 0.6.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# To tickets
|
# 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 Human. Keep proposals private until Human 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. 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,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.6.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "designer",
|
"role": "designer",
|
||||||
"step": "design",
|
"step": "design",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "561db3543cfdffe55b8002954d7debcf9d0fc1125d51c688a74cf2469d3d73a1"
|
"sha256": "b52ad8f158a1aa27c469e33e9f15b3b3f47ad8c3658444ee0fc6d137ed80ad53"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -4,9 +4,9 @@ description: Classify and route an observed issue before drafting work.
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Designer triage
|
relayview-display-name: Designer triage
|
||||||
relayview-version: 0.6.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Triage
|
# 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 Human 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. Draft an issue or question for Operator review; only owner controls can change tracker status or placement.
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.6.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "designer",
|
"role": "designer",
|
||||||
"step": "design",
|
"step": "design",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "fa62a0806921d87ddd27e494cfc379513cc147ad658eb5a2981970ccb25babf5"
|
"sha256": "d09d9621c07476e1d3294d952ac85f011ac3ab83308a981817bcb991e70d402d"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
name: designer-wayfinder
|
name: designer-wayfinder
|
||||||
description: Map an uncertain design decision into options and a Human choice.
|
description: Map an uncertain design decision into options and a Operator choice.
|
||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Designer Wayfinder
|
relayview-display-name: Designer Wayfinder
|
||||||
relayview-version: 0.6.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Wayfinder
|
# 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 Human; enter the method only after the Human agrees. Observe current facts, list viable options with consequences and reversibility, and ask the smallest question that separates them. Record the Human'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, 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,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.6.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "designer",
|
"role": "designer",
|
||||||
"step": "design",
|
"step": "design",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "c5b5db0755af497cfe9be9fee9912f1406fb3b8546d7f389998516ba298f27b0"
|
"sha256": "fb441d89ae15ed309d85dd8af4ae151dd951fb155c19ccf672083cca876e2671"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,7 @@ name: diagnosing-bugs
|
|||||||
description: Build a reproducible feedback loop before fixing an assigned defect.
|
description: Build a reproducible feedback loop before fixing an assigned defect.
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Diagnose bugs
|
relayview-display-name: Diagnose bugs
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Diagnose within implementation
|
# Diagnose within implementation
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "implementer",
|
"role": "implementer",
|
||||||
"step": "implementation",
|
"step": "implementation",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "41c5d0ccb48b19aef95e19103f3c7721b9c3ddf2e8bdf3ff2c429a26853b18ae"
|
"sha256": "b3c6d9a89c50365d0cd41b327e52c54043e1aa52b2dcb351656fe4950ee12144"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -3,12 +3,12 @@ name: domain-modeling
|
|||||||
description: Reconcile verified domain vocabulary and accepted decisions during implementation.
|
description: Reconcile verified domain vocabulary and accepted decisions during implementation.
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Domain modeling
|
relayview-display-name: Domain modeling
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Domain documentation in implementation
|
# Domain documentation in implementation
|
||||||
|
|
||||||
Read the repository's domain glossary and documentation rules before changing a model. When the assigned implementation reveals ambiguous or conflicting terms, compare the proposed meaning with current code, tests, and the accepted Plan. Raise an unresolved decision through the assigned Human communication path; do not turn a guess into an authoritative term.
|
Read the repository's domain glossary and documentation rules before changing a model. When the assigned implementation reveals ambiguous or conflicting terms, compare the proposed meaning with current code, tests, and the accepted Plan. Raise an unresolved decision through the assigned Operator communication path; do not turn a guess into an authoritative term.
|
||||||
|
|
||||||
After a term or consequential design decision is accepted and verified, update the repository's existing glossary or decision record within the assigned worktree. Keep glossary entries about domain meaning rather than implementation mechanics. Record an ADR only for a hard-to-reverse, surprising trade-off whose decision authority and alternatives are known. Keep run-specific test evidence with the issue or review handoff.
|
After a term or consequential design decision is accepted and verified, update the repository's existing glossary or decision record within the assigned worktree. Keep glossary entries about domain meaning rather than implementation mechanics. Record an ADR only for a hard-to-reverse, surprising trade-off whose decision authority and alternatives are known. Keep run-specific test evidence with the issue or review handoff.
|
||||||
|
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "implementer",
|
"role": "implementer",
|
||||||
"step": "implementation",
|
"step": "implementation",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "8a4d491493655b19feeb799af625ccef1f9064f203f3e38f57ccd7e547c28be6"
|
"sha256": "0c203c9d52a7fce7d017d00e3b568b67b6236b5895523cb92bf5be8189fb264c"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -4,11 +4,11 @@ description: Ask one deliberate question at a time to clarify an assigned Plan.
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Grill me
|
relayview-display-name: Grill me
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# One-question planning interview
|
# One-question planning interview
|
||||||
|
|
||||||
When the Human explicitly invokes this skill during planning, map the unresolved decisions affecting the assigned task. Check the repository and current Plan context for facts before asking. Ask one consequential question at a time, with a recommended answer and its consequence. Wait for the Human's answer before advancing to a dependent question.
|
When the Operator explicitly invokes this skill during planning, map the unresolved decisions affecting the assigned task. Check the repository and current Plan context for facts before asking. Ask one consequential question at a time, with a recommended answer and its consequence. Wait for the Operator's answer before advancing to a dependent question.
|
||||||
|
|
||||||
Keep a visible list of settled decisions and remaining branches. Stop when the requested scope, important alternatives, and verification expectations are explicit enough for a Plan. Place accepted decisions in the Plan through the assigned planning interface; do not treat an unanswered question as approval. This interview does not start implementation or change an owner workflow stage.
|
Keep a visible list of settled decisions and remaining branches. Stop when the requested scope, important alternatives, and verification expectations are explicit enough for a Plan. Place accepted decisions in the Plan through the assigned planning interface; do not treat an unanswered question as approval. This interview does not start implementation or change an owner workflow stage.
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "planner",
|
"role": "planner",
|
||||||
"step": "planning",
|
"step": "planning",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "36895ad26a065b073d3d823557d83b62bd7bb771e74e65e4f246f4e08b52bb16"
|
"sha256": "c71bcdd1f7b3d9378d591581e5642a09193c947a66a2b9268e60c3a3d00a6e32"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
---
|
---
|
||||||
name: grilling
|
name: grilling
|
||||||
description: Interview a Planner's Human about independent decision branches in rounds.
|
description: Interview a Planner's Operator about independent decision branches in rounds.
|
||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Grilling
|
relayview-display-name: Grilling
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Planning decision rounds
|
# Planning decision rounds
|
||||||
|
|
||||||
When the Human explicitly invokes this skill, draw the decision tree for the assigned Plan. Resolve repository facts with the Planner's assigned read tools. Identify the current frontier: questions whose prerequisites are already settled. Ask that frontier together in one numbered round, giving a recommended answer and consequence for each question. Wait for the Human's answers, update the tree, then recompute the frontier.
|
When the Operator explicitly invokes this skill, draw the decision tree for the assigned Plan. Resolve repository facts with the Planner's assigned read tools. Identify the current frontier: questions whose prerequisites are already settled. Ask that frontier together in one numbered round, giving a recommended answer and consequence for each question. Wait for the Operator's answers, update the tree, then recompute the frontier.
|
||||||
|
|
||||||
Keep dependent questions for later rounds. State when a branch remains unresolved; silence is not a decision. Stop when the frontier is empty and the Human confirms the scope is understood. Record settled requirements and open decisions through the assigned planning interface. Do not launch other agents, edit the repository, or change workflow stages.
|
Keep dependent questions for later rounds. State when a branch remains unresolved; silence is not a decision. Stop when the frontier is empty and the Operator confirms the scope is understood. Record settled requirements and open decisions through the assigned planning interface. Do not launch other agents, edit the repository, or change workflow stages.
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "planner",
|
"role": "planner",
|
||||||
"step": "planning",
|
"step": "planning",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "1c88593633482d44022eac49de217fc16c8f102067549ba819f1b1ca1728307e"
|
"sha256": "6646c00bc0d1e45a1b7875d95c68e21d4cebd4958d046b61f0eb9c8cd7d73c51"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
name: implementer-communication
|
||||||
|
description: Communication style for the assigned implementer; proportional answers, examples, Markdown and natural acknowledgements.
|
||||||
|
metadata:
|
||||||
|
relayview-display-name: Implementer communication
|
||||||
|
relayview-version: 0.13.0
|
||||||
|
---
|
||||||
|
|
||||||
|
Lead with the answer, decision, observed finding, or material uncertainty. Use detail proportional to the immediate question, including requested examples and technical mechanics, with no fixed word, line, or token limit. Keep inspection effort independent of conversational length.
|
||||||
|
|
||||||
|
For user-facing focused Chat 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 code needs a block, use a fenced code block with the correct language identifier if the language is known. Leave a fence unlabeled when the language is unknown or the content is genuinely plain.
|
||||||
|
|
||||||
|
Keep the acknowledgement brief, relaxed, clear, and professional. Use natural contractions and vary the wording to fit the request; do not default to “I understand…” or repeat the user's full checklist. Briefly convey the requested outcome in your own words and, when useful, name an accurate first action. A short receipt is enough when the task and authorization are already clear. There is no fixed sentence count; three short sentences are fine. Describe only work within your current authorization. Receipt never means completed work, successful validation, approval, or newly granted implementation authority. Continue the authorized work without waiting for an unnecessary Operator reply.
|
||||||
|
|
||||||
|
Describe observed work and material uncertainty. Explain delivered behavior, material deviations, verification and remaining limitations in the applicable report fields. After an accepted artifact, explain the result and material remaining action without repeating the whole report. Conversational detail and coding effort are independent; investigate, implement and verify as thoroughly as the task requires.
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"schemaVersion": 3,
|
||||||
|
"source": {
|
||||||
|
"kind": "first-party",
|
||||||
|
"reference": "v0.13.0"
|
||||||
|
},
|
||||||
|
"role": "implementer",
|
||||||
|
"step": "implementation",
|
||||||
|
"treatment": "communication_context",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"path": "SKILL.md",
|
||||||
|
"sha256": "89cc00ed7f84f2b759a02b3c561033b467828067c2bba061d822df4ebca34400"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -3,12 +3,12 @@ name: implementer-handoff
|
|||||||
description: Reconcile verified implementation documentation and prepare review content during implementation.
|
description: Reconcile verified implementation documentation and prepare review content during implementation.
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Implementer handoff
|
relayview-display-name: Implementer handoff
|
||||||
relayview-version: 0.2.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Implementer handoff
|
# Implementer handoff
|
||||||
|
|
||||||
During the assigned implementation step, keep the repository's current-behavior documentation aligned with the code and checks you actually completed. Read the project's documentation rules and the relevant existing contract before editing it. Use the [handoff guide](handoff.md) for the documentation disposition and review content.
|
During the assigned implementation step, keep the repository's current-behavior documentation aligned with the code and checks you actually completed. Read the project's documentation rules and the relevant existing contract before editing it. Use the [handoff guide](handoff.md) for implementation clarification, documentation disposition and review content.
|
||||||
|
|
||||||
Prepare a concise, attributable review handoff when the assigned workflow gives you a place to submit one. Identify the exact candidate, focused checks and their observed results, any manual evidence and its observer, unresolved limitations, and the documentation disposition. A command attempted is not a check passed; report failures and stale evidence explicitly.
|
Prepare a concise, attributable review handoff when the assigned workflow gives you a place to submit one. Identify the exact candidate, focused checks and their observed results, any manual evidence and its observer, unresolved limitations, and the documentation disposition. A command attempted is not a check passed; report failures and stale evidence explicitly.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# Handoff guide
|
# Handoff guide
|
||||||
|
|
||||||
|
## Implementation and clarification
|
||||||
|
|
||||||
|
Read the relevant files and make focused changes. Use the assigned investigation method for repository discovery; this handoff method owns clarification and report preparation.
|
||||||
|
|
||||||
|
Ask the planner for more information when blocked after reasonable investigation. If the final contract appears wrong, explain the mismatch clearly, make the safest local correction if obvious within the authoritative scope, and validate it. Clarification methods guide communication; scope changes require owner authority.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
- Update the current-behavior contract only for behavior verified on the candidate. Keep proposed work clearly proposed.
|
- Update the current-behavior contract only for behavior verified on the candidate. Keep proposed work clearly proposed.
|
||||||
@@ -11,4 +17,4 @@
|
|||||||
- Summarize the user-visible change and its bounded impact.
|
- Summarize the user-visible change and its bounded impact.
|
||||||
- Name the candidate revision and the focused checks run against it, with observed pass or failure results.
|
- Name the candidate revision and the focused checks run against it, with observed pass or failure results.
|
||||||
- Give a reviewer executable steps and expected observations for any behavior that automated checks cannot establish.
|
- Give a reviewer executable steps and expected observations for any behavior that automated checks cannot establish.
|
||||||
- State remaining uncertainty and recovery steps. Attribute provider or Human observations to their actual source.
|
- State remaining uncertainty and recovery steps. Attribute provider or Operator observations to their actual source.
|
||||||
@@ -2,18 +2,18 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.2.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "implementer",
|
"role": "implementer",
|
||||||
"step": "implementation",
|
"step": "implementation",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "bfeafa2d7780fe2c0bb4206ab9a03acd12804347ceb0f3ffb3e06e1be514c852"
|
"sha256": "1cd3190db3991f9c310e2d3c3be854a32171cdf4d774d7868de466d5a403afe6"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "handoff.md",
|
"path": "handoff.md",
|
||||||
"sha256": "303c3e792cf0e8da6215e6eeb69f5a2f1f2bd0b67db016160d9e83a970ad95d3"
|
"sha256": "5171fe6c5aab6934f828efd6b06dcc3811e94f567035a56515fbc6798d4c9751"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,7 @@ name: implementer-investigation
|
|||||||
description: Investigate source, generated configuration, load order and negative search results within the assigned implementer boundary.
|
description: Investigate source, generated configuration, load order and negative search results within the assigned implementer boundary.
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Implementer investigation
|
relayview-display-name: Implementer investigation
|
||||||
relayview-version: 0.7.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
Use the admitted command/filesystem boundary. Inspect relevant package defaults,
|
Use the admitted command/filesystem boundary. Inspect relevant package defaults,
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.7.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "implementer",
|
"role": "implementer",
|
||||||
"step": "implementation",
|
"step": "implementation",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "7775acb6525cf134d33321c3f4d79c074903086dc948138ef747af53f88e8ef5"
|
"sha256": "4d2d2d4852652b2766ca3fb5c9d4508e626d15f0d7734a4a4c747f8decbf9b82"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "investigation.md",
|
"path": "investigation.md",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ description: Assess assigned module-deepening opportunities as read-only plannin
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Architecture opportunities
|
relayview-display-name: Architecture opportunities
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Architecture opportunity assessment
|
# Architecture opportunity assessment
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "planner",
|
"role": "planner",
|
||||||
"step": "planning",
|
"step": "planning",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "07b2c9f88207a541c493c85fe7faa6d4b3d04eadbcf7ab592f9e5a4187692ee9"
|
"sha256": "76b396ab9912e96f2181710218182830f80abec9026bed95dd37ec5c263dff55"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -3,15 +3,15 @@ name: issue-designer-default
|
|||||||
description: Guide ordinary Issue Designer Chats from observed facts to a reviewable draft.
|
description: Guide ordinary Issue Designer Chats from observed facts to a reviewable draft.
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Issue Designer default
|
relayview-display-name: Issue Designer default
|
||||||
relayview-version: 0.6.1
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Issue Designer default
|
# Issue Designer default
|
||||||
|
|
||||||
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.
|
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 Human: 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, or authority. A useful draft states the problem, observable outcome, boundaries, prerequisites, and verification including failure behavior. Preserve unresolved choices explicitly.
|
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, or authority. A useful draft 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.
|
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.
|
||||||
|
|
||||||
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 Human 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 Human reviews the exact set and publishes through owner controls.
|
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.
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.6.1"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "designer",
|
"role": "designer",
|
||||||
"step": "design",
|
"step": "design",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "d2d4b743cc9bab550910b95a49f9e7c97805510dcb49d66d7a2f79f9c859bf4f"
|
"sha256": "dde8456e8e6e1bee384f9ec2fbefcbc581cd775213f0e0be23f9e07c4a62b019"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@ description: Replace suitable TypeScript test assertions with an admitted partia
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Migrate to shoehorn
|
relayview-display-name: Migrate to shoehorn
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# TypeScript test fixture migration
|
# TypeScript test fixture migration
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "implementer",
|
"role": "implementer",
|
||||||
"step": "implementation",
|
"step": "implementation",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "56b0d3f5ea1cbf8603201d4f5563e6f582561fe58c5679ed428dc7c29d31e461"
|
"sha256": "b94a2ad8f2f611979117a4601f3c0b3852ae37f6df77717828c0a20c17825366"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
name: planner-communication
|
||||||
|
description: Communication style for the assigned planner; proportional answers, examples, Markdown and natural acknowledgements.
|
||||||
|
metadata:
|
||||||
|
relayview-display-name: Planner communication
|
||||||
|
relayview-version: 0.14.0
|
||||||
|
---
|
||||||
|
|
||||||
|
Address the person you are speaking with as “you” and describe their decisions, permissions, and next actions from their perspective. Explain workflow behavior in familiar language, naming the responsible agent or RelayView when the software acts. Before publishing a reply, check that the person can tell who acts next and what, if anything, you need from them.
|
||||||
|
|
||||||
|
Lead with the answer, decision, observed finding, or material uncertainty. Use detail proportional to the immediate question, including requested examples and technical mechanics, with no fixed word, line, or token limit. Keep inspection effort independent of conversational length.
|
||||||
|
|
||||||
|
For user-facing focused Chat 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 code needs a block, use a fenced code block with the correct language identifier if the language is known. Leave a fence unlabeled when the language is unknown or the content is genuinely plain.
|
||||||
|
|
||||||
|
Keep the acknowledgement brief, relaxed, clear, and professional. Use natural contractions and vary the wording to fit the request; do not default to “I understand…” or repeat the user's full checklist. Briefly convey the requested outcome in your own words and, when useful, name an accurate first action. A short receipt is enough when the task and authorization are already clear. There is no fixed sentence count; three short sentences are fine. Describe only work within your current authorization. Receipt never means completed work, successful validation, approval, or newly granted implementation authority. Continue the authorized work without waiting for an unnecessary Operator reply.
|
||||||
|
|
||||||
|
Before Plan v1 finalization, lead with a concise recommendation and material tradeoffs, default to prose or a short list, and ask only questions whose answers can change the decision or implementation Plan. Include example code when requested or when a small fragment is necessary to explain the decision. Keep ordinary discussion focused on the question rather than prematurely emitting a complete implementation, test suite, or plan-shaped code sample. After finalization, explain the result without repeating the complete Plan. Keep ordinary status answers concise and expand when requested. Required immutable artifacts remain complete for every downstream consumer.
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"schemaVersion": 3,
|
||||||
|
"source": {
|
||||||
|
"kind": "first-party",
|
||||||
|
"reference": "v0.14.0"
|
||||||
|
},
|
||||||
|
"role": "planner",
|
||||||
|
"step": "planning",
|
||||||
|
"treatment": "communication_context",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"path": "SKILL.md",
|
||||||
|
"sha256": "26154c0d1985dc0214fde7c42f02e0581c4779c2e41b027d676acf5b0b23edfc"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -3,7 +3,7 @@ name: planner-investigation
|
|||||||
description: Investigate source, generated configuration, load order and negative search results within the assigned planner boundary.
|
description: Investigate source, generated configuration, load order and negative search results within the assigned planner boundary.
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Planner investigation
|
relayview-display-name: Planner investigation
|
||||||
relayview-version: 0.7.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
Use only assigned read roots and the assigned read/search tools. Investigate
|
Use only assigned read roots and the assigned read/search tools. Investigate
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.7.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "planner",
|
"role": "planner",
|
||||||
"step": "planning",
|
"step": "planning",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "e1410558c392100d9557d118a9d82e1068ed7a42142bcfe076f09ceed0dac966"
|
"sha256": "c49e963469978510919a8344bf1d79988f94c2282bae22fa87d8e8b4af3aec34"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "investigation.md",
|
"path": "investigation.md",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: planner-scope
|
|||||||
description: Check assigned issue scope, neighboring work, and verification before drafting a Plan.
|
description: Check assigned issue scope, neighboring work, and verification before drafting a Plan.
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Planner scope
|
relayview-display-name: Planner scope
|
||||||
relayview-version: 0.8.1
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Planner scope
|
# Planner scope
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"schemaVersion": 2,
|
"schemaVersion": 2,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.8.1"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "planner",
|
"role": "planner",
|
||||||
"step": "planning",
|
"step": "planning",
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "94119fd02a634007f44c227e523802d8f8a7249a97a5526b888d8739401645a2"
|
"sha256": "015651bbb9022025ff71732cb9ff1f6ea087ed143d76fa69091b6273a8fc7db7"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "scope.md",
|
"path": "scope.md",
|
||||||
|
|||||||
@@ -4,13 +4,13 @@ description: Prepare a reviewable pull-request description for an implemented ca
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: PR content
|
relayview-display-name: PR content
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Prepare review content
|
# Prepare review content
|
||||||
|
|
||||||
When the assigned implementation needs a pull-request description, draft text from the current candidate and evidence actually observed. Give the reviewer the behavioral summary, exact candidate revision, focused checks and their outcomes, documentation disposition, material risk, and repeatable manual observations where automation cannot prove behavior. Link to source files or artifacts whose identity you verified.
|
When the assigned implementation needs a pull-request description, draft text from the current candidate and evidence actually observed. Give the reviewer the behavioral summary, exact candidate revision, focused checks and their outcomes, documentation disposition, material risk, and repeatable manual observations where automation cannot prove behavior. Link to source files or artifacts whose identity you verified.
|
||||||
|
|
||||||
State failures, limitations, and stale checks plainly. Attribute Human and provider observations to their actual observer; do not present model prose as gate evidence. Keep reviewer commands runnable in the repository's documented shell, with concrete paths or a precise way to discover a missing value.
|
State failures, limitations, and stale checks plainly. Attribute Operator and provider observations to their actual observer; do not present model prose as gate evidence. Keep reviewer commands runnable in the repository's documented shell, with concrete paths or a precise way to discover a missing value.
|
||||||
|
|
||||||
Deliver the draft through the assigned Implementer report or communication path. PR creation, remote comments, review decisions, publication, and merge remain owner-managed operations unless separately authorized by that workflow.
|
Deliver the draft through the assigned Implementer report or communication path. PR creation, remote comments, review decisions, publication, and merge remain owner-managed operations unless separately authorized by that workflow.
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "implementer",
|
"role": "implementer",
|
||||||
"step": "implementation",
|
"step": "implementation",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "86f5c76f96b1f7a4258d21ecd0aeb9ee39cf95fb45eb90e2ee6b172ca460e47a"
|
"sha256": "5d3cab7beb8c9c377126fd0cfb4ec32939ff1d18d8a6962d98143ada1e12e712"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@ description: Build a disposable local prototype to answer one implementation que
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Prototype
|
relayview-display-name: Prototype
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Bounded implementation prototype
|
# Bounded implementation prototype
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "implementer",
|
"role": "implementer",
|
||||||
"step": "implementation",
|
"step": "implementation",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "319fe249629788f51b3c8738ded5a1c88336534ad96fa43e7c80a554f09ef586"
|
"sha256": "d59ea525fea7c5bee39f6fc1399f667ea2e7ddb0005932a75619eff42d9e8c9f"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
name: research-auto
|
||||||
|
description: Source selection and reading methods for assigned Planner research.
|
||||||
|
metadata:
|
||||||
|
relayview-display-name: Research methodology
|
||||||
|
relayview-version: 0.13.0
|
||||||
|
---
|
||||||
|
|
||||||
|
# Research methodology
|
||||||
|
|
||||||
|
Prefer primary sources: applicable official documentation, specifications, source code, release notes, maintainer records, and reproducible first-party artifacts that own a claim; use secondary sources for orientation and corroboration. When an applicable authoritative domain is already known, preferredDomains may rank it higher; omit the option during broad exploration and refine a later search after discovering the right domain. Prefer narrow publisher hosts over broad multi-tenant hosts, and inspect/fetch returned sources before relying on them.
|
||||||
|
|
||||||
|
When external research is material, use web_search to discover candidate public sources before web_fetching selected applicable evidence instead of guessing a destination URL.
|
||||||
|
|
||||||
|
Check publication date, applicable product and version, and whether a source supports the precise claim. State uncertainty, conflicts, missing access, and inferences explicitly.
|
||||||
|
|
||||||
|
Corroborate consequential or surprising claims with independent evidence when practical; mirrors, syndication, repetition, and pages derived from one upstream source are not independent.
|
||||||
|
|
||||||
|
For an empirically testable technical claim, prefer a small reproducible local experiment only when this role already has an approved execution capability. Record the question, procedure, relevant versions and resolved paths, observation, and limitations; do not generalize beyond the tested environment.
|
||||||
|
|
||||||
|
Use confidence language proportional to the evidence and identify claims that still depend on provider ranking, inaccessible sources, or unverified assumptions.
|
||||||
|
|
||||||
|
Repeat an exact query only when the cached result is intentionally sufficient; use a materially narrower query when new terms, version, claim, or source scope justify a distinct auditable search.
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"schemaVersion": 1,
|
||||||
|
"source": {
|
||||||
|
"kind": "first-party",
|
||||||
|
"reference": "v0.13.0"
|
||||||
|
},
|
||||||
|
"role": "planner",
|
||||||
|
"step": "planning",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"path": "SKILL.md",
|
||||||
|
"sha256": "ce259cdd63a1dedbee5d71ba76088a0c18b05c3d6c75ad611157974aa6d8680c"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -4,7 +4,7 @@ description: Ground assigned planning questions in traceable primary sources usi
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Primary-source research
|
relayview-display-name: Primary-source research
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Primary-source research
|
# Primary-source research
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "planner",
|
"role": "planner",
|
||||||
"step": "planning",
|
"step": "planning",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "78a832c0bae3d3829afcf78c5cee19a08f0a624e0775b29db5e33c038b725d53"
|
"sha256": "e2ae3d82e67fae872c17cbe91b4d14d6b5b86ff9084db40a170b42be10c46fff"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
name: reviewer-communication
|
||||||
|
description: Communication style for the assigned reviewer; proportional answers, examples, Markdown and natural acknowledgements.
|
||||||
|
metadata:
|
||||||
|
relayview-display-name: Reviewer communication
|
||||||
|
relayview-version: 0.13.0
|
||||||
|
---
|
||||||
|
|
||||||
|
Lead with the answer, decision, observed finding, or material uncertainty. Use detail proportional to the immediate question, including requested examples and technical mechanics, with no fixed word, line, or token limit. Keep inspection effort independent of conversational length.
|
||||||
|
|
||||||
|
For user-facing focused Chat 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 code needs a block, use a fenced code block with the correct language identifier if the language is known. Leave a fence unlabeled when the language is unknown or the content is genuinely plain.
|
||||||
|
|
||||||
|
Keep the acknowledgement brief, relaxed, clear, and professional. Use natural contractions and vary the wording to fit the request; do not default to “I understand…” or repeat the user's full checklist. Briefly convey the requested outcome in your own words and, when useful, name an accurate first action. A short receipt is enough when the task and authorization are already clear. There is no fixed sentence count; three short sentences are fine. Describe only work within your current authorization. Receipt never means completed work, successful validation, approval, or newly granted implementation authority. Continue the authorized work without waiting for an unnecessary Operator reply.
|
||||||
|
|
||||||
|
Explain a finding using its exact candidate, concrete rationale and actionable requested change. Give the exact as-of round or leaf and state when later evidence is unavailable. Explain settled judgments from their recorded results. Keep orientation focused on the verified role and immutable Plan. Advisory explanations preserve the formal result's complete fields and disposition.
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"schemaVersion": 3,
|
||||||
|
"source": {
|
||||||
|
"kind": "first-party",
|
||||||
|
"reference": "v0.13.0"
|
||||||
|
},
|
||||||
|
"role": "reviewer",
|
||||||
|
"step": "review",
|
||||||
|
"treatment": "communication_context",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"path": "SKILL.md",
|
||||||
|
"sha256": "cebbfd13a642195d7419462557f9d6f4cf774c893d8002d3198880e9e33ce6ca"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -3,7 +3,7 @@ name: reviewer-investigation
|
|||||||
description: Investigate source, generated configuration, load order and negative search results within the assigned reviewer boundary.
|
description: Investigate source, generated configuration, load order and negative search results within the assigned reviewer boundary.
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Reviewer investigation
|
relayview-display-name: Reviewer investigation
|
||||||
relayview-version: 0.7.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
Use only assigned read roots and the assigned read/search tools. Investigate
|
Use only assigned read roots and the assigned read/search tools. Investigate
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.7.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "reviewer",
|
"role": "reviewer",
|
||||||
"step": "review",
|
"step": "review",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "f3c6395f3d077ad1a7901cf31ec7656df032292d0181be9dc8a18e36b92769c9"
|
"sha256": "15adb432777f41039cb4f2ca2d1706f380f2a240b37e2651a86a60c2de4fc6e4"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "investigation.md",
|
"path": "investigation.md",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ description: Build exercise stubs in an assigned course repository using its loc
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Scaffold exercises
|
relayview-display-name: Scaffold exercises
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Exercise scaffolding
|
# Exercise scaffolding
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "implementer",
|
"role": "implementer",
|
||||||
"step": "implementation",
|
"step": "implementation",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "a2714d0a09f737b48e8f581f21a5cd7f9ab946e8dca072cfc813ef61c3f1dc18"
|
"sha256": "d6e4353d27064c567bb6e1262a6d84e5f705cb856662bd968d20be18e7906bd7"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@ description: Find stable repeated patterns in the assigned implementation scope
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Shared abstraction refactor
|
relayview-display-name: Shared abstraction refactor
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Shared abstraction refactor
|
# Shared abstraction refactor
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "implementer",
|
"role": "implementer",
|
||||||
"step": "implementation",
|
"step": "implementation",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "a7906eb68c07ac53cf74525ba02984056c78f205fc6815049959c150c0b1a188"
|
"sha256": "f71b1a5720317b5b46eb4d4e4a507dd78662b9a82c36c536a7cabf0236ed6557"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@ description: Split assigned oversized files along cohesive responsibilities whil
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Split large files
|
relayview-display-name: Split large files
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Split large files
|
# Split large files
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "implementer",
|
"role": "implementer",
|
||||||
"step": "implementation",
|
"step": "implementation",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "6cca9cdf43e97778b9ea763d0f7f9faed575583150cdbe88796072c78f8c685b"
|
"sha256": "73f6f38080000eb062b13c62c8ad4d5c68887ec50a5076ca98d91c4e9c4d0c1e"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,7 @@ name: tdd-auto
|
|||||||
description: Test-driven development for an assigned implementation Plan; use red, green, and focused verification at its agreed test seams.
|
description: Test-driven development for an assigned implementation Plan; use red, green, and focused verification at its agreed test seams.
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Test-driven development
|
relayview-display-name: Test-driven development
|
||||||
relayview-version: 0.3.1
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Test-driven development
|
# Test-driven development
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.1"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "implementer",
|
"role": "implementer",
|
||||||
"step": "implementation",
|
"step": "implementation",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "cf4f0cd039dc283caabc3238e3d084c2d59a3f8c8ba030595e9ea80e2b1338e6"
|
"sha256": "83a59bc7631b3295a9c81b86e6134e5027e85dcfbf4be93c92118930a496c01a"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@ description: Implement an assigned behavior at the Plan's agreed test seam using
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Test-driven development
|
relayview-display-name: Test-driven development
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Test-driven development
|
# Test-driven development
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "implementer",
|
"role": "implementer",
|
||||||
"step": "implementation",
|
"step": "implementation",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "ab633f2670c8d9027301fa985b048ad469b086ed74b1659df8955f2eab9b3a9c"
|
"sha256": "b66d4641c1ec5d9757644b377cfb2dd39fafe6d3bd107f463381eaeaf51d4071"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -4,11 +4,11 @@ description: Draft questions for an outside expert when the assigned Plan needs
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Planning questionnaire
|
relayview-display-name: Planning questionnaire
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Planning questionnaire
|
# Planning questionnaire
|
||||||
|
|
||||||
When the Human explicitly invokes this skill, identify the facts or decisions the assigned Plan cannot resolve from the repository or admitted sources. Ask who can supply the missing knowledge and what decision their answer will support. Draft a concise questionnaire in the Planner conversation for the Human to send through their chosen channel.
|
When the Operator explicitly invokes this skill, identify the facts or decisions the assigned Plan cannot resolve from the repository or admitted sources. Ask who can supply the missing knowledge and what decision their answer will support. Draft a concise questionnaire in the Planner conversation for the Operator to send through their chosen channel.
|
||||||
|
|
||||||
Put the highest-value questions first. Give each question one topic and enough context for an outside recipient to answer without seeing the task history. Include a place to state uncertainty or partial answers. Record the unanswered items as open Plan decisions; incorporate answers only after the Human provides them. Drafting the text neither sends it nor advances the workflow.
|
Put the highest-value questions first. Give each question one topic and enough context for an outside recipient to answer without seeing the task history. Include a place to state uncertainty or partial answers. Record the unanswered items as open Plan decisions; incorporate answers only after the Operator provides them. Drafting the text neither sends it nor advances the workflow.
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "planner",
|
"role": "planner",
|
||||||
"step": "planning",
|
"step": "planning",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "1ccb2b78ffade9faec27b83427a0e3d8fa7f54109b436578f1d79e0ac22d4fe5"
|
"sha256": "20e87aa107dd937c7edc9696aa2681bf54cfb8044efa0f6aa3ebb456af3f3cde"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@ description: Write assigned agent-facing repository guidance with precise trigge
|
|||||||
disable-model-invocation: true
|
disable-model-invocation: true
|
||||||
metadata:
|
metadata:
|
||||||
relayview-display-name: Writing for agents
|
relayview-display-name: Writing for agents
|
||||||
relayview-version: 0.3.0
|
relayview-version: 0.13.0
|
||||||
---
|
---
|
||||||
|
|
||||||
# Writing for agents
|
# Writing for agents
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"source": {
|
"source": {
|
||||||
"kind": "first-party",
|
"kind": "first-party",
|
||||||
"reference": "v0.3.0"
|
"reference": "v0.13.0"
|
||||||
},
|
},
|
||||||
"role": "implementer",
|
"role": "implementer",
|
||||||
"step": "implementation",
|
"step": "implementation",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "SKILL.md",
|
"path": "SKILL.md",
|
||||||
"sha256": "3a2fd1e3253a7373648f333456d1383c161203467ed89526a8129639806f377e"
|
"sha256": "9637378a91621e16219ed455ba5d8c0460c8bd6ffefe299797603dd1896b7c85"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -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.
|
||||||
+16
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -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
@@ -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.
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
+42
-4
@@ -12,6 +12,44 @@ ROOT = Path(__file__).resolve().parents[1]
|
|||||||
|
|
||||||
|
|
||||||
class PackageTests(unittest.TestCase):
|
class PackageTests(unittest.TestCase):
|
||||||
|
def test_research_auto_contains_only_extracted_method(self):
|
||||||
|
package = ROOT / "packages/research-auto"
|
||||||
|
check_package(package)
|
||||||
|
text = (package / "SKILL.md").read_text()
|
||||||
|
self.assertIn("omit the option during broad exploration", text)
|
||||||
|
self.assertIn("inspect/fetch returned sources", text)
|
||||||
|
self.assertIn("Check publication date", text)
|
||||||
|
self.assertIn("Corroborate consequential", text)
|
||||||
|
self.assertNotIn("spawn", text)
|
||||||
|
self.assertNotIn("save a research file", text)
|
||||||
|
|
||||||
|
def test_communication_packages_declare_their_treatment(self):
|
||||||
|
for role in ("planner", "implementer", "reviewer"):
|
||||||
|
package = ROOT / f"packages/{role}-communication"
|
||||||
|
result = check_package(package)
|
||||||
|
manifest = json.loads((package / "relayview-skill.json").read_text())
|
||||||
|
self.assertEqual(manifest["treatment"], "communication_context")
|
||||||
|
text = (package / "SKILL.md").read_text()
|
||||||
|
self.assertIn("proportional", text)
|
||||||
|
self.assertIn("acknowledgement", text)
|
||||||
|
self.assertIn("Markdown", text)
|
||||||
|
|
||||||
|
def test_automatic_review_is_only_extracted_presentation(self):
|
||||||
|
package = ROOT / "packages/code-review-auto"
|
||||||
|
check_package(package)
|
||||||
|
text = (package / "SKILL.md").read_text()
|
||||||
|
self.assertIn("path-aware, and actionable", text)
|
||||||
|
self.assertNotIn("Report both axes", text)
|
||||||
|
self.assertNotIn("subagent", text)
|
||||||
|
|
||||||
|
def test_handoff_clarification_method(self):
|
||||||
|
package = ROOT / "packages/implementer-handoff"
|
||||||
|
check_package(package)
|
||||||
|
text = (package / "handoff.md").read_text()
|
||||||
|
self.assertIn("blocked after reasonable investigation", text)
|
||||||
|
self.assertIn("scope changes require owner authority", text)
|
||||||
|
self.assertNotIn("Trace load order", text)
|
||||||
|
|
||||||
def test_schema_two_claim_policy_bounds(self):
|
def test_schema_two_claim_policy_bounds(self):
|
||||||
with tempfile.TemporaryDirectory() as directory:
|
with tempfile.TemporaryDirectory() as directory:
|
||||||
package = Path(directory) / "planner-scope"
|
package = Path(directory) / "planner-scope"
|
||||||
@@ -72,7 +110,7 @@ class PackageTests(unittest.TestCase):
|
|||||||
skill = (package / "SKILL.md").read_text()
|
skill = (package / "SKILL.md").read_text()
|
||||||
frontmatter = skill.split("---", 2)[1]
|
frontmatter = skill.split("---", 2)[1]
|
||||||
self.assertEqual("disable-model-invocation: true" in frontmatter, name in manual)
|
self.assertEqual("disable-model-invocation: true" in frontmatter, name in manual)
|
||||||
version = {automatic: "0.6.1", "designer-prototype": "0.6.2"}.get(name, "0.6.0")
|
version = "0.13.0"
|
||||||
self.assertIn(f"relayview-version: {version}", frontmatter)
|
self.assertIn(f"relayview-version: {version}", frontmatter)
|
||||||
manifest = json.loads((package / "relayview-skill.json").read_text())
|
manifest = json.loads((package / "relayview-skill.json").read_text())
|
||||||
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": f"v{version}"})
|
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": f"v{version}"})
|
||||||
@@ -84,9 +122,9 @@ class PackageTests(unittest.TestCase):
|
|||||||
frontmatter = skill.split("---", 2)[1]
|
frontmatter = skill.split("---", 2)[1]
|
||||||
self.assertIn("name: tdd-auto", frontmatter)
|
self.assertIn("name: tdd-auto", frontmatter)
|
||||||
self.assertNotIn("disable-model-invocation: true", frontmatter)
|
self.assertNotIn("disable-model-invocation: true", frontmatter)
|
||||||
self.assertIn("relayview-version: 0.3.1", frontmatter)
|
self.assertIn("relayview-version: 0.13.0", frontmatter)
|
||||||
manifest = json.loads((package / "relayview-skill.json").read_text())
|
manifest = json.loads((package / "relayview-skill.json").read_text())
|
||||||
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.3.1"})
|
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.13.0"})
|
||||||
check_package(package)
|
check_package(package)
|
||||||
self.assertIn("disable-model-invocation: true", (ROOT / "packages/tdd/SKILL.md").read_text())
|
self.assertIn("disable-model-invocation: true", (ROOT / "packages/tdd/SKILL.md").read_text())
|
||||||
|
|
||||||
@@ -135,7 +173,7 @@ class PackageTests(unittest.TestCase):
|
|||||||
package = ROOT / "packages" / name
|
package = ROOT / "packages" / name
|
||||||
manifest = json.loads((package / "relayview-skill.json").read_text())
|
manifest = json.loads((package / "relayview-skill.json").read_text())
|
||||||
self.assertEqual((manifest["role"], manifest["step"]), (role, step))
|
self.assertEqual((manifest["role"], manifest["step"]), (role, step))
|
||||||
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.8.1" if name == "planner-scope" else "v0.2.0"})
|
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.13.0"})
|
||||||
self.assertIn(resource, [item["path"] for item in manifest["files"]])
|
self.assertIn(resource, [item["path"] for item in manifest["files"]])
|
||||||
self.assertIn(marker, (package / "SKILL.md").read_text() + (package / resource).read_text())
|
self.assertIn(marker, (package / "SKILL.md").read_text() + (package / resource).read_text())
|
||||||
|
|
||||||
|
|||||||
@@ -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()
|
||||||
+38
-11
@@ -10,6 +10,25 @@ import zipfile
|
|||||||
from pathlib import Path
|
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):
|
class PackageError(ValueError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -44,26 +63,26 @@ def check_package(path):
|
|||||||
manifest = json.loads(_text(raw_manifest, str(sidecar)))
|
manifest = json.loads(_text(raw_manifest, str(sidecar)))
|
||||||
except (ValueError, TypeError) as error:
|
except (ValueError, TypeError) as error:
|
||||||
_fail(f"{sidecar}: invalid JSON: {error}")
|
_fail(f"{sidecar}: invalid JSON: {error}")
|
||||||
if not isinstance(manifest, dict) or (
|
version = manifest.get("schemaVersion") if isinstance(manifest, dict) else None
|
||||||
(manifest.get("schemaVersion") == 1 and set(manifest) != {"schemaVersion", "source", "role", "step", "files"}) or
|
# type() rather than isinstance(): JSON true must not pass as schema 1.
|
||||||
(manifest.get("schemaVersion") == 2 and set(manifest) != {"schemaVersion", "source", "role", "step", "files", "issueClaim"}) or
|
if type(version) is not int or version not in MANIFEST_FIELDS or set(manifest) != MANIFEST_FIELDS[version]:
|
||||||
manifest.get("schemaVersion") not in (1, 2)
|
|
||||||
):
|
|
||||||
_fail(f"{path}: unsupported manifest fields")
|
_fail(f"{path}: unsupported manifest fields")
|
||||||
source = manifest["source"]
|
source = manifest["source"]
|
||||||
if not isinstance(source, dict) or set(source) != {"kind", "reference"}:
|
if not isinstance(source, dict) or set(source) != {"kind", "reference"}:
|
||||||
_fail(f"{path}: invalid source")
|
_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"]):
|
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")
|
_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")
|
_fail(f"{path}: incompatible role or step")
|
||||||
if manifest["schemaVersion"] == 2:
|
if version == 2:
|
||||||
claim = manifest["issueClaim"]
|
claim = manifest["issueClaim"]
|
||||||
label = claim.get("statusLabel") if isinstance(claim, dict) else None
|
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 (
|
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")
|
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")
|
_fail(f"{path}: invalid issue claim policy")
|
||||||
|
if version == 3 and (manifest["treatment"] != "communication_context" or manifest["role"] == "designer"):
|
||||||
|
_fail(f"{path}: invalid communication treatment")
|
||||||
files = manifest["files"]
|
files = manifest["files"]
|
||||||
if not isinstance(files, list) or not 1 <= len(files) <= 16:
|
if not isinstance(files, list) or not 1 <= len(files) <= 16:
|
||||||
_fail(f"{path}: invalid file list")
|
_fail(f"{path}: invalid file list")
|
||||||
@@ -108,14 +127,18 @@ def check_package(path):
|
|||||||
if set(observed) != set(declared):
|
if set(observed) != set(declared):
|
||||||
_fail(f"{path}: missing declared file")
|
_fail(f"{path}: missing declared file")
|
||||||
skill = _text(observed["SKILL.md"], "SKILL.md")
|
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:
|
if not match:
|
||||||
_fail(f"{path}: invalid SKILL.md frontmatter")
|
_fail(f"{path}: invalid SKILL.md frontmatter")
|
||||||
frontmatter = match.group(1)
|
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 = []
|
top_keys = []
|
||||||
nested_keys = []
|
nested_keys = []
|
||||||
in_metadata = False
|
in_metadata = False
|
||||||
for line in frontmatter.splitlines():
|
for line in lines:
|
||||||
if line.startswith(" "):
|
if line.startswith(" "):
|
||||||
if not in_metadata or not re.fullmatch(r" [a-z-]+: .+", line):
|
if not in_metadata or not re.fullmatch(r" [a-z-]+: .+", line):
|
||||||
_fail(f"{path}: unsupported skill metadata")
|
_fail(f"{path}: unsupported skill metadata")
|
||||||
@@ -124,11 +147,15 @@ def check_package(path):
|
|||||||
key = line.split(":", 1)[0]
|
key = line.split(":", 1)[0]
|
||||||
top_keys.append(key)
|
top_keys.append(key)
|
||||||
in_metadata = key == "metadata"
|
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:
|
else:
|
||||||
_fail(f"{path}: unsupported skill metadata")
|
_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"}:
|
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")
|
_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"):
|
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")
|
_fail(f"{path}: disable-model-invocation must be a boolean")
|
||||||
expected_name = path.name
|
expected_name = path.name
|
||||||
@@ -136,7 +163,7 @@ def check_package(path):
|
|||||||
_fail(f"{path}: missing or incompatible skill metadata")
|
_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:
|
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")
|
_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:
|
if len(display_name) > 128:
|
||||||
_fail(f"{path}: display name exceeds owner bounds")
|
_fail(f"{path}: display name exceeds owner bounds")
|
||||||
digest = hashlib.sha256(b"relayview-instruction-package-v1\0" + _frame(raw_manifest))
|
digest = hashlib.sha256(b"relayview-instruction-package-v1\0" + _frame(raw_manifest))
|
||||||
|
|||||||
Reference in new issue
Block a user