@nebulacomponents/citable 1.7.0 → 1.9.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 +29 -0
- package/README.md +14 -3
- package/dist/universal/.agents/skills/citable/SKILL.md +14 -3
- package/dist/universal/.agents/skills/citable/VERSION +1 -1
- package/dist/universal/.agents/skills/citable/commands/README.md +2 -0
- package/dist/universal/.agents/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.agents/skills/citable/commands/reviews.md +18 -0
- package/dist/universal/.agents/skills/citable/manifest.json +14 -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-item.schema.json +12 -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/.agents/skills/citable/schemas/sampling-plan.schema.json +4 -0
- package/dist/universal/.claude/skills/citable/SKILL.md +14 -3
- package/dist/universal/.claude/skills/citable/VERSION +1 -1
- package/dist/universal/.claude/skills/citable/commands/README.md +2 -0
- package/dist/universal/.claude/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.claude/skills/citable/commands/reviews.md +18 -0
- package/dist/universal/.claude/skills/citable/manifest.json +14 -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-item.schema.json +12 -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/.claude/skills/citable/schemas/sampling-plan.schema.json +4 -0
- package/dist/universal/.cursor/skills/citable/SKILL.md +14 -3
- package/dist/universal/.cursor/skills/citable/VERSION +1 -1
- package/dist/universal/.cursor/skills/citable/commands/README.md +2 -0
- package/dist/universal/.cursor/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.cursor/skills/citable/commands/reviews.md +18 -0
- package/dist/universal/.cursor/skills/citable/manifest.json +14 -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-item.schema.json +12 -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/.cursor/skills/citable/schemas/sampling-plan.schema.json +4 -0
- package/dist/universal/.gemini/skills/citable/SKILL.md +14 -3
- package/dist/universal/.gemini/skills/citable/VERSION +1 -1
- package/dist/universal/.gemini/skills/citable/commands/README.md +2 -0
- package/dist/universal/.gemini/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.gemini/skills/citable/commands/reviews.md +18 -0
- package/dist/universal/.gemini/skills/citable/manifest.json +14 -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-item.schema.json +12 -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/.gemini/skills/citable/schemas/sampling-plan.schema.json +4 -0
- package/dist/universal/.github/skills/citable/SKILL.md +14 -3
- package/dist/universal/.github/skills/citable/VERSION +1 -1
- package/dist/universal/.github/skills/citable/commands/README.md +2 -0
- package/dist/universal/.github/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.github/skills/citable/commands/reviews.md +18 -0
- package/dist/universal/.github/skills/citable/manifest.json +14 -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-item.schema.json +12 -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/.github/skills/citable/schemas/sampling-plan.schema.json +4 -0
- package/dist/universal/.kiro/skills/citable/SKILL.md +14 -3
- package/dist/universal/.kiro/skills/citable/VERSION +1 -1
- package/dist/universal/.kiro/skills/citable/commands/README.md +2 -0
- package/dist/universal/.kiro/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.kiro/skills/citable/commands/reviews.md +18 -0
- package/dist/universal/.kiro/skills/citable/manifest.json +14 -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-item.schema.json +12 -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/.kiro/skills/citable/schemas/sampling-plan.schema.json +4 -0
- package/dist/universal/.opencode/skills/citable/SKILL.md +14 -3
- package/dist/universal/.opencode/skills/citable/VERSION +1 -1
- package/dist/universal/.opencode/skills/citable/commands/README.md +2 -0
- package/dist/universal/.opencode/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.opencode/skills/citable/commands/reviews.md +18 -0
- package/dist/universal/.opencode/skills/citable/manifest.json +14 -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-item.schema.json +12 -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/.opencode/skills/citable/schemas/sampling-plan.schema.json +4 -0
- package/dist/universal/.pi/agent/skills/citable/SKILL.md +14 -3
- package/dist/universal/.pi/agent/skills/citable/VERSION +1 -1
- package/dist/universal/.pi/agent/skills/citable/commands/README.md +2 -0
- package/dist/universal/.pi/agent/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.pi/agent/skills/citable/commands/reviews.md +18 -0
- package/dist/universal/.pi/agent/skills/citable/manifest.json +14 -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-item.schema.json +12 -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/.pi/agent/skills/citable/schemas/sampling-plan.schema.json +4 -0
- package/dist/universal/.qoder/skills/citable/SKILL.md +14 -3
- package/dist/universal/.qoder/skills/citable/VERSION +1 -1
- package/dist/universal/.qoder/skills/citable/commands/README.md +2 -0
- package/dist/universal/.qoder/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.qoder/skills/citable/commands/reviews.md +18 -0
- package/dist/universal/.qoder/skills/citable/manifest.json +14 -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-item.schema.json +12 -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/.qoder/skills/citable/schemas/sampling-plan.schema.json +4 -0
- package/dist/universal/.rovodev/skills/citable/SKILL.md +14 -3
- package/dist/universal/.rovodev/skills/citable/VERSION +1 -1
- package/dist/universal/.rovodev/skills/citable/commands/README.md +2 -0
- package/dist/universal/.rovodev/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.rovodev/skills/citable/commands/reviews.md +18 -0
- package/dist/universal/.rovodev/skills/citable/manifest.json +14 -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-item.schema.json +12 -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/.rovodev/skills/citable/schemas/sampling-plan.schema.json +4 -0
- package/dist/universal/.trae/skills/citable/SKILL.md +14 -3
- package/dist/universal/.trae/skills/citable/VERSION +1 -1
- package/dist/universal/.trae/skills/citable/commands/README.md +2 -0
- package/dist/universal/.trae/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.trae/skills/citable/commands/reviews.md +18 -0
- package/dist/universal/.trae/skills/citable/manifest.json +14 -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-item.schema.json +12 -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/skills/citable/schemas/sampling-plan.schema.json +4 -0
- package/dist/universal/.trae-cn/skills/citable/SKILL.md +14 -3
- package/dist/universal/.trae-cn/skills/citable/VERSION +1 -1
- package/dist/universal/.trae-cn/skills/citable/commands/README.md +2 -0
- package/dist/universal/.trae-cn/skills/citable/commands/governance.md +17 -0
- package/dist/universal/.trae-cn/skills/citable/commands/reviews.md +18 -0
- package/dist/universal/.trae-cn/skills/citable/manifest.json +14 -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-item.schema.json +12 -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/.trae-cn/skills/citable/schemas/sampling-plan.schema.json +4 -0
- package/dist/universal/manifest.json +171 -87
- package/package.json +2 -2
- package/schemas/exception.schema.json +70 -0
- package/schemas/review-item.schema.json +12 -0
- package/schemas/review-policy.schema.json +35 -0
- package/schemas/reviewer.schema.json +32 -0
- package/schemas/sampling-plan.schema.json +4 -0
- package/skill/SKILL.md +14 -3
- package/skill/commands/README.md +2 -0
- package/skill/commands/governance.md +17 -0
- package/skill/commands/reviews.md +18 -0
- package/skill/references/capability-boundaries.md +5 -0
- package/src/cli/index.js +34 -0
- package/src/commands/governance.js +144 -0
- package/src/commands/reviews.js +73 -0
- package/src/commands/selfUpgrade.js +1 -1
- package/src/registries/index.js +26 -0
|
@@ -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,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id":"citable://schemas/review-item.schema.json","$schema":"http://json-schema.org/draft-07/schema#","title":"Semantic review item registry","type":"object","additionalProperties":false,"required":["version","kind","updated","entries"],
|
|
3
|
+
"properties":{"version":{"const":1},"kind":{"const":"review_items"},"updated":{"type":"string","format":"date-time"},"entries":{"type":"array","items":{"type":"object","additionalProperties":false,
|
|
4
|
+
"required":["review_item_id","source_run_id","finding_id","finding_hash","review_type","status","priority_inputs","priority_score","priority_tier","missing_inputs","policy_id","assigned_reviewer_ids","decisions","created_at"],
|
|
5
|
+
"properties":{"review_item_id":{"type":"string","pattern":"^REVIEW-[A-Z0-9][A-Z0-9_-]*$"},"source_run_id":{"type":"string"},"finding_id":{"type":"string"},"finding_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},
|
|
6
|
+
"review_type":{"type":"string","enum":["claim_support","citation_correctness","passage_integrity","narrative_accuracy","recommendation_eligibility","comparison_fairness","intent_alignment","evidence_strength","general_semantic_review"]},
|
|
7
|
+
"status":{"type":"string","enum":["queued","assigned","in_review","adjudication_required","completed","withdrawn"]},
|
|
8
|
+
"priority_inputs":{"type":"object","additionalProperties":false,"required":["business_importance","citation_frequency","evidence_age_days","source_authority","regulatory_exposure","intervention_impact","change_magnitude","disagreement_history"],"properties":{"business_importance":{"type":["integer","null"],"minimum":0,"maximum":5},"citation_frequency":{"type":["integer","null"],"minimum":0},"evidence_age_days":{"type":["integer","null"],"minimum":0},"source_authority":{"type":["integer","null"],"minimum":0,"maximum":5},"regulatory_exposure":{"type":["integer","null"],"minimum":0,"maximum":5},"intervention_impact":{"type":["integer","null"],"minimum":0,"maximum":5},"change_magnitude":{"type":["integer","null"],"minimum":0,"maximum":5},"disagreement_history":{"type":["integer","null"],"minimum":0}}},
|
|
9
|
+
"priority_score":{"type":"number","minimum":0},"priority_tier":{"type":"string","enum":["urgent","high","normal","insufficient_inputs"]},"missing_inputs":{"type":"array","items":{"type":"string"}},"policy_id":{"type":"string","pattern":"^POLICY-"},"assigned_reviewer_ids":{"type":"array","uniqueItems":true,"items":{"type":"string","pattern":"^REVIEWER-"}},
|
|
10
|
+
"decisions":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["reviewer_id","verdict","rubric","evidence_refs","rationale","decided_at","review_item_hash"],"properties":{"reviewer_id":{"type":"string","pattern":"^REVIEWER-"},"verdict":{"type":"string","enum":["supported","partially_supported","unsupported","inconclusive","not_applicable"]},"rubric":{"type":"string"},"evidence_refs":{"type":"array","minItems":1,"items":{"type":"string"}},"rationale":{"type":"string","minLength":1},"decided_at":{"type":"string","format":"date-time"},"review_item_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"}}}},"adjudication":{"type":["object","null"],"additionalProperties":false,"required":["reviewer_id","verdict","evidence_refs","rationale","decided_at","review_item_hash"],"properties":{"reviewer_id":{"type":"string","pattern":"^REVIEWER-"},"verdict":{"type":"string","enum":["supported","partially_supported","unsupported","inconclusive","not_applicable"]},"evidence_refs":{"type":"array","minItems":1,"items":{"type":"string"}},"rationale":{"type":"string","minLength":1},"decided_at":{"type":"string","format":"date-time"},"review_item_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"}}},"created_at":{"type":"string","format":"date-time"}
|
|
11
|
+
}}}}
|
|
12
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id":"citable://schemas/sampling-plan.schema.json","$schema":"http://json-schema.org/draft-07/schema#","title":"Semantic review sampling plan registry","type":"object","additionalProperties":false,"required":["version","kind","updated","entries"],
|
|
3
|
+
"properties":{"version":{"const":1},"kind":{"const":"sampling_plans"},"updated":{"type":"string","format":"date-time"},"entries":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["sampling_plan_id","status","method","population_statuses","review_types","sample_size","seed","inclusion_criteria","exclusion_criteria","reviewer_assignment_method","extrapolation_limits","population_hash","selected_item_ids","created_at"],"properties":{"sampling_plan_id":{"type":"string","pattern":"^SAMPLE-[A-Z0-9][A-Z0-9_-]*$"},"status":{"type":"string","enum":["draft","selected","completed"]},"method":{"type":"string","enum":["census","simple_random"]},"population_statuses":{"type":"array","minItems":1,"items":{"type":"string","enum":["queued","assigned","in_review","adjudication_required","completed"]}},"review_types":{"type":"array","items":{"type":"string"}},"sample_size":{"type":"integer","minimum":1},"seed":{"type":"string","minLength":1},"inclusion_criteria":{"type":"array","items":{"type":"string"}},"exclusion_criteria":{"type":"array","items":{"type":"string"}},"reviewer_assignment_method":{"type":"string","minLength":1},"extrapolation_limits":{"type":"array","minItems":1,"items":{"type":"string"}},"population_hash":{"type":["string","null"],"pattern":"^[a-f0-9]{64}$"},"selected_item_ids":{"type":"array","uniqueItems":true,"items":{"type":"string","pattern":"^REVIEW-"}},"created_at":{"type":"string","format":"date-time"}}}}}
|
|
4
|
+
}
|
|
@@ -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.9.0
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
# Citable — evidence and change control for search and AI citation readiness
|
|
@@ -108,6 +108,13 @@ 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]
|
|
113
|
+
citable reviews queue <run-id> <policy-id> [--write]
|
|
114
|
+
citable reviews prioritize [--write]
|
|
115
|
+
citable reviews plan --input <json|yaml> [--write]
|
|
116
|
+
citable reviews sample <sampling-plan-id> [--write]
|
|
117
|
+
citable reviews evaluate
|
|
111
118
|
```
|
|
112
119
|
|
|
113
120
|
Audit scopes: `technical seo aeo geo architecture entity claims evidence schema
|
|
@@ -165,8 +172,9 @@ mandatory.
|
|
|
165
172
|
## Registries are the source of truth
|
|
166
173
|
|
|
167
174
|
`.citable/` holds YAML registries for queries, prompts, entities, claims,
|
|
168
|
-
evidence, pages, crawlers, competitors, experiments, metrics, objectives,
|
|
169
|
-
interventions,
|
|
175
|
+
evidence, pages, crawlers, competitors, experiments, metrics, objectives,
|
|
176
|
+
interventions, optional connection state, reviewers, review policies, and
|
|
177
|
+
governed exceptions, semantic review items, and sampling plans, all schema-validated
|
|
170
178
|
(`schemas/*.schema.json`) with referential integrity checks. Rules:
|
|
171
179
|
|
|
172
180
|
- Never overwrite registry content without history — use the loader/saver in
|
|
@@ -175,6 +183,9 @@ interventions, and optional connection state, all schema-validated
|
|
|
175
183
|
competitors, pricing). Mark entities `incomplete` and list `required_input`.
|
|
176
184
|
- Claim status transitions toward `verified` require existing verified evidence
|
|
177
185
|
plus human semantic review; automation only downgrades (fail-closed).
|
|
186
|
+
- Never encode an accepted exception as a passed or resolved finding. Validate
|
|
187
|
+
reviewer authority and separation of duties, bind approval to exact source
|
|
188
|
+
finding/policy/evidence hashes, and report enforcement disposition separately.
|
|
178
189
|
|
|
179
190
|
## Fail-closed behaviour
|
|
180
191
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.9.0
|
|
@@ -27,6 +27,8 @@ 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 |
|
|
31
|
+
| /citable reviews queue / prioritize / plan / sample / evaluate | implemented — materiality queues, reproducible sampling, stale-decision checks, and independent disagreement adjudication |
|
|
30
32
|
| /citable ingest, map-site, map-queries, map-prompts, map-entities, map-evidence | specified (ingest.md) |
|
|
31
33
|
| /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
34
|
| /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.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Semantic review queues and sampling
|
|
2
|
+
|
|
3
|
+
Use `reviews queue` to create hash-bound review work from heuristic or
|
|
4
|
+
review-required findings. Newly queued items expose all missing materiality
|
|
5
|
+
inputs and remain `insufficient_inputs`; model confidence alone never controls
|
|
6
|
+
priority. After authorized operators supply business importance, citation
|
|
7
|
+
frequency, evidence age and authority, regulatory exposure, intervention
|
|
8
|
+
impact, change magnitude, and disagreement history, use `reviews prioritize`.
|
|
9
|
+
|
|
10
|
+
Sampling plans support only `census` and reproducible `simple_random` methods.
|
|
11
|
+
Every selection records its seed, population hash, inclusion/exclusion criteria,
|
|
12
|
+
assignment method, and extrapolation limits. Do not present sampled review as
|
|
13
|
+
complete validation or generalize beyond the recorded population.
|
|
14
|
+
|
|
15
|
+
`reviews evaluate` rejects stale or unauthorized decisions. Distinct verdicts
|
|
16
|
+
produce `adjudication_required`; vote counting never establishes semantic truth.
|
|
17
|
+
Completion requires an evidence-linked, hash-bound decision from an active
|
|
18
|
+
independent reviewer.
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "citable",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"managedBy": "citable-cli",
|
|
5
5
|
"provider": "cursor",
|
|
6
6
|
"providerName": "Cursor",
|
|
7
7
|
"scope": "bundle",
|
|
8
|
-
"sourcePackage": "@nebulacomponents/citable@1.
|
|
8
|
+
"sourcePackage": "@nebulacomponents/citable@1.9.0",
|
|
9
9
|
"variantPath": ".cursor/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:3bf43b11d303ae9d37df1e3ed0e115b0a5e87f0f5bb0fda6e0465fb3f2907ea6",
|
|
19
|
+
"commands/reviews.md": "sha256:902904aaa405fe5724cf0662c7a5a36eab9a4fe0eb81cbd95ffa2fff946e0ac8",
|
|
18
20
|
"commands/validate-render.md": "sha256:a8e1d04d40b84d57c35039250d98c6a7302cd44a148a8c3b9d9cfb92678c4347",
|
|
19
21
|
"policies/crawler-policy-template.md": "sha256:15c88a4eeb21f53f71e5250dd3eb2d2791a814b304eaefce8bb30e2bdf2e2e59",
|
|
20
22
|
"references/aeo-geo-validation.md": "sha256:e45828d3ccca54a08513cb4235578c8a8ecf1dc47d1cb98e4a497838103bef70",
|
|
21
23
|
"references/anti-patterns.md": "sha256:de63f8e646af0fbf479b45eb1d050ae62a8637acc320d21b87e4a083fd4c47e7",
|
|
22
|
-
"references/capability-boundaries.md": "sha256:
|
|
24
|
+
"references/capability-boundaries.md": "sha256:5d59f15cf97529fec26a105095278dc7a17ae3b829103994ec5ddf420897f448",
|
|
23
25
|
"references/evidence-authority.md": "sha256:b81ee09953999f16b19dc0eaba6fffe794b58d152e2adbd95c3179730bc08ffc",
|
|
24
26
|
"rubrics/answer-extractability.md": "sha256:c8e741143c34e53afdb3dc7b6976ce7b4485dce13b12d14c193fccb17bacf1da",
|
|
25
27
|
"rubrics/claim-boundedness.md": "sha256:0bab1b85248c252b966175912ebfae13bf18aa7e41573f7466831ac78b5d3e27",
|
|
@@ -47,6 +49,7 @@
|
|
|
47
49
|
"schemas/entity.schema.json": "sha256:78a08c35c8f4eb7a804ab46b61a238502f59621ac5218991e783251fbde61c4f",
|
|
48
50
|
"schemas/evidence-authority.schema.json": "sha256:4f8165a37304ebab019e1c2dfec13f1168ecf89ce9bec88f7dca9c8554e39ac0",
|
|
49
51
|
"schemas/evidence.schema.json": "sha256:76baec7ad7e89c6952473c01dacb9e3b26953c088331e6314d531ce620df9ec1",
|
|
52
|
+
"schemas/exception.schema.json": "sha256:c88985494ec66554330fdc5b65d033527d0005acf41f10798b1e831d171f8944",
|
|
50
53
|
"schemas/experiment.schema.json": "sha256:3cebebc5745a9eb359261408b0a0421b8370d2c94f8244ce939827cd9da41cb6",
|
|
51
54
|
"schemas/finding.schema.json": "sha256:85907cd04cd8d2fe24a1e618e0df7160f6d56aa1818db501f345aebce5eb5edb",
|
|
52
55
|
"schemas/intervention.schema.json": "sha256:fcf28e117b207e64ffc96088aa70a95370841a2a9fa43ecb1c82b34c2058a818",
|
|
@@ -59,11 +62,15 @@
|
|
|
59
62
|
"schemas/prompt.schema.json": "sha256:7f0f50c83a86ac91faa7b79895dbc1fed371e8c0342e18d8c2877cc81f4f0f4c",
|
|
60
63
|
"schemas/query.schema.json": "sha256:3c0793a8c0c48ab39320416790840b345ea987696f35b1cc364f23245a62aacb",
|
|
61
64
|
"schemas/remediation-spec.schema.json": "sha256:6fe8cb773702862ba6d261198bb5cc2dca3eca0a2310a60ebddd04377654df8d",
|
|
65
|
+
"schemas/review-item.schema.json": "sha256:df532a70385d5031bbc18654f3ccb436dc6e8d402ccf987e58f8f7e3ad2fb3f1",
|
|
66
|
+
"schemas/review-policy.schema.json": "sha256:b2d176b1886f78c384b25532a0c3eb18548dfbd17f362a305e622bab562a1d04",
|
|
67
|
+
"schemas/reviewer.schema.json": "sha256:3716697b752575a1277f2c2b318b1f2565de02bf9dce2a0c165567ab5330d18b",
|
|
62
68
|
"schemas/run.schema.json": "sha256:46c3178620f3a358d936d535aeadb83454b9b35b551e53e6615cc9862063dacb",
|
|
69
|
+
"schemas/sampling-plan.schema.json": "sha256:005f70f149baaacd7de698548d556d3e401c630978748271b0e14a74726dd413",
|
|
63
70
|
"scripts/README.md": "sha256:1c3e952950ef353849621b07c5f615bf7cd20cc5654da4635492a7bd6384e747",
|
|
64
|
-
"SKILL.md": "sha256:
|
|
71
|
+
"SKILL.md": "sha256:f05761b460e8b9a7cf903efbacf077d860f506e93b76a7cebfc3bd91dbf02a83",
|
|
65
72
|
"templates/finding-review.md": "sha256:b270a83d3f015150aac80249ae9314979c0befea39ff92ec455f9a5aaa73404c",
|
|
66
|
-
"VERSION": "sha256:
|
|
73
|
+
"VERSION": "sha256:30f4611383aa30a15753789f40effde81332f2f8714e6d3b2940bf0fc4592377"
|
|
67
74
|
},
|
|
68
|
-
"treeHash": "sha256:
|
|
75
|
+
"treeHash": "sha256:b4df089f5eafb1d8844a737f7016bc5f4f7041d1aabf7d65a83f6cee457fae35"
|
|
69
76
|
}
|
|
@@ -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,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id":"citable://schemas/review-item.schema.json","$schema":"http://json-schema.org/draft-07/schema#","title":"Semantic review item registry","type":"object","additionalProperties":false,"required":["version","kind","updated","entries"],
|
|
3
|
+
"properties":{"version":{"const":1},"kind":{"const":"review_items"},"updated":{"type":"string","format":"date-time"},"entries":{"type":"array","items":{"type":"object","additionalProperties":false,
|
|
4
|
+
"required":["review_item_id","source_run_id","finding_id","finding_hash","review_type","status","priority_inputs","priority_score","priority_tier","missing_inputs","policy_id","assigned_reviewer_ids","decisions","created_at"],
|
|
5
|
+
"properties":{"review_item_id":{"type":"string","pattern":"^REVIEW-[A-Z0-9][A-Z0-9_-]*$"},"source_run_id":{"type":"string"},"finding_id":{"type":"string"},"finding_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},
|
|
6
|
+
"review_type":{"type":"string","enum":["claim_support","citation_correctness","passage_integrity","narrative_accuracy","recommendation_eligibility","comparison_fairness","intent_alignment","evidence_strength","general_semantic_review"]},
|
|
7
|
+
"status":{"type":"string","enum":["queued","assigned","in_review","adjudication_required","completed","withdrawn"]},
|
|
8
|
+
"priority_inputs":{"type":"object","additionalProperties":false,"required":["business_importance","citation_frequency","evidence_age_days","source_authority","regulatory_exposure","intervention_impact","change_magnitude","disagreement_history"],"properties":{"business_importance":{"type":["integer","null"],"minimum":0,"maximum":5},"citation_frequency":{"type":["integer","null"],"minimum":0},"evidence_age_days":{"type":["integer","null"],"minimum":0},"source_authority":{"type":["integer","null"],"minimum":0,"maximum":5},"regulatory_exposure":{"type":["integer","null"],"minimum":0,"maximum":5},"intervention_impact":{"type":["integer","null"],"minimum":0,"maximum":5},"change_magnitude":{"type":["integer","null"],"minimum":0,"maximum":5},"disagreement_history":{"type":["integer","null"],"minimum":0}}},
|
|
9
|
+
"priority_score":{"type":"number","minimum":0},"priority_tier":{"type":"string","enum":["urgent","high","normal","insufficient_inputs"]},"missing_inputs":{"type":"array","items":{"type":"string"}},"policy_id":{"type":"string","pattern":"^POLICY-"},"assigned_reviewer_ids":{"type":"array","uniqueItems":true,"items":{"type":"string","pattern":"^REVIEWER-"}},
|
|
10
|
+
"decisions":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["reviewer_id","verdict","rubric","evidence_refs","rationale","decided_at","review_item_hash"],"properties":{"reviewer_id":{"type":"string","pattern":"^REVIEWER-"},"verdict":{"type":"string","enum":["supported","partially_supported","unsupported","inconclusive","not_applicable"]},"rubric":{"type":"string"},"evidence_refs":{"type":"array","minItems":1,"items":{"type":"string"}},"rationale":{"type":"string","minLength":1},"decided_at":{"type":"string","format":"date-time"},"review_item_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"}}}},"adjudication":{"type":["object","null"],"additionalProperties":false,"required":["reviewer_id","verdict","evidence_refs","rationale","decided_at","review_item_hash"],"properties":{"reviewer_id":{"type":"string","pattern":"^REVIEWER-"},"verdict":{"type":"string","enum":["supported","partially_supported","unsupported","inconclusive","not_applicable"]},"evidence_refs":{"type":"array","minItems":1,"items":{"type":"string"}},"rationale":{"type":"string","minLength":1},"decided_at":{"type":"string","format":"date-time"},"review_item_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"}}},"created_at":{"type":"string","format":"date-time"}
|
|
11
|
+
}}}}
|
|
12
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id":"citable://schemas/sampling-plan.schema.json","$schema":"http://json-schema.org/draft-07/schema#","title":"Semantic review sampling plan registry","type":"object","additionalProperties":false,"required":["version","kind","updated","entries"],
|
|
3
|
+
"properties":{"version":{"const":1},"kind":{"const":"sampling_plans"},"updated":{"type":"string","format":"date-time"},"entries":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["sampling_plan_id","status","method","population_statuses","review_types","sample_size","seed","inclusion_criteria","exclusion_criteria","reviewer_assignment_method","extrapolation_limits","population_hash","selected_item_ids","created_at"],"properties":{"sampling_plan_id":{"type":"string","pattern":"^SAMPLE-[A-Z0-9][A-Z0-9_-]*$"},"status":{"type":"string","enum":["draft","selected","completed"]},"method":{"type":"string","enum":["census","simple_random"]},"population_statuses":{"type":"array","minItems":1,"items":{"type":"string","enum":["queued","assigned","in_review","adjudication_required","completed"]}},"review_types":{"type":"array","items":{"type":"string"}},"sample_size":{"type":"integer","minimum":1},"seed":{"type":"string","minLength":1},"inclusion_criteria":{"type":"array","items":{"type":"string"}},"exclusion_criteria":{"type":"array","items":{"type":"string"}},"reviewer_assignment_method":{"type":"string","minLength":1},"extrapolation_limits":{"type":"array","minItems":1,"items":{"type":"string"}},"population_hash":{"type":["string","null"],"pattern":"^[a-f0-9]{64}$"},"selected_item_ids":{"type":"array","uniqueItems":true,"items":{"type":"string","pattern":"^REVIEW-"}},"created_at":{"type":"string","format":"date-time"}}}}}
|
|
4
|
+
}
|
|
@@ -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.9.0
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
# Citable — evidence and change control for search and AI citation readiness
|
|
@@ -108,6 +108,13 @@ 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]
|
|
113
|
+
citable reviews queue <run-id> <policy-id> [--write]
|
|
114
|
+
citable reviews prioritize [--write]
|
|
115
|
+
citable reviews plan --input <json|yaml> [--write]
|
|
116
|
+
citable reviews sample <sampling-plan-id> [--write]
|
|
117
|
+
citable reviews evaluate
|
|
111
118
|
```
|
|
112
119
|
|
|
113
120
|
Audit scopes: `technical seo aeo geo architecture entity claims evidence schema
|
|
@@ -165,8 +172,9 @@ mandatory.
|
|
|
165
172
|
## Registries are the source of truth
|
|
166
173
|
|
|
167
174
|
`.citable/` holds YAML registries for queries, prompts, entities, claims,
|
|
168
|
-
evidence, pages, crawlers, competitors, experiments, metrics, objectives,
|
|
169
|
-
interventions,
|
|
175
|
+
evidence, pages, crawlers, competitors, experiments, metrics, objectives,
|
|
176
|
+
interventions, optional connection state, reviewers, review policies, and
|
|
177
|
+
governed exceptions, semantic review items, and sampling plans, all schema-validated
|
|
170
178
|
(`schemas/*.schema.json`) with referential integrity checks. Rules:
|
|
171
179
|
|
|
172
180
|
- Never overwrite registry content without history — use the loader/saver in
|
|
@@ -175,6 +183,9 @@ interventions, and optional connection state, all schema-validated
|
|
|
175
183
|
competitors, pricing). Mark entities `incomplete` and list `required_input`.
|
|
176
184
|
- Claim status transitions toward `verified` require existing verified evidence
|
|
177
185
|
plus human semantic review; automation only downgrades (fail-closed).
|
|
186
|
+
- Never encode an accepted exception as a passed or resolved finding. Validate
|
|
187
|
+
reviewer authority and separation of duties, bind approval to exact source
|
|
188
|
+
finding/policy/evidence hashes, and report enforcement disposition separately.
|
|
178
189
|
|
|
179
190
|
## Fail-closed behaviour
|
|
180
191
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.9.0
|
|
@@ -27,6 +27,8 @@ 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 |
|
|
31
|
+
| /citable reviews queue / prioritize / plan / sample / evaluate | implemented — materiality queues, reproducible sampling, stale-decision checks, and independent disagreement adjudication |
|
|
30
32
|
| /citable ingest, map-site, map-queries, map-prompts, map-entities, map-evidence | specified (ingest.md) |
|
|
31
33
|
| /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
34
|
| /citable create-page, answer-block, architect, interlink, consolidate, metadata | specified (page-work.md) |
|