Compare commits

..
52 Commits
Author SHA1 Message Date
anodyine 18ec0be2eb Merge pull request 'Update Implementer packages for inner-loop convergence and Planner flags (v0.16.0)' (#38) from ISSUE-25 into main
Check instruction packages / check (push) Successful in 5s
2026-11-25 23:37:56 -05:00
adminandClaude Opus 5.5 3e7d96dcc3 Address review pass 2: one home for report items, complete trigger docs
Check instruction packages / check (push) Successful in 9s
Check instruction packages / check (pull_request) Successful in 9s
implementer-handoff's SKILL.md now defers its report items to handoff.md's
review content, which gains the documentation disposition and manual-evidence
observer, so forking handoff.md changes the report as OVERRIDING.md says.
SKILL.md's flag sentence points at the guide's triggers. OVERRIDING lists the
unsettled-tradeoff trigger, and the release notes describe all three SKILL.md
sections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:31:15 -05:00
adminandClaude Opus 5.5 b217bfcb03 Address review: keep sealing as guidance and the rules in handoff.md
Move the fast-check definition and flag triggers out of implementer-handoff's
SKILL.md so forking handoff.md alone changes them, as OVERRIDING.md says.
Reword sealing as an aim the owner's workflow decides rather than a gate the
prose restates, so a fast check that can never pass ends in a report. Raise
scope_exceeded for a failing check only when the fix leaves the Plan.
Rewrap the release-notes intro and rename one test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:29:30 -05:00
adminandClaude Opus 5.5 ca7b5e4b80 Update Implementer packages for inner-loop convergence and Planner flags (v0.16.0)
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
implementer-handoff now runs the Plan's fast checks after each change and
resolves Planner feedback before sealing a candidate, routes genuine
specification ambiguity, unexpected sensitive boundaries, and scope creep to
the Planner as needs_operator_decision or scope_exceeded flags instead of
paging the Operator, and reports declared test-resource readiness and known
gaps. implementer-communication frames candidate handoffs and flags. Both move
to source reference v0.16.0 with unchanged schemas; OVERRIDING, README, and
release notes describe the fork seams.

Closes #25

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:25:41 -05:00
anodyine 260d3fec82 Merge pull request 'Update Planner and Reviewer packages for proof translation, typed escalation, and guardrails (v0.16.0)' (#37) from ISSUE-24 into main
Check instruction packages / check (push) Successful in 5s
2026-11-25 21:27:38 -05:00
adminandClaude Opus 5.5 2f57b2aed7 Merge main (Coordinator recovery and manual packages) into ISSUE-24
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 6s
Resolve the package contract's Tester/Coordinator adoption passage by
keeping v0.15.0 recorded as published and main's full list of in-source
v0.17.0 Coordinator packages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:27:02 -05:00
anodyine b02ffbf672 Merge pull request 'Add manual Coordinator wave-audit and tracker-hygiene packages (v0.17.0)' (#35) from ISSUE-28 into main
Check instruction packages / check (push) Successful in 4s
2026-11-25 20:56:20 -05:00
adminandClaude Opus 5.5 d9934bdb13 Address final review: document hygiene's ledger write, align audit
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
OVERRIDING.md says tracker hygiene records stale edges as resolved in
the Working Ledger and routes the "What goes in the Working Ledger" seam
to both recovery and hygiene, so a fork of the resolution rule changes
both. The wave audit regains dispatch's caveat that unrelated functions
in one large file usually do not contend, and hygiene orders proposals
by the waiting issue, running issues first. The guide test normalizes
whitespace and checks the exact tracker-change phrase.

Refs #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:54:34 -05:00
adminandClaude Opus 5.5 c309981987 Address post-merge review: skip resolved edges, accurate fork note
Tracker hygiene skips edges the Working Ledger already records as
resolved and reads closure and landed changes rather than an undefined
"merged" issue state. OVERRIDING.md no longer says wave selection lives
only in coordinator-dispatch, since the wave audit carries a copy, and
uses "adopts the pair" throughout the Coordinator section. Tests pin the
single ledger name, the Doubtful group, and the resolved-edge skip.

Refs #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:53:12 -05:00
adminandClaude Opus 5.5 073c1cd8db Merge main (Coordinator recovery package) into ISSUE-28
Keep both the recovery and the manual-method rows in the role, package,
and owner-boundary matrices; list recovery's seams and both fork examples
(recovery automatic set, manual on-request set) in the Coordinator
section; and name all five Coordinator packages as in source in the
README and the contract.

Align tracker hygiene with coordinator-recovery's ledger: use its single
"Working Ledger" name, record an edge resolved only when either issue
closes or the shared change lands, and list an edge whose evidence merely
looks doubtful without changing its ledger entry.

Refs #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:51:42 -05:00
anodyine 3ae567573e Merge pull request 'Add Technical Coordinator recovery package (v0.17.0)' (#36) from ISSUE-27 into main
Check instruction packages / check (push) Successful in 5s
2026-11-25 20:47:30 -05:00
adminandClaude Opus 5.5 d8c73c21f9 Address second review: conditional docs, escalation checks, rung 3 wording
Check instruction packages / check (push) Successful in 4s
Check instruction packages / check (pull_request) Successful in 5s
- OVERRIDING.md describes Implementer flag triage as conditional, no
  longer implies RelayView assigns the manual code-review, and links the
  ladder to the layer-4 authoring template's trust pyramid.
- README labels the v0.16.0 guardrail behavior as not yet tagged.
- Both review packages' rung 3 includes formal checks and no longer ties
  property tests to the running application; their Escalate sections and
  planner-scope's escalation guide gain a check that the risk summary
  names one Operator decision.
- planner-scope says what to do when the owner reports nothing about a
  Tester step; code-review-auto's heading matches its display name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:46:24 -05:00
adminandClaude Opus 5.5 540afcd860 Address review: reachable rung 4, Tester fallback, conditional flags
- The guardrail trigger no longer presupposes a deterministic check, so a
  genuine judgment call can reach the candidate prose skill rung; rung 4
  proposes a candidate skill diff, and a check asks whether a lower rung
  would catch the class. Both review packages' Escalate sections are now
  pinned identical too.
- planner-scope turns verification goals into manual Operator checks when
  no Tester step will run, and triages Implementer flags only once the
  Implementer reports one.
- reviewer-communication uses Specification Designer terminology.
- Release notes cover the planner-scope SKILL.md change; README keeps
  "optional" for code-review-auto.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:44:39 -05:00
adminandClaude Opus 5.5 f32f238f61 Address third review: unambiguous wave admission, stale-edge owner
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
The audit's Wave 1 rule now plainly excludes plausible contention and
caps only GPU-bound issues at the free GPU workers; Blocked/Stale covers
stale as well as missing projections. Tracker hygiene marks stale edges
resolved in the Working Ledger through the owner's command and defines
the comment target when both issues are running.

Refs #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:44:03 -05:00
adminandClaude Opus 5.5 4843d2f465 Address second review: stop nudging after any repeat stall
Check instruction packages / check (push) Successful in 6s
Check instruction packages / check (pull_request) Successful in 6s
Stop nudging when a nudged task stalls again at any stage, keep the
park summary to a few lines, say running tasks continue on yield,
record resolved ledger edges without assuming an update operation, and
name the planned manual v0.17.0 Coordinator methods in the contract.

Refs #27

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:43:41 -05:00
adminandClaude Opus 5.5 5b161d30ec Address second review: Operator applies tracker changes, audit rules
Tracker hygiene now only drafts: the Operator approves and applies each
prerequisite edge or comment, matching coordinator-recovery's rule that
prerequisites and issue comments stay with the Operator. It reads
existing comments through its assigned commands, targets a coordination
note at the issue that has not started, and marks stale edges resolved
in the Working Ledger. The wave audit's Wave 1 rule carries the dispatch
guide's aggressiveness and GPU sizing, a title-only guess holds the
later issue, and the self-check accounts for every section. Docs state
the Operator-applied tracker boundary; contract prose is tidied.

Refs #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:42:48 -05:00
adminandClaude Opus 5.5 fc51868c07 Address review: Autopilot-bound recovery and one ledger name
Check instruction packages / check (push) Successful in 6s
Check instruction packages / check (pull_request) Successful in 7s
State what nudging, resuming, and parking do under Autopilot Off
(propose, act on Operator approval) and On, and yield on a paused
Autopilot as well as a conversation, matching coordinator-dispatch.
Count a contention hold as a blocker, use one Working Ledger name,
keep the escalation wording interface-neutral, fold the rebuilt
posture into the next report, and rewrap the README and contract
lines.

Refs #27

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:41:53 -05:00
adminandClaude Opus 5.5 ae1b6d95aa Record v0.15.0 as published
Check instruction packages / check (push) Successful in 4s
Check instruction packages / check (pull_request) Successful in 5s
The v0.15.0 tag is on origin, so the package matrix, README, and package
contract no longer call it not yet tagged or unpublished. v0.16.0 and
v0.17.0 remain proposed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:41:21 -05:00
adminandClaude Opus 5.5 7c89205e06 Update Planner and Reviewer packages for proof translation, typed escalation, and guardrails (v0.16.0)
planner-scope (schema 2, issueClaim unchanged) now translates the
Specification Designer's requested proof, fast-test completeness, and
declared test resources into Implementer fast checks and Building
Inspector verification goals in Plan v1. A new escalation.md resolves
Implementer needs_operator_decision and scope_exceeded flags inside the
approved specification or promotes them, and escalates directly with one
typed Layer C reason and a short risk summary, never downgrading
operator_review_required.

code-review-auto and code-review share a Trust Pyramid "Propose a
guardrail" section (architecture/API boundary, then static check or fast
regression test, then verification harness, then a candidate prose skill
as last resort) and a typed "Escalate" section. planner-communication and
reviewer-communication (schema 3) frame escalations and Review Packets.

RELEASE-NOTES.md gives each package's before and after for fork
maintainers; OVERRIDING.md and README.md record the new versions and seams.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:41:06 -05:00
adminandClaude Opus 5.5 275967e0a8 Address review: align audit ties, ledger fallback, owner tracker gate
The wave audit now breaks conflicts the way wave-selection.md does (a
free or loaded resource before Ready order) and both manual methods end
with a check-before-finishing list. Tracker hygiene stops when the
Working Ledger is missing, unreadable, or empty rather than proposing
from memory, and posts a coordination note on the issue later in Ready
order. OVERRIDING.md tells forkers of the contention heuristics to fork
the audit too, adds the manual methods and owner-only tracker changes
to the Coordination boundary row and gate paragraph, and introduces the
fork named in the manual-set example.

Refs #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:41:05 -05:00
adminandClaude Opus 5.5 3cef92a36d Add Technical Coordinator recovery package (v0.17.0)
Check instruction packages / check (push) Successful in 7s
Check instruction packages / check (pull_request) Successful in 5s
Add coordinator-recovery, an automatic coordinator/coordination
package (schema 1) that triages a stalled task's blockers before any
nudge, sends one bounded "please keep going" nudge within the owner's
budget and cooldown, parks repeated stalls for the Operator with a
diagnostic summary, rebuilds the Coordinator's posture from the
Portfolio Read Model and Working Ledger after a context refresh, and
records implicit contention edges in the ledger when discovered.

The override guide, contract, and README list the package, show the
recovery seams, and give a named set that swaps recovery without
touching coordinator-dispatch.

Refs #27

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:39:21 -05:00
adminandClaude Opus 5.5 462c2c705c Add manual Coordinator wave-audit and tracker-hygiene packages
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
coordinator-wave-audit (schema 1, manual) audits the entire Ready queue
on /skill: request and returns a four-section wave plan: Safe Parallel
Wave 1, Contention Pairs, Resource-Affinity Batches, and Blocked/Stale.
It dispatches nothing. coordinator-tracker-hygiene (schema 1, manual)
classifies implicit contention edges recorded in the Working Ledger and
drafts minimal prerequisite-edge or issue-comment proposals that change
the tracker only after the Operator approves each one. Both target the
proposed v0.17.0 release.

OVERRIDING.md lists both packages in the role and package matrices and
explains their seams and a manual-set assignment; the README and the
contract name them alongside the automatic Coordinator packages.

Refs #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:38:49 -05:00
anodyine 7d3b057510 Merge pull request 'Add Technical Coordinator dispatch and communication packages' (#33) from ISSUE-26 into main
Check instruction packages / check (push) Successful in 5s
2026-11-25 20:26:38 -05:00
adminandClaude Opus 5.5 320702ade8 Merge main (Specification Designer packages) into ISSUE-26
Check instruction packages / check (push) Successful in 4s
Check instruction packages / check (pull_request) Successful in 5s
Keep the v0.15.0 Designer rows and the Coordinator rows in both
override-guide matrices, mark the untagged v0.15.0 Designer releases
"not yet tagged" to match the package-matrix note, and name all three
new package families in the README's version sentence.

Refs #26

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:25:59 -05:00
anodyine 73f40b0ef3 Merge pull request 'Evolve Designer packages into Specification Designer (v0.15.0)' (#34) from ISSUE-22 into main
Check instruction packages / check (push) Successful in 4s
2026-11-25 20:25:09 -05:00
adminandClaude Opus 5.5 3e1fa75d8c Merge main (Tester packages) into ISSUE-26
Check instruction packages / check (push) Successful in 4s
Check instruction packages / check (pull_request) Successful in 5s
Resolve doc and test conflicts with the v0.15.0 Tester packages by
keeping both: Tester and Coordinator rows in the override guide, both
communication packages in the README list, both pairs in the contract,
and both roles in the communication-package test. Mark the Tester
v0.15.0 rows "not yet tagged" to match the package-matrix note.

Refs #26

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:24:58 -05:00
adminandClaude Opus 5.5 428a944d56 Merge main (Tester packages) into ISSUE-22
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 6s
Keep both the Specification Designer and Tester paragraphs in
OVERRIDING.md and README.md, and both the Testing and Review tiers
boundary rows.

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

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:00:49 -05:00
adminandClaude Opus 5.5 0b104c4e0e Keep approved-wave dispatch after a conversation with Autopilot Off
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
Refs #26

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:00:28 -05:00
anodyine c461acf6ab Merge pull request 'Add first-party Tester inspection and communication packages (v0.15.0)' (#32) from ISSUE-23 into main
Check instruction packages / check (push) Successful in 5s
2026-11-25 20:00:02 -05:00
adminandClaude Opus 5.5 f63c3d817b Address third review: Autopilot-bound resume and owner-reported stalls
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
Resume dispatch only under the Autopilot setting the owner reports,
re-run the selection steps on an approved wave, and report stalls from
the Portfolio Read Model rather than chat memory.

Refs #26

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:59:12 -05:00
adminandClaude Opus 5.5 69054c90fd Address review: label the new default as proposed in RelayView
Keep issue-designer-default as RelayView's pinned default in the
override guide until it pins v0.15.0, move the proof and stamp
customization into the proposed Review tiers row, and frame Layer A/C as
the owner's decision rather than current behavior. Add the fast-tests-only
condition and Layer B naming to the methods, drop the needs-info rule for
open decisions in favor of cautious values, and name the retained-session
release check RelayView must change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:58:49 -05:00
adminandClaude Opus 5.5 2139f04314 Address second review: approved-wave recheck, resume rule, stall definition
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
Re-check an approved wave's members before dispatch, resume after a
conversation ends, define a stall against the previous report, and
pin the code/shell and prerequisite boundaries in the tests.

Refs #26

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:57:51 -05:00
adminandClaude Opus 5.5 9f7ccba6a4 Address review: approved-wave dispatch, yield wording, Ready-order ties
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
Dispatch an Operator-approved wave under Autopilot Off, yield instead
of abandon on pause, break ties by the owner's Ready order, drop
invented owner details, and list coordinator-communication with the
schema-3 packages in the README.

Refs #26

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

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

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:54:53 -05:00
adminandClaude Opus 5.5 f170b339c1 Add Technical Coordinator dispatch and communication packages
Check instruction packages / check (push) Successful in 4s
Check instruction packages / check (pull_request) Successful in 8s
coordinator-dispatch (schema 1, with wave-selection.md) guides semantic
parallel wave selection, resource-affinity batching, Autopilot Off/On
discipline, and typed portfolio_conflict / unique_resource_needed
escalation over the owner's projections. coordinator-communication
(schema 3, communication_context) shapes Control Tower status reports.
Both target the proposed v0.17.0 release.

OVERRIDING.md lists both packages and gains a section on customizing
wave aggressiveness, contention heuristics, and reporting tone without
touching owner gates; the contract and README note the in-source
Coordinator packages.

Refs #26

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

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

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

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

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:34:22 -05:00
anodyine c6323b8219 Merge pull request 'Validate Tester and Coordinator role/step pairs' (#30) from ISSUE-20 into main
Check instruction packages / check (push) Successful in 5s
2026-11-25 19:28:00 -05:00
adminandClaude Opus 5.5 da34e1c1bf State the frontmatter line-break rule exactly
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 5s
Name the separators the checker rejects and the end-of-file closing
delimiter it accepts, and show that the rule stops at the frontmatter: a
CRLF body and a frontmatter-only file still pass. Split frontmatter lines
once and assert the exact rejection reason.

Refs #20

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:04:47 -05:00
adminandClaude Opus 5.5 45eff20ecb Enforce LF-only SKILL.md frontmatter
Check instruction packages / check (push) Successful in 6s
Check instruction packages / check (pull_request) Successful in 5s
The contract stated an LF rule the checker only enforced by accident:
CRLF on a single line, a lone CR, a Unicode line separator, or CRLF on a
delimiter passed. Require LF delimiters and LF-only frontmatter lines, and
test each case. Every package in every tag v0.1.0-v0.14.0 still passes.
The contract now names the required frontmatter keys and shows runnable
check and pack commands.

Refs #20

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:01:50 -05:00
adminandClaude Opus 5.5 f872770dc9 Document the LF frontmatter rule and pin it with a test
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 6s
The checker already rejects CRLF frontmatter; the contract now says so and
a fixture mutation keeps that statement honest. Use the parsed schema
version for the schema 2 and 3 checks, and rewrap the contract.

Refs #20

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:58:35 -05:00
adminandClaude Opus 5.5 ddf95ded04 State every enforced frontmatter and layout rule in the contract
Check instruction packages / check (push) Successful in 5s
Check instruction packages / check (pull_request) Successful in 4s
Add the frontmatter placement, two-space indent, no blank or comment
lines, and real-directory rules; move the example's comment out of its
value line so the example passes; name the code-point sort; and note that
archive digests depend on a POSIX build host. Split the frontmatter line
check into a named condition.

Refs #20

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:56:09 -05:00
adminandClaude Opus 5.5 1e9e46bc09 Require inline frontmatter values and correct the package contract
Check instruction packages / check (push) Successful in 4s
Check instruction packages / check (pull_request) Successful in 4s
Reject a top-level frontmatter key without "key: value" form, so
"disable-model-invocation:yes" can no longer bypass the boolean check.
Assert each rejection's reason in the new-pair tests. In the contract,
mark the Tester and Coordinator releases as proposed, list RelayView's
role-level changes, and state the path-depth bound and the identity and
archive sort orders exactly.

Refs #20

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:53:47 -05:00
adminandClaude Opus 5.5 8c7d967efd Validate Tester and Coordinator role/step pairs
Check instruction packages / check (push) Successful in 4s
Check instruction packages / check (pull_request) Successful in 8s
Accept tester/testing and coordinator/coordination under schemas 1 and 3,
reject a JSON boolean schemaVersion and an inline metadata frontmatter value,
and cover the new pairs with valid fixtures plus single-mutation rejections.
The tests mirror RelayView's identity and archive computation and pin the
identity framing. Document the full instruction package contract and the
RelayView sidecar changes required before pinning v0.15.0 and v0.17.0.

Refs #20

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:50:23 -05:00
75 changed files with 3055 additions and 179 deletions

No files matched your search

+1
View File
@@ -14,5 +14,6 @@ jobs:
- run: python3 -m unittest discover -s tests -v
- run: for package in packages/*; do python3 -m tools.packages check "$package"; done
- run: python3 -m tools.packages check examples/starter-planner
- run: for package in tests/fixtures/packages/*; do python3 -m tools.packages check "$package"; done
- run: for package in packages/*; do python3 -m tools.packages pack "$package" "dist/${package##*/}.zip"; done
- run: python3 -m tools.packages pack examples/starter-planner dist/starter-planner.zip
+585
View File
@@ -0,0 +1,585 @@
# Overriding RelayView role skills
RelayView's maintained deployment gives each agent role that takes skills
first-party packages from this repository as its default instructions. This guide shows which package each role runs, what
a replacement package can change, what RelayView's owner enforces regardless of
any package, and how to publish a fork that the owner admits.
RelayView's own documentation and admission checks stay authoritative. This
guide describes the owner behavior that RelayView documents as current, and
labels planned behavior as proposed. The
[instruction package contract](docs/authoritative/instruction-package-contract.md)
gives every file, sidecar, and frontmatter rule the local checks enforce.
## Role matrix
A package declares one `role` and its one `step`. Schema 3 packages carry
`treatment: "communication_context"`; schema 2 is the Planner's issue-claim
schema. RelayView's maintained deployment assigns the automatic defaults below,
in launch order. A deployment sets its own Planner and Implementer defaults in
`workflowPresets.rolePolicies.<role>.skills` and its Reviewer defaults in
`workflowPresets.reviewerSkills`; Settings → Skills calls these the Configured
default and shows the saved and effective choice for each role.
| Role | `role` / `step` | Schemas | `communication_context` | RelayView admission | Maintained automatic default (launch order) | Other first-party packages |
| --- | --- | --- | --- | --- | --- | --- |
| Specification Designer | `designer` / `design` | 1 | No (schema 3 is rejected) | Admitted | `issue-designer-default` (pinned) | Default from release v0.15.0, not yet pinned: `specification-designer-default`. Manual: `designer-wayfinder`, `designer-grilling`, `designer-research`, `designer-domain-modeling`, `designer-triage`, `designer-to-spec`, `designer-to-tickets`, `designer-prototype`; the maintained configuration assigns none |
| Technical Coordinator | `coordinator` / `coordination` | 1, 3 | Yes | Not yet admitted | None | Automatic, in source for the proposed v0.17.0 release: `coordinator-dispatch`, `coordinator-recovery`, `coordinator-communication`. Manual, in source for the same release: `coordinator-wave-audit`, `coordinator-tracker-hygiene` |
| Planner | `planner` / `planning` | 1, 2, 3 | Yes | Admitted | `planner-investigation`, `planner-scope`, `planner-communication`, `research-auto` | Automatic: `codebase-design`. Manual: `grill-me`, `grilling`, `improve-codebase-architecture`, `research`, `to-questionnaire` |
| Implementer | `implementer` / `implementation` | 1, 3 | Yes | Admitted | `implementer-investigation`, `implementer-handoff`, `implementer-communication` | Automatic: `tdd-auto`, `diagnosing-bugs`, `domain-modeling`. Manual: `tdd`, `pr`, `prototype`, `migrate-to-shoehorn`, `scaffold-exercises`, `shared-abstraction-refactor`, `split-large-files`, `writing-for-agents` |
| Reviewer | `reviewer` / `review` | 1, 3 | Yes | Admitted | `reviewer-investigation`, `code-review-auto`, `reviewer-communication` | Manual: `code-review`, `c4-diff` |
| Tester | `tester` / `testing` | 1, 3 | Yes | Not yet admitted | None | Automatic: `tester-inspection`, `tester-communication`, the proposed defaults once RelayView admits the pair |
RelayView calls the Designer role the Specification Designer. From
`v0.15.0`, `specification-designer-default` replaces `issue-designer-default`
as this repository's Designer default. The replacement adds guidance on
requested proof artifacts, fast-test completeness, declared test resources,
and the recommended review stamp, and the eight methods carry the same
guidance where they touch those decisions. RelayView still pins
`issue-designer-default` and assigns it until it pins `v0.15.0`, which needs
the owner changes the
[contract](docs/authoritative/instruction-package-contract.md#relayview-adoption-of-the-specification-designer-default)
lists. `issue-designer-default` stays unchanged at `v0.13.0` so retained
sessions reconstruct their captured bytes.
RelayView's Tester runs today without skill assignment, and RelayView has no
Technical Coordinator role yet. This repository already validates both pairs
and publishes the Tester packages described in
[Tester packages](#tester-packages), so a fork can be prepared, but RelayView
refuses `tester` and `coordinator` packages until it adopts them. The
Coordinator packages are in source for the proposed `v0.17.0` release and
become RelayView defaults only when RelayView adopts the role and pins that
release; the
[contract](docs/authoritative/instruction-package-contract.md#relayview-adoption-of-the-tester-and-coordinator-pairs)
lists the proposed releases and the owner changes each pair needs.
Other first-party packages run only when an Operator assigns them; see
[assign other first-party guidance](#assign-other-first-party-guidance). A
manual package's text stays out of a session until an Operator invokes it: by
sending `/skill:<name>` to a session that has it assigned, or, for a Designer
method, through the owner's method-entry gate.
## Package matrix
Mode comes from the `SKILL.md` frontmatter: `disable-model-invocation: true`
makes a package manual. Release is the sidecar's `source.reference`, the tag
whose bytes RelayView pins for that package. A release marked *not yet tagged*
is the planned tag; until it is published, the package exists only on `main`
and no RelayView bundle contains it.
| Package | Role / step | Mode | Schema | Sidecar extra | Version | Release | RelayView maintained default |
| --- | --- | --- | --- | --- | --- | --- | --- |
| `specification-designer-default` | `designer` / `design` | automatic | 1 | — | 0.15.0 | `v0.15.0` | Proposed Designer default |
| `issue-designer-default` | `designer` / `design` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Pinned Designer default; replaced by `specification-designer-default` once RelayView pins `v0.15.0` |
| `designer-domain-modeling` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `designer-grilling` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `designer-prototype` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `designer-research` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `designer-to-spec` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `designer-to-tickets` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `designer-triage` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `designer-wayfinder` | `designer` / `design` | manual | 1 | — | 0.15.0 | `v0.15.0` | No |
| `coordinator-dispatch` | `coordinator` / `coordination` | automatic | 1 | — | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted |
| `coordinator-recovery` | `coordinator` / `coordination` | automatic | 1 | — | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted |
| `coordinator-communication` | `coordinator` / `coordination` | automatic | 3 | `communication_context` | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted |
| `coordinator-wave-audit` | `coordinator` / `coordination` | manual | 1 | — | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted |
| `coordinator-tracker-hygiene` | `coordinator` / `coordination` | manual | 1 | — | 0.17.0 | `v0.17.0`, not yet tagged | No; role not yet admitted |
| `planner-investigation` | `planner` / `planning` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Planner automatic, 1st |
| `planner-scope` | `planner` / `planning` | automatic | 2 | `issueClaim: status/in-progress` | 0.16.0 | `v0.16.0`, not yet tagged | Planner automatic, 2nd |
| `planner-communication` | `planner` / `planning` | automatic | 3 | `communication_context` | 0.16.0 | `v0.16.0`, not yet tagged | Planner automatic, 3rd |
| `research-auto` | `planner` / `planning` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Planner automatic, 4th |
| `codebase-design` | `planner` / `planning` | automatic | 1 | — | 0.13.0 | `v0.13.0` | No |
| `grill-me` | `planner` / `planning` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `grilling` | `planner` / `planning` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `improve-codebase-architecture` | `planner` / `planning` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `research` | `planner` / `planning` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `to-questionnaire` | `planner` / `planning` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `implementer-investigation` | `implementer` / `implementation` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Implementer automatic, 1st |
| `implementer-handoff` | `implementer` / `implementation` | automatic | 1 | — | 0.16.0 | `v0.16.0`, not yet tagged | Implementer automatic, 2nd |
| `implementer-communication` | `implementer` / `implementation` | automatic | 3 | `communication_context` | 0.16.0 | `v0.16.0`, not yet tagged | Implementer automatic, 3rd |
| `diagnosing-bugs` | `implementer` / `implementation` | automatic | 1 | — | 0.13.0 | `v0.13.0` | No |
| `domain-modeling` | `implementer` / `implementation` | automatic | 1 | — | 0.13.0 | `v0.13.0` | No |
| `tdd-auto` | `implementer` / `implementation` | automatic | 1 | — | 0.13.0 | `v0.13.0` | No |
| `migrate-to-shoehorn` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `pr` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `prototype` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `scaffold-exercises` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `shared-abstraction-refactor` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `split-large-files` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `tdd` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `writing-for-agents` | `implementer` / `implementation` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `reviewer-investigation` | `reviewer` / `review` | automatic | 1 | — | 0.13.0 | `v0.13.0` | Reviewer automatic, 1st |
| `code-review-auto` | `reviewer` / `review` | automatic | 1 | — | 0.16.0 | `v0.16.0`, not yet tagged | Reviewer automatic, 2nd |
| `reviewer-communication` | `reviewer` / `review` | automatic | 3 | `communication_context` | 0.16.0 | `v0.16.0`, not yet tagged | Reviewer automatic, 3rd |
| `c4-diff` | `reviewer` / `review` | manual | 1 | — | 0.13.0 | `v0.13.0` | No |
| `code-review` | `reviewer` / `review` | manual | 1 | — | 0.16.0 | `v0.16.0`, not yet tagged | No |
| `tester-inspection` | `tester` / `testing` | automatic | 1 | — | 0.15.0 | `v0.15.0` | No; pair not yet admitted |
| `tester-communication` | `tester` / `testing` | automatic | 3 | `communication_context` | 0.15.0 | `v0.15.0` | No; pair not yet admitted |
`tests/test_overriding.py` fails when this table disagrees with a package's
sidecar or frontmatter.
### Tester packages
The two Tester packages are the proposed automatic defaults for the Tester,
also called the Building Inspector, once RelayView admits the
`tester`/`testing` pair. Each replaces independently:
- **`tester-inspection`** carries the inspection method: boot the exact sealed
candidate and use it as a person would, capture the specification's
requested proof artifacts, record obvious UX and runtime defects, and
assemble a Verification Proof Bundle that separates verified runtime
observations from remaining manual Operator checks. It never edits product
code or substitutes a mock for a declared resource, and it escalates with a
typed reason (`verification_incomplete`, `behavioral_tradeoff`, or
`unique_resource_needed`) and a short risk summary. Fork it to change how
the Tester exercises a candidate, which defects it looks for, or when it
escalates. Keep the separation between verified observations and manual
checks: without it, a Review Packet can present an unverified claim as
proof.
- **`tester-communication`** carries the presentation of a proof summary:
observed behavior, defects found, a manual-check checklist, and any
escalation, each pointing to its artifact. Fork it to change tone, order,
or detail; keep `schemaVersion: 3` and the `communication_context`
treatment.
Neither package defines the owner's record format for the bundle or an
escalation, how a bundle is bound to its candidate, or which tools and
resources the Tester may use; RelayView's owner would supply those. The
packages describe only what the Tester observes, writes, and presents within
them.
### Planner and Reviewer escalation and guardrail packages
From `v0.16.0`, the Planner and Reviewer defaults carry the operating model's
proof translation, typed escalation, and Guardrail Proposal guidance. Until
RelayView pins `v0.16.0`, it uses the earlier releases of these packages. The
[release notes](RELEASE-NOTES.md) summarize each package's change, before and after.
Each package forks independently:
- **`planner-scope`** translates the Specification Designer's requested proof
artifacts, fast-test completeness, and declared test resources into
Implementer fast checks and Building Inspector verification goals in Plan v1
(`scope.md`). Its `escalation.md` handles an Implementer
`needs_operator_decision` or `scope_exceeded` flag once the Implementer
reports one: it resolves the flag when the answer is strictly inside the
approved specification and promotes it otherwise. It also
escalates directly with one typed reason (`boundary_crossed`,
`spec_ambiguity`, `verification_incomplete`, `behavioral_tradeoff`, or
`convergence_exceeded`) and a short risk summary. Fork `scope.md` to change
the Plan's shape or translation rules and `escalation.md` to change when the
Planner resolves or escalates. Keep `schemaVersion: 2` and the `issueClaim`
object if the fork should keep the owner's issue claim.
- **`code-review-auto`** and **`code-review`** carry the same "Propose a
guardrail" and "Escalate" sections. When a repeatable defect class escapes
the Implementer, the Reviewer proposes the lowest viable rung of the trust
pyramid in the [layer-4 authoring template](#layer-4-authoring-template):
an architecture or API boundary, then a static check or lint rule with a
root-cause message or a fast regression test, then a verification harness
such as a Feature Map update, and a candidate prose skill only as the last
resort. Fork these sections to change when a guardrail is worth proposing or
which rung to prefer. A fork that drops the ladder order recommends prose
rules where a deterministic check would hold.
- **`planner-communication`** and **`reviewer-communication`** present an
escalation as its typed reason and risk summary first, and a Review Packet's
findings and Guardrail Proposals after it. Fork them to change tone or
order; keep `schemaVersion: 3` and the `communication_context` treatment.
No package defines the owner's escalation record, the Guardrail Proposal card,
or how a guardrail task is queued; RelayView's owner would supply those. Where
the owner assigns no escalation interface, the packages put the reason and
risk summary in the Plan or review result instead.
### Implementer inner-loop and flag packages
From `v0.16.0`, the Implementer defaults carry the operating model's tight
inner loop and indirect escalation. Until RelayView pins `v0.16.0`, it uses
the `v0.13.0` releases of these packages. The
[release notes](RELEASE-NOTES.md) summarize each package's change, before and
after. Each package forks independently:
- **`implementer-handoff`** runs the Plan's Implementer fast checks (types,
lint, static analysis, unit and integration tests: seconds, not minutes)
after each change and resolves Planner feedback before sealing a candidate
for review and the Building Inspector. On genuine specification ambiguity,
an unexpected sensitive boundary, a visible tradeoff the specification does
not settle, or scope creep, it raises a
`needs_operator_decision` or `scope_exceeded` flag to the Planner instead of
paging the Operator or improvising, and it never escalates with a typed
reason itself; `planner-scope` settles or promotes the flag. Its handoff
report adds declared test-resource readiness and known gaps. Fork
`handoff.md` to change the inner loop, when to flag, or the report's
content; fork `SKILL.md` to change the method's outline.
- **`implementer-communication`** leads a candidate handoff with its
readiness, fast-check results, and known gaps, and frames a flag as a
question for the Planner with its options and evidence. Fork it to change
tone or order; keep `schemaVersion: 3` and the `communication_context`
treatment.
No package defines the owner's flag record, its routing to the Planner, or how
a candidate is sealed; RelayView's owner would supply those. Where the owner
assigns no flag interface, `implementer-handoff` puts the flag at the top of
its message to the Planner and lists open flags in the handoff.
## What a skill controls and what the owner enforces
A package is model-facing text. It changes how an agent works inside its role;
it never changes what the role may do. A package that requests tools,
permissions, network access, or scripts fails both the local check and owner
admission.
| Concern | A skill can customize | RelayView's owner enforces regardless of skill prose | Owner rule status |
| --- | --- | --- | --- |
| Tools, network, credentials | Which assigned tools to reach for, and in what order | Each role's tool allowlist, network policy, filesystem confinement, and credentials come from its owner capability profile | Current |
| Which instructions load | Its own text and declared resources | Ambient skill discovery is off; only admitted packages are captured, and their bytes and package identity are verified before every launch | Current |
| Specification work | Interview style, question order, method entry, draft shape | Publication, the method-entry gate, and Operator acceptance of a specification | Current |
| Planning and investigation | Investigation methods, scope analysis, research method, Plan presentation | Plan authority, finalization schemas, validation-manifest adoption, research budgets and tool contracts | Current |
| Issue claim | Nothing in prose | The schema-2 `issueClaim` sidecar value selects the claim; the owner validates and performs the Gitea change after proved implementation handoff | Current |
| Implementation handoff | Change focus, fast-check iteration, clarification cadence, documentation-writing technique | Report fields, documentation disposition, evidence submission, clean committed candidates, stop rules | Current |
| Review | Finding presentation and inspection techniques | Exact-candidate scope, dispositions, correction routing, review and merge gates | Current |
| Communication | Tone, detail, examples, acknowledgements | Publication identity and order, mandatory status, complete durable artifacts; communication packages load only when the frozen `communication_context` treatment is on | Current |
| Manual methods | When a method is worth invoking | `/skill:<name>` reaches a session only if that name is in its captured assignment | Current |
| Acceptance | Nothing | Operator acceptance requires a person | Current |
| Coordination | Wave aggressiveness, contention heuristics, resource batching, when to escalate, when and how to nudge a stalled task, when to park it, reorientation after a context refresh, what goes in the Working Ledger, Control Tower reporting tone, on-request wave audit and tracker proposals | Ready state and prerequisites, dispatch through owner commands, the Operator's Autopilot toggle, resource leases, review policy, nudge budgets and cooldowns, task state and the Working Ledger's persistence, tracker changes, which the Coordinator only proposes and the Operator applies | Proposed |
| Testing | How to exercise a candidate, which defects to look for, when to escalate, and how to present a proof summary | The Tester's tool and resource confinement, the exact-candidate binding of the Verification Proof Bundle and its fields, invalidation of proof from a superseded candidate, and the typed escalation record | Proposed |
| Review tiers | How to frame a risk or escalation summary, when the Planner resolves or promotes an Implementer flag, and how the Specification Designer proposes proof artifacts, fast-test completeness, test resources, and a review stamp | Repository trust ceiling (Layer A), the Operator's per-specification stamp (Layer B), and the one-way escalation ratchet with typed reasons (Layer C): no agent may downgrade `operator_review_required` | Proposed |
| Implementer flags | When the Implementer raises a `needs_operator_decision` or `scope_exceeded` flag, how it frames one, and how it reports test-resource readiness | The structured flag record, its routing to the Planner rather than the Operator, and sealing the candidate | Proposed |
| Guardrail proposals | When a defect class is repeatable enough to propose a guardrail, and which Trust Pyramid rung to recommend | The Guardrail Proposal card, queueing its follow-up task, and Operator approval before any candidate prose skill becomes active | Proposed |
Proposed rows come from RelayView's coordinator and verification operating
model (`docs/speculative/coordinator-and-verification-operating-model.md` in
RelayView), which RelayView documents as speculative architecture. Do not rely on
an owner rule marked Proposed; until RelayView ships it, a package cannot
assume it.
Existing sessions keep the bytes they captured at launch. A new selection
affects only future sessions.
## Fork and override recipe
This example forks `planner-scope` as `team-planner-scope`. Substitute your
own package and name throughout.
1. **Copy the package under a distinct name.** The directory name, the
frontmatter `name`, and the RelayView import ID must all be equal and must
differ from every first-party ID; RelayView never lets a configured or
imported package overwrite an admitted ID.
```sh
cp -R packages/planner-scope team-planner-scope
```
2. **Edit the frontmatter.** Set `name: team-planner-scope`, give it your own
`relayview-display-name` and `relayview-version`, and keep
`disable-model-invocation` as it is unless you mean to change the mode.
Then edit the instructions and resources.
3. **Edit the sidecar.** Set `"source": {"kind": "user", "reference":
"team-planner-scope-1.0.0"}`. Keep `role`, `step`, and `schemaVersion`.
- A Planner scope fork keeps `schemaVersion: 2` and its `issueClaim` object
if it should keep the owner's linked-issue claim; schema 1 declares no
claim, and the owner then claims nothing. An automatic Planner assignment
may contain only one schema-2 package.
- A communication fork keeps `schemaVersion: 3` and
`"treatment": "communication_context"`, so RelayView keeps applying the
communication treatment boundary to it.
- Add any new resource to `files`; every file in the directory except the
sidecar must be declared.
4. **Recalculate the SHA-256 digests.** This rewrites every `files[].sha256`
from the current bytes:
```sh
python3 - team-planner-scope <<'EOF'
import hashlib, json, sys
from pathlib import Path
package = Path(sys.argv[1])
sidecar = package / "relayview-skill.json"
manifest = json.loads(sidecar.read_text())
for item in manifest["files"]:
item["sha256"] = hashlib.sha256((package / item["path"]).read_bytes()).hexdigest()
sidecar.write_text(json.dumps(manifest, indent=2) + "\n")
EOF
```
5. **Check and pack it.** `check` prints the package identity the owner will
record; `pack` writes a reproducible archive and prints its SHA-256.
```sh
python3 -m tools.packages check team-planner-scope
python3 -m tools.packages pack team-planner-scope dist/team-planner-scope.zip
```
Preserve `LICENSE` and `NOTICE.md` when you redistribute a fork; the archive
includes both.
6. **Install it.** Copy the package directory under the owner's configured
`trustedSkills.root`, which must not contain or sit inside any target
repository.
7. **Import it in RelayView Settings → Skills.** Enter the ID
`team-planner-scope` and the path `team-planner-scope/SKILL.md`, relative
to the trusted root. Import requires `source.kind: "user"`, validates the
package, and records its digest; it does not assign it. To change a
package after import, publish it under a new ID.
8. **Assign it.**
- **Planner, Implementer, Reviewer:** add the ID to a named set in
`trustedSkills.sets` with the matching `role`, `step`, and
`invocationMode`, restart the owner to load the set, then select the set
for the role in Settings → Skills and save. A saved automatic set
replaces the whole automatic assignment: list every package the role
should still run.
```yaml
trustedSkills:
sets:
- id: team-planning
name: Team planning
role: planner
step: planning
invocationMode: automatic
members: [planner-investigation, team-planner-scope, planner-communication, research-auto]
```
When a deployment's frozen communication treatment is off, RelayView
rejects a selected automatic set that contains a communication package;
leave `planner-communication` out of the set there.
- **Specification Designer:** select the imported package in the
Specification Designer card, as the default (an automatic package) or as
an optional method (a manual package), and save. No named set or restart
is needed.
New sessions for that role use the fork; existing sessions keep their
captured packages.
### Assign other first-party guidance
RelayView pre-admits the ten maintained Planner, Implementer, and Reviewer
defaults and the nine Designer packages. Settings import accepts only
`source.kind: "user"` packages, so any other first-party package, such as
`tdd-auto` or `grill-me`, is admitted through the owner catalog instead:
1. Copy the package directory from its release, for example
`packages/tdd-auto` at tag `v0.13.0`, under `trustedSkills.root`.
2. Add it to the catalog, keyed by its ID:
```yaml
trustedSkills:
catalog:
tdd-auto: tdd-auto/SKILL.md
```
3. Add the ID to a named set and select it as in step 8 above.
The eight Designer methods are already admitted. Select them as optional
methods in the Specification Designer card, or list their IDs in
`workflowPresets.designerSkills` and restart the owner; that list applies
until an Operator saves a Designer choice in Settings.
## Customize the Technical Coordinator
RelayView does not yet admit `coordinator` packages, so this describes how a
Coordinator fork is prepared now and assigned once RelayView adopts the pair.
The maintained packages split the Coordinator's judgment into seams that fork
independently:
| To change | Edit | For example |
| --- | --- | --- |
| Wave aggressiveness | The "Aggressiveness" section of `coordinator-dispatch`'s `wave-selection.md` | Admit a candidate unless contention is evident, or hold any two candidates that touch the same top-level directory |
| Contention heuristics | The "Implicit contention" list in `wave-selection.md` | Always serialize tasks that touch `migrations/`, or treat a shared staging environment as contended |
| Resource batching | The "Resource affinity" list in `wave-selection.md` | Follow the owner's Ready order strictly, accepting `ml-server` model reloads |
| When to escalate | The "Escalate" section of `coordinator-dispatch`'s `SKILL.md` | Raise `portfolio_conflict` for any overlap in a protected directory instead of sequencing it |
| Nudge wording and when to nudge | The "Nudge a stalled task" section of `coordinator-recovery`'s `SKILL.md` | Include the failing check's last output in each nudge, or never nudge during a long build |
| When to stop nudging and park | The bounds in "Nudge a stalled task" and the "Park and escalate" section | Park after the first stall in review, or add the task's recent commits to the diagnostic summary |
| Reorientation after a context refresh | The "Reorient after a context refresh" section | Rebuild only the running wave first, or include recently closed issues for a day |
| What goes in the Working Ledger | The "Keep the Working Ledger" section of `coordinator-recovery`, and the Stale group of `coordinator-tracker-hygiene` for edges it resolves | Also record each resource reload, or omit nudges that succeeded |
| Control Tower reporting tone | `coordinator-communication`'s `SKILL.md` | Lead with held issues, or report only changes since the last status |
| On-request wave audit | `coordinator-wave-audit`'s `SKILL.md` | Audit one milestone by default, or add a section for issues that touch `migrations/` |
| Tracker proposals | `coordinator-tracker-hygiene`'s `SKILL.md` | Draft only issue comments, never prerequisite edges, or use the team's comment template |
Fork each package you change under its own name with the
[fork and override recipe](#fork-and-override-recipe), for example
`team-coordinator-dispatch` with schema 1. A `coordinator-communication` fork
keeps schema 3 and `"treatment": "communication_context"`. An automatic set
replaces the whole assignment, so the Coordinator's set lists the fork and
every package you did not fork.
Recovery and nudge behavior lives only in `coordinator-recovery`, and wave
selection in `coordinator-dispatch` and its on-request copy in
`coordinator-wave-audit`, so recovery and dispatch fork without each other.
For example, to replace recovery while keeping the maintained dispatch and
communication packages, fork `coordinator-recovery` as
`team-coordinator-recovery` with schema 1 and put it in a named set beside
them:
```yaml
trustedSkills:
sets:
- id: team-coordination
name: Team coordination
role: coordinator
step: coordination
invocationMode: automatic
members: [coordinator-dispatch, team-coordinator-recovery, coordinator-communication]
```
Once RelayView adopts the pair, select the set for the Technical Coordinator
in Settings → Skills and save, as in step 8 of the recipe. Under the proposed
model, a recovery fork changes when and how the Coordinator nudges, parks,
reorients, and records, but the owner keeps the nudge budgets and cooldowns,
task state, and the Working Ledger itself: prose cannot raise a budget or skip
a cooldown, and the ledger survives a context refresh whatever a fork records
in it.
`coordinator-wave-audit` carries its own copy of the contention and
resource-affinity checks, because a package cannot read another package's
files: when you change contention heuristics, resource batching, or
aggressiveness, fork `coordinator-wave-audit` too so audits match dispatch.
`coordinator-wave-audit` and `coordinator-tracker-hygiene` are manual methods:
their text reaches a Coordinator session only when the Operator sends
`/skill:<name>` and the name is in that session's captured manual assignment.
Both return proposals. The wave audit dispatches nothing, and tracker hygiene
drafts prerequisite edges and issue comments for the Operator to approve and
apply one at a time; it never changes the tracker itself. It records stale
edges as resolved in the Working Ledger, as `coordinator-recovery` does, so a
fork that changes when an edge counts as resolved changes both packages. A fork keeps schema 1
and `disable-model-invocation: true`. Once RelayView adopts the pair, the manual
methods would sit in their own set with `invocationMode: manual`, apart from
the automatic set. This set pairs the first-party audit with a team fork of
tracker hygiene, `team-coordinator-tracker-hygiene`:
```yaml
trustedSkills:
sets:
- id: coordinator-on-request
name: Coordinator on request
role: coordinator
step: coordination
invocationMode: manual
members: [coordinator-wave-audit, team-coordinator-tracker-hygiene]
```
A fork changes the Coordinator's judgment, not the owner's gates. Under
RelayView's proposed operating model, the owner keeps every gate regardless of
the package: an issue with an open prerequisite never becomes Ready, the owner
grants and releases resource leases and carries out dispatch through its own
commands, the Operator toggles Autopilot and applies any tracker change the
Coordinator proposes, and no agent can lower a review tier.
A fork can change when the Coordinator raises `portfolio_conflict` or
`unique_resource_needed`, but not the escalation types or the one-way review
ratchet, and prose asking for a lower review tier has no effect.
## Release identity
A release tag pins public source. Published tags are never moved or rebuilt: a
change to any package byte ships under a new tag, and RelayView keeps every
earlier bundle so retained sessions can reconstruct their exact packages.
RelayView copies a release into `first-party-skills/<tag>/` with a
`bundle-lock.json` recording the source repository, the release tag and
commit, each package's identity and archive SHA-256, and the SHA-256 of every
bundled file, including `LICENSE` and `NOTICE.md`. RelayView's
`npm run verify:first-party-skills-source` recomputes those values from the
tagged source and fails on any difference. To recompute them yourself, for
example for `planner-communication` at `v0.14.0`:
```sh
git fetch --tags origin
git switch --detach v0.14.0
python3 -m tools.packages check packages/planner-communication
python3 -m tools.packages pack packages/planner-communication dist/planner-communication.zip
git switch main
```
The two printed digests match the `identity` and `archiveSha256` recorded for
`planner-communication` in RelayView's `first-party-skills/v0.14.0/bundle-lock.json`.
A fork's changed `source` gives it a distinct identity even when its
instructions match a first-party package, so a bundled update never replaces
a fork.
## Layer-4 authoring template
Correct a recurring defect as low in this trust pyramid as possible, and write
a skill only for a judgment call nothing lower can decide.
1. **Architecture and APIs** — a boundary that makes the failure impossible.
2. **Static checks and fast tests** — a lint rule with a root-cause message, a
type constraint, an import fence, or a regression test.
3. **Verification harness** — a feature map entry, verification driver,
property test, or formal check.
4. **A role skill** — judgment that cannot be checked deterministically.
RelayView's proposed Guardrail Proposal loop, described in the same
speculative operating model, uses this order. It would draft layer 1–3 tasks or a
candidate layer-4 skill when a defect escapes, and would activate a skill only
on explicit Operator approval. Until RelayView ships it, an Operator activates
a layer-4 skill through the [fork and override recipe](#fork-and-override-recipe).
Before writing a layer-4 skill, confirm each item:
- [ ] No architecture change, lint rule, type, test, or harness check can catch
this failure class; if one can, put the correction there instead.
- [ ] The guidance concerns a judgment the role makes, not a tool, permission,
gate, or schema the owner controls.
- [ ] It names one role and step, and adds no instruction an existing package
in that assignment already gives.
Start from this template. Replace each `<...>` with your text, keep the
frontmatter keys exactly as shown, and set `role` and `step` in the sidecar to
the one pair the guidance serves.
```markdown
---
name: team-review-judgment
description: Weigh <the judgment call> when reviewing the assigned candidate.
metadata:
relayview-display-name: Team review judgment
relayview-version: 1.0.0
---
# Team review judgment
Use this guidance when <the situation that needs judgment>, which no check in the repository decides.
## Decide
1. Gather <the facts the decision needs>, reading them from <where they live>.
2. Weigh <the tradeoff>; <the factor> tips it toward <the outcome>.
3. Report the decision, its reason, and the evidence you read.
## Check before finishing
- <A question the agent can answer from its own output, such as "Does each finding name the file and the rule it breaks?">
```
```json
{
"schemaVersion": 1,
"source": {
"kind": "user",
"reference": "team-review-judgment-1.0.0"
},
"role": "reviewer",
"step": "review",
"files": [
{
"path": "SKILL.md",
"sha256": "<sha256 of SKILL.md>"
}
]
}
```
After writing it, confirm each item:
- [ ] Each instruction states an action and a check the agent can run on its
own result, rather than only what to avoid.
- [ ] The text claims no tool, permission, network access, workflow authority,
or owner schema, and does not restate owner-enforced rules.
- [ ] The guidance changed behavior across several runs, judged from each
run's tool calls, not one successful conversation.
- [ ] `python3 -m tools.packages check team-review-judgment` (with your
directory name) passes after recalculating the digest.
+34 -38
View File
@@ -4,38 +4,9 @@ Public source for RelayView-maintained instruction-only role skills and an illus
## Packages and support
| Directory | Status | Role / step | Version |
| --- | --- | --- | --- |
| `packages/{planner,implementer,reviewer}-investigation` | Maintained automatic guidance | One matching role / step each | 0.13.0 |
| `packages/planner-scope` | Maintained default | Planner / planning | 0.13.0 |
| `packages/implementer-handoff` | Maintained default | Implementer / implementation | 0.13.0 |
| `packages/issue-designer-default` | Maintained default | Designer / design | 0.13.0 |
| `packages/designer-wayfinder`, `designer-grilling` | Optional manual guidance | Designer / design | 0.13.0 |
| `packages/designer-prototype` | Optional manual guidance | Designer / design | 0.13.0 |
| `packages/designer-research`, `designer-domain-modeling`, `designer-triage` | Optional manual guidance | Designer / design | 0.13.0 |
| `packages/designer-to-spec`, `designer-to-tickets` | Optional manual guidance | Designer / design | 0.13.0 |
| `packages/codebase-design` | Optional guidance | Planner / planning | 0.13.0 |
| `packages/grill-me` | Optional guidance | Planner / planning | 0.13.0 |
| `packages/grilling` | Optional guidance | Planner / planning | 0.13.0 |
| `packages/to-questionnaire` | Optional guidance | Planner / planning | 0.13.0 |
| `packages/research` | Optional guidance | Planner / planning | 0.13.0 |
| `packages/improve-codebase-architecture` | Optional guidance | Planner / planning | 0.13.0 |
| `packages/diagnosing-bugs` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/domain-modeling` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/migrate-to-shoehorn` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/pr` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/prototype` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/scaffold-exercises` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/shared-abstraction-refactor` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/split-large-files` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/tdd` | Optional manual guidance | Implementer / implementation | 0.13.0 |
| `packages/tdd-auto` | Optional automatic guidance | Implementer / implementation | 0.13.0 |
| `packages/writing-for-agents` | Optional guidance | Implementer / implementation | 0.13.0 |
| `packages/code-review` | Optional guidance | Reviewer / review | 0.13.0 |
| `packages/c4-diff` | Optional guidance | Reviewer / review | 0.13.0 |
| `examples/starter-planner` | Illustrative starter; not a production default | Planner / planning | 0.13.0 |
[OVERRIDING.md](OVERRIDING.md) lists every package with its role and step, automatic or manual mode, schema, version, and release, and marks the defaults RelayView assigns to each role. It also separates what a package can change from what RelayView's owner enforces, and gives the recipe for publishing and assigning a fork. `examples/starter-planner` is an illustrative Planner starter, not a production default.
Only named releases of maintained packages receive RelayView compatibility testing and maintenance. Optional guidance requires explicit role assignment; the Planner and Implementer defaults remain available alongside the pinned Issue Designer default. User forks are maintained by their publishers. Instruction packages use schema version 1, or schema version 2 for a Planner package declaring owner-validated `issueClaim` metadata. Schema 2 accepts a nullable target status label; the owner enforces the claim transition after proved implementation handoff. It contains only `SKILL.md`, declared `.md`/`.txt` resources, and `relayview-skill.json` within each package. Scripts, executable files, undeclared files, and requested permissions fail checks and owner admission. There is no fixed release calendar: maintained packages are versioned when their content or compatibility changes. A breaking owner contract requires a new compatible maintained release before the product depends on it.
Only named releases of maintained packages receive RelayView compatibility testing and maintenance. Optional guidance requires explicit role assignment; the maintained Planner, Implementer, and Reviewer defaults remain available alongside the pinned Specification Designer default. User forks are maintained by their publishers. Instruction packages use schema version 1, schema version 2 for a Planner package declaring owner-validated `issueClaim` metadata, or schema version 3 for a role communication package. Schema 2 accepts a nullable target status label; the owner enforces the claim transition after proved implementation handoff. Each package declares one role/step pair: `planner`/`planning`, `implementer`/`implementation`, `reviewer`/`review`, `designer`/`design`, `tester`/`testing`, or `coordinator`/`coordination`. RelayView admits Tester and Coordinator packages only after it adopts those pairs. A package contains only `SKILL.md`, declared `.md`/`.txt` resources, and `relayview-skill.json`. The [instruction package contract](docs/authoritative/instruction-package-contract.md) gives every rule the checks enforce, the identity and archive algorithms, and the RelayView changes each new pair requires. Scripts, executable files, undeclared files, and requested permissions fail checks and owner admission. There is no fixed release calendar: maintained packages are versioned when their content or compatibility changes. A breaking owner contract requires a new compatible maintained release before the product depends on it.
## A named set in RelayView
@@ -68,9 +39,7 @@ python -m tools.packages pack examples/starter-planner dist/starter-planner.zip
Replace `examples/starter-planner` in the last two commands with your package directory. The `pack` command writes a reproducible ZIP containing the package, `LICENSE`, and `NOTICE.md`, then prints its SHA-256. The check returns the owner's package identity digest. Both use only Python 3's standard library and this repository's source. Preserve the license and notice when redistributing the package or fork.
To use a user fork, place its closed package directory under the owner's configured trusted root. For Planner, Implementer, or Reviewer guidance, use Settings → Skills to import the relative `SKILL.md` path under a new unique ID. Import validates and records the package; it does not assign it. Add that ID to a role-compatible named set in the owner configuration and restart the owner to load the set. Then select the set for the matching role in Settings → Skills and save. For an optional Designer method, declare its ID and relative `SKILL.md` path in `trustedSkills.catalog`, list the ID in `workflowPresets.designerSkills`, and restart the owner. Designer has no Settings import or set selector for this assignment. These assignments affect future sessions; existing sessions retain their captured bytes. The owner's admission remains authoritative even when these local checks pass.
To use a maintained Planner or Implementer default, copy its release package under the same trusted root, admit its `SKILL.md` through the owner catalog, then select it for its declared role in Settings. Settings import accepts user-source packages; configure first-party packages in the owner catalog. Select a fork with `source.kind: user` and a distinct ID to replace a Planner or Implementer future assignment. RelayView pins and assigns the Issue Designer default automatically; its optional methods use `workflowPresets.designerSkills`. Planner guidance uses existing read and planning tools; Implementer guidance uses existing implementation and reporting tools. Guidance selection does not change a role's tools, credentials, lifecycle stages, validation requirements, Gitea effects, review, merge, or Operator acceptance. The owner keeps the existing Gitea task workflow.
To replace a default or add guidance in RelayView, follow the [fork and override recipe](OVERRIDING.md#fork-and-override-recipe). Assignments affect future sessions; existing sessions retain their captured bytes. The owner's admission remains authoritative even when these local checks pass. Guidance selection does not change a role's tools, credentials, lifecycle stages, validation requirements, Gitea effects, review, merge, or Operator acceptance.
## Write the guidance
@@ -84,14 +53,15 @@ Judge a change over several runs, using the tool calls each run made, not one su
## Release identity
A release tag pins public source. CI runs package checks and archives from that source. RelayView's bundled copy records the source tag and commit plus each package identity and file hash, then verifies the bytes in its own focused test. A bundled update creates a new release identity; it does not overwrite a user fork.
A release tag pins public source. CI runs package checks and archives from that source. RelayView's bundled copy records the source tag and commit plus each package identity and file hash, then verifies the bytes in its own focused test. A bundled update creates a new release identity; it does not overwrite a user fork. [OVERRIDING.md](OVERRIDING.md#release-identity) shows how to recompute a release's identity and archive digests and compare them with RelayView's `bundle-lock.json`.
The MIT license covers this repository only. The contribution policy is in [CONTRIBUTING.md](CONTRIBUTING.md); dependency notices are in [NOTICE.md](NOTICE.md).
The automatic `code-review-auto` package supplies optional bounded, path-aware finding presentation. Broader two-axis standards/spec inspection remains in the manual `code-review` package. Both use only the assigned Reviewer capabilities; required adequacy, disposition and recovery stay with the owner.
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. In the not-yet-tagged v0.16.0 release, both packages also propose the lowest viable Trust Pyramid guardrail for a repeatable defect class and escalate with a typed reason and risk summary. Both use only the assigned Reviewer capabilities; required adequacy, disposition and recovery stay with the owner.
Automatic role communication packages (`planner-communication`,
`implementer-communication`, `reviewer-communication`) use schema 3 with
`implementer-communication`, `reviewer-communication`, and the not yet admitted
`tester-communication` and `coordinator-communication`) use schema 3 with
`treatment: "communication_context"`. This metadata declares their ablation
boundary; it grants no tools or authority. Preserve the declaration in forks.
RelayView rejects these packages in a named automatic set when the frozen
@@ -102,4 +72,30 @@ answer/detail/example/acknowledgement presentation only.
The automatic `research-auto` Planner package supplies primary-source selection, preferred-domain exploration/refinement and evidence-reading methodology, publication/version checking, corroboration and already-admitted empirical evidence methods. The manual `research` package remains available on request. Tool arguments, budgets, continuation, recovery and untrusted research provenance belong to the owner.
Planner direct-address presentation is supplied by planner-communication v0.14.0. Other packages retain their existing versions. Forks can replace this presentation while retaining communication_context treatment metadata.
`specification-designer-default` v0.15.0 replaces `issue-designer-default` as this repository's Specification Designer default; RelayView keeps assigning `issue-designer-default` until it pins v0.15.0. With it, the eight Designer methods move to v0.15.0 with Specification Designer naming. They help the Operator specify requested proof artifacts, fast-test completeness, declared test resources, and a recommended Layer B review stamp; the Operator sets the stamp, and RelayView's owner decides review. `issue-designer-default` remains unchanged at v0.13.0 for retained sessions.
The automatic Tester packages `tester-inspection` and `tester-communication`, released in `v0.15.0`, teach the Building Inspector method: exercise the exact sealed candidate as a user, capture the requested proof, separate verified runtime observations from remaining manual Operator checks, and escalate with a typed reason. They are the proposed Tester defaults; RelayView admits them only after it adopts the `tester`/`testing` pair. See [Tester packages](OVERRIDING.md#tester-packages).
The automatic Technical Coordinator packages target the proposed `v0.17.0`
release and are not yet tagged. `coordinator-dispatch` selects compatible
parallel waves, batches work around scarce resources such as `ml-server` and
GPU workers, and raises typed `portfolio_conflict` and `unique_resource_needed`
escalations. `coordinator-recovery` triages a stalled task's blockers before a
bounded nudge, parks repeated stalls for the Operator, rebuilds the
Coordinator's posture from the owner's Portfolio Read Model and Working Ledger
after a context refresh, and records implicit contention in that ledger.
`coordinator-communication` (schema 3) shapes Control Tower status reports.
Two manual methods for the same release run only when the Operator invokes
them with `/skill:<name>`: `coordinator-wave-audit` returns a structured wave
plan for the whole Ready queue without dispatching, and
`coordinator-tracker-hygiene` drafts prerequisite-edge and issue-comment
proposals from the contention recorded in the Working Ledger for the Operator
to approve and apply. RelayView does not yet admit the `coordinator` role; when
it does, its owner keeps prerequisites, dispatch execution, resource leases,
nudge budgets and cooldowns, the Working Ledger, and review policy.
[OVERRIDING.md](OVERRIDING.md#customize-the-technical-coordinator) shows which
seam to fork for each customization.
Planner direct-address presentation is supplied by planner-communication. Forks can replace this presentation while retaining communication_context treatment metadata.
The not-yet-tagged v0.16.0 release updates `planner-scope`, `planner-communication`, `implementer-handoff`, `implementer-communication`, `code-review-auto`, `code-review`, and `reviewer-communication`: the Planner turns the Specification Designer's requested proof into Implementer fast checks and Building Inspector verification goals, resolves or promotes Implementer escalation flags, and escalates with typed reasons; the Implementer converges those fast checks before sealing a candidate and routes uncertainty and scope flags to the Planner instead of the Operator; and the Reviewer proposes guardrails. `planner-scope` keeps schema 2 and its `issueClaim`. Apart from these and the new Tester, Specification Designer, and Coordinator packages, other packages retain their existing versions. The [release notes](RELEASE-NOTES.md) give each changed package's before and after for fork maintainers.
+132
View File
@@ -0,0 +1,132 @@
# Release notes
What changed in each release's packages, for Operators who maintain a fork of
one. Compare your fork with the package at the new tag, and carry over the
changes you want. A fork keeps its own `source` identity and is never
replaced by a bundled update. [OVERRIDING.md](OVERRIDING.md) lists every
package's current version and release.
## v0.16.0 (not yet tagged)
Planner, Implementer, and Reviewer guidance for RelayView's proposed tiered
review: the Planner turns the Specification Designer's requested proof into
checks, triages Implementer flags, and escalates with typed reasons; the
Implementer converges fast checks before sealing a candidate and flags
uncertainty to the Planner; the Reviewer proposes Trust Pyramid guardrails.
Owner rules for typed escalation, Implementer flags, and Guardrail Proposal
cards are proposed in RelayView and not yet shipped, so the packages fall back
to stating an escalation in the Plan or review result, and a flag in the
message to the Planner, when no owner interface is assigned. No schema, role,
or step changes; every earlier release keeps its bytes.
### `planner-scope`
- **Before (0.13.0):** scope analysis and a structured Plan shape (`scope.md`)
with no proof or escalation guidance.
- **After:** `SKILL.md` adds sections on translating proof into Plan v1, on
triage and escalation, and a readiness check that each requested proof
artifact maps to a fast check, a verification goal, or a remaining manual
Operator check. `scope.md` adds "Translate requested proof": each requested
proof artifact, fast-test completeness value, and declared test resource
becomes an Implementer fast check, a Building Inspector verification goal,
or a remaining manual Operator check (verification goals become manual
checks when no Tester step will run), and the Plan shape gains
`fast_checks`, `verification_goals`, and `manual_operator_checks`. A new
`escalation.md` resolves an Implementer `needs_operator_decision` or
`scope_exceeded` flag, once the Implementer reports one, when the answer is
strictly inside the approved specification, promotes it otherwise, and
escalates directly with one typed reason (`boundary_crossed`,
`spec_ambiguity`, `verification_incomplete`, `behavioral_tradeoff`,
`convergence_exceeded`) and a short risk summary, never just to be safe and
never downgrading `operator_review_required`. The description names the new
scope.
- **Fork:** schema 2 and `issueClaim: status/in-progress` are unchanged. A
fork that wants the new behavior adds `escalation.md` to its directory and
its sidecar `files`, and recalculates the digests.
### `planner-communication`
- **Before (0.14.0):** direct address, proportional detail, Markdown,
acknowledgements, and pre-finalization discussion.
- **After:** adds one paragraph: call the specification's author the
Specification Designer, lead an escalation with its typed reason and risk
summary, and report a flag settled inside the specification as a decision
rather than a question.
- **Fork:** schema 3 and `communication_context` are unchanged.
### `implementer-handoff`
- **Before (0.13.0):** documentation reconciliation, clarification with the
Planner, and review content naming the candidate and its focused checks.
- **After:** `SKILL.md` adds three short sections that defer to the guide:
"Converge before sealing" (iterate on the Plan's Implementer fast checks and
Planner feedback before sealing a candidate for the Building Inspector),
"Flag instead of escalating" (send a decision the guide's triggers describe
to the Planner as a flag rather than to the Operator), and "Hand off", which
replaces the inline list of report items with the guide's review content
and completes when the handoff states the fast-check results on the exact
candidate. `handoff.md` carries the rules. Its new
"Inner loop" section defines fast checks (types, lint, static analysis, unit
and integration tests: seconds, not minutes), falls back to the
repository's focused checks when the Plan names none, and never presents a
candidate with a failing fast check as ready. Its new "Flags to the
Planner" section raises `needs_operator_decision` for genuine specification
ambiguity, an unexpected sensitive boundary, or an unsettled visible
tradeoff, and `scope_exceeded` for scope creep. It never pages the Operator
or silently improvises, raises one flag per decision and never just to be
safe, and uses the message to the Planner as the fallback when no flag
interface is assigned. Review content adds declared test-resource readiness,
known gaps, and the documentation disposition and manual-evidence observer
that `SKILL.md` previously listed. The description names the new scope.
The package names no typed escalation reason: the Implementer only flags.
- **Fork:** schema 1 and the two declared files are unchanged. The inner-loop
and flag rules live in `handoff.md`, so a fork that keeps its own
`handoff.md` can adopt them without touching `SKILL.md`; recalculate the
digest of each changed file.
### `implementer-communication`
- **Before (0.13.0):** proportional detail, Markdown, acknowledgements, and
report-field explanation.
- **After:** adds one paragraph: Specification Designer naming, a candidate
handoff that leads with readiness, fast-check results, and known gaps, and a
flag addressed to the Planner with its name, question, options, evidence,
and the work continuing meanwhile, never as a request for the Operator to
decide.
- **Fork:** schema 3 and `communication_context` are unchanged.
### `code-review-auto`
- **Before (0.13.0):** one line asking for bounded, path-aware, actionable
findings.
- **After:** each finding names its file and line, evidence, and requested
change. New "Propose a guardrail" and "Escalate" sections, identical to
`code-review`'s: propose the lowest viable Trust Pyramid rung for a
repeatable defect class (architecture or API boundary, static check or lint
rule with a root-cause message or fast regression test, verification harness
or Feature Map update, then a candidate prose skill as the last resort,
active only after the Operator approves it), with a follow-up task for rungs
1 to 3 or a candidate skill diff for rung 4, and escalate with one typed
reason and a risk summary. The display name becomes "Review findings and
guardrails" and the description names the new scope.
- **Fork:** schema 1 is unchanged. The package still leaves two-axis
inspection to the manual `code-review`.
### `code-review`
- **Before (0.13.0):** manual two-axis standards and Plan-fidelity review.
- **After:** the same review, plus the "Propose a guardrail" and "Escalate"
sections shared with `code-review-auto`. The description names the new
scope.
- **Fork:** schema 1 and manual mode are unchanged.
### `reviewer-communication`
- **Before (0.13.0):** proportional detail, Markdown, acknowledgements, and
finding explanation.
- **After:** adds one paragraph: Specification Designer naming, and Review
Packet framing with the escalation's typed reason and risk summary first,
then findings by severity, then any Guardrail Proposal presented as a
recommendation rather than a blocker, and no cautionary escalation when
nothing needs the Operator.
- **Fork:** schema 3 and `communication_context` are unchanged.
@@ -0,0 +1,186 @@
# 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. The published `v0.15.0` release declares
`tester`/`testing` in `tester-inspection` (schema 1) and `tester-communication`
(schema 3). `coordinator-dispatch` (schema 1), `coordinator-recovery` (schema 1),
`coordinator-communication` (schema 3), and the manual `coordinator-wave-audit`
and `coordinator-tracker-hygiene` (schema 1) declare
`coordinator`/`coordination` in this repository with source reference
`v0.17.0`, a proposed release that is not yet published:
| Release | New pair | Packages |
| --- | --- | --- |
| `v0.15.0`, published | `tester`/`testing` | `tester-inspection` (schema 1) and `tester-communication` (schema 3) |
| `v0.17.0`, proposed | `coordinator`/`coordination` | In source: `coordinator-dispatch` and `coordinator-recovery` (schema 1, automatic), `coordinator-communication` (schema 3), and `coordinator-wave-audit` and `coordinator-tracker-hygiene` (schema 1, manual) |
Before RelayView pins a release containing either pair, it must:
1. **Know the role.** Add it to the owner's role types (`SkillWorkflowRole` /
`TrustedSkillRole` in `src/owner/workflowPresets.ts`) and give it an
explicit step in `roleStep()`, which otherwise answers `design` for any
role it does not name.
2. **Admit the sidecar.** In `loadInstructionPackage`, accept the role in its
explicit role check and map it to its step in `expectedStep`. Accept schema 1
and schema 3, keep schema 2 Planner-only, and keep schema 3 closed to
`designer`.
3. **Expose it in Skills settings.** Add the role and step to the package,
assignment, and set-selection schemas in `src/api/contract-skill-settings.ts`
and the generated owner schemas, and to named-set role and step validation
in `src/owner/workflowPresets.ts`, so the role's sets can be selected.
4. **Pin and verify the release.** Add `first-party-skills/<tag>/` with its
`bundle-lock.json`, and add the bundle to
`scripts/verify-first-party-skills-source.py`.
The identity framing, archive format, file rules, and frontmatter rules do not
change for these pairs, so existing bundle locks stay valid.
## RelayView adoption of the Specification Designer default
From `v0.15.0`, `specification-designer-default` replaces
`issue-designer-default` as the automatic `designer`/`design` package.
`issue-designer-default` stays in `packages/` with its `v0.13.0` bytes, so its
identity and every earlier release are unchanged; it is no longer a maintained
default. The eight manual Designer methods keep their IDs.
RelayView's owner names its Designer default by ID. Before RelayView pins a
release whose Designer default is `specification-designer-default`, it must:
1. **Rename the default.** In `src/owner/workflowPresets.ts`, use the new ID
where the owner assigns the Designer default and its maintained comparison
selection, checks that optional Designer skills differ from it, and
requires it to be the one automatic pinned Designer package.
2. **Load the new release as current.** The current catalog admits the nine
`v0.15.0` packages with their new identities, and new Designer sessions
capture the default and any assigned methods from them. Today the current
catalog takes its Designer packages from the operator release:
`loadRelease` hard-codes their release as `v0.13.0`, and
`OPERATOR_RELEASE_PACKAGES` holds their identities.
3. **Keep reconstructing `v0.13.0` sessions.** A session that recorded the
`v0.13.0` Designer packages, including `issue-designer-default`, must still
resolve to those exact bytes, and earlier lineages must keep resolving as
they do now. Today `resolveDesignerSkills` decides whether to pass a
recorded assignment down the retained catalog chain by comparing its
recorded release with the fixed string `v0.13.0`, so that routing must
change with the new current release.
4. **Pin and verify the release.** Add `first-party-skills/v0.15.0/` with its
`bundle-lock.json`, and add the bundle to
`scripts/verify-first-party-skills-source.py`.
+28 -5
View File
@@ -1,11 +1,34 @@
---
name: code-review-auto
description: Present findings for the owner-assigned review candidate.
description: Present findings for the owner-assigned review candidate, propose the lowest viable guardrail for a repeatable defect class, and escalate with a typed reason.
metadata:
relayview-display-name: Review finding presentation
relayview-version: 0.13.0
relayview-display-name: Review findings and guardrails
relayview-version: 0.16.0
---
# Review finding presentation
# Review findings and guardrails
Keep findings bounded, path-aware, and actionable.
Keep findings bounded, path-aware, and actionable. Give each finding the file and line, the evidence, and the change you request.
## Propose a guardrail
When a finding belongs to a repeatable defect class, meaning the same kind of mistake could recur in other changes, propose the lowest viable guardrail with the finding. Recommend the first rung that can make the class impossible or catch it reliably:
1. **Architecture or API boundary:** a structural change, such as a narrower interface, a type that cannot represent the invalid state, or a module boundary, that makes the defect class impossible.
2. **Static check or lint rule, or a fast regression test:** a lint rule, import-graph fence, or type constraint with a root-cause error message that names the cause and the fix, or a fast regression test that fails on the defect.
3. **Verification harness:** an update to the repository's Feature Map, a verification driver or CLI, a property test, or a formal check, when the first two rungs cannot reach the defect.
4. **Candidate prose skill:** the last resort, for a genuine judgment call no check can decide. It stays a candidate until the Operator approves it.
Before proposing a rung, check: could a lower-numbered rung catch this class? If so, recommend that rung instead. Keep each proposal short: the defect class in one or two sentences, the rung you recommend and why the lower-numbered rungs do not fit, and a bounded follow-up task for rungs 1 to 3 or a candidate skill diff for rung 4. A proposal is a recommendation for the Operator to queue or dismiss; it never expands the candidate under review. Skip proposals for one-off mistakes.
## Escalate
Escalate when a finding needs the Operator's judgment rather than another correction round. Give exactly one typed reason and a risk summary of one or two sentences naming the decision and its evidence:
- `boundary_crossed`: the candidate touches a sensitive boundary the specification did not approve, such as a public contract or API, a schema migration, authentication or security, CI or release configuration, a user-facing screen, or a new dependency, network egress, secret, or privilege.
- `spec_ambiguity`: the candidate and the Plan read the specification differently, and no contract settles which reading the Operator intended.
- `verification_incomplete`: the evidence cannot establish an acceptance observation, for example because fast tests cannot cover it or a required check was skipped or replaced by a mock.
- `behavioral_tradeoff`: the candidate makes a behavioral tradeoff or architectural compromise the specification did not settle.
- `convergence_exceeded`: the same findings return across correction rounds, and another round is unlikely to converge.
Report ordinary defects as findings, not escalations; an escalation made just to be safe spends Operator attention without saying what to decide. An escalation only raises the review a task needs: never downgrade `operator_review_required` or recommend a lower review tier. Before raising one, check that its risk summary names one decision the Operator must make and the evidence behind it; if it cannot, report a finding instead. Raise it through the escalation interface the owner assigns; where none is assigned, state the reason and risk summary at the top of the review result.
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.16.0"
},
"role": "reviewer",
"step": "review",
"files": [
{
"path": "SKILL.md",
"sha256": "2040364a3cd49fb21346295fff371c1ef242e3227e33cd9138c30bbf10923514"
"sha256": "fb6a234090dd4e45c5995f1ee1562aecfb57b9e9bbfa30a9ec15c30e26160deb"
}
]
}
+25 -2
View File
@@ -1,10 +1,10 @@
---
name: code-review
description: Review the owner-pinned candidate against repository standards and the admitted Plan on separate evidence axes.
description: Review the owner-pinned candidate against repository standards and the admitted Plan on separate evidence axes, propose guardrails for repeatable defects, and escalate with typed reasons.
disable-model-invocation: true
metadata:
relayview-display-name: Code review
relayview-version: 0.13.0
relayview-version: 0.16.0
---
# Two-axis code review
@@ -14,3 +14,26 @@ Review only the candidate and commit identity supplied by the owner. Keep standa
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.
## Propose a guardrail
When a finding belongs to a repeatable defect class, meaning the same kind of mistake could recur in other changes, propose the lowest viable guardrail with the finding. Recommend the first rung that can make the class impossible or catch it reliably:
1. **Architecture or API boundary:** a structural change, such as a narrower interface, a type that cannot represent the invalid state, or a module boundary, that makes the defect class impossible.
2. **Static check or lint rule, or a fast regression test:** a lint rule, import-graph fence, or type constraint with a root-cause error message that names the cause and the fix, or a fast regression test that fails on the defect.
3. **Verification harness:** an update to the repository's Feature Map, a verification driver or CLI, a property test, or a formal check, when the first two rungs cannot reach the defect.
4. **Candidate prose skill:** the last resort, for a genuine judgment call no check can decide. It stays a candidate until the Operator approves it.
Before proposing a rung, check: could a lower-numbered rung catch this class? If so, recommend that rung instead. Keep each proposal short: the defect class in one or two sentences, the rung you recommend and why the lower-numbered rungs do not fit, and a bounded follow-up task for rungs 1 to 3 or a candidate skill diff for rung 4. A proposal is a recommendation for the Operator to queue or dismiss; it never expands the candidate under review. Skip proposals for one-off mistakes.
## Escalate
Escalate when a finding needs the Operator's judgment rather than another correction round. Give exactly one typed reason and a risk summary of one or two sentences naming the decision and its evidence:
- `boundary_crossed`: the candidate touches a sensitive boundary the specification did not approve, such as a public contract or API, a schema migration, authentication or security, CI or release configuration, a user-facing screen, or a new dependency, network egress, secret, or privilege.
- `spec_ambiguity`: the candidate and the Plan read the specification differently, and no contract settles which reading the Operator intended.
- `verification_incomplete`: the evidence cannot establish an acceptance observation, for example because fast tests cannot cover it or a required check was skipped or replaced by a mock.
- `behavioral_tradeoff`: the candidate makes a behavioral tradeoff or architectural compromise the specification did not settle.
- `convergence_exceeded`: the same findings return across correction rounds, and another round is unlikely to converge.
Report ordinary defects as findings, not escalations; an escalation made just to be safe spends Operator attention without saying what to decide. An escalation only raises the review a task needs: never downgrade `operator_review_required` or recommend a lower review tier. Before raising one, check that its risk summary names one decision the Operator must make and the evidence behind it; if it cannot, report a finding instead. Raise it through the escalation interface the owner assigns; where none is assigned, state the reason and risk summary at the top of the review result.
+2 -2
View File
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.16.0"
},
"role": "reviewer",
"step": "review",
"files": [
{
"path": "SKILL.md",
"sha256": "c3ce841b0e1e104393d2feabd9982fff08bab59177a8b36a7910dec89a3a8734"
"sha256": "46992be090ef755f533c583412445f9b4b493de4df5f81da641931e494c1df80"
}
]
}
@@ -0,0 +1,26 @@
---
name: coordinator-communication
description: Communication style for the Technical Coordinator; concise Control Tower status, proportional answers, Markdown and natural acknowledgements.
metadata:
relayview-display-name: Coordinator communication
relayview-version: 0.17.0
---
Address the Operator as “you” and describe their decisions and next actions from their perspective. Name the responsible agent or RelayView when the software acts. Before publishing a reply, check that the Operator 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 a Control Tower status report, give these in order, omitting any that are empty:
1. Autopilot state, and the running wave: each task, its phase, and how long it has been in that phase.
2. Resource state: each lease held or queued on `ml-server` (with the loaded model) and the GPU workers, and which tasks wait for it.
3. Held issues, each with its contention reason in one line.
4. Tasks the Portfolio Read Model shows as stalled, with the waiting reason the owner reports.
5. The pending Review Packet inbox count.
6. Anything awaiting the Operator's decision, such as a proposed wave or an escalation.
Take every count, phase, and lease from the owner's current projections and give its as-of time. Use a short table when several tasks share the same columns; otherwise use a list.
For user-facing Control Tower 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.
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 Operator's full checklist. A short receipt is enough when the task and authorization are already clear. Describe only work within your current authorization. Receipt never means dispatch, a granted lease, completed work, or approval.
@@ -0,0 +1,16 @@
{
"schemaVersion": 3,
"source": {
"kind": "first-party",
"reference": "v0.17.0"
},
"role": "coordinator",
"step": "coordination",
"treatment": "communication_context",
"files": [
{
"path": "SKILL.md",
"sha256": "07d074f08d5266da38e7d8085bf8cfded33c8cb20751d6a64f842b4d522a1791"
}
]
}
+53
View File
@@ -0,0 +1,53 @@
---
name: coordinator-dispatch
description: Select compatible parallel waves from Ready issues, batch work around scarce resources, and escalate cross-task conflicts for the Technical Coordinator.
metadata:
relayview-display-name: Coordinator dispatch
relayview-version: 0.17.0
---
# Coordinator dispatch
You are the workspace's single Technical Coordinator: the Operator's contact for cross-task questions. You decide which Ready issues can safely run together and in what order. RelayView's owner decides what actually happens. The owner grants leases, enforces prerequisites and review policy, and carries out dispatch; you propose and request through the owner commands assigned to you.
## Read the portfolio
Build each decision from the owner's projections, read fresh for that decision:
- the Portfolio Read Model: active tasks, their phases, waiting reasons, and pending Review Packets;
- the Ready issues, with their bodies and declared resource requirements;
- active branch and pull-request footprints: the files, modules, schemas, and interfaces each running task is changing;
- the Shared Resource and Lease Registry: which leases are held or queued, which model is loaded on `ml-server`, and which GPU workers are free;
- the Autopilot setting the Operator last chose, as the owner reports it.
Work only through these projections and the owner commands assigned to you: read a task's footprint from the projection, not its worktree, and leave repository code and shell commands to the roles that own them. When a projection is missing or stale, say which one and treat the affected issue as not yet safe to dispatch.
## Select a wave
Follow the [wave selection guide](wave-selection.md). A wave is a set of Ready issues that can run in parallel with each other and with everything already running. For every candidate:
1. Confirm the owner lists it as Ready; an open prerequisite keeps it out regardless of your judgment.
2. Check it against running work and the other candidates for implicit contention the tracker does not record.
3. Check its declared resources against the Lease Registry and group it with work that needs the same setup.
4. Admit it, or hold it with one concrete reason naming the other issue, file, schema, decision, or resource.
## Autopilot
- **When Autopilot is `Off`**, report portfolio status and propose waves for the Operator to approve. Present each proposed wave with its members, the held issues and their reasons, and the resource batching it assumes. Dispatch only a wave the Operator explicitly approves, through the owner's dispatch command. Just before dispatch, re-run the four selection steps for each member against fresh projections; dispatch the members that still pass and return the others to the Operator with the reason.
- **When Autopilot is `On`**, dispatch each compatible wave through the owner's dispatch command, then confirm from the Portfolio Read Model that each task started. Report any task that did not start, with the waiting reason the owner reports.
- When the Operator pauses Autopilot or starts a conversation, yield at the next safe turn boundary: dispatch nothing further, answer the Operator, and name any wave left partly dispatched. Tell the Operator that running tasks continue. After answering, follow the Autopilot setting the owner then reports: while it is `On`, dispatch compatible waves again; while it is `Off`, dispatch only what the Operator approves.
## Escalate
Escalate through the owner's escalation interface with one typed reason and a short risk summary the Operator can decide from:
- `portfolio_conflict` when concurrent or candidate tasks interact semantically in a way that needs the Operator's judgment, such as two branches resolving the same architectural decision differently;
- `unique_resource_needed` when complete verification needs a resource the owner does not manage or cannot provide, such as specialized hardware, an external credential, or a manual check.
An escalation only raises the attention a task needs; never request a lower review tier. Hold or sequence work yourself when ordering alone resolves the contention; escalate only what ordering cannot.
## Check before finishing
- Does every held issue name its blocker and the evidence you read?
- Does every queue reason come from the Lease Registry rather than an estimate?
- Did anything you reported as dispatched start, according to the Portfolio Read Model?
@@ -0,0 +1,19 @@
{
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.17.0"
},
"role": "coordinator",
"step": "coordination",
"files": [
{
"path": "SKILL.md",
"sha256": "2e1f4ef4a6614434258378f96dd604bb58089779e7943a065e0426a5dceabff0"
},
{
"path": "wave-selection.md",
"sha256": "449fe0c5e4085e2fa9f3373884fc46bb8dc6c552449f14fa19f855e96acd0bd5"
}
]
}
@@ -0,0 +1,23 @@
# Wave selection guide
## Implicit contention
Hold two issues out of the same wave when they would change the same thing in incompatible ways. Look for:
- **Overlapping files or modules.** Compare each candidate's likely footprint, from its issue body and acceptance criteria, with running branch and pull-request footprints and with the other candidates. Two edits to one module's public surface contend; two edits to unrelated functions in one large file usually do not.
- **Competing schema migration or interface versions.** Two tasks that each add a SQLite schema migration, or each bump the same API's minor version, must run in sequence.
- **An architectural decision still in flight.** When a running task or open specification is deciding a design question, hold candidates whose approach depends on the answer.
- **Competing external services.** Two tasks that exercise, reconfigure, or reset the same external service or test environment contend even when their code does not overlap.
Name the evidence for each held pair: the file, module, migration, interface, decision, or service, and where you read it. When the evidence is only a guess from an issue title, say so and hold the candidate that comes later in the owner's Ready order.
## Resource affinity
- Group Ready tasks that need the same `ml-server` model, so the model loads once for the group.
- Prefer a candidate whose resource is free or already loaded over one that would force a reload, even when it comes later in the owner's Ready order.
- Size the wave to the free GPU workers the Lease Registry reports; extra GPU tasks wait in the queue.
- When a task waits, give its queue reason from the registry: the lease it waits for, who holds it, and its position, for example "waiting for `ml-server:qwen-27b`; held by #412; second in queue".
## Aggressiveness
The default is moderate: admit a candidate when you found no contention, and hold it when you found plausible contention you could not rule out. Among otherwise equal candidates, the owner's Ready order decides. Prefer a smaller wave whose members are clearly independent over a larger one that risks rework.
+85
View File
@@ -0,0 +1,85 @@
---
name: coordinator-recovery
description: Triage stalled tasks before a bounded nudge, park repeated stalls for the Operator, reorient from owner state after a context refresh, and keep the Working Ledger current for the Technical Coordinator.
metadata:
relayview-display-name: Coordinator recovery
relayview-version: 0.17.0
---
# Coordinator recovery
You keep long-running work moving without pushing tasks that are legitimately waiting, and you keep your working posture recoverable from the owner's state. RelayView's owner records task state, grants and queues leases, enforces nudge budgets and cooldowns, and keeps the Working Ledger; you act through the owner commands assigned to you.
Your conversation is not a record of the portfolio. Anything durable you learn goes into the Working Ledger when you learn it, and anything you act on comes from the owner's current state.
## Triage before nudging
When the Portfolio Read Model shows a task as stalled, find out why before you act. Read, fresh for that decision:
- the task's phase and waiting reason in the Portfolio Read Model;
- the Shared Resource and Lease Registry: whether the task waits for a held or queued lease, who holds it, and the task's position;
- the task's nudge count, remaining nudge budget, and cooldown, as the owner reports them;
- the Working Ledger's entries for the task, such as a contention edge that holds it behind another issue.
A task waiting for Operator input, an external gate such as a required check or review, a held or queued lease, or another issue it is held behind is blocked, not stalled. Never nudge a task that is waiting on a real blocker. Name the blocker in your status, and when the owner grants the lease or clears the wait, resume it through the owner's command if the owner has not already resumed it, following the Autopilot rules below. Resuming continues work already dispatched; it is not a new dispatch.
When a projection you need is missing or stale, say which one and do not nudge; a task you cannot triage stays as it is.
## Nudge a stalled task
Nudge only a task that is stalled with no blocker you can find. Send the task's Planner one brief, constructive message: "please keep going", then the exact current stage from the Portfolio Read Model, the last progress the owner recorded, and the next step that stage calls for. Add no scope, change no instructions, and never suggest skipping a check or gate.
Nudges are bounded:
- Send at most one nudge per stall, and only within the owner's nudge budget and outside its cooldown. When the owner refuses a nudge, treat the budget as spent for this stall and do not retry or word around it.
- Record each nudge in the Working Ledger with the stage it targeted.
- When the task stalls again after a nudge, at any stage, or its nudge budget is spent, stop nudging.
## Park and escalate
When you stop nudging, park the task cleanly through the owner's command and bring it to the Operator with a diagnostic summary of a few lines:
- the task, its stage, and how long it has been stalled;
- the nudges sent and what followed each;
- the blockers you ruled out, with the evidence you read;
- your best explanation of the stall, labelled as a hypothesis;
- the decision you need from the Operator.
Record the parked state and the summary in the Working Ledger. Parking asks for the Operator's attention; it does not change the task's review tier, and nudging stays stopped for that task until the Operator decides.
## Autopilot
Nudging, resuming, and parking act on work already dispatched, and they follow the Autopilot setting the owner reports:
- **When Autopilot is `Off`**, report each stall with its triage, and propose the nudge, resume, or park you would make. Act only on what the Operator approves, re-checking the task's state just before you act.
- **When Autopilot is `On`**, nudge, resume, and park as this guidance describes, within the owner's budgets and cooldowns.
- When the Operator pauses Autopilot or starts a conversation, yield at the next safe turn boundary: send no further nudge, resume, or park, and answer the Operator. Running tasks continue. After answering, follow the Autopilot setting the owner then reports.
## Reorient after a context refresh
At the start of a fresh session, and after any context refresh or compaction, reorient before you nudge, resume, dispatch, or report. Read the Portfolio Read Model, the Lease Registry, and the Working Ledger, and rebuild your posture from them:
- active waves and their members, with each task's phase;
- held leases and the queue behind each;
- recorded contention edges between open issues;
- recent nudge counts and parked tasks;
- pending Review Packets.
Leave out ledger entries that concern only closed issues; they no longer constrain any decision. Treat any summary or message from before the refresh as a hint to check, never as state: where it disagrees with the projections or the ledger, the owner's state wins. When a projection or the ledger is missing, say so, and treat the work it covers as unknown rather than reconstructing it.
Include the posture you rebuilt, with its as-of time, in your next report to the Operator. Report a gap at once, since it limits what you can safely do.
## Keep the Working Ledger
Write to the Working Ledger through the owner's command, at the moment you discover something durable, not at the end of the session. Record:
- each implicit contention edge when you discover it, in one line: the two issues, the shared file, module, migration, interface, decision, service, or resource, the evidence and where you read it, and whether you held or sequenced the work;
- each nudge and parked task, as above.
Keep entries concise and current. When an edge is already recorded, add only what changed, and record the edge as resolved when either issue closes or the shared change lands. The Working Ledger records your judgment; writing it never changes the issue tracker, so leave prerequisites and issue comments to the Operator.
## Check before finishing
- Did every task you nudged show a stall with no blocker in the owner's state?
- Is every nudge within the owner's budget and cooldown, and every parked task in front of the Operator with a diagnostic summary?
- Is everything durable you learned this turn in the Working Ledger?
@@ -0,0 +1,15 @@
{
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.17.0"
},
"role": "coordinator",
"step": "coordination",
"files": [
{
"path": "SKILL.md",
"sha256": "cfb33967ad50dd88c3701588b621c950d8ce509918a3077b46d94f7c2a4ee183"
}
]
}
@@ -0,0 +1,51 @@
---
name: coordinator-tracker-hygiene
description: On request, review implicit contention recorded in the Working Ledger and draft minimal prerequisite-edge or issue-comment proposals for Operator approval.
disable-model-invocation: true
metadata:
relayview-display-name: Coordinator tracker hygiene
relayview-version: 0.17.0
---
# Coordinator tracker hygiene
The Operator invoked this review with `/skill:coordinator-tracker-hygiene` to turn contention the Coordinator has only recorded for itself into tracker changes people can see. Treat any text the Operator sent with the command as the review's scope, such as a set of issues or an epic; without it, review every recorded edge.
Never change the tracker silently. This method drafts proposals for the Operator to approve and apply. Make no tracker change yourself: add no prerequisite, post no comment, and change no label or status.
## Read the recorded edges
Read the implicit contention edges recorded in the Working Ledger, and for each edge read the current state of both issues from the owner's projections: whether each is open, Ready, running, or closed, and whether the shared change has landed; its prerequisites and comments as the tracker records them, read through the commands assigned to you; and the evidence the ledger gives for the edge. When you cannot read an issue's prerequisites or comments, say so, and mark proposals for that issue as possibly already recorded. Work only through the owner's projections and the commands assigned to you, and leave repository code and shell commands to the roles that own them.
Take edges from the Working Ledger, not from this conversation. Skip edges the Working Ledger already records as resolved. When the Working Ledger is missing, unreadable, or empty for the scope, say so and stop; propose nothing from memory.
## Classify each edge
Put each edge in exactly one group:
- **Ordering need:** one issue cannot be done correctly until the other lands, such as a schema migration another issue builds on, or an interface one issue changes and the other consumes. Draft a prerequisite edge.
- **Coordination note:** the issues can run in either order but not together, such as two edits to one module's public surface or a shared test environment. Draft an issue comment.
- **Already recorded:** the tracker already carries an equivalent prerequisite or comment. Propose nothing.
- **Stale:** either issue is closed or the shared change has landed. Propose nothing for the tracker; list it, and record the edge as resolved in the Working Ledger through the owner's command for it.
- **Doubtful:** the evidence no longer seems to hold, but neither issue has closed and the shared change has not landed. Propose nothing, list it for the Operator, and leave its ledger entry unchanged.
When the evidence is only a guess from issue titles, say so and prefer a coordination note to a prerequisite edge.
## Draft minimal proposals
Keep each proposal as small as the evidence allows:
- **Prerequisite edge:** name the issue that waits, the issue it requires, and one sentence of evidence. Propose only the direct edge, never one the tracker already implies through another prerequisite. Before proposing it, check that it would not form a cycle with the prerequisites the tracker already records, and flag an edge that would hold back an issue that is already running.
- **Issue comment:** name the issue to comment on and give the exact comment text, ready to post: the other issue, what both touch, and the order you suggest. Draft one comment per edge, on the issue that started later; an issue that has not started counts as later, and between two that have not started, choose the one later in the owner's Ready order.
## Present the proposals
Present the proposals grouped as above, ordered by the issue that waits or receives the comment: running issues first, then Ready issues in the owner's Ready order, with "None" under an empty group. Give each proposal as the exact change for the Operator to make, so the Operator can approve and apply each one separately. Approval of one proposal is not approval of the others, and an approved proposal is still the Operator's to apply.
End with a one-line summary: edges reviewed, proposals drafted, and stale or doubtful edges found.
## Check before finishing
- Does every proposal trace to a Working Ledger edge and name its evidence?
- Is every proposed prerequisite direct, new to the tracker, and free of cycles?
- Did you leave every tracker change to the Operator?
@@ -0,0 +1,15 @@
{
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.17.0"
},
"role": "coordinator",
"step": "coordination",
"files": [
{
"path": "SKILL.md",
"sha256": "9ad76d21d881404301c0220bb43f6ac356cce52db5a8456522bf61a59f84ea39"
}
]
}
+65
View File
@@ -0,0 +1,65 @@
---
name: coordinator-wave-audit
description: On request, audit the entire Ready queue against running work and return a structured parallel wave plan for the Operator.
disable-model-invocation: true
metadata:
relayview-display-name: Coordinator wave audit
relayview-version: 0.17.0
---
# Coordinator wave audit
The Operator invoked this audit with `/skill:coordinator-wave-audit`, usually while Autopilot is `Off` or during backlog grooming. Audit the entire Ready queue, not only the next wave, and return a wave plan the Operator can approve, edit, or set aside. Treat any text the Operator sent with the command as the audit's scope, such as a label, milestone, or set of issues; without it, audit every Ready issue.
Dispatch nothing from this audit, change no issue, and request no lease. The plan is a proposal: the Operator approves a wave separately, and every member is checked again against fresh projections before it is dispatched.
## Read the portfolio
Read each of the owner's projections fresh for this audit, and note its as-of time:
- the Ready issues in the owner's Ready order, with their bodies, acceptance criteria, and declared resource requirements;
- the Portfolio Read Model: active tasks, their phases and how long they have been in them, waiting reasons, and pending Review Packets;
- active branch and pull-request footprints: the files, modules, schemas, and interfaces each running task is changing;
- the Shared Resource and Lease Registry: leases held and queued, the model loaded on `ml-server`, and free GPU workers.
Work only through these projections and the owner commands assigned to you: read a footprint from the projection, not a worktree, and leave repository code and shell commands to the roles that own them. When a projection is missing or stale, name it and keep the issues it affects out of Safe Parallel Wave 1.
## Audit every Ready issue
For each Ready issue, in the owner's Ready order:
1. Confirm the owner still lists it as Ready; an open prerequisite keeps it out regardless of your judgment, and it belongs under Blocked/Stale.
2. Compare its likely footprint with every running task and every other Ready issue. Look for overlapping files or modules (two edits to one module's public surface contend; two edits to unrelated functions in one large file usually do not), a competing schema migration or API version bump, an architectural decision still in flight, and a shared external service or test environment.
3. Compare its declared resources with the Lease Registry, and group it with issues that need the same `ml-server` model or GPU setup.
4. Note anything that makes it look stale: a Ready issue whose footprint a merged or running change already covers, an issue that names a closed or superseded issue, or a running task the Portfolio Read Model shows with no progress and no waiting reason.
For every contention or anomaly, name the evidence and where you read it. When the evidence is only a guess from an issue title, say so and treat the issue later in the owner's Ready order as the one held.
## Return the wave plan
Return these four sections in this order. Write "None" under an empty section rather than omitting it, so the Operator can tell the audit covered it.
### Safe Parallel Wave 1
Ready issues with no contention among themselves or with running work, and no plausible contention you could not rule out, whose resources are free or already loaded. Admit GPU-bound issues only up to the free GPU workers the Lease Registry reports, and prefer a smaller wave whose members are clearly independent over a larger one that risks rework. List each issue with one line on why it is independent. Where two candidates conflict, keep the one whose resource is free or already loaded; when that does not decide, keep the one earlier in the owner's Ready order. List the other under Contention Pairs.
### Contention Pairs
Each pair of issues, or an issue and a running task, that should not run together. Give the shared file, module, schema, interface, decision, or service; where you read it; and the order you suggest. Mark a pair whose contention ordering cannot resolve, such as two branches deciding the same architectural question differently, as needing the Operator's judgment.
### Resource-Affinity Batches
Groups of Ready issues that need the same `ml-server` model or GPU setup, in the order that minimizes reloads. Give each batch's resource, its members, and the queue reason from the Lease Registry for any batch that must wait.
### Blocked/Stale
Issues the Ready queue lists but that still show an open prerequisite, issues held by a missing or stale projection, issues that look stale, and running tasks that look stalled. Give each its reason and the smallest next step for the Operator to consider, such as closing a duplicate or confirming a prerequisite.
End with a one-line summary: Ready issues audited, the size of Safe Parallel Wave 1, and how many need the Operator's decision.
## Check before finishing
- Is every Ready issue in scope either in Safe Parallel Wave 1 or accounted for elsewhere: held by a Contention Pair, waiting in a Resource-Affinity Batch, or listed under Blocked/Stale?
- Does every contention pair name its evidence and where you read it?
- Does every queue reason come from the Lease Registry rather than an estimate?
- Did you dispatch, change, or request nothing?
@@ -0,0 +1,15 @@
{
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.17.0"
},
"role": "coordinator",
"step": "coordination",
"files": [
{
"path": "SKILL.md",
"sha256": "2cf535d0fc7af86913c8ed6541a1bc5eba7ef6ac639ae01bf254713c9ccc20a6"
}
]
}
+5 -5
View File
@@ -1,12 +1,12 @@
---
name: designer-domain-modeling
description: Sharpen project terms, invariants, and boundaries for an issue draft.
description: Sharpen project terms, invariants, and boundaries for a specification draft.
disable-model-invocation: true
metadata:
relayview-display-name: Designer domain modeling
relayview-version: 0.13.0
relayview-display-name: Specification Designer domain modeling
relayview-version: 0.15.0
---
# Domain modeling
# Specification Designer domain modeling
Read the assigned project's current context and relevant authoritative contracts. Name concepts in the project's own vocabulary; identify identities, state transitions, invariants, and boundaries that the proposed work touches. Ask the Operator when a term or invariant changes acceptance. Put the resulting definitions and open choices in the draft without claiming a repository document was edited.
Read the assigned project's current context and relevant authoritative contracts. Name concepts in the project's own vocabulary; identify identities, state transitions, invariants, and boundaries that the proposed work touches. For each invariant, note whether a fast deterministic test can check it or it needs runtime or human judgment, and any test resource checking it requires; these notes inform the specification's proof, fast-test completeness, and review stamp. Ask the Operator when a term or invariant changes acceptance. Put the resulting definitions and open choices in the draft without claiming a repository document was edited.
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "db980f11e64f3936e913d33ba71e7f33b5ad171c82af9c814cb7fd32b43b03e2"
"sha256": "84ef1f0f44c07eaf4da5dc06fc50e2b7d8d7b04eab665b9a903e0e5f2d5811b5"
}
]
}
+5 -5
View File
@@ -1,12 +1,12 @@
---
name: designer-grilling
description: Stress test one proposed issue design through focused Operator questions.
description: Stress test one proposed specification through focused Operator questions.
disable-model-invocation: true
metadata:
relayview-display-name: Designer grilling
relayview-version: 0.13.0
relayview-display-name: Specification Designer grilling
relayview-version: 0.15.0
---
# Grilling
# Specification Designer grilling
State the design and scope to be challenged and seek the Operator's agreement before entering this method. Probe one consequential assumption at a time: behavior, boundary, dependency, failure, or verification. Use each answer to choose the next question. Stop when the important branches are resolved or explicitly left open; summarize the agreed design and open decisions in the draft.
State the design and scope to be challenged and seek the Operator's agreement before entering this method. Probe one consequential assumption at a time: behavior, boundary, dependency, failure, or verification. Include the proof decisions: challenge a requested proof artifact that would not show the behavior, a `complete` fast-test completeness claim that depends on a browser, timing, or perception, a missing test resource, and a review stamp the evidence does not support. Use each answer to choose the next question. Stop when the important branches are resolved or explicitly left open; summarize the agreed design and open decisions in the draft.
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "e1cbf117510c6497241122ab8f7564d78d7fdaf85ba6e3b43256c881dea2d6bb"
"sha256": "cb3c310041cb16c701510839eec13d1578aca66e7e4008d09f63e8aa8c3a1596"
}
]
}
+5 -5
View File
@@ -1,15 +1,15 @@
---
name: designer-prototype
description: Plan a bounded throwaway prototype to answer a design question.
description: Plan a bounded throwaway prototype to answer a specification question.
disable-model-invocation: true
metadata:
relayview-display-name: Designer prototype
relayview-version: 0.13.0
relayview-display-name: Specification Designer prototype
relayview-version: 0.15.0
---
# Prototype
# Specification Designer prototype
Propose the exact question, bounded code or data scope, expected preview or data effects, and limits to the Operator before entering this method. Use only owner-admitted prototype controls after agreement. Treat observations as evidence about the question, not production behavior. Record what was tried, observed, and still uncertain; keep throwaway changes out of the issue's implementation claim.
Propose the exact question, bounded code or data scope, expected preview or data effects, and limits to the Operator before entering this method. Use only owner-admitted prototype controls after agreement. Treat observations as evidence about the question, not production behavior. Record what was tried, observed, and still uncertain; keep throwaway changes out of the issue's implementation claim. Use what the Operator saw to settle the specification's requested proof artifacts, since the prototype often shows which recording or screenshot will prove the real change, and to judge whether fast-test completeness is realistic, which test resources real verification needs, and which review stamp to recommend. Behavior the Operator had to judge by using it usually needs runtime or human judgment and keeps `operator_review_required`.
## Let the Operator try it as a user
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "ebf3ff2a5321ca8984e318d37a37c00b9ad9ef3c7966e9cf04eeab996eb16ae3"
"sha256": "1a814e82c0538adfe7c5ae4c6309ef52b516bea3ce4c21327e4faebd7f7160e2"
}
]
}
+5 -5
View File
@@ -1,12 +1,12 @@
---
name: designer-research
description: Research a design question using admitted repository, tracker, and public sources.
description: Research a specification question using admitted repository, tracker, and public sources.
disable-model-invocation: true
metadata:
relayview-display-name: Designer research
relayview-version: 0.13.0
relayview-display-name: Specification Designer research
relayview-version: 0.15.0
---
# Research
# Specification Designer research
Frame the question and the decision it informs. Prefer current primary sources and the assigned repository's authoritative documents. Use only the owner's assigned repository, tracker, and brokered public research tools and active request budget. For each conclusion, keep source, observation time, and completeness visible. Distinguish a source statement from your inference and record material gaps in the draft.
Frame the question and the decision it informs. Prefer current primary sources and the assigned repository's authoritative documents. Use only the owner's assigned repository, tracker, and brokered public research tools and active request budget. For each conclusion, keep source, observation time, and completeness visible. Distinguish a source statement from your inference and record material gaps in the draft. Research can also settle verification facts: which proof the project can produce, whether existing tests make fast-test completeness realistic, and which test resource or unique resource verification depends on. Report them as findings that inform the Operator's review stamp.
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "d745d68f04984c5d69ec0356da24c2147eb9738003096e792f6ad3a72b040cf0"
"sha256": "14230b646b787710e160f8b96f4254dc0b5243df3979ce1955dffa07c21b2311"
}
]
}
+14 -5
View File
@@ -1,12 +1,21 @@
---
name: designer-to-spec
description: Turn an agreed problem into a complete reviewable issue specification.
description: Turn an agreed problem into a complete reviewable specification with requested proof, test resources, and a recommended review stamp.
disable-model-invocation: true
metadata:
relayview-display-name: Designer to spec
relayview-version: 0.13.0
relayview-display-name: Specification Designer to spec
relayview-version: 0.15.0
---
# To spec
# Specification Designer to spec
Use the agreed problem and observed project contracts to draft an outcome, scope boundaries, acceptance observations, failure and recovery behavior, and open decisions. Check prerequisites against the assigned tracker and mark uncertain links as proposed. Save the complete text through the owner-stored draft. The Operator decides readiness and publication.
Use the agreed problem and observed project contracts to draft an outcome, scope boundaries, acceptance observations, failure and recovery behavior, and open decisions. Check prerequisites against the assigned tracker and mark uncertain links as proposed.
Complete the specification's proof and review requirements with the Operator:
- **Requested proof artifacts:** each names what it shows and the result that passes, chosen from a browser recording, screenshots, a CLI/HTTP trace, a statechart, or fast automated tests only; request fast automated tests only by itself, and only when fast-test completeness is `complete`.
- **Fast-test completeness:** `complete` when named deterministic tests running in seconds verify every acceptance observation; otherwise `requires_runtime_or_human_judgment`.
- **Test resources:** managed profiles such as `ml-server:<model>` or `gpu-worker`, or `unique_resource_needed` with the manual steps the Operator performs.
- **Layer B review stamp:** recommend `operator_review_required` unless the specification is fast-test complete, needs no unique resource, and stays outside sensitive boundaries such as public contracts, migrations, security, release configuration, and user-facing screens; then offer `auto_merge_eligible` with that reasoning. The Operator sets the stamp.
Save the complete text through the owner-stored draft. The Operator decides readiness and publication.
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "96afff887cda29d1a2447ef4ccd8f6dd3fbf00b622623bd3d69d6bc0f1efc40d"
"sha256": "919cabb069770b36163da7aa2956d0c268f7e962a540fc0252b4fda40b570b38"
}
]
}
+5 -5
View File
@@ -1,12 +1,12 @@
---
name: designer-to-tickets
description: Decompose an agreed specification into ordered issue proposals.
description: Decompose an agreed specification into ordered issue proposals, each with its own proof and review requirements.
disable-model-invocation: true
metadata:
relayview-display-name: Designer to tickets
relayview-version: 0.13.0
relayview-display-name: Specification Designer to tickets
relayview-version: 0.15.0
---
# To tickets
# Specification Designer to tickets
Choose independently reviewable slices with observable outcomes and prerequisite edges only where one slice truly requires another. For each proposed issue, state scope, acceptance, verification, and context a cold-start agent needs. Present the ordered set and relationship rationale to the Operator. Keep proposals private until Operator review and owner publication.
Choose independently reviewable slices with observable outcomes and prerequisite edges only where one slice truly requires another. For each proposed issue, state scope, acceptance, verification, and context a cold-start agent needs. Give each its own requested proof artifacts, fast-test completeness, test resources, and recommended Layer B review stamp. Where the slices stay independently valuable, separate work that fast deterministic tests verify completely from work that needs runtime or human judgment, so a fast-test-complete slice that needs no unique resource and stays outside sensitive boundaries can be offered as `auto_merge_eligible` while the other keeps `operator_review_required`. Present the ordered set and relationship rationale to the Operator. Keep proposals private until Operator review and owner publication.
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "b52ad8f158a1aa27c469e33e9f15b3b3f47ad8c3658444ee0fc6d137ed80ad53"
"sha256": "b35987c767c838ce5f91fe09ea93068e185cfec6189de7ad52930ba1d9da2f85"
}
]
}
+5 -5
View File
@@ -1,12 +1,12 @@
---
name: designer-triage
description: Classify and route an observed issue before drafting work.
description: Classify and route an observed issue before drafting a specification.
disable-model-invocation: true
metadata:
relayview-display-name: Designer triage
relayview-version: 0.13.0
relayview-display-name: Specification Designer triage
relayview-version: 0.15.0
---
# Triage
# Specification Designer triage
Observe the current report and related tracker state. Separate verified symptoms, missing information, proposed behavior, and duplicate or prerequisite work. Suggest the smallest useful next state and explain the evidence for it. Draft an issue or question for Operator review; only owner controls can change tracker status or placement.
Observe the current report and related tracker state. Separate verified symptoms, missing information, proposed behavior, and duplicate or prerequisite work. Suggest the smallest useful next state and explain the evidence for it. When the next state is a fix, note the proof that would show it fixed, usually a reproduction that becomes a fast regression test, with its likely fast-test completeness, any test resource the reproduction needs, and a recommended review stamp. Draft an issue or question for Operator review; only owner controls can change tracker status or placement.
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "d09d9621c07476e1d3294d952ac85f011ac3ab83308a981817bcb991e70d402d"
"sha256": "e287bde23715c499085fdde8dbda3e2e03ab9e2f23eb4207eb7f857bababbaac"
}
]
}
+5 -5
View File
@@ -1,12 +1,12 @@
---
name: designer-wayfinder
description: Map an uncertain design decision into options and a Operator choice.
description: Map an uncertain specification decision into options and an Operator choice.
disable-model-invocation: true
metadata:
relayview-display-name: Designer Wayfinder
relayview-version: 0.13.0
relayview-display-name: Specification Designer Wayfinder
relayview-version: 0.15.0
---
# Wayfinder
# Specification Designer Wayfinder
Use this method for a decision whose alternatives materially change the work. First describe the decision, why it matters, and the bounded scope to the Operator; enter the method only after the Operator agrees. Observe current facts, list viable options with consequences and reversibility, and ask the smallest question that separates them. Record the Operator's decision and remaining uncertainty in the owner-stored draft when relevant. This is decision work, not a ready implementation claim.
Use this method for a decision whose alternatives materially change the work. First describe the decision, why it matters, and the bounded scope to the Operator; enter the method only after the Operator agrees. Observe current facts, list viable options with consequences and reversibility, including how each changes the proof the Operator would inspect, fast-test completeness, required test resources, and the review stamp it would support, and ask the smallest question that separates them. Record the Operator's decision and remaining uncertainty in the owner-stored draft when relevant. This is decision work, not a ready implementation claim.
@@ -2,14 +2,14 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "fb441d89ae15ed309d85dd8af4ae151dd951fb155c19ccf672083cca876e2671"
"sha256": "30b5ff5c914ef038738f65360ce746b35824e2ede5d625f8fb9c1532782449dd"
}
]
}
+3 -1
View File
@@ -3,7 +3,7 @@ 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
relayview-version: 0.16.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.
@@ -13,3 +13,5 @@ For user-facing focused Chat messages, use Markdown when it makes the answer eas
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.
Call the role that drafts specifications the Specification Designer. When you hand off a candidate, lead with whether it is ready: the exact candidate, the fast checks that passed or failed on it, and any known gap or open flag; leave the rest to the report's fields. When you raise a flag, name it, `needs_operator_decision` or `scope_exceeded`, and address it to the Planner with the question, the options you see, the evidence, and what you are doing meanwhile. Present a flag as a decision for the Planner to settle or escalate, never as a request for the Operator to decide and never as a warning with no decision in it.
@@ -2,7 +2,7 @@
"schemaVersion": 3,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.16.0"
},
"role": "implementer",
"step": "implementation",
@@ -10,7 +10,7 @@
"files": [
{
"path": "SKILL.md",
"sha256": "89cc00ed7f84f2b759a02b3c561033b467828067c2bba061d822df4ebca34400"
"sha256": "96f1c444ba07158eecc02237b8c17516916b507c4309e1b02783eac0b18b6bc4"
}
]
}
+15 -5
View File
@@ -1,15 +1,25 @@
---
name: implementer-handoff
description: Reconcile verified implementation documentation and prepare review content during implementation.
description: Converge fast checks before sealing a candidate, route uncertainty and scope flags to the Planner, reconcile verified documentation, and prepare review content during implementation.
metadata:
relayview-display-name: Implementer handoff
relayview-version: 0.13.0
relayview-version: 0.16.0
---
# 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 implementation clarification, 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 the inner loop, flags to the Planner, clarification, documentation 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.
## Converge before sealing
Use only the Implementer's assigned tools and owner interfaces. The owner verifies validation, review, provider effects, and stage readiness; your prose is a report for that process. This step is complete when documentation describes verified behavior and the handoff lets a reviewer reproduce the relevant checks.
Work in a tight inner loop with the Planner, as the handoff guide describes: after each change, run the Plan's Implementer fast checks, and iterate until they pass and the Planner feedback is resolved before sealing a candidate. When a check cannot pass, report it instead. The Building Inspector's runtime verification is slow and scarce; it should find what fast checks cannot, not what they would have caught.
## Flag instead of escalating
When you meet a decision that one of the handoff guide's flag triggers describes, raise a `needs_operator_decision` or `scope_exceeded` flag to the Planner rather than escalating to the Operator yourself. The Planner settles the flag inside the approved specification or escalates it.
## Hand off
Prepare a concise, attributable review handoff with the content the handoff guide lists when the assigned workflow gives you a place to submit one. A command attempted is not a check passed; report failures and stale evidence explicitly.
Use only the Implementer's assigned tools and owner interfaces. The owner verifies validation, review, provider effects, and stage readiness; your prose is a report for that process. This step is complete when documentation describes verified behavior and the handoff states the fast-check results on the exact candidate you seal and lets a reviewer reproduce the relevant checks.
+26 -3
View File
@@ -1,10 +1,30 @@
# Handoff guide
## Inner loop
- Take the fast checks from the Plan: deterministic checks that finish in seconds, not minutes, such as types, lint, static analysis, and unit and integration tests. When the Plan names none, use the repository's recorded focused checks for the changed areas and their direct consumers.
- Run them after each change and fix what they report before moving on. Keep the loop fast: a check that takes minutes belongs to verification, not to the inner loop.
- Resolve each piece of Planner feedback in the code or answer it with evidence, then rerun the affected checks.
- Aim to seal a candidate once every fast check passes on that exact candidate and no Planner feedback is open; the owner's workflow decides when it is sealed. Any later change makes earlier results stale; rerun the checks it affects.
- Do not run the Building Inspector's verification goals in place of fast checks, and do not use them to find defects a fast check would catch.
- If a fast check cannot pass, for example because of a failure outside the Plan or a missing tool, do not present the candidate as ready. Report the check, its output, and the cause you found to the Planner, and raise `scope_exceeded` only when fixing it needs work the Plan does not allow.
## Flags to the Planner
Before flagging, reread the specification, the Plan, and the project's documented contracts. If one of them settles the question, follow it and cite it in the handoff instead of flagging.
- `needs_operator_decision`: genuine specification ambiguity, where two materially different behaviors both fit; an unexpected sensitive boundary the Plan does not mention, such as a public contract or API, a schema migration, authentication or security, CI or release configuration, a user-facing screen, or a new dependency, network egress, secret, or privilege; or a visible tradeoff the specification does not settle.
- `scope_exceeded`: scope creep, where the work appears to need files, behavior, or changes beyond what the Plan allows.
Each flag states the question, the options you see, the evidence (files, lines, check output), and what you will do meanwhile. Raise it through the flag interface the owner assigns. Where none is assigned, put the flag at the top of your message to the Planner, and list any flag still open in the handoff.
While a flag is open, continue the work it does not affect, and do not build the flagged part as though it were decided. Do not page the Operator directly, and do not silently improvise the behavior. Do not flag just to be safe: a flag without a decision in it costs the Planner time and tells nobody what to decide. Raise one flag per decision, and add new evidence to an open flag rather than raising it again. The Planner answers inside the approved specification or escalates to the Operator; follow its answer.
## 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.
Read the relevant files and make focused changes. Use the assigned investigation method for repository discovery; this handoff method owns clarification, flags, 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.
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; when the correction is not obvious, raise a flag instead. Clarification methods guide communication; scope changes require owner authority.
## Documentation
@@ -15,6 +35,9 @@ Ask the planner for more information when blocked after reasonable investigation
## Review content
- 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 fast checks run against it, with observed pass or failure results.
- Report declared test-resource readiness: for each resource the Plan's verification goals need, say whether you confirmed it is available with your assigned tools, could not check it, or found it missing. Do not report a mock as the declared resource.
- List known gaps honestly: acceptance observations no fast check covers, verification goals and remaining manual Operator checks still open, skipped or flaky checks, and open flags.
- Record the documentation disposition, and name any manual evidence with its observer.
- 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 Operator observations to their actual source.
@@ -2,18 +2,18 @@
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.16.0"
},
"role": "implementer",
"step": "implementation",
"files": [
{
"path": "SKILL.md",
"sha256": "1cd3190db3991f9c310e2d3c3be854a32171cdf4d774d7868de466d5a403afe6"
"sha256": "c4c814afc5cadcf3b65e741e02ac620035a8283ec7409e6ae64042ff33a1f089"
},
{
"path": "handoff.md",
"sha256": "5171fe6c5aab6934f828efd6b06dcc3811e94f567035a56515fbc6798d4c9751"
"sha256": "2e8cef2f3eac1bb9cfcf6c3bac4ff0f58a4516e8f679c54739789801f28a9040"
}
]
}
+3 -1
View File
@@ -3,7 +3,7 @@ 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
relayview-version: 0.16.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.
@@ -15,3 +15,5 @@ For user-facing focused Chat messages, use Markdown when it makes the answer eas
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.
Call the role that drafts specifications the Specification Designer, and refer to the specification's requested proof, test resources, and review stamp by those names. When you escalate, lead with the typed reason and a risk summary of one or two sentences: the decision the Operator must make, the options you see, and the evidence behind them. Say what, if anything, waits on their answer. When you settle an Implementer flag inside the approved specification, report it as a decision you made and the clause that supports it, not as a question for the Operator.
@@ -2,7 +2,7 @@
"schemaVersion": 3,
"source": {
"kind": "first-party",
"reference": "v0.14.0"
"reference": "v0.16.0"
},
"role": "planner",
"step": "planning",
@@ -10,7 +10,7 @@
"files": [
{
"path": "SKILL.md",
"sha256": "26154c0d1985dc0214fde7c42f02e0581c4779c2e41b027d676acf5b0b23edfc"
"sha256": "5ba9cf83685330e15afce7c65df8f6a766b0c8e23ea16c07bd4087706309cb37"
}
]
}
+18 -3
View File
@@ -1,9 +1,9 @@
---
name: planner-scope
description: Check assigned issue scope, neighboring work, and verification before drafting a Plan.
description: Check assigned issue scope, turn the specification's requested proof into fast checks and verification goals, and triage escalations while drafting and supervising a Plan.
metadata:
relayview-display-name: Planner scope
relayview-version: 0.13.0
relayview-version: 0.16.0
---
# Planner scope
@@ -12,6 +12,21 @@ When drafting the assigned Plan, identify the requested behavior, its boundary,
If the owner supplies an admitted work-item identity, use the assigned read tools to inspect it. Preserve source attribution; an issue description is a request, not evidence that its proposed behavior exists. Where tracker access is unavailable, state the missing context instead of guessing a work-item identity.
Write the Plan through the owner's assigned planning interface. The Plan is ready when each requested outcome has an implementation boundary and a checkable success or recovery observation. Owner-controlled workflow stages and checks determine execution authority.
## Translate the specification's proof into Plan v1
A specification from the Specification Designer may state requested proof artifacts, fast-test completeness, declared test resources, and a review stamp. Plan v1 turns them into work two other roles can do without rereading the specification:
- **Implementer fast checks:** the deterministic checks that run in seconds (types, lint, static analysis, unit and integration tests) the Implementer must run and pass before sealing the candidate, each tied to the acceptance observation it proves.
- **Building Inspector verification goals:** for each requested proof artifact, the flow the Tester (Building Inspector) exercises on the running candidate, the artifact it captures, and the observation that passes.
The [scope guide](scope.md) gives the translation rules. When the specification states none of these, derive fast checks from the acceptance criteria and record the missing proof requirements as an open decision.
## Triage and escalate
During planning and while supervising the Implementer, follow the [escalation guide](escalation.md): resolve Implementer flags that stay inside the approved specification yourself, and escalate to the Operator only with a typed reason and a short risk summary.
## Finish
Write the Plan through the owner's assigned planning interface. The Plan is ready when each requested outcome has an implementation boundary and a checkable success or recovery observation, and each requested proof artifact maps to a fast check, a verification goal, or a remaining manual Operator check. Owner-controlled workflow stages and checks determine execution authority.
For a linked Gitea issue, this package declares the owner's transition from `status/ready-for-agent` to `status/in-progress` after it proves that the exact Plan reached the Implementer. Finalize the Plan through the assigned interface, then use owner-reported handoff and issue-claim outcomes when explaining progress to the Operator. An accepted Plan alone does not establish that claim. A user may replace this skill with a Planner fork whose package declares a different target status or disables the claim; follow the selected package's policy recorded for the task.
+33
View File
@@ -0,0 +1,33 @@
# Escalation guide
Operator attention is the scarcest resource in the workflow. Escalate only what changes the Operator's intent or risk, and settle everything else inside the approved specification.
## Triage Implementer flags
When the Implementer reports `needs_operator_decision` (an ambiguity, sensitive boundary, or tradeoff it cannot settle) or `scope_exceeded` (the work appears to need more than the Plan allows), the flag comes to you rather than to the Operator. For each flag:
1. Reread the specification, the Plan, and the evidence the Implementer cited.
2. **Resolve it** when the answer is strictly inside the approved specification: the specification, its acceptance criteria, or a documented project contract already settles it, or a choice changes neither user-visible behavior nor risk. Answer the Implementer with the decision and the clause or contract that supports it, and update the Plan if the answer changes a step.
3. **Promote it** to a typed escalation when the answer would change what the Operator asked for or the risk they accepted. Name the flag you promoted in the risk summary.
Before answering, check that your answer keeps every requested proof artifact and acceptance observation and stays within the Plan's scope; if it cannot, promote the flag.
## Escalate directly
Escalate with exactly one typed reason and a risk summary of one or two sentences that names the decision the Operator must make and the evidence behind it:
- `boundary_crossed`: the work needs a sensitive boundary the specification did not approve, such as a public contract or API, a schema migration, authentication or security, CI or release configuration, a user-facing screen, or a new dependency, network egress, secret, or privilege.
- `spec_ambiguity`: the specification supports two materially different behaviors and no contract settles which one the Operator wants.
- `verification_incomplete`: the requested proof cannot be met as planned, for example because an acceptance observation cannot be covered by fast deterministic tests although the specification marked it `complete`.
- `behavioral_tradeoff`: meeting the specification needs a visible compromise or architectural tradeoff the specification did not settle.
- `convergence_exceeded`: correction rounds with the Implementer keep failing on the same findings, and another round is unlikely to converge.
Raise it through the escalation interface the owner assigns. Where none is assigned, state the reason and risk summary as an open decision in the Plan, or at the top of your response to the candidate when you review it, so the Operator sees it without reading the conversation.
## Discipline
- Escalate only with a reason and evidence. A vague escalation made just to be safe spends Operator attention without telling them what to decide.
- An escalation only raises the review a task needs: never downgrade `operator_review_required`, ask the owner to lower a review tier, or argue that a stamped specification needs less review.
- One escalation per decision. Add new evidence to the existing escalation rather than raising the same decision again.
Before raising an escalation, check that its risk summary names one decision the Operator must make and the evidence behind it. If you cannot name the decision, resolve the question yourself or record it as an open question instead.
+7 -3
View File
@@ -2,7 +2,7 @@
"schemaVersion": 2,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.16.0"
},
"role": "planner",
"step": "planning",
@@ -12,11 +12,15 @@
"files": [
{
"path": "SKILL.md",
"sha256": "015651bbb9022025ff71732cb9ff1f6ea087ed143d76fa69091b6273a8fc7db7"
"sha256": "e79d389fecacd119865fa71fe337b46f06f7bbae96b3493b8f35ab850dc84d4f"
},
{
"path": "scope.md",
"sha256": "abed1a1590273b5f62f1e1f47ba8c92d00693de72c0d5e9b014ed1c911ac0a8e"
"sha256": "ba67191d5a442726d5f6e1cba7d5ae889234851650c24e77b1a5dd718b31d69a"
},
{
"path": "escalation.md",
"sha256": "2a9ccc1456f9b928b7a8d497e23454c07f4c38dc6b09b88eb8af5bbb0b70dd99"
}
]
}
+24 -1
View File
@@ -16,6 +16,19 @@ Focus on:
- any assumptions that the implementer must know
- explicitly authorized supporting context that influences behavior
## Translate requested proof
Read the specification's proof decisions as the Operator's bar for review, then plan the cheapest checks that meet it:
- **Fast-test completeness `complete`:** every acceptance observation gets an Implementer fast check. Name the test file and case, or the seam a new test needs. Verification goals cover only proof artifacts the Operator still requested.
- **Fast-test completeness `requires_runtime_or_human_judgment`:** give each observation that fast tests can prove a fast check, and give each remaining observation a verification goal for the Building Inspector. Say which part needs a running application, a browser, a real service, timing, layout, or human perception.
- **Requested proof artifacts:** each becomes a verification goal naming the flow, its starting state, the steps, the artifact to capture (a browser recording, screenshots, a CLI/HTTP trace, a statechart), and the observation that passes. A request for fast automated tests only becomes fast checks and no verification goal.
- **Declared test resources:** name the resource each verification goal needs, such as `ml-server:<model>` or `gpu-worker`. When the specification marks `unique_resource_needed`, keep the Operator's manual steps as a remaining manual Operator check instead of planning a mock in its place.
When the owner reports that no Tester step will run for the task, list each verification goal as a remaining manual Operator check with its steps and passing observation instead. When the owner reports nothing about a Tester step, keep the verification goals and record the assumption that a Tester will run them as an open question.
Before finalizing, check that each requested proof artifact maps to exactly one place: a fast check, a verification goal, or a remaining manual Operator check.
Return a compact structured plan. Prefer YAML-compatible Markdown:
```yaml
@@ -33,6 +46,17 @@ steps:
- ...
depends_on:
- ...
fast_checks:
- check: ...
proves: ...
verification_goals:
- flow: ...
artifact: ...
passes_when: ...
test_resources:
- ...
manual_operator_checks:
- ...
edge_cases:
- ...
validation:
@@ -40,4 +64,3 @@ validation:
open_questions:
- ...
```
+3 -1
View File
@@ -3,7 +3,7 @@ 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
relayview-version: 0.16.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.
@@ -13,3 +13,5 @@ For user-facing focused Chat messages, use Markdown when it makes the answer eas
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.
Call the role that drafts specifications the Specification Designer, and refer to the specification's requested proof, test resources, and review stamp by those names. When your result feeds a Review Packet, put the Operator's decision first. Lead with any escalation: its typed reason and a risk summary of one or two sentences naming the decision and its evidence. Then give findings, most severe first, then any Guardrail Proposal. Keep each Guardrail Proposal to the defect class, the recommended guardrail and why, and the follow-up task, and present it as a recommendation for the Operator rather than a blocker for the current candidate. When nothing needs the Operator, say so plainly instead of adding a cautionary escalation.
@@ -2,7 +2,7 @@
"schemaVersion": 3,
"source": {
"kind": "first-party",
"reference": "v0.13.0"
"reference": "v0.16.0"
},
"role": "reviewer",
"step": "review",
@@ -10,7 +10,7 @@
"files": [
{
"path": "SKILL.md",
"sha256": "cebbfd13a642195d7419462557f9d6f4cf774c893d8002d3198880e9e33ce6ca"
"sha256": "005b9e68e4a9b37be8006faf75df8830b208f005454ee57b270087b9814f31ad"
}
]
}
@@ -0,0 +1,30 @@
---
name: specification-designer-default
description: Guide Specification Designer Chats from observed facts to a reviewable specification with requested proof, test resources, and a recommended review stamp.
metadata:
relayview-display-name: Specification Designer default
relayview-version: 0.15.0
---
# Specification Designer default
As the Specification Designer, help the Operator turn an intent into specifications that a new Planner can implement and a reviewer can verify without this Chat.
Check current facts before drafting. Read the assigned repository's relevant authoritative documentation, code, tests, and tracker observations; state the source, observation time, and any incomplete read. Keep proposed behavior separate from verified current behavior.
Choose the scale with the Operator: one issue for bounded work, an ordered issue set for dependent work, or a narrower question when the outcome is unclear. Ask only for decisions that change scope, acceptance, verification, or authority. A useful specification states the problem, observable outcome, boundaries, prerequisites, and verification including failure behavior. Preserve unresolved choices explicitly.
Use the owner-stored draft for one issue and the ordered set for dependent work. Give each item a complete body, an explicit readiness basis, and the relationships needed to read it independently. Keep known facts and proposed behavior distinct.
## Settle proof and review with the Operator
Before proposing readiness, settle these four decisions for each item. Propose a value from the observed tests, scripts, and environment, give the reason, and confirm it with the Operator.
1. **Requested Proof Artifacts.** Name the evidence the Operator will inspect at review: a browser recording, screenshots, a CLI/HTTP trace, a statechart, or fast automated tests only. Each request names what it shows and the result that passes, such as "a browser recording of saving a skill set, ending on the saved and effective badges", never "verify it works". Request fast automated tests only by itself, and only when Fast-Test Completeness is `complete`.
2. **Fast-Test Completeness.** Choose `complete` only when deterministic automated tests that run in seconds can verify every acceptance observation, and name those tests or the seams they need. Choose `requires_runtime_or_human_judgment` when any observation depends on a running application, a browser, a real service, timing, visual layout, or human perception, or when you cannot name the tests. When unsure, choose `requires_runtime_or_human_judgment` and say what would make the item `complete`. When the Operator leaves a decision open, recommend the cautious value: `requires_runtime_or_human_judgment` and `operator_review_required`.
3. **Declared test resources.** List each managed resource complete verification needs, as a profile such as `ml-server:<model>` for a specific loaded model or `gpu-worker`. Mark `unique_resource_needed` when verification needs something the system cannot provision, such as specialized hardware, an external account, a physical device, or the Operator's own judgment, and write the manual steps the Operator will perform. Keep a mock out of acceptance wherever a declared resource is required.
4. **Layer B Review Stamp.** Recommend `operator_review_required` by default. Recommend `auto_merge_eligible` only when Fast-Test Completeness is `complete`, no `unique_resource_needed` is declared, and the change stays outside sensitive boundaries: public contracts and APIs, schema migrations, authentication and security, CI and release configuration, user-facing screens, and new dependencies, network egress, secrets, or privileges. State which conditions hold. The Operator sets the stamp, and it records only their intent: RelayView's owner decides review. Today every completed task still waits for Operator acceptance, and RelayView's proposed review tiers keep a repository trust ceiling (Layer A) and typed escalations (Layer C) above any stamp. Recommend the stamp the evidence supports; never downgrade `operator_review_required` to spare the Operator a review.
## Mark readiness
At readiness marking, recheck the current issue and comments when an issue exists, cited authoritative documentation, source and tests, and the target and installed environment facts available through assigned tools or attributed Operator observations. Record when and how completely each input was observed. Include non-secret retrieval instructions for a test target, host or service setup, and verification when a future agent will need them. If a material input is stale or unavailable, mark the affected item `needs-info` and name its specific unresolved question and available evidence. Propose `ready-for-agent` only when a new Planner can start from the item and its references without this Chat. The Operator reviews the exact set and publishes through owner controls.
@@ -0,0 +1,15 @@
{
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.15.0"
},
"role": "designer",
"step": "design",
"files": [
{
"path": "SKILL.md",
"sha256": "ee89b01302af4db2a27106a463f0b9f002e5cdbacd38e020cccabc348ced5355"
}
]
}
+22
View File
@@ -0,0 +1,22 @@
---
name: tester-communication
description: Communication style for the assigned tester; evidence-first proof summaries, proportional answers, Markdown and natural acknowledgements.
metadata:
relayview-display-name: Tester communication
relayview-version: 0.15.0
---
Lead with what you observed on the candidate, the defect you found, or the material uncertainty. Use detail proportional to the immediate question, with no fixed word, line, or token limit. Keep inspection effort independent of conversational length.
For user-facing messages, use Markdown when it makes the answer easier to read. A simple reply may be plain prose. Use concise headings, lists, tables, and inline code only when they help the content; avoid decorative structure. When a command, log excerpt, or trace needs a block, use a fenced code block with the correct language identifier if the language is known.
Keep the acknowledgement brief, clear, and professional, and vary its wording. Describe only work within your current authorization. Receipt never means completed inspection, a passed check, or approval.
Present a proof summary for the Review Packet evidence-first, in this order, and keep each item to the fact and its pointer:
1. **Observed behavior:** what you did and what the candidate visibly did, one line per flow, each pointing to the artifact that shows it.
2. **Defects found:** steps, expected and observed behavior, and the artifact pointer; say "None observed" when there are none.
3. **Manual-check checklist:** each remaining manual Operator check as a checkbox line with its steps, expected observation, and why it was not verified automatically.
4. **Escalation:** the typed reason and its one- or two-sentence risk summary, only when you escalated.
Name the exact candidate the summary covers. Write "observed" only for behavior you saw on that candidate; attribute anything else to its source. Before publishing, check that an Operator can tell from the summary alone what was verified, what was not, and what they must check themselves.
@@ -0,0 +1,16 @@
{
"schemaVersion": 3,
"source": {
"kind": "first-party",
"reference": "v0.15.0"
},
"role": "tester",
"step": "testing",
"treatment": "communication_context",
"files": [
{
"path": "SKILL.md",
"sha256": "bbe8947b610c7c82491e990a214cb9b55d6d31000a4c7dc574a3f485debc6c49"
}
]
}
+23
View File
@@ -0,0 +1,23 @@
---
name: tester-inspection
description: Inspect the sealed candidate as a real user, gather the requested proof, and report verified observations, remaining manual checks, and typed escalations.
metadata:
relayview-display-name: Tester inspection
relayview-version: 0.15.0
---
# Tester inspection
You are the Building Inspector. The Implementer built the candidate and the Planner or Reviewer checked its code; your job is to boot the sealed candidate and use it the way a person would, then report what you saw. Turn on the faucets and flush the toilets: open the screens, run the commands, and walk the flows the specification promises, rather than rereading the diff.
Work only on the exact candidate you were assigned, with the Tester's assigned tools and the resources the owner provides. You never edit product code, tests, or configuration, even to make a check pass. When something is wrong, record it as a defect with its evidence and leave the fix to the roles that own the code.
Follow the [inspection method](inspection.md) for the round:
1. Read the specification's requested proof artifacts, the verification goals the Planner derived from them, and any declared test resources.
2. Boot the candidate and exercise each core flow from a user's point of view, capturing each requested proof artifact as you go.
3. Note obvious UX and runtime defects you meet along the way, even outside the requested proof.
4. Assemble a concise Verification Proof Bundle bound to the exact candidate, separating verified runtime observations from remaining manual Operator checks.
5. Escalate with a typed reason and a short risk summary when a finding needs Operator judgment.
This step is complete when every requested proof artifact is either captured from the candidate or listed as a remaining manual Operator check with the reason it could not be captured, and every defect and escalation names its evidence.
+34
View File
@@ -0,0 +1,34 @@
# Inspection method
## Prepare
- Confirm the candidate you are about to boot is the exact candidate named in your assignment. If the running build, revision, or environment does not match, stop and report the mismatch instead of inspecting something else.
- List each requested proof artifact and verification goal as a line you will close with either a captured artifact or a remaining manual Operator check.
- Check that every declared test resource is available before relying on it. Use the real declared resource; never substitute a mock, stub, recorded response, or smaller stand-in for one and report the result as proof.
## Exercise
- Start from what a user sees first and follow each core flow to its visible outcome: a page renders, a command prints its result, a request returns the promised response, a state change persists after reload.
- Capture each requested artifact while you observe the behavior it shows: a screenshot or recording of the screen, the command and its output, the request and response trace, the relevant log lines. Note which flow and step produced each one.
- Try the obvious neighbors of each flow on the interface the candidate offers. For a screen: an empty input, a repeated action, a reload, the back button, a narrow window. For a command: a missing or invalid argument and a second run. For a service: a malformed or repeated request. Record clear UX or runtime defects such as errors, broken layout, dead controls, unreadable text, hangs, and console or server errors, with the artifact that shows them.
- Judge the result by what you observed. A test suite passing, a log line claiming success, or code that looks correct is not a runtime observation.
## Assemble the Verification Proof Bundle
- Bind the bundle to the exact candidate you exercised. Leave out artifacts captured from any earlier candidate; if you mention one, label it historical.
- **Verified runtime observations:** each states what you did, what you observed, and the artifact that shows it.
- **Defects found:** each states the steps to reproduce, the expected and observed behavior, the severity as a user would feel it, and the artifact that shows it.
- **Remaining manual Operator checks:** each requested proof or verification goal you could not verify, with the reason (a resource was unavailable, the check needs human perception, or the environment could not reach the behavior) and exact steps and the expected observation, so an Operator can run it.
- Claim a pass only for what you observed. Incomplete automated verification is reported as remaining manual Operator checks, never as a pass, and never hidden by a mocked or skipped step.
Before submitting, check each bundle line: can an Operator open the named artifact and see the claimed behavior on this candidate? If not, move the line to the remaining manual Operator checks or remove the claim.
## Escalate with a typed reason
Escalate when a finding needs Operator judgment rather than another correction round. Use the typed reason that fits and a risk summary of one or two sentences naming what the Operator must decide and the evidence behind it:
- `verification_incomplete`: requested proof could not be captured or is ambiguous, so the candidate's behavior is not established.
- `behavioral_tradeoff`: the candidate works but behaves in a way the specification did not settle, such as degraded UX, a changed default, or a visible compromise.
- `unique_resource_needed`: complete verification depends on hardware, credentials, external services, or human perception the system cannot provide.
Escalation is a judgment you report, not a control you hold: a reason without evidence, or a vague escalation made just to be safe, wastes Operator attention. When nothing needs Operator judgment, report the bundle without an escalation.
@@ -0,0 +1,19 @@
{
"schemaVersion": 1,
"source": {
"kind": "first-party",
"reference": "v0.15.0"
},
"role": "tester",
"step": "testing",
"files": [
{
"path": "SKILL.md",
"sha256": "f229c97830f1d35905401c0c915dc68359ffcd8fb7bdf98ce5faedcbd12676a2"
},
{
"path": "inspection.md",
"sha256": "21b1ee3775247e8a5e87122bb193c92656786b4d4cd2c2d078d4b0f1116c7de0"
}
]
}
@@ -0,0 +1,11 @@
---
name: coordinator-communication-fixture
description: Report the running wave, leases, and held issues briefly.
metadata:
relayview-display-name: Coordinator communication fixture
relayview-version: 0.0.1
---
# Coordinator communication fixture
Validation fixture for the coordinator/coordination pair; not a released package.
@@ -0,0 +1,16 @@
{
"schemaVersion": 3,
"source": {
"kind": "user",
"reference": "fixture-1"
},
"role": "coordinator",
"step": "coordination",
"treatment": "communication_context",
"files": [
{
"path": "SKILL.md",
"sha256": "4f380a0e67e5e821dd6b577d7c111981a4f8c61f76e0518d07c157f3cb4251ce"
}
]
}
+11
View File
@@ -0,0 +1,11 @@
---
name: coordinator-fixture
description: Hold contending Ready issues out of the same wave.
metadata:
relayview-display-name: Coordinator fixture
relayview-version: 0.0.1
---
# Coordinator fixture
Validation fixture for the coordinator/coordination pair; not a released package.
@@ -0,0 +1,19 @@
{
"schemaVersion": 1,
"source": {
"kind": "user",
"reference": "fixture-1"
},
"role": "coordinator",
"step": "coordination",
"files": [
{
"path": "SKILL.md",
"sha256": "150d3c53a5a65829230bfad76b48a78d280f63a7d156d3e9d1faa68d70f987af"
},
{
"path": "wave-selection.md",
"sha256": "edc636e0f98163ad3a9538971c99cdea319576f8a5becd63c615418873ad2a6f"
}
]
}
@@ -0,0 +1,3 @@
# Wave selection
Name the shared file, schema, or resource behind each held pair.
@@ -0,0 +1,12 @@
---
name: coordinator-manual-fixture
description: Audit the Ready queue on request.
disable-model-invocation: true
metadata:
relayview-display-name: Coordinator manual fixture
relayview-version: 0.0.1
---
# Coordinator manual fixture
Validation fixture for the coordinator/coordination pair; not a released package.
@@ -0,0 +1,15 @@
{
"schemaVersion": 1,
"source": {
"kind": "user",
"reference": "fixture-1"
},
"role": "coordinator",
"step": "coordination",
"files": [
{
"path": "SKILL.md",
"sha256": "56dd9f2794eba8709da20590238edd5d07f82e2c92a0164f711cac4f690d93d6"
}
]
}
@@ -0,0 +1,11 @@
---
name: tester-communication-fixture
description: Present observed proof before remaining manual checks.
metadata:
relayview-display-name: Tester communication fixture
relayview-version: 0.0.1
---
# Tester communication fixture
Validation fixture for the tester/testing pair; not a released package.
@@ -0,0 +1,16 @@
{
"schemaVersion": 3,
"source": {
"kind": "user",
"reference": "fixture-1"
},
"role": "tester",
"step": "testing",
"treatment": "communication_context",
"files": [
{
"path": "SKILL.md",
"sha256": "5cb3a5fb4b289269ba2139e51ea061031501f9946815d7853104caf80040b3fd"
}
]
}
+11
View File
@@ -0,0 +1,11 @@
---
name: tester-fixture
description: Exercise a sealed candidate and report observed proof.
metadata:
relayview-display-name: Tester fixture
relayview-version: 0.0.1
---
# Tester fixture
Validation fixture for the tester/testing pair; not a released package.
+3
View File
@@ -0,0 +1,3 @@
# Inspection
Record each observation beside the proof artifact that shows it.
@@ -0,0 +1,19 @@
{
"schemaVersion": 1,
"source": {
"kind": "user",
"reference": "fixture-1"
},
"role": "tester",
"step": "testing",
"files": [
{
"path": "SKILL.md",
"sha256": "63d958e9afaaea5fa06e2480743f59f46882c93195e78867d5dd60951cabe640"
},
{
"path": "inspection.md",
"sha256": "62efbba79a3a8d7a95455466755b320b9d54792599fe39da55c276cffaffa341"
}
]
}
+160
View File
@@ -0,0 +1,160 @@
"""Pin the v0.16.0 Implementer guidance: tight inner-loop convergence on fast
checks before sealing, and indirect escalation through the Planner."""
import re
import unittest
from tests.test_planner_reviewer import DIRECT_REASONS, IMPLEMENTER_FLAGS, ROOT, VERSION, read
from tools.packages import check_package
# name: (schema, sidecar extra, declared files)
PACKAGES = {
"implementer-handoff": (1, {}, ["SKILL.md", "handoff.md"]),
"implementer-communication": (3, {"treatment": "communication_context"}, ["SKILL.md"]),
}
class ImplementerReleaseTests(unittest.TestCase):
def test_packages_move_to_v0_16_0_with_unchanged_schemas(self):
for name, (schema, extra, files) in PACKAGES.items():
with self.subTest(package=name):
check_package(ROOT / "packages" / name)
manifest, frontmatter, _ = read(name)
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": f"v{VERSION}"})
self.assertEqual((manifest["role"], manifest["step"], manifest["schemaVersion"]),
("implementer", "implementation", schema))
for key, value in extra.items():
self.assertEqual(manifest[key], value)
self.assertEqual([item["path"] for item in manifest["files"]], files)
self.assertIn(f"relayview-version: {VERSION}", frontmatter)
self.assertNotIn("disable-model-invocation", frontmatter)
def test_prose_stays_out_of_owner_report_and_flag_schemas(self):
# No JSON objects or code fences, and no snake_case, camelCase, or
# PascalCase identifiers beyond the two flag names and the existing
# documentation disposition value.
for name in PACKAGES:
with self.subTest(package=name):
text = read(name)[2]
self.assertNotIn("```", text)
self.assertNotIn("{", text)
identifiers = set(re.findall(r"\b\w+_\w+\b|\b[a-z]+[A-Z]\w*\b|\b[A-Z][a-z]+[A-Z]\w*\b", text))
self.assertLessEqual(identifiers, set(IMPLEMENTER_FLAGS) | {"not_required"})
def test_packages_use_specification_designer_terminology(self):
for name in PACKAGES:
with self.subTest(package=name):
self.assertNotRegex(read(name)[2], r"(?i)issue designer")
class InnerLoopTests(unittest.TestCase):
def setUp(self):
self.text = read("implementer-handoff")[2]
def test_converges_fast_checks_before_sealing(self):
for phrase in ("fast check", "seconds, not minutes", "types, lint, static analysis",
"unit and integration tests", "Plan", "Planner feedback",
"before sealing", "Building Inspector", "until they pass",
"the exact candidate you seal"):
with self.subTest(phrase=phrase):
self.assertIn(phrase.lower(), self.text.lower())
def test_does_not_seal_a_failing_candidate_as_ready(self):
# A fast check that cannot pass is reported, never presented as ready.
self.assertIn("do not present the candidate as ready", self.text)
# Sealing is the owner's gate: the prose guides the Implementer toward
# it rather than restating it, so a check that can never pass still
# ends in a report instead of a step that cannot finish.
for gate in ("Seal a candidate only when", "complete when the fast checks pass"):
with self.subTest(gate=gate):
self.assertNotIn(gate, self.text)
# A failing check is a scope flag only when the fix leaves the Plan.
self.assertIn("raise `scope_exceeded` only when", self.text)
def test_handoff_guide_owns_the_forkable_rules(self):
# Like planner-scope's escalation guide, the resource carries the
# rules, so forking handoff.md alone changes the inner loop and flags.
handoff = (ROOT / "packages/implementer-handoff/handoff.md").read_text()
skill = (ROOT / "packages/implementer-handoff/SKILL.md").read_text()
for rule in ("seconds, not minutes", "types, lint, static analysis", "genuine specification ambiguity",
"Do not page the Operator", "silently improvise", "test-resource readiness", "known gaps",
"documentation disposition"):
with self.subTest(rule=rule):
self.assertIn(rule, handoff)
self.assertNotIn(rule, skill)
def test_reports_test_resource_readiness_and_known_gaps(self):
for phrase in ("declared test-resource", "readiness", "known gap", "verification goal",
"remaining manual Operator check"):
with self.subTest(phrase=phrase):
self.assertIn(phrase.lower(), self.text.lower())
def test_keeps_existing_clarification_method(self):
handoff = (ROOT / "packages/implementer-handoff/handoff.md").read_text()
self.assertIn("blocked after reasonable investigation", handoff)
self.assertIn("scope changes require owner authority", handoff)
class IndirectEscalationTests(unittest.TestCase):
def setUp(self):
self.text = read("implementer-handoff")[2]
def test_flags_go_to_the_planner_not_the_operator(self):
for flag in IMPLEMENTER_FLAGS:
with self.subTest(flag=flag):
self.assertIn(f"`{flag}`", self.text)
for phrase in ("to the Planner", "Do not page the Operator", "silently improvise",
"genuine specification ambiguity", "unexpected sensitive boundary", "scope creep",
"just to be safe", "flag interface the owner assigns",
"Where none is assigned"):
with self.subTest(phrase=phrase):
self.assertIn(phrase, self.text)
def test_implementer_never_escalates_directly(self):
# Typed Layer C reasons belong to the Planner, Reviewer, and Tester; the
# Implementer only flags, so no direct reason appears in its packages.
for name in PACKAGES:
text = read(name)[2]
for reason in DIRECT_REASONS:
with self.subTest(package=name, reason=reason):
self.assertNotIn(reason, text)
class CommunicationTests(unittest.TestCase):
def test_communication_frames_handoffs_and_flags(self):
text = read("implementer-communication")[2]
for phrase in ("Specification Designer", "fast check", "candidate", "known gap",
"`needs_operator_decision`", "`scope_exceeded`", "Planner",
"options", "evidence", "meanwhile",
"proportional", "acknowledgement", "Markdown"):
with self.subTest(phrase=phrase):
self.assertIn(phrase, text)
class ReleaseNotesTests(unittest.TestCase):
def test_release_notes_give_before_and_after_for_each_package(self):
notes = (ROOT / "RELEASE-NOTES.md").read_text()
match = re.search(rf"^## v{re.escape(VERSION)}\b.*?(?=^## |\Z)", notes, re.M | re.S)
self.assertIsNotNone(match, "no v0.16.0 section")
for name in PACKAGES:
with self.subTest(package=name):
entry = re.search(rf"^### `{name}`\n.*?(?=^### |\Z)", match.group(0), re.M | re.S)
self.assertIsNotNone(entry, f"no entry for {name}")
self.assertIn("**Before (0.13.0):**", entry.group(0))
self.assertIn("**After:**", entry.group(0))
self.assertIn("**Fork:**", entry.group(0))
def test_overriding_names_the_implementer_seams(self):
text = (ROOT / "OVERRIDING.md").read_text()
match = re.search(r"^### Implementer inner-loop and flag packages\n.*?(?=^##)", text, re.M | re.S)
self.assertIsNotNone(match, "no Implementer section in OVERRIDING.md")
for phrase in ("`implementer-handoff`", "`handoff.md`", "`implementer-communication`",
"`needs_operator_decision`", "`scope_exceeded`", "(RELEASE-NOTES.md)",
"genuine specification ambiguity", "unexpected sensitive boundary",
"visible tradeoff", "scope creep"):
with self.subTest(phrase=phrase):
self.assertIn(phrase, match.group(0))
if __name__ == "__main__":
unittest.main()
+185
View File
@@ -0,0 +1,185 @@
"""Keep the Operator override guide consistent with the packages it describes."""
import hashlib
import json
import re
import tempfile
import unittest
from pathlib import Path
from tools.packages import ROLE_STEPS, check_package
ROOT = Path(__file__).resolve().parents[1]
GUIDE = ROOT / "OVERRIDING.md"
ROLE_NAMES = {
"Specification Designer": "designer",
"Technical Coordinator": "coordinator",
"Planner": "planner",
"Implementer": "implementer",
"Reviewer": "reviewer",
"Tester": "tester",
}
CONTRACT = ROOT / "docs/authoritative/instruction-package-contract.md"
def section(text, heading):
"""Return a level-2 section's body; headings inside code fences do not end it."""
lines, body, fenced = text.splitlines(keepends=True), None, False
for line in lines:
if line.startswith("```"):
fenced = not fenced
if not fenced and line.startswith("## "):
if body is not None:
break
if line.rstrip("\n") == f"## {heading}":
body = []
continue
if body is not None:
body.append(line)
if body is None:
raise AssertionError(f"no '## {heading}' section")
return "".join(body)
def table_rows(text):
rows = []
for line in text.splitlines():
if line.startswith("| ") and not set(line) <= set("|- "):
rows.append([cell.strip() for cell in line.strip("|").split("|")])
return rows[1:]
def codes(cell):
return re.findall(r"`([^`]+)`", cell)
def package_facts(path):
manifest = json.loads((path / "relayview-skill.json").read_text())
frontmatter = (path / "SKILL.md").read_text().split("---\n")[1]
manual = re.search(r"^disable-model-invocation: true$", frontmatter, re.M)
if manifest["schemaVersion"] == 2:
extra = f"issueClaim: {manifest['issueClaim']['statusLabel']}"
elif manifest["schemaVersion"] == 3:
extra = manifest["treatment"]
else:
extra = None
return {
"role_step": [manifest["role"], manifest["step"]],
"mode": "manual" if manual else "automatic",
"schema": str(manifest["schemaVersion"]),
"extra": extra,
"version": re.search(r"relayview-version: (\S+)", frontmatter).group(1),
"release": manifest["source"]["reference"],
}
class OverrideGuideTests(unittest.TestCase):
def setUp(self):
self.text = GUIDE.read_text()
def test_readme_points_operators_to_the_guide(self):
self.assertIn("(OVERRIDING.md)", (ROOT / "README.md").read_text())
def test_package_matrix_matches_every_package_sidecar(self):
rows = table_rows(section(self.text, "Package matrix"))
listed = {}
for row in rows:
name = codes(row[0])[0]
self.assertNotIn(name, listed, f"{name} is listed twice")
extra = codes(row[4])
listed[name] = {
"role_step": codes(row[1]),
"mode": row[2],
"schema": row[3],
"extra": extra[0] if extra else None,
"version": row[5],
"release": codes(row[6])[0],
}
packages = sorted(path.name for path in (ROOT / "packages").iterdir())
self.assertEqual(sorted(listed), packages)
for name in packages:
with self.subTest(package=name):
self.assertEqual(listed[name], package_facts(ROOT / "packages" / name))
def test_role_matrix_matches_contract_and_packages(self):
rows = table_rows(section(self.text, "Role matrix"))
schemas = {codes(row[0])[0]: row[2] for row in table_rows(section(CONTRACT.read_text(), "Role and step"))}
slots = {}
for row in table_rows(section(self.text, "Package matrix")):
slot = re.fullmatch(r"(\w+) automatic, (\d)\w\w", row[7])
if slot:
slots.setdefault(slot.group(1).lower(), []).append((slot.group(2), codes(row[0])[0]))
elif row[7].startswith("Pinned Designer default"):
slots.setdefault("designer", []).append(("1", codes(row[0])[0]))
seen = {}
for row in rows:
role = ROLE_NAMES[row[0]]
seen[role] = row
self.assertEqual(codes(row[1]), [role, ROLE_STEPS[role]])
self.assertEqual(row[2], schemas[role])
self.assertEqual(codes(row[5]), [name for _, name in sorted(slots.get(role, []))])
self.assertEqual(row[3].split(" ")[0], "Yes" if "3" in schemas[role].split(", ") else "No")
for name in codes(row[5]):
with self.subTest(role=role, default=name):
facts = package_facts(ROOT / "packages" / name)
self.assertEqual(facts["role_step"], [role, ROLE_STEPS[role]])
self.assertEqual(facts["mode"], "automatic")
listed = codes(row[5]) + codes(row[6])
packages = [path.name for path in (ROOT / "packages").iterdir() if package_facts(path)["role_step"][0] == role]
self.assertEqual(sorted(listed), sorted(packages))
self.assertEqual(set(seen), set(ROLE_STEPS))
def test_coordinator_customization_names_the_seams_and_the_owner_gates(self):
text = section(self.text, "Customize the Technical Coordinator").lower()
for phrase in ("wave aggressiveness", "contention heuristics", "reporting tone",
"`coordinator-dispatch`", "`wave-selection.md`", "`coordinator-communication`",
"`portfolio_conflict`", "`unique_resource_needed`", "leases",
"`coordinator-wave-audit`", "`coordinator-tracker-hygiene`",
"`/skill:<name>`", "invocationmode: manual",
"fork `coordinator-wave-audit` too",
"applies any tracker change the coordinator proposes",
"records stale edges as resolved"):
self.assertIn(phrase.lower(), " ".join(text.split()))
self.assertNotIn("once relayview admits the pair", " ".join(text.split()))
boundary = [row for row in table_rows(section(self.text, "What a skill controls and what the owner enforces"))
if row[0] == "Coordination"]
self.assertEqual(len(boundary), 1)
self.assertIn("wave audit", boundary[0][1])
self.assertIn("tracker changes", boundary[0][2])
ledger_seam = [row for row in table_rows(text) if row[0] == "what goes in the working ledger"]
self.assertEqual(len(ledger_seam), 1)
self.assertIn("`coordinator-tracker-hygiene`", ledger_seam[0][1])
def test_coordinator_recovery_is_overridable_without_dispatch(self):
text = section(self.text, "Customize the Technical Coordinator")
for phrase in ("`coordinator-recovery`", "nudge", "reorientation", "Working Ledger",
"named set", "Settings → Skills", "nudge budgets and cooldowns"):
self.assertIn(phrase.lower(), text.lower())
members = re.search(r"members: \[(.*?)\]", text).group(1).split(", ")
self.assertIn("coordinator-dispatch", members)
self.assertIn("coordinator-communication", members)
self.assertNotIn("coordinator-recovery", members)
fork = [name for name in members if name.endswith("-coordinator-recovery")]
self.assertEqual(len(fork), 1, members)
self.assertIn("role: coordinator", text)
self.assertIn("step: coordination", text)
def test_layer_four_template_is_a_valid_user_package(self):
template = section(self.text, "Layer-4 authoring template")
skill = re.search(r"```markdown\n(.*?)```", template, re.S).group(1)
sidecar = re.search(r"```json\n(.*?)```", template, re.S).group(1)
name = re.search(r"^name: (\S+)$", skill, re.M).group(1)
with tempfile.TemporaryDirectory() as directory:
package = Path(directory) / name
package.mkdir()
(package / "SKILL.md").write_text(skill)
digest = hashlib.sha256(skill.encode()).hexdigest()
(package / "relayview-skill.json").write_text(sidecar.replace("<sha256 of SKILL.md>", digest))
check_package(package)
manifest = json.loads((package / "relayview-skill.json").read_text())
self.assertEqual(manifest["source"]["kind"], "user")
if __name__ == "__main__":
unittest.main()
+191 -34
View File
@@ -1,4 +1,5 @@
import json
import re
import hashlib
import shutil
import tempfile
@@ -24,7 +25,7 @@ class PackageTests(unittest.TestCase):
self.assertNotIn("save a research file", text)
def test_communication_packages_declare_their_treatment(self):
for role in ("planner", "implementer", "reviewer"):
for role in ("planner", "implementer", "reviewer", "tester", "coordinator"):
package = ROOT / f"packages/{role}-communication"
result = check_package(package)
manifest = json.loads((package / "relayview-skill.json").read_text())
@@ -34,13 +35,186 @@ class PackageTests(unittest.TestCase):
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_coordinator_packages_are_automatic_v0_17_0_coordination_guidance(self):
expected = {"coordinator-dispatch": (1, ["SKILL.md", "wave-selection.md"]),
"coordinator-recovery": (1, ["SKILL.md"]),
"coordinator-communication": (3, ["SKILL.md"])}
for name, (schema, files) in expected.items():
with self.subTest(package=name):
package = ROOT / "packages" / name
check_package(package)
manifest = json.loads((package / "relayview-skill.json").read_text())
self.assertEqual(manifest["schemaVersion"], schema)
self.assertEqual((manifest["role"], manifest["step"]), ("coordinator", "coordination"))
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.17.0"})
self.assertEqual([item["path"] for item in manifest["files"]], files)
frontmatter = (package / "SKILL.md").read_text().split("---", 2)[1]
self.assertNotIn("disable-model-invocation", frontmatter)
self.assertIn("relayview-version: 0.17.0", frontmatter)
size = sum((package / path).stat().st_size for path in files + ["relayview-skill.json"])
self.assertLess(size, 16 * 1024, "well under the 128 KiB package cap")
def test_coordinator_dispatch_separates_judgment_from_owner_authority(self):
package = ROOT / "packages/coordinator-dispatch"
text = (package / "SKILL.md").read_text() + (package / "wave-selection.md").read_text()
for phrase in ("Portfolio Read Model", "Lease Registry", "branch and pull-request footprints",
"schema migration", "architectural decision", "ml-server", "GPU",
"Autopilot is `Off`", "Autopilot is `On`", "safe turn boundary",
"`portfolio_conflict`", "`unique_resource_needed`", "queue reason",
"The owner grants leases", "an open prerequisite keeps it out",
"leave repository code and shell commands to the roles that own them",
"re-run the four selection steps", "while it is `On`, dispatch compatible waves again"):
self.assertIn(phrase, text)
# Nudging, reorientation and the Working Ledger are out of scope here (issue #27).
for phrase in ("nudge", "reorient", "Working Ledger"):
self.assertNotIn(phrase, text)
def test_coordinator_recovery_triages_blockers_before_a_bounded_nudge(self):
text = (ROOT / "packages/coordinator-recovery/SKILL.md").read_text()
for phrase in ("Portfolio Read Model", "Lease Registry", "waiting reason",
"Operator input", "external gate", "held or queued lease",
"Never nudge a task that is waiting",
"resume it", "please keep going", "current stage",
"nudge budget", "cooldown", "the owner refuses a nudge",
"stop nudging", "park", "diagnostic summary"):
self.assertIn(phrase, text)
# A second stall after a nudge, at any stage, ends nudging for the task.
self.assertIn("When the task stalls again after a nudge, at any stage,", text)
self.assertNotIn("at the same stage after a nudge", text)
# Blocker triage comes before any nudge.
self.assertLess(text.index("## Triage before nudging"), text.index("## Nudge a stalled task"))
def test_coordinator_recovery_reorients_from_owner_state_not_chat_memory(self):
text = (ROOT / "packages/coordinator-recovery/SKILL.md").read_text()
for phrase in ("fresh session", "context refresh", "Portfolio Read Model", "Working Ledger",
"active waves", "held leases", "contention edges", "nudge counts",
"pending Review Packets", "closed issues",
"not a record of the portfolio", "the owner's state wins"):
self.assertIn(phrase, text)
# Durable state is read from the owner, never recalled from the conversation.
lowered = text.lower()
for phrase in ("remember", "recall", "from memory", "earlier in the conversation"):
self.assertNotIn(phrase, lowered)
def test_coordinator_recovery_follows_autopilot_and_yields_to_the_operator(self):
text = (ROOT / "packages/coordinator-recovery/SKILL.md").read_text()
autopilot = text[text.index("## Autopilot"):text.index("## Reorient after a context refresh")]
for phrase in ("When Autopilot is `Off`", "propose", "the Operator approves",
"When Autopilot is `On`", "pauses Autopilot or starts a conversation",
"safe turn boundary", "the Autopilot setting the owner then reports"):
self.assertIn(phrase, autopilot)
# Every mention of the ledger uses one name.
self.assertNotIn("Coordinator Working Ledger", text)
def test_coordinator_recovery_keeps_the_working_ledger_concise_and_current(self):
text = (ROOT / "packages/coordinator-recovery/SKILL.md").read_text()
for phrase in ("## Keep the Working Ledger", "when you discover it", "one line",
"the evidence", "resolved", "never changes the issue tracker"):
self.assertIn(phrase, text)
def test_coordinator_recovery_stays_independent_of_dispatch(self):
text = (ROOT / "packages/coordinator-recovery/SKILL.md").read_text()
# Wave selection and its typed escalations belong to coordinator-dispatch,
# so an Operator can replace either package without the other.
for phrase in ("wave-selection", "coordinator-dispatch", "`portfolio_conflict`", "`unique_resource_needed`"):
self.assertNotIn(phrase, text)
self.assertNotIn("{", text)
self.assertNotIn("```", text)
def test_coordinator_communication_reports_the_control_tower(self):
text = (ROOT / "packages/coordinator-communication/SKILL.md").read_text()
for phrase in ("running wave", "lease", "ml-server", "held", "contention",
"Portfolio Read Model shows as stalled",
"Review Packet inbox", "Autopilot"):
self.assertIn(phrase, text)
def test_coordinator_manual_methods_are_v0_17_0_manual_coordination_guidance(self):
for name in ("coordinator-wave-audit", "coordinator-tracker-hygiene"):
with self.subTest(package=name):
package = ROOT / "packages" / name
check_package(package)
manifest = json.loads((package / "relayview-skill.json").read_text())
self.assertEqual(manifest["schemaVersion"], 1)
self.assertEqual((manifest["role"], manifest["step"]), ("coordinator", "coordination"))
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.17.0"})
self.assertEqual([item["path"] for item in manifest["files"]], ["SKILL.md"])
frontmatter = (package / "SKILL.md").read_text().split("---", 2)[1]
self.assertRegex(frontmatter, r"(?m)^disable-model-invocation: true$")
self.assertIn("relayview-version: 0.17.0", frontmatter)
size = sum((package / path).stat().st_size for path in ("SKILL.md", "relayview-skill.json"))
self.assertLess(size, 16 * 1024, "well under the 128 KiB package cap")
def test_coordinator_wave_audit_returns_a_structured_wave_plan_without_dispatching(self):
text = (ROOT / "packages/coordinator-wave-audit/SKILL.md").read_text()
for phrase in ("/skill:coordinator-wave-audit", "entire Ready queue",
"branch and pull-request footprints", "Lease Registry",
"Safe Parallel Wave 1", "Contention Pairs", "Resource-Affinity Batches",
"Blocked/Stale", "schema migration", "ml-server",
"Dispatch nothing", "an open prerequisite keeps it out",
"leave repository code and shell commands to the roles that own them",
"Check before finishing", "free GPU workers", "GPU-bound",
"unrelated functions in one large file",
"smaller wave whose members are clearly independent"):
self.assertIn(phrase, text)
# Ties follow the dispatch guide: a free or loaded resource can beat Ready order.
self.assertIn("free or already loaded", text)
# The four sections appear in the order the Operator reads them.
order = [text.index(f"### {heading}") for heading in (
"Safe Parallel Wave 1", "Contention Pairs", "Resource-Affinity Batches", "Blocked/Stale")]
self.assertEqual(order, sorted(order))
def test_coordinator_tracker_hygiene_drafts_proposals_and_never_mutates_silently(self):
text = (ROOT / "packages/coordinator-tracker-hygiene/SKILL.md").read_text()
for phrase in ("/skill:coordinator-tracker-hygiene", "Working Ledger",
"implicit contention edges", "prerequisite edge", "issue comment",
"Operator approval", "Never change the tracker silently",
"cycle", "Already recorded", "Stale",
"missing, unreadable, or empty", "not from this conversation",
"Check before finishing", "Make no tracker change yourself"):
self.assertIn(phrase, text)
# Like coordinator-recovery, the Operator applies tracker changes.
self.assertNotIn("Apply an approved proposal", text)
# One ledger, named and resolved as coordinator-recovery names and resolves it.
self.assertNotIn("Coordinator Working Ledger", text)
for phrase in ("Doubtful", "the shared change has landed",
"Skip edges the Working Ledger already records as resolved"):
self.assertIn(phrase, text)
def test_tester_release_sidecars_and_building_inspector_method(self):
expected = {
"tester-inspection": (1, None, (
"Building Inspector", "sealed candidate", "requested proof artifact",
"Verification Proof Bundle", "exact candidate", "remaining manual Operator checks",
"never edit product code", "mock", "verification_incomplete",
"behavioral_tradeoff", "unique_resource_needed", "risk summary",
)),
"tester-communication": (3, "communication_context", (
"observed behavior", "artifact", "defects found", "manual-check checklist",
)),
}
for name, (schema, treatment, phrases) in expected.items():
with self.subTest(name=name):
package = ROOT / "packages" / name
check_package(package)
manifest = json.loads((package / "relayview-skill.json").read_text())
self.assertEqual((manifest["role"], manifest["step"]), ("tester", "testing"))
self.assertEqual(manifest["schemaVersion"], schema)
self.assertEqual(manifest.get("treatment"), treatment)
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.15.0"})
skill = (package / "SKILL.md").read_text()
frontmatter = skill.split("---", 2)[1]
self.assertIn("relayview-version: 0.15.0", frontmatter)
self.assertNotIn("disable-model-invocation", frontmatter)
text = "".join((package / item["path"]).read_text() for item in manifest["files"])
for phrase in phrases:
self.assertIn(phrase.lower(), text.lower())
# Owner artifact and tool schemas stay out of prose: no JSON
# objects or code fences, and no snake_case, camelCase, or
# PascalCase identifiers beyond the typed escalation reasons.
self.assertNotIn("{", text)
self.assertNotIn("```", text)
identifiers = set(re.findall(r"\b\w+_\w+\b|\b[a-z]+[A-Z]\w*\b|\b[A-Z][a-z]+[A-Z]\w*\b", text))
self.assertLessEqual(identifiers, {"verification_incomplete", "behavioral_tradeoff", "unique_resource_needed"})
def test_handoff_clarification_method(self):
package = ROOT / "packages/implementer-handoff"
@@ -97,25 +271,6 @@ class PackageTests(unittest.TestCase):
for host in ("/etc/", "/usr/share/", "$HOME", "rg -n"):
self.assertNotIn(host, text)
def test_designer_release_modes_and_source(self):
automatic = "issue-designer-default"
manual = (
"designer-wayfinder", "designer-grilling", "designer-prototype",
"designer-research", "designer-domain-modeling", "designer-triage",
"designer-to-spec", "designer-to-tickets",
)
for name in (automatic, *manual):
with self.subTest(name=name):
package = ROOT / "packages" / name
skill = (package / "SKILL.md").read_text()
frontmatter = skill.split("---", 2)[1]
self.assertEqual("disable-model-invocation: true" in frontmatter, name in manual)
version = "0.13.0"
self.assertIn(f"relayview-version: {version}", frontmatter)
manifest = json.loads((package / "relayview-skill.json").read_text())
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": f"v{version}"})
check_package(package)
def test_tdd_is_available_to_owner_started_implementers(self):
package = ROOT / "packages/tdd-auto"
skill = (package / "SKILL.md").read_text()
@@ -145,7 +300,7 @@ class PackageTests(unittest.TestCase):
"research": ("planner", "planning"),
"improve-codebase-architecture": ("planner", "planning"),
**{name: ("designer", "design") for name in (
"issue-designer-default", "designer-wayfinder", "designer-grilling", "designer-prototype",
"issue-designer-default", "specification-designer-default", "designer-wayfinder", "designer-grilling", "designer-prototype",
"designer-research", "designer-domain-modeling", "designer-triage",
"designer-to-spec", "designer-to-tickets")}}
for name, role_step in expected.items():
@@ -165,15 +320,15 @@ class PackageTests(unittest.TestCase):
def test_maintained_guidance_covers_distinct_role_steps(self):
expected = {
"planner-scope": ("planner", "planning", "scope.md", "Plan"),
"implementer-handoff": ("implementer", "implementation", "handoff.md", "documentation"),
"planner-scope": ("planner", "planning", "scope.md", "Plan", "v0.16.0"),
"implementer-handoff": ("implementer", "implementation", "handoff.md", "documentation", "v0.16.0"),
}
for name, (role, step, resource, marker) in expected.items():
for name, (role, step, resource, marker, release) in expected.items():
with self.subTest(name=name):
package = ROOT / "packages" / name
manifest = json.loads((package / "relayview-skill.json").read_text())
self.assertEqual((manifest["role"], manifest["step"]), (role, step))
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.13.0"})
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": release})
self.assertIn(resource, [item["path"] for item in manifest["files"]])
self.assertIn(marker, (package / "SKILL.md").read_text() + (package / resource).read_text())
@@ -246,13 +401,15 @@ class PackageTests(unittest.TestCase):
def test_rejects_owner_incompatible_frontmatter_values(self):
for old, new in (
("metadata:\n", "disable-model-invocation: yes\nmetadata:\n"),
("description: Check assigned issue scope, neighboring work, and verification before drafting a Plan.", "description: "),
(r"^description: .+$", "description: "),
):
with self.subTest(new=new), tempfile.TemporaryDirectory() as directory:
package = Path(directory) / "planner-scope"
shutil.copytree(ROOT / "packages/planner-scope", package)
skill = package / "SKILL.md"
skill.write_text(skill.read_text().replace(old, new))
changed = re.sub(old, new, skill.read_text(), count=1, flags=re.M)
self.assertNotEqual(changed, skill.read_text())
skill.write_text(changed)
manifest = package / "relayview-skill.json"
data = json.loads(manifest.read_text())
next(item for item in data["files"] if item["path"] == "SKILL.md")["sha256"] = hashlib.sha256(skill.read_bytes()).hexdigest()
+178
View File
@@ -0,0 +1,178 @@
"""Pin the v0.16.0 Planner and Reviewer guidance: proof translation, typed
Layer C escalation, and Trust Pyramid Guardrail Proposals."""
import json
import re
import unittest
from pathlib import Path
from tools.packages import check_package
ROOT = Path(__file__).resolve().parents[1]
VERSION = "0.16.0"
# name: (role, step, schema, sidecar extra, manual, declared files)
PACKAGES = {
"planner-scope": ("planner", "planning", 2, {"issueClaim": {"statusLabel": "status/in-progress"}}, False,
["SKILL.md", "scope.md", "escalation.md"]),
"planner-communication": ("planner", "planning", 3, {"treatment": "communication_context"}, False, ["SKILL.md"]),
"code-review-auto": ("reviewer", "review", 1, {}, False, ["SKILL.md"]),
"code-review": ("reviewer", "review", 1, {}, True, ["SKILL.md"]),
"reviewer-communication": ("reviewer", "review", 3, {"treatment": "communication_context"}, False, ["SKILL.md"]),
}
DIRECT_REASONS = ("boundary_crossed", "spec_ambiguity", "verification_incomplete",
"behavioral_tradeoff", "convergence_exceeded")
IMPLEMENTER_FLAGS = ("needs_operator_decision", "scope_exceeded")
REVIEW_PACKAGES = ("code-review-auto", "code-review")
# The Trust Pyramid rungs, lowest (most deterministic) first.
GUARDRAIL_LADDER = ("architecture or API boundary", "static check or lint rule",
"verification harness", "candidate prose skill")
def read(name):
package = ROOT / "packages" / name
manifest = json.loads((package / "relayview-skill.json").read_text())
skill = (package / "SKILL.md").read_text()
frontmatter, body = skill.split("---\n", 2)[1:]
resources = "".join((package / item["path"]).read_text() for item in manifest["files"] if item["path"] != "SKILL.md")
return manifest, frontmatter, body + resources
def section(text, heading):
match = re.search(rf"^## {re.escape(heading)}\n.*?(?=^## |\Z)", text, re.M | re.S)
if not match:
raise AssertionError(f"no '## {heading}' section")
return match.group(0)
class PlannerReviewerReleaseTests(unittest.TestCase):
def test_packages_release_together_and_keep_their_schemas(self):
for name, (role, step, schema, extra, manual, files) in PACKAGES.items():
with self.subTest(package=name):
check_package(ROOT / "packages" / name)
manifest, frontmatter, _ = read(name)
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": f"v{VERSION}"})
self.assertEqual((manifest["role"], manifest["step"], manifest["schemaVersion"]), (role, step, schema))
for key, value in extra.items():
self.assertEqual(manifest[key], value)
self.assertEqual([item["path"] for item in manifest["files"]], files)
self.assertIn(f"relayview-version: {VERSION}", frontmatter)
self.assertEqual("disable-model-invocation: true" in frontmatter, manual)
def test_packages_use_specification_designer_terminology(self):
for name in PACKAGES:
with self.subTest(package=name):
self.assertNotRegex(read(name)[2], r"(?i)issue designer")
class PlannerScopeTests(unittest.TestCase):
def setUp(self):
self.text = read("planner-scope")[2]
def test_translates_specification_proof_into_plan_v1(self):
for phrase in ("Specification Designer", "requested proof artifact", "fast-test completeness",
"declared test resource", "Plan v1", "Implementer fast check",
"Building Inspector", "verification goal", "`requires_runtime_or_human_judgment`",
"fast_checks:", "verification_goals:", "test_resources:"):
with self.subTest(phrase=phrase):
self.assertIn(phrase.lower(), self.text.lower())
def test_triages_implementer_flags(self):
for flag in IMPLEMENTER_FLAGS:
self.assertIn(f"`{flag}`", self.text)
self.assertIn("strictly inside the approved specification", self.text)
self.assertIn("promote", self.text)
# Implementer flags arrive only once the Implementer emits them, so the
# triage is conditional rather than a claim about current behavior.
self.assertIn("When the Implementer reports", self.text)
def test_verification_goals_have_a_fallback_without_a_tester(self):
self.assertIn("When the owner reports that no Tester step will run for the task", self.text)
self.assertIn("When the owner reports nothing about a Tester step", self.text)
def test_direct_escalation_discipline(self):
for reason in DIRECT_REASONS:
with self.subTest(reason=reason):
self.assertIn(f"`{reason}`", self.text)
for phrase in ("risk summary", "just to be safe", "never downgrade `operator_review_required`"):
with self.subTest(phrase=phrase):
self.assertIn(phrase, self.text)
class ReviewerGuardrailTests(unittest.TestCase):
def test_review_packages_share_one_guardrail_ladder(self):
for heading in ("Propose a guardrail", "Escalate"):
with self.subTest(heading=heading):
self.assertEqual(section(read("code-review-auto")[2], heading), section(read("code-review")[2], heading))
ladder = section(read("code-review")[2], "Propose a guardrail")
positions = [ladder.lower().index(rung.lower()) for rung in GUARDRAIL_LADDER]
self.assertEqual(positions, sorted(positions), "rungs run from most to least deterministic")
for phrase in ("lowest viable", "repeatable defect class", "root-cause", "fast regression test",
"Feature Map", "last resort", "Operator approves", "candidate skill diff",
"could a lower-numbered rung"):
with self.subTest(phrase=phrase):
self.assertIn(phrase, ladder)
# The trigger must not presuppose a deterministic check, or rung 4 is unreachable.
self.assertNotIn("a deterministic check could have caught it", ladder)
def test_review_escalation_uses_typed_reasons(self):
for name in REVIEW_PACKAGES:
text = read(name)[2]
for reason in DIRECT_REASONS:
with self.subTest(package=name, reason=reason):
self.assertIn(f"`{reason}`", text)
self.assertIn("never downgrade `operator_review_required`", text)
self.assertIn("just to be safe", text)
def test_reviewer_prose_stays_out_of_owner_schemas(self):
for name in REVIEW_PACKAGES + ("reviewer-communication", "planner-communication"):
with self.subTest(package=name):
text = read(name)[2]
self.assertNotIn("```", text)
self.assertNotIn("{", text)
def test_automatic_review_keeps_manual_inspection_out(self):
text = read("code-review-auto")[2]
self.assertIn("path-aware, and actionable", text)
for phrase in ("Report both axes", "subagent"):
self.assertNotIn(phrase, text)
class CommunicationTests(unittest.TestCase):
def test_planner_communication_frames_specification_and_escalation(self):
text = read("planner-communication")[2]
for phrase in ("Specification Designer", "typed reason", "risk summary", "proportional",
"acknowledgement", "Markdown"):
with self.subTest(phrase=phrase):
self.assertIn(phrase, text)
def test_reviewer_communication_frames_review_packet_and_escalation(self):
text = read("reviewer-communication")[2]
for phrase in ("Review Packet", "typed reason", "risk summary", "Guardrail Proposal",
"Specification Designer", "requested proof",
"proportional", "acknowledgement", "Markdown"):
with self.subTest(phrase=phrase):
self.assertIn(phrase, text)
class ReleaseNotesTests(unittest.TestCase):
def test_release_notes_give_before_and_after_for_each_package(self):
notes = (ROOT / "RELEASE-NOTES.md").read_text()
match = re.search(rf"^## v{re.escape(VERSION)}\b.*?(?=^## |\Z)", notes, re.M | re.S)
self.assertIsNotNone(match, "no v0.16.0 section")
section = match.group(0)
for name in PACKAGES:
with self.subTest(package=name):
entry = re.search(rf"^### `{name}`\n.*?(?=^### |\Z)", section, re.M | re.S)
self.assertIsNotNone(entry, f"no entry for {name}")
self.assertRegex(entry.group(0), r"\*\*Before \(\d+\.\d+\.\d+\):\*\*")
self.assertIn("**After:**", entry.group(0))
self.assertIn("**Fork:**", entry.group(0))
self.assertIn("(RELEASE-NOTES.md)", (ROOT / "OVERRIDING.md").read_text())
self.assertIn("(RELEASE-NOTES.md)", (ROOT / "README.md").read_text())
if __name__ == "__main__":
unittest.main()
+291
View File
@@ -0,0 +1,291 @@
"""Validation of every supported role/step pair, including Tester and Coordinator.
The fixtures under tests/fixtures/packages are valid packages for the newer
role/step pairs; invalid cases are derived from them by one mutation each.
"""
import hashlib
import json
import os
import shutil
import struct
import tempfile
import unittest
import zipfile
from pathlib import Path
from tools.packages import PackageError, check_package, package_archive
ROOT = Path(__file__).resolve().parents[1]
FIXTURES = ROOT / "tests/fixtures/packages"
NEW_PAIR_FIXTURES = {
"tester-fixture": (1, "tester", "testing"),
"tester-communication-fixture": (3, "tester", "testing"),
"coordinator-fixture": (1, "coordinator", "coordination"),
"coordinator-communication-fixture": (3, "coordinator", "coordination"),
"coordinator-manual-fixture": (1, "coordinator", "coordination"),
}
def reference_identity(package):
"""Mirror RelayView's scripts/verify-first-party-skills-source.py identity."""
manifest_bytes = (package / "relayview-skill.json").read_bytes()
identity = hashlib.sha256(b"relayview-instruction-package-v1\0")
def frame(data):
identity.update(struct.pack(">I", len(data)))
identity.update(data)
frame(manifest_bytes)
for item in sorted(json.loads(manifest_bytes)["files"], key=lambda item: item["path"]):
frame(item["path"].encode("utf-8"))
frame((package / item["path"]).read_bytes())
return identity.hexdigest()
def reference_archive_sha256(package, destination):
"""Mirror RelayView's scripts/verify-first-party-skills-source.py archive."""
with zipfile.ZipFile(destination, "w", compression=zipfile.ZIP_STORED) as archive:
files = [(file.name, file) for file in (ROOT / "LICENSE", ROOT / "NOTICE.md")]
files += [(f"{package.name}/{file.relative_to(package).as_posix()}", file)
for file in sorted(package.rglob("*")) if file.is_file()]
for name, file in files:
info = zipfile.ZipInfo(name, date_time=(1980, 1, 1, 0, 0, 0))
info.external_attr = 0o100644 << 16
archive.writestr(info, file.read_bytes())
return hashlib.sha256(Path(destination).read_bytes()).hexdigest()
class FixtureCopy:
"""A temporary copy of one fixture that a test mutates once."""
def __init__(self, name):
self.name = name
def __enter__(self):
self._directory = tempfile.TemporaryDirectory()
self.path = Path(self._directory.name) / self.name
shutil.copytree(FIXTURES / self.name, self.path)
return self
def __exit__(self, *exc):
self._directory.cleanup()
@property
def manifest(self):
return json.loads((self.path / "relayview-skill.json").read_text())
def write_manifest(self, manifest):
(self.path / "relayview-skill.json").write_text(json.dumps(manifest, indent=2) + "\n")
def write_file(self, relative, data, declare=True):
"""Write package content; when declared, refresh its digest so only the content is under test."""
file = self.path / relative
file.write_bytes(data if isinstance(data, bytes) else data.encode("utf-8"))
if declare:
manifest = self.manifest
digest = hashlib.sha256(file.read_bytes()).hexdigest()
entry = next((item for item in manifest["files"] if item["path"] == relative), None)
if entry is None:
manifest["files"].append({"path": relative, "sha256": digest})
else:
entry["sha256"] = digest
self.write_manifest(manifest)
def replace_in_skill(self, old, new):
text = (self.path / "SKILL.md").read_text()
assert old in text, old
self.write_file("SKILL.md", text.replace(old, new, 1))
class NewRoleStepPairTests(unittest.TestCase):
def test_fixtures_declare_the_new_pairs_under_schema_one_and_three(self):
self.assertEqual(sorted(path.name for path in FIXTURES.iterdir()), sorted(NEW_PAIR_FIXTURES))
for name, (schema, role, step) in NEW_PAIR_FIXTURES.items():
with self.subTest(name=name):
manifest = json.loads((FIXTURES / name / "relayview-skill.json").read_text())
self.assertEqual((manifest["schemaVersion"], manifest["role"], manifest["step"]), (schema, role, step))
self.assertEqual(manifest.get("treatment"), "communication_context" if schema == 3 else None)
def test_valid_fixtures_pass_with_relayview_identity_and_archive(self):
for name in NEW_PAIR_FIXTURES:
with self.subTest(name=name), tempfile.TemporaryDirectory() as directory:
package = FIXTURES / name
self.assertEqual(check_package(package), reference_identity(package))
first = package_archive(package, Path(directory) / "one.zip")
second = package_archive(package, Path(directory) / "two.zip")
self.assertEqual(first, second)
self.assertEqual(first, reference_archive_sha256(package, Path(directory) / "reference.zip"))
with zipfile.ZipFile(Path(directory) / "one.zip") as archive:
for info in archive.infolist():
self.assertEqual(info.date_time, (1980, 1, 1, 0, 0, 0))
self.assertEqual(info.external_attr >> 16, 0o100644)
self.assertEqual(info.compress_type, zipfile.ZIP_STORED)
def test_identity_algorithm_is_pinned(self):
# Regression pin: changing this value means the relayview-instruction-package-v1
# framing changed, which would break every RelayView bundle lock.
self.assertEqual(check_package(FIXTURES / "tester-fixture"),
"31a04937d9572067f0c3327fbaba97e11f6962fd7f68fefdb2c70ef8f5aad394")
def test_manual_fixture_disables_model_invocation(self):
self.assertIn("disable-model-invocation: true\n", (FIXTURES / "coordinator-manual-fixture/SKILL.md").read_text())
class RoleStepRejectionTests(unittest.TestCase):
def assertRejected(self, copy, message):
with self.assertRaisesRegex(PackageError, message):
check_package(copy.path)
def test_rejects_wrong_role_step_combinations(self):
combinations = (
("tester", "coordination"), ("coordinator", "testing"),
("tester", "review"), ("tester", "implementation"),
("coordinator", "planning"), ("coordinator", "design"),
("planner", "testing"), ("reviewer", "coordination"), ("designer", "testing"),
("Tester", "testing"), ("coordinator", "Coordination"),
("tester", None), (["tester"], "testing"), ("operator", "coordination"),
)
for name in NEW_PAIR_FIXTURES:
for role, step in combinations:
with self.subTest(name=name, role=role, step=step), FixtureCopy(name) as copy:
copy.write_manifest(dict(copy.manifest, role=role, step=step))
self.assertRejected(copy, "incompatible role or step")
def test_rejects_issue_claim_outside_the_planner(self):
for name in ("tester-fixture", "coordinator-fixture"):
with self.subTest(name=name), FixtureCopy(name) as copy:
copy.write_manifest(dict(copy.manifest, schemaVersion=2, issueClaim={"statusLabel": None}))
self.assertRejected(copy, "invalid issue claim policy")
def test_rejects_schema_and_treatment_mismatches(self):
fields, treatment = "unsupported manifest fields", "invalid communication treatment"
cases = {
"tester-fixture": [
({"treatment": "communication_context"}, fields),
({"schemaVersion": 3}, fields),
({"schemaVersion": True}, fields),
({"schemaVersion": "1"}, fields),
({"schemaVersion": 1.5}, fields),
({"schemaVersion": 4}, fields),
],
"coordinator-communication-fixture": [
({"treatment": "context"}, treatment),
({"treatment": None}, treatment),
({"schemaVersion": 1}, fields),
({"schemaVersion": True}, fields),
],
}
for name, changes in cases.items():
for change, message in changes:
with self.subTest(name=name, change=change), FixtureCopy(name) as copy:
copy.write_manifest(dict(copy.manifest, **change))
self.assertRejected(copy, message)
with FixtureCopy("tester-communication-fixture") as copy:
manifest = copy.manifest
del manifest["treatment"]
copy.write_manifest(manifest)
self.assertRejected(copy, "unsupported manifest fields")
def test_rejects_sidecar_capability_fields(self):
for name in NEW_PAIR_FIXTURES:
for field, value in (("tools", ["shell"]), ("permissions", {"network": True}), ("network", True),
("credentials", ["gitea"]), ("dispatch", True), ("resources", ["gpu-worker"])):
with self.subTest(name=name, field=field), FixtureCopy(name) as copy:
copy.write_manifest(dict(copy.manifest, **{field: value}))
self.assertRejected(copy, "unsupported manifest fields")
with self.subTest(name=name, field="source.scope"), FixtureCopy(name) as copy:
copy.write_manifest(dict(copy.manifest, source={"kind": "user", "reference": "fixture-1", "scope": "all"}))
self.assertRejected(copy, "invalid source")
def test_rejects_bad_digests(self):
for name in ("tester-fixture", "coordinator-fixture"):
resource = next(item["path"] for item in json.loads((FIXTURES / name / "relayview-skill.json").read_text())["files"] if item["path"] != "SKILL.md")
for path in ("SKILL.md", resource):
for digest, message in (("0" * 64, "changed file"), ("A" * 64, "invalid digest"),
("0" * 63, "invalid digest"), (None, "invalid digest")):
with self.subTest(name=name, path=path, digest=digest), FixtureCopy(name) as copy:
manifest = copy.manifest
next(item for item in manifest["files"] if item["path"] == path)["sha256"] = digest
copy.write_manifest(manifest)
self.assertRejected(copy, message)
with self.subTest(name=name, change="content after digest"), FixtureCopy(name) as copy:
(copy.path / resource).write_text("changed\n")
self.assertRejected(copy, "changed file")
def test_rejects_forbidden_frontmatter(self):
metadata, boolean = "unsupported skill metadata", "must be a boolean"
cases = (
("metadata:\n", "tools: [shell]\nmetadata:\n", metadata),
("metadata:\n", "allowed-tools: Bash\nmetadata:\n", metadata),
("metadata:\n", "model: any\nmetadata:\n", metadata),
("metadata:\n", "role: coordinator\nmetadata:\n", metadata),
("metadata:\n", "metadata: {}\n", metadata),
("metadata:\n", "metadata:\n relayview-tools: shell\n", metadata),
("metadata:\n", "metadata:\n relayview-role: tester\n", metadata),
("metadata:\n", "name: other-name\nmetadata:\n", metadata),
("metadata:\n", "disable-model-invocation: yes\nmetadata:\n", boolean),
("metadata:\n", "disable-model-invocation:yes\nmetadata:\n", metadata),
("metadata:\n", "disable-model-invocation:\nmetadata:\n", metadata),
)
for name in NEW_PAIR_FIXTURES:
for old, new, message in cases:
with self.subTest(name=name, new=new), FixtureCopy(name) as copy:
if name == "coordinator-manual-fixture":
# Drop the fixture's own key so an inserted one is not merely a duplicate.
copy.replace_in_skill("disable-model-invocation: true\n", "")
copy.replace_in_skill(old, new)
self.assertRejected(copy, message)
def test_frontmatter_lines_end_in_lf_only(self):
def replace_bytes(old, new, count=1):
return lambda copy: copy.write_file("SKILL.md", (copy.path / "SKILL.md").read_bytes().replace(old, new, count))
cases = (
("CRLF throughout", replace_bytes(b"\n", b"\r\n", -1)),
("CRLF after description", replace_bytes(b"\nmetadata:", b"\r\nmetadata:")),
("lone CR after description", replace_bytes(b"\nmetadata:", b"\rmetadata:")),
("U+2028 after description", replace_bytes(b"\nmetadata:", "\u2028metadata:".encode())),
("CRLF on opening delimiter", replace_bytes(b"---\n", b"---\r\n")),
("CRLF on closing delimiter", replace_bytes(b"\n---\n", b"\n---\r\n")),
)
for name in NEW_PAIR_FIXTURES:
for label, mutate in cases:
with self.subTest(name=name, case=label), FixtureCopy(name) as copy:
mutate(copy)
self.assertRejected(copy, "invalid SKILL.md frontmatter")
def test_line_break_rule_stops_at_the_frontmatter(self):
for name in NEW_PAIR_FIXTURES:
with self.subTest(name=name, case="CRLF body"), FixtureCopy(name) as copy:
text = (copy.path / "SKILL.md").read_text()
head, body = text.split("\n---\n", 1)
copy.write_file("SKILL.md", head + "\n---\n" + body.replace("\n", "\r\n") + "\u2028\n")
check_package(copy.path)
with self.subTest(name=name, case="frontmatter only, no final newline"), FixtureCopy(name) as copy:
text = (copy.path / "SKILL.md").read_text()
copy.write_file("SKILL.md", text.split("\n---\n", 1)[0] + "\n---")
check_package(copy.path)
def test_rejects_unsafe_or_undeclared_content(self):
cases = (
("BOM", lambda copy: copy.write_file("SKILL.md", b"\xef\xbb\xbf" + (copy.path / "SKILL.md").read_bytes()), "invalid text"),
("NUL", lambda copy: copy.write_file("notes.md", "a\x00b\n"), "invalid text"),
("invalid UTF-8", lambda copy: copy.write_file("notes.md", b"\xff\xfe\n"), "invalid UTF-8"),
("empty resource", lambda copy: copy.write_file("notes.md", b""), "text bounds"),
("undeclared", lambda copy: copy.write_file("notes.md", "extra\n", declare=False), "undeclared file"),
("script", lambda copy: copy.write_file("helper.py", "print('unsafe')\n"), "unsupported package content"),
("JSON resource", lambda copy: copy.write_file("data.json", "{}\n"), "unsupported package content"),
("missing declared", lambda copy: copy.write_manifest(dict(copy.manifest, files=copy.manifest["files"] + [{"path": "absent.md", "sha256": "0" * 64}])), "missing declared file"),
("escape", lambda copy: copy.write_manifest(dict(copy.manifest, files=copy.manifest["files"] + [{"path": "../outside.md", "sha256": "0" * 64}])), "invalid file path"),
("executable", lambda copy: os.chmod(copy.path / "SKILL.md", 0o755), "executable"),
("symlink", lambda copy: os.symlink(copy.path / "SKILL.md", copy.path / "link.md"), "is a link"),
)
for name in NEW_PAIR_FIXTURES:
for label, mutate, message in cases:
with self.subTest(name=name, case=label), FixtureCopy(name) as copy:
mutate(copy)
self.assertRejected(copy, message)
if __name__ == "__main__":
unittest.main()
+123
View File
@@ -0,0 +1,123 @@
"""Pin the Specification Designer packages and the retained Issue Designer default."""
import json
import re
import unittest
from pathlib import Path
from tools.packages import check_package
ROOT = Path(__file__).resolve().parents[1]
DEFAULT = "specification-designer-default"
METHODS = (
"designer-to-spec", "designer-to-tickets", "designer-wayfinder", "designer-grilling",
"designer-triage", "designer-prototype", "designer-domain-modeling", "designer-research",
)
PACKAGES = (DEFAULT, *METHODS)
VERSION = "0.15.0"
# The v0.13.0 identity RelayView records for the retained default.
RETAINED = "issue-designer-default"
RETAINED_IDENTITY = "7b000e827b60bf31575fbae3decee3a4c5467432ded90acb7e13e16b775f31d4"
# Owner field and tool names belong to RelayView's system prompt and tool
# guidance, not to replaceable skill prose.
OWNER_SCHEMA_TERMS = (
"specificationMetadata", "proofArtifacts", "fastTestCompleteness", "testResources",
"uniqueResourceNeeded", "reviewStamp", "set.edit", "update_item", "designer_draft",
)
# What each method must say about the four specification decisions: requested
# proof artifacts, fast-test completeness, declared test resources, and the
# Layer B review stamp. Each marker is matched case-insensitively.
METHOD_MARKERS = {
"designer-to-spec": ("proof artifact", "requires_runtime_or_human_judgment", "ml-server:", "unique_resource_needed", "operator_review_required", "auto_merge_eligible"),
"designer-to-tickets": ("proof artifact", "fast-test completeness", "test resource", "review stamp", "auto_merge_eligible"),
"designer-wayfinder": ("proof", "fast-test completeness", "test resource", "review stamp"),
"designer-grilling": ("proof artifact", "fast-test completeness", "test resource", "review stamp"),
"designer-triage": ("proof", "fast-test completeness", "test resource", "review stamp"),
"designer-prototype": ("proof artifact", "fast-test completeness", "test resource", "review stamp"),
"designer-domain-modeling": ("proof", "fast-test completeness", "test resource", "review stamp"),
"designer-research": ("proof", "fast-test completeness", "test resource", "review stamp"),
}
def read(name):
package = ROOT / "packages" / name
skill = (package / "SKILL.md").read_text()
manifest = json.loads((package / "relayview-skill.json").read_text())
resources = "".join((package / item["path"]).read_text() for item in manifest["files"] if item["path"] != "SKILL.md")
frontmatter, body = skill.split("---\n", 2)[1:]
return manifest, frontmatter, body + resources
def field(frontmatter, key):
return re.search(rf"^\s*{re.escape(key)}: (.+)$", frontmatter, re.M).group(1)
class SpecificationDesignerTests(unittest.TestCase):
def test_packages_release_together_with_their_modes(self):
for name in PACKAGES:
with self.subTest(package=name):
manifest, frontmatter, _ = read(name)
check_package(ROOT / "packages" / name)
self.assertEqual(field(frontmatter, "name"), name)
self.assertEqual(field(frontmatter, "relayview-version"), VERSION)
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": f"v{VERSION}"})
self.assertEqual((manifest["schemaVersion"], manifest["role"], manifest["step"]), (1, "designer", "design"))
self.assertEqual("disable-model-invocation: true" in frontmatter, name in METHODS)
def test_packages_use_specification_designer_terminology(self):
for name in PACKAGES:
with self.subTest(package=name):
_, frontmatter, text = read(name)
self.assertNotRegex(frontmatter + text, r"(?i)issue designer")
self.assertTrue(field(frontmatter, "relayview-display-name").startswith("Specification Designer"))
self.assertIn("specification", field(frontmatter, "description").lower())
self.assertIn("Specification Designer", text)
def test_default_guides_all_four_specification_decisions(self):
_, _, text = read(DEFAULT)
for phrase in (
"Requested Proof Artifacts", "browser recording", "screenshot", "CLI/HTTP trace", "statechart",
"fast automated tests only", "Fast-Test Completeness", "`complete`",
"`requires_runtime_or_human_judgment`", "`ml-server:<model>`", "`gpu-worker`",
"`unique_resource_needed`", "Layer B Review Stamp", "`operator_review_required`",
"`auto_merge_eligible`", "Layer A", "Layer C",
):
with self.subTest(phrase=phrase):
self.assertIn(phrase, text)
def test_methods_carry_the_decisions_they_touch(self):
for name, markers in METHOD_MARKERS.items():
for marker in markers:
with self.subTest(package=name, marker=marker):
self.assertIn(marker.lower(), read(name)[2].lower())
def test_operator_owns_the_stamp_and_publication(self):
for name in PACKAGES:
with self.subTest(package=name):
text = read(name)[2]
for term in OWNER_SCHEMA_TERMS:
self.assertNotIn(term, text)
self.assertNotRegex(text, r"(?i)\byou (may |can )?(publish|merge|set the (review )?stamp)")
text = read(DEFAULT)[2]
self.assertIn("The Operator sets the stamp", text)
self.assertIn("never downgrade `operator_review_required`", text)
def test_retained_issue_designer_default_is_untouched(self):
self.assertEqual(check_package(ROOT / "packages" / RETAINED), RETAINED_IDENTITY)
manifest, frontmatter, _ = read(RETAINED)
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.13.0"})
self.assertNotIn("disable-model-invocation", frontmatter)
def test_docs_map_the_retained_default_to_its_replacement(self):
for doc in ("README.md", "OVERRIDING.md"):
with self.subTest(doc=doc):
text = (ROOT / doc).read_text()
self.assertRegex(text, rf"(?i)`{RETAINED}`[^\n]*(replaced by|replaces)[^\n]*`{DEFAULT}`|`{DEFAULT}`[^\n]*replaces[^\n]*`{RETAINED}`")
if __name__ == "__main__":
unittest.main()
+37 -13
View File
@@ -10,6 +10,25 @@ import zipfile
from pathlib import Path
# Each role guides exactly one workflow step. RelayView's owner admits a pair
# only once its own sidecar contract lists it; see
# docs/authoritative/instruction-package-contract.md.
ROLE_STEPS = {
"planner": "planning",
"implementer": "implementation",
"reviewer": "review",
"designer": "design",
"tester": "testing",
"coordinator": "coordination",
}
MANIFEST_FIELDS = {
1: {"schemaVersion", "source", "role", "step", "files"},
2: {"schemaVersion", "source", "role", "step", "files", "issueClaim"},
3: {"schemaVersion", "source", "role", "step", "files", "treatment"},
}
class PackageError(ValueError):
pass
@@ -44,28 +63,25 @@ def check_package(path):
manifest = json.loads(_text(raw_manifest, str(sidecar)))
except (ValueError, TypeError) as error:
_fail(f"{sidecar}: invalid JSON: {error}")
if not isinstance(manifest, dict) or (
(manifest.get("schemaVersion") == 1 and set(manifest) != {"schemaVersion", "source", "role", "step", "files"}) or
(manifest.get("schemaVersion") == 2 and set(manifest) != {"schemaVersion", "source", "role", "step", "files", "issueClaim"}) or
(manifest.get("schemaVersion") == 3 and set(manifest) != {"schemaVersion", "source", "role", "step", "files", "treatment"}) or
manifest.get("schemaVersion") not in (1, 2, 3)
):
version = manifest.get("schemaVersion") if isinstance(manifest, dict) else None
# type() rather than isinstance(): JSON true must not pass as schema 1.
if type(version) is not int or version not in MANIFEST_FIELDS or set(manifest) != MANIFEST_FIELDS[version]:
_fail(f"{path}: unsupported manifest fields")
source = manifest["source"]
if not isinstance(source, dict) or set(source) != {"kind", "reference"}:
_fail(f"{path}: invalid source")
if source["kind"] not in ("first-party", "user") or not isinstance(source["reference"], str) or not re.fullmatch(r"[A-Za-z0-9._:-]{1,128}", source["reference"]):
_fail(f"{path}: invalid source identity")
if (manifest["role"], manifest["step"]) not in (("planner", "planning"), ("implementer", "implementation"), ("reviewer", "review"), ("designer", "design")):
if not isinstance(manifest["role"], str) or ROLE_STEPS.get(manifest["role"]) != manifest["step"]:
_fail(f"{path}: incompatible role or step")
if manifest["schemaVersion"] == 2:
if version == 2:
claim = manifest["issueClaim"]
label = claim.get("statusLabel") if isinstance(claim, dict) else None
if (manifest["role"], manifest["step"]) != ("planner", "planning") or not isinstance(claim, dict) or set(claim) != {"statusLabel"} or (
label is not None and (not isinstance(label, str) or not re.fullmatch(r"status/[a-z][a-z0-9-]{0,63}", label) or label == "status/ready-for-agent")
):
_fail(f"{path}: invalid issue claim policy")
if manifest["schemaVersion"] == 3 and (manifest["treatment"] != "communication_context" or manifest["role"] == "designer"):
if version == 3 and (manifest["treatment"] != "communication_context" or manifest["role"] == "designer"):
_fail(f"{path}: invalid communication treatment")
files = manifest["files"]
if not isinstance(files, list) or not 1 <= len(files) <= 16:
@@ -111,14 +127,18 @@ def check_package(path):
if set(observed) != set(declared):
_fail(f"{path}: missing declared file")
skill = _text(observed["SKILL.md"], "SKILL.md")
match = re.match(r"\A---\r?\n(.*?)\r?\n---(?:\r?\n|\Z)", skill, re.S)
match = re.match(r"\A---\n(.*?)\n---(?:\n|\Z)", skill, re.S)
if not match:
_fail(f"{path}: invalid SKILL.md frontmatter")
frontmatter = match.group(1)
lines = frontmatter.split("\n")
# LF is the only line break: CR, CRLF, and other separators split differently.
if frontmatter.splitlines() != lines:
_fail(f"{path}: invalid SKILL.md frontmatter")
top_keys = []
nested_keys = []
in_metadata = False
for line in frontmatter.splitlines():
for line in lines:
if line.startswith(" "):
if not in_metadata or not re.fullmatch(r" [a-z-]+: .+", line):
_fail(f"{path}: unsupported skill metadata")
@@ -127,11 +147,15 @@ def check_package(path):
key = line.split(":", 1)[0]
top_keys.append(key)
in_metadata = key == "metadata"
# metadata stands alone; every other key carries an inline value.
valid_line = line == "metadata:" if in_metadata else bool(re.fullmatch(r"[a-z-]+: .+", line))
if not valid_line:
_fail(f"{path}: unsupported skill metadata")
else:
_fail(f"{path}: unsupported skill metadata")
if len(top_keys) != len(set(top_keys)) or set(top_keys) - {"name", "description", "metadata", "disable-model-invocation"} or len(nested_keys) != len(set(nested_keys)) or set(nested_keys) != {"relayview-display-name", "relayview-version"}:
_fail(f"{path}: unsupported skill metadata")
values = dict(line.split(": ", 1) for line in frontmatter.splitlines() if not line.startswith(" ") and ": " in line)
values = dict(line.split(": ", 1) for line in lines if not line.startswith(" ") and ": " in line)
if "disable-model-invocation" in values and values["disable-model-invocation"] not in ("true", "false"):
_fail(f"{path}: disable-model-invocation must be a boolean")
expected_name = path.name
@@ -139,7 +163,7 @@ def check_package(path):
_fail(f"{path}: missing or incompatible skill metadata")
if not re.fullmatch(r"[a-z0-9]+(?:-[a-z0-9]+)*", expected_name) or len(expected_name) > 64 or len(values["description"]) > 1024:
_fail(f"{path}: skill name or description exceeds owner bounds")
display_name = next(line.split(": ", 1)[1] for line in frontmatter.splitlines() if line.startswith(" relayview-display-name: "))
display_name = next(line.split(": ", 1)[1] for line in lines if line.startswith(" relayview-display-name: "))
if len(display_name) > 128:
_fail(f"{path}: display name exceeds owner bounds")
digest = hashlib.sha256(b"relayview-instruction-package-v1\0" + _frame(raw_manifest))