@nebulacomponents/citable 1.7.0 → 1.8.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 +19 -0
- package/README.md +9 -3
- package/dist/universal/.agents/skills/citable/SKILL.md +9 -3
- package/dist/universal/.agents/skills/citable/VERSION +1 -1
- package/dist/universal/.agents/skills/citable/commands/README.md +1 -0
- package/dist/universal/.agents/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.agents/skills/citable/manifest.json +11 -7
- package/dist/universal/.agents/skills/citable/references/capability-boundaries.md +5 -0
- package/dist/universal/.agents/skills/citable/schemas/exception.schema.json +70 -0
- package/dist/universal/.agents/skills/citable/schemas/review-policy.schema.json +35 -0
- package/dist/universal/.agents/skills/citable/schemas/reviewer.schema.json +32 -0
- package/dist/universal/.claude/skills/citable/SKILL.md +9 -3
- package/dist/universal/.claude/skills/citable/VERSION +1 -1
- package/dist/universal/.claude/skills/citable/commands/README.md +1 -0
- package/dist/universal/.claude/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.claude/skills/citable/manifest.json +11 -7
- package/dist/universal/.claude/skills/citable/references/capability-boundaries.md +5 -0
- package/dist/universal/.claude/skills/citable/schemas/exception.schema.json +70 -0
- package/dist/universal/.claude/skills/citable/schemas/review-policy.schema.json +35 -0
- package/dist/universal/.claude/skills/citable/schemas/reviewer.schema.json +32 -0
- package/dist/universal/.cursor/skills/citable/SKILL.md +9 -3
- package/dist/universal/.cursor/skills/citable/VERSION +1 -1
- package/dist/universal/.cursor/skills/citable/commands/README.md +1 -0
- package/dist/universal/.cursor/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.cursor/skills/citable/manifest.json +11 -7
- package/dist/universal/.cursor/skills/citable/references/capability-boundaries.md +5 -0
- package/dist/universal/.cursor/skills/citable/schemas/exception.schema.json +70 -0
- package/dist/universal/.cursor/skills/citable/schemas/review-policy.schema.json +35 -0
- package/dist/universal/.cursor/skills/citable/schemas/reviewer.schema.json +32 -0
- package/dist/universal/.gemini/skills/citable/SKILL.md +9 -3
- package/dist/universal/.gemini/skills/citable/VERSION +1 -1
- package/dist/universal/.gemini/skills/citable/commands/README.md +1 -0
- package/dist/universal/.gemini/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.gemini/skills/citable/manifest.json +11 -7
- package/dist/universal/.gemini/skills/citable/references/capability-boundaries.md +5 -0
- package/dist/universal/.gemini/skills/citable/schemas/exception.schema.json +70 -0
- package/dist/universal/.gemini/skills/citable/schemas/review-policy.schema.json +35 -0
- package/dist/universal/.gemini/skills/citable/schemas/reviewer.schema.json +32 -0
- package/dist/universal/.github/skills/citable/SKILL.md +9 -3
- package/dist/universal/.github/skills/citable/VERSION +1 -1
- package/dist/universal/.github/skills/citable/commands/README.md +1 -0
- package/dist/universal/.github/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.github/skills/citable/manifest.json +11 -7
- package/dist/universal/.github/skills/citable/references/capability-boundaries.md +5 -0
- package/dist/universal/.github/skills/citable/schemas/exception.schema.json +70 -0
- package/dist/universal/.github/skills/citable/schemas/review-policy.schema.json +35 -0
- package/dist/universal/.github/skills/citable/schemas/reviewer.schema.json +32 -0
- package/dist/universal/.kiro/skills/citable/SKILL.md +9 -3
- package/dist/universal/.kiro/skills/citable/VERSION +1 -1
- package/dist/universal/.kiro/skills/citable/commands/README.md +1 -0
- package/dist/universal/.kiro/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.kiro/skills/citable/manifest.json +11 -7
- package/dist/universal/.kiro/skills/citable/references/capability-boundaries.md +5 -0
- package/dist/universal/.kiro/skills/citable/schemas/exception.schema.json +70 -0
- package/dist/universal/.kiro/skills/citable/schemas/review-policy.schema.json +35 -0
- package/dist/universal/.kiro/skills/citable/schemas/reviewer.schema.json +32 -0
- package/dist/universal/.opencode/skills/citable/SKILL.md +9 -3
- package/dist/universal/.opencode/skills/citable/VERSION +1 -1
- package/dist/universal/.opencode/skills/citable/commands/README.md +1 -0
- package/dist/universal/.opencode/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.opencode/skills/citable/manifest.json +11 -7
- package/dist/universal/.opencode/skills/citable/references/capability-boundaries.md +5 -0
- package/dist/universal/.opencode/skills/citable/schemas/exception.schema.json +70 -0
- package/dist/universal/.opencode/skills/citable/schemas/review-policy.schema.json +35 -0
- package/dist/universal/.opencode/skills/citable/schemas/reviewer.schema.json +32 -0
- package/dist/universal/.pi/agent/skills/citable/SKILL.md +9 -3
- package/dist/universal/.pi/agent/skills/citable/VERSION +1 -1
- package/dist/universal/.pi/agent/skills/citable/commands/README.md +1 -0
- package/dist/universal/.pi/agent/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.pi/agent/skills/citable/manifest.json +11 -7
- package/dist/universal/.pi/agent/skills/citable/references/capability-boundaries.md +5 -0
- package/dist/universal/.pi/agent/skills/citable/schemas/exception.schema.json +70 -0
- package/dist/universal/.pi/agent/skills/citable/schemas/review-policy.schema.json +35 -0
- package/dist/universal/.pi/agent/skills/citable/schemas/reviewer.schema.json +32 -0
- package/dist/universal/.qoder/skills/citable/SKILL.md +9 -3
- package/dist/universal/.qoder/skills/citable/VERSION +1 -1
- package/dist/universal/.qoder/skills/citable/commands/README.md +1 -0
- package/dist/universal/.qoder/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.qoder/skills/citable/manifest.json +11 -7
- package/dist/universal/.qoder/skills/citable/references/capability-boundaries.md +5 -0
- package/dist/universal/.qoder/skills/citable/schemas/exception.schema.json +70 -0
- package/dist/universal/.qoder/skills/citable/schemas/review-policy.schema.json +35 -0
- package/dist/universal/.qoder/skills/citable/schemas/reviewer.schema.json +32 -0
- package/dist/universal/.rovodev/skills/citable/SKILL.md +9 -3
- package/dist/universal/.rovodev/skills/citable/VERSION +1 -1
- package/dist/universal/.rovodev/skills/citable/commands/README.md +1 -0
- package/dist/universal/.rovodev/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.rovodev/skills/citable/manifest.json +11 -7
- package/dist/universal/.rovodev/skills/citable/references/capability-boundaries.md +5 -0
- package/dist/universal/.rovodev/skills/citable/schemas/exception.schema.json +70 -0
- package/dist/universal/.rovodev/skills/citable/schemas/review-policy.schema.json +35 -0
- package/dist/universal/.rovodev/skills/citable/schemas/reviewer.schema.json +32 -0
- package/dist/universal/.trae/skills/citable/SKILL.md +9 -3
- package/dist/universal/.trae/skills/citable/VERSION +1 -1
- package/dist/universal/.trae/skills/citable/commands/README.md +1 -0
- package/dist/universal/.trae/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.trae/skills/citable/manifest.json +11 -7
- package/dist/universal/.trae/skills/citable/references/capability-boundaries.md +5 -0
- package/dist/universal/.trae/skills/citable/schemas/exception.schema.json +70 -0
- package/dist/universal/.trae/skills/citable/schemas/review-policy.schema.json +35 -0
- package/dist/universal/.trae/skills/citable/schemas/reviewer.schema.json +32 -0
- package/dist/universal/.trae-cn/skills/citable/SKILL.md +9 -3
- package/dist/universal/.trae-cn/skills/citable/VERSION +1 -1
- package/dist/universal/.trae-cn/skills/citable/commands/README.md +1 -0
- package/dist/universal/.trae-cn/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.trae-cn/skills/citable/manifest.json +11 -7
- package/dist/universal/.trae-cn/skills/citable/references/capability-boundaries.md +5 -0
- package/dist/universal/.trae-cn/skills/citable/schemas/exception.schema.json +70 -0
- package/dist/universal/.trae-cn/skills/citable/schemas/review-policy.schema.json +35 -0
- package/dist/universal/.trae-cn/skills/citable/schemas/reviewer.schema.json +32 -0
- package/dist/universal/manifest.json +135 -87
- package/package.json +2 -2
- package/schemas/exception.schema.json +70 -0
- package/schemas/review-policy.schema.json +35 -0
- package/schemas/reviewer.schema.json +32 -0
- package/skill/SKILL.md +9 -3
- package/skill/commands/README.md +1 -0
- package/skill/commands/governance.md +17 -0
- package/skill/references/capability-boundaries.md +5 -0
- package/src/cli/index.js +17 -0
- package/src/commands/governance.js +144 -0
- package/src/commands/selfUpgrade.js +1 -1
- package/src/registries/index.js +17 -0
|
@@ -7,7 +7,7 @@ description: >
|
|
|
7
7
|
generative engine optimization, structured data governance, claim substantiation,
|
|
8
8
|
crawler policy, entity consistency, content discoverability, or wants a site audited
|
|
9
9
|
for how search and AI systems will retrieve, understand, cite, or recommend it.
|
|
10
|
-
version: 1.
|
|
10
|
+
version: 1.8.0
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
# Citable — evidence and change control for search and AI citation readiness
|
|
@@ -108,6 +108,8 @@ citable connect disconnect --connection-id <id> [--write]
|
|
|
108
108
|
citable objectives init --input <json|yaml> [--write]
|
|
109
109
|
citable objectives validate
|
|
110
110
|
citable evaluate [objective-id] [--ref-date YYYY-MM-DD]
|
|
111
|
+
citable governance validate [--ref-date YYYY-MM-DD]
|
|
112
|
+
citable governance evaluate <run-id> [--ref-date YYYY-MM-DD]
|
|
111
113
|
```
|
|
112
114
|
|
|
113
115
|
Audit scopes: `technical seo aeo geo architecture entity claims evidence schema
|
|
@@ -165,8 +167,9 @@ mandatory.
|
|
|
165
167
|
## Registries are the source of truth
|
|
166
168
|
|
|
167
169
|
`.citable/` holds YAML registries for queries, prompts, entities, claims,
|
|
168
|
-
evidence, pages, crawlers, competitors, experiments, metrics, objectives,
|
|
169
|
-
interventions,
|
|
170
|
+
evidence, pages, crawlers, competitors, experiments, metrics, objectives,
|
|
171
|
+
interventions, optional connection state, reviewers, review policies, and
|
|
172
|
+
governed exceptions, all schema-validated
|
|
170
173
|
(`schemas/*.schema.json`) with referential integrity checks. Rules:
|
|
171
174
|
|
|
172
175
|
- Never overwrite registry content without history — use the loader/saver in
|
|
@@ -175,6 +178,9 @@ interventions, and optional connection state, all schema-validated
|
|
|
175
178
|
competitors, pricing). Mark entities `incomplete` and list `required_input`.
|
|
176
179
|
- Claim status transitions toward `verified` require existing verified evidence
|
|
177
180
|
plus human semantic review; automation only downgrades (fail-closed).
|
|
181
|
+
- Never encode an accepted exception as a passed or resolved finding. Validate
|
|
182
|
+
reviewer authority and separation of duties, bind approval to exact source
|
|
183
|
+
finding/policy/evidence hashes, and report enforcement disposition separately.
|
|
178
184
|
|
|
179
185
|
## Fail-closed behaviour
|
|
180
186
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.8.0
|
|
@@ -27,6 +27,7 @@ intent, not executability, so statuses are strict:
|
|
|
27
27
|
| /citable metrics import | implemented — validates declared CSV/JSON metrics and writes immutable observations |
|
|
28
28
|
| /citable objectives init / validate | implemented — user-owned metric selection, cohorts, windows, and guardrails |
|
|
29
29
|
| /citable evaluate | implemented — independent baseline/evaluation comparisons with inconclusive handling |
|
|
30
|
+
| /citable governance validate / evaluate | implemented — validates reviewer and exception authority and emits immutable dispositions without changing failed findings |
|
|
30
31
|
| /citable ingest, map-site, map-queries, map-prompts, map-entities, map-evidence | specified (ingest.md) |
|
|
31
32
|
| /citable optimize-page | specified (optimize-page.md) — requires source-to-render mapping, claim-preserving rewrites, build execution, rollback; none of that is proven yet |
|
|
32
33
|
| /citable create-page, answer-block, architect, interlink, consolidate, metadata | specified (page-work.md) |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Governance validation and exception evaluation
|
|
2
|
+
|
|
3
|
+
Use `citable governance validate` before relying on any accepted exception. It
|
|
4
|
+
validates reviewer roles and scopes, conflicts, policy requirements, separation
|
|
5
|
+
of duties, source bindings, expiry, renewal, and referential integrity.
|
|
6
|
+
|
|
7
|
+
Use `citable governance evaluate <run-id>` to create a new immutable evidence
|
|
8
|
+
package. The command never edits the source run. Every source finding retains
|
|
9
|
+
`technical_state: failed`; a valid exception is represented only as
|
|
10
|
+
`enforcement_disposition: accepted_exception` with active validity and
|
|
11
|
+
documented residual risk.
|
|
12
|
+
|
|
13
|
+
Refuse authorization when policy, finding, or evidence hashes have changed;
|
|
14
|
+
the exception is expired, revoked, superseded, conflicted, unauthorized, or
|
|
15
|
+
over-renewed; required roles are absent; or more than one active exception
|
|
16
|
+
matches a finding. Reviewer records are declarations and do not independently
|
|
17
|
+
prove real-world identity, competence, independence, or legal authority.
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "citable",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"managedBy": "citable-cli",
|
|
5
5
|
"provider": "opencode",
|
|
6
6
|
"providerName": "OpenCode",
|
|
7
7
|
"scope": "bundle",
|
|
8
|
-
"sourcePackage": "@nebulacomponents/citable@1.
|
|
8
|
+
"sourcePackage": "@nebulacomponents/citable@1.8.0",
|
|
9
9
|
"variantPath": ".opencode/skills/citable",
|
|
10
10
|
"files": {
|
|
11
11
|
"commands/action-findings.md": "sha256:510361461f24fcd4a550e0a8d960c383aefe23f9a65a54a3ffc44abd4c1293e7",
|
|
12
|
+
"commands/governance.md": "sha256:1fd6272f18b00237fc6e602ac126ae812747937b2bb575068a0d617137eea2b0",
|
|
12
13
|
"commands/ingest.md": "sha256:cf35659aecd9d0e160909003efdbe056864fc5d824c71b4ef0ee801ce07ff598",
|
|
13
14
|
"commands/measurement.md": "sha256:9cade6dfec23338e18aa67ede3335ac9e2888dc577a7d4d8e3ceac948bce403f",
|
|
14
15
|
"commands/observe-and-act.md": "sha256:02a93bbbfddc3d8e11cb921ddccd19b0666133c4bdb4f4a280bcb131bed37e8c",
|
|
15
16
|
"commands/optimize-page.md": "sha256:35866f3d7cdeef0376ea7a7d7036085a9b9cf95bbb300ecf4bd77610ebd74d85",
|
|
16
17
|
"commands/page-work.md": "sha256:965a66e59bdf7b0da482d26fade53b3d265885ece5d463fe83b0789ebefaef3e",
|
|
17
|
-
"commands/README.md": "sha256:
|
|
18
|
+
"commands/README.md": "sha256:24b06bc5b99b0a3b033e8e463ca18d275dfeb44a4cd3f921be53acdcf3dcae03",
|
|
18
19
|
"commands/validate-render.md": "sha256:a8e1d04d40b84d57c35039250d98c6a7302cd44a148a8c3b9d9cfb92678c4347",
|
|
19
20
|
"policies/crawler-policy-template.md": "sha256:15c88a4eeb21f53f71e5250dd3eb2d2791a814b304eaefce8bb30e2bdf2e2e59",
|
|
20
21
|
"references/aeo-geo-validation.md": "sha256:e45828d3ccca54a08513cb4235578c8a8ecf1dc47d1cb98e4a497838103bef70",
|
|
21
22
|
"references/anti-patterns.md": "sha256:de63f8e646af0fbf479b45eb1d050ae62a8637acc320d21b87e4a083fd4c47e7",
|
|
22
|
-
"references/capability-boundaries.md": "sha256:
|
|
23
|
+
"references/capability-boundaries.md": "sha256:5d59f15cf97529fec26a105095278dc7a17ae3b829103994ec5ddf420897f448",
|
|
23
24
|
"references/evidence-authority.md": "sha256:b81ee09953999f16b19dc0eaba6fffe794b58d152e2adbd95c3179730bc08ffc",
|
|
24
25
|
"rubrics/answer-extractability.md": "sha256:c8e741143c34e53afdb3dc7b6976ce7b4485dce13b12d14c193fccb17bacf1da",
|
|
25
26
|
"rubrics/claim-boundedness.md": "sha256:0bab1b85248c252b966175912ebfae13bf18aa7e41573f7466831ac78b5d3e27",
|
|
@@ -47,6 +48,7 @@
|
|
|
47
48
|
"schemas/entity.schema.json": "sha256:78a08c35c8f4eb7a804ab46b61a238502f59621ac5218991e783251fbde61c4f",
|
|
48
49
|
"schemas/evidence-authority.schema.json": "sha256:4f8165a37304ebab019e1c2dfec13f1168ecf89ce9bec88f7dca9c8554e39ac0",
|
|
49
50
|
"schemas/evidence.schema.json": "sha256:76baec7ad7e89c6952473c01dacb9e3b26953c088331e6314d531ce620df9ec1",
|
|
51
|
+
"schemas/exception.schema.json": "sha256:c88985494ec66554330fdc5b65d033527d0005acf41f10798b1e831d171f8944",
|
|
50
52
|
"schemas/experiment.schema.json": "sha256:3cebebc5745a9eb359261408b0a0421b8370d2c94f8244ce939827cd9da41cb6",
|
|
51
53
|
"schemas/finding.schema.json": "sha256:85907cd04cd8d2fe24a1e618e0df7160f6d56aa1818db501f345aebce5eb5edb",
|
|
52
54
|
"schemas/intervention.schema.json": "sha256:fcf28e117b207e64ffc96088aa70a95370841a2a9fa43ecb1c82b34c2058a818",
|
|
@@ -59,11 +61,13 @@
|
|
|
59
61
|
"schemas/prompt.schema.json": "sha256:7f0f50c83a86ac91faa7b79895dbc1fed371e8c0342e18d8c2877cc81f4f0f4c",
|
|
60
62
|
"schemas/query.schema.json": "sha256:3c0793a8c0c48ab39320416790840b345ea987696f35b1cc364f23245a62aacb",
|
|
61
63
|
"schemas/remediation-spec.schema.json": "sha256:6fe8cb773702862ba6d261198bb5cc2dca3eca0a2310a60ebddd04377654df8d",
|
|
64
|
+
"schemas/review-policy.schema.json": "sha256:b2d176b1886f78c384b25532a0c3eb18548dfbd17f362a305e622bab562a1d04",
|
|
65
|
+
"schemas/reviewer.schema.json": "sha256:3716697b752575a1277f2c2b318b1f2565de02bf9dce2a0c165567ab5330d18b",
|
|
62
66
|
"schemas/run.schema.json": "sha256:46c3178620f3a358d936d535aeadb83454b9b35b551e53e6615cc9862063dacb",
|
|
63
67
|
"scripts/README.md": "sha256:1c3e952950ef353849621b07c5f615bf7cd20cc5654da4635492a7bd6384e747",
|
|
64
|
-
"SKILL.md": "sha256:
|
|
68
|
+
"SKILL.md": "sha256:4010ad7634cdacfe60b0e88781c7f4392b5d6a7f36a734a71991081d8980b810",
|
|
65
69
|
"templates/finding-review.md": "sha256:b270a83d3f015150aac80249ae9314979c0befea39ff92ec455f9a5aaa73404c",
|
|
66
|
-
"VERSION": "sha256:
|
|
70
|
+
"VERSION": "sha256:3eb1ef94b5890ca727158b106142685c8733b0ace5bcb4cf3f0ac14f9f0643f4"
|
|
67
71
|
},
|
|
68
|
-
"treeHash": "sha256:
|
|
72
|
+
"treeHash": "sha256:47dacf476fb7190fa3efc6da92c0119a67c702d8506e4a5ad3524c134ab0783d"
|
|
69
73
|
}
|
|
@@ -13,12 +13,17 @@ Use the narrowest supported state. Never promote evidence across rows.
|
|
|
13
13
|
| Cited | Import or disclosed adapter | Complete `observe citations` answer with citation URL and product/adapter mode |
|
|
14
14
|
| Materially supports answer | Human review required | `citation_review` maps answer claim to source passage and names the reviewer |
|
|
15
15
|
| Recommended | Operator supplied + review | Explicit recommendation, constraints, provider/mode/locale/time |
|
|
16
|
+
| Accepted exception | Governed owner record | Active policy, authorized reviewers, separation-of-duty checks, exact finding/policy/evidence hashes, expiry, controls, and documented residual risk |
|
|
16
17
|
|
|
17
18
|
URL audit mode alone does not prove crawler identity, WAF allowlisting,
|
|
18
19
|
production-log access, index presence, selected canonical, rendered DOM parity,
|
|
19
20
|
or provider citation behavior. Observation collectors can supply narrower
|
|
20
21
|
evidence for these states; unavailable inputs remain `not_evidenced`.
|
|
21
22
|
|
|
23
|
+
An accepted exception changes enforcement disposition only. It does not change
|
|
24
|
+
the source finding, prove remediation, or establish that reviewer identity,
|
|
25
|
+
competence, independence, or legal authority was externally authenticated.
|
|
26
|
+
|
|
22
27
|
Primary-source lineage for these boundaries:
|
|
23
28
|
|
|
24
29
|
- Perplexity documents separate `PerplexityBot` and `Perplexity-User` purposes,
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "citable://schemas/exception.schema.json",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Governed exception registry",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["version", "kind", "updated", "entries"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"version": { "const": 1 },
|
|
10
|
+
"kind": { "const": "exceptions" },
|
|
11
|
+
"updated": { "type": "string", "format": "date-time" },
|
|
12
|
+
"entries": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "object", "additionalProperties": false,
|
|
16
|
+
"required": ["exception_id", "policy_id", "policy_hash", "status", "source_run_id", "finding_ids", "finding_hashes", "reason", "risk_statement", "residual_risk", "compensating_controls", "evidence_ids", "evidence_hashes", "owner_reviewer_id", "reviewer_assignments", "reviewer_independence", "created_at", "expires_at", "renewal_count", "renewal_limit", "invalidation_conditions", "audit_history"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"exception_id": { "type": "string", "pattern": "^EXCEPTION-[A-Z0-9][A-Z0-9_-]*$" },
|
|
19
|
+
"policy_id": { "type": "string", "pattern": "^POLICY-" },
|
|
20
|
+
"policy_hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
21
|
+
"status": { "type": "string", "enum": ["proposed", "approved", "revoked", "superseded"] },
|
|
22
|
+
"source_run_id": { "type": "string", "minLength": 1 },
|
|
23
|
+
"finding_ids": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
24
|
+
"finding_hashes": { "type": "object", "minProperties": 1, "additionalProperties": { "type": "string", "pattern": "^[a-f0-9]{64}$" } },
|
|
25
|
+
"reason": { "type": "string", "minLength": 1 },
|
|
26
|
+
"risk_statement": { "type": "string", "minLength": 1 },
|
|
27
|
+
"residual_risk": { "type": "string", "enum": ["documented", "not_documented"] },
|
|
28
|
+
"compensating_controls": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
|
|
29
|
+
"evidence_ids": { "type": "array", "items": { "type": "string" } },
|
|
30
|
+
"evidence_hashes": { "type": "object", "additionalProperties": { "type": "string", "pattern": "^[a-f0-9]{64}$" } },
|
|
31
|
+
"owner_reviewer_id": { "type": "string", "pattern": "^REVIEWER-" },
|
|
32
|
+
"reviewer_assignments": {
|
|
33
|
+
"type": "array", "minItems": 1,
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "object", "additionalProperties": false, "required": ["reviewer_id", "role"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"reviewer_id": { "type": "string", "pattern": "^REVIEWER-" },
|
|
38
|
+
"role": { "type": "string", "enum": ["technical_reviewer", "subject_matter_reviewer", "independent_reviewer", "approver", "risk_acceptor", "remediation_implementer", "content_author"] }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"reviewer_independence": { "type": "string", "enum": ["established", "not_established", "conflicted"] },
|
|
43
|
+
"created_at": { "type": "string", "format": "date-time" },
|
|
44
|
+
"expires_at": { "type": "string", "format": "date-time" },
|
|
45
|
+
"renewal_count": { "type": "integer", "minimum": 0 },
|
|
46
|
+
"renewal_limit": { "type": "integer", "minimum": 0 },
|
|
47
|
+
"invalidation_conditions": {
|
|
48
|
+
"type": "array", "minItems": 1, "uniqueItems": true,
|
|
49
|
+
"items": { "type": "string", "enum": ["finding_changed", "evidence_changed", "policy_changed", "resource_changed", "intervention_changed"] }
|
|
50
|
+
},
|
|
51
|
+
"related_intervention_id": { "type": ["string", "null"] },
|
|
52
|
+
"supersedes_exception_id": { "type": ["string", "null"] },
|
|
53
|
+
"superseded_by_exception_id": { "type": ["string", "null"] },
|
|
54
|
+
"audit_history": {
|
|
55
|
+
"type": "array", "minItems": 1,
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "object", "additionalProperties": false, "required": ["timestamp", "actor_reviewer_id", "action", "note"],
|
|
58
|
+
"properties": {
|
|
59
|
+
"timestamp": { "type": "string", "format": "date-time" },
|
|
60
|
+
"actor_reviewer_id": { "type": "string", "pattern": "^REVIEWER-" },
|
|
61
|
+
"action": { "type": "string", "enum": ["proposed", "approved", "renewed", "revoked", "superseded"] },
|
|
62
|
+
"note": { "type": "string", "minLength": 1 }
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "citable://schemas/review-policy.schema.json",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Review policy registry",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["version", "kind", "updated", "entries"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"version": { "const": 1 },
|
|
10
|
+
"kind": { "const": "review_policies" },
|
|
11
|
+
"updated": { "type": "string", "format": "date-time" },
|
|
12
|
+
"entries": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "object", "additionalProperties": false,
|
|
16
|
+
"required": ["policy_id", "name", "status", "required_roles", "separation_rules", "max_exception_days", "max_renewals"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"policy_id": { "type": "string", "pattern": "^POLICY-[A-Z0-9][A-Z0-9_-]*$" },
|
|
19
|
+
"name": { "type": "string", "minLength": 1 },
|
|
20
|
+
"status": { "type": "string", "enum": ["active", "deprecated"] },
|
|
21
|
+
"required_roles": {
|
|
22
|
+
"type": "array", "minItems": 1, "uniqueItems": true,
|
|
23
|
+
"items": { "type": "string", "enum": ["technical_reviewer", "subject_matter_reviewer", "independent_reviewer", "approver", "risk_acceptor"] }
|
|
24
|
+
},
|
|
25
|
+
"separation_rules": {
|
|
26
|
+
"type": "array", "uniqueItems": true,
|
|
27
|
+
"items": { "type": "string", "enum": ["author_cannot_verify_own_claim", "implementer_cannot_solely_verify", "commercial_owner_requires_independent_benefit_review", "risk_acceptor_must_be_authorized"] }
|
|
28
|
+
},
|
|
29
|
+
"max_exception_days": { "type": "integer", "minimum": 1, "maximum": 366 },
|
|
30
|
+
"max_renewals": { "type": "integer", "minimum": 0, "maximum": 20 }
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "citable://schemas/reviewer.schema.json",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Reviewer registry",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["version", "kind", "updated", "entries"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"version": { "const": 1 },
|
|
10
|
+
"kind": { "const": "reviewers" },
|
|
11
|
+
"updated": { "type": "string", "format": "date-time" },
|
|
12
|
+
"entries": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"additionalProperties": false,
|
|
17
|
+
"required": ["reviewer_id", "name", "status", "roles", "authorized_scopes", "conflicts"],
|
|
18
|
+
"properties": {
|
|
19
|
+
"reviewer_id": { "type": "string", "pattern": "^REVIEWER-[A-Z0-9][A-Z0-9_-]*$" },
|
|
20
|
+
"name": { "type": "string", "minLength": 1 },
|
|
21
|
+
"status": { "type": "string", "enum": ["active", "inactive"] },
|
|
22
|
+
"roles": {
|
|
23
|
+
"type": "array", "minItems": 1, "uniqueItems": true,
|
|
24
|
+
"items": { "type": "string", "enum": ["content_author", "evidence_owner", "technical_reviewer", "subject_matter_reviewer", "independent_reviewer", "approver", "risk_acceptor", "remediation_implementer"] }
|
|
25
|
+
},
|
|
26
|
+
"authorized_scopes": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
|
|
27
|
+
"conflicts": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -7,7 +7,7 @@ description: >
|
|
|
7
7
|
generative engine optimization, structured data governance, claim substantiation,
|
|
8
8
|
crawler policy, entity consistency, content discoverability, or wants a site audited
|
|
9
9
|
for how search and AI systems will retrieve, understand, cite, or recommend it.
|
|
10
|
-
version: 1.
|
|
10
|
+
version: 1.8.0
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
# Citable — evidence and change control for search and AI citation readiness
|
|
@@ -108,6 +108,8 @@ citable connect disconnect --connection-id <id> [--write]
|
|
|
108
108
|
citable objectives init --input <json|yaml> [--write]
|
|
109
109
|
citable objectives validate
|
|
110
110
|
citable evaluate [objective-id] [--ref-date YYYY-MM-DD]
|
|
111
|
+
citable governance validate [--ref-date YYYY-MM-DD]
|
|
112
|
+
citable governance evaluate <run-id> [--ref-date YYYY-MM-DD]
|
|
111
113
|
```
|
|
112
114
|
|
|
113
115
|
Audit scopes: `technical seo aeo geo architecture entity claims evidence schema
|
|
@@ -165,8 +167,9 @@ mandatory.
|
|
|
165
167
|
## Registries are the source of truth
|
|
166
168
|
|
|
167
169
|
`.citable/` holds YAML registries for queries, prompts, entities, claims,
|
|
168
|
-
evidence, pages, crawlers, competitors, experiments, metrics, objectives,
|
|
169
|
-
interventions,
|
|
170
|
+
evidence, pages, crawlers, competitors, experiments, metrics, objectives,
|
|
171
|
+
interventions, optional connection state, reviewers, review policies, and
|
|
172
|
+
governed exceptions, all schema-validated
|
|
170
173
|
(`schemas/*.schema.json`) with referential integrity checks. Rules:
|
|
171
174
|
|
|
172
175
|
- Never overwrite registry content without history — use the loader/saver in
|
|
@@ -175,6 +178,9 @@ interventions, and optional connection state, all schema-validated
|
|
|
175
178
|
competitors, pricing). Mark entities `incomplete` and list `required_input`.
|
|
176
179
|
- Claim status transitions toward `verified` require existing verified evidence
|
|
177
180
|
plus human semantic review; automation only downgrades (fail-closed).
|
|
181
|
+
- Never encode an accepted exception as a passed or resolved finding. Validate
|
|
182
|
+
reviewer authority and separation of duties, bind approval to exact source
|
|
183
|
+
finding/policy/evidence hashes, and report enforcement disposition separately.
|
|
178
184
|
|
|
179
185
|
## Fail-closed behaviour
|
|
180
186
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.8.0
|
|
@@ -27,6 +27,7 @@ intent, not executability, so statuses are strict:
|
|
|
27
27
|
| /citable metrics import | implemented — validates declared CSV/JSON metrics and writes immutable observations |
|
|
28
28
|
| /citable objectives init / validate | implemented — user-owned metric selection, cohorts, windows, and guardrails |
|
|
29
29
|
| /citable evaluate | implemented — independent baseline/evaluation comparisons with inconclusive handling |
|
|
30
|
+
| /citable governance validate / evaluate | implemented — validates reviewer and exception authority and emits immutable dispositions without changing failed findings |
|
|
30
31
|
| /citable ingest, map-site, map-queries, map-prompts, map-entities, map-evidence | specified (ingest.md) |
|
|
31
32
|
| /citable optimize-page | specified (optimize-page.md) — requires source-to-render mapping, claim-preserving rewrites, build execution, rollback; none of that is proven yet |
|
|
32
33
|
| /citable create-page, answer-block, architect, interlink, consolidate, metadata | specified (page-work.md) |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Governance validation and exception evaluation
|
|
2
|
+
|
|
3
|
+
Use `citable governance validate` before relying on any accepted exception. It
|
|
4
|
+
validates reviewer roles and scopes, conflicts, policy requirements, separation
|
|
5
|
+
of duties, source bindings, expiry, renewal, and referential integrity.
|
|
6
|
+
|
|
7
|
+
Use `citable governance evaluate <run-id>` to create a new immutable evidence
|
|
8
|
+
package. The command never edits the source run. Every source finding retains
|
|
9
|
+
`technical_state: failed`; a valid exception is represented only as
|
|
10
|
+
`enforcement_disposition: accepted_exception` with active validity and
|
|
11
|
+
documented residual risk.
|
|
12
|
+
|
|
13
|
+
Refuse authorization when policy, finding, or evidence hashes have changed;
|
|
14
|
+
the exception is expired, revoked, superseded, conflicted, unauthorized, or
|
|
15
|
+
over-renewed; required roles are absent; or more than one active exception
|
|
16
|
+
matches a finding. Reviewer records are declarations and do not independently
|
|
17
|
+
prove real-world identity, competence, independence, or legal authority.
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "citable",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"managedBy": "citable-cli",
|
|
5
5
|
"provider": "pi",
|
|
6
6
|
"providerName": "Pi",
|
|
7
7
|
"scope": "bundle",
|
|
8
|
-
"sourcePackage": "@nebulacomponents/citable@1.
|
|
8
|
+
"sourcePackage": "@nebulacomponents/citable@1.8.0",
|
|
9
9
|
"variantPath": ".pi/agent/skills/citable",
|
|
10
10
|
"files": {
|
|
11
11
|
"commands/action-findings.md": "sha256:510361461f24fcd4a550e0a8d960c383aefe23f9a65a54a3ffc44abd4c1293e7",
|
|
12
|
+
"commands/governance.md": "sha256:1fd6272f18b00237fc6e602ac126ae812747937b2bb575068a0d617137eea2b0",
|
|
12
13
|
"commands/ingest.md": "sha256:cf35659aecd9d0e160909003efdbe056864fc5d824c71b4ef0ee801ce07ff598",
|
|
13
14
|
"commands/measurement.md": "sha256:9cade6dfec23338e18aa67ede3335ac9e2888dc577a7d4d8e3ceac948bce403f",
|
|
14
15
|
"commands/observe-and-act.md": "sha256:02a93bbbfddc3d8e11cb921ddccd19b0666133c4bdb4f4a280bcb131bed37e8c",
|
|
15
16
|
"commands/optimize-page.md": "sha256:35866f3d7cdeef0376ea7a7d7036085a9b9cf95bbb300ecf4bd77610ebd74d85",
|
|
16
17
|
"commands/page-work.md": "sha256:965a66e59bdf7b0da482d26fade53b3d265885ece5d463fe83b0789ebefaef3e",
|
|
17
|
-
"commands/README.md": "sha256:
|
|
18
|
+
"commands/README.md": "sha256:24b06bc5b99b0a3b033e8e463ca18d275dfeb44a4cd3f921be53acdcf3dcae03",
|
|
18
19
|
"commands/validate-render.md": "sha256:a8e1d04d40b84d57c35039250d98c6a7302cd44a148a8c3b9d9cfb92678c4347",
|
|
19
20
|
"policies/crawler-policy-template.md": "sha256:15c88a4eeb21f53f71e5250dd3eb2d2791a814b304eaefce8bb30e2bdf2e2e59",
|
|
20
21
|
"references/aeo-geo-validation.md": "sha256:e45828d3ccca54a08513cb4235578c8a8ecf1dc47d1cb98e4a497838103bef70",
|
|
21
22
|
"references/anti-patterns.md": "sha256:de63f8e646af0fbf479b45eb1d050ae62a8637acc320d21b87e4a083fd4c47e7",
|
|
22
|
-
"references/capability-boundaries.md": "sha256:
|
|
23
|
+
"references/capability-boundaries.md": "sha256:5d59f15cf97529fec26a105095278dc7a17ae3b829103994ec5ddf420897f448",
|
|
23
24
|
"references/evidence-authority.md": "sha256:b81ee09953999f16b19dc0eaba6fffe794b58d152e2adbd95c3179730bc08ffc",
|
|
24
25
|
"rubrics/answer-extractability.md": "sha256:c8e741143c34e53afdb3dc7b6976ce7b4485dce13b12d14c193fccb17bacf1da",
|
|
25
26
|
"rubrics/claim-boundedness.md": "sha256:0bab1b85248c252b966175912ebfae13bf18aa7e41573f7466831ac78b5d3e27",
|
|
@@ -47,6 +48,7 @@
|
|
|
47
48
|
"schemas/entity.schema.json": "sha256:78a08c35c8f4eb7a804ab46b61a238502f59621ac5218991e783251fbde61c4f",
|
|
48
49
|
"schemas/evidence-authority.schema.json": "sha256:4f8165a37304ebab019e1c2dfec13f1168ecf89ce9bec88f7dca9c8554e39ac0",
|
|
49
50
|
"schemas/evidence.schema.json": "sha256:76baec7ad7e89c6952473c01dacb9e3b26953c088331e6314d531ce620df9ec1",
|
|
51
|
+
"schemas/exception.schema.json": "sha256:c88985494ec66554330fdc5b65d033527d0005acf41f10798b1e831d171f8944",
|
|
50
52
|
"schemas/experiment.schema.json": "sha256:3cebebc5745a9eb359261408b0a0421b8370d2c94f8244ce939827cd9da41cb6",
|
|
51
53
|
"schemas/finding.schema.json": "sha256:85907cd04cd8d2fe24a1e618e0df7160f6d56aa1818db501f345aebce5eb5edb",
|
|
52
54
|
"schemas/intervention.schema.json": "sha256:fcf28e117b207e64ffc96088aa70a95370841a2a9fa43ecb1c82b34c2058a818",
|
|
@@ -59,11 +61,13 @@
|
|
|
59
61
|
"schemas/prompt.schema.json": "sha256:7f0f50c83a86ac91faa7b79895dbc1fed371e8c0342e18d8c2877cc81f4f0f4c",
|
|
60
62
|
"schemas/query.schema.json": "sha256:3c0793a8c0c48ab39320416790840b345ea987696f35b1cc364f23245a62aacb",
|
|
61
63
|
"schemas/remediation-spec.schema.json": "sha256:6fe8cb773702862ba6d261198bb5cc2dca3eca0a2310a60ebddd04377654df8d",
|
|
64
|
+
"schemas/review-policy.schema.json": "sha256:b2d176b1886f78c384b25532a0c3eb18548dfbd17f362a305e622bab562a1d04",
|
|
65
|
+
"schemas/reviewer.schema.json": "sha256:3716697b752575a1277f2c2b318b1f2565de02bf9dce2a0c165567ab5330d18b",
|
|
62
66
|
"schemas/run.schema.json": "sha256:46c3178620f3a358d936d535aeadb83454b9b35b551e53e6615cc9862063dacb",
|
|
63
67
|
"scripts/README.md": "sha256:1c3e952950ef353849621b07c5f615bf7cd20cc5654da4635492a7bd6384e747",
|
|
64
|
-
"SKILL.md": "sha256:
|
|
68
|
+
"SKILL.md": "sha256:4010ad7634cdacfe60b0e88781c7f4392b5d6a7f36a734a71991081d8980b810",
|
|
65
69
|
"templates/finding-review.md": "sha256:b270a83d3f015150aac80249ae9314979c0befea39ff92ec455f9a5aaa73404c",
|
|
66
|
-
"VERSION": "sha256:
|
|
70
|
+
"VERSION": "sha256:3eb1ef94b5890ca727158b106142685c8733b0ace5bcb4cf3f0ac14f9f0643f4"
|
|
67
71
|
},
|
|
68
|
-
"treeHash": "sha256:
|
|
72
|
+
"treeHash": "sha256:47dacf476fb7190fa3efc6da92c0119a67c702d8506e4a5ad3524c134ab0783d"
|
|
69
73
|
}
|
|
@@ -13,12 +13,17 @@ Use the narrowest supported state. Never promote evidence across rows.
|
|
|
13
13
|
| Cited | Import or disclosed adapter | Complete `observe citations` answer with citation URL and product/adapter mode |
|
|
14
14
|
| Materially supports answer | Human review required | `citation_review` maps answer claim to source passage and names the reviewer |
|
|
15
15
|
| Recommended | Operator supplied + review | Explicit recommendation, constraints, provider/mode/locale/time |
|
|
16
|
+
| Accepted exception | Governed owner record | Active policy, authorized reviewers, separation-of-duty checks, exact finding/policy/evidence hashes, expiry, controls, and documented residual risk |
|
|
16
17
|
|
|
17
18
|
URL audit mode alone does not prove crawler identity, WAF allowlisting,
|
|
18
19
|
production-log access, index presence, selected canonical, rendered DOM parity,
|
|
19
20
|
or provider citation behavior. Observation collectors can supply narrower
|
|
20
21
|
evidence for these states; unavailable inputs remain `not_evidenced`.
|
|
21
22
|
|
|
23
|
+
An accepted exception changes enforcement disposition only. It does not change
|
|
24
|
+
the source finding, prove remediation, or establish that reviewer identity,
|
|
25
|
+
competence, independence, or legal authority was externally authenticated.
|
|
26
|
+
|
|
22
27
|
Primary-source lineage for these boundaries:
|
|
23
28
|
|
|
24
29
|
- Perplexity documents separate `PerplexityBot` and `Perplexity-User` purposes,
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "citable://schemas/exception.schema.json",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Governed exception registry",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["version", "kind", "updated", "entries"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"version": { "const": 1 },
|
|
10
|
+
"kind": { "const": "exceptions" },
|
|
11
|
+
"updated": { "type": "string", "format": "date-time" },
|
|
12
|
+
"entries": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "object", "additionalProperties": false,
|
|
16
|
+
"required": ["exception_id", "policy_id", "policy_hash", "status", "source_run_id", "finding_ids", "finding_hashes", "reason", "risk_statement", "residual_risk", "compensating_controls", "evidence_ids", "evidence_hashes", "owner_reviewer_id", "reviewer_assignments", "reviewer_independence", "created_at", "expires_at", "renewal_count", "renewal_limit", "invalidation_conditions", "audit_history"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"exception_id": { "type": "string", "pattern": "^EXCEPTION-[A-Z0-9][A-Z0-9_-]*$" },
|
|
19
|
+
"policy_id": { "type": "string", "pattern": "^POLICY-" },
|
|
20
|
+
"policy_hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
21
|
+
"status": { "type": "string", "enum": ["proposed", "approved", "revoked", "superseded"] },
|
|
22
|
+
"source_run_id": { "type": "string", "minLength": 1 },
|
|
23
|
+
"finding_ids": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
24
|
+
"finding_hashes": { "type": "object", "minProperties": 1, "additionalProperties": { "type": "string", "pattern": "^[a-f0-9]{64}$" } },
|
|
25
|
+
"reason": { "type": "string", "minLength": 1 },
|
|
26
|
+
"risk_statement": { "type": "string", "minLength": 1 },
|
|
27
|
+
"residual_risk": { "type": "string", "enum": ["documented", "not_documented"] },
|
|
28
|
+
"compensating_controls": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
|
|
29
|
+
"evidence_ids": { "type": "array", "items": { "type": "string" } },
|
|
30
|
+
"evidence_hashes": { "type": "object", "additionalProperties": { "type": "string", "pattern": "^[a-f0-9]{64}$" } },
|
|
31
|
+
"owner_reviewer_id": { "type": "string", "pattern": "^REVIEWER-" },
|
|
32
|
+
"reviewer_assignments": {
|
|
33
|
+
"type": "array", "minItems": 1,
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "object", "additionalProperties": false, "required": ["reviewer_id", "role"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"reviewer_id": { "type": "string", "pattern": "^REVIEWER-" },
|
|
38
|
+
"role": { "type": "string", "enum": ["technical_reviewer", "subject_matter_reviewer", "independent_reviewer", "approver", "risk_acceptor", "remediation_implementer", "content_author"] }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"reviewer_independence": { "type": "string", "enum": ["established", "not_established", "conflicted"] },
|
|
43
|
+
"created_at": { "type": "string", "format": "date-time" },
|
|
44
|
+
"expires_at": { "type": "string", "format": "date-time" },
|
|
45
|
+
"renewal_count": { "type": "integer", "minimum": 0 },
|
|
46
|
+
"renewal_limit": { "type": "integer", "minimum": 0 },
|
|
47
|
+
"invalidation_conditions": {
|
|
48
|
+
"type": "array", "minItems": 1, "uniqueItems": true,
|
|
49
|
+
"items": { "type": "string", "enum": ["finding_changed", "evidence_changed", "policy_changed", "resource_changed", "intervention_changed"] }
|
|
50
|
+
},
|
|
51
|
+
"related_intervention_id": { "type": ["string", "null"] },
|
|
52
|
+
"supersedes_exception_id": { "type": ["string", "null"] },
|
|
53
|
+
"superseded_by_exception_id": { "type": ["string", "null"] },
|
|
54
|
+
"audit_history": {
|
|
55
|
+
"type": "array", "minItems": 1,
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "object", "additionalProperties": false, "required": ["timestamp", "actor_reviewer_id", "action", "note"],
|
|
58
|
+
"properties": {
|
|
59
|
+
"timestamp": { "type": "string", "format": "date-time" },
|
|
60
|
+
"actor_reviewer_id": { "type": "string", "pattern": "^REVIEWER-" },
|
|
61
|
+
"action": { "type": "string", "enum": ["proposed", "approved", "renewed", "revoked", "superseded"] },
|
|
62
|
+
"note": { "type": "string", "minLength": 1 }
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "citable://schemas/review-policy.schema.json",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Review policy registry",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["version", "kind", "updated", "entries"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"version": { "const": 1 },
|
|
10
|
+
"kind": { "const": "review_policies" },
|
|
11
|
+
"updated": { "type": "string", "format": "date-time" },
|
|
12
|
+
"entries": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "object", "additionalProperties": false,
|
|
16
|
+
"required": ["policy_id", "name", "status", "required_roles", "separation_rules", "max_exception_days", "max_renewals"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"policy_id": { "type": "string", "pattern": "^POLICY-[A-Z0-9][A-Z0-9_-]*$" },
|
|
19
|
+
"name": { "type": "string", "minLength": 1 },
|
|
20
|
+
"status": { "type": "string", "enum": ["active", "deprecated"] },
|
|
21
|
+
"required_roles": {
|
|
22
|
+
"type": "array", "minItems": 1, "uniqueItems": true,
|
|
23
|
+
"items": { "type": "string", "enum": ["technical_reviewer", "subject_matter_reviewer", "independent_reviewer", "approver", "risk_acceptor"] }
|
|
24
|
+
},
|
|
25
|
+
"separation_rules": {
|
|
26
|
+
"type": "array", "uniqueItems": true,
|
|
27
|
+
"items": { "type": "string", "enum": ["author_cannot_verify_own_claim", "implementer_cannot_solely_verify", "commercial_owner_requires_independent_benefit_review", "risk_acceptor_must_be_authorized"] }
|
|
28
|
+
},
|
|
29
|
+
"max_exception_days": { "type": "integer", "minimum": 1, "maximum": 366 },
|
|
30
|
+
"max_renewals": { "type": "integer", "minimum": 0, "maximum": 20 }
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "citable://schemas/reviewer.schema.json",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Reviewer registry",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["version", "kind", "updated", "entries"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"version": { "const": 1 },
|
|
10
|
+
"kind": { "const": "reviewers" },
|
|
11
|
+
"updated": { "type": "string", "format": "date-time" },
|
|
12
|
+
"entries": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"additionalProperties": false,
|
|
17
|
+
"required": ["reviewer_id", "name", "status", "roles", "authorized_scopes", "conflicts"],
|
|
18
|
+
"properties": {
|
|
19
|
+
"reviewer_id": { "type": "string", "pattern": "^REVIEWER-[A-Z0-9][A-Z0-9_-]*$" },
|
|
20
|
+
"name": { "type": "string", "minLength": 1 },
|
|
21
|
+
"status": { "type": "string", "enum": ["active", "inactive"] },
|
|
22
|
+
"roles": {
|
|
23
|
+
"type": "array", "minItems": 1, "uniqueItems": true,
|
|
24
|
+
"items": { "type": "string", "enum": ["content_author", "evidence_owner", "technical_reviewer", "subject_matter_reviewer", "independent_reviewer", "approver", "risk_acceptor", "remediation_implementer"] }
|
|
25
|
+
},
|
|
26
|
+
"authorized_scopes": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
|
|
27
|
+
"conflicts": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|