Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Repository-validated current release line for final Commons-style publication.
- changed commercial receipts to normalize actor, reference, settlement, and verification semantics across verbs
- changed release metadata to describe v1.1.0 as the current repository-validated line while keeping publication claims declarative
- changed checksum validation to cover the shipped payload boundary excluding `checksums.txt` itself
- changed manifest validation to enforce state-aware release metadata (`release_date` null before publication; ISO date once published)

### Removed

Expand Down
11 changes: 9 additions & 2 deletions scripts/validate-all.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,15 @@ async function validateManifest() {
assert(manifest.examples_root === `examples/v${CURRENT_VERSION}`, "manifest examples_root drift");
assert(manifest.current_index === `schemas/v${CURRENT_VERSION}/index.json`, "manifest current_index drift");
assert(manifest.checksums_file === "checksums.txt", "manifest checksums_file drift");
assert(manifest.release_date === null, "manifest release_date must remain null until publication is completed");
assert(manifest.publication_state === "repository-validated-not-yet-published", "manifest publication_state drift");
assert(
manifest.publication_state === "repository-validated-not-yet-published" || manifest.publication_state === "published",
"manifest publication_state must be repository-validated-not-yet-published or published"
);
if (manifest.publication_state === "repository-validated-not-yet-published") {
assert(manifest.release_date === null, "manifest release_date must remain null until publication is completed");
} else {
assert(typeof manifest.release_date === "string" && /^\d{4}-\d{2}-\d{2}$/.test(manifest.release_date), "manifest release_date must be an ISO date string when publication_state is published");
}
assert("declared_alignment" in manifest, "manifest must expose declarative alignment metadata");
assert(manifest.alignment_verification === "declarative-only", "manifest alignment verification mode drift");
assert(!("aligns_with" in manifest), "manifest aligns_with field must not imply verified enforcement");
Expand Down
Loading