diff --git a/OVERRIDING.md b/OVERRIDING.md index 868427c..a6da33a 100644 --- a/OVERRIDING.md +++ b/OVERRIDING.md @@ -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 | `specification-designer-default` | Retained at v0.13.0 for earlier sessions: `issue-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, released in v0.17.0: `coordinator-dispatch`, `coordinator-recovery`, `coordinator-communication`. Manual, released in the same release: `coordinator-wave-audit`, `coordinator-tracker-hygiene`. Manual, released in v0.18.0: `coordinator-release-verify` | +| Technical Coordinator | `coordinator` / `coordination` | 1, 3 | Yes | Not yet admitted | None | Automatic, released in v0.17.0: `coordinator-dispatch`, `coordinator-recovery`, `coordinator-communication`. Manual, also in v0.17.0: `coordinator-wave-audit`, `coordinator-tracker-hygiene`. Manual, released in v0.18.0: `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` | @@ -62,8 +62,8 @@ method, through the owner's method-entry gate. 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` +whose bytes RelayView pins for that package. When a row marks its release *not +yet tagged*, that tag is planned; 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 | diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 41932cc..7f048ed 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -93,6 +93,60 @@ changes; every earlier release keeps its bytes. - **Fork:** schema 1 with `disable-model-invocation: true`; keep both so the method stays manual. +## v0.17.0 + +Technical Coordinator guidance for RelayView's proposed `coordinator` role. +Every package is new and declares `coordinator`/`coordination`; RelayView does +not yet admit the role, and its owner keeps prerequisites, dispatch +execution, resource leases, nudge budgets and cooldowns, the Working Ledger, +and review policy. `v0.17.0` tags the same commit as `v0.16.0`, so its source +also carries the `v0.16.0` packages; this release's packages are those that +declare `v0.17.0`. Every earlier release keeps its bytes. + +### `coordinator-dispatch` + +- **Before:** no package. +- **After:** an automatic method that 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. +- **Fork:** schema 1, automatic. + +### `coordinator-recovery` + +- **Before:** no package. +- **After:** an automatic method that 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. +- **Fork:** schema 1, automatic; it forks independently of + `coordinator-dispatch`. + +### `coordinator-communication` + +- **Before:** no package. +- **After:** shapes Control Tower status reports. +- **Fork:** schema 3 with `treatment: "communication_context"`; preserve the + declaration. + +### `coordinator-wave-audit` + +- **Before:** no package. +- **After:** a manual method, invoked with `/skill:coordinator-wave-audit`, + that returns a structured wave plan for the whole Ready queue without + dispatching. +- **Fork:** schema 1 with `disable-model-invocation: true`. + +### `coordinator-tracker-hygiene` + +- **Before:** no package. +- **After:** a manual method, invoked with + `/skill:coordinator-tracker-hygiene`, that drafts prerequisite-edge and + issue-comment proposals from the contention recorded in the Working Ledger + for the Operator to approve and apply. +- **Fork:** schema 1 with `disable-model-invocation: true`. + ## v0.16.0 Planner, Implementer, and Reviewer guidance for RelayView's proposed tiered @@ -217,3 +271,57 @@ or step changes; every earlier release keeps its bytes. recommendation rather than a blocker, and no cautionary escalation when nothing needs the Operator. - **Fork:** schema 3 and `communication_context` are unchanged. + +## v0.15.0 + +Specification Designer naming and proof guidance, and the first Tester +packages. No schema changes; `issue-designer-default` keeps its `v0.13.0` +bytes for retained sessions, and every earlier release keeps its bytes. + +### `specification-designer-default` + +- **Before:** no package; `issue-designer-default` (0.13.0) was the Designer + default. +- **After:** the automatic Designer default. It guides the Operator through + requested proof artifacts, fast-test completeness, declared test resources, + and a recommended Layer B review stamp; the Operator sets the stamp. +- **Fork:** a fork of `issue-designer-default` can carry over the proof and + stamp guidance; keep schema 1 and automatic mode. + +### Designer methods + +- **Before (0.13.0):** eight manual methods with Issue Designer naming: + `designer-domain-modeling`, `designer-grilling`, `designer-prototype`, + `designer-research`, `designer-to-spec`, `designer-to-tickets`, + `designer-triage`, and `designer-wayfinder`. +- **After:** the same IDs with "Specification Designer" display names and + descriptions. Each method adds the proof decisions it touches: + `designer-to-spec` completes requested proof artifacts, fast-test + completeness, test resources, and the recommended review stamp; + `designer-to-tickets` gives each proposed issue its own; `designer-grilling` + challenges them; `designer-domain-modeling` notes whether each invariant has + a fast deterministic check; `designer-triage` notes the proof a fix needs; + `designer-wayfinder` weighs how each option changes them; and + `designer-prototype` and `designer-research` settle the facts they depend + on. +- **Fork:** schema 1 and manual mode are unchanged; each package declares + only `SKILL.md`. Recalculate its digest. + +### `tester-inspection` + +- **Before:** no package. +- **After:** the automatic 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. +- **Fork:** schema 1, automatic. RelayView admits it only after it adopts the + `tester`/`testing` pair. + +### `tester-communication` + +- **Before:** no package. +- **After:** presents the Tester's proof summary for the Review Packet + evidence-first: observed behavior, defects found, the manual-check + checklist, and any typed escalation, for one named candidate. +- **Fork:** schema 3 with `treatment: "communication_context"`; preserve the + declaration. diff --git a/docs/authoritative/instruction-package-contract.md b/docs/authoritative/instruction-package-contract.md index f7f0215..2b66883 100644 --- a/docs/authoritative/instruction-package-contract.md +++ b/docs/authoritative/instruction-package-contract.md @@ -118,9 +118,9 @@ retained sessions. A release's packages are those whose `source.reference` names its tag, and a tag may also contain packages that declare a later release. `v0.16.0` and -`v0.17.0` tag the same commit: the `v0.17.0` Coordinator packages merged -before the `v0.16.0` Planner, Implementer, and Reviewer changes. A bundle for -either tag takes only the packages that declare it. +`v0.17.0` tag the same commit, so the `v0.16.0` source also contains the +Coordinator packages that declare `v0.17.0`. A bundle for either tag takes +only the packages that declare it. ## RelayView adoption of the Tester and Coordinator pairs @@ -141,7 +141,9 @@ manual `coordinator-release-verify` (schema 1): | `v0.17.0`, published | `coordinator`/`coordination`, new | `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`, published | Both, already introduced | `tester-inspection` (schema 1, automatic) and `coordinator-release-verify` (schema 1, manual) | -Before RelayView pins a release containing either pair, it must: +RelayView bundles a subset of a release: its `v0.15.0` bundle holds only the +Designer packages, not the Tester packages that release declares. Before +RelayView bundles a package declaring 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 @@ -155,8 +157,9 @@ Before RelayView pins a release containing either pair, it must: 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//` with its - `bundle-lock.json`, and add the bundle to +4. **Pin and verify the packages.** Bundle them from the release that + declares them under `first-party-skills//` with its + `bundle-lock.json`, and verify that bundle with `scripts/verify-first-party-skills-source.py`. The identity framing, archive format, file rules, and frontmatter rules do not @@ -175,8 +178,9 @@ in `first-party-skills/v0.15.0/`, verifies it with `scripts/verify-first-party-skills-source.py`, and loads it as the current catalog: -- New Designer Chats receive `specification-designer-default` and the eight - `v0.15.0` manual methods. +- New Designer Chats receive `specification-designer-default`. The eight + `v0.15.0` manual methods are admitted, and a Designer Chat captures one only + when an Operator assigns it. - The `v0.13.0` catalog joins the retained chain, so a session that recorded `issue-designer-default` or another earlier Designer package reopens with its exact bytes. diff --git a/tests/test_release_status.py b/tests/test_release_status.py index e4eb89e..aa9c5cf 100644 --- a/tests/test_release_status.py +++ b/tests/test_release_status.py @@ -1,42 +1,41 @@ """Keep the documents' release status in step with the published tags. -A release is listed in PUBLISHED once its tag is pushed; a published tag is -never moved or rebuilt. Documents may describe a release as proposed or not -yet tagged only while it is absent from PUBLISHED.""" +Add a release to PUBLISHED when its tag is pushed; a published tag is never +moved or rebuilt. The list is written out because CI checks out a shallow +clone without tags. Documents may describe a release as proposed or not yet +tagged only while it is absent from PUBLISHED.""" import re import unittest -from pathlib import Path -from tests.test_overriding import codes, section, table_rows +from tests.test_overriding import CONTRACT, ROOT, codes, section, table_rows -ROOT = Path(__file__).resolve().parents[1] -CONTRACT = ROOT / "docs/authoritative/instruction-package-contract.md" PUBLISHED = ("v0.15.0", "v0.16.0", "v0.17.0", "v0.18.0") DOCUMENTS = ("README.md", "OVERRIDING.md", "RELEASE-NOTES.md", "docs/authoritative/instruction-package-contract.md") +# An unpublished marker within this many characters of a published tag, in +# either order, describes that tag as unpublished. +NEARBY = 40 +UNPUBLISHED = r"not[- ]yet[- ](?:tagged|published)|proposed" -def flat(path): - return " ".join((ROOT / path).read_text().split()) +def flat(text): + return " ".join(text.split()) + + +def read(path): + return flat((ROOT / path).read_text()) class ReleaseStatusTests(unittest.TestCase): def test_documents_never_call_a_published_release_unpublished(self): for document in DOCUMENTS: - text = flat(document) + text = read(document) for tag in PUBLISHED: escaped = re.escape(tag) - unpublished = ( - rf"not[- ]yet[- ]tagged `?{escaped}", - rf"`?{escaped}`?,? \(?not yet tagged", - rf"proposed `?{escaped}", - rf"`?{escaped}`?, proposed", - rf"`?{escaped}`? release and are not yet tagged", - rf"`?{escaped}`?, a proposed release", - ) - for pattern in unpublished: - with self.subTest(document=document, tag=tag, pattern=pattern): - self.assertIsNone(re.search(pattern, text, re.I)) + pattern = (rf"(?:{UNPUBLISHED})[^.;|]{{0,{NEARBY}}}{escaped}" + rf"|{escaped}[^.;|]{{0,{NEARBY}}}(?:{UNPUBLISHED})") + with self.subTest(document=document, tag=tag): + self.assertIsNone(re.search(pattern, text, re.I)) def test_package_matrix_names_published_releases_plainly(self): rows = table_rows(section((ROOT / "OVERRIDING.md").read_text(), "Package matrix")) @@ -48,18 +47,23 @@ class ReleaseStatusTests(unittest.TestCase): def test_contract_adoption_table_marks_releases_published(self): adoption = section(CONTRACT.read_text(), "RelayView adoption of the Tester and Coordinator pairs") - releases = [row[0] for row in table_rows(adoption)] - self.assertEqual(releases, ["`v0.15.0`, published", "`v0.17.0`, published", "`v0.18.0`, published"]) + for row in table_rows(adoption): + release = codes(row[0])[0] + if release in PUBLISHED: + with self.subTest(release=release): + self.assertEqual(row[0], f"`{release}`, published") def test_contract_explains_the_shared_v0_16_0_and_v0_17_0_commit(self): - releases = " ".join(section(CONTRACT.read_text(), "Releases are immutable").split()) + releases = flat(section(CONTRACT.read_text(), "Releases are immutable")) self.assertIn("`v0.16.0` and `v0.17.0` tag the same commit", releases) self.assertIn("A bundle for either tag takes only the packages that declare it.", releases) - def test_release_notes_headings_carry_no_pending_marker(self): - notes = (ROOT / "RELEASE-NOTES.md").read_text() - headings = re.findall(r"^## (.+)$", notes, re.M) - self.assertEqual(headings[:2], ["v0.18.0", "v0.16.0"]) + def test_release_notes_cover_each_published_release_without_a_pending_marker(self): + headings = re.findall(r"^## (.+)$", (ROOT / "RELEASE-NOTES.md").read_text(), re.M) + for tag in PUBLISHED: + with self.subTest(tag=tag): + self.assertIn(tag, headings) + self.assertEqual(headings, sorted(headings, key=lambda tag: tuple(map(int, tag[1:].split("."))), reverse=True)) class DesignerAdoptionTests(unittest.TestCase): @@ -73,15 +77,22 @@ class DesignerAdoptionTests(unittest.TestCase): def test_documents_drop_the_pending_designer_adoption(self): for document in ("README.md", "OVERRIDING.md"): - text = flat(document) - for phrase in ("until it pins `v0.15.0`", "until it pins v0.15.0", "not yet pinned", - "RelayView still pins `issue-designer-default`", "keeps assigning `issue-designer-default`"): - with self.subTest(document=document, phrase=phrase): - self.assertNotIn(phrase, text) - adoption = section(CONTRACT.read_text(), "RelayView adoption of the Specification Designer default") + with self.subTest(document=document): + self.assertIsNone(re.search(r"until it pins `?v0\.15\.0|not yet pinned", read(document))) + adoption = flat(section(CONTRACT.read_text(), "RelayView adoption of the Specification Designer default")) self.assertNotIn("Before RelayView pins", adoption) self.assertIn("first-party-skills/v0.15.0/", adoption) + def test_designer_methods_are_captured_only_when_assigned(self): + adoption = flat(section(CONTRACT.read_text(), "RelayView adoption of the Specification Designer default")) + self.assertIn("New Designer Chats receive `specification-designer-default`.", adoption) + self.assertIn("captures one only when an Operator assigns it", adoption) + + def test_pair_adoption_names_the_bundled_subset(self): + adoption = flat(section(CONTRACT.read_text(), "RelayView adoption of the Tester and Coordinator pairs")) + self.assertIn("Before RelayView bundles a package declaring either pair", adoption) + self.assertNotIn("Before RelayView pins a release containing either pair", adoption) + if __name__ == "__main__": unittest.main()