Address review pass 3: verifier bundle list, method descriptions, proposed match
- Contract step 4 again says a new bundle joins the verifier's BUNDLES list. - v0.15.0 notes describe the earlier method descriptions accurately, and the v0.17.0 intro says what the shared commit means. - tests/test_release_status.py counts "proposed" only directly beside a published tag, since the documents also name RelayView's proposed owner rules, and drops a redundant heading loop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
319314924c
commit
bdf6b47e8e
3 files changed
+13
-11
No files matched your search
+3
-2
@@ -102,7 +102,7 @@ execution, resource leases, nudge budgets and cooldowns, the Working Ledger,
|
|||||||
and review policy. This release's packages are those that declare
|
and review policy. This release's packages are those that declare
|
||||||
`v0.17.0`; "Releases are immutable" in the
|
`v0.17.0`; "Releases are immutable" in the
|
||||||
[package contract](docs/authoritative/instruction-package-contract.md)
|
[package contract](docs/authoritative/instruction-package-contract.md)
|
||||||
explains why it shares a commit with `v0.16.0`. Every earlier release keeps
|
explains what sharing a commit with `v0.16.0` means. Every earlier release keeps
|
||||||
its bytes.
|
its bytes.
|
||||||
|
|
||||||
### `coordinator-dispatch`
|
### `coordinator-dispatch`
|
||||||
@@ -294,7 +294,8 @@ bytes for retained sessions, and every earlier release keeps its bytes.
|
|||||||
### Designer methods
|
### Designer methods
|
||||||
|
|
||||||
- **Before (0.13.0):** eight manual methods with generic Designer display
|
- **Before (0.13.0):** eight manual methods with generic Designer display
|
||||||
names ("Designer grilling") and issue-oriented descriptions:
|
names ("Designer grilling") and issue-, design-, or work-oriented
|
||||||
|
descriptions:
|
||||||
`designer-domain-modeling`, `designer-grilling`, `designer-prototype`,
|
`designer-domain-modeling`, `designer-grilling`, `designer-prototype`,
|
||||||
`designer-research`, `designer-to-spec`, `designer-to-tickets`,
|
`designer-research`, `designer-to-spec`, `designer-to-tickets`,
|
||||||
`designer-triage`, and `designer-wayfinder`.
|
`designer-triage`, and `designer-wayfinder`.
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ RelayView bundles a package declaring either pair, it must:
|
|||||||
4. **Pin and verify the packages.** Add them to the
|
4. **Pin and verify the packages.** Add them to the
|
||||||
`first-party-skills/<tag>/` bundle of the release that declares them,
|
`first-party-skills/<tag>/` bundle of the release that declares them,
|
||||||
creating that bundle if RelayView has none, list them in its
|
creating that bundle if RelayView has none, list them in its
|
||||||
`bundle-lock.json`, and verify it with
|
`bundle-lock.json`, and add a new bundle to `BUNDLES` in
|
||||||
`scripts/verify-first-party-skills-source.py`. Packages already in the
|
`scripts/verify-first-party-skills-source.py`. Packages already in the
|
||||||
bundle keep their bytes.
|
bundle keep their bytes.
|
||||||
|
|
||||||
|
|||||||
@@ -12,10 +12,13 @@ from tests.test_overriding import CONTRACT, ROOT, codes, section, table_rows
|
|||||||
|
|
||||||
PUBLISHED = ("v0.15.0", "v0.16.0", "v0.17.0", "v0.18.0")
|
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")
|
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
|
# "Not yet tagged" or "not yet published" within this many characters of a
|
||||||
# either order, describes that tag as unpublished.
|
# published tag, in either order, describes that tag as unpublished.
|
||||||
|
# "Proposed" also names RelayView's proposed owner rules, so it counts only
|
||||||
|
# directly beside the tag ("proposed `v0.17.0`", "`v0.18.0`, proposed").
|
||||||
NEARBY = 40
|
NEARBY = 40
|
||||||
UNPUBLISHED = r"not[- ]yet[- ](?:tagged|published)|proposed"
|
UNPUBLISHED = r"not[- ]yet[- ](?:tagged|published)"
|
||||||
|
ADJACENT = r"[\s`,]{0,3}"
|
||||||
# Any text within one sentence or table cell: a period ends the span only
|
# Any text within one sentence or table cell: a period ends the span only
|
||||||
# when it ends a sentence, so other version strings may sit in between.
|
# when it ends a sentence, so other version strings may sit in between.
|
||||||
SPAN = rf"(?:(?!\. )[^;|]){{0,{NEARBY}}}"
|
SPAN = rf"(?:(?!\. )[^;|]){{0,{NEARBY}}}"
|
||||||
@@ -44,7 +47,8 @@ class ReleaseStatusTests(unittest.TestCase):
|
|||||||
text = flat_document(document)
|
text = flat_document(document)
|
||||||
for tag in PUBLISHED:
|
for tag in PUBLISHED:
|
||||||
escaped = re.escape(tag)
|
escaped = re.escape(tag)
|
||||||
pattern = rf"(?:{UNPUBLISHED}){SPAN}{escaped}|{escaped}{SPAN}(?:{UNPUBLISHED})"
|
pattern = (rf"(?:{UNPUBLISHED}){SPAN}{escaped}|{escaped}{SPAN}(?:{UNPUBLISHED})"
|
||||||
|
rf"|proposed{ADJACENT}{escaped}|{escaped}{ADJACENT}proposed")
|
||||||
with self.subTest(document=document, tag=tag):
|
with self.subTest(document=document, tag=tag):
|
||||||
self.assertIsNone(re.search(pattern, text, re.I))
|
self.assertIsNone(re.search(pattern, text, re.I))
|
||||||
|
|
||||||
@@ -74,10 +78,6 @@ class ReleaseStatusTests(unittest.TestCase):
|
|||||||
with self.subTest(tag=tag):
|
with self.subTest(tag=tag):
|
||||||
self.assertIn(tag, headings)
|
self.assertIn(tag, headings)
|
||||||
self.assertEqual(headings, sorted(headings, key=lambda tag: tuple(map(int, tag[1:].split("."))), reverse=True))
|
self.assertEqual(headings, sorted(headings, key=lambda tag: tuple(map(int, tag[1:].split("."))), reverse=True))
|
||||||
for heading in re.findall(r"^## (.+)$", notes, re.M):
|
|
||||||
if heading.split(" ")[0] in PUBLISHED:
|
|
||||||
with self.subTest(heading=heading):
|
|
||||||
self.assertIn(heading, PUBLISHED)
|
|
||||||
|
|
||||||
|
|
||||||
class DesignerAdoptionTests(unittest.TestCase):
|
class DesignerAdoptionTests(unittest.TestCase):
|
||||||
@@ -103,6 +103,7 @@ class DesignerAdoptionTests(unittest.TestCase):
|
|||||||
adoption = flat(contract_section("RelayView adoption of the Tester and Coordinator pairs"))
|
adoption = flat(contract_section("RelayView adoption of the Tester and Coordinator pairs"))
|
||||||
self.assertIn("its `v0.15.0` bundle holds only the Designer packages", adoption)
|
self.assertIn("its `v0.15.0` bundle holds only the Designer packages", adoption)
|
||||||
self.assertIn("Before RelayView bundles a package declaring either pair", adoption)
|
self.assertIn("Before RelayView bundles a package declaring either pair", adoption)
|
||||||
|
self.assertIn("add a new bundle to `BUNDLES` in `scripts/verify-first-party-skills-source.py`", adoption)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in new issue
Block a user