Merge pull request 'Add Feature Map verification and release verification packages (v0.18.0)' (#39) from ISSUE-29 into main
This commit is contained in:
commit
002c8a8408
15 files changed
+662
-51
No files matched your search
+83
-17
@@ -24,7 +24,7 @@ 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` |
|
||||
| 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`. Manual, in source for the proposed v0.18.0 release: `coordinator-release-verify` |
|
||||
| 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` |
|
||||
@@ -47,9 +47,10 @@ 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
|
||||
Coordinator packages are in source for the proposed `v0.17.0` release, with
|
||||
the manual `coordinator-release-verify` added for the proposed `v0.18.0`
|
||||
release, and become RelayView defaults only when RelayView adopts the role and
|
||||
pins those releases; 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.
|
||||
|
||||
@@ -84,6 +85,7 @@ and no RelayView bundle contains it.
|
||||
| `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 |
|
||||
| `coordinator-release-verify` | `coordinator` / `coordination` | manual | 1 | — | 0.18.0 | `v0.18.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 |
|
||||
@@ -95,7 +97,7 @@ and no RelayView bundle contains it.
|
||||
| `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-handoff` | `implementer` / `implementation` | automatic | 1 | — | 0.18.0 | `v0.18.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 |
|
||||
@@ -113,7 +115,7 @@ and no RelayView bundle contains it.
|
||||
| `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-inspection` | `tester` / `testing` | automatic | 1 | — | 0.18.0 | `v0.18.0`, not yet tagged | 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
|
||||
@@ -143,6 +145,11 @@ also called the Building Inspector, once RelayView admits the
|
||||
or detail; keep `schemaVersion: 3` and the `communication_context`
|
||||
treatment.
|
||||
|
||||
From `v0.18.0`, `tester-inspection` also drives each flow through the
|
||||
repository's Feature Map and Verification Driver and reports Feature Map
|
||||
coverage in the bundle; see
|
||||
[Feature Map verification packages](#feature-map-verification-packages).
|
||||
|
||||
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
|
||||
@@ -193,8 +200,11 @@ 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
|
||||
inner loop and indirect escalation; `implementer-handoff` adds Feature Map
|
||||
checks in `v0.18.0`, described under
|
||||
[Feature Map verification packages](#feature-map-verification-packages).
|
||||
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:
|
||||
|
||||
@@ -221,6 +231,57 @@ 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.
|
||||
|
||||
### Feature Map verification packages
|
||||
|
||||
From `v0.18.0`, the Implementer, Tester, and Technical Coordinator use a
|
||||
repository's Feature Map, its versioned list of user-facing capabilities with
|
||||
their entrypoints, owning paths, and checks, and its reusable Verification
|
||||
Driver instead of writing throwaway verification scripts for each task.
|
||||
RelayView pins neither `v0.16.0` nor `v0.18.0` yet, so its Implementer runs the
|
||||
`v0.13.0` `implementer-handoff`, and it admits no Tester or Coordinator
|
||||
package. The [release notes](RELEASE-NOTES.md) summarize each package's
|
||||
change, before and after. Each package forks independently:
|
||||
|
||||
- **`implementer-handoff`** notes the Feature Map entries that own each
|
||||
modified path, using the owner's mapping when it reports one, runs the
|
||||
mapped fast checks in the inner loop after each change, and runs the
|
||||
Verification Driver checks that the Plan or an entry assigns to the
|
||||
Implementer once the fast checks pass and again on the exact candidate
|
||||
before sealing. Its handoff reports Feature Map coverage: the mapped checks
|
||||
run and their results, checks not run and why, and unmapped modified paths.
|
||||
It changes the Feature Map only when the Plan includes that change. Fork
|
||||
`handoff.md` to change which checks run, when, or how coverage is reported.
|
||||
- **`tester-inspection`** finds the Feature Map entries that cover the
|
||||
candidate's changes and verification goals, drives each flow from its
|
||||
entrypoint with the Verification Driver, and captures multimodal proof as it
|
||||
goes, running every check itself on the sealed candidate. Its Verification
|
||||
Proof Bundle adds Feature Map coverage: each touched entry exercised or not
|
||||
exercised, and each Feature Map gap, beside the remaining manual Operator
|
||||
checks. It never edits the Feature Map or the driver. Fork `inspection.md`
|
||||
to change how the Tester reaches flows or reports coverage.
|
||||
- **`coordinator-release-verify`** is a manual method the Operator invokes
|
||||
with `/skill:coordinator-release-verify`, usually after a release or a
|
||||
merged wave. It plans a bounded outer-loop release or exploratory run across
|
||||
the Feature Map at one exact revision and launches it through the owner's
|
||||
release verification command, but only with that revision, a Feature Map or
|
||||
flows the Operator named, and a budget the Operator gave or approved. It
|
||||
reproduces each failure and returns repro-backed candidate bug drafts for
|
||||
the Specification Designer and the Operator to triage. It files and changes
|
||||
no issue and touches no branch. Fork its `SKILL.md` to change which entries
|
||||
a run covers first, which exploratory variations it tries, or the candidate
|
||||
bug draft's fields; keep schema 1 and `disable-model-invocation: true`.
|
||||
|
||||
When a repository has no Feature Map, the two updated packages keep their
|
||||
earlier checks and say that the repository has none, and
|
||||
`coordinator-release-verify` verifies only the flows the Operator names.
|
||||
|
||||
No package defines the Feature Map's schema, the Verification Driver's
|
||||
invocation, how coverage is recorded on a candidate report or proof bundle, or
|
||||
how a release run is isolated and bounded; RelayView's owner would supply
|
||||
those. Where the owner assigns no release verification command,
|
||||
`coordinator-release-verify` returns its run plan for the Operator and
|
||||
launches nothing.
|
||||
|
||||
## What a skill controls and what the owner enforces
|
||||
|
||||
A package is model-facing text. It changes how an agent works inside its role;
|
||||
@@ -244,6 +305,7 @@ admission.
|
||||
| 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 |
|
||||
| Feature Map verification | Which Feature Map entries and Verification Driver checks to run, in what order, how coverage and gaps are reported, which release-run entries and exploratory variations to try, and a candidate bug draft's content | The Feature Map and Verification Driver contracts, coverage records on candidate reports and proof bundles, release-run isolation, bounds, and leases, and Operator triage of every bug draft | 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
|
||||
@@ -398,6 +460,7 @@ independently:
|
||||
| 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 |
|
||||
| Release verification runs | `coordinator-release-verify`'s `SKILL.md` | Cover every entry on each release, add a field for the affected customer tier to each candidate bug draft, or never try property checks |
|
||||
|
||||
Fork each package you change under its own name with the
|
||||
[fork and override recipe](#fork-and-override-recipe), for example
|
||||
@@ -438,15 +501,18 @@ 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
|
||||
`coordinator-wave-audit`, `coordinator-tracker-hygiene`, and
|
||||
`coordinator-release-verify` 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. All three return proposals;
|
||||
the release verification method's candidate bug drafts are described under
|
||||
[Feature Map verification packages](#feature-map-verification-packages). 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`:
|
||||
|
||||
@@ -96,6 +96,8 @@ 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.
|
||||
|
||||
The not-yet-tagged v0.18.0 release adds Feature Map verification. `implementer-handoff` runs the checks a repository's Feature Map maps to the changed paths before sealing a candidate and reports that coverage, `tester-inspection` drives inspection through the Feature Map's entrypoints and the repository's Verification Driver and reports exact Feature Map coverage beside the remaining manual checks, and the new manual `coordinator-release-verify` runs bounded outer-loop release verification and returns repro-backed candidate bug drafts for triage. Without a Feature Map, the two updated packages keep their earlier checks and say that the repository has none, and the release method verifies only the flows the Operator names. See [Feature Map verification packages](OVERRIDING.md#feature-map-verification-packages).
|
||||
|
||||
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.
|
||||
@@ -6,6 +6,93 @@ 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.18.0 (not yet tagged)
|
||||
|
||||
Feature Map verification for RelayView's proposed verification scaling: the
|
||||
Implementer runs the checks a repository's Feature Map maps to the paths it
|
||||
changed before sealing a candidate, the Tester drives inspection through the
|
||||
Feature Map and its Verification Driver and reports exact coverage, and a new
|
||||
manual Coordinator method runs bounded release verification and drafts
|
||||
repro-backed bugs. The Feature Map and Verification Driver contracts, coverage
|
||||
records, and release-run isolation are proposed in RelayView and not yet
|
||||
shipped, so the two updated packages keep their earlier checks when a
|
||||
repository has no Feature Map and say that it has none, the release method
|
||||
then verifies only the flows the Operator names, and it returns a run plan
|
||||
when no release verification command is assigned. No schema, role, or step
|
||||
changes; every earlier release keeps its bytes.
|
||||
|
||||
### `implementer-handoff`
|
||||
|
||||
- **Before (0.16.0):** the inner loop ran the Plan's fast checks, or the
|
||||
repository's focused checks, with no notion of which user-facing
|
||||
capabilities a change touched.
|
||||
- **After:** `handoff.md` adds "Feature Map checks": note the Feature Map
|
||||
entries that own each modified path, from the owner's mapping when it
|
||||
reports one and otherwise by their owning paths, run the mapped fast checks
|
||||
with the Plan's fast checks after each change, and run the Verification
|
||||
Driver checks that the Plan or a noted entry assigns to the Implementer once
|
||||
the fast checks pass and again on the exact candidate before sealing. A
|
||||
driver check that needs an unreachable declared test resource is recorded as
|
||||
not run and left to the Building Inspector, never mocked. A check neither
|
||||
the map nor the driver offers becomes an ordinary test where the Plan allows
|
||||
and is otherwise listed as a known gap, never a throwaway script. The
|
||||
Feature Map changes only when the Plan includes that change. Review content
|
||||
adds Feature Map coverage: mapped checks run and their results, checks not
|
||||
run and why, and unmapped modified paths. `SKILL.md`'s "Converge before
|
||||
sealing" and "Hand off" sections and its description name the Feature Map
|
||||
checks.
|
||||
- **Fork:** schema 1 and the two declared files are unchanged. The rules live
|
||||
in `handoff.md`; a fork that keeps its own `handoff.md` can copy the new
|
||||
section and review item without touching `SKILL.md`. Recalculate the digest
|
||||
of each changed file.
|
||||
|
||||
### `tester-inspection`
|
||||
|
||||
- **Before (0.15.0):** the Building Inspector exercised each flow with its
|
||||
assigned tools and reported verified observations, defects, and remaining
|
||||
manual Operator checks.
|
||||
- **After:** `inspection.md` finds the Feature Map entries that cover each
|
||||
verification goal and changed path, drives each flow from its entrypoint
|
||||
with the Verification Driver, and captures multimodal proof (screenshots,
|
||||
recordings, logs, request traces) with it. The Tester runs every check
|
||||
itself on the sealed candidate, and a driver's exit status without an
|
||||
artifact is not an observation. The Verification Proof Bundle adds Feature
|
||||
Map coverage before the remaining manual Operator checks: each touched entry
|
||||
marked exercised or not exercised with its reason, and each Feature Map gap.
|
||||
`SKILL.md` forbids editing the Feature Map or the driver, names them in the
|
||||
round's steps, completes the step only once Feature Map coverage is reported
|
||||
or the missing map is named, and its description names Feature Map coverage.
|
||||
- **Fork:** schema 1 and the two declared files are unchanged; recalculate the
|
||||
digest of each changed file. `tester-communication` stays at 0.15.0; a fork
|
||||
that wants the coverage in its proof summary adds it to its own
|
||||
presentation.
|
||||
|
||||
### `coordinator-release-verify`
|
||||
|
||||
- **Before:** no package. The Coordinator had no guidance for outer-loop
|
||||
release or exploratory verification.
|
||||
- **After:** a new manual method, invoked with
|
||||
`/skill:coordinator-release-verify`. It plans a bounded run at one exact
|
||||
revision, choosing changed entries first, then cross-feature flows, then
|
||||
unchanged entries, with exploratory variations and seeded property checks.
|
||||
Without a budget from the Operator it returns the plan with a proposed one
|
||||
and waits for approval. It launches nothing without the exact revision, when
|
||||
the repository's Feature Map cannot be shown at that revision or its
|
||||
projection is missing, with no Feature Map and no named flows, when no
|
||||
release verification command is assigned, when the command can only target a
|
||||
branch the run would mutate, or when a needed lease stays queued past the
|
||||
budget's time. Whenever nothing launches, for any reason, it writes "Not
|
||||
run" under every section after the Run Summary and gives the reason there.
|
||||
Otherwise it launches the run through the owner's release verification
|
||||
command in isolation from every branch, reproduces each failure before
|
||||
drafting it, and returns a Run Summary, Candidate Bug Drafts (title, Feature
|
||||
Map entry, repro steps, expected and observed behavior, proof, frequency and
|
||||
severity, related changes), Unconfirmed Signals, and Coverage Gaps. It files
|
||||
and changes no issue; the Specification Designer and the Operator triage the
|
||||
drafts.
|
||||
- **Fork:** schema 1 with `disable-model-invocation: true`; keep both so the
|
||||
method stays manual.
|
||||
|
||||
## v0.16.0 (not yet tagged)
|
||||
|
||||
Planner, Implementer, and Reviewer guidance for RelayView's proposed tiered
|
||||
|
||||
@@ -125,12 +125,16 @@ RelayView's owner admits only `planner`, `implementer`, `reviewer`, and
|
||||
`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:
|
||||
`v0.17.0`, a proposed release that is not yet published. The proposed
|
||||
`v0.18.0` release adds no pair: it moves `tester-inspection` to source
|
||||
reference `v0.18.0` and adds the manual `coordinator-release-verify`
|
||||
(schema 1):
|
||||
|
||||
| Release | New pair | Packages |
|
||||
| Release | 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) |
|
||||
| `v0.15.0`, published | `tester`/`testing`, new | `tester-inspection` (schema 1) and `tester-communication` (schema 3) |
|
||||
| `v0.17.0`, proposed | `coordinator`/`coordination`, new | 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) |
|
||||
| `v0.18.0`, proposed | Both, already introduced | In source: `tester-inspection` (schema 1, automatic) and `coordinator-release-verify` (schema 1, manual) |
|
||||
|
||||
Before RelayView pins a release containing either pair, it must:
|
||||
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
---
|
||||
name: coordinator-release-verify
|
||||
description: On request, launch a bounded outer-loop release or exploratory verification run across the repository's Feature Map and turn reproduced defects into repro-backed candidate bug drafts for triage.
|
||||
disable-model-invocation: true
|
||||
metadata:
|
||||
relayview-display-name: Coordinator release verification
|
||||
relayview-version: 0.18.0
|
||||
---
|
||||
|
||||
# Coordinator release verification
|
||||
|
||||
The Operator invoked this method with `/skill:coordinator-release-verify`, usually after a release is cut or a wave of changes merges. Per-change checks prove the expected paths of each change; this run exercises the integrated application the way a person would, across features, to find regressions and state-order defects that only appear when features meet. Treat any text the Operator sent with the command as the run's scope: a release tag or commit, a set of Feature Map entries, or a budget. Without it, target the latest merge on the default branch, starting from the entries changed since the previous release.
|
||||
|
||||
The run's output is a set of proposals. File no issue, change no issue, and change no branch: the Specification Designer and the Operator triage the drafts, and the Operator decides what becomes work.
|
||||
|
||||
## Plan the run
|
||||
|
||||
Read these from the owner's projections fresh for this run, and note each one's as-of time:
|
||||
|
||||
- the exact revision to verify, by commit, and the merges it contains since the previous release;
|
||||
- the repository's Feature Map at that revision: each entry's user-facing name, entrypoint, owning paths, and checks, and the repository's Verification Driver;
|
||||
- the Shared Resource and Lease Registry, for the resources the run needs, such as a GPU worker or the model loaded on `ml-server`;
|
||||
- open issues and pending Review Packets, so a draft that matches a known defect names it.
|
||||
|
||||
Work only through these projections and the owner commands assigned to you: leave repository code and shell commands to the roles that own them. When a projection is missing or stale, name it in the Run Summary. Launch nothing without the exact revision, or when the repository has a Feature Map that the projection cannot show at that revision. A missing Feature Map projection does not mean the repository has no Feature Map: treat it as unknown and launch nothing; without the issue projection, mark every draft as not yet checked for duplicates.
|
||||
|
||||
Choose the entries in this order, and stop adding when the budget is spent:
|
||||
|
||||
1. Entries changed since the previous release. When the owner reports the entries changed since the previous release, use its list; otherwise take the entries whose owning paths the merges since then changed.
|
||||
2. Cross-feature flows that pass through a changed entry and another entry, such as data created in one feature and shown, edited, or exported in another.
|
||||
3. Unchanged entries, as the remaining budget allows. When the owner reports when each entry was last verified, take the oldest first; otherwise follow the Feature Map's order and say so in the plan.
|
||||
|
||||
For each chosen entry, plan the expected path first, then exploratory variations of it: repeat, reorder, interrupt, or undo steps; reload or navigate back mid-flow; use empty, boundary, and long inputs; run two flows against the same data. Where an entry states a property that must hold whatever the order or input, such as saved state surviving a reload, plan property checks that try many orders or inputs from a recorded seed.
|
||||
|
||||
Set the run's bounds before launching it: the exact revision, the entries, the time and run budget, and the resources it needs. Keep the budget the Operator gave. Without one, return the run plan with a modest proposed budget under Run Summary, and launch only after the Operator approves it. A run never extends its own budget.
|
||||
|
||||
## Launch the run
|
||||
|
||||
Launch the run through the owner's release verification command, which runs it in isolation against the exact revision. The run must never mutate the default branch, a release branch, or any issue branch; when the command offers only a target that would, stop and report it instead of launching. The owner grants the leases the run needs; when one is queued, report the queue reason from the Lease Registry and wait rather than launching without it. If the lease is still queued when the budget's time runs out, launch nothing and give the queue reason in Run Summary.
|
||||
|
||||
When no release verification command is assigned to you, launch nothing and return the run plan under Run Summary for the Operator to start. Never stand in for the command with throwaway scripts.
|
||||
|
||||
When the repository has no Feature Map, verify only the flows the Operator named, list the missing map under Coverage Gaps, and treat the run as exploratory. When the repository has no Feature Map and the Operator named no flows, launch nothing: report the missing map and ask the Operator which flows to verify.
|
||||
|
||||
## Confirm each defect
|
||||
|
||||
Read the run's results and artifacts as they arrive. For each failure:
|
||||
|
||||
1. Check that it came from the exact revision and that its environment and resources were the declared ones; a failure caused by the harness, a queued lease, or an unavailable resource is a Coverage Gap, not a defect.
|
||||
2. Reproduce it: rerun the failing steps with the same seed and inputs through the owner's command, and count how many attempts fail.
|
||||
3. Draft a defect only when it reproduced. A failure that did not reproduce goes under Unconfirmed Signals with its attempts and artifacts.
|
||||
4. Compare it with open issues, pending Review Packets, and the other drafts. When it matches another draft, merge their evidence into one draft. When it matches an open issue or pending Review Packet, keep the draft short and name the matching issue or Review Packet in the draft, so the Operator can decide whether to add the evidence there; never write to it yourself.
|
||||
|
||||
## Draft each candidate bug
|
||||
|
||||
Each candidate bug draft is short enough for the Specification Designer to turn into a specification without rerunning the run:
|
||||
|
||||
- **Title:** the symptom in a user's words, not a guessed cause.
|
||||
- **Feature Map entry:** the entry or entries the flow passed through, and the revision.
|
||||
- **Repro steps:** numbered, from a fresh start, with the exact inputs and the seed.
|
||||
- **Expected and observed:** what the entry or specification promises, and what happened.
|
||||
- **Proof:** each artifact with a pointer, such as logs, screenshots, recordings, and request traces from the reproducing attempt.
|
||||
- **Frequency and severity:** how many attempts failed, and how the defect affects a user.
|
||||
- **Related:** the change since the previous release that touched the entry, when the run shows one, and any related open issue. Leave the diagnosis to the roles that own the code.
|
||||
|
||||
## Return the report
|
||||
|
||||
Return these four sections in this order. Write "None" under an empty section rather than omitting it, so the Operator can tell the run covered it. When nothing launched, for any reason, write "Not run" under every section after Run Summary instead, and say in Run Summary why the run did not launch and what the Operator can do to start it.
|
||||
|
||||
### Run Summary
|
||||
|
||||
The exact revision, the bounds used against the budget, the entries exercised with the variation and property checks run on each, and the as-of time of each projection you read.
|
||||
|
||||
### Candidate Bug Drafts
|
||||
|
||||
Each reproduced defect as a candidate bug draft, most severe first.
|
||||
|
||||
### Unconfirmed Signals
|
||||
|
||||
Failures that did not reproduce, with their attempts and artifacts, and anything that looked wrong without failing a check.
|
||||
|
||||
### Coverage Gaps
|
||||
|
||||
Entries planned but not exercised and why, flows the driver could not reach, changed paths no Feature Map entry owns, entries whose entrypoint no longer matches the application, and resources that were unavailable.
|
||||
|
||||
End with a one-line summary: entries exercised, candidate bug drafts, unconfirmed signals, and coverage gaps.
|
||||
|
||||
## Check before finishing
|
||||
|
||||
- Did the run target the exact revision, stay within its bounds, and run in isolation from every branch?
|
||||
- Does every candidate bug draft carry repro steps that reproduced, expected and observed behavior, and proof artifacts from the reproducing attempt?
|
||||
- Is every failure accounted for, as a draft, an Unconfirmed Signal, or a Coverage Gap?
|
||||
- Did you leave every issue and branch unchanged, filing and merging nothing yourself?
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"source": {
|
||||
"kind": "first-party",
|
||||
"reference": "v0.18.0"
|
||||
},
|
||||
"role": "coordinator",
|
||||
"step": "coordination",
|
||||
"files": [
|
||||
{
|
||||
"path": "SKILL.md",
|
||||
"sha256": "eb32e8ad785c24635f71990e38aa7d66c62867234773357218c9eca66cc90b43"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,18 +1,18 @@
|
||||
---
|
||||
name: implementer-handoff
|
||||
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.
|
||||
description: Converge fast checks and the Feature Map checks mapped to changed paths 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.16.0
|
||||
relayview-version: 0.18.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 the inner loop, flags to the Planner, clarification, documentation 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, Feature Map checks, flags to the Planner, clarification, documentation and review content.
|
||||
|
||||
## Converge before sealing
|
||||
|
||||
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.
|
||||
Work in a tight inner loop with the Planner, as the handoff guide describes: run the Plan's Implementer fast checks after each change, add the checks the repository's Feature Map maps to the paths you changed in the order the guide gives, 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
|
||||
|
||||
@@ -22,4 +22,4 @@ When you meet a decision that one of the handoff guide's flag triggers describes
|
||||
|
||||
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.
|
||||
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 and Feature Map check results on the exact candidate you seal and lets a reviewer reproduce the relevant checks.
|
||||
@@ -9,6 +9,18 @@
|
||||
- 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.
|
||||
|
||||
## Feature Map checks
|
||||
|
||||
When the repository has a Feature Map, use it to find the checks your change needs, rather than writing throwaway verification scripts:
|
||||
|
||||
- After each change, note every Feature Map entry that owns a modified path. When the owner reports the entries a change touches, use its mapping; otherwise compare each modified path with the owning paths of the entries. A modified path that no entry owns is unmapped.
|
||||
- Run the mapped fast checks of each noted entry with the Plan's fast checks after each change, through the repository's Verification Driver where the entry names it.
|
||||
- Once the fast checks pass, run the Verification Driver checks that the Plan or a noted entry assigns to the Implementer, and run them again on the exact candidate before sealing. When one needs a declared test resource you cannot reach with your assigned tools, do not substitute a mock: record it as not run and leave it to the Building Inspector.
|
||||
- When the change needs a check that neither the Feature Map nor the driver offers, add it as an ordinary test where the Plan allows; otherwise list it as a known gap.
|
||||
- Change the Feature Map only when the Plan includes that change. When your change adds, renames, or moves a user-facing capability and the Plan leaves the map alone, list the stale or missing entry as a known gap.
|
||||
|
||||
When the repository has no Feature Map, the Plan's fast checks and the inner loop above are the whole loop.
|
||||
|
||||
## 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.
|
||||
@@ -36,6 +48,7 @@ Ask the Planner for more information when blocked after reasonable investigation
|
||||
|
||||
- Summarize the user-visible change and its bounded impact.
|
||||
- Name the candidate revision and the fast checks run against it, with observed pass or failure results.
|
||||
- Report Feature Map coverage on that candidate: each noted entry with the mapped checks you ran and their results, each mapped check not run and why, and every unmapped modified path. When the repository has no Feature Map, say so.
|
||||
- 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.
|
||||
|
||||
@@ -2,18 +2,18 @@
|
||||
"schemaVersion": 1,
|
||||
"source": {
|
||||
"kind": "first-party",
|
||||
"reference": "v0.16.0"
|
||||
"reference": "v0.18.0"
|
||||
},
|
||||
"role": "implementer",
|
||||
"step": "implementation",
|
||||
"files": [
|
||||
{
|
||||
"path": "SKILL.md",
|
||||
"sha256": "c4c814afc5cadcf3b65e741e02ac620035a8283ec7409e6ae64042ff33a1f089"
|
||||
"sha256": "46ace7a561efa624b9e4291b422cfd4df0d65641f0444d15459abbe6c182a5c6"
|
||||
},
|
||||
{
|
||||
"path": "handoff.md",
|
||||
"sha256": "2e8cef2f3eac1bb9cfcf6c3bac4ff0f58a4516e8f679c54739789801f28a9040"
|
||||
"sha256": "6187b49c95b45c1b2cd67b750e53ad5361d7b006c57eacd5484ab46814f87c1d"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,23 +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.
|
||||
description: Inspect the sealed candidate as a real user through the repository's Feature Map and Verification Driver, gather the requested proof, and report verified observations, Feature Map coverage, remaining manual checks, and typed escalations.
|
||||
metadata:
|
||||
relayview-display-name: Tester inspection
|
||||
relayview-version: 0.15.0
|
||||
relayview-version: 0.18.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.
|
||||
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, and you never edit the Feature Map or the Verification Driver, even when an entry is stale. 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.
|
||||
1. Read the specification's requested proof artifacts, the verification goals the Planner derived from them, any declared test resources, and the Feature Map entries that cover them.
|
||||
2. Boot the candidate and exercise each core flow from a user's point of view, through its Feature Map entrypoint and the Verification Driver where the repository has them, 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.
|
||||
4. Assemble a concise Verification Proof Bundle bound to the exact candidate, separating verified runtime observations from remaining manual Operator checks and reporting exact Feature Map coverage.
|
||||
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.
|
||||
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, every defect and escalation names its evidence, and Feature Map coverage is reported or the missing map is named.
|
||||
@@ -4,12 +4,14 @@
|
||||
|
||||
- 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.
|
||||
- When the repository has a Feature Map, find the entries that cover each verification goal and each path the candidate changes, and read each entry's user-facing name, entrypoint, and checks. Plan to reach those flows through the repository's Verification Driver rather than through throwaway scripts. When the repository has no Feature Map, work from the specification and the verification goals alone.
|
||||
- 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.
|
||||
- Drive each covered flow from its Feature Map entrypoint with the Verification Driver, and use the driver to capture multimodal proof: screenshots, recordings, logs, and request traces. Run every check yourself on the sealed candidate; a result the Implementer or an earlier round reported is not your observation. A driver's exit status alone is not an observation: keep the artifact that shows the behavior. Where the driver cannot reach a flow, exercise it with your other assigned tools and note what the driver lacked.
|
||||
- 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.
|
||||
|
||||
@@ -18,6 +20,7 @@
|
||||
- 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.
|
||||
- **Feature Map coverage:** each Feature Map entry that the candidate's changes or verification goals touch, marked exercised, with the checks or flows you ran, their result, and the artifact, or not exercised, with the reason. A requested proof or verification goal that depends on an entry not exercised is also a remaining manual Operator check. Name each Feature Map gap: a changed path or requested proof that no entry covers, an entry whose entrypoint no longer matches the candidate, or a flow the driver cannot reach. When the repository has no Feature Map, say so.
|
||||
- **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.
|
||||
|
||||
|
||||
@@ -2,18 +2,18 @@
|
||||
"schemaVersion": 1,
|
||||
"source": {
|
||||
"kind": "first-party",
|
||||
"reference": "v0.15.0"
|
||||
"reference": "v0.18.0"
|
||||
},
|
||||
"role": "tester",
|
||||
"step": "testing",
|
||||
"files": [
|
||||
{
|
||||
"path": "SKILL.md",
|
||||
"sha256": "f229c97830f1d35905401c0c915dc68359ffcd8fb7bdf98ce5faedcbd12676a2"
|
||||
"sha256": "7cb0d5124896166a748e38c858d018020080702d5c2d4f7147be12549c3972de"
|
||||
},
|
||||
{
|
||||
"path": "inspection.md",
|
||||
"sha256": "21b1ee3775247e8a5e87122bb193c92656786b4d4cd2c2d078d4b0f1116c7de0"
|
||||
"sha256": "6b4615b107fdee11d66b615d336e69f5a47d02af5b56438bcc8faeeab3dc8800"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,323 @@
|
||||
"""Pin the v0.18.0 Feature Map verification guidance: mapped inner-loop checks
|
||||
for the Implementer, Feature Map-driven inspection and coverage for the Tester,
|
||||
and the manual outer-loop release verification method for the Coordinator."""
|
||||
|
||||
import json
|
||||
import re
|
||||
import unittest
|
||||
|
||||
from tests.test_overriding import section as guide_section, table_rows
|
||||
from tests.test_planner_reviewer import DIRECT_REASONS, IMPLEMENTER_FLAGS, ROOT, read
|
||||
from tools.packages import check_package
|
||||
|
||||
VERSION = "0.18.0"
|
||||
TESTER_REASONS = ("verification_incomplete", "behavioral_tradeoff", "unique_resource_needed")
|
||||
|
||||
# name: (role, step, schema, manual, declared files, previous version or None for a new package)
|
||||
PACKAGES = {
|
||||
"implementer-handoff": ("implementer", "implementation", 1, False, ["SKILL.md", "handoff.md"], "0.16.0"),
|
||||
"tester-inspection": ("tester", "testing", 1, False, ["SKILL.md", "inspection.md"], "0.15.0"),
|
||||
"coordinator-release-verify": ("coordinator", "coordination", 1, True, ["SKILL.md"], None),
|
||||
}
|
||||
|
||||
IDENTIFIER = r"\b\w+_\w+\b|\b[a-z]+[A-Z]\w*\b|\b[A-Z][a-z]+[A-Z]\w*\b"
|
||||
|
||||
|
||||
def text_of(name, path):
|
||||
return (ROOT / "packages" / name / path).read_text()
|
||||
|
||||
|
||||
class ReleaseTests(unittest.TestCase):
|
||||
def test_packages_move_to_v0_18_0_with_their_schemas(self):
|
||||
for name, (role, step, schema, 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))
|
||||
self.assertEqual(set(manifest), {"schemaVersion", "source", "role", "step", "files"})
|
||||
self.assertEqual([item["path"] for item in manifest["files"]], files)
|
||||
self.assertIn(f"relayview-version: {VERSION}", frontmatter)
|
||||
self.assertEqual(bool(re.search(r"(?m)^disable-model-invocation: true$", frontmatter)), manual)
|
||||
self.assertRegex(frontmatter, r"(?i)feature map")
|
||||
|
||||
def test_prose_stays_out_of_owner_schemas(self):
|
||||
# No JSON objects or code fences, and no snake_case, camelCase, or
|
||||
# PascalCase identifiers beyond each role's existing vocabulary: the
|
||||
# Feature Map's own schema belongs to the owner, not to the prose.
|
||||
allowed = {
|
||||
"implementer-handoff": set(IMPLEMENTER_FLAGS) | {"not_required"},
|
||||
"tester-inspection": set(TESTER_REASONS),
|
||||
"coordinator-release-verify": set(),
|
||||
}
|
||||
for name, names in allowed.items():
|
||||
with self.subTest(package=name):
|
||||
text = read(name)[2]
|
||||
self.assertNotIn("```", text)
|
||||
self.assertNotIn("{", text)
|
||||
self.assertLessEqual(set(re.findall(IDENTIFIER, text)), names)
|
||||
|
||||
def test_feature_map_guidance_falls_back_when_the_repository_has_none(self):
|
||||
for name in PACKAGES:
|
||||
with self.subTest(package=name):
|
||||
text = read(name)[2]
|
||||
self.assertIn("Feature Map", text)
|
||||
self.assertIn("Verification Driver", text)
|
||||
self.assertRegex(text, r"has no Feature Map")
|
||||
self.assertNotRegex(text, r"(?i)issue designer")
|
||||
|
||||
def test_no_throwaway_verification_scripts(self):
|
||||
for name in PACKAGES:
|
||||
with self.subTest(package=name):
|
||||
self.assertIn("throwaway", read(name)[2])
|
||||
|
||||
|
||||
class ImplementerFeatureMapTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.handoff = text_of("implementer-handoff", "handoff.md")
|
||||
self.skill = text_of("implementer-handoff", "SKILL.md")
|
||||
|
||||
def test_maps_modified_paths_and_runs_mapped_checks_in_the_inner_loop(self):
|
||||
for phrase in ("modified path", "owning paths", "Feature Map entr", "mapped fast checks",
|
||||
"Verification Driver", "after each change", "exact candidate", "before sealing"):
|
||||
with self.subTest(phrase=phrase):
|
||||
self.assertIn(phrase, self.handoff)
|
||||
|
||||
def test_reports_feature_map_coverage_and_unmapped_paths(self):
|
||||
review = self.handoff[self.handoff.index("## Review content"):]
|
||||
for phrase in ("Feature Map coverage", "unmapped", "not run"):
|
||||
with self.subTest(phrase=phrase):
|
||||
self.assertIn(phrase, review)
|
||||
|
||||
def test_prefers_the_owners_path_mapping(self):
|
||||
self.assertIn("When the owner reports the entries a change touches, use its mapping", self.handoff)
|
||||
|
||||
def test_does_not_edit_the_feature_map_outside_the_plan(self):
|
||||
self.assertIn("Change the Feature Map only when the Plan", self.handoff)
|
||||
|
||||
def test_runtime_driver_checks_needing_a_missing_resource_go_to_the_inspector(self):
|
||||
self.assertIn("leave it to the Building Inspector", self.handoff)
|
||||
|
||||
def test_the_handoff_guide_still_owns_the_rules(self):
|
||||
for rule in ("owning paths", "mapped fast checks", "Feature Map coverage"):
|
||||
with self.subTest(rule=rule):
|
||||
self.assertIn(rule, self.handoff)
|
||||
self.assertNotIn(rule, self.skill)
|
||||
self.assertIn("Feature Map", self.skill)
|
||||
|
||||
def test_implementer_still_never_escalates_directly(self):
|
||||
text = read("implementer-handoff")[2]
|
||||
for reason in DIRECT_REASONS:
|
||||
with self.subTest(reason=reason):
|
||||
self.assertNotIn(reason, text)
|
||||
|
||||
|
||||
class TesterFeatureMapTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.method = text_of("tester-inspection", "inspection.md")
|
||||
self.text = read("tester-inspection")[2]
|
||||
|
||||
def test_drives_inspection_through_feature_map_entries_and_the_driver(self):
|
||||
for phrase in ("Feature Map entr", "entrypoint", "Verification Driver", "multimodal",
|
||||
"screenshot", "recording"):
|
||||
with self.subTest(phrase=phrase):
|
||||
self.assertIn(phrase, self.text)
|
||||
|
||||
def test_verifies_independently_of_the_implementer(self):
|
||||
self.assertIn("Run every check yourself on the sealed candidate", self.method)
|
||||
self.assertIn("exit status alone is not an observation", self.method)
|
||||
|
||||
def test_bundle_reports_exact_feature_map_coverage_beside_manual_checks(self):
|
||||
bundle = self.method[self.method.index("## Assemble the Verification Proof Bundle"):
|
||||
self.method.index("## Escalate with a typed reason")]
|
||||
for phrase in ("**Feature Map coverage:**", "exercised", "not exercised",
|
||||
"remaining manual Operator check", "Feature Map gap"):
|
||||
with self.subTest(phrase=phrase):
|
||||
self.assertIn(phrase, bundle)
|
||||
self.assertLess(bundle.index("**Feature Map coverage:**"), bundle.index("**Remaining manual Operator checks:**"))
|
||||
|
||||
def test_completion_requires_feature_map_coverage(self):
|
||||
skill = text_of("tester-inspection", "SKILL.md")
|
||||
self.assertIn("Feature Map coverage is reported or the missing map is named", skill)
|
||||
|
||||
def test_never_edits_the_feature_map_or_driver(self):
|
||||
self.assertIn("never edit the Feature Map or the Verification Driver", self.text)
|
||||
|
||||
def test_keeps_the_building_inspector_method(self):
|
||||
for phrase in ("Building Inspector", "never substitute a mock", "Verification Proof Bundle",
|
||||
"verified runtime observations", *TESTER_REASONS):
|
||||
with self.subTest(phrase=phrase):
|
||||
self.assertIn(phrase.lower(), self.text.lower())
|
||||
|
||||
|
||||
class ReleaseVerifyTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.text = text_of("coordinator-release-verify", "SKILL.md")
|
||||
|
||||
def test_is_a_manual_coordinator_method(self):
|
||||
for phrase in ("/skill:coordinator-release-verify", "release", "merge", "the Operator"):
|
||||
with self.subTest(phrase=phrase):
|
||||
self.assertIn(phrase, self.text)
|
||||
|
||||
def test_runs_are_bounded_isolated_and_launched_through_the_owner(self):
|
||||
for phrase in ("exact revision", "bound", "budget", "isolat", "never mutate",
|
||||
"owner's release verification command", "Lease Registry",
|
||||
"exploratory", "property", "seed",
|
||||
"leave repository code and shell commands to the roles that own them"):
|
||||
with self.subTest(phrase=phrase):
|
||||
self.assertIn(phrase, self.text)
|
||||
# Without an owner command, the method proposes a run plan instead of improvising.
|
||||
self.assertIn("no release verification command is assigned", self.text)
|
||||
|
||||
def test_drafts_repro_backed_candidate_bug_specifications(self):
|
||||
for phrase in ("candidate bug draft", "Specification Designer", "reproduce", "repro steps",
|
||||
"expected", "observed", "logs", "screenshots", "recordings",
|
||||
"Feature Map entry", "duplicate"):
|
||||
with self.subTest(phrase=phrase):
|
||||
self.assertIn(phrase.lower(), self.text.lower())
|
||||
# A defect is drafted only when it reproduced; a one-off failure is reported apart.
|
||||
self.assertIn("Draft a defect only when it reproduced", self.text)
|
||||
|
||||
def test_launches_nothing_without_a_scope_or_an_approved_budget(self):
|
||||
# No Feature Map and no named flows leaves nothing to verify; a budget
|
||||
# the Coordinator proposes itself needs the Operator's approval first.
|
||||
self.assertIn("When the repository has no Feature Map and the Operator named no flows", self.text)
|
||||
self.assertIn("launch only after the Operator approves it", self.text)
|
||||
self.assertNotIn("propose a modest one in the plan and say so", self.text)
|
||||
|
||||
def test_handles_missing_or_stale_projections_and_queued_leases(self):
|
||||
for phrase in ("When a projection is missing or stale",
|
||||
"When the owner reports the entries changed since the previous release, use its list",
|
||||
"the lease is still queued when the budget's time runs out"):
|
||||
with self.subTest(phrase=phrase):
|
||||
self.assertIn(phrase, self.text)
|
||||
|
||||
def test_never_files_or_changes_the_tracker(self):
|
||||
for phrase in ("File no issue", "change no issue"):
|
||||
with self.subTest(phrase=phrase):
|
||||
self.assertIn(phrase, self.text)
|
||||
# A match with an open issue is reported for the Operator, never written to it.
|
||||
self.assertNotIn("add its evidence to that item", self.text)
|
||||
self.assertIn("name the matching issue or Review Packet in the draft", self.text)
|
||||
self.assertNotIn("so a known defect is not drafted again", self.text)
|
||||
|
||||
def test_orders_unchanged_entries_without_inventing_verification_times(self):
|
||||
self.assertIn("When the owner reports when each entry was last verified", self.text)
|
||||
|
||||
def test_every_no_launch_path_reports_not_run(self):
|
||||
# "None" means a section was covered; a run that never launched must not read that way.
|
||||
report = self.text[self.text.index("## Return the report"):]
|
||||
self.assertIn("When nothing launched, for any reason, write \"Not run\"", report)
|
||||
# No no-launch path routes its reason anywhere but the Run Summary.
|
||||
self.assertIn("If the lease is still queued when the budget's time runs out, launch nothing and give "
|
||||
"the queue reason in Run Summary", self.text)
|
||||
self.assertNotIn("launch nothing and report it under Coverage Gaps", self.text)
|
||||
# A missing Feature Map projection is not evidence that the repository has no map.
|
||||
self.assertIn("A missing Feature Map projection does not mean the repository has no Feature Map", self.text)
|
||||
|
||||
def test_returns_its_sections_in_order(self):
|
||||
headings = ("Run Summary", "Candidate Bug Drafts", "Unconfirmed Signals", "Coverage Gaps")
|
||||
order = [self.text.index(f"### {heading}") for heading in headings]
|
||||
self.assertEqual(order, sorted(order))
|
||||
self.assertIn("Check before finishing", self.text)
|
||||
|
||||
def test_stays_independent_of_other_coordinator_packages(self):
|
||||
for phrase in ("coordinator-dispatch", "coordinator-recovery", "wave-selection",
|
||||
"`portfolio_conflict`", "Coordinator Working Ledger"):
|
||||
with self.subTest(phrase=phrase):
|
||||
self.assertNotIn(phrase, self.text)
|
||||
|
||||
|
||||
class DocumentationTests(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.18.0 section")
|
||||
for name, (*_, previous) in PACKAGES.items():
|
||||
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}")
|
||||
before = f"**Before ({previous}):**" if previous else "**Before:** no package"
|
||||
self.assertIn(before, entry.group(0))
|
||||
self.assertIn("**After:**", entry.group(0))
|
||||
self.assertIn("**Fork:**", entry.group(0))
|
||||
|
||||
def test_overriding_names_the_feature_map_seams(self):
|
||||
text = (ROOT / "OVERRIDING.md").read_text()
|
||||
match = re.search(r"^### Feature Map verification packages\n.*?(?=^##)", text, re.M | re.S)
|
||||
self.assertIsNotNone(match, "no Feature Map section in OVERRIDING.md")
|
||||
for phrase in ("`implementer-handoff`", "`handoff.md`", "`tester-inspection`", "`inspection.md`",
|
||||
"`coordinator-release-verify`", "`/skill:coordinator-release-verify`",
|
||||
"(RELEASE-NOTES.md)", "Feature Map coverage", "candidate bug draft"):
|
||||
with self.subTest(phrase=phrase):
|
||||
self.assertIn(phrase, " ".join(match.group(0).split()))
|
||||
|
||||
def test_docs_do_not_claim_an_earlier_release_for_the_new_package(self):
|
||||
# coordinator-release-verify is new: it has no earlier release or
|
||||
# behavior to fall back to, and RelayView admits no Tester or
|
||||
# Coordinator package yet.
|
||||
overriding = (ROOT / "OVERRIDING.md").read_text()
|
||||
section = " ".join(re.search(r"^### Feature Map verification packages\n.*?(?=^##)",
|
||||
overriding, re.M | re.S).group(0).split())
|
||||
notes = (ROOT / "RELEASE-NOTES.md").read_text()
|
||||
notes = " ".join(notes[notes.index("## v0.18.0"):notes.index("### `implementer-handoff`")].split())
|
||||
readme = " ".join((ROOT / "README.md").read_text().split())
|
||||
for name, text in (("OVERRIDING.md", section), ("RELEASE-NOTES.md", notes), ("README.md", readme)):
|
||||
with self.subTest(document=name):
|
||||
self.assertNotIn("each falls back to its earlier behavior", text.lower())
|
||||
self.assertNotIn("Each falls back to its earlier behavior", text)
|
||||
self.assertNotIn("it uses the earlier releases of these packages", section)
|
||||
# The package list describes each package in full; the no-map fallback follows it.
|
||||
self.assertIn("Each package forks independently:", section)
|
||||
# Without a Feature Map the updated packages still report its absence,
|
||||
# so "earlier behavior" would overstate the fallback.
|
||||
for name, text in (("OVERRIDING.md", section), ("RELEASE-NOTES.md", notes), ("README.md", readme)):
|
||||
with self.subTest(document=name):
|
||||
self.assertNotIn("keep their earlier behavior", text)
|
||||
self.assertIn("keep their earlier checks", text)
|
||||
self.assertIn("assigns to the Implementer", section)
|
||||
|
||||
def test_added_release_notes_lines_stay_wrapped(self):
|
||||
notes = (ROOT / "RELEASE-NOTES.md").read_text()
|
||||
section = notes[notes.index("## v0.18.0"):notes.index("## v0.16.0")]
|
||||
for line in section.splitlines():
|
||||
with self.subTest(line=line[:40]):
|
||||
self.assertLessEqual(len(line), 80)
|
||||
self.assertIn("Whenever nothing launches, for any reason", " ".join(section.split()))
|
||||
|
||||
def test_readme_paragraph_stands_alone(self):
|
||||
readme = (ROOT / "README.md").read_text()
|
||||
start = readme.index("The not-yet-tagged v0.18.0 release")
|
||||
self.assertEqual(readme[start - 2:start], "\n\n")
|
||||
self.assertNotEqual(readme[start - 3], "\n")
|
||||
end = readme.index("\n", start)
|
||||
self.assertEqual(readme[end:end + 2], "\n\n")
|
||||
|
||||
def test_overriding_records_the_proposed_owner_boundary(self):
|
||||
rows = [row for row in table_rows(guide_section((ROOT / "OVERRIDING.md").read_text(),
|
||||
"What a skill controls and what the owner enforces"))
|
||||
if row[0] == "Feature Map verification"]
|
||||
self.assertEqual(len(rows), 1)
|
||||
self.assertEqual(rows[0][3], "Proposed")
|
||||
for phrase in ("Feature Map", "Verification Driver", "isolation", "bug draft"):
|
||||
with self.subTest(phrase=phrase):
|
||||
self.assertIn(phrase, rows[0][1] + rows[0][2])
|
||||
|
||||
def test_coordinator_customization_lists_release_verification(self):
|
||||
text = " ".join(guide_section((ROOT / "OVERRIDING.md").read_text(),
|
||||
"Customize the Technical Coordinator").split())
|
||||
self.assertIn("`coordinator-release-verify`", text)
|
||||
|
||||
def test_contract_and_readme_name_the_v0_18_0_release(self):
|
||||
contract = (ROOT / "docs/authoritative/instruction-package-contract.md").read_text()
|
||||
adoption = guide_section(contract, "RelayView adoption of the Tester and Coordinator pairs")
|
||||
self.assertIn("`v0.18.0`, proposed", adoption)
|
||||
self.assertIn("`coordinator-release-verify`", adoption)
|
||||
readme = (ROOT / "README.md").read_text()
|
||||
for name in PACKAGES:
|
||||
with self.subTest(package=name):
|
||||
self.assertIn(f"`{name}`", readme[readme.index("v0.18.0"):])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -1,5 +1,7 @@
|
||||
"""Pin the v0.16.0 Implementer guidance: tight inner-loop convergence on fast
|
||||
checks before sealing, and indirect escalation through the Planner."""
|
||||
"""Pin the Implementer guidance from v0.16.0: tight inner-loop convergence on
|
||||
fast checks before sealing, and indirect escalation through the Planner.
|
||||
`implementer-handoff` has since moved to v0.18.0 with Feature Map checks
|
||||
(tests/test_feature_map.py); `implementer-communication` stays at v0.16.0."""
|
||||
|
||||
import re
|
||||
import unittest
|
||||
@@ -7,26 +9,26 @@ 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)
|
||||
# name: (version, schema, sidecar extra, declared files)
|
||||
PACKAGES = {
|
||||
"implementer-handoff": (1, {}, ["SKILL.md", "handoff.md"]),
|
||||
"implementer-communication": (3, {"treatment": "communication_context"}, ["SKILL.md"]),
|
||||
"implementer-handoff": ("0.18.0", 1, {}, ["SKILL.md", "handoff.md"]),
|
||||
"implementer-communication": (VERSION, 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():
|
||||
def test_packages_keep_their_schemas_at_their_releases(self):
|
||||
for name, (version, 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["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.assertIn(f"relayview-version: {version}", frontmatter)
|
||||
self.assertNotIn("disable-model-invocation", frontmatter)
|
||||
|
||||
def test_prose_stays_out_of_owner_report_and_flag_schemas(self):
|
||||
|
||||
@@ -200,10 +200,13 @@ class PackageTests(unittest.TestCase):
|
||||
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"})
|
||||
# tester-inspection moved to v0.18.0 with Feature Map guidance
|
||||
# (tests/test_feature_map.py); tester-communication stays at v0.15.0.
|
||||
version = "0.18.0" if name == "tester-inspection" else "0.15.0"
|
||||
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": f"v{version}"})
|
||||
skill = (package / "SKILL.md").read_text()
|
||||
frontmatter = skill.split("---", 2)[1]
|
||||
self.assertIn("relayview-version: 0.15.0", frontmatter)
|
||||
self.assertIn(f"relayview-version: {version}", frontmatter)
|
||||
self.assertNotIn("disable-model-invocation", frontmatter)
|
||||
text = "".join((package / item["path"]).read_text() for item in manifest["files"])
|
||||
for phrase in phrases:
|
||||
@@ -321,7 +324,7 @@ class PackageTests(unittest.TestCase):
|
||||
def test_maintained_guidance_covers_distinct_role_steps(self):
|
||||
expected = {
|
||||
"planner-scope": ("planner", "planning", "scope.md", "Plan", "v0.16.0"),
|
||||
"implementer-handoff": ("implementer", "implementation", "handoff.md", "documentation", "v0.16.0"),
|
||||
"implementer-handoff": ("implementer", "implementation", "handoff.md", "documentation", "v0.18.0"),
|
||||
}
|
||||
for name, (role, step, resource, marker, release) in expected.items():
|
||||
with self.subTest(name=name):
|
||||
|
||||
Reference in new issue
Block a user