@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.
- package/README.md +34 -0
- package/fixtures/agent.yaml +20 -0
- package/fixtures/agentad-ad.yaml +33 -0
- package/fixtures/agentad-placement.yaml +21 -0
- package/fixtures/opencontext/conformance.json +279 -0
- package/fixtures/opencontext/invalid/audit-event-missing-actor.json +5 -0
- package/fixtures/opencontext/invalid/audit-event-unknown-event.json +9 -0
- package/fixtures/opencontext/invalid/bundle-bad-digest.json +11 -0
- package/fixtures/opencontext/invalid/bundle-bad-id.json +11 -0
- package/fixtures/opencontext/invalid/bundle-missing-digest.json +10 -0
- package/fixtures/opencontext/invalid/bundle-unknown-exclusion-reason.json +17 -0
- package/fixtures/opencontext/invalid/decision-bad-status.json +7 -0
- package/fixtures/opencontext/invalid/decision-missing-decision.json +5 -0
- package/fixtures/opencontext/invalid/decision-wrong-type.json +6 -0
- package/fixtures/opencontext/invalid/diagnostic-missing-ok.json +4 -0
- package/fixtures/opencontext/invalid/diagnostic-unknown-code.json +11 -0
- package/fixtures/opencontext/invalid/manifest-bad-authority.json +10 -0
- package/fixtures/opencontext/invalid/manifest-bad-extension.json +9 -0
- package/fixtures/opencontext/invalid/manifest-bad-id.json +4 -0
- package/fixtures/opencontext/invalid/manifest-bad-ttl.json +7 -0
- package/fixtures/opencontext/invalid/manifest-missing-version.json +3 -0
- package/fixtures/opencontext/invalid/manifest-role-bad-pattern.json +11 -0
- package/fixtures/opencontext/invalid/manifest-unknown-key.json +5 -0
- package/fixtures/opencontext/invalid/object-bad-digest.json +10 -0
- package/fixtures/opencontext/invalid/object-bad-id.json +4 -0
- package/fixtures/opencontext/invalid/object-bad-layer.json +5 -0
- package/fixtures/opencontext/invalid/object-bad-redaction-mode.json +10 -0
- package/fixtures/opencontext/invalid/object-bad-supersedes.json +7 -0
- package/fixtures/opencontext/invalid/object-confidence-out-of-range.json +5 -0
- package/fixtures/opencontext/invalid/object-extra-property.json +5 -0
- package/fixtures/opencontext/invalid/object-missing-id.json +3 -0
- package/fixtures/opencontext/invalid/object-missing-type.json +3 -0
- package/fixtures/opencontext/invalid/object-source-without-uri.json +9 -0
- package/fixtures/opencontext/invalid/object-unknown-authority.json +5 -0
- package/fixtures/opencontext/invalid/object-unknown-classification.json +5 -0
- package/fixtures/opencontext/invalid/object-unknown-trust.json +5 -0
- package/fixtures/opencontext/invalid/provenance-canonical-false.json +4 -0
- package/fixtures/opencontext/invalid/provenance-no-source.json +3 -0
- package/fixtures/opencontext/invalid/role-bad-classification.json +4 -0
- package/fixtures/opencontext/invalid/role-bad-include.json +6 -0
- package/fixtures/opencontext/invalid-manifest.json +177 -0
- package/fixtures/opencontext/resolution/authority-conflict/context/policies/refunds-observed.md +10 -0
- package/fixtures/opencontext/resolution/authority-conflict/context/policies/refunds.md +12 -0
- package/fixtures/opencontext/resolution/authority-conflict/expected.json +21 -0
- package/fixtures/opencontext/resolution/authority-conflict/opencontext.yaml +11 -0
- package/fixtures/opencontext/resolution/classification-ceiling/context/docs/handbook.md +11 -0
- package/fixtures/opencontext/resolution/classification-ceiling/context/docs/litigation.md +11 -0
- package/fixtures/opencontext/resolution/classification-ceiling/expected.json +32 -0
- package/fixtures/opencontext/resolution/classification-ceiling/opencontext.yaml +16 -0
- package/fixtures/opencontext/resolution/deny-overrides-allow/context/mission.md +10 -0
- package/fixtures/opencontext/resolution/deny-overrides-allow/context/policies/internal/margins.md +10 -0
- package/fixtures/opencontext/resolution/deny-overrides-allow/context/policies/refunds.md +10 -0
- package/fixtures/opencontext/resolution/deny-overrides-allow/expected.json +19 -0
- package/fixtures/opencontext/resolution/deny-overrides-allow/opencontext.yaml +17 -0
- package/fixtures/opencontext/resolution/duplicate-canonical/context/policies/refunds-rewrite.md +12 -0
- package/fixtures/opencontext/resolution/duplicate-canonical/context/policies/refunds.md +12 -0
- package/fixtures/opencontext/resolution/duplicate-canonical/expected.json +10 -0
- package/fixtures/opencontext/resolution/duplicate-canonical/opencontext.yaml +11 -0
- package/fixtures/opencontext/resolution/lifecycle/context/notes/current.md +11 -0
- package/fixtures/opencontext/resolution/lifecycle/context/notes/expired.md +12 -0
- package/fixtures/opencontext/resolution/lifecycle/context/notes/future.md +12 -0
- package/fixtures/opencontext/resolution/lifecycle/context/notes/stale.md +11 -0
- package/fixtures/opencontext/resolution/lifecycle/expected.json +30 -0
- package/fixtures/opencontext/resolution/lifecycle/opencontext.yaml +14 -0
- package/fixtures/opencontext/resolution/object-permissions/context/policies/payroll.md +12 -0
- package/fixtures/opencontext/resolution/object-permissions/context/policies/refunds.md +10 -0
- package/fixtures/opencontext/resolution/object-permissions/expected.json +32 -0
- package/fixtures/opencontext/resolution/object-permissions/opencontext.yaml +14 -0
- package/fixtures/opencontext/resolution/redaction/context/customers/acme.json +21 -0
- package/fixtures/opencontext/resolution/redaction/expected.json +28 -0
- package/fixtures/opencontext/resolution/redaction/opencontext.yaml +19 -0
- package/fixtures/opencontext/resolution/supersession/context/pricing/enterprise.v1.md +12 -0
- package/fixtures/opencontext/resolution/supersession/context/pricing/enterprise.v2.md +14 -0
- package/fixtures/opencontext/resolution/supersession/expected.json +33 -0
- package/fixtures/opencontext/resolution/supersession/opencontext.yaml +11 -0
- package/fixtures/opencontext/valid/audit-event.json +26 -0
- package/fixtures/opencontext/valid/bundle.json +67 -0
- package/fixtures/opencontext/valid/decision.json +51 -0
- package/fixtures/opencontext/valid/diagnostic.json +37 -0
- package/fixtures/opencontext/valid/manifest-minimal.json +4 -0
- package/fixtures/opencontext/valid/manifest.json +134 -0
- package/fixtures/opencontext/valid/object-minimal.json +4 -0
- package/fixtures/opencontext/valid/object-policy.json +75 -0
- package/fixtures/opencontext/valid/object-structured.json +34 -0
- package/fixtures/opencontext/valid/object-untrusted.json +19 -0
- package/fixtures/opencontext/valid/provenance-canonical.json +4 -0
- package/fixtures/opencontext/valid/provenance.json +14 -0
- package/fixtures/opencontext/valid/role.json +38 -0
- package/fixtures/openontology/conformance.json +158 -0
- package/fixtures/openontology/invalid/action-no-permissions.json +13 -0
- package/fixtures/openontology/invalid/changeset-empty-operations.json +10 -0
- package/fixtures/openontology/invalid/changeset-unknown-op.json +15 -0
- package/fixtures/openontology/invalid/claim-both-objects.json +14 -0
- package/fixtures/openontology/invalid/claim-confidence-out-of-range.json +14 -0
- package/fixtures/openontology/invalid/claim-extra-property.json +14 -0
- package/fixtures/openontology/invalid/claim-unknown-status.json +13 -0
- package/fixtures/openontology/invalid/entity-missing-canonical-name.json +8 -0
- package/fixtures/openontology/invalid/evidence-unknown-selector.json +10 -0
- package/fixtures/openontology/invalid/manifest-bad-id.json +15 -0
- package/fixtures/openontology/invalid/manifest-bad-version.json +15 -0
- package/fixtures/openontology/invalid/manifest-no-maintainer.json +11 -0
- package/fixtures/openontology/invalid/relationship-no-range.json +11 -0
- package/fixtures/openontology/valid/action.json +29 -0
- package/fixtures/openontology/valid/approval.json +12 -0
- package/fixtures/openontology/valid/changeset.json +34 -0
- package/fixtures/openontology/valid/claim-relationship.json +23 -0
- package/fixtures/openontology/valid/claim-value.json +15 -0
- package/fixtures/openontology/valid/constraint.json +12 -0
- package/fixtures/openontology/valid/entity-type.json +16 -0
- package/fixtures/openontology/valid/entity.json +16 -0
- package/fixtures/openontology/valid/event.json +17 -0
- package/fixtures/openontology/valid/evidence.json +12 -0
- package/fixtures/openontology/valid/manifest.json +21 -0
- package/fixtures/openontology/valid/namespace.json +7 -0
- package/fixtures/openontology/valid/property.json +8 -0
- package/fixtures/openontology/valid/query-adhoc.json +16 -0
- package/fixtures/openontology/valid/query.json +24 -0
- package/fixtures/openontology/valid/relationship-type.json +16 -0
- package/fixtures/openontology/valid/review.json +17 -0
- package/fixtures/openontology/valid/source.json +13 -0
- package/fixtures/openprd/conformance.json +104 -0
- package/fixtures/openprd/invalid/bad-filename.md +41 -0
- package/fixtures/openprd/invalid/bad-id-format.md +41 -0
- package/fixtures/openprd/invalid/bad-status.md +41 -0
- package/fixtures/openprd/invalid/dates-backwards.md +43 -0
- package/fixtures/openprd/invalid/duplicate-requirement.md +42 -0
- package/fixtures/openprd/invalid/id-mismatch.md +41 -0
- package/fixtures/openprd/invalid/missing-section.md +37 -0
- package/fixtures/openprd/invalid/missing-title.md +40 -0
- package/fixtures/openprd/invalid/no-front-matter.md +33 -0
- package/fixtures/openprd/invalid/out-of-order.md +41 -0
- package/fixtures/openprd/invalid/superseded-without-replacement.md +41 -0
- package/fixtures/openprd/invalid/unknown-key.md +42 -0
- package/fixtures/openprd/valid/bold-requirements.md +41 -0
- package/fixtures/openprd/valid/full.md +48 -0
- package/fixtures/openprd/valid/minimal.md +41 -0
- package/fixtures/openprd/valid/none-sections.md +41 -0
- package/fixtures/openprd/valid/subsections.md +47 -0
- package/fixtures/openprd/valid/superseded.md +42 -0
- package/fixtures/openprd-prd.yaml +12 -0
- package/fixtures/pull-request.yaml +24 -0
- package/fixtures/repo.yaml +27 -0
- package/fixtures/task.yaml +26 -0
- package/package.json +91 -0
- package/schemas/agentad-ad-request.schema.json +32 -0
- package/schemas/agentad-ad-response.schema.json +31 -0
- package/schemas/agentad-ad.schema.json +79 -0
- package/schemas/agentad-campaign.schema.json +40 -0
- package/schemas/agentad-click.schema.json +23 -0
- package/schemas/agentad-impression.schema.json +18 -0
- package/schemas/agentad-placement.schema.json +46 -0
- package/schemas/logicsrc-account-audit-event.schema.json +31 -0
- package/schemas/logicsrc-account-grant.schema.json +48 -0
- package/schemas/logicsrc-account-provider.schema.json +31 -0
- package/schemas/logicsrc-agent.schema.json +51 -0
- package/schemas/logicsrc-connected-account.schema.json +39 -0
- package/schemas/logicsrc-credential-audit-event.schema.json +32 -0
- package/schemas/logicsrc-credential-provider.schema.json +28 -0
- package/schemas/logicsrc-credential-sync-plan.schema.json +56 -0
- package/schemas/logicsrc-credential-sync-run.schema.json +35 -0
- package/schemas/logicsrc-email-message.schema.json +22 -0
- package/schemas/logicsrc-event.schema.json +25 -0
- package/schemas/logicsrc-opencontext-audit-event.schema.json +69 -0
- package/schemas/logicsrc-opencontext-bundle.schema.json +210 -0
- package/schemas/logicsrc-opencontext-decision.schema.json +229 -0
- package/schemas/logicsrc-opencontext-diagnostic.schema.json +123 -0
- package/schemas/logicsrc-opencontext-manifest.schema.json +337 -0
- package/schemas/logicsrc-opencontext-object.schema.json +311 -0
- package/schemas/logicsrc-opencontext-provenance.schema.json +76 -0
- package/schemas/logicsrc-opencontext-role.schema.json +93 -0
- package/schemas/logicsrc-openontology-action.schema.json +90 -0
- package/schemas/logicsrc-openontology-approval.schema.json +39 -0
- package/schemas/logicsrc-openontology-changeset.schema.json +168 -0
- package/schemas/logicsrc-openontology-claim.schema.json +148 -0
- package/schemas/logicsrc-openontology-constraint.schema.json +104 -0
- package/schemas/logicsrc-openontology-entity-type.schema.json +107 -0
- package/schemas/logicsrc-openontology-entity.schema.json +59 -0
- package/schemas/logicsrc-openontology-event.schema.json +60 -0
- package/schemas/logicsrc-openontology-evidence.schema.json +121 -0
- package/schemas/logicsrc-openontology-manifest.schema.json +148 -0
- package/schemas/logicsrc-openontology-namespace.schema.json +21 -0
- package/schemas/logicsrc-openontology-package.schema.json +73 -0
- package/schemas/logicsrc-openontology-property.schema.json +83 -0
- package/schemas/logicsrc-openontology-query.schema.json +207 -0
- package/schemas/logicsrc-openontology-relationship-type.schema.json +57 -0
- package/schemas/logicsrc-openontology-review.schema.json +37 -0
- package/schemas/logicsrc-openontology-source.schema.json +43 -0
- package/schemas/logicsrc-plugin.schema.json +35 -0
- package/schemas/logicsrc-pull-request.schema.json +73 -0
- package/schemas/logicsrc-repo.schema.json +73 -0
- package/schemas/logicsrc-run.schema.json +69 -0
- package/schemas/logicsrc-social-post.schema.json +26 -0
- package/schemas/logicsrc-task.schema.json +114 -0
- package/schemas/openprd-prd.schema.json +79 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Redaction runs after authorization: the consumer is entitled to the record, and still does not receive the SSN. The bundle discloses that redaction happened without disclosing what was redacted.",
|
|
3
|
+
"resolve": {
|
|
4
|
+
"role": "support",
|
|
5
|
+
"at": "2026-08-09T12:00:00Z"
|
|
6
|
+
},
|
|
7
|
+
"expect": {
|
|
8
|
+
"included": [
|
|
9
|
+
"customers.acme"
|
|
10
|
+
],
|
|
11
|
+
"redacted": {
|
|
12
|
+
"customers.acme": [
|
|
13
|
+
"ssn",
|
|
14
|
+
"contacts[*].email"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"contentAbsent": {
|
|
18
|
+
"customers.acme": [
|
|
19
|
+
"ssn"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"contentEquals": {
|
|
23
|
+
"customers.acme": {
|
|
24
|
+
"contacts.0.email": "[REDACTED]"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
opencontext: "1.0"
|
|
2
|
+
id: redaction-test
|
|
3
|
+
name: Redaction
|
|
4
|
+
|
|
5
|
+
collections:
|
|
6
|
+
customers: ./context/customers/**
|
|
7
|
+
|
|
8
|
+
roles:
|
|
9
|
+
support:
|
|
10
|
+
include:
|
|
11
|
+
- customers.*
|
|
12
|
+
max_classification: confidential
|
|
13
|
+
redact:
|
|
14
|
+
- path: ssn
|
|
15
|
+
mode: remove
|
|
16
|
+
reason: PII
|
|
17
|
+
- path: contacts[*].email
|
|
18
|
+
mode: mask
|
|
19
|
+
replacement: "[REDACTED]"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: pricing.enterprise
|
|
3
|
+
type: policy
|
|
4
|
+
layer: L3
|
|
5
|
+
version: 2
|
|
6
|
+
authority: canonical
|
|
7
|
+
owner: sales
|
|
8
|
+
canonical_source: true
|
|
9
|
+
updated: 2026-08-01T00:00:00Z
|
|
10
|
+
supersedes:
|
|
11
|
+
- pricing.enterprise@1
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
Enterprise plans start at $2,500/month.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Superseded versions are retained on disk and excluded from default resolution; --include-historical brings them back so a past view can be reconstructed.",
|
|
3
|
+
"resolve": {
|
|
4
|
+
"role": "sales",
|
|
5
|
+
"at": "2026-08-09T12:00:00Z"
|
|
6
|
+
},
|
|
7
|
+
"expect": {
|
|
8
|
+
"included": [
|
|
9
|
+
"pricing.enterprise"
|
|
10
|
+
],
|
|
11
|
+
"includedVersions": {
|
|
12
|
+
"pricing.enterprise": 2
|
|
13
|
+
},
|
|
14
|
+
"excluded": [
|
|
15
|
+
{
|
|
16
|
+
"id": "pricing.enterprise",
|
|
17
|
+
"reason": "superseded"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"also": [
|
|
22
|
+
{
|
|
23
|
+
"resolve": {
|
|
24
|
+
"role": "sales",
|
|
25
|
+
"at": "2026-08-09T12:00:00Z",
|
|
26
|
+
"includeHistorical": true
|
|
27
|
+
},
|
|
28
|
+
"expect": {
|
|
29
|
+
"objectCount": 2
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"opencontext": "1.0",
|
|
3
|
+
"event": "context.resolve",
|
|
4
|
+
"at": "2026-08-09T15:00:00Z",
|
|
5
|
+
"actor": {
|
|
6
|
+
"type": "agent",
|
|
7
|
+
"id": "support-agent",
|
|
8
|
+
"roles": [
|
|
9
|
+
"support"
|
|
10
|
+
],
|
|
11
|
+
"on_behalf_of": "dana@acme.example"
|
|
12
|
+
},
|
|
13
|
+
"task": "Handle refund request for ACME",
|
|
14
|
+
"objects": [
|
|
15
|
+
"mission",
|
|
16
|
+
"policies.refunds"
|
|
17
|
+
],
|
|
18
|
+
"bundle": {
|
|
19
|
+
"bundle_id": "ocb_3b541a2e1a933b60",
|
|
20
|
+
"digest": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
21
|
+
"object_count": 2
|
|
22
|
+
},
|
|
23
|
+
"outcome": "partial",
|
|
24
|
+
"reason": "3 objects excluded by scope",
|
|
25
|
+
"namespace": "acme"
|
|
26
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"opencontext": "1.0",
|
|
3
|
+
"bundle_id": "ocb_3b541a2e1a933b60",
|
|
4
|
+
"generated_at": "2026-08-09T15:00:00Z",
|
|
5
|
+
"namespace": "acme",
|
|
6
|
+
"consumer": {
|
|
7
|
+
"type": "agent",
|
|
8
|
+
"id": "support-agent",
|
|
9
|
+
"roles": [
|
|
10
|
+
"support"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"task": "Handle refund request for ACME",
|
|
14
|
+
"as_of": "2026-08-09T15:00:00Z",
|
|
15
|
+
"objects": [
|
|
16
|
+
{
|
|
17
|
+
"id": "mission",
|
|
18
|
+
"type": "mission",
|
|
19
|
+
"layer": "L0",
|
|
20
|
+
"title": "Why ACME exists",
|
|
21
|
+
"content": "ACME exists to make refunds boring.",
|
|
22
|
+
"authority": "canonical",
|
|
23
|
+
"trust": "trusted",
|
|
24
|
+
"owner": "founders",
|
|
25
|
+
"lifecycle": "current",
|
|
26
|
+
"classification": "public"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"excluded": [
|
|
30
|
+
{
|
|
31
|
+
"id": "finance.payroll",
|
|
32
|
+
"reason": "permission-denied",
|
|
33
|
+
"detail": "outside the support scope"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "policies.refunds.v1",
|
|
37
|
+
"reason": "superseded",
|
|
38
|
+
"outranked_by": "policies.refunds"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"warnings": [
|
|
42
|
+
{
|
|
43
|
+
"code": "stale",
|
|
44
|
+
"message": "procedures.refund is stale.",
|
|
45
|
+
"id": "procedures.refund",
|
|
46
|
+
"severity": "warning"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"provenance": [
|
|
50
|
+
{
|
|
51
|
+
"id": "mission",
|
|
52
|
+
"canonical_source": true
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"permissions": [
|
|
56
|
+
"customer.read",
|
|
57
|
+
"ticket.write"
|
|
58
|
+
],
|
|
59
|
+
"stats": {
|
|
60
|
+
"considered": 12,
|
|
61
|
+
"included": 1,
|
|
62
|
+
"excluded": 2,
|
|
63
|
+
"redacted": 0,
|
|
64
|
+
"characters": 38
|
|
65
|
+
},
|
|
66
|
+
"digest": "sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"
|
|
67
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "decision.2026-08-09-model-provider",
|
|
3
|
+
"type": "decision",
|
|
4
|
+
"layer": "L5",
|
|
5
|
+
"title": "Default model provider",
|
|
6
|
+
"authority": "approved",
|
|
7
|
+
"owner": "platform",
|
|
8
|
+
"status": "accepted",
|
|
9
|
+
"decision": "Use provider X as the default runtime.",
|
|
10
|
+
"rationale": [
|
|
11
|
+
"latency",
|
|
12
|
+
"cost",
|
|
13
|
+
"reliability"
|
|
14
|
+
],
|
|
15
|
+
"alternatives": [
|
|
16
|
+
{
|
|
17
|
+
"option": "provider Y",
|
|
18
|
+
"rejected_because": "no EU region"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"consequences": [
|
|
22
|
+
"Re-evaluate at renewal."
|
|
23
|
+
],
|
|
24
|
+
"approved_by": [
|
|
25
|
+
{
|
|
26
|
+
"role": "CTO",
|
|
27
|
+
"at": "2026-08-09T15:00:00Z"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"decided_by": {
|
|
31
|
+
"type": "human",
|
|
32
|
+
"id": "cto@acme.example"
|
|
33
|
+
},
|
|
34
|
+
"bundle": {
|
|
35
|
+
"bundle_id": "ocb_3b541a2e1a933b60",
|
|
36
|
+
"digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
37
|
+
"generated_at": "2026-08-09T15:00:00Z"
|
|
38
|
+
},
|
|
39
|
+
"created": "2026-08-09T15:00:00Z",
|
|
40
|
+
"updated": "2026-08-09T15:00:00Z",
|
|
41
|
+
"durability": "long-lived",
|
|
42
|
+
"classification": "internal",
|
|
43
|
+
"canonical_source": true,
|
|
44
|
+
"references": [
|
|
45
|
+
"policies.vendor-selection"
|
|
46
|
+
],
|
|
47
|
+
"tags": [
|
|
48
|
+
"platform"
|
|
49
|
+
],
|
|
50
|
+
"version": 1
|
|
51
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"opencontext": "1.0",
|
|
3
|
+
"ok": false,
|
|
4
|
+
"generated_at": "2026-08-09T15:00:00Z",
|
|
5
|
+
"namespace": "acme",
|
|
6
|
+
"score": 91.5,
|
|
7
|
+
"counts": {
|
|
8
|
+
"objects": 42,
|
|
9
|
+
"errors": 1,
|
|
10
|
+
"warnings": 3,
|
|
11
|
+
"info": 0,
|
|
12
|
+
"stale": 3,
|
|
13
|
+
"expired": 0,
|
|
14
|
+
"conflicting": 1,
|
|
15
|
+
"orphaned": 7,
|
|
16
|
+
"missing_owner": 3,
|
|
17
|
+
"broken_sources": 1
|
|
18
|
+
},
|
|
19
|
+
"findings": [
|
|
20
|
+
{
|
|
21
|
+
"code": "duplicate-canonical",
|
|
22
|
+
"severity": "error",
|
|
23
|
+
"message": "2 active canonical objects share the id \"policies.refunds\".",
|
|
24
|
+
"id": "policies.refunds",
|
|
25
|
+
"ids": [
|
|
26
|
+
"context/policies/refunds.md",
|
|
27
|
+
"context/policies/refunds-new.md"
|
|
28
|
+
],
|
|
29
|
+
"file": "context/policies/refunds.md",
|
|
30
|
+
"line": 3,
|
|
31
|
+
"field": "authority",
|
|
32
|
+
"expected": "exactly one canonical object per id",
|
|
33
|
+
"actual": 2,
|
|
34
|
+
"remediation": "Supersede the older one, or lower its authority to reference."
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
{
|
|
2
|
+
"opencontext": "1.0",
|
|
3
|
+
"id": "acme",
|
|
4
|
+
"name": "ACME Corporation",
|
|
5
|
+
"description": "Every durable thing ACME's humans and agents need to know.",
|
|
6
|
+
"context": {
|
|
7
|
+
"mission": "./context/mission.md",
|
|
8
|
+
"glossary": "./context/glossary.md"
|
|
9
|
+
},
|
|
10
|
+
"collections": {
|
|
11
|
+
"policies": "./context/policies/**",
|
|
12
|
+
"procedures": {
|
|
13
|
+
"source": "./context/sops/**",
|
|
14
|
+
"type": "procedure",
|
|
15
|
+
"layer": "L4",
|
|
16
|
+
"owner": "support"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"roles": {
|
|
20
|
+
"support": {
|
|
21
|
+
"description": "Front-line support.",
|
|
22
|
+
"include": [
|
|
23
|
+
"mission",
|
|
24
|
+
"glossary",
|
|
25
|
+
"policies.*",
|
|
26
|
+
"procedures.*"
|
|
27
|
+
],
|
|
28
|
+
"exclude": [
|
|
29
|
+
"policies.internal.*"
|
|
30
|
+
],
|
|
31
|
+
"permissions": [
|
|
32
|
+
"customer.read",
|
|
33
|
+
"ticket.write"
|
|
34
|
+
],
|
|
35
|
+
"max_classification": "internal",
|
|
36
|
+
"redact": [
|
|
37
|
+
{
|
|
38
|
+
"path": "customer.ssn",
|
|
39
|
+
"mode": "remove",
|
|
40
|
+
"reason": "PII"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"finance": {
|
|
45
|
+
"include": [
|
|
46
|
+
"mission",
|
|
47
|
+
"policies.*"
|
|
48
|
+
],
|
|
49
|
+
"max_classification": "confidential",
|
|
50
|
+
"inherits": [
|
|
51
|
+
"support"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"agents": {
|
|
56
|
+
"support-agent": {
|
|
57
|
+
"roles": [
|
|
58
|
+
"support"
|
|
59
|
+
],
|
|
60
|
+
"description": "Handles tickets."
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"authority": {
|
|
64
|
+
"precedence": [
|
|
65
|
+
"canonical",
|
|
66
|
+
"approved",
|
|
67
|
+
"reference",
|
|
68
|
+
"observed",
|
|
69
|
+
"inferred",
|
|
70
|
+
"historical"
|
|
71
|
+
],
|
|
72
|
+
"tie_breakers": [
|
|
73
|
+
"version",
|
|
74
|
+
"updated",
|
|
75
|
+
"confidence",
|
|
76
|
+
"id"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"freshness": {
|
|
80
|
+
"default_ttl": "30d",
|
|
81
|
+
"stale_is_error": false,
|
|
82
|
+
"exclude_expired": true
|
|
83
|
+
},
|
|
84
|
+
"provenance": {
|
|
85
|
+
"required": true,
|
|
86
|
+
"digest": "sha256",
|
|
87
|
+
"require_digest": false
|
|
88
|
+
},
|
|
89
|
+
"audit": {
|
|
90
|
+
"context_reads": true,
|
|
91
|
+
"context_writes": true,
|
|
92
|
+
"decisions": true,
|
|
93
|
+
"sink": "file://./context/.audit/events.ndjson"
|
|
94
|
+
},
|
|
95
|
+
"redact": [
|
|
96
|
+
{
|
|
97
|
+
"path": "payment.card",
|
|
98
|
+
"mode": "mask",
|
|
99
|
+
"replacement": "[REDACTED]"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"review": {
|
|
103
|
+
"interval": "180d",
|
|
104
|
+
"required_approvers": 2
|
|
105
|
+
},
|
|
106
|
+
"adapters": {
|
|
107
|
+
"https": {
|
|
108
|
+
"enabled": true,
|
|
109
|
+
"trust": "untrusted",
|
|
110
|
+
"timeout_ms": 5000
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"defaults": {
|
|
114
|
+
"classification": "internal",
|
|
115
|
+
"trust": "trusted"
|
|
116
|
+
},
|
|
117
|
+
"health": {
|
|
118
|
+
"minimum_score": 90,
|
|
119
|
+
"fail_on": "error",
|
|
120
|
+
"require_owner": true,
|
|
121
|
+
"weights": {
|
|
122
|
+
"stale": 0.2
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"related": {
|
|
126
|
+
"prd": "./openprd.yaml",
|
|
127
|
+
"topology": "./opentopology.yaml"
|
|
128
|
+
},
|
|
129
|
+
"extensions": {
|
|
130
|
+
"com.acme.region": {
|
|
131
|
+
"primary": "eu-west-1"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "pricing.enterprise",
|
|
3
|
+
"type": "policy",
|
|
4
|
+
"layer": "L3",
|
|
5
|
+
"title": "Enterprise Pricing",
|
|
6
|
+
"content": "Enterprise plans start at $2,500/month.\n",
|
|
7
|
+
"content_type": "text/markdown",
|
|
8
|
+
"authority": "canonical",
|
|
9
|
+
"trust": "trusted",
|
|
10
|
+
"owner": "sales",
|
|
11
|
+
"status": "approved",
|
|
12
|
+
"version": 3,
|
|
13
|
+
"created": "2026-07-01T00:00:00Z",
|
|
14
|
+
"updated": "2026-08-09T00:00:00Z",
|
|
15
|
+
"valid_from": "2026-08-01T00:00:00Z",
|
|
16
|
+
"expires": null,
|
|
17
|
+
"durability": "long-lived",
|
|
18
|
+
"classification": "internal",
|
|
19
|
+
"permissions": {
|
|
20
|
+
"read": [
|
|
21
|
+
"sales-agent",
|
|
22
|
+
"finance-agent"
|
|
23
|
+
],
|
|
24
|
+
"write": [
|
|
25
|
+
"sales-admin"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"sources": [
|
|
29
|
+
{
|
|
30
|
+
"uri": "crm://pricing/enterprise",
|
|
31
|
+
"type": "canonical-record",
|
|
32
|
+
"retrieved_at": "2026-08-09T15:00:00Z",
|
|
33
|
+
"digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
34
|
+
"trust": "verified"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"supersedes": [
|
|
38
|
+
"pricing.enterprise@2"
|
|
39
|
+
],
|
|
40
|
+
"confidence": 1.0,
|
|
41
|
+
"tags": [
|
|
42
|
+
"pricing",
|
|
43
|
+
"enterprise"
|
|
44
|
+
],
|
|
45
|
+
"applies_to": [
|
|
46
|
+
"sales"
|
|
47
|
+
],
|
|
48
|
+
"references": [
|
|
49
|
+
"policies.discounts"
|
|
50
|
+
],
|
|
51
|
+
"approval": {
|
|
52
|
+
"required": true,
|
|
53
|
+
"roles": [
|
|
54
|
+
"finance"
|
|
55
|
+
],
|
|
56
|
+
"minimum": 1,
|
|
57
|
+
"approved_by": [
|
|
58
|
+
{
|
|
59
|
+
"role": "finance",
|
|
60
|
+
"id": "cfo@acme.example",
|
|
61
|
+
"at": "2026-08-08T10:00:00Z"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"review": {
|
|
66
|
+
"interval": "180d",
|
|
67
|
+
"next_review": "2027-02-09",
|
|
68
|
+
"last_review": "2026-08-09"
|
|
69
|
+
},
|
|
70
|
+
"extensions": {
|
|
71
|
+
"com.acme.risk": {
|
|
72
|
+
"score": 0.25
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "customers.acme",
|
|
3
|
+
"type": "customer",
|
|
4
|
+
"layer": "L2",
|
|
5
|
+
"title": "ACME Inc.",
|
|
6
|
+
"content": {
|
|
7
|
+
"name": "ACME Inc.",
|
|
8
|
+
"plan": "enterprise",
|
|
9
|
+
"ssn": "000-00-0000",
|
|
10
|
+
"contacts": [
|
|
11
|
+
{
|
|
12
|
+
"name": "Dana",
|
|
13
|
+
"email": "dana@acme.example"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"content_type": "application/json",
|
|
18
|
+
"authority": "reference",
|
|
19
|
+
"owner": "support",
|
|
20
|
+
"classification": "confidential",
|
|
21
|
+
"redact": [
|
|
22
|
+
{
|
|
23
|
+
"path": "ssn",
|
|
24
|
+
"mode": "remove"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "contacts[*].email",
|
|
28
|
+
"mode": "hash"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"canonical_source": true,
|
|
32
|
+
"durability": "operational",
|
|
33
|
+
"trust": "verified"
|
|
34
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "operations.ticket-4821",
|
|
3
|
+
"type": "operational",
|
|
4
|
+
"layer": "L5",
|
|
5
|
+
"title": "Ticket 4821",
|
|
6
|
+
"content_uri": "https://support.example.com/tickets/4821",
|
|
7
|
+
"authority": "observed",
|
|
8
|
+
"trust": "untrusted",
|
|
9
|
+
"owner": "support",
|
|
10
|
+
"durability": "session",
|
|
11
|
+
"classification": "internal",
|
|
12
|
+
"sources": [
|
|
13
|
+
{
|
|
14
|
+
"uri": "https://support.example.com/tickets/4821",
|
|
15
|
+
"type": "conversation",
|
|
16
|
+
"trust": "untrusted"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "policies.refunds",
|
|
3
|
+
"sources": [
|
|
4
|
+
{
|
|
5
|
+
"uri": "git://github.com/acme/context/policies/refunds.md",
|
|
6
|
+
"type": "document",
|
|
7
|
+
"retrieved_at": "2026-08-09T15:00:00Z",
|
|
8
|
+
"digest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
9
|
+
"trust": "trusted",
|
|
10
|
+
"author": "support"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"retrieved_at": "2026-08-09T15:00:00Z"
|
|
14
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "support",
|
|
3
|
+
"description": "Front-line customer support.",
|
|
4
|
+
"include": [
|
|
5
|
+
"mission",
|
|
6
|
+
"organization.public",
|
|
7
|
+
"products.*",
|
|
8
|
+
"customers.current",
|
|
9
|
+
"policies.support.*"
|
|
10
|
+
],
|
|
11
|
+
"exclude": [
|
|
12
|
+
"finance.payroll.*",
|
|
13
|
+
"legal.privileged.*"
|
|
14
|
+
],
|
|
15
|
+
"permissions": [
|
|
16
|
+
"customer.read",
|
|
17
|
+
"ticket.read",
|
|
18
|
+
"ticket.write"
|
|
19
|
+
],
|
|
20
|
+
"max_classification": "internal",
|
|
21
|
+
"redact": [
|
|
22
|
+
{
|
|
23
|
+
"path": "customer.ssn"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"path": "payment.card",
|
|
27
|
+
"mode": "mask"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"inherits": [
|
|
31
|
+
"everyone"
|
|
32
|
+
],
|
|
33
|
+
"extensions": {
|
|
34
|
+
"com.acme.tier": {
|
|
35
|
+
"level": 1
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|