Require inline frontmatter values and correct the package contract
Reject a top-level frontmatter key without "key: value" form, so "disable-model-invocation:yes" can no longer bypass the boolean check. Assert each rejection's reason in the new-pair tests. In the contract, mark the Tester and Coordinator releases as proposed, list RelayView's role-level changes, and state the path-depth bound and the identity and archive sort orders exactly. Refs #20 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8c7d967efd
commit
1e9e46bc09
4 files changed
+69
-54
No files matched your search
+2
-1
@@ -143,7 +143,8 @@ def check_package(path):
|
||||
key = line.split(":", 1)[0]
|
||||
top_keys.append(key)
|
||||
in_metadata = key == "metadata"
|
||||
if in_metadata and line != "metadata:":
|
||||
# metadata stands alone; every other key carries an inline value.
|
||||
if (line != "metadata:") if in_metadata else not re.fullmatch(r"[a-z-]+: .+", line):
|
||||
_fail(f"{path}: unsupported skill metadata")
|
||||
else:
|
||||
_fail(f"{path}: unsupported skill metadata")
|
||||
|
||||
Reference in new issue
Block a user