@sema-agent/settings-schema 34.1.0 → 35.1.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.
- package/CHANGELOG.md +482 -0
- package/README.md +73 -32
- package/conformance/VERSION +1 -1
- package/conformance/cases/c100-a2a-inside-stale-fingerprint-dropped/expected.json +101 -0
- package/conformance/cases/c100-a2a-inside-stale-fingerprint-dropped/input.json +28 -0
- package/conformance/cases/c100-a2a-inside-stale-fingerprint-dropped/meta.json +6 -0
- package/conformance/cases/c101-a2a-inside-incomplete-dropped/expected.json +113 -0
- package/conformance/cases/c101-a2a-inside-incomplete-dropped/input.json +38 -0
- package/conformance/cases/c101-a2a-inside-incomplete-dropped/meta.json +6 -0
- package/conformance/cases/c102-a2a-inside-incomplete-zero-survivors/expected.json +85 -0
- package/conformance/cases/c102-a2a-inside-incomplete-zero-survivors/input.json +34 -0
- package/conformance/cases/c102-a2a-inside-incomplete-zero-survivors/meta.json +6 -0
- package/conformance/cases/c103-mcp-caller-meta-declared/expected.json +106 -0
- package/conformance/cases/c103-mcp-caller-meta-declared/input.json +28 -0
- package/conformance/cases/c103-mcp-caller-meta-declared/meta.json +6 -0
- package/conformance/cases/c98-a2a-registration-keys-carried/expected.json +163 -0
- package/conformance/cases/c98-a2a-registration-keys-carried/input.json +42 -0
- package/conformance/cases/c98-a2a-registration-keys-carried/meta.json +6 -0
- package/conformance/cases/c99-a2a-preapproval-on-outside-peer-dropped/expected.json +100 -0
- package/conformance/cases/c99-a2a-preapproval-on-outside-peer-dropped/input.json +23 -0
- package/conformance/cases/c99-a2a-preapproval-on-outside-peer-dropped/meta.json +6 -0
- package/conformance/profile/annotations.md +65 -0
- package/conformance/profile/loading-rules.md +193 -0
- package/conformance/profile/profiles/solo-auto.json +22 -0
- package/conformance/profile/profiles/solo-managed.json +21 -0
- package/conformance/profile/profiles/tenant-auto.json +36 -0
- package/conformance/profile/profiles/tenant-managed.json +36 -0
- package/conformance/profile/sema-profile.schema.json +201 -0
- package/conformance/profile/tools/mutations.md +62 -0
- package/conformance/profile/tools/validate.mjs +1190 -0
- package/conformance/profile/vectors/frozen-promises.json +120 -0
- package/conformance/profile/vectors/vectors.json +362 -0
- package/dist/a2a-peer-identity.d.ts +116 -0
- package/dist/a2a-peer-identity.js +182 -0
- package/dist/atomic-write.js +1 -1
- package/dist/catalog-manages.js +2 -2
- package/dist/config-dir-migration.js +0 -1
- package/dist/config-document-refusal.d.ts +1 -1
- package/dist/config-fns.d.ts +21 -8
- package/dist/config-fns.js +16 -3
- package/dist/config-root-documents.d.ts +3 -54
- package/dist/config-root-documents.js +24 -21
- package/dist/config-root-node.d.ts +2 -96
- package/dist/config-root-node.js +15 -163
- package/dist/conformance/index.d.ts +1 -0
- package/dist/conformance/index.js +1 -0
- package/dist/conformance/profile.d.ts +55 -0
- package/dist/conformance/profile.js +108 -0
- package/dist/conformance/warnings.js +1 -1
- package/dist/env-model-table.d.ts +3 -3
- package/dist/env-model-table.js +5 -5
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/migration-receipt.d.ts +9 -11
- package/dist/migration-receipt.js +4 -5
- package/dist/node.d.ts +3 -3
- package/dist/node.js +3 -3
- package/dist/one-time-migrations.d.ts +3 -4
- package/dist/one-time-migrations.js +3 -28
- package/dist/retired-envs.js +5 -0
- package/dist/safety-merge-spec.d.ts +21 -0
- package/dist/safety-merge-spec.js +13 -0
- package/dist/scheduler-store-node.d.ts +14 -11
- package/dist/scheduler-store-node.js +22 -34
- package/dist/scheduler-store.d.ts +21 -6
- package/dist/scheduler-store.js +100 -19
- package/dist/settings-units.d.ts +9 -0
- package/dist/settings-units.js +12 -7
- package/dist/types.d.ts +44 -2
- package/dist/types.js +70 -2
- package/docs/API-SURFACE.md +38 -12
- package/docs/CC-DIVERGENCE.md +2 -1
- package/docs/CONFORMANCE.md +20 -3
- package/docs/CONSUMER-INTEGRATION.md +110 -13
- package/llms-full.txt +36 -13
- package/llms.txt +15 -5
- package/package.json +3 -3
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "内置预设的姿态即产品承诺,改值必须同时改这张表。 The builtin presets' posture is a product promise: changing any value in profiles/*.json requires changing this table in the same commit. This file is a deliberate second copy (a ratchet), not a source: profiles/*.json stay the truth the loaders read, and tools/validate.mjs (check group F) compares every builtin's EXPANDED document with the section below key by key — an extra key, a missing key or a different value is red. The other sections freeze loading-law facts that were guarded only by the vectors happening to use them (loading-rules.md §2 last paragraph lists which facts are frozen here and which are left to vectors, and why).",
|
|
3
|
+
"format": "sema-profile@1 frozen promises v1",
|
|
4
|
+
"builtins": {
|
|
5
|
+
"solo-auto": {
|
|
6
|
+
"$comment": "single user, autonomous. READ_FACE open is ruled for 'single user AND host lane' only (B3 pins the host lane).",
|
|
7
|
+
"extends": null,
|
|
8
|
+
"server.env": {
|
|
9
|
+
"REQUIRE_PRINCIPAL": "false",
|
|
10
|
+
"CONFIG_PROVIDER": "local",
|
|
11
|
+
"DB_BACKEND": "local",
|
|
12
|
+
"REMOTE_EXEC": "host",
|
|
13
|
+
"READ_FACE": "open"
|
|
14
|
+
},
|
|
15
|
+
"settings": {
|
|
16
|
+
"permissions.defaultMode": "auto"
|
|
17
|
+
},
|
|
18
|
+
"entitlement.runtimeCaps": {}
|
|
19
|
+
},
|
|
20
|
+
"solo-managed": {
|
|
21
|
+
"$comment": "single user, managed: solo-auto expanded under solo-managed.",
|
|
22
|
+
"extends": "solo-auto",
|
|
23
|
+
"server.env": {
|
|
24
|
+
"REQUIRE_PRINCIPAL": "false",
|
|
25
|
+
"CONFIG_PROVIDER": "local",
|
|
26
|
+
"DB_BACKEND": "local",
|
|
27
|
+
"REMOTE_EXEC": "host",
|
|
28
|
+
"READ_FACE": "roots",
|
|
29
|
+
"DURABLE_APPROVAL": "true",
|
|
30
|
+
"MANUAL_MODE_SHELL_GATE": "always"
|
|
31
|
+
},
|
|
32
|
+
"settings": {
|
|
33
|
+
"permissions.defaultMode": "default"
|
|
34
|
+
},
|
|
35
|
+
"entitlement.runtimeCaps": {}
|
|
36
|
+
},
|
|
37
|
+
"tenant-auto": {
|
|
38
|
+
"$comment": "multi-tenant, autonomous. MEMORY_CAPTURE_POLICY is ABSENT ON PURPOSE (自主租户不钉这只键: the deployment's own value, else the catalog default open, stands). allowMemoryOptOut is absent on purpose (on a SQL store the deployment's grant table writes it last and wins over center, so a template value decides nothing under open: loading-rules.md §2). The exact key-set comparison below is what keeps both absent.",
|
|
39
|
+
"extends": null,
|
|
40
|
+
"server.env": {
|
|
41
|
+
"REQUIRE_PRINCIPAL": "true",
|
|
42
|
+
"CONFIG_PROVIDER": "remote",
|
|
43
|
+
"DB_BACKEND": "pg",
|
|
44
|
+
"MEMORY_ENGINE_BACKEND": "pg",
|
|
45
|
+
"DURABLE_APPROVAL": "true",
|
|
46
|
+
"REMOTE_EXEC": "k8s",
|
|
47
|
+
"TOOL_APPROVAL_ENABLED": "true",
|
|
48
|
+
"ASK_QUESTION_ENABLED": "true",
|
|
49
|
+
"FORK_ENABLED": "true",
|
|
50
|
+
"SELF_ORCHESTRATION_ENABLED": "true"
|
|
51
|
+
},
|
|
52
|
+
"settings": {
|
|
53
|
+
"permissions.defaultMode": "auto",
|
|
54
|
+
"permissions.disableBypassPermissionsMode": true,
|
|
55
|
+
"sandbox.enabled": true
|
|
56
|
+
},
|
|
57
|
+
"entitlement.runtimeCaps": {
|
|
58
|
+
"allowBypassPermissions": false
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"tenant-managed": {
|
|
62
|
+
"$comment": "multi-tenant, managed: tenant-auto expanded under tenant-managed. MEMORY_CAPTURE_POLICY = capture-required is the promise '受管租户必采' (managed tenants always capture; every opt-out declaration refused, no verdict source asked): the catalog gives the key no comparator, tenant-auto does not pin the key, and tenant-managed pins capture-required. B4 reads this leaf as 'added' (the parent does not pin it), so B4 cannot guard its value — this table does. allowMemoryOptOut absent on purpose (not consulted under capture-required). READ_DENY_BUILTIN_TIERS follows core's full tier set (B5): when core adds a tier, the profile and this table change together.",
|
|
63
|
+
"extends": "tenant-auto",
|
|
64
|
+
"server.env": {
|
|
65
|
+
"REQUIRE_PRINCIPAL": "true",
|
|
66
|
+
"CONFIG_PROVIDER": "remote",
|
|
67
|
+
"DB_BACKEND": "pg",
|
|
68
|
+
"MEMORY_ENGINE_BACKEND": "pg",
|
|
69
|
+
"DURABLE_APPROVAL": "true",
|
|
70
|
+
"REMOTE_EXEC": "k8s",
|
|
71
|
+
"TOOL_APPROVAL_ENABLED": "true",
|
|
72
|
+
"ASK_QUESTION_ENABLED": "true",
|
|
73
|
+
"FORK_ENABLED": "true",
|
|
74
|
+
"SELF_ORCHESTRATION_ENABLED": "true",
|
|
75
|
+
"MANUAL_MODE_SHELL_GATE": "always",
|
|
76
|
+
"READ_FACE": "roots",
|
|
77
|
+
"APPROVAL_REQUIRE": "Write,Edit",
|
|
78
|
+
"READ_DENY_BUILTIN_TIERS": "credentials,shell-history,browser,wallet,agent-config",
|
|
79
|
+
"WORKFLOW_AGENTS_READONLY": "true",
|
|
80
|
+
"LOCKED_CONFIG_KEYS": "compliancePosture,retentionPolicy",
|
|
81
|
+
"MEMORY_CAPTURE_POLICY": "capture-required",
|
|
82
|
+
"TRACE_THINKING": "false",
|
|
83
|
+
"UNATTENDED_APPROVAL_POLICY": "deny"
|
|
84
|
+
},
|
|
85
|
+
"settings": {
|
|
86
|
+
"permissions.defaultMode": "default",
|
|
87
|
+
"permissions.disableBypassPermissionsMode": true,
|
|
88
|
+
"permissions.disableAutoMode": true,
|
|
89
|
+
"sandbox.enabled": true
|
|
90
|
+
},
|
|
91
|
+
"entitlement.runtimeCaps": {
|
|
92
|
+
"allowBypassPermissions": false,
|
|
93
|
+
"forceDurableGate": true,
|
|
94
|
+
"allowFork": false,
|
|
95
|
+
"allowWorkflows": false,
|
|
96
|
+
"autoMode": false
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"channelDestinations": {
|
|
101
|
+
"$comment": "L2: which channel may install into which destination (loading-rules.md §1 L2). The reference loader's own table must equal this one; the cells the v1 loaders run are pinned by vectors (L2.*, L9.pos-org, L9b.neg-policy-env, …).",
|
|
102
|
+
"builtin": ["deploy", "policy", "user", "project", "local", "flag", "session"],
|
|
103
|
+
"org": ["deploy", "policy"],
|
|
104
|
+
"user": ["deploy", "user", "project", "local", "flag", "session"]
|
|
105
|
+
},
|
|
106
|
+
"readBeforeFold": {
|
|
107
|
+
"$comment": "L5: keys read before the fold, which a profile may not write (v1 = the selector only, not the whole 'read at start-up' class).",
|
|
108
|
+
"keys": ["SEMA_PROFILE"]
|
|
109
|
+
},
|
|
110
|
+
"reportClosedSets": {
|
|
111
|
+
"$comment": "loading-rules.md §1.1: the report's outcome words, codes and envelope words (to be published as settings-schema constants; the code set is not final — the uninstall disclosure code is still to be named, §6.1 G-15). Every row any vector run emits must stay inside these sets, every vector's code must be one of them, every code must be exercised by at least one vector, and the loader-mutation judgement words must stay outside.",
|
|
112
|
+
"outcomes": ["written", "unchanged", "skipped", "rejected"],
|
|
113
|
+
"codes": ["shape", "hooks_shape", "channel_target", "extends", "read_before_fold", "unknown_key", "inert_key", "retired_key", "enum_value", "non_canonical", "domain_shape", "segment_unsupported", "secret_literal", "reference_unresolved", "reference_self", "reference_secret", "two_lanes", "segment_target", "catalog_name_in_settings_env", "layer_admission", "looser_than_existing", "conflict_no_comparator", "server_boot", "template", "host_forced_same", "not_applied_here", "os_env_wins"],
|
|
114
|
+
"judgementWords": ["silent_override", "entitlement_written_locally"],
|
|
115
|
+
"envelope": {
|
|
116
|
+
"mode": ["preview", "commit"],
|
|
117
|
+
"disposition": ["applied", "refused", "unknown"]
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|