@ixo/domain.md 0.3.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 (70) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +6 -0
  3. package/README.md +30 -0
  4. package/assets/domain-md.schema.json +1103 -0
  5. package/assets/oracle-capsule-jcs-vectors.json +57 -0
  6. package/assets/oracle-capsule-manifest-contract.md +72 -0
  7. package/assets/oracle-capsule-source-lock.schema.json +45 -0
  8. package/assets/oracle-capsule.schema.json +265 -0
  9. package/assets/rules.json +275 -0
  10. package/assets/spec.md +1434 -0
  11. package/assets/template-manifest.schema.json +57 -0
  12. package/dist/capsule/index.d.ts +75 -0
  13. package/dist/capsule/index.js +20 -0
  14. package/dist/capsule/index.js.map +1 -0
  15. package/dist/chunk-BYBC2TSS.js +597 -0
  16. package/dist/chunk-BYBC2TSS.js.map +1 -0
  17. package/dist/chunk-G7PZJYAJ.js +31826 -0
  18. package/dist/chunk-G7PZJYAJ.js.map +1 -0
  19. package/dist/chunk-R6QZRNEX.js +164 -0
  20. package/dist/chunk-R6QZRNEX.js.map +1 -0
  21. package/dist/chunk-T3STBWXP.js +46 -0
  22. package/dist/chunk-T3STBWXP.js.map +1 -0
  23. package/dist/chunk-W7MRQP7I.js +862 -0
  24. package/dist/chunk-W7MRQP7I.js.map +1 -0
  25. package/dist/chunk-XDIWMZVF.js +1150 -0
  26. package/dist/chunk-XDIWMZVF.js.map +1 -0
  27. package/dist/cli-KcUIQEiE.d.ts +171 -0
  28. package/dist/cli.d.ts +2 -0
  29. package/dist/cli.js +400 -0
  30. package/dist/cli.js.map +1 -0
  31. package/dist/index.d.ts +12 -0
  32. package/dist/index.js +83 -0
  33. package/dist/index.js.map +1 -0
  34. package/dist/resolver-B3mwnjJq.d.ts +96 -0
  35. package/dist/spec.d.ts +20 -0
  36. package/dist/spec.js +23 -0
  37. package/dist/spec.js.map +1 -0
  38. package/dist/templates/index.d.ts +7 -0
  39. package/dist/templates/index.js +24 -0
  40. package/dist/templates/index.js.map +1 -0
  41. package/dist/workers-Dr8B8a2O.d.ts +19 -0
  42. package/dist/workers.d.ts +3 -0
  43. package/dist/workers.js +31 -0
  44. package/dist/workers.js.map +1 -0
  45. package/package.json +97 -0
  46. package/src/capsule/canonical.ts +74 -0
  47. package/src/capsule/index.ts +10 -0
  48. package/src/capsule/json.ts +373 -0
  49. package/src/capsule/types.ts +63 -0
  50. package/src/capsule/validate.ts +551 -0
  51. package/src/cli.ts +405 -0
  52. package/src/compiled-validators.d.ts +7 -0
  53. package/src/compiled-validators.js +32512 -0
  54. package/src/constants.ts +250 -0
  55. package/src/diff.ts +111 -0
  56. package/src/export.ts +28 -0
  57. package/src/index.ts +36 -0
  58. package/src/lint.ts +42 -0
  59. package/src/parser.ts +174 -0
  60. package/src/sarif.ts +49 -0
  61. package/src/semantic.ts +1156 -0
  62. package/src/spec.ts +48 -0
  63. package/src/templates/errors.ts +3 -0
  64. package/src/templates/index.ts +11 -0
  65. package/src/templates/manifest.ts +94 -0
  66. package/src/templates/render.ts +435 -0
  67. package/src/templates/resolver.ts +200 -0
  68. package/src/templates/types.ts +98 -0
  69. package/src/types.ts +195 -0
  70. package/src/workers.ts +6 -0
@@ -0,0 +1,275 @@
1
+ {
2
+ "specVersion": "1.0.0-rc.3",
3
+ "rules": [
4
+ {
5
+ "code": "file-too-large",
6
+ "severity": "error",
7
+ "description": "Reject domain input that exceeds the configured byte limit before model construction."
8
+ },
9
+ {
10
+ "code": "encoding",
11
+ "severity": "error",
12
+ "description": "Require strict UTF-8 without a byte-order mark."
13
+ },
14
+ {
15
+ "code": "missing-frontmatter",
16
+ "severity": "error",
17
+ "description": "Require YAML frontmatter at the beginning of every domain.md."
18
+ },
19
+ {
20
+ "code": "frontmatter-fence",
21
+ "severity": "error",
22
+ "description": "Require exactly one valid frontmatter fence at the beginning of the document."
23
+ },
24
+ {
25
+ "code": "frontmatter-shape",
26
+ "severity": "error",
27
+ "description": "Require frontmatter to decode to a mapping."
28
+ },
29
+ {
30
+ "code": "unsafe-yaml",
31
+ "severity": "error",
32
+ "description": "Reject duplicate keys, aliases, anchors, custom tags, merge keys, and unsafe YAML limits."
33
+ },
34
+ {
35
+ "code": "schema",
36
+ "severity": "error",
37
+ "description": "Require frontmatter to satisfy the matching domain.md JSON Schema."
38
+ },
39
+ {
40
+ "code": "profile-mismatch",
41
+ "severity": "error",
42
+ "description": "Require an asserted profile to match the document profile."
43
+ },
44
+ {
45
+ "code": "template-placeholder",
46
+ "severity": "error",
47
+ "description": "Reject unresolved authoring or publication placeholders in conforming output."
48
+ },
49
+ {
50
+ "code": "secret-in-index",
51
+ "severity": "error",
52
+ "description": "Reject secret-bearing fields and private key material."
53
+ },
54
+ {
55
+ "code": "privacy-public-sensitive",
56
+ "severity": "error",
57
+ "description": "Reject public access for sensitive documents, resources, and services."
58
+ },
59
+ {
60
+ "code": "duplicate-entry-id",
61
+ "severity": "error",
62
+ "description": "Require controller, right, resource, flow, and transition identifiers to be unique."
63
+ },
64
+ {
65
+ "code": "duplicate-section",
66
+ "severity": "error",
67
+ "description": "Reject duplicate canonical Markdown sections."
68
+ },
69
+ {
70
+ "code": "missing-required-section",
71
+ "severity": "error",
72
+ "description": "Require every section declared by validation.required_sections."
73
+ },
74
+ {
75
+ "code": "section-order",
76
+ "severity": "warning",
77
+ "description": "Report canonical sections that appear out of order."
78
+ },
79
+ {
80
+ "code": "unknown-section",
81
+ "severity": "info",
82
+ "description": "Preserve and report unknown Markdown sections."
83
+ },
84
+ {
85
+ "code": "unknown-top-level-key",
86
+ "severity": "warning",
87
+ "description": "Report unknown non-extension frontmatter fields."
88
+ },
89
+ {
90
+ "code": "document-contract",
91
+ "severity": "error",
92
+ "description": "Enforce universal roles, manifest authority, disclosure, privacy, and profile identity rules."
93
+ },
94
+ {
95
+ "code": "constitution-required",
96
+ "severity": "error",
97
+ "description": "Require governed and agentic domains to declare a complete constitutional package."
98
+ },
99
+ {
100
+ "code": "constitutional-subject-profile-unresolved",
101
+ "severity": "error",
102
+ "description": "Require every domain to classify its subject and resolve each declared constitutional facet."
103
+ },
104
+ {
105
+ "code": "constitution-not-applicable-invalid",
106
+ "severity": "error",
107
+ "description": "Permit not_applicable only for passive domains without agent or executable governance."
108
+ },
109
+ {
110
+ "code": "constitutional-instrument-unresolved",
111
+ "severity": "error",
112
+ "description": "Require every constitutional instrument to resolve to a unique domain document entry."
113
+ },
114
+ {
115
+ "code": "constitutional-authority-unverified",
116
+ "severity": "error",
117
+ "description": "Require jurisdiction and authority evidence before legal effect may be marked verified."
118
+ },
119
+ {
120
+ "code": "constitutional-execution-incomplete",
121
+ "severity": "error",
122
+ "description": "Require executable governance implementations, tests, enforcement points, and fail-closed policy."
123
+ },
124
+ {
125
+ "code": "constitutional-ai-incomplete",
126
+ "severity": "error",
127
+ "description": "Require agentic domains to bind principles, procedures, agents, conflict policy, and an audit record."
128
+ },
129
+ {
130
+ "code": "constitution-conflicts-canonical",
131
+ "severity": "error",
132
+ "description": "Reject inconsistent effective periods or simultaneously canonical superseded instruments."
133
+ },
134
+ {
135
+ "code": "constitutional-amendment-unapproved",
136
+ "severity": "error",
137
+ "description": "Require amending instruments to resolve an amendment procedure and constitutional authority source."
138
+ },
139
+ {
140
+ "code": "broken-local-reference",
141
+ "severity": "error",
142
+ "description": "Require locally scoped controller, right, resource, claim, flow, and transition references to resolve."
143
+ },
144
+ {
145
+ "code": "source-authority",
146
+ "severity": "error",
147
+ "description": "Require fact-scoped authority sources to appear in the conflict-resolution order."
148
+ },
149
+ {
150
+ "code": "incomplete-claim-contract",
151
+ "severity": "error",
152
+ "description": "Require claim evidence, rubric, determination, review, and next-action contracts."
153
+ },
154
+ {
155
+ "code": "invalid-flow",
156
+ "severity": "error",
157
+ "description": "Require valid, reachable, right-gated flow transitions and review for consequential effects."
158
+ },
159
+ {
160
+ "code": "template-contract",
161
+ "severity": "error",
162
+ "description": "Require a pinned protocol, derived type, allowlisted path, parameter schema, and verified file identity."
163
+ },
164
+ {
165
+ "code": "integrity-mismatch",
166
+ "severity": "error",
167
+ "description": "Reject bytes that do not match their declared SHA-256 digest or CID."
168
+ },
169
+ {
170
+ "code": "network-policy",
171
+ "severity": "error",
172
+ "description": "Reject unsafe HTTPS or IPFS retrieval, redirects, credentials, and private network targets."
173
+ },
174
+ {
175
+ "code": "runtime-external-checks-required",
176
+ "severity": "info",
177
+ "description": "Identify checks that static validation cannot prove for anchored and runtime profiles."
178
+ },
179
+ {
180
+ "code": "capsule-file-too-large",
181
+ "severity": "error",
182
+ "description": "Reject an Oracle Capsule JSON document above the frozen byte budget."
183
+ },
184
+ {
185
+ "code": "capsule-encoding",
186
+ "severity": "error",
187
+ "description": "Require strict UTF-8 without a byte-order mark for capsule JSON."
188
+ },
189
+ {
190
+ "code": "capsule-json-syntax",
191
+ "severity": "error",
192
+ "description": "Require unambiguous JSON syntax before validation or hashing."
193
+ },
194
+ {
195
+ "code": "capsule-duplicate-key",
196
+ "severity": "error",
197
+ "description": "Reject duplicate JSON object names before model construction."
198
+ },
199
+ {
200
+ "code": "capsule-unicode",
201
+ "severity": "error",
202
+ "description": "Reject lone Unicode surrogate data that is not I-JSON compatible."
203
+ },
204
+ {
205
+ "code": "capsule-number",
206
+ "severity": "error",
207
+ "description": "Reject non-finite and non-interoperable unsafe integer values."
208
+ },
209
+ {
210
+ "code": "capsule-limit",
211
+ "severity": "error",
212
+ "description": "Enforce capsule depth, node, scalar, file-count and byte budgets."
213
+ },
214
+ {
215
+ "code": "capsule-schema",
216
+ "severity": "error",
217
+ "description": "Require the manifest and source lock to satisfy their frozen schemas."
218
+ },
219
+ {
220
+ "code": "capsule-cid",
221
+ "severity": "error",
222
+ "description": "Require CIDv1 raw sha2-256 content addresses."
223
+ },
224
+ {
225
+ "code": "capsule-integrity",
226
+ "severity": "error",
227
+ "description": "Reject disagreements among exact bytes, byte lengths, SHA-256 digests and CIDs."
228
+ },
229
+ {
230
+ "code": "capsule-uri-policy",
231
+ "severity": "error",
232
+ "description": "Reject invalid, credential-bearing, query-bearing or mutable artifact URI forms."
233
+ },
234
+ {
235
+ "code": "capsule-duplicate-id",
236
+ "severity": "error",
237
+ "description": "Require component, tool and capability request identifiers to be unique."
238
+ },
239
+ {
240
+ "code": "capsule-reference",
241
+ "severity": "error",
242
+ "description": "Require component dependencies and requested tool references to resolve locally."
243
+ },
244
+ {
245
+ "code": "capsule-dependency-cycle",
246
+ "severity": "error",
247
+ "description": "Reject cyclic component dependency graphs."
248
+ },
249
+ {
250
+ "code": "capsule-lock",
251
+ "severity": "error",
252
+ "description": "Require complete, exact and component-bound source locks."
253
+ },
254
+ {
255
+ "code": "capsule-duplicate-path",
256
+ "severity": "error",
257
+ "description": "Reject duplicate paths in source locks."
258
+ },
259
+ {
260
+ "code": "capsule-path-collision",
261
+ "severity": "error",
262
+ "description": "Reject locked paths that collide on case-insensitive portable hosts."
263
+ },
264
+ {
265
+ "code": "capsule-release-digest",
266
+ "severity": "error",
267
+ "description": "Require the declared release digest to match the RFC 8785 release projection."
268
+ },
269
+ {
270
+ "code": "capsule-canonicalization",
271
+ "severity": "error",
272
+ "description": "Reject values that cannot be serialized by the frozen RFC 8785 contract."
273
+ }
274
+ ]
275
+ }