@logicsrc/schemas 0.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.
Files changed (194) hide show
  1. package/README.md +34 -0
  2. package/fixtures/agent.yaml +20 -0
  3. package/fixtures/agentad-ad.yaml +33 -0
  4. package/fixtures/agentad-placement.yaml +21 -0
  5. package/fixtures/opencontext/conformance.json +279 -0
  6. package/fixtures/opencontext/invalid/audit-event-missing-actor.json +5 -0
  7. package/fixtures/opencontext/invalid/audit-event-unknown-event.json +9 -0
  8. package/fixtures/opencontext/invalid/bundle-bad-digest.json +11 -0
  9. package/fixtures/opencontext/invalid/bundle-bad-id.json +11 -0
  10. package/fixtures/opencontext/invalid/bundle-missing-digest.json +10 -0
  11. package/fixtures/opencontext/invalid/bundle-unknown-exclusion-reason.json +17 -0
  12. package/fixtures/opencontext/invalid/decision-bad-status.json +7 -0
  13. package/fixtures/opencontext/invalid/decision-missing-decision.json +5 -0
  14. package/fixtures/opencontext/invalid/decision-wrong-type.json +6 -0
  15. package/fixtures/opencontext/invalid/diagnostic-missing-ok.json +4 -0
  16. package/fixtures/opencontext/invalid/diagnostic-unknown-code.json +11 -0
  17. package/fixtures/opencontext/invalid/manifest-bad-authority.json +10 -0
  18. package/fixtures/opencontext/invalid/manifest-bad-extension.json +9 -0
  19. package/fixtures/opencontext/invalid/manifest-bad-id.json +4 -0
  20. package/fixtures/opencontext/invalid/manifest-bad-ttl.json +7 -0
  21. package/fixtures/opencontext/invalid/manifest-missing-version.json +3 -0
  22. package/fixtures/opencontext/invalid/manifest-role-bad-pattern.json +11 -0
  23. package/fixtures/opencontext/invalid/manifest-unknown-key.json +5 -0
  24. package/fixtures/opencontext/invalid/object-bad-digest.json +10 -0
  25. package/fixtures/opencontext/invalid/object-bad-id.json +4 -0
  26. package/fixtures/opencontext/invalid/object-bad-layer.json +5 -0
  27. package/fixtures/opencontext/invalid/object-bad-redaction-mode.json +10 -0
  28. package/fixtures/opencontext/invalid/object-bad-supersedes.json +7 -0
  29. package/fixtures/opencontext/invalid/object-confidence-out-of-range.json +5 -0
  30. package/fixtures/opencontext/invalid/object-extra-property.json +5 -0
  31. package/fixtures/opencontext/invalid/object-missing-id.json +3 -0
  32. package/fixtures/opencontext/invalid/object-missing-type.json +3 -0
  33. package/fixtures/opencontext/invalid/object-source-without-uri.json +9 -0
  34. package/fixtures/opencontext/invalid/object-unknown-authority.json +5 -0
  35. package/fixtures/opencontext/invalid/object-unknown-classification.json +5 -0
  36. package/fixtures/opencontext/invalid/object-unknown-trust.json +5 -0
  37. package/fixtures/opencontext/invalid/provenance-canonical-false.json +4 -0
  38. package/fixtures/opencontext/invalid/provenance-no-source.json +3 -0
  39. package/fixtures/opencontext/invalid/role-bad-classification.json +4 -0
  40. package/fixtures/opencontext/invalid/role-bad-include.json +6 -0
  41. package/fixtures/opencontext/invalid-manifest.json +177 -0
  42. package/fixtures/opencontext/resolution/authority-conflict/context/policies/refunds-observed.md +10 -0
  43. package/fixtures/opencontext/resolution/authority-conflict/context/policies/refunds.md +12 -0
  44. package/fixtures/opencontext/resolution/authority-conflict/expected.json +21 -0
  45. package/fixtures/opencontext/resolution/authority-conflict/opencontext.yaml +11 -0
  46. package/fixtures/opencontext/resolution/classification-ceiling/context/docs/handbook.md +11 -0
  47. package/fixtures/opencontext/resolution/classification-ceiling/context/docs/litigation.md +11 -0
  48. package/fixtures/opencontext/resolution/classification-ceiling/expected.json +32 -0
  49. package/fixtures/opencontext/resolution/classification-ceiling/opencontext.yaml +16 -0
  50. package/fixtures/opencontext/resolution/deny-overrides-allow/context/mission.md +10 -0
  51. package/fixtures/opencontext/resolution/deny-overrides-allow/context/policies/internal/margins.md +10 -0
  52. package/fixtures/opencontext/resolution/deny-overrides-allow/context/policies/refunds.md +10 -0
  53. package/fixtures/opencontext/resolution/deny-overrides-allow/expected.json +19 -0
  54. package/fixtures/opencontext/resolution/deny-overrides-allow/opencontext.yaml +17 -0
  55. package/fixtures/opencontext/resolution/duplicate-canonical/context/policies/refunds-rewrite.md +12 -0
  56. package/fixtures/opencontext/resolution/duplicate-canonical/context/policies/refunds.md +12 -0
  57. package/fixtures/opencontext/resolution/duplicate-canonical/expected.json +10 -0
  58. package/fixtures/opencontext/resolution/duplicate-canonical/opencontext.yaml +11 -0
  59. package/fixtures/opencontext/resolution/lifecycle/context/notes/current.md +11 -0
  60. package/fixtures/opencontext/resolution/lifecycle/context/notes/expired.md +12 -0
  61. package/fixtures/opencontext/resolution/lifecycle/context/notes/future.md +12 -0
  62. package/fixtures/opencontext/resolution/lifecycle/context/notes/stale.md +11 -0
  63. package/fixtures/opencontext/resolution/lifecycle/expected.json +30 -0
  64. package/fixtures/opencontext/resolution/lifecycle/opencontext.yaml +14 -0
  65. package/fixtures/opencontext/resolution/object-permissions/context/policies/payroll.md +12 -0
  66. package/fixtures/opencontext/resolution/object-permissions/context/policies/refunds.md +10 -0
  67. package/fixtures/opencontext/resolution/object-permissions/expected.json +32 -0
  68. package/fixtures/opencontext/resolution/object-permissions/opencontext.yaml +14 -0
  69. package/fixtures/opencontext/resolution/redaction/context/customers/acme.json +21 -0
  70. package/fixtures/opencontext/resolution/redaction/expected.json +28 -0
  71. package/fixtures/opencontext/resolution/redaction/opencontext.yaml +19 -0
  72. package/fixtures/opencontext/resolution/supersession/context/pricing/enterprise.v1.md +12 -0
  73. package/fixtures/opencontext/resolution/supersession/context/pricing/enterprise.v2.md +14 -0
  74. package/fixtures/opencontext/resolution/supersession/expected.json +33 -0
  75. package/fixtures/opencontext/resolution/supersession/opencontext.yaml +11 -0
  76. package/fixtures/opencontext/valid/audit-event.json +26 -0
  77. package/fixtures/opencontext/valid/bundle.json +67 -0
  78. package/fixtures/opencontext/valid/decision.json +51 -0
  79. package/fixtures/opencontext/valid/diagnostic.json +37 -0
  80. package/fixtures/opencontext/valid/manifest-minimal.json +4 -0
  81. package/fixtures/opencontext/valid/manifest.json +134 -0
  82. package/fixtures/opencontext/valid/object-minimal.json +4 -0
  83. package/fixtures/opencontext/valid/object-policy.json +75 -0
  84. package/fixtures/opencontext/valid/object-structured.json +34 -0
  85. package/fixtures/opencontext/valid/object-untrusted.json +19 -0
  86. package/fixtures/opencontext/valid/provenance-canonical.json +4 -0
  87. package/fixtures/opencontext/valid/provenance.json +14 -0
  88. package/fixtures/opencontext/valid/role.json +38 -0
  89. package/fixtures/openontology/conformance.json +158 -0
  90. package/fixtures/openontology/invalid/action-no-permissions.json +13 -0
  91. package/fixtures/openontology/invalid/changeset-empty-operations.json +10 -0
  92. package/fixtures/openontology/invalid/changeset-unknown-op.json +15 -0
  93. package/fixtures/openontology/invalid/claim-both-objects.json +14 -0
  94. package/fixtures/openontology/invalid/claim-confidence-out-of-range.json +14 -0
  95. package/fixtures/openontology/invalid/claim-extra-property.json +14 -0
  96. package/fixtures/openontology/invalid/claim-unknown-status.json +13 -0
  97. package/fixtures/openontology/invalid/entity-missing-canonical-name.json +8 -0
  98. package/fixtures/openontology/invalid/evidence-unknown-selector.json +10 -0
  99. package/fixtures/openontology/invalid/manifest-bad-id.json +15 -0
  100. package/fixtures/openontology/invalid/manifest-bad-version.json +15 -0
  101. package/fixtures/openontology/invalid/manifest-no-maintainer.json +11 -0
  102. package/fixtures/openontology/invalid/relationship-no-range.json +11 -0
  103. package/fixtures/openontology/valid/action.json +29 -0
  104. package/fixtures/openontology/valid/approval.json +12 -0
  105. package/fixtures/openontology/valid/changeset.json +34 -0
  106. package/fixtures/openontology/valid/claim-relationship.json +23 -0
  107. package/fixtures/openontology/valid/claim-value.json +15 -0
  108. package/fixtures/openontology/valid/constraint.json +12 -0
  109. package/fixtures/openontology/valid/entity-type.json +16 -0
  110. package/fixtures/openontology/valid/entity.json +16 -0
  111. package/fixtures/openontology/valid/event.json +17 -0
  112. package/fixtures/openontology/valid/evidence.json +12 -0
  113. package/fixtures/openontology/valid/manifest.json +21 -0
  114. package/fixtures/openontology/valid/namespace.json +7 -0
  115. package/fixtures/openontology/valid/property.json +8 -0
  116. package/fixtures/openontology/valid/query-adhoc.json +16 -0
  117. package/fixtures/openontology/valid/query.json +24 -0
  118. package/fixtures/openontology/valid/relationship-type.json +16 -0
  119. package/fixtures/openontology/valid/review.json +17 -0
  120. package/fixtures/openontology/valid/source.json +13 -0
  121. package/fixtures/openprd/conformance.json +104 -0
  122. package/fixtures/openprd/invalid/bad-filename.md +41 -0
  123. package/fixtures/openprd/invalid/bad-id-format.md +41 -0
  124. package/fixtures/openprd/invalid/bad-status.md +41 -0
  125. package/fixtures/openprd/invalid/dates-backwards.md +43 -0
  126. package/fixtures/openprd/invalid/duplicate-requirement.md +42 -0
  127. package/fixtures/openprd/invalid/id-mismatch.md +41 -0
  128. package/fixtures/openprd/invalid/missing-section.md +37 -0
  129. package/fixtures/openprd/invalid/missing-title.md +40 -0
  130. package/fixtures/openprd/invalid/no-front-matter.md +33 -0
  131. package/fixtures/openprd/invalid/out-of-order.md +41 -0
  132. package/fixtures/openprd/invalid/superseded-without-replacement.md +41 -0
  133. package/fixtures/openprd/invalid/unknown-key.md +42 -0
  134. package/fixtures/openprd/valid/bold-requirements.md +41 -0
  135. package/fixtures/openprd/valid/full.md +48 -0
  136. package/fixtures/openprd/valid/minimal.md +41 -0
  137. package/fixtures/openprd/valid/none-sections.md +41 -0
  138. package/fixtures/openprd/valid/subsections.md +47 -0
  139. package/fixtures/openprd/valid/superseded.md +42 -0
  140. package/fixtures/openprd-prd.yaml +12 -0
  141. package/fixtures/pull-request.yaml +24 -0
  142. package/fixtures/repo.yaml +27 -0
  143. package/fixtures/task.yaml +26 -0
  144. package/package.json +91 -0
  145. package/schemas/agentad-ad-request.schema.json +32 -0
  146. package/schemas/agentad-ad-response.schema.json +31 -0
  147. package/schemas/agentad-ad.schema.json +79 -0
  148. package/schemas/agentad-campaign.schema.json +40 -0
  149. package/schemas/agentad-click.schema.json +23 -0
  150. package/schemas/agentad-impression.schema.json +18 -0
  151. package/schemas/agentad-placement.schema.json +46 -0
  152. package/schemas/logicsrc-account-audit-event.schema.json +31 -0
  153. package/schemas/logicsrc-account-grant.schema.json +48 -0
  154. package/schemas/logicsrc-account-provider.schema.json +31 -0
  155. package/schemas/logicsrc-agent.schema.json +51 -0
  156. package/schemas/logicsrc-connected-account.schema.json +39 -0
  157. package/schemas/logicsrc-credential-audit-event.schema.json +32 -0
  158. package/schemas/logicsrc-credential-provider.schema.json +28 -0
  159. package/schemas/logicsrc-credential-sync-plan.schema.json +56 -0
  160. package/schemas/logicsrc-credential-sync-run.schema.json +35 -0
  161. package/schemas/logicsrc-email-message.schema.json +22 -0
  162. package/schemas/logicsrc-event.schema.json +25 -0
  163. package/schemas/logicsrc-opencontext-audit-event.schema.json +69 -0
  164. package/schemas/logicsrc-opencontext-bundle.schema.json +210 -0
  165. package/schemas/logicsrc-opencontext-decision.schema.json +229 -0
  166. package/schemas/logicsrc-opencontext-diagnostic.schema.json +123 -0
  167. package/schemas/logicsrc-opencontext-manifest.schema.json +337 -0
  168. package/schemas/logicsrc-opencontext-object.schema.json +311 -0
  169. package/schemas/logicsrc-opencontext-provenance.schema.json +76 -0
  170. package/schemas/logicsrc-opencontext-role.schema.json +93 -0
  171. package/schemas/logicsrc-openontology-action.schema.json +90 -0
  172. package/schemas/logicsrc-openontology-approval.schema.json +39 -0
  173. package/schemas/logicsrc-openontology-changeset.schema.json +168 -0
  174. package/schemas/logicsrc-openontology-claim.schema.json +148 -0
  175. package/schemas/logicsrc-openontology-constraint.schema.json +104 -0
  176. package/schemas/logicsrc-openontology-entity-type.schema.json +107 -0
  177. package/schemas/logicsrc-openontology-entity.schema.json +59 -0
  178. package/schemas/logicsrc-openontology-event.schema.json +60 -0
  179. package/schemas/logicsrc-openontology-evidence.schema.json +121 -0
  180. package/schemas/logicsrc-openontology-manifest.schema.json +148 -0
  181. package/schemas/logicsrc-openontology-namespace.schema.json +21 -0
  182. package/schemas/logicsrc-openontology-package.schema.json +73 -0
  183. package/schemas/logicsrc-openontology-property.schema.json +83 -0
  184. package/schemas/logicsrc-openontology-query.schema.json +207 -0
  185. package/schemas/logicsrc-openontology-relationship-type.schema.json +57 -0
  186. package/schemas/logicsrc-openontology-review.schema.json +37 -0
  187. package/schemas/logicsrc-openontology-source.schema.json +43 -0
  188. package/schemas/logicsrc-plugin.schema.json +35 -0
  189. package/schemas/logicsrc-pull-request.schema.json +73 -0
  190. package/schemas/logicsrc-repo.schema.json +73 -0
  191. package/schemas/logicsrc-run.schema.json +69 -0
  192. package/schemas/logicsrc-social-post.schema.json +26 -0
  193. package/schemas/logicsrc-task.schema.json +114 -0
  194. package/schemas/openprd-prd.schema.json +79 -0
package/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # @logicsrc/schemas
2
+
3
+ Canonical JSON Schemas (draft 2020-12) for the LogicSRC open coordination
4
+ standards, maintained by Profullstack, Inc.
5
+
6
+ Two schema families ship from this package:
7
+
8
+ - **LogicSRC core** — `logicsrc-*.schema.json`: tasks, agents, runs, events,
9
+ plugins, connected accounts, email messages, social posts.
10
+ - **AgentAd** — `agentad-*.schema.json`: a disclosed, agent-readable advertising
11
+ contract for CLI tools and AI agents (ads, placements, requests, responses,
12
+ impressions, clicks, campaigns). See `docs/agentad.md` in the repo;
13
+ [cl1s.tech](https://github.com/profullstack/cl1s.tech) is the reference network.
14
+
15
+ ## Install
16
+
17
+ ```bash
18
+ npm install @logicsrc/schemas
19
+ ```
20
+
21
+ ## Use
22
+
23
+ ```js
24
+ import adSchema from "@logicsrc/schemas/agentad-ad" with { type: "json" };
25
+ import taskSchema from "@logicsrc/schemas/task" with { type: "json" };
26
+ ```
27
+
28
+ Schema `$id`s resolve under `https://schemas.logicsrc.com/`. Validate with any
29
+ draft 2020-12 validator (e.g. `ajv/dist/2020.js`), or use `@logicsrc/validators`
30
+ from the monorepo.
31
+
32
+ ## License
33
+
34
+ MIT © Profullstack, Inc.
@@ -0,0 +1,20 @@
1
+ type: logicsrc.agent
2
+ version: "0.1"
3
+ name: Playwright QA Agent
4
+ did: qa-agent-01.coinpay
5
+ owner_did: anthony.coinpay
6
+ description: Runs browser QA tasks and submits Markdown reports.
7
+ skills:
8
+ - qa
9
+ - playwright
10
+ - browser-testing
11
+ pricing:
12
+ model: per_task
13
+ amount: 10
14
+ currency: USDC
15
+ permissions_requested:
16
+ - task:read
17
+ - task:claim
18
+ - task:submit
19
+ - browser:visit_url
20
+ - files:write
@@ -0,0 +1,33 @@
1
+ type: agentad.ad
2
+ version: "0.1"
3
+ id: deploy-faster-railway
4
+ campaign_id: railway-q3
5
+ advertiser_did: railway.coinpay
6
+ format: markdown
7
+ title: Ship your CLI to production in 60 seconds
8
+ body: Railway deploys any Node, Bun, or Go service straight from your terminal. No YAML wrangling.
9
+ url: https://railway.app/?ref=cl1s
10
+ cta: Deploy now
11
+ disclosure:
12
+ sponsored: true
13
+ label: Sponsored
14
+ advertiser_name: Railway
15
+ machine_readable:
16
+ product: railway
17
+ category: infrastructure
18
+ install: "npm i -g @railway/cli"
19
+ targeting:
20
+ surfaces:
21
+ - cli
22
+ - agent
23
+ keywords:
24
+ - deploy
25
+ - hosting
26
+ - infrastructure
27
+ tools:
28
+ - claude-code
29
+ - gh
30
+ pricing:
31
+ model: cpc
32
+ bid: 0.4
33
+ currency: USDC
@@ -0,0 +1,21 @@
1
+ type: agentad.placement
2
+ version: "0.1"
3
+ id: cli-footer-slot
4
+ publisher_did: mytool.coinpay
5
+ surface: cli
6
+ accepted_formats:
7
+ - text
8
+ - ansi
9
+ - json
10
+ dimensions:
11
+ max_width: 80
12
+ max_lines: 4
13
+ context_tags:
14
+ - devtools
15
+ - deploy
16
+ frequency_cap:
17
+ max_per_session: 1
18
+ max_per_day: 5
19
+ block_categories:
20
+ - gambling
21
+ - crypto-tokens
@@ -0,0 +1,279 @@
1
+ {
2
+ "opencontextConformance": "1.0",
3
+ "description": "Conformance fixtures for LogicSRC OpenContext. A third-party implementation can run these against the published JSON Schemas with no LogicSRC code: every valid fixture MUST validate, and every invalid fixture MUST fail for the stated reason. The resolution/ scenarios go further and pin resolver behaviour — scope, authority, supersession, lifecycle, and redaction — which schemas alone cannot express.",
4
+ "schemas": {
5
+ "manifest": "https://logicsrc.com/schemas/opencontext/manifest.schema.json",
6
+ "object": "https://logicsrc.com/schemas/opencontext/object.schema.json",
7
+ "bundle": "https://logicsrc.com/schemas/opencontext/bundle.schema.json",
8
+ "role": "https://logicsrc.com/schemas/opencontext/role.schema.json",
9
+ "provenance": "https://logicsrc.com/schemas/opencontext/provenance.schema.json",
10
+ "decision": "https://logicsrc.com/schemas/opencontext/decision.schema.json",
11
+ "diagnostic": "https://logicsrc.com/schemas/opencontext/diagnostic.schema.json",
12
+ "audit-event": "https://logicsrc.com/schemas/opencontext/audit-event.schema.json"
13
+ },
14
+ "valid": [
15
+ {
16
+ "fixture": "valid/manifest.json",
17
+ "kind": "opencontext-manifest"
18
+ },
19
+ {
20
+ "fixture": "valid/manifest-minimal.json",
21
+ "kind": "opencontext-manifest"
22
+ },
23
+ {
24
+ "fixture": "valid/object-policy.json",
25
+ "kind": "opencontext-object"
26
+ },
27
+ {
28
+ "fixture": "valid/object-minimal.json",
29
+ "kind": "opencontext-object"
30
+ },
31
+ {
32
+ "fixture": "valid/object-structured.json",
33
+ "kind": "opencontext-object"
34
+ },
35
+ {
36
+ "fixture": "valid/object-untrusted.json",
37
+ "kind": "opencontext-object"
38
+ },
39
+ {
40
+ "fixture": "valid/decision.json",
41
+ "kind": "opencontext-decision"
42
+ },
43
+ {
44
+ "fixture": "valid/role.json",
45
+ "kind": "opencontext-role"
46
+ },
47
+ {
48
+ "fixture": "valid/provenance.json",
49
+ "kind": "opencontext-provenance"
50
+ },
51
+ {
52
+ "fixture": "valid/provenance-canonical.json",
53
+ "kind": "opencontext-provenance"
54
+ },
55
+ {
56
+ "fixture": "valid/bundle.json",
57
+ "kind": "opencontext-bundle"
58
+ },
59
+ {
60
+ "fixture": "valid/diagnostic.json",
61
+ "kind": "opencontext-diagnostic"
62
+ },
63
+ {
64
+ "fixture": "valid/audit-event.json",
65
+ "kind": "opencontext-audit-event"
66
+ }
67
+ ],
68
+ "invalid": [
69
+ {
70
+ "fixture": "invalid/manifest-missing-version.json",
71
+ "kind": "opencontext-manifest",
72
+ "why": "manifest has no opencontext version"
73
+ },
74
+ {
75
+ "fixture": "invalid/manifest-bad-id.json",
76
+ "kind": "opencontext-manifest",
77
+ "why": "namespace id must be a lowercase slug"
78
+ },
79
+ {
80
+ "fixture": "invalid/manifest-unknown-key.json",
81
+ "kind": "opencontext-manifest",
82
+ "why": "unknown top-level key (contexts vs context)"
83
+ },
84
+ {
85
+ "fixture": "invalid/manifest-bad-authority.json",
86
+ "kind": "opencontext-manifest",
87
+ "why": "authority precedence contains a level that is not defined"
88
+ },
89
+ {
90
+ "fixture": "invalid/manifest-bad-ttl.json",
91
+ "kind": "opencontext-manifest",
92
+ "why": "duration must look like 30d"
93
+ },
94
+ {
95
+ "fixture": "invalid/manifest-role-bad-pattern.json",
96
+ "kind": "opencontext-manifest",
97
+ "why": "a wildcard must be a whole segment, never a substring"
98
+ },
99
+ {
100
+ "fixture": "invalid/manifest-bad-extension.json",
101
+ "kind": "opencontext-manifest",
102
+ "why": "extension keys must be reverse-DNS namespaced"
103
+ },
104
+ {
105
+ "fixture": "invalid/object-missing-type.json",
106
+ "kind": "opencontext-object",
107
+ "why": "type is required"
108
+ },
109
+ {
110
+ "fixture": "invalid/object-missing-id.json",
111
+ "kind": "opencontext-object",
112
+ "why": "id is required"
113
+ },
114
+ {
115
+ "fixture": "invalid/object-bad-id.json",
116
+ "kind": "opencontext-object",
117
+ "why": "id must be a dotted lowercase slug"
118
+ },
119
+ {
120
+ "fixture": "invalid/object-unknown-authority.json",
121
+ "kind": "opencontext-object",
122
+ "why": "authority must be one of the six defined levels"
123
+ },
124
+ {
125
+ "fixture": "invalid/object-unknown-classification.json",
126
+ "kind": "opencontext-object",
127
+ "why": "classification must be public/internal/confidential/restricted"
128
+ },
129
+ {
130
+ "fixture": "invalid/object-unknown-trust.json",
131
+ "kind": "opencontext-object",
132
+ "why": "trust must be trusted/verified/untrusted"
133
+ },
134
+ {
135
+ "fixture": "invalid/object-extra-property.json",
136
+ "kind": "opencontext-object",
137
+ "why": "unknown field must go under extensions"
138
+ },
139
+ {
140
+ "fixture": "invalid/object-confidence-out-of-range.json",
141
+ "kind": "opencontext-object",
142
+ "why": "confidence must be between 0 and 1"
143
+ },
144
+ {
145
+ "fixture": "invalid/object-bad-digest.json",
146
+ "kind": "opencontext-object",
147
+ "why": "source digest must be sha256:<64 hex>"
148
+ },
149
+ {
150
+ "fixture": "invalid/object-bad-layer.json",
151
+ "kind": "opencontext-object",
152
+ "why": "layer must be L0 to L5"
153
+ },
154
+ {
155
+ "fixture": "invalid/object-source-without-uri.json",
156
+ "kind": "opencontext-object",
157
+ "why": "every source needs a uri"
158
+ },
159
+ {
160
+ "fixture": "invalid/object-bad-supersedes.json",
161
+ "kind": "opencontext-object",
162
+ "why": "version pin must be @<integer>"
163
+ },
164
+ {
165
+ "fixture": "invalid/object-bad-redaction-mode.json",
166
+ "kind": "opencontext-object",
167
+ "why": "redaction mode must be remove/mask/hash"
168
+ },
169
+ {
170
+ "fixture": "invalid/decision-missing-decision.json",
171
+ "kind": "opencontext-decision",
172
+ "why": "a decision record must state the decision"
173
+ },
174
+ {
175
+ "fixture": "invalid/decision-wrong-type.json",
176
+ "kind": "opencontext-decision",
177
+ "why": "type must be decision"
178
+ },
179
+ {
180
+ "fixture": "invalid/decision-bad-status.json",
181
+ "kind": "opencontext-decision",
182
+ "why": "status must be proposed/accepted/rejected/superseded/deprecated"
183
+ },
184
+ {
185
+ "fixture": "invalid/bundle-missing-digest.json",
186
+ "kind": "opencontext-bundle",
187
+ "why": "a bundle must carry a digest"
188
+ },
189
+ {
190
+ "fixture": "invalid/bundle-bad-digest.json",
191
+ "kind": "opencontext-bundle",
192
+ "why": "digest must be sha256:<64 hex>"
193
+ },
194
+ {
195
+ "fixture": "invalid/bundle-bad-id.json",
196
+ "kind": "opencontext-bundle",
197
+ "why": "bundle_id must be prefixed ocb_"
198
+ },
199
+ {
200
+ "fixture": "invalid/bundle-unknown-exclusion-reason.json",
201
+ "kind": "opencontext-bundle",
202
+ "why": "exclusion reasons are a closed set"
203
+ },
204
+ {
205
+ "fixture": "invalid/role-bad-classification.json",
206
+ "kind": "opencontext-role",
207
+ "why": "max_classification must be one of the four bands"
208
+ },
209
+ {
210
+ "fixture": "invalid/role-bad-include.json",
211
+ "kind": "opencontext-role",
212
+ "why": "scope patterns are lowercase"
213
+ },
214
+ {
215
+ "fixture": "invalid/provenance-no-source.json",
216
+ "kind": "opencontext-provenance",
217
+ "why": "must declare sources or canonical_source"
218
+ },
219
+ {
220
+ "fixture": "invalid/provenance-canonical-false.json",
221
+ "kind": "opencontext-provenance",
222
+ "why": "canonical_source: false does not satisfy the requirement"
223
+ },
224
+ {
225
+ "fixture": "invalid/diagnostic-unknown-code.json",
226
+ "kind": "opencontext-diagnostic",
227
+ "why": "diagnostic codes are normative and closed"
228
+ },
229
+ {
230
+ "fixture": "invalid/diagnostic-missing-ok.json",
231
+ "kind": "opencontext-diagnostic",
232
+ "why": "ok is required — it is what the exit code follows"
233
+ },
234
+ {
235
+ "fixture": "invalid/audit-event-unknown-event.json",
236
+ "kind": "opencontext-audit-event",
237
+ "why": "event names are a closed set"
238
+ },
239
+ {
240
+ "fixture": "invalid/audit-event-missing-actor.json",
241
+ "kind": "opencontext-audit-event",
242
+ "why": "an audit event without an actor is not attributable"
243
+ }
244
+ ],
245
+ "resolution": [
246
+ {
247
+ "scenario": "resolution/authority-conflict",
248
+ "expected": "resolution/authority-conflict/expected.json"
249
+ },
250
+ {
251
+ "scenario": "resolution/classification-ceiling",
252
+ "expected": "resolution/classification-ceiling/expected.json"
253
+ },
254
+ {
255
+ "scenario": "resolution/deny-overrides-allow",
256
+ "expected": "resolution/deny-overrides-allow/expected.json"
257
+ },
258
+ {
259
+ "scenario": "resolution/duplicate-canonical",
260
+ "expected": "resolution/duplicate-canonical/expected.json"
261
+ },
262
+ {
263
+ "scenario": "resolution/lifecycle",
264
+ "expected": "resolution/lifecycle/expected.json"
265
+ },
266
+ {
267
+ "scenario": "resolution/object-permissions",
268
+ "expected": "resolution/object-permissions/expected.json"
269
+ },
270
+ {
271
+ "scenario": "resolution/redaction",
272
+ "expected": "resolution/redaction/expected.json"
273
+ },
274
+ {
275
+ "scenario": "resolution/supersession",
276
+ "expected": "resolution/supersession/expected.json"
277
+ }
278
+ ]
279
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "opencontext": "1.0",
3
+ "event": "context.read",
4
+ "at": "2026-08-09T15:00:00Z"
5
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "opencontext": "1.0",
3
+ "event": "context.peek",
4
+ "at": "2026-08-09T15:00:00Z",
5
+ "actor": {
6
+ "type": "agent",
7
+ "id": "a"
8
+ }
9
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "opencontext": "1.0",
3
+ "bundle_id": "ocb_abc",
4
+ "generated_at": "2026-08-09T15:00:00Z",
5
+ "consumer": {
6
+ "type": "agent",
7
+ "id": "a"
8
+ },
9
+ "objects": [],
10
+ "digest": "sha1:abc"
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "opencontext": "1.0",
3
+ "bundle_id": "bundle-1",
4
+ "generated_at": "2026-08-09T15:00:00Z",
5
+ "consumer": {
6
+ "type": "agent",
7
+ "id": "a"
8
+ },
9
+ "objects": [],
10
+ "digest": "sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
11
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "opencontext": "1.0",
3
+ "bundle_id": "ocb_abc",
4
+ "generated_at": "2026-08-09T15:00:00Z",
5
+ "consumer": {
6
+ "type": "agent",
7
+ "id": "a"
8
+ },
9
+ "objects": []
10
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "opencontext": "1.0",
3
+ "bundle_id": "ocb_abc",
4
+ "generated_at": "2026-08-09T15:00:00Z",
5
+ "consumer": {
6
+ "type": "agent",
7
+ "id": "a"
8
+ },
9
+ "objects": [],
10
+ "excluded": [
11
+ {
12
+ "id": "x",
13
+ "reason": "vibes"
14
+ }
15
+ ],
16
+ "digest": "sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
17
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "id": "decision.2026-08-09-x",
3
+ "type": "decision",
4
+ "title": "X",
5
+ "decision": "Do X.",
6
+ "status": "maybe"
7
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "id": "decision.2026-08-09-x",
3
+ "type": "decision",
4
+ "title": "X"
5
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "id": "decision.2026-08-09-x",
3
+ "type": "policy",
4
+ "title": "X",
5
+ "decision": "Do X."
6
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "opencontext": "1.0",
3
+ "findings": []
4
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "opencontext": "1.0",
3
+ "ok": false,
4
+ "findings": [
5
+ {
6
+ "code": "vibes-off",
7
+ "severity": "error",
8
+ "message": "x"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "opencontext": "1.0",
3
+ "id": "acme",
4
+ "authority": {
5
+ "precedence": [
6
+ "gospel",
7
+ "canonical"
8
+ ]
9
+ }
10
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "opencontext": "1.0",
3
+ "id": "acme",
4
+ "extensions": {
5
+ "risk": {
6
+ "score": 1
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "opencontext": "1.0",
3
+ "id": "ACME Corp"
4
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "opencontext": "1.0",
3
+ "id": "acme",
4
+ "freshness": {
5
+ "default_ttl": "30 days"
6
+ }
7
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "id": "acme"
3
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "opencontext": "1.0",
3
+ "id": "acme",
4
+ "roles": {
5
+ "support": {
6
+ "include": [
7
+ "policies.*support"
8
+ ]
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "opencontext": "1.0",
3
+ "id": "acme",
4
+ "contexts": {}
5
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "id": "policy.refunds",
3
+ "type": "policy",
4
+ "sources": [
5
+ {
6
+ "uri": "https://example.com/p",
7
+ "digest": "md5:abc"
8
+ }
9
+ ]
10
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "id": "Policy Refunds",
3
+ "type": "policy"
4
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "id": "policy.refunds",
3
+ "type": "policy",
4
+ "layer": "L6"
5
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "id": "c.acme",
3
+ "type": "customer",
4
+ "redact": [
5
+ {
6
+ "path": "ssn",
7
+ "mode": "shred"
8
+ }
9
+ ]
10
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "id": "policy.refunds",
3
+ "type": "policy",
4
+ "supersedes": [
5
+ "policy.refunds@v2"
6
+ ]
7
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "id": "policy.refunds",
3
+ "type": "policy",
4
+ "confidence": 1.5
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "id": "policy.refunds",
3
+ "type": "policy",
4
+ "authorship": "support"
5
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "policy"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "id": "policy.refunds"
3
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "id": "policy.refunds",
3
+ "type": "policy",
4
+ "sources": [
5
+ {
6
+ "type": "document"
7
+ }
8
+ ]
9
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "id": "policy.refunds",
3
+ "type": "policy",
4
+ "authority": "gospel"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "id": "policy.refunds",
3
+ "type": "policy",
4
+ "classification": "secret"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "id": "policy.refunds",
3
+ "type": "policy",
4
+ "trust": "probably-fine"
5
+ }