WM12: the watchman's manifest says its version as MAJOR.MINOR

Builds: design 47 G §368, §372 (0.1 for a module with none published)

Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
This commit is contained in:
2026-11-11 11:58:33 +01:00
parent 5fcd76a9f9
commit cbbb971d35
2 changed files with 6 additions and 1 deletions
@@ -7,6 +7,7 @@ import (
"os"
"path/filepath"
"reflect"
"regexp"
"slices"
"strings"
"testing"
@@ -98,6 +99,10 @@ func TestManifestStateAndReads(t *testing.T) { // 1135/AC6
"mesh-delivery-builder.builds", "mesh-host.health", "mesh-provisioner.provisions", "node-engine.have"}) {
t.Errorf("reads = %v", reads)
}
// Design 47 G §368: the version is MAJOR.MINOR and nothing else.
if !regexp.MustCompile(`^[0-9]+\.[0-9]+$`).MatchString(m.Version) {
t.Errorf("version = %q, want MAJOR.MINOR", m.Version)
}
// DLV-M5 (ADR 0615 §1): the assigner's wants and the indexer's modules are their owners' states, asked by their read
// tools and followed by their views families, never read.
for _, r := range m.Reads {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"module": "mesh-delivery-watchman",
"version": "1",
"version": "0.1",
"slug": "watchman",
"claims": [
{