@sema-agent/settings-schema 35.0.0 → 35.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +348 -0
  2. package/README.md +40 -12
  3. package/conformance/VERSION +1 -1
  4. package/conformance/profile/annotations.md +65 -0
  5. package/conformance/profile/loading-rules.md +193 -0
  6. package/conformance/profile/profiles/solo-auto.json +22 -0
  7. package/conformance/profile/profiles/solo-managed.json +21 -0
  8. package/conformance/profile/profiles/tenant-auto.json +36 -0
  9. package/conformance/profile/profiles/tenant-managed.json +36 -0
  10. package/conformance/profile/sema-profile.schema.json +201 -0
  11. package/conformance/profile/tools/mutations.md +62 -0
  12. package/conformance/profile/tools/validate.mjs +1190 -0
  13. package/conformance/profile/vectors/frozen-promises.json +120 -0
  14. package/conformance/profile/vectors/vectors.json +362 -0
  15. package/dist/api/connector-assertions.d.ts +186 -0
  16. package/dist/api/connector-assertions.js +148 -0
  17. package/dist/api/credentials.d.ts +30 -50
  18. package/dist/api/credentials.js +14 -14
  19. package/dist/api/refusal-table.d.ts +16 -0
  20. package/dist/api/refusal-table.js +24 -0
  21. package/dist/conformance/index.d.ts +1 -0
  22. package/dist/conformance/index.js +1 -0
  23. package/dist/conformance/profile.d.ts +55 -0
  24. package/dist/conformance/profile.js +108 -0
  25. package/dist/index.d.ts +3 -0
  26. package/dist/index.js +3 -0
  27. package/dist/mutable-copy.d.ts +48 -0
  28. package/dist/mutable-copy.js +229 -0
  29. package/dist/settings-units.d.ts +8 -0
  30. package/dist/settings-units.js +6 -4
  31. package/dist/tighten-only-seat-limits.d.ts +16 -0
  32. package/dist/tighten-only-seat-limits.js +16 -0
  33. package/docs/API-SURFACE.md +32 -3
  34. package/docs/CONFORMANCE.md +17 -0
  35. package/docs/CONSUMER-INTEGRATION.md +180 -12
  36. package/llms-full.txt +27 -9
  37. package/llms.txt +6 -2
  38. package/package.json +1 -1
@@ -0,0 +1,362 @@
1
+ {
2
+ "format": "sema-profile@1 judgment vectors v5",
3
+ "assertions": "A positive vector carries expectRows: the EXACT report of a correct loader, one 'segment|key|outcome|code' string per row (order free). Equality means every listed row is present AND every unlisted row is absent — a positive vector never passes on 'no refusal' alone. expectSnapshotEnv (user landing with a server segment; required there): the env table of the snapshot the loader writes (the expanded server segment verbatim, references kept as ${NAME}). A negative vector carries code, and detail (exact) or detailIncludes (a substring the detail must name) when the detail is asserted. Every vector a loader runs (loader-mutation vectors aside) also asserts the envelope (loading-rules.md §1.1): mode = the vector's mode (default commit; preview gives the same rows); disposition = applied for a positive, refused for a negative; selector present exactly when a snapshot is written (a positive with expectSnapshotEnv), its digest the snapshot's; and all-or-nothing: a refused report writes no snapshot and no selector. The selector write of the user landing (env.SEMA_PROFILE → the snapshot) is an envelope member, never a report row. A loader-mutation vector carries mutateLoader + expectMutantRows: it is run with that loader defect and passes when the defect's signature rows appear (it proves the check can tell); its code is a judgement word, not a member of the report's closed code set. A real loader runs it by building that defect into a test double of itself (or skips it: executedBy says which loaders run it). A posture vector (B4) carries posture {parent, child} (a builtin name or an inline document) instead of a profile: the expanded child is compared with the expanded parent leaf by leaf; a positive lists its non-unchanged leaves in expectLeaves ('leaf|verdict'), a negative names code and key. Values a product promise rests on — every value of the four builtins after expansion, the channel × destination table, the keys read before the fold, the report's closed word sets — are frozen apart in frozen-promises.json (group F of tools/validate.mjs): the rows a vector run emits and every vector's code must stay inside those closed sets, and every code must be exercised by some vector here.",
4
+ "note": "At least one positive and one negative vector per loading rule (loading-rules.md §1). Envelope members give the context a rule needs: channel / destination (destination maps to the settings source user→userSettings, project→projectSettings, local→localSettings, flag→flagSettings, policy→policySettings; user also means the single-user local engine, whose server segment is the snapshot its own SEMA_PROFILE fold reads), mode (commit by default, or preview), workspace (L11; when absent a repository-controlled source reads as declined = fail closed), existing (L12: the destination before the write; at the user landing existing.settings is the user settings file and existing.snapshot is the snapshot the user settings' selector points at, written by this loader's own install record and digest-checked; a selector present without existing.snapshot is one this loader did not write), existingAtWrite (the destination as a fresh read inside the write lock shows it), deploymentEnvNames (the names the fold's env carries — at deploy the OS env, at the user landing the env the shell hands the local engine: NAMES only, never values), osEnv (deploy only, L13: OS env VALUES of non-secret rows), parents (L4), expectWritten (the value a correct loader writes). L13's 'already set' at the user landing = what the shell hands the child env before the local engine folds the snapshot: the user's settings.env block, and the keys the shell sets itself whatever is inherited — its own defaults (ENGINE_AUTO_EXIT true, DRAIN_GRACE_MS 60000, REMOTE_EXEC host, AGENT_DATA_DIR / MEMORY_ENGINE_DIR computed: cli engineLifecycleManager.ts:1118 / :1125 / :1148 / :1157 / :1161 @ a51393fdd). executedBy = the loaders whose FIRST version runs the vector (closed set, see loaders); a loader not listed does not run it, and no repo keeps a skip table of its own. Values are illustrative and contain no real secret.",
5
+ "loaders": {
6
+ "reference": "tools/validate.mjs in this folder, run against read-only checkouts (the materialised owner files); it models the full law, config.d included, and the L10 / L13 'observe' halves are not its to run. Retires when these vectors move to the settings-schema conformance face.",
7
+ "server": "the SEMA_PROFILE fold (deploy, and the local engine's own fold of the user-landing snapshot), with the builtin expansion it needs (the posture vectors B4.* are a must-pin on the server side). First version = the server release that implements the SEMA_PROFILE fold (unreleased when this file was written: server 7.154.0 still lists SEMA_PROFILE as an inert row, src/config-catalog.ts:820). Server v1 refuses a config.d segment whole (segment_unsupported) and, per the server's profile design, takes no org channel in v1, so the vectors that need either do not list it.",
8
+ "cli": "the sema profile loader (apply / remove / --dry-run; unreleased). cli v1 refuses a profile with a config.d segment before installing it (segment_unsupported) and, by its design, offers no policy destination.",
9
+ "center": "center delivery of profiles: the profiles domain is not open; no vector lists it in v1."
10
+ },
11
+ "vectors": [
12
+ { "id": "L1.pos", "rule": "L1", "expect": "accept", "expectRows": [], "judge": "json-schema", "executedBy": ["reference", "cli"],
13
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l1", "version": 1 } } },
14
+ { "id": "L1.neg", "rule": "L1", "expect": "reject", "code": "shape", "judge": "json-schema", "executedBy": ["reference", "cli"],
15
+ "why": "a top-level segment outside the closed four",
16
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l1", "version": 1 }, "classifier": { "model": "classifier" } } },
17
+ { "id": "L1.neg-bypass", "rule": "L1", "expect": "reject", "code": "shape", "judge": "json-schema", "executedBy": ["reference", "cli"],
18
+ "why": "a profile writes settings files; a file never takes bypassPermissions",
19
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l1", "version": 1 }, "settings": { "permissions": { "defaultMode": "bypassPermissions" } } } },
20
+ { "id": "L1.neg-hooks", "rule": "L1", "expect": "reject", "code": "hooks_shape", "judge": "settings-schema classifyHooksConfig", "executedBy": ["reference", "cli"],
21
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l1", "version": 1 }, "settings": { "hooks": { "PreToolUse": 42 } } } },
22
+ { "id": "L1.neg-hooks-deploy", "rule": "L1", "expect": "reject", "code": "hooks_shape", "judge": "settings-schema classifyHooksConfig", "executedBy": ["reference", "server"], "destination": "deploy",
23
+ "why": "L1 is unconditional: the deploy fold does not apply the settings segment, but a malformed document is still refused, not reported skipped",
24
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l1", "version": 1 }, "settings": { "hooks": { "PreToolUse": 42 } } } },
25
+
26
+ { "id": "L2.pos", "rule": "L2", "expect": "accept", "expectRows": ["settings|permissions.deny|written|"], "judge": "loader", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
27
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l2", "version": 1 }, "settings": { "permissions": { "deny": ["Bash(curl:*)"] } } } },
28
+ { "id": "L2.neg", "rule": "L2", "expect": "reject", "code": "channel_target", "judge": "loader", "executedBy": ["reference"], "channel": "user", "destination": "policy",
29
+ "why": "a plain local path may not install into the managed tier (no v1 loader offers the policy destination)",
30
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l2", "version": 1 }, "settings": { "permissions": { "deny": ["Bash(curl:*)"] } } } },
31
+ { "id": "L2.neg-org-user", "rule": "L2", "expect": "reject", "code": "channel_target", "judge": "loader", "executedBy": ["reference"], "channel": "org", "destination": "user",
32
+ "why": "an org delivery installs into the managed tier or the deployment only (the other side of the channel × destination table, frozen in frozen-promises.json)",
33
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l2", "version": 1 }, "settings": { "permissions": { "deny": ["Bash(curl:*)"] } } } },
34
+
35
+ { "id": "L3.pos", "rule": "L3", "expect": "accept", "expectRows": ["server.env|CONFIG_PROVIDER|skipped|host_forced_same", "server.env|DB_BACKEND|skipped|host_forced_same", "server.env|REMOTE_EXEC|unchanged|", "server.env|REQUIRE_PRINCIPAL|written|", "settings|permissions.defaultMode|written|"], "judge": "json-schema", "executedBy": ["reference", "cli"],
36
+ "why": "REMOTE_EXEC is unchanged, not written: the shell sets host in the child env itself before the fold (its default), and the profile's host equals it",
37
+ "expectSnapshotEnv": { "REQUIRE_PRINCIPAL": "false", "CONFIG_PROVIDER": "local", "DB_BACKEND": "local", "REMOTE_EXEC": "host" },
38
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l3", "version": 1, "extends": "solo-auto" }, "server": { "env": { "READ_FACE": null } } } },
39
+ { "id": "L3.neg", "rule": "L3", "expect": "reject", "code": "shape", "judge": "json-schema", "executedBy": ["reference", "cli"],
40
+ "why": "null without a parent deletes nothing",
41
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l3", "version": 1 }, "server": { "env": { "READ_FACE": null } } } },
42
+
43
+ { "id": "L4.pos", "rule": "L4", "expect": "accept", "expectRows": ["server.env|CONFIG_PROVIDER|skipped|host_forced_same", "server.env|DB_BACKEND|skipped|host_forced_same", "server.env|READ_FACE|written|", "server.env|REMOTE_EXEC|unchanged|", "server.env|REQUIRE_PRINCIPAL|written|", "settings|permissions.ask|written|", "settings|permissions.defaultMode|written|"], "judge": "loader", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
44
+ "expectSnapshotEnv": { "REQUIRE_PRINCIPAL": "false", "CONFIG_PROVIDER": "local", "DB_BACKEND": "local", "REMOTE_EXEC": "host", "READ_FACE": "open" },
45
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l4-child", "version": 1, "extends": "solo-auto" }, "settings": { "permissions": { "ask": ["Bash(git push:*)"] } } } },
46
+ { "id": "L4.pos-segment-null", "rule": "L4", "expect": "accept", "expectRows": ["server.env|CONFIG_PROVIDER|skipped|host_forced_same", "server.env|DB_BACKEND|skipped|host_forced_same", "server.env|READ_FACE|written|", "server.env|REMOTE_EXEC|unchanged|", "server.env|REQUIRE_PRINCIPAL|written|"], "judge": "loader", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
47
+ "why": "a segment-level null deletes the inherited segment (no settings segment remains after expansion)",
48
+ "expectSnapshotEnv": { "REQUIRE_PRINCIPAL": "false", "CONFIG_PROVIDER": "local", "DB_BACKEND": "local", "REMOTE_EXEC": "host", "READ_FACE": "open" },
49
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l4-child", "version": 1, "extends": "solo-auto" }, "settings": null } },
50
+ { "id": "L4.neg", "rule": "L4", "expect": "reject", "code": "extends", "judge": "loader", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
51
+ "why": "a cycle in the extends chain",
52
+ "parents": { "v-l4-b": { "$schema": "sema-profile@1", "meta": { "name": "v-l4-b", "version": 1, "extends": "v-l4-a" } } },
53
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l4-a", "version": 1, "extends": "v-l4-b" } } },
54
+ { "id": "L4.neg-deploy-parent", "rule": "L4", "expect": "reject", "code": "extends", "judge": "loader (at deploy a parent is one of the four builtins)", "executedBy": ["reference", "server"], "destination": "deploy",
55
+ "why": "the deploy fold resolves a parent among the four builtins only and refuses a missing one (server design, relayed); a parent from the user's own namespace is not found there",
56
+ "parents": { "v-l4-base": { "$schema": "sema-profile@1", "meta": { "name": "v-l4-base", "version": 1 }, "server": { "env": { "READ_FACE": "roots" } } } },
57
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l4-child", "version": 1, "extends": "v-l4-base" } } },
58
+ { "id": "L4.neg-parent-shape", "rule": "L4", "expect": "reject", "code": "shape", "judge": "loader + json-schema", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
59
+ "why": "every parent in the chain passes the schema before expansion (an invalid parent cannot be laundered through a valid child)",
60
+ "parents": { "v-l4-bad": { "$schema": "sema-profile@1", "meta": { "name": "v-l4-bad", "version": 1 }, "classifier": { "model": "x" } } },
61
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l4-child", "version": 1, "extends": "v-l4-bad" } } },
62
+ { "id": "L4.neg-parent-hooks", "rule": "L4", "expect": "reject", "code": "hooks_shape", "judge": "loader + settings-schema classifyHooksConfig", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
63
+ "why": "the whole of L1 (the hooks judge included) runs on every parent BEFORE the child's nulls delete anything: deleting the malformed hooks does not launder the parent",
64
+ "parents": { "v-l4-badhooks": { "$schema": "sema-profile@1", "meta": { "name": "v-l4-badhooks", "version": 1 }, "settings": { "hooks": { "PreToolUse": 42 } } } },
65
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l4-child", "version": 1, "extends": "v-l4-badhooks" }, "settings": { "hooks": null } } },
66
+
67
+ { "id": "L5.pos", "rule": "L5", "expect": "accept", "expectRows": ["server.env|READ_FACE|written|"], "judge": "catalog", "executedBy": ["reference", "server"], "destination": "deploy",
68
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5", "version": 1 }, "server": { "env": { "READ_FACE": "open" } } } },
69
+ { "id": "L5.neg", "rule": "L5", "expect": "reject", "code": "enum_value", "judge": "catalog", "executedBy": ["reference", "server"], "destination": "deploy",
70
+ "why": "READ_FACE is a closed enum row (open | roots)",
71
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5", "version": 1 }, "server": { "env": { "READ_FACE": "wide" } } } },
72
+ { "id": "L5.neg-echo", "rule": "L5", "expect": "reject", "code": "enum_value", "judge": "catalog echoWords", "executedBy": ["reference", "server"], "destination": "deploy",
73
+ "why": "MANUAL_MODE_SHELL_GATE echoWords is [always]; off is absence spelled differently and a profile writes one form",
74
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5", "version": 1 }, "server": { "env": { "MANUAL_MODE_SHELL_GATE": "off" } } } },
75
+ { "id": "L5.neg-bool", "rule": "L5", "expect": "reject", "code": "non_canonical", "judge": "catalog type boolean", "executedBy": ["reference", "server"], "destination": "deploy",
76
+ "why": "the server reads 1 as true; a profile writes the one spelling true | false",
77
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5", "version": 1 }, "server": { "env": { "FORK_ENABLED": "1" } } } },
78
+ { "id": "L5.neg-number", "rule": "L5", "expect": "reject", "code": "non_canonical", "judge": "catalog type number", "executedBy": ["reference", "server"], "destination": "deploy",
79
+ "why": "0.0 reads as 0 (= cap off) and the server's reading marks it non-canonical (catalog-literal.ts:89: the off value's one spelling is \"0\")",
80
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5", "version": 1 }, "server": { "env": { "MAX_TASK_COST_USD": "0.0" } } } },
81
+ { "id": "L5.neg-cap-off-spelling", "rule": "L5", "expect": "reject", "code": "non_canonical", "judge": "the server's literal reading, canonical bit (catalog-literal.ts:89)", "executedBy": ["reference", "server"], "destination": "deploy",
82
+ "why": "-1 is the cap switched off (capIsOff: not > 0); on a literal.offAtOrBelow row the off value is spelled \"0\" only",
83
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5", "version": 1 }, "server": { "env": { "MAX_TASK_COST_USD": "-1" } } } },
84
+ { "id": "L5.neg-number-negzero", "rule": "L5", "expect": "reject", "code": "non_canonical", "judge": "the server's literal reading, canonical bit (catalog-literal.ts:90: raw === String(n))", "executedBy": ["reference", "server"], "destination": "deploy",
85
+ "why": "-0 reads as 0 on a row without an off value; String(0) is \"0\", so -0 is a second spelling",
86
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5", "version": 1 }, "server": { "env": { "DRAIN_GRACE_MS": "-0" } } } },
87
+ { "id": "L5.neg-csv-space", "rule": "L5", "expect": "reject", "code": "non_canonical", "judge": "the server's literal reading, canonical bit (catalog-literal.ts:84: raw === items.join(\",\"))", "executedBy": ["reference", "server"], "destination": "deploy",
88
+ "why": "the server reads \"Write, Edit\" as [Write, Edit] (csvOf trims each item); its one spelling is \"Write,Edit\"",
89
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5", "version": 1 }, "server": { "env": { "APPROVAL_REQUIRE": "Write, Edit" } } } },
90
+ { "id": "L5.neg-unknown", "rule": "L5", "expect": "reject", "code": "unknown_key", "judge": "server CONFIG_CATALOG (no row of that name)", "executedBy": ["reference", "server"], "destination": "deploy",
91
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5", "version": 1 }, "server": { "env": { "NOT_A_CATALOG_ROW": "1" } } } },
92
+ { "id": "L5.neg-unresolved-enum", "rule": "L5", "expect": "reject", "code": "enum_value", "judge": "catalog (word set behind a constant)", "executedBy": ["reference"], "destination": "deploy",
93
+ "why": "an enum whose word set the loader cannot resolve fails closed (a real loader imports the constant, so only the reference loader can exercise this arm)",
94
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5", "version": 1 }, "server": { "env": { "MODEL_PROVIDER": "nonsense" } } } },
95
+ { "id": "L5.neg-retired", "rule": "L5", "expect": "reject", "code": "retired_key", "judge": "settings-schema RETIRED_ENVS", "executedBy": ["reference", "server"], "destination": "deploy",
96
+ "why": "the previous-generation center URL name",
97
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5", "version": 1 }, "server": { "env": { "SEMA_REGISTRY_URL": "${CENTER_URL}" } } } },
98
+ { "id": "L5.neg-inert", "rule": "L5", "expect": "reject", "code": "inert_key", "judge": "catalog", "executedBy": ["reference", "server"], "destination": "deploy",
99
+ "why": "an envTiming:inert row carries no behaviour",
100
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5", "version": 1 }, "server": { "env": { "REWIND_SNAPSHOT_MAX_MB": "64" } } } },
101
+ { "id": "L5.neg-selector", "rule": "L5", "expect": "reject", "code": "read_before_fold", "judge": "loader (keys read before the fold: v1 = the selector)", "executedBy": ["reference", "server"], "destination": "deploy",
102
+ "why": "the selector is read before any fold, so the fold cannot change it; only the selector itself is refused, judged before every other key check",
103
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5", "version": 1 }, "server": { "env": { "SEMA_PROFILE": "tenant-auto" } } } },
104
+ { "id": "L5.neg-selector-settings-env", "rule": "L5", "expect": "reject", "code": "read_before_fold", "judge": "loader (keys read before the fold: v1 = the selector)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
105
+ "why": "a profile writing the selector through settings.env is the same refusal, judged before catalog_name_in_settings_env (the host writing the selector at the user landing is the landing mechanism, not the profile)",
106
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5", "version": 1 }, "settings": { "env": { "SEMA_PROFILE": "/opt/profiles/other.json" } } } },
107
+
108
+ { "id": "L5b.pos", "rule": "L5b", "expect": "accept", "expectRows": ["server.config.d|limits|written|"], "judge": "settings-schema DOMAIN_SCHEMAS", "executedBy": ["reference"], "destination": "deploy",
109
+ "why": "the law once config.d is supported; server v1 refuses the segment (L5b.neg-unsupported)",
110
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5b", "version": 1 }, "server": { "config.d": { "limits": { "maxTaskCostUsd": 5 } } } } },
111
+ { "id": "L5b.neg", "rule": "L5b", "expect": "reject", "code": "domain_shape", "judge": "settings-schema DOMAIN_SCHEMAS", "executedBy": ["reference"], "destination": "deploy",
112
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5b", "version": 1 }, "server": { "config.d": { "limits": { "maxTaskCostUsd": "five" } } } } },
113
+ { "id": "L5b.neg-unsupported", "rule": "L5b", "expect": "reject", "code": "segment_unsupported", "judge": "server v1 fold", "executedBy": ["server"], "destination": "deploy",
114
+ "why": "server v1 refuses a config.d segment whole, loudly: the refusal says the first version does not support this segment and points at the profile documentation's section on it — no ticket number. The reference loader models the full law and does not run it",
115
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5b", "version": 1 }, "server": { "config.d": { "limits": { "maxTaskCostUsd": 5 } } } } },
116
+ { "id": "L5b.neg-unsupported-user", "rule": "L5b", "expect": "reject", "code": "segment_unsupported", "judge": "cli v1 loader", "executedBy": ["cli"], "channel": "user", "destination": "user",
117
+ "why": "at the user landing the snapshot would be folded by the local engine, which refuses config.d the same way; cli v1 refuses the profile before it installs anything",
118
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l5b", "version": 1 }, "server": { "config.d": { "limits": { "maxTaskCostUsd": 5 } } } } },
119
+
120
+ { "id": "L6.pos", "rule": "L6", "expect": "accept", "expectRows": ["server.env|PG_PASSWORD|written|"], "judge": "catalog type secret", "executedBy": ["reference", "server"], "destination": "deploy", "deploymentEnvNames": ["DEPLOY_PG_PASSWORD"],
121
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l6", "version": 1 }, "server": { "env": { "PG_PASSWORD": "${DEPLOY_PG_PASSWORD}" } } } },
122
+ { "id": "L6.neg", "rule": "L6", "expect": "reject", "code": "secret_literal", "judge": "catalog type secret", "executedBy": ["reference", "server"], "destination": "deploy",
123
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l6", "version": 1 }, "server": { "env": { "PG_PASSWORD": "example-literal" } } } },
124
+
125
+ { "id": "L7.pos", "rule": "L7", "expect": "accept", "expectRows": ["server.env|PG_PASSWORD|written|"], "judge": "loader", "executedBy": ["reference", "server"], "destination": "deploy", "deploymentEnvNames": ["DEPLOY_PG_PASSWORD"],
126
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l7", "version": 1 }, "server": { "env": { "PG_PASSWORD": "${DEPLOY_PG_PASSWORD}" } } } },
127
+ { "id": "L7.neg", "rule": "L7", "expect": "reject", "code": "reference_self", "judge": "loader", "executedBy": ["reference", "server"], "destination": "deploy", "deploymentEnvNames": ["OPERATOR_PRINCIPALS"],
128
+ "why": "required-ness of OPERATOR_PRINCIPALS is the server's boot refusal (S1), not a self-reference",
129
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l7", "version": 1 }, "server": { "env": { "OPERATOR_PRINCIPALS": "${OPERATOR_PRINCIPALS}" } } } },
130
+ { "id": "L7.neg-unresolved", "rule": "L7", "expect": "reject", "code": "reference_unresolved", "detail": "DEPLOY_PG_PASSWORD", "judge": "loader", "executedBy": ["reference", "server"], "destination": "deploy", "deploymentEnvNames": [],
131
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l7", "version": 1 }, "server": { "env": { "PG_PASSWORD": "${DEPLOY_PG_PASSWORD}" } } } },
132
+ { "id": "L7.neg-secret-server", "rule": "L7", "expect": "reject", "code": "reference_secret", "judge": "loader + catalog type secret", "executedBy": ["reference", "server"], "destination": "deploy", "deploymentEnvNames": ["PG_PASSWORD"],
133
+ "why": "a non-secret row (here the publicly served agent-card description) referencing a catalog secret row's name would launder the secret into a name that is echoed; this keeps reference_secret exercised now that settings.env takes no reference at all",
134
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l7", "version": 1 }, "server": { "env": { "A2A_SERVE_DESCRIPTION": "${PG_PASSWORD}" } } } },
135
+ { "id": "L7.neg-secret", "rule": "L7", "expect": "reject", "code": "reference_unresolved", "detail": "no_resolution_stage", "judge": "loader (settings.env has no resolution stage)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
136
+ "why": "a reference in settings.env — here one that would copy a secret row's value into another name — is refused before anything else is asked of it: the shell's settings.env channel has no resolution stage, so a profile writes literals there (the code was reference_secret before)",
137
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l7", "version": 1 }, "settings": { "env": { "MY_TOOL_TOKEN": "${PG_PASSWORD}" } } } },
138
+ { "id": "L7.neg-settings-env-unresolved", "rule": "L7", "expect": "reject", "code": "reference_unresolved", "detail": "no_resolution_stage", "judge": "loader (settings.env has no resolution stage)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
139
+ "why": "detail = the token no_resolution_stage (the server.env arm's detail is the unresolved name): refused whether or not the name exists",
140
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l7", "version": 1 }, "settings": { "env": { "MY_TOOL_HOME": "${MISSING_NAME}" } } } },
141
+
142
+ { "id": "L8.pos", "rule": "L8", "expect": "accept", "expectRows": ["server.env|AUTONOMY|written|"], "judge": "catalog center seat", "executedBy": ["reference", "server"], "destination": "deploy",
143
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l8", "version": 1 }, "server": { "env": { "AUTONOMY": "ask" } } } },
144
+ { "id": "L8.neg", "rule": "L8", "expect": "reject", "code": "two_lanes", "judge": "catalog center seat", "executedBy": ["reference"], "destination": "deploy",
145
+ "why": "AUTONOMY's catalog row seats center at governance.autonomy, so setting both uses two lanes for one fact (server v1 refuses the config.d segment first)",
146
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l8", "version": 1 }, "server": { "env": { "AUTONOMY": "ask" }, "config.d": { "governance": { "autonomy": "ask" } } } } },
147
+
148
+ { "id": "L9.pos", "rule": "L9", "expect": "accept", "expectRows": ["server.env|CONFIG_PROVIDER|skipped|host_forced_same", "server.env|DB_BACKEND|skipped|host_forced_same", "server.env|READ_FACE|written|", "server.env|REMOTE_EXEC|unchanged|", "server.env|REQUIRE_PRINCIPAL|written|", "settings|permissions.defaultMode|written|"], "judge": "loader + the shell's child-env disposition table (profile column)", "executedBy": ["reference", "cli"], "channel": "builtin", "destination": "user", "builtin": "solo-auto",
149
+ "why": "written at the user landing = written into the snapshot the local engine folds in; the snapshot is the server segment verbatim, keys reported host_forced_same / unchanged included. READ_FACE is written: the shell deletes it only conditionally (no engineReadFace setting, nothing inherited), so the fold fills it",
150
+ "expectSnapshotEnv": { "REQUIRE_PRINCIPAL": "false", "CONFIG_PROVIDER": "local", "DB_BACKEND": "local", "REMOTE_EXEC": "host", "READ_FACE": "open" } },
151
+ { "id": "L9.pos-preview", "rule": "L9", "expect": "accept", "mode": "preview", "expectRows": ["server.env|CONFIG_PROVIDER|skipped|host_forced_same", "server.env|DB_BACKEND|skipped|host_forced_same", "server.env|READ_FACE|written|", "server.env|REMOTE_EXEC|unchanged|", "server.env|REQUIRE_PRINCIPAL|written|", "settings|permissions.defaultMode|written|"], "judge": "loader (preview = the same rows under mode: preview)", "executedBy": ["reference", "cli"], "channel": "builtin", "destination": "user", "builtin": "solo-auto",
152
+ "why": "a preview run reports exactly what a commit run would (envelope mode preview; the rows and the selector are hypothetical)",
153
+ "expectSnapshotEnv": { "REQUIRE_PRINCIPAL": "false", "CONFIG_PROVIDER": "local", "DB_BACKEND": "local", "REMOTE_EXEC": "host", "READ_FACE": "open" } },
154
+ { "id": "L9.pos-solo-managed", "rule": "L9", "expect": "accept", "expectRows": ["server.env|CONFIG_PROVIDER|skipped|host_forced_same", "server.env|DB_BACKEND|skipped|host_forced_same", "server.env|DURABLE_APPROVAL|written|", "server.env|MANUAL_MODE_SHELL_GATE|written|", "server.env|READ_FACE|written|", "server.env|REMOTE_EXEC|unchanged|", "server.env|REQUIRE_PRINCIPAL|written|", "settings|permissions.defaultMode|written|"], "judge": "loader + the shell's child-env disposition table (profile column)", "executedBy": ["reference", "cli"], "channel": "builtin", "destination": "user", "builtin": "solo-managed",
155
+ "why": "solo-managed installed at the user landing. MANUAL_MODE_SHELL_GATE and READ_FACE are deleted by the shell only conditionally (engineLifecycleManager.ts:1307 / :1345, the delete arm of its own decision), which is not a scrub: the fold fills them",
156
+ "expectSnapshotEnv": { "REQUIRE_PRINCIPAL": "false", "CONFIG_PROVIDER": "local", "DB_BACKEND": "local", "REMOTE_EXEC": "host", "READ_FACE": "roots", "DURABLE_APPROVAL": "true", "MANUAL_MODE_SHELL_GATE": "always" } },
157
+ { "id": "L9.neg", "rule": "L9", "expect": "reject", "code": "segment_target", "judge": "loader + the shell's child-env disposition table (profile column)", "executedBy": ["reference", "cli"], "channel": "builtin", "destination": "user", "builtin": "tenant-auto",
158
+ "why": "the shell forces DB_BACKEND=local / CONFIG_PROVIDER=local for the local engine; a tenant server segment is structurally unreachable there (point to SEMA_PROFILE)" },
159
+ { "id": "L9.neg-tenant-managed", "rule": "L9", "expect": "reject", "code": "segment_target", "judge": "loader + the shell's child-env disposition table (profile column)", "executedBy": ["reference", "cli"], "channel": "builtin", "destination": "user", "builtin": "tenant-managed",
160
+ "why": "the managed tenant corner is refused at the user landing the same way (its expansion carries tenant-auto's DB_BACKEND / CONFIG_PROVIDER / REQUIRE_PRINCIPAL); nothing is written, no snapshot" },
161
+ { "id": "L9.neg-dynamic-forced", "rule": "L9", "expect": "reject", "code": "segment_target", "judge": "loader + the shell's child-env disposition table (profile column)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
162
+ "why": "the shell assigns PORT itself (a computed value); the profile's value would never take effect",
163
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9", "version": 1 }, "server": { "env": { "PORT": "9999" } } } },
164
+ { "id": "L9.neg-scrubbed", "rule": "L9", "expect": "reject", "code": "segment_target", "judge": "loader + the shell's child-env disposition table (profile column)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
165
+ "why": "the shell removes LEADER_ENABLED from the local engine's env on purpose; the fill-absent fold would put the profile's value back, so the table's profile column refuses it (keeping the shell's default-refuse gate)",
166
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9", "version": 1 }, "server": { "env": { "LEADER_ENABLED": "true" } } } },
167
+ { "id": "L9b.neg-settings-env-principal", "rule": "L9b", "expect": "reject", "code": "catalog_name_in_settings_env", "judge": "catalog names", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
168
+ "why": "an engine knob is set through server.env only, at every destination (renamed from L9.neg-settings-env-principal, the code was segment_target)",
169
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9", "version": 1 }, "settings": { "env": { "REQUIRE_PRINCIPAL": "true" } } } },
170
+ { "id": "L9.neg-server-at-policy", "rule": "L9", "expect": "reject", "code": "segment_target", "judge": "loader (segment × destination)", "executedBy": ["reference"], "channel": "org", "destination": "policy",
171
+ "why": "the server segment is used at deploy and at the user landing only; a managed settings file carries none",
172
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9", "version": 1 }, "server": { "env": { "READ_FACE": "roots" } } } },
173
+ { "id": "L9.neg-server-at-project", "rule": "L9", "expect": "reject", "code": "segment_target", "judge": "loader (segment × destination)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "project", "workspace": "accepted",
174
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9", "version": 1 }, "server": { "env": { "READ_FACE": "roots" } } } },
175
+ { "id": "L9.neg-server-at-local", "rule": "L9", "expect": "reject", "code": "segment_target", "judge": "loader (segment × destination)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "local", "workspace": "accepted",
176
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9", "version": 1 }, "server": { "env": { "READ_FACE": "roots" } } } },
177
+ { "id": "L9.neg-server-at-flag", "rule": "L9", "expect": "reject", "code": "segment_target", "judge": "loader (segment × destination)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "flag",
178
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9", "version": 1 }, "server": { "env": { "READ_FACE": "roots" } } } },
179
+ { "id": "L9.neg-server-at-session", "rule": "L9", "expect": "reject", "code": "segment_target", "judge": "loader (segment × destination)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "session",
180
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9", "version": 1 }, "server": { "env": { "READ_FACE": "roots" } } } },
181
+ { "id": "L9.pos-session", "rule": "L9", "expect": "accept", "expectRows": ["settings|permissions.deny|written|"], "judge": "loader (a session install carries permissions.allow / deny / ask only)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "session",
182
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9", "version": 1 }, "settings": { "permissions": { "deny": ["Bash(curl:*)"] } } } },
183
+ { "id": "L9.neg-session-settings", "rule": "L9", "expect": "reject", "code": "segment_target", "judge": "loader (a session install carries permissions.allow / deny / ask only)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "session",
184
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9", "version": 1 }, "settings": { "model": "model-a" } } },
185
+ { "id": "L9.pos-org", "rule": "L9", "expect": "accept", "expectRows": ["server.config.d|limits|written|"], "judge": "loader", "executedBy": ["reference"], "channel": "org", "destination": "deploy",
186
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9", "version": 1 }, "server": { "config.d": { "limits": { "maxTaskCostUsd": 5 } } } } },
187
+ { "id": "L9.neg-org", "rule": "L9", "expect": "reject", "code": "segment_target", "judge": "loader", "executedBy": ["reference"], "channel": "org", "destination": "deploy",
188
+ "why": "center delivery arrives after loadConfig and center already publishes through domains; env is the deployment's own lane",
189
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9", "version": 1 }, "server": { "env": { "MAX_TASK_COST_USD": "5" } } } },
190
+
191
+ { "id": "L9b.pos", "rule": "L9b", "expect": "accept", "expectRows": ["settings|env.MY_TOOL_HOME|written|"], "judge": "catalog names", "executedBy": ["reference", "cli"], "channel": "user", "destination": "project", "workspace": "accepted",
192
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9b", "version": 1 }, "settings": { "env": { "MY_TOOL_HOME": "/opt/tool" } } } },
193
+ { "id": "L9b.neg", "rule": "L9b", "expect": "reject", "code": "catalog_name_in_settings_env", "judge": "catalog names", "executedBy": ["reference", "cli"], "channel": "user", "destination": "project", "workspace": "accepted",
194
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9b", "version": 1 }, "settings": { "env": { "READ_FACE": "open" } } } },
195
+ { "id": "L9b.neg-user-enum", "rule": "L9b", "expect": "reject", "code": "catalog_name_in_settings_env", "judge": "catalog names", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
196
+ "why": "the user landing refuses an engine knob name in settings.env too (the code was enum_value: the name is refused before its value is read)",
197
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9b", "version": 1 }, "settings": { "env": { "READ_FACE": "wide" } } } },
198
+ { "id": "L9b.neg-two-lanes", "rule": "L9b", "expect": "reject", "code": "catalog_name_in_settings_env", "judge": "catalog names", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
199
+ "why": "the same knob in server.env and settings.env: the settings.env half is refused by name (L9b's two_lanes arm is retired)",
200
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l9b", "version": 1 }, "server": { "env": { "READ_FACE": "roots" } }, "settings": { "env": { "READ_FACE": "open" } } } },
201
+
202
+ { "id": "L10.pos", "rule": "L10", "expect": "accept", "expectRows": ["entitlement|allowBypassPermissions|skipped|not_applied_here", "server.env|ASK_QUESTION_ENABLED|written|", "server.env|CONFIG_PROVIDER|written|", "server.env|DB_BACKEND|written|", "server.env|DURABLE_APPROVAL|written|", "server.env|FORK_ENABLED|written|", "server.env|MEMORY_ENGINE_BACKEND|written|", "server.env|REMOTE_EXEC|written|", "server.env|REQUIRE_PRINCIPAL|written|", "server.env|SELF_ORCHESTRATION_ENABLED|written|", "server.env|TOOL_APPROVAL_ENABLED|written|", "settings|permissions.defaultMode|skipped|not_applied_here", "settings|permissions.disableBypassPermissionsMode|skipped|not_applied_here", "settings|sandbox.enabled|skipped|not_applied_here"], "judge": "server loadConfig + CONFIG_CROSS_INVARIANTS", "executedBy": ["reference", "server"], "destination": "deploy", "builtin": "tenant-auto",
203
+ "deploymentEnvNames": ["OPERATOR_PRINCIPALS", "SEMA_WEB_ADMIN_URL", "SEMA_WEB_ADMIN_TOKEN", "SEMA_WEB_ADMIN_WORKER", "PG_HOST", "PG_USER", "PG_DATABASE", "PG_PASSWORD", "K8S_SANDBOX_IMAGE", "K8S_NAMESPACE"],
204
+ "why": "names the server will demand for this profile; the authoritative list is whatever loadConfig refuses without. The reference loader runs the report half (expectRows); that the deployment then boots is the server's half. tenant-auto pins no MEMORY_CAPTURE_POLICY: the deployment's own value, or the catalog default open, stands" },
205
+ { "id": "L10.pos-managed", "rule": "L10", "expect": "accept", "expectRows": ["entitlement|allowBypassPermissions|skipped|not_applied_here", "entitlement|allowFork|skipped|not_applied_here", "entitlement|allowWorkflows|skipped|not_applied_here", "entitlement|autoMode|skipped|not_applied_here", "entitlement|forceDurableGate|skipped|not_applied_here", "server.env|APPROVAL_REQUIRE|written|", "server.env|ASK_QUESTION_ENABLED|written|", "server.env|CONFIG_PROVIDER|written|", "server.env|DB_BACKEND|written|", "server.env|DURABLE_APPROVAL|written|", "server.env|FORK_ENABLED|written|", "server.env|LOCKED_CONFIG_KEYS|written|", "server.env|MANUAL_MODE_SHELL_GATE|written|", "server.env|MEMORY_CAPTURE_POLICY|written|", "server.env|MEMORY_ENGINE_BACKEND|written|", "server.env|READ_DENY_BUILTIN_TIERS|written|", "server.env|READ_FACE|written|", "server.env|REMOTE_EXEC|written|", "server.env|REQUIRE_PRINCIPAL|written|", "server.env|SELF_ORCHESTRATION_ENABLED|written|", "server.env|TOOL_APPROVAL_ENABLED|written|", "server.env|TRACE_THINKING|written|", "server.env|UNATTENDED_APPROVAL_POLICY|written|", "server.env|WORKFLOW_AGENTS_READONLY|written|", "settings|permissions.defaultMode|skipped|not_applied_here", "settings|permissions.disableAutoMode|skipped|not_applied_here", "settings|permissions.disableBypassPermissionsMode|skipped|not_applied_here", "settings|sandbox.enabled|skipped|not_applied_here"], "judge": "server loadConfig + CONFIG_CROSS_INVARIANTS", "executedBy": ["reference", "server"], "destination": "deploy", "builtin": "tenant-managed",
206
+ "deploymentEnvNames": ["OPERATOR_PRINCIPALS", "SEMA_WEB_ADMIN_URL", "SEMA_WEB_ADMIN_TOKEN", "SEMA_WEB_ADMIN_WORKER", "PG_HOST", "PG_USER", "PG_DATABASE", "PG_PASSWORD", "K8S_SANDBOX_IMAGE", "K8S_NAMESPACE"],
207
+ "why": "the managed tenant corner at deploy: tenant-auto expanded under tenant-managed. MEMORY_CAPTURE_POLICY=capture-required is written though tenant-auto does not pin the key (the parent is absent there: nothing to compare, B4.pos-parent-absent); capture-required asks no verdict source, so S4 does not apply" },
208
+ { "id": "L10.neg", "rule": "L10", "expect": "reject", "code": "server_boot", "detail": "config.operator_principals_required", "judge": "server loadConfig + CONFIG_CROSS_INVARIANTS", "executedBy": ["server"], "destination": "deploy", "builtin": "tenant-auto",
209
+ "why": "detail = the server's boot-refusal code (src/boot-refusal-codes.ts:62)",
210
+ "deploymentEnvNames": ["SEMA_WEB_ADMIN_URL", "SEMA_WEB_ADMIN_TOKEN", "SEMA_WEB_ADMIN_WORKER", "PG_HOST", "PG_USER", "PG_DATABASE", "PG_PASSWORD", "K8S_SANDBOX_IMAGE", "K8S_NAMESPACE"] },
211
+
212
+ { "id": "L11.pos", "rule": "L11", "expect": "accept", "expectRows": ["settings|permissions.deny|written|"], "judge": "settings-schema layerAdmission", "executedBy": ["reference", "cli"], "channel": "user", "destination": "project", "workspace": "declined",
213
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l11", "version": 1 }, "settings": { "permissions": { "deny": ["Bash(curl:*)"] } } } },
214
+ { "id": "L11.neg", "rule": "L11", "expect": "reject", "code": "layer_admission", "detail": "below_trust_floor", "judge": "settings-schema layerAdmission", "executedBy": ["reference", "cli"], "channel": "user", "destination": "project", "workspace": "accepted",
215
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l11", "version": 1 }, "settings": { "permissions": { "allow": ["Bash(git status:*)"] } } } },
216
+ { "id": "L11.neg-unknown-trust", "rule": "L11", "expect": "reject", "code": "layer_admission", "judge": "settings-schema layerAdmission", "executedBy": ["reference", "cli"], "channel": "user", "destination": "project",
217
+ "why": "no workspace reading given: a repository-controlled source reads as declined (fail closed), so hooks there are withheld",
218
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l11", "version": 1 }, "settings": { "hooks": {} } } },
219
+ { "id": "L11.pos-killswitch", "rule": "L11", "expect": "accept", "expectRows": ["settings|permissions.disableAutoMode|written|"], "judge": "settings-schema layerAdmission", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user", "workspace": "no_trust_step",
220
+ "why": "settings-schema >= 14.2.0 killSwitches row: the ON pole is admitted from every layer (superseding an earlier managed-only assumption with the upstream fact)",
221
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l11", "version": 1 }, "settings": { "permissions": { "disableAutoMode": true } } } },
222
+
223
+ { "id": "L12.pos", "rule": "L12", "expect": "accept", "expectRows": ["settings|permissions.defaultMode|written|"], "judge": "SAFETY_MERGE_SPEC.permissionMode enumRank", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
224
+ "existing": { "settings": { "permissions": { "defaultMode": "auto" } } },
225
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "settings": { "permissions": { "defaultMode": "default" } } } },
226
+ { "id": "L12.neg", "rule": "L12", "expect": "reject", "code": "looser_than_existing", "judge": "SAFETY_MERGE_SPEC.permissionMode enumRank", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
227
+ "existing": { "settings": { "permissions": { "defaultMode": "plan" } } },
228
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "settings": { "permissions": { "defaultMode": "auto" } } } },
229
+ { "id": "L12.neg-nocomparator", "rule": "L12", "expect": "reject", "code": "conflict_no_comparator", "judge": "SAFETY_MERGE_SPEC.model (tighten none)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
230
+ "existing": { "settings": { "model": "model-a" } },
231
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "settings": { "model": "model-b" } } },
232
+ { "id": "L12.pos-union", "rule": "L12", "expect": "accept", "expectRows": ["settings|permissions.deny|written|"], "judge": "contract-aware list merge (permissions deny)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
233
+ "existing": { "settings": { "permissions": { "deny": ["Bash(curl:*)"] } } },
234
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "settings": { "permissions": { "deny": ["Bash(wget:*)"] } } },
235
+ "expectWritten": { "permissions.deny": ["Bash(curl:*)", "Bash(wget:*)"] } },
236
+ { "id": "L12.neg-sandbox-deny", "rule": "L12", "expect": "reject", "code": "looser_than_existing", "judge": "settings-schema unitTighten(sandbox, filesystem.denyRead) = setUnion", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
237
+ "why": "an empty deny list would erase the existing denies",
238
+ "existing": { "settings": { "sandbox": { "filesystem": { "denyRead": ["/secret/**"] } } } },
239
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "settings": { "sandbox": { "filesystem": { "denyRead": [] } } } } },
240
+ { "id": "L12.pos-env", "rule": "L12", "expect": "accept", "expectRows": ["server.env|READ_FACE|unchanged|"], "judge": "equal value against the installed snapshot", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
241
+ "existing": { "snapshot": { "env": { "READ_FACE": "roots" } } },
242
+ "expectSnapshotEnv": { "READ_FACE": "roots" },
243
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "server": { "env": { "READ_FACE": "roots" } } } },
244
+ { "id": "L12.neg-env", "rule": "L12", "expect": "reject", "code": "conflict_no_comparator", "judge": "catalog (a row without a tighten column: reject-first)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
245
+ "why": "UNATTENDED_APPROVAL_POLICY carries no comparator in the catalog (server 7.154.0 left it without one): even a rewrite that reads tighter is refused (reject then upgrade). The key was READ_FACE until the catalog gave READ_FACE a comparator",
246
+ "existing": { "snapshot": { "env": { "UNATTENDED_APPROVAL_POLICY": "park" } } },
247
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "server": { "env": { "UNATTENDED_APPROVAL_POLICY": "deny" } } } },
248
+ { "id": "L9b.neg-policy-env", "rule": "L9b", "expect": "reject", "code": "catalog_name_in_settings_env", "judge": "catalog names (managed settings file)", "executedBy": ["reference"], "channel": "org", "destination": "policy",
249
+ "why": "the policy destination refuses an engine knob name in settings.env as every destination does; an org setting the local engine's knobs through the policy layer is a v1 exclusion (renamed from L12.neg-policy-env, the code was conflict_no_comparator)",
250
+ "existing": { "settings": { "env": { "READ_FACE": "roots" } } },
251
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "settings": { "env": { "READ_FACE": "open" } } } },
252
+ { "id": "L12.pos-env-proposed", "rule": "L12", "expect": "accept", "expectRows": ["server.env|READ_FACE|written|"], "judge": "catalog tighten READ_FACE enumRank open<roots", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
253
+ "why": "id kept from the proposal era: the comparator is now the catalog's own column (server 7.154.0)",
254
+ "existing": { "snapshot": { "env": { "READ_FACE": "open" } } },
255
+ "expectSnapshotEnv": { "READ_FACE": "roots" },
256
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "server": { "env": { "READ_FACE": "roots" } } } },
257
+ { "id": "L12.neg-env-proposed", "rule": "L12", "expect": "reject", "code": "looser_than_existing", "judge": "catalog tighten READ_FACE enumRank open<roots", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
258
+ "existing": { "snapshot": { "env": { "READ_FACE": "roots" } } },
259
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "server": { "env": { "READ_FACE": "open" } } } },
260
+ { "id": "L12.neg-env-reference", "rule": "L12", "expect": "reject", "code": "conflict_no_comparator", "judge": "loader (a reference has no value to rank)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user", "deploymentEnvNames": ["SWITCH"],
261
+ "existing": { "snapshot": { "env": { "FORK_ENABLED": "false" } } },
262
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "server": { "env": { "FORK_ENABLED": "${SWITCH}" } } } },
263
+ { "id": "L12.neg-env-negative-cap", "rule": "L12", "expect": "reject", "code": "looser_than_existing", "judge": "catalog tighten MAX_TASK_COST_USD numericLower, literal offAtOrBelow 0", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
264
+ "why": "the profile writes the cap switched off in its one spelling \"0\" (a non-positive ceiling is off: cap-off.ts capIsOff; -1 / -0 are refused earlier, at L5, L5.neg-cap-off-spelling): off reads as no ceiling (+Infinity, numericLower's loosest), looser than the installed 5",
265
+ "existing": { "snapshot": { "env": { "MAX_TASK_COST_USD": "5" } } },
266
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "server": { "env": { "MAX_TASK_COST_USD": "0" } } } },
267
+ { "id": "L12.pos-union-concurrent", "rule": "L12", "expect": "accept", "expectRows": ["settings|permissions.deny|written|"], "judge": "contract-aware list merge against the destination read inside the write lock", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
268
+ "why": "another writer added Bash(nc:*) after the loader's first look; the merge reads the destination again inside the lock and keeps it",
269
+ "existing": { "settings": { "permissions": { "deny": ["Bash(curl:*)"] } } },
270
+ "existingAtWrite": { "settings": { "permissions": { "deny": ["Bash(curl:*)", "Bash(nc:*)"] } } },
271
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "settings": { "permissions": { "deny": ["Bash(wget:*)"] } } },
272
+ "expectWritten": { "permissions.deny": ["Bash(curl:*)", "Bash(nc:*)", "Bash(wget:*)"] } },
273
+ { "id": "L12.neg-foreign-selector", "rule": "L12", "expect": "reject", "code": "segment_target", "detailIncludes": "/home/u/.sema/profiles/other.snapshot.json", "judge": "loader (the selector's writer)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
274
+ "why": "the user settings already carry a selector that no install record of this loader wrote (hand-written, or another writer's): it is not taken over, the server segment is refused whole and the detail names the selector. The reference model reads 'no install record' as 'no existing.snapshot'; a real loader reads its own record",
275
+ "existing": { "settings": { "env": { "SEMA_PROFILE": "/home/u/.sema/profiles/other.snapshot.json" } } },
276
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "server": { "env": { "READ_FACE": "roots" } } } },
277
+ { "id": "L12.pos-own-selector", "rule": "L12", "expect": "accept", "expectRows": ["server.env|READ_FACE|written|"], "judge": "loader (the selector's writer) + catalog tighten READ_FACE enumRank open<roots", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
278
+ "why": "a re-install over this loader's own install: the selector is its own (the snapshot it points at is this loader's record), so it is kept and the new snapshot is compared against the old one",
279
+ "existing": { "settings": { "env": { "SEMA_PROFILE": "/home/u/.sema/profiles/v-l12.snapshot.json" } }, "snapshot": { "env": { "READ_FACE": "open" } } },
280
+ "expectSnapshotEnv": { "READ_FACE": "roots" },
281
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "server": { "env": { "READ_FACE": "roots" } } } },
282
+
283
+ { "id": "L12n.neg-killswitch-disable", "rule": "L12n", "expect": "reject", "code": "looser_than_existing", "judge": "settings-schema readSettingsUnit (\"disable\" | true ⇒ on)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
284
+ "why": "existing settings legitimately spell an enabled kill switch \"disable\"; read raw, it compared as off and false was written",
285
+ "existing": { "settings": { "permissions": { "disableAutoMode": "disable", "disableBypassPermissionsMode": "disable" } } },
286
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12n", "version": 1 }, "settings": { "permissions": { "disableAutoMode": false, "disableBypassPermissionsMode": false } } } },
287
+ { "id": "L12n.neg-killswitch-disable-policy", "rule": "L12n", "expect": "reject", "code": "looser_than_existing", "judge": "settings-schema readSettingsUnit", "executedBy": ["reference"], "channel": "org", "destination": "policy",
288
+ "existing": { "settings": { "permissions": { "disableAutoMode": "disable" } } },
289
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12n", "version": 1 }, "settings": { "permissions": { "disableAutoMode": false } } } },
290
+ { "id": "L12n.neg-killswitch-uninterpretable", "rule": "L12n", "expect": "reject", "code": "conflict_no_comparator", "judge": "settings-schema readSettingsUnit (a value the owner's reading does not interpret cannot be ranked)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
291
+ "existing": { "settings": { "permissions": { "disableAutoMode": "yes" } } },
292
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12n", "version": 1 }, "settings": { "permissions": { "disableAutoMode": false } } } },
293
+ { "id": "L12n.pos-env-bool-word", "rule": "L12n", "expect": "accept", "expectRows": ["server.env|FORK_ENABLED|unchanged|"], "judge": "the server's literal reading (catalog-literal.ts; boolean words env-scalar.ts)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
294
+ "why": "the installed snapshot's 1 reads as true, so writing true changes nothing (no comparator needed)",
295
+ "existing": { "snapshot": { "env": { "FORK_ENABLED": "1" } } },
296
+ "expectSnapshotEnv": { "FORK_ENABLED": "true" },
297
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12n", "version": 1 }, "server": { "env": { "FORK_ENABLED": "true" } } } },
298
+ { "id": "L12n.neg-env-bool-word", "rule": "L12n", "expect": "reject", "code": "looser_than_existing", "judge": "the server's literal reading, then the catalog tighten boolStricter strict=true", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
299
+ "why": "the server reads the snapshot's 1 as true; read raw, false would switch the kill switch off",
300
+ "existing": { "snapshot": { "env": { "PERMISSIONS_DISABLE_AUTO_MODE": "1" } } },
301
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12n", "version": 1 }, "server": { "env": { "PERMISSIONS_DISABLE_AUTO_MODE": "false" } } } },
302
+ { "id": "L12.pos-env-emptyword", "rule": "L12", "expect": "accept", "expectRows": ["server.env|READ_DENY_BUILTIN_TIERS|written|"], "judge": "catalog tighten READ_DENY_BUILTIN_TIERS setUnion, literal emptyWord none", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
303
+ "existing": { "snapshot": { "env": { "READ_DENY_BUILTIN_TIERS": "none" } } },
304
+ "expectSnapshotEnv": { "READ_DENY_BUILTIN_TIERS": "credentials" },
305
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l12", "version": 1 }, "server": { "env": { "READ_DENY_BUILTIN_TIERS": "credentials" } } } },
306
+
307
+ { "id": "L13.pos", "rule": "L13", "expect": "accept", "expectRows": ["server.env|READ_FACE|written|"], "judge": "server SEMA_PROFILE fold", "executedBy": ["reference", "server"], "destination": "deploy", "deploymentEnvNames": [],
308
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l13", "version": 1 }, "server": { "env": { "READ_FACE": "open" } } },
309
+ "observe": "READ_FACE effective = open, no config.profile_key_shadowed notice" },
310
+ { "id": "L13.pos-shadowed", "rule": "L13", "expect": "accept", "expectRows": ["server.env|READ_FACE|skipped|os_env_wins"], "judge": "server SEMA_PROFILE fold", "executedBy": ["reference", "server"], "destination": "deploy", "osEnv": { "READ_FACE": "roots" },
311
+ "why": "the OS value stands over the profile's",
312
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l13", "version": 1 }, "server": { "env": { "READ_FACE": "open" } } },
313
+ "observe": "READ_FACE effective = roots AND exactly one config.profile_key_shadowed notice naming READ_FACE and the winning source (both values echoed: not a secret / opaque row); its verdict is the catalog comparator's answer for the two values (server design, relayed)" },
314
+ { "id": "L13.pos-shadowed-no-comparator", "rule": "L13", "expect": "accept", "expectRows": ["server.env|UNATTENDED_APPROVAL_POLICY|skipped|os_env_wins"], "judge": "server SEMA_PROFILE fold (deploy: the OS value stands, no refusal, whatever the row's comparator)", "executedBy": ["reference", "server"], "destination": "deploy", "osEnv": { "UNATTENDED_APPROVAL_POLICY": "park" },
315
+ "why": "L12's 'unequal without a comparator is refused' does not reach the deploy landing: there is no landing file there, only the process env, so L13 holds — the OS value stands and the row is skipped, never rejected (server design, relayed; contrast L12.neg-env, the same key against an installed user-landing snapshot)",
316
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l13", "version": 1 }, "server": { "env": { "UNATTENDED_APPROVAL_POLICY": "deny" } } },
317
+ "observe": "UNATTENDED_APPROVAL_POLICY effective = park AND one config.profile_key_shadowed notice naming it, verdict no_comparator; the server starts" },
318
+ { "id": "L13.pos-equal", "rule": "L13", "expect": "accept", "expectRows": ["server.env|FORK_ENABLED|unchanged|"], "judge": "server SEMA_PROFILE fold + the server's literal reading", "executedBy": ["reference", "server"], "destination": "deploy", "osEnv": { "FORK_ENABLED": "1" },
319
+ "why": "the two values are equal by the owner's reading (the server reads 1 as true): no notice",
320
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l13", "version": 1 }, "server": { "env": { "FORK_ENABLED": "true" } } },
321
+ "observe": "FORK_ENABLED effective = true, no config.profile_key_shadowed notice" },
322
+ { "id": "L13.pos-empty", "rule": "L13", "expect": "accept", "expectRows": ["server.env|FORK_ENABLED|written|"], "judge": "server SEMA_PROFILE fold + the row's own empty-string reading (catalog literal.blank)", "executedBy": ["reference", "server"], "destination": "deploy", "osEnv": { "FORK_ENABLED": "" },
323
+ "why": "whether the OS env 'has' a key is the row owner's reading: FORK_ENABLED declares no literal.blank, so the server reads an empty value as not set and the profile's value fills it. A row whose empty value refuses boot (literal.blank refused, e.g. READ_FACE) or is a value of its own (literal.blank value) is not this vector's",
324
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l13", "version": 1 }, "server": { "env": { "FORK_ENABLED": "false" } } },
325
+ "observe": "FORK_ENABLED effective = false, no config.profile_key_shadowed notice" },
326
+ { "id": "L13.neg", "rule": "L13", "expect": "reject", "code": "silent_override", "judge": "server SEMA_PROFILE fold", "executedBy": ["reference", "server"], "destination": "deploy", "osEnv": { "READ_FACE": "roots" }, "mutateLoader": "foldOverwritesOsEnv",
327
+ "why": "loader-mutation vector (the L14.neg convention): a fold that writes over a key the OS env already sets is the defect; silent_override is the judgement word, not a report code",
328
+ "expectMutantRows": ["server.env|READ_FACE|written|"],
329
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l13", "version": 1 }, "server": { "env": { "READ_FACE": "open" } } },
330
+ "observe": "red iff the OS value does not stand OR no config.profile_key_shadowed naming READ_FACE is emitted" },
331
+ { "id": "L13.pos-user-shadowed", "rule": "L13", "expect": "accept", "expectRows": ["server.env|READ_FACE|skipped|os_env_wins"], "judge": "loader (the user's own settings.env key is seeded into the child env before the local engine folds the snapshot)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
332
+ "why": "the user settings already carry a hand-written READ_FACE: the profile installs (its value goes into the snapshot) but the row says the user's own key wins and the profile's value does not take effect — never 'written'",
333
+ "existing": { "settings": { "env": { "READ_FACE": "open" } } },
334
+ "expectSnapshotEnv": { "READ_FACE": "roots" },
335
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l13", "version": 1 }, "server": { "env": { "READ_FACE": "roots" } } },
336
+ "observe": "at the next local engine start: READ_FACE effective = open and one config.profile_key_shadowed notice naming READ_FACE" },
337
+ { "id": "L13.pos-user-shell-default", "rule": "L13", "expect": "accept", "expectRows": ["server.env|AGENT_DATA_DIR|skipped|os_env_wins", "server.env|DRAIN_GRACE_MS|unchanged|", "server.env|ENGINE_AUTO_EXIT|skipped|os_env_wins", "server.env|REMOTE_EXEC|skipped|os_env_wins"], "judge": "loader (the shell sets these keys in the child env itself — the inherited value, else its own default — before the local engine folds the snapshot)", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
338
+ "why": "a value the shell hands the child, its own default included, is 'already set' (cli engineLifecycleManager.ts:1118 ENGINE_AUTO_EXIT ?? true, :1125 DRAIN_GRACE_MS ?? 60000, :1148 REMOTE_EXEC ?? host, :1157 AGENT_DATA_DIR ?? the computed data root): the profile's value never takes effect there, so the row is never written. Equal to the shell's value ⇒ unchanged (DRAIN_GRACE_MS); unequal, or a computed value that cannot be shown equal ⇒ os_env_wins",
339
+ "expectSnapshotEnv": { "ENGINE_AUTO_EXIT": "false", "DRAIN_GRACE_MS": "60000", "REMOTE_EXEC": "ssh", "AGENT_DATA_DIR": "/srv/sema-data" },
340
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l13", "version": 1 }, "server": { "env": { "ENGINE_AUTO_EXIT": "false", "DRAIN_GRACE_MS": "60000", "REMOTE_EXEC": "ssh", "AGENT_DATA_DIR": "/srv/sema-data" } } },
341
+ "observe": "at the next local engine start: ENGINE_AUTO_EXIT effective = true, REMOTE_EXEC = host, AGENT_DATA_DIR = the shell's data root; one config.profile_key_shadowed notice per shadowed key" },
342
+
343
+ { "id": "L14.pos", "rule": "L14", "expect": "accept", "expectRows": ["entitlement|allowFork|skipped|template"], "judge": "loader", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user",
344
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l14", "version": 1 }, "entitlement": { "runtimeCaps": { "allowFork": false } } },
345
+ "observe": "entitlement rows reported skipped:template; zero entitlement files written" },
346
+ { "id": "L14.neg", "rule": "L14", "expect": "reject", "code": "entitlement_written_locally", "judge": "loader", "executedBy": ["reference", "cli"], "channel": "user", "destination": "user", "mutateLoader": "writeEntitlementLocally",
347
+ "expectMutantRows": ["entitlement|allowFork|written|"],
348
+ "profile": { "$schema": "sema-profile@1", "meta": { "name": "v-l14", "version": 1 }, "entitlement": { "runtimeCaps": { "allowFork": false } } },
349
+ "observe": "loader-mutation vector: a loader that writes any local entitlement file is wrong (display-only: NON_PORTABLE_DOMAIN_REASONS.entitlement)" },
350
+
351
+ { "id": "B4.pos-parent-absent", "rule": "B4", "expect": "accept", "expectLeaves": ["env.MEMORY_CAPTURE_POLICY|added"], "judge": "posture compare (settings-schema tightenVerdict takes two present sides only: safety-merge-spec.ts:342-345 @ 28.0.0)", "executedBy": ["reference", "server"],
352
+ "why": "a key the parent does not pin: the child writes it with no comparator consulted and no refusal (MEMORY_CAPTURE_POLICY has no catalog comparator; the parent is absent, so there is nothing to compare). The builtin pair tenant-auto → tenant-managed has exactly this shape",
353
+ "posture": {
354
+ "parent": { "$schema": "sema-profile@1", "meta": { "name": "v-b4-parent", "version": 1 }, "server": { "env": { "REQUIRE_PRINCIPAL": "true" } } },
355
+ "child": { "$schema": "sema-profile@1", "meta": { "name": "v-b4-child", "version": 1, "extends": "v-b4-parent" }, "server": { "env": { "MEMORY_CAPTURE_POLICY": "capture-required" } } } } },
356
+ { "id": "B4.neg-parent-present-no-comparator", "rule": "B4", "expect": "reject", "code": "conflict_no_comparator", "key": "env.MEMORY_CAPTURE_POLICY", "judge": "posture compare (catalog row without a tighten column)", "executedBy": ["reference", "server"],
357
+ "why": "the parent pins the key and the catalog row has no comparator: unequal is refused (the retired shape: tenant-auto governed → tenant-managed capture-required)",
358
+ "posture": {
359
+ "parent": { "$schema": "sema-profile@1", "meta": { "name": "v-b4-parent", "version": 1 }, "server": { "env": { "MEMORY_CAPTURE_POLICY": "governed" } } },
360
+ "child": { "$schema": "sema-profile@1", "meta": { "name": "v-b4-child", "version": 1, "extends": "v-b4-parent" }, "server": { "env": { "MEMORY_CAPTURE_POLICY": "capture-required" } } } } }
361
+ ]
362
+ }