@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,201 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:sema:schema:sema-profile@1",
4
+ "title": "sema-profile@1",
5
+ "description": "A sema profile: one JSON data file carrying values for the three existing injection points (server process env + config.d domains / CC-shape settings document / center entitlement template). A profile is never itself a configuration source: loading expands it into the existing sources, and every consumer keeps reading those sources. This schema judges SHAPE only. It is necessary, never sufficient: the binding gate is loading-rules.md, whose every value judgment is delegated to the single existing judge named in x-sema-judge (server config catalog, server loadConfig + CONFIG_CROSS_INVARIANTS, settings-schema layerAdmission / SAFETY_MERGE_SPEC / RUNTIME_CAP_STRICT / DOMAIN_SCHEMAS / classifyHooksConfig / containsSecretToken). A document that passes this schema and fails a loading rule is refused. Tighten-only across the four sources (org / user / project / session) is the loading rules' L9 (which segment may reach which destination), L11 (per-layer admission through settings-schema layerAdmission) and L12 / L12n (a write never loosens the destination's existing value, read fresh inside the write lock and normalised through its owner's reading first; no comparator, or a value the owner's reading cannot interpret, means unequal is a conflict — every env row without a catalog tighten column). The one stated exception is L13: at the fold (the deploy fold, and the local engine's fold of the user-landing snapshot) a value the fold finds already set wins over the profile, with a notice.",
6
+ "$comment": "Draft supplied by core. Intended home: @sema-agent/settings-schema as a closed zod schema (same package as SemaSettings / EntitlementRuntimeCaps), at which point every set marked x-sema-projection stops being a copy and imports its source constant; until then tools/validate.mjs fails when a copy drifts. Every member below a segment may be null: null is the delete operator of extends expansion (JSON Merge Patch), and the top-level if/then forbids null anywhere in a profile that has no parent. Vendor keywords: x-sema-judge (who decides a value beyond shape), x-sema-category (SAFETY_MERGE_SPEC category / member the unit merges under), x-sema-consumer (read point that makes an entitlement key live), x-sema-strict (RUNTIME_CAP_STRICT pole), x-sema-projection (source of a copied closed set).",
7
+ "type": "object",
8
+ "required": ["$schema", "meta"],
9
+ "properties": {
10
+ "$schema": { "const": "sema-profile@1", "description": "Format discriminator. A file in a managed-settings drop directory is a profile iff this member equals sema-profile@1." },
11
+ "meta": { "$ref": "#/$defs/meta" },
12
+ "server": { "$ref": "#/$defs/server" },
13
+ "settings": { "$ref": "#/$defs/settings" },
14
+ "entitlement": { "$ref": "#/$defs/entitlement" }
15
+ },
16
+ "unevaluatedProperties": false,
17
+ "if": { "type": "object", "properties": { "meta": { "type": "object", "not": { "type": "object", "properties": { "extends": {} }, "required": ["extends"] } } } },
18
+ "then": {
19
+ "$comment": "A profile with no parent has nothing to delete, so it carries no null anywhere (loading rule L3).",
20
+ "type": "object",
21
+ "properties": {
22
+ "server": { "$ref": "#/$defs/noNull" },
23
+ "settings": { "$ref": "#/$defs/noNull" },
24
+ "entitlement": { "$ref": "#/$defs/noNull" }
25
+ }
26
+ },
27
+ "$defs": {
28
+ "profileName": {
29
+ "type": "string",
30
+ "pattern": "^[a-z0-9](?:[a-z0-9-]{0,30}[a-z0-9])?$",
31
+ "description": "1-32 chars, lowercase letters, digits and inner hyphens. The builtin names are solo-auto / solo-managed / tenant-auto / tenant-managed."
32
+ },
33
+ "meta": {
34
+ "type": "object",
35
+ "additionalProperties": false,
36
+ "required": ["name", "version"],
37
+ "properties": {
38
+ "name": { "$ref": "#/$defs/profileName" },
39
+ "version": { "type": "integer", "minimum": 1, "description": "The profile's own revision, orthogonal to the $schema version." },
40
+ "extends": {
41
+ "$ref": "#/$defs/profileName",
42
+ "x-sema-judge": "loader (L4): single parent, resolved in the same channel namespace or among the builtins; depth <= 4; a cycle or a missing parent is refused."
43
+ },
44
+ "description": { "type": "string", "maxLength": 500 },
45
+ "origin": {
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "description": "Carried, not verified (v1; same posture as OrgRuleSnapshot.signature). WHO authored the profile is NOT a member: authority is derived from the channel the file arrived through (loading rule L2), never from a self-claim. WHERE it installs is not a member either: the destination is a load-time parameter.",
49
+ "properties": {
50
+ "issuer": { "type": "string", "maxLength": 200 },
51
+ "issuedAt": { "type": "string", "maxLength": 64 },
52
+ "signature": { "type": "string", "maxLength": 4096 }
53
+ }
54
+ }
55
+ }
56
+ },
57
+ "noNull": {
58
+ "$comment": "Recursive: no null at any depth.",
59
+ "type": ["object", "array", "string", "number", "integer", "boolean"],
60
+ "additionalProperties": { "$ref": "#/$defs/noNull" },
61
+ "items": { "$ref": "#/$defs/noNull" }
62
+ },
63
+ "envValue": {
64
+ "type": ["string", "null"],
65
+ "maxLength": 8192,
66
+ "pattern": "^(?:\\$\\{[A-Za-z_][A-Za-z0-9_]*\\}|(?![\\s\\S]*\\$\\{)[^\\u0000]*)$",
67
+ "description": "Either a literal (no '${' anywhere, no NUL) or one whole-value reference ${NAME}. A reference is resolved once, by the fold (the server's boot, or the local engine's boot for the user-landing snapshot), and never written back to any file. No interpolation inside a longer string. settings.env takes literals only: the shell has no resolution stage for it.",
68
+ "x-sema-judge": "loader (L6/L7): in server.env a catalog type secret key must be a reference and a reference naming the key it sits on is refused (required-ness belongs to the server's boot refusals, not to a self-reference); in settings.env any reference is refused (reference_unresolved) and a literal settings-schema containsSecretToken flags is refused (secret_literal)."
69
+ },
70
+ "boolOrNull": { "type": ["boolean", "null"] },
71
+ "pathList": { "type": ["array", "null"], "items": { "type": "string", "minLength": 1 } },
72
+ "server": {
73
+ "type": ["object", "null"],
74
+ "additionalProperties": false,
75
+ "description": "The server half. Only the deployment-side fold (SEMA_PROFILE, before loadConfig) and the user landing may apply it — at the user landing it is written verbatim as the snapshot the user settings' SEMA_PROFILE selector points at, and the local engine's own fold reads it; every other destination refuses the whole segment (loading rule L9).",
76
+ "properties": {
77
+ "env": {
78
+ "type": ["object", "null"],
79
+ "propertyNames": { "pattern": "^[A-Z][A-Z0-9_]*$" },
80
+ "additionalProperties": { "$ref": "#/$defs/envValue" },
81
+ "x-sema-judge": "server config catalog (L5): never the selector SEMA_PROFILE (read before the fold: read_before_fold); every key is a present CONFIG_CATALOG row, not envTiming inert, not a RETIRED_ENVS name; one spelling per value — an enum row's literal is in the row's echoWords ?? enumValues (a word in enumValues but not in echoWords is absence spelled differently and is refused); then server loadConfig incl. CONFIG_CROSS_INVARIANTS judges the combination at boot (L10)."
82
+ },
83
+ "config.d": {
84
+ "type": ["object", "null"],
85
+ "description": "Portable domain documents, applied as the lowest-priority in-memory overlay of the local config provider; never written to disk by the fold.",
86
+ "propertyNames": {
87
+ "enum": ["models", "rosters", "skills", "mcp", "plugins", "scenarios", "collab", "governance", "execution", "prompts", "limits", "a2a"],
88
+ "x-sema-projection": "@sema-agent/settings-schema PORTABLE_DOMAINS (src/portable-domains.ts:23 @ 28.0.0 f99acd5; its own leaf module since 14.6.0, not a package-root export)"
89
+ },
90
+ "additionalProperties": {
91
+ "type": ["object", "null"],
92
+ "x-sema-judge": "settings-schema DOMAIN_SCHEMAS[domain] (L5b); a fact that a catalog row's center seat maps to the same domain path must not also be set through server.env (L8)."
93
+ }
94
+ }
95
+ }
96
+ },
97
+ "ruleList": {
98
+ "type": ["array", "null"],
99
+ "maxItems": 1000,
100
+ "items": { "type": "string", "minLength": 1, "maxLength": 512 },
101
+ "x-sema-judge": "engine permission-rule compiler via the destination's existing name judge (deny / ask: refused when unreadable; allow: accepted and announced as permission.allowed_tool_not_granted when it reads as nothing)."
102
+ },
103
+ "settings": {
104
+ "type": ["object", "null"],
105
+ "additionalProperties": false,
106
+ "description": "CC-shape settings document, CLOSED to the ten settings units that carry a merge contract today (settings-schema SETTINGS_UNITS over SAFETY_MERGE_SPEC). SemaSettings itself is open ([k: string]: unknown), so it cannot be the key domain. A key outside this set is refused at the schema; adding one is a schema minor that first needs its SAFETY_MERGE_SPEC category.",
107
+ "x-sema-projection": "unit set: @sema-agent/settings-schema SETTINGS_UNITS (src/settings-units.ts:80 @ 28.0.0; cli UNIT_CATEGORY derives from it, keyContracts.ts:97); categories: SAFETY_MERGE_SPEC (src/safety-merge-spec.ts:393 @ 28.0.0)",
108
+ "properties": {
109
+ "permissions": {
110
+ "type": ["object", "null"],
111
+ "additionalProperties": false,
112
+ "properties": {
113
+ "allow": { "$ref": "#/$defs/ruleList", "x-sema-category": "permissions.allow (loosen, minTrust global)" },
114
+ "deny": { "$ref": "#/$defs/ruleList", "x-sema-category": "permissions.deny (tighten, minTrust local)" },
115
+ "ask": { "$ref": "#/$defs/ruleList", "x-sema-category": "permissions.ask (tighten, minTrust local)" },
116
+ "defaultMode": {
117
+ "enum": ["default", "acceptEdits", "plan", "auto", "dontAsk", null],
118
+ "x-sema-projection": "@sema-agent/core PERMISSION_MODES (src/core/ask-origin.ts:815 @ stage-7690) minus bypassPermissions",
119
+ "x-sema-category": "permissionMode (enumRank bypassPermissions < auto < acceptEdits < default < dontAsk < plan, minTrust global)",
120
+ "description": "No bypassPermissions: a profile only ever writes settings files, and a settings file never takes that word (SAFETY_MERGE_SPEC.permissionMode seam 'bypass = launch-flag only'; cli resolver refuses it from file sources, src/sema/settings/resolver.ts:1076-1080)."
121
+ },
122
+ "additionalDirectories": { "$ref": "#/$defs/pathList", "x-sema-category": "sandboxNetwork (whole key, minTrust global)" },
123
+ "disableBypassPermissionsMode": { "$ref": "#/$defs/boolOrNull", "x-sema-category": "killSwitches.disableBypassPermissionsMode (true pole admitted at local)" },
124
+ "disableAutoMode": {
125
+ "$ref": "#/$defs/boolOrNull",
126
+ "description": "One spelling: true. CC's managed-settings spells the ON pole \"disable\"; a profile is a new format and keeps one spelling (settings-schema boolPole strict:true).",
127
+ "x-sema-category": "killSwitches.disableAutoMode (true pole admitted at local)"
128
+ }
129
+ }
130
+ },
131
+ "sandbox": {
132
+ "type": ["object", "null"],
133
+ "additionalProperties": false,
134
+ "description": "Closed to the declared members of SAFETY_MERGE_SPEC.sandboxNetwork. The loosen face (network.allowedDomains, filesystem.allowWrite, excludedCommands, ...) is undeclared there and is not expressible in a v1 profile.",
135
+ "x-sema-projection": "@sema-agent/settings-schema SAFETY_MERGE_SPEC.sandboxNetwork.members (src/safety-merge-spec.ts:452 @ 28.0.0)",
136
+ "properties": {
137
+ "enabled": { "$ref": "#/$defs/boolOrNull" },
138
+ "allowUnsandboxedCommands": { "$ref": "#/$defs/boolOrNull" },
139
+ "autoAllowBashIfSandboxed": { "$ref": "#/$defs/boolOrNull" },
140
+ "enableWeakerNestedSandbox": { "$ref": "#/$defs/boolOrNull" },
141
+ "enableWeakerNetworkIsolation": { "$ref": "#/$defs/boolOrNull" },
142
+ "network": {
143
+ "type": ["object", "null"],
144
+ "additionalProperties": false,
145
+ "properties": {
146
+ "allowManagedDomainsOnly": { "$ref": "#/$defs/boolOrNull" },
147
+ "allowAllUnixSockets": { "$ref": "#/$defs/boolOrNull" },
148
+ "allowLocalBinding": { "$ref": "#/$defs/boolOrNull" }
149
+ }
150
+ },
151
+ "filesystem": {
152
+ "type": ["object", "null"],
153
+ "additionalProperties": false,
154
+ "properties": {
155
+ "allowManagedReadPathsOnly": { "$ref": "#/$defs/boolOrNull" },
156
+ "denyWrite": { "$ref": "#/$defs/pathList" },
157
+ "denyRead": { "$ref": "#/$defs/pathList" }
158
+ }
159
+ }
160
+ }
161
+ },
162
+ "hooks": {
163
+ "type": ["object", "null"],
164
+ "x-sema-category": "hooks (runAll, no comparator, minTrust project)",
165
+ "x-sema-judge": "settings-schema classifyHooksConfig (bad shape refused with the field it names)."
166
+ },
167
+ "env": {
168
+ "type": ["object", "null"],
169
+ "propertyNames": { "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" },
170
+ "additionalProperties": { "$ref": "#/$defs/envValue" },
171
+ "x-sema-category": "env (concat, later layer overrides same name, no comparator, minTrust project)",
172
+ "x-sema-judge": "loader L9b (a name that is a server catalog row is classified by NAME and refused at every destination: an engine knob is set through server.env only) + L7 (no reference: the shell has no resolution stage for settings.env) + L6 (secret-looking literal via settings-schema containsSecretToken)."
173
+ },
174
+ "model": { "type": ["string", "null"], "minLength": 1, "x-sema-category": "model (replace, no comparator, minTrust session)" },
175
+ "outputStyle": { "type": ["string", "null"], "minLength": 1, "x-sema-category": "ui (replace, no comparator, minTrust local)" }
176
+ }
177
+ },
178
+ "entitlement": {
179
+ "type": ["object", "null"],
180
+ "additionalProperties": false,
181
+ "description": "Center entitlement TEMPLATE. Locally it is display-only (settings-schema NON_PORTABLE_DOMAIN_REASONS.entitlement: a local entitlement file would be a control surface nothing enforces); center uses it as the per-principal default bottom, composed under RUNTIME_CAP_STRICT.",
182
+ "properties": {
183
+ "runtimeCaps": {
184
+ "type": ["object", "null"],
185
+ "additionalProperties": false,
186
+ "description": "Seven keys: every EntitlementRuntimeCaps member that has a read point. allowUltracode (zero readers; the server drops it) and allowAutoMode (the server folds it into autoMode = a second source of the same deny bit; retired) are refused: a profile must not write a deny nothing reads, nor a second spelling of one fact.",
187
+ "x-sema-projection": "@sema-agent/settings-schema EntitlementRuntimeCaps (src/types.ts:1232 @ 28.0.0) minus the two keys above; poles from RUNTIME_CAP_STRICT (src/types.ts:1299 @ 28.0.0)",
188
+ "properties": {
189
+ "allowWorkflows": { "$ref": "#/$defs/boolOrNull", "x-sema-strict": false, "x-sema-consumer": "server toCoreRuntimeCaps (src/runtime-caps-resolver.ts:241 @ v7.154.0) :248 -> core RuntimeCaps.allowWorkflows (src/core/runtime-caps.ts:119 @ stage-7690)" },
190
+ "allowFork": { "$ref": "#/$defs/boolOrNull", "x-sema-strict": false, "x-sema-consumer": "server :250 -> core RuntimeCaps.allowFork (:128)" },
191
+ "allowObservers": { "$ref": "#/$defs/boolOrNull", "x-sema-strict": false, "x-sema-consumer": "server :251 -> core RuntimeCaps.allowObservers (:138), === true opt-in" },
192
+ "forceDurableGate": { "$ref": "#/$defs/boolOrNull", "x-sema-strict": true, "x-sema-consumer": "server :249 -> core RuntimeCaps.forceDurableGate (:157)" },
193
+ "autoMode": { "$ref": "#/$defs/boolOrNull", "x-sema-strict": false, "x-sema-consumer": "server :255-256 -> core RuntimeCaps.autoMode (:174), === false denies" },
194
+ "allowMemoryOptOut": { "$ref": "#/$defs/boolOrNull", "x-sema-strict": false, "x-sema-consumer": "server :271 -> core RuntimeCaps.allowMemoryOptOut (:216); on a SQL store the deployment's grant table writes this key last and wins over center (server src/runtime-caps-resolver.ts:617-634, src/plugins/memory-optout-grant-store-sql.ts:79-88), so a center template value speaks only on the grant table's read-fault path; not consulted at all under MEMORY_CAPTURE_POLICY=capture-required (core src/core/runner/memory-capture-optout.ts:68; server docs/ASSISTANT-WIRE-CONTRACT.md:7096). No builtin pins it (loading-rules.md §2)" },
195
+ "allowBypassPermissions": { "$ref": "#/$defs/boolOrNull", "x-sema-strict": false, "x-sema-consumer": "server :269 (false only) -> core RuntimeCaps.bypassPermissions (:191)" }
196
+ }
197
+ }
198
+ }
199
+ }
200
+ }
201
+ }
@@ -0,0 +1,62 @@
1
+ # per-fixture mutation table (reference loader)
2
+
3
+ > **Package boundary note**: This document is reference material handed over by the engine team. The `validate.mjs --mutate` commands below require source snapshots of other repositories and are **not runnable from the installed `@sema-agent/settings-schema` package alone**. What this package guarantees is the reader exported from `@sema-agent/settings-schema/conformance` and the shipped files themselves.
4
+
5
+ Runner: each row = one `validate.mjs --mutate <id>` run against source snapshots of the engine, server, CLI, and settings-schema repositories (recorded in the engine repository). Baseline (2026-11-15): 162 checks, 0 red, 3 deferred (`L5b.neg-unsupported` → server, `L5b.neg-unsupported-user` → cli, `L10.neg` → server), exit 0.
6
+
7
+ L-mutations switch one loading-rule check off (or swap in a named defect) inside the reference loader; M / ALL / ENV mutations break the loader's REPORT or envelope (the exact-output, all-or-nothing and envelope assertions every vector carries must catch them); B-mutations edit one builtin file in memory, or the posture comparison. A row passes the proof when at least one fixture that should catch it turns red. History: initial 23 rows → 28 (L12n, L12:stale-read, M24, M25, M26) → 30 (L13; B4:no-comparator-env) → 39 (L5:regex-number, L7:detail-prose, L9:conditional-delete-scrubbed, L12:refuse-own-selector, L12:selector-unnamed, L13:shell-defaults-absent, ALL:snapshot-on-refusal, ENV:always-applied, B4:absent-parent-compared; B4:no-comparator-env redefined: the PARENT pins the comparator-less key again, since tenant-managed's capture-required now sits over an absent parent). Three mutations added after review that no fixture caught previously — refusing the loader's own selector, a foreign-selector detail that does not name the selector, a snapshot written on refusal — are rows L12:refuse-own-selector, L12:selector-unnamed and ALL:snapshot-on-refusal now, and each bites. → 50 (L4:deploy-any-parent and L12:deploy-compare after aligning the deploy landing; the F rows: changing tenant-managed's MEMORY_CAPTURE_POLICY to `governed` previously stayed green because B4 reads a leaf over an absent parent as "added" and no vector asserted the value; F:tenant-managed-memory is that counterexample, and it is red now through the frozen table only).
8
+
9
+ | mutation | what changes | fixtures that turn red | proof |
10
+ |---|---|---|---|
11
+ | L1 | the root document's L1 off (the after-expansion pass still catches shape / hooks) | L1.neg | ok |
12
+ | L2 | channel × destination check off | L2.neg, L2.neg-org-user | ok |
13
+ | L3 | schema if/then (null only with a parent) removed | L3.neg | ok |
14
+ | L4 | extends cycle / per-parent L1 checks off | L4.neg, L4.neg-parent-shape, L4.neg-parent-hooks | ok |
15
+ | L5 | key domain (selector, retired, unknown, inert) + one-value-one-form off | L5.neg, L5.neg-echo, L5.neg-bool, L5.neg-number, L5.neg-cap-off-spelling, L5.neg-number-negzero, L5.neg-csv-space, L5.neg-unknown, L5.neg-unresolved-enum, L5.neg-retired, L5.neg-inert, L5.neg-selector, L5.neg-selector-settings-env | ok |
16
+ | L5:regex-number | the spelling judge swapped back to the round-1 reading (a decimal regex for numbers, nothing for csv) instead of the server reading's `canonical` bit | L5.neg-cap-off-spelling, L5.neg-number-negzero, L5.neg-csv-space | ok |
17
+ | L5b | DOMAIN_SCHEMAS parse off | L5b.neg | ok |
18
+ | L6 | secret-literal check off | L6.neg | ok |
19
+ | L7 | reference checks off (server.env self / secret / unresolved; settings.env any reference) | L7.neg, L7.neg-unresolved, L7.neg-secret-server, L7.neg-secret, L7.neg-settings-env-unresolved | ok |
20
+ | L7:detail-prose | the settings.env arm's detail is prose instead of the token `no_resolution_stage` | L7.neg-secret, L7.neg-settings-env-unresolved | ok |
21
+ | L8 | one-fact-one-lane (env vs config.d) off | L8.neg | ok |
22
+ | L9 | segment × destination / channel / child-env clash off | L9.neg, L9.neg-tenant-managed, L9.neg-dynamic-forced, L9.neg-scrubbed, L9.neg-server-at-policy, L9.neg-server-at-project, L9.neg-server-at-local, L9.neg-server-at-flag, L9.neg-server-at-session, L9.neg-session-settings, L9.neg-org | ok |
23
+ | L9:conditional-delete-scrubbed | a conditional delete of the shell (READ_FACE, MANUAL_MODE_SHELL_GATE, MEMORY_SYNC_*) read as a scrub | L4.pos, L4.pos-segment-null, L9.pos, L9.pos-preview, L9.pos-solo-managed, L12.pos-env, L12.pos-env-proposed, L12.neg-env-proposed, L12.neg-foreign-selector, L12.pos-own-selector, L13.pos-user-shadowed | ok |
24
+ | L9b | settings.env classified-by-name off | L9b.neg-settings-env-principal, L9b.neg, L9b.neg-user-enum, L9b.neg-two-lanes, L9b.neg-policy-env | ok |
25
+ | L11 | layerAdmission off | L11.neg, L11.neg-unknown-trust | ok |
26
+ | L12 | tighten-on-write off (settings units, the user-landing snapshot, the foreign-selector refusal) | L12.neg, L12.neg-nocomparator, L12.neg-sandbox-deny, L12.pos-env, L12.neg-env, L12.neg-env-proposed, L12.neg-env-reference, L12.neg-env-negative-cap, L12.neg-foreign-selector, L12n.neg-killswitch-disable, L12n.neg-killswitch-disable-policy, L12n.neg-killswitch-uninterpretable, L12n.pos-env-bool-word, L12n.neg-env-bool-word | ok |
27
+ | L12n | the owners' readings off (both sides compared raw) | L12.neg-env-negative-cap, L12n.neg-killswitch-disable, L12n.neg-killswitch-disable-policy, L12n.pos-env-bool-word, L12n.neg-env-bool-word, L12.pos-env-emptyword, L13.pos-equal, L13.pos-empty | ok |
28
+ | L12:stale-read | compare / merge against the loader's first snapshot instead of a fresh read inside the write lock | L12.pos-union-concurrent | ok |
29
+ | L12:refuse-own-selector | a selector this loader's own record wrote is treated as foreign (re-install refused) | L12.pos-own-selector | ok |
30
+ | L12:selector-unnamed | the foreign-selector refusal's detail does not name the selector | L12.neg-foreign-selector | ok |
31
+ | L13 | the fold ignores what is already set (writes over the OS env / what the shell hands the child) | L3.pos, L4.pos, L4.pos-segment-null, L9.pos, L9.pos-preview, L9.pos-solo-managed, L13.pos-shadowed, L13.pos-shadowed-no-comparator, L13.pos-equal, L13.pos-user-shadowed, L13.pos-user-shell-default | ok |
32
+ | L13:shell-defaults-absent | at the user landing only settings.env counts as set (the shell's own defaults ignored: the round-1 reading) | L3.pos, L4.pos, L4.pos-segment-null, L9.pos, L9.pos-preview, L9.pos-solo-managed, L13.pos-user-shell-default | ok |
33
+ | L14 | loader writes the entitlement segment locally | L14.pos | ok |
34
+ | M24:segment-null-retains | a segment-level null keeps the inherited segment | L4.pos-segment-null | ok |
35
+ | M25:no-entitlement-report | the loader emits no entitlement rows | L10.pos, L10.pos-managed, L14.pos, L14.neg | ok |
36
+ | M26:drop-success-rows | the loader reports only its refusals | every positive vector with a non-empty report, L13.neg and L14.neg (37) | ok |
37
+ | ALL:snapshot-on-refusal | a refused report still writes the snapshot (all-or-nothing broken) | L9b.neg-two-lanes, L12.neg-env, L12.neg-env-proposed, L12.neg-env-reference, L12.neg-env-negative-cap, L12n.neg-env-bool-word | ok |
38
+ | ENV:always-applied | the envelope says `applied` whatever the rows say | every negative vector the reference loader runs (62) | ok |
39
+ | B1:rename | `solo-auto` meta.name → `local-solo` | B1 solo-auto | ok |
40
+ | B2:cross-axis | `tenant-auto` extends `solo-managed` | B2 tenant-auto, F tenant-auto (+ L10.pos) | ok |
41
+ | B3:shared-lane | `tenant-auto` REMOTE_EXEC → `host` | B3 tenant-auto, B3 tenant-managed (+ F tenant-auto, F tenant-managed) | ok |
42
+ | B3:solo-lane | `solo-auto` REMOTE_EXEC → `ssh` | B3 solo-auto, B3 solo-managed (+ F solo-auto, F solo-managed, L3.pos, L4.pos, L4.pos-segment-null, L9.pos, L9.pos-preview, L9.pos-solo-managed) | ok |
43
+ | B4:loosen | `tenant-managed` sets `sandbox.enabled:false` (the parent's strict pole) | B4 tenant-managed (+ F tenant-managed) | ok |
44
+ | B4:no-comparator | `solo-managed` overrides CONFIG_PROVIDER (no comparator) | B4 solo-managed (+ B3 solo-managed, F solo-managed, L9.pos-solo-managed) | ok |
45
+ | B4:no-comparator-env | `tenant-auto` pins MEMORY_CAPTURE_POLICY `governed` again (parent present, no catalog comparator, child writes `capture-required`) | B4 tenant-managed (+ F tenant-auto, L10.pos) | ok |
46
+ | B4:absent-parent-compared | a leaf the parent does not pin is compared against the catalog's static default instead of being "added" | B4 tenant-managed, B4.pos-parent-absent | ok |
47
+ | B4:container-delete | `tenant-managed` deletes `settings.permissions` and `entitlement.runtimeCaps` | B4 tenant-managed (+ F tenant-managed, L10.pos-managed) | ok |
48
+ | B5:vocab-grows | core READ_DENY_BUILTIN_TIERS gains a tier | B5 tenant-managed | ok |
49
+ | B6:unknown-key | `solo-auto` gains a non-catalog env key | B6 solo-auto, F solo-auto, F solo-managed, and the vectors that load solo-auto (L3.pos, L4.pos, L4.pos-segment-null, L9.pos, L9.pos-preview, L9.pos-solo-managed) | ok |
50
+ | F:solo-auto-value | `solo-auto` `permissions.defaultMode` auto → acceptEdits (no vector asserts the value; B4 still reads solo-managed's `default` as stricter) | F solo-auto | ok |
51
+ | F:solo-managed-value | `solo-managed` `DURABLE_APPROVAL` → `"false"` (a leaf over an absent parent: B4 reads "added") | F solo-managed (+ L9.pos-solo-managed's snapshot) | ok |
52
+ | F:tenant-auto-value | `tenant-auto` `FORK_ENABLED` → `"false"` | F tenant-auto, F tenant-managed (it expands tenant-auto) | ok |
53
+ | F:tenant-managed-memory | `tenant-managed` `MEMORY_CAPTURE_POLICY` → `governed` (counterexample: «受管租户必采» broken) | F tenant-managed — nothing else | ok |
54
+ | F:tenant-managed-cap | `tenant-managed` entitlement `allowFork` → `true` (a cap over an absent parent: B4 reads "added") | F tenant-managed — nothing else | ok |
55
+ | F:table-row-deleted | the frozen table loses `tenant-managed` `MEMORY_CAPTURE_POLICY` | F tenant-managed | ok |
56
+ | F:table-value-changed | the frozen table's `solo-auto` `permissions.defaultMode` changed | F solo-auto | ok |
57
+ | F:matrix-cell | the loader's channel × destination table lets `org` install into `user` | F channelDestinations, L2.neg-org-user | ok |
58
+ | F:code-renamed | the loader emits `host_forced_equal` instead of `host_forced_same` | F closed-set:emitted-rows (+ the six positives that expect host_forced_same) | ok |
59
+ | L4:deploy-any-parent | at deploy a parent may come from the user's own namespace (the server fold knows the builtins only) | L4.neg-deploy-parent | ok |
60
+ | L12:deploy-compare | L12's "unequal without a comparator is refused" carried onto the deploy landing (where L13 holds: the OS value stands, no refusal) | L13.pos-shadowed-no-comparator | ok |
61
+
62
+ Not mutated here: L10 (server loadConfig + CONFIG_CROSS_INVARIANTS: the reference loader runs only the report half of L10.pos / L10.pos-managed), the L13 / L10 `observe` halves (effective value, boot notice: the server's), and the server / cli v1 refusal `segment_unsupported` (the reference loader models the full law, config.d included). L1.pos has an empty report, so M26 cannot turn it red; every other positive vector does.