@nebulacomponents/citable 1.6.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.
Files changed (205) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +19 -8
  3. package/dist/universal/.agents/skills/citable/SKILL.md +20 -4
  4. package/dist/universal/.agents/skills/citable/VERSION +1 -1
  5. package/dist/universal/.agents/skills/citable/commands/README.md +1 -0
  6. package/dist/universal/.agents/skills/citable/commands/governance.md +17 -0
  7. package/dist/universal/.agents/skills/citable/commands/measurement.md +15 -0
  8. package/dist/universal/.agents/skills/citable/manifest.json +17 -9
  9. package/dist/universal/.agents/skills/citable/references/capability-boundaries.md +5 -0
  10. package/dist/universal/.agents/skills/citable/references/evidence-authority.md +43 -0
  11. package/dist/universal/.agents/skills/citable/schemas/bing-webmaster.schema.json +25 -0
  12. package/dist/universal/.agents/skills/citable/schemas/crawler-identity.schema.json +42 -0
  13. package/dist/universal/.agents/skills/citable/schemas/evidence-authority.schema.json +15 -0
  14. package/dist/universal/.agents/skills/citable/schemas/exception.schema.json +70 -0
  15. package/dist/universal/.agents/skills/citable/schemas/observation.schema.json +3 -2
  16. package/dist/universal/.agents/skills/citable/schemas/review-policy.schema.json +35 -0
  17. package/dist/universal/.agents/skills/citable/schemas/reviewer.schema.json +32 -0
  18. package/dist/universal/.claude/skills/citable/SKILL.md +20 -4
  19. package/dist/universal/.claude/skills/citable/VERSION +1 -1
  20. package/dist/universal/.claude/skills/citable/commands/README.md +1 -0
  21. package/dist/universal/.claude/skills/citable/commands/governance.md +17 -0
  22. package/dist/universal/.claude/skills/citable/commands/measurement.md +15 -0
  23. package/dist/universal/.claude/skills/citable/manifest.json +17 -9
  24. package/dist/universal/.claude/skills/citable/references/capability-boundaries.md +5 -0
  25. package/dist/universal/.claude/skills/citable/references/evidence-authority.md +43 -0
  26. package/dist/universal/.claude/skills/citable/schemas/bing-webmaster.schema.json +25 -0
  27. package/dist/universal/.claude/skills/citable/schemas/crawler-identity.schema.json +42 -0
  28. package/dist/universal/.claude/skills/citable/schemas/evidence-authority.schema.json +15 -0
  29. package/dist/universal/.claude/skills/citable/schemas/exception.schema.json +70 -0
  30. package/dist/universal/.claude/skills/citable/schemas/observation.schema.json +3 -2
  31. package/dist/universal/.claude/skills/citable/schemas/review-policy.schema.json +35 -0
  32. package/dist/universal/.claude/skills/citable/schemas/reviewer.schema.json +32 -0
  33. package/dist/universal/.cursor/skills/citable/SKILL.md +20 -4
  34. package/dist/universal/.cursor/skills/citable/VERSION +1 -1
  35. package/dist/universal/.cursor/skills/citable/commands/README.md +1 -0
  36. package/dist/universal/.cursor/skills/citable/commands/governance.md +17 -0
  37. package/dist/universal/.cursor/skills/citable/commands/measurement.md +15 -0
  38. package/dist/universal/.cursor/skills/citable/manifest.json +17 -9
  39. package/dist/universal/.cursor/skills/citable/references/capability-boundaries.md +5 -0
  40. package/dist/universal/.cursor/skills/citable/references/evidence-authority.md +43 -0
  41. package/dist/universal/.cursor/skills/citable/schemas/bing-webmaster.schema.json +25 -0
  42. package/dist/universal/.cursor/skills/citable/schemas/crawler-identity.schema.json +42 -0
  43. package/dist/universal/.cursor/skills/citable/schemas/evidence-authority.schema.json +15 -0
  44. package/dist/universal/.cursor/skills/citable/schemas/exception.schema.json +70 -0
  45. package/dist/universal/.cursor/skills/citable/schemas/observation.schema.json +3 -2
  46. package/dist/universal/.cursor/skills/citable/schemas/review-policy.schema.json +35 -0
  47. package/dist/universal/.cursor/skills/citable/schemas/reviewer.schema.json +32 -0
  48. package/dist/universal/.gemini/skills/citable/SKILL.md +20 -4
  49. package/dist/universal/.gemini/skills/citable/VERSION +1 -1
  50. package/dist/universal/.gemini/skills/citable/commands/README.md +1 -0
  51. package/dist/universal/.gemini/skills/citable/commands/governance.md +17 -0
  52. package/dist/universal/.gemini/skills/citable/commands/measurement.md +15 -0
  53. package/dist/universal/.gemini/skills/citable/manifest.json +17 -9
  54. package/dist/universal/.gemini/skills/citable/references/capability-boundaries.md +5 -0
  55. package/dist/universal/.gemini/skills/citable/references/evidence-authority.md +43 -0
  56. package/dist/universal/.gemini/skills/citable/schemas/bing-webmaster.schema.json +25 -0
  57. package/dist/universal/.gemini/skills/citable/schemas/crawler-identity.schema.json +42 -0
  58. package/dist/universal/.gemini/skills/citable/schemas/evidence-authority.schema.json +15 -0
  59. package/dist/universal/.gemini/skills/citable/schemas/exception.schema.json +70 -0
  60. package/dist/universal/.gemini/skills/citable/schemas/observation.schema.json +3 -2
  61. package/dist/universal/.gemini/skills/citable/schemas/review-policy.schema.json +35 -0
  62. package/dist/universal/.gemini/skills/citable/schemas/reviewer.schema.json +32 -0
  63. package/dist/universal/.github/skills/citable/SKILL.md +20 -4
  64. package/dist/universal/.github/skills/citable/VERSION +1 -1
  65. package/dist/universal/.github/skills/citable/commands/README.md +1 -0
  66. package/dist/universal/.github/skills/citable/commands/governance.md +17 -0
  67. package/dist/universal/.github/skills/citable/commands/measurement.md +15 -0
  68. package/dist/universal/.github/skills/citable/manifest.json +17 -9
  69. package/dist/universal/.github/skills/citable/references/capability-boundaries.md +5 -0
  70. package/dist/universal/.github/skills/citable/references/evidence-authority.md +43 -0
  71. package/dist/universal/.github/skills/citable/schemas/bing-webmaster.schema.json +25 -0
  72. package/dist/universal/.github/skills/citable/schemas/crawler-identity.schema.json +42 -0
  73. package/dist/universal/.github/skills/citable/schemas/evidence-authority.schema.json +15 -0
  74. package/dist/universal/.github/skills/citable/schemas/exception.schema.json +70 -0
  75. package/dist/universal/.github/skills/citable/schemas/observation.schema.json +3 -2
  76. package/dist/universal/.github/skills/citable/schemas/review-policy.schema.json +35 -0
  77. package/dist/universal/.github/skills/citable/schemas/reviewer.schema.json +32 -0
  78. package/dist/universal/.kiro/skills/citable/SKILL.md +20 -4
  79. package/dist/universal/.kiro/skills/citable/VERSION +1 -1
  80. package/dist/universal/.kiro/skills/citable/commands/README.md +1 -0
  81. package/dist/universal/.kiro/skills/citable/commands/governance.md +17 -0
  82. package/dist/universal/.kiro/skills/citable/commands/measurement.md +15 -0
  83. package/dist/universal/.kiro/skills/citable/manifest.json +17 -9
  84. package/dist/universal/.kiro/skills/citable/references/capability-boundaries.md +5 -0
  85. package/dist/universal/.kiro/skills/citable/references/evidence-authority.md +43 -0
  86. package/dist/universal/.kiro/skills/citable/schemas/bing-webmaster.schema.json +25 -0
  87. package/dist/universal/.kiro/skills/citable/schemas/crawler-identity.schema.json +42 -0
  88. package/dist/universal/.kiro/skills/citable/schemas/evidence-authority.schema.json +15 -0
  89. package/dist/universal/.kiro/skills/citable/schemas/exception.schema.json +70 -0
  90. package/dist/universal/.kiro/skills/citable/schemas/observation.schema.json +3 -2
  91. package/dist/universal/.kiro/skills/citable/schemas/review-policy.schema.json +35 -0
  92. package/dist/universal/.kiro/skills/citable/schemas/reviewer.schema.json +32 -0
  93. package/dist/universal/.opencode/skills/citable/SKILL.md +20 -4
  94. package/dist/universal/.opencode/skills/citable/VERSION +1 -1
  95. package/dist/universal/.opencode/skills/citable/commands/README.md +1 -0
  96. package/dist/universal/.opencode/skills/citable/commands/governance.md +17 -0
  97. package/dist/universal/.opencode/skills/citable/commands/measurement.md +15 -0
  98. package/dist/universal/.opencode/skills/citable/manifest.json +17 -9
  99. package/dist/universal/.opencode/skills/citable/references/capability-boundaries.md +5 -0
  100. package/dist/universal/.opencode/skills/citable/references/evidence-authority.md +43 -0
  101. package/dist/universal/.opencode/skills/citable/schemas/bing-webmaster.schema.json +25 -0
  102. package/dist/universal/.opencode/skills/citable/schemas/crawler-identity.schema.json +42 -0
  103. package/dist/universal/.opencode/skills/citable/schemas/evidence-authority.schema.json +15 -0
  104. package/dist/universal/.opencode/skills/citable/schemas/exception.schema.json +70 -0
  105. package/dist/universal/.opencode/skills/citable/schemas/observation.schema.json +3 -2
  106. package/dist/universal/.opencode/skills/citable/schemas/review-policy.schema.json +35 -0
  107. package/dist/universal/.opencode/skills/citable/schemas/reviewer.schema.json +32 -0
  108. package/dist/universal/.pi/agent/skills/citable/SKILL.md +20 -4
  109. package/dist/universal/.pi/agent/skills/citable/VERSION +1 -1
  110. package/dist/universal/.pi/agent/skills/citable/commands/README.md +1 -0
  111. package/dist/universal/.pi/agent/skills/citable/commands/governance.md +17 -0
  112. package/dist/universal/.pi/agent/skills/citable/commands/measurement.md +15 -0
  113. package/dist/universal/.pi/agent/skills/citable/manifest.json +17 -9
  114. package/dist/universal/.pi/agent/skills/citable/references/capability-boundaries.md +5 -0
  115. package/dist/universal/.pi/agent/skills/citable/references/evidence-authority.md +43 -0
  116. package/dist/universal/.pi/agent/skills/citable/schemas/bing-webmaster.schema.json +25 -0
  117. package/dist/universal/.pi/agent/skills/citable/schemas/crawler-identity.schema.json +42 -0
  118. package/dist/universal/.pi/agent/skills/citable/schemas/evidence-authority.schema.json +15 -0
  119. package/dist/universal/.pi/agent/skills/citable/schemas/exception.schema.json +70 -0
  120. package/dist/universal/.pi/agent/skills/citable/schemas/observation.schema.json +3 -2
  121. package/dist/universal/.pi/agent/skills/citable/schemas/review-policy.schema.json +35 -0
  122. package/dist/universal/.pi/agent/skills/citable/schemas/reviewer.schema.json +32 -0
  123. package/dist/universal/.qoder/skills/citable/SKILL.md +20 -4
  124. package/dist/universal/.qoder/skills/citable/VERSION +1 -1
  125. package/dist/universal/.qoder/skills/citable/commands/README.md +1 -0
  126. package/dist/universal/.qoder/skills/citable/commands/governance.md +17 -0
  127. package/dist/universal/.qoder/skills/citable/commands/measurement.md +15 -0
  128. package/dist/universal/.qoder/skills/citable/manifest.json +17 -9
  129. package/dist/universal/.qoder/skills/citable/references/capability-boundaries.md +5 -0
  130. package/dist/universal/.qoder/skills/citable/references/evidence-authority.md +43 -0
  131. package/dist/universal/.qoder/skills/citable/schemas/bing-webmaster.schema.json +25 -0
  132. package/dist/universal/.qoder/skills/citable/schemas/crawler-identity.schema.json +42 -0
  133. package/dist/universal/.qoder/skills/citable/schemas/evidence-authority.schema.json +15 -0
  134. package/dist/universal/.qoder/skills/citable/schemas/exception.schema.json +70 -0
  135. package/dist/universal/.qoder/skills/citable/schemas/observation.schema.json +3 -2
  136. package/dist/universal/.qoder/skills/citable/schemas/review-policy.schema.json +35 -0
  137. package/dist/universal/.qoder/skills/citable/schemas/reviewer.schema.json +32 -0
  138. package/dist/universal/.rovodev/skills/citable/SKILL.md +20 -4
  139. package/dist/universal/.rovodev/skills/citable/VERSION +1 -1
  140. package/dist/universal/.rovodev/skills/citable/commands/README.md +1 -0
  141. package/dist/universal/.rovodev/skills/citable/commands/governance.md +17 -0
  142. package/dist/universal/.rovodev/skills/citable/commands/measurement.md +15 -0
  143. package/dist/universal/.rovodev/skills/citable/manifest.json +17 -9
  144. package/dist/universal/.rovodev/skills/citable/references/capability-boundaries.md +5 -0
  145. package/dist/universal/.rovodev/skills/citable/references/evidence-authority.md +43 -0
  146. package/dist/universal/.rovodev/skills/citable/schemas/bing-webmaster.schema.json +25 -0
  147. package/dist/universal/.rovodev/skills/citable/schemas/crawler-identity.schema.json +42 -0
  148. package/dist/universal/.rovodev/skills/citable/schemas/evidence-authority.schema.json +15 -0
  149. package/dist/universal/.rovodev/skills/citable/schemas/exception.schema.json +70 -0
  150. package/dist/universal/.rovodev/skills/citable/schemas/observation.schema.json +3 -2
  151. package/dist/universal/.rovodev/skills/citable/schemas/review-policy.schema.json +35 -0
  152. package/dist/universal/.rovodev/skills/citable/schemas/reviewer.schema.json +32 -0
  153. package/dist/universal/.trae/skills/citable/SKILL.md +20 -4
  154. package/dist/universal/.trae/skills/citable/VERSION +1 -1
  155. package/dist/universal/.trae/skills/citable/commands/README.md +1 -0
  156. package/dist/universal/.trae/skills/citable/commands/governance.md +17 -0
  157. package/dist/universal/.trae/skills/citable/commands/measurement.md +15 -0
  158. package/dist/universal/.trae/skills/citable/manifest.json +17 -9
  159. package/dist/universal/.trae/skills/citable/references/capability-boundaries.md +5 -0
  160. package/dist/universal/.trae/skills/citable/references/evidence-authority.md +43 -0
  161. package/dist/universal/.trae/skills/citable/schemas/bing-webmaster.schema.json +25 -0
  162. package/dist/universal/.trae/skills/citable/schemas/crawler-identity.schema.json +42 -0
  163. package/dist/universal/.trae/skills/citable/schemas/evidence-authority.schema.json +15 -0
  164. package/dist/universal/.trae/skills/citable/schemas/exception.schema.json +70 -0
  165. package/dist/universal/.trae/skills/citable/schemas/observation.schema.json +3 -2
  166. package/dist/universal/.trae/skills/citable/schemas/review-policy.schema.json +35 -0
  167. package/dist/universal/.trae/skills/citable/schemas/reviewer.schema.json +32 -0
  168. package/dist/universal/.trae-cn/skills/citable/SKILL.md +20 -4
  169. package/dist/universal/.trae-cn/skills/citable/VERSION +1 -1
  170. package/dist/universal/.trae-cn/skills/citable/commands/README.md +1 -0
  171. package/dist/universal/.trae-cn/skills/citable/commands/governance.md +17 -0
  172. package/dist/universal/.trae-cn/skills/citable/commands/measurement.md +15 -0
  173. package/dist/universal/.trae-cn/skills/citable/manifest.json +17 -9
  174. package/dist/universal/.trae-cn/skills/citable/references/capability-boundaries.md +5 -0
  175. package/dist/universal/.trae-cn/skills/citable/references/evidence-authority.md +43 -0
  176. package/dist/universal/.trae-cn/skills/citable/schemas/bing-webmaster.schema.json +25 -0
  177. package/dist/universal/.trae-cn/skills/citable/schemas/crawler-identity.schema.json +42 -0
  178. package/dist/universal/.trae-cn/skills/citable/schemas/evidence-authority.schema.json +15 -0
  179. package/dist/universal/.trae-cn/skills/citable/schemas/exception.schema.json +70 -0
  180. package/dist/universal/.trae-cn/skills/citable/schemas/observation.schema.json +3 -2
  181. package/dist/universal/.trae-cn/skills/citable/schemas/review-policy.schema.json +35 -0
  182. package/dist/universal/.trae-cn/skills/citable/schemas/reviewer.schema.json +32 -0
  183. package/dist/universal/manifest.json +207 -111
  184. package/package.json +2 -2
  185. package/schemas/bing-webmaster.schema.json +25 -0
  186. package/schemas/crawler-identity.schema.json +42 -0
  187. package/schemas/evidence-authority.schema.json +15 -0
  188. package/schemas/exception.schema.json +70 -0
  189. package/schemas/observation.schema.json +3 -2
  190. package/schemas/review-policy.schema.json +35 -0
  191. package/schemas/reviewer.schema.json +32 -0
  192. package/skill/SKILL.md +20 -4
  193. package/skill/commands/README.md +1 -0
  194. package/skill/commands/governance.md +17 -0
  195. package/skill/commands/measurement.md +15 -0
  196. package/skill/references/capability-boundaries.md +5 -0
  197. package/skill/references/evidence-authority.md +43 -0
  198. package/src/cli/index.js +20 -1
  199. package/src/commands/governance.js +144 -0
  200. package/src/commands/observe.js +81 -22
  201. package/src/commands/selfUpgrade.js +1 -1
  202. package/src/observations/authority.js +13 -0
  203. package/src/observations/common.js +3 -1
  204. package/src/observations/crawlerIdentity.js +60 -0
  205. package/src/registries/index.js +17 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebulacomponents/citable",
3
- "version": "1.6.0",
3
+ "version": "1.8.0",
4
4
  "description": "Production-grade SEO, AEO, and GEO agent skill with auditable detection, claim governance, evidence validation, and multi-agent installation.",
5
5
  "keywords": [
6
6
  "seo",
@@ -71,7 +71,7 @@
71
71
  "LICENSE"
72
72
  ],
73
73
  "engines": {
74
- "node": ">=22.22.2"
74
+ "node": ">=24.0.0"
75
75
  },
76
76
  "license": "Apache-2.0",
77
77
  "repository": {
@@ -0,0 +1,25 @@
1
+ {
2
+ "$id": "citable://schemas/bing-webmaster.schema.json",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Normalized Bing Webmaster observation",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["dataset", "date", "url", "metrics", "dimensions", "interpretation_boundary"],
8
+ "properties": {
9
+ "dataset": { "type": "string", "enum": ["search_performance", "ai_performance"] },
10
+ "date": { "type": "string", "format": "date" },
11
+ "url": { "type": ["string", "null"], "format": "uri", "pattern": "^https?://" },
12
+ "metrics": { "type": "object", "additionalProperties": { "type": ["number", "null"] } },
13
+ "dimensions": {
14
+ "type": "object", "additionalProperties": false,
15
+ "properties": {
16
+ "query": { "type": ["string", "null"] },
17
+ "grounding_query": { "type": ["string", "null"] },
18
+ "source": { "type": ["string", "null"] },
19
+ "country": { "type": ["string", "null"] },
20
+ "device": { "type": ["string", "null"] }
21
+ }
22
+ },
23
+ "interpretation_boundary": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } }
24
+ }
25
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "$id": "citable://schemas/crawler-identity.schema.json",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Crawler identity evidence contract",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["provider", "declared_user_agent", "observed_source_ip", "range_source", "cidr_membership", "dns", "edge", "origin", "region", "collector", "stages", "verification_status"],
8
+ "properties": {
9
+ "provider": { "type": "string", "minLength": 1 },
10
+ "declared_user_agent": { "type": "string", "minLength": 1 },
11
+ "observed_source_ip": { "type": ["string", "null"] },
12
+ "range_source": {
13
+ "type": "object", "additionalProperties": false,
14
+ "required": ["url", "retrieved_at", "authority", "checksum", "checksum_scope", "checksum_valid"],
15
+ "properties": {
16
+ "url": { "type": ["string", "null"], "format": "uri" },
17
+ "retrieved_at": { "type": ["string", "null"], "format": "date-time" },
18
+ "authority": { "type": "string", "enum": ["provider_published", "owner_controlled", "third_party", "unknown"] },
19
+ "checksum": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" },
20
+ "checksum_scope": { "type": "string", "enum": ["source_snapshot", "not_captured"] },
21
+ "checksum_valid": { "type": "boolean" }
22
+ }
23
+ },
24
+ "cidr_membership": { "type": "string", "enum": ["matched", "not_matched", "not_tested", "invalid"] },
25
+ "dns": {
26
+ "type": "object", "additionalProperties": false, "required": ["status", "method"],
27
+ "properties": { "status": { "type": "string", "enum": ["verified", "failed", "not_tested"] }, "method": { "type": ["string", "null"] } }
28
+ },
29
+ "edge": {
30
+ "type": "object", "additionalProperties": false, "required": ["observed", "decision"],
31
+ "properties": { "observed": { "type": "boolean" }, "decision": { "type": ["string", "null"] } }
32
+ },
33
+ "origin": {
34
+ "type": "object", "additionalProperties": false, "required": ["observed", "status"],
35
+ "properties": { "observed": { "type": "boolean" }, "status": { "type": ["integer", "null"], "minimum": 100, "maximum": 599 } }
36
+ },
37
+ "region": { "type": ["string", "null"] },
38
+ "collector": { "type": "string", "minLength": 1 },
39
+ "stages": { "type": "array", "uniqueItems": true, "items": { "type": "string", "enum": ["declared", "synthetically_observed", "range_matched", "dns_verified", "edge_observed", "origin_observed", "fully_verified", "contradictory", "insufficient_evidence"] } },
40
+ "verification_status": { "type": "string", "enum": ["declared", "synthetically_observed", "range_matched", "dns_verified", "edge_observed", "origin_observed", "fully_verified", "contradictory", "insufficient_evidence"] }
41
+ }
42
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$id": "citable://schemas/evidence-authority.schema.json",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Multidimensional evidence authority",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["source_authority", "collection_authority", "authenticity_status", "representativeness"],
8
+ "properties": {
9
+ "source_authority": { "type": "string", "enum": ["provider_published", "standards_body", "owner_controlled", "independently_controlled", "third_party_commercial", "synthetic", "inferred", "unknown"] },
10
+ "collection_authority": { "type": "string", "enum": ["direct_api", "production_log", "browser_capture", "owner_export", "third_party_export", "manual_entry", "model_generated_inference", "static_analysis", "synthetic_probe"] },
11
+ "authenticity_status": { "type": "string", "enum": ["cryptographically_authenticated", "provider_range_verified", "owner_attested", "transport_authenticated", "checksum_protected_only", "unverified"] },
12
+ "representativeness": { "type": "string", "enum": ["production_population", "complete_export", "statistically_sampled", "controlled_experiment", "convenience_sample", "single_observation", "unknown"] },
13
+ "limitations": { "type": "array", "items": { "type": "string", "minLength": 1 } }
14
+ }
15
+ }
@@ -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
+ }
@@ -7,7 +7,7 @@
7
7
  "required": ["observation_id", "kind", "state", "collected_at", "collection_method", "confidence", "source", "evidence_hash", "data"],
8
8
  "properties": {
9
9
  "observation_id": { "type": "string", "minLength": 1 },
10
- "kind": { "type": "string", "enum": ["render", "index", "citation", "citation_review", "crawler_log", "passage", "canonical_freshness", "performance", "corroboration", "metric"] },
10
+ "kind": { "type": "string", "enum": ["render", "index", "citation", "citation_review", "crawler_log", "bing_webmaster", "passage", "canonical_freshness", "performance", "corroboration", "metric"] },
11
11
  "state": { "type": "string", "enum": ["observed", "not_observed", "not_evidenced", "incomplete", "review_required", "failed"] },
12
12
  "collected_at": { "type": "string", "format": "date-time" },
13
13
  "collection_method": { "type": "string", "enum": ["live_api", "browser", "owner_import", "synthetic_fetch", "static_analysis", "human_review"] },
@@ -15,6 +15,7 @@
15
15
  "source": { "type": "string", "minLength": 1 },
16
16
  "evidence_hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
17
17
  "data": { "type": "object" },
18
- "limitations": { "type": "array", "items": { "type": "string" } }
18
+ "limitations": { "type": "array", "items": { "type": "string" } },
19
+ "authority": { "$ref": "citable://schemas/evidence-authority.schema.json" }
19
20
  }
20
21
  }
@@ -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
+ }
package/skill/SKILL.md CHANGED
@@ -7,12 +7,16 @@ 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.6.0
10
+ version: 1.8.0
11
11
  ---
12
12
 
13
- # Citable — search & generative discoverability governance
13
+ # Citable — evidence and change control for search and AI citation readiness
14
14
 
15
15
  Citable is an operational quality and governance layer, not a content generator.
16
+ It records what a property makes technically available, what its content can
17
+ support, and what external systems have actually been observed doing. It does
18
+ not score visibility; it establishes what is eligible, supportable, observed,
19
+ changed, and still unknown.
16
20
  It treats discoverability as an engineering system: registries as the source of
17
21
  truth, deterministic detectors for observable conditions, rubrics for semantic
18
22
  judgment, evidence packages for every run, and fail-closed behaviour wherever a
@@ -70,6 +74,11 @@ Within retrieval, distinguish `allowed_by_policy`, `synthetic_fetch_succeeded`,
70
74
  citation testing, distinguish mention, citation, material support, canonical
71
75
  source selection, and recommendation. These states are not interchangeable.
72
76
 
77
+ Evidence preservation, authority, authenticity, collection method, and
78
+ representativeness are also independent. Follow
79
+ `references/evidence-authority.md`; a checksum or CIDR match alone never proves
80
+ source authenticity, complete coverage, or verified crawler identity.
81
+
73
82
  ## Tooling
74
83
 
75
84
  The `citable` CLI in this repository performs the deterministic work. Always
@@ -86,6 +95,7 @@ citable validate [registries|claims|evidence|schema|links]
86
95
  citable compare-snapshots [runA runB]
87
96
  citable action-plan [run-id] # ordered actions, blockers, semantic gates, verification
88
97
  citable observe <mode> [options] # render/index/citation/log/passage/consensus/performance evidence
98
+ citable observe bing --dataset <search_performance|ai_performance> --input <csv|json>
89
99
  citable apply --input <spec> [--write] # reviewed, hash-locked remediation; dry run by default
90
100
  citable monitor [runA runB] # observation regression alerts
91
101
  citable metrics import --provider <name> --input <csv|json>
@@ -98,6 +108,8 @@ citable connect disconnect --connection-id <id> [--write]
98
108
  citable objectives init --input <json|yaml> [--write]
99
109
  citable objectives validate
100
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]
101
113
  ```
102
114
 
103
115
  Audit scopes: `technical seo aeo geo architecture entity claims evidence schema
@@ -155,8 +167,9 @@ mandatory.
155
167
  ## Registries are the source of truth
156
168
 
157
169
  `.citable/` holds YAML registries for queries, prompts, entities, claims,
158
- evidence, pages, crawlers, competitors, experiments, metrics, objectives,
159
- interventions, and optional connection state, all schema-validated
170
+ evidence, pages, crawlers, competitors, experiments, metrics, objectives,
171
+ interventions, optional connection state, reviewers, review policies, and
172
+ governed exceptions, all schema-validated
160
173
  (`schemas/*.schema.json`) with referential integrity checks. Rules:
161
174
 
162
175
  - Never overwrite registry content without history — use the loader/saver in
@@ -165,6 +178,9 @@ interventions, and optional connection state, all schema-validated
165
178
  competitors, pricing). Mark entities `incomplete` and list `required_input`.
166
179
  - Claim status transitions toward `verified` require existing verified evidence
167
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.
168
184
 
169
185
  ## Fail-closed behaviour
170
186
 
@@ -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.
@@ -70,6 +70,21 @@ agent × URL × status; flag 403/429/5xx concentrations against declared-allow
70
70
  crawlers; note that user-agent strings are spoofable and IP validation is the
71
71
  confirmation step (crawler registry ip_validation_method). Compare observed
72
72
  access against `crawlers.yaml` decisions (CRAWL-001 logic applied to logs).
73
+ Normalize JSON or CSV edge/origin events into the crawler identity contract.
74
+ Do not label CIDR membership alone verified: preserve range-source provenance,
75
+ DNS, edge, origin, region, collector, stages, and contradiction state.
76
+ Remove credentials, cookies, secrets, and unnecessary personal data before
77
+ import. Citable rejects common sensitive field names but cannot establish that
78
+ arbitrary URL or query values are lawful or appropriately minimized.
79
+
80
+ # Bing owner observations
81
+
82
+ Use `citable observe bing --dataset search_performance|ai_performance --input
83
+ <csv|json>`. This release normalizes owner exports because no supported Bing AI
84
+ Performance API contract has been captured. Citation counts do not indicate
85
+ ranking, authority, placement, page importance, or material support. Grounding
86
+ queries may be sampled. Preserve traffic-source dimensions and never infer
87
+ causation from a temporal change.
73
88
 
74
89
  # monitor-contradictions
75
90
  Compare approved entity + claim records against: owned pages (automated, via
@@ -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,43 @@
1
+ # Evidence authority and crawler identity
2
+
3
+ An evidence checksum establishes preservation only. It does not establish that
4
+ the source was authentic, the collection was complete, or the observation was
5
+ representative. Report four axes independently on every new observation:
6
+
7
+ 1. `source_authority`: provider-published, standards-body, owner-controlled,
8
+ independently controlled, third-party commercial, synthetic, inferred, or
9
+ unknown.
10
+ 2. `collection_authority`: direct API, production log, browser capture, owner
11
+ export, third-party export, manual entry, model-generated inference, static
12
+ analysis, or synthetic probe.
13
+ 3. `authenticity_status`: cryptographically authenticated, provider-range
14
+ verified, owner-attested, transport-authenticated, checksum-protected only,
15
+ or unverified.
16
+ 4. `representativeness`: production population, complete export,
17
+ statistically sampled, controlled experiment, convenience sample, single
18
+ observation, or unknown.
19
+
20
+ Never convert these axes into one authority score.
21
+
22
+ ## Crawler identity
23
+
24
+ Contract support and verified observations are different outcomes. The
25
+ `crawler-identity` schema can exist without any production event satisfying it.
26
+ A user-agent match is `declared`. A synthetic request is
27
+ `synthetically_observed`. An observed IP in an imported range is only
28
+ `range_matched`.
29
+
30
+ `fully_verified` requires all of:
31
+
32
+ - a provider and declared user agent;
33
+ - observed source IP matching the captured CIDR set;
34
+ - provider-published range source URL, retrieval time, captured source snapshot,
35
+ and valid snapshot checksum;
36
+ - documented forward/reverse DNS verification where applicable;
37
+ - an explicit edge observation and decision;
38
+ - a correlated origin observation and status;
39
+ - region and collector identity.
40
+
41
+ A failed range or DNS check, or a claimed verification without the required
42
+ chain, is `contradictory`. Missing links are `insufficient_evidence`. Verification
43
+ applies only to the captured event; it does not establish all crawler traffic.
package/src/cli/index.js CHANGED
@@ -17,6 +17,7 @@ import { applyRemediation } from '../commands/applyRemediation.js';
17
17
  import { monitor } from '../commands/monitor.js';
18
18
  import { evaluateObjective, importMetrics, initializeObjective, validateObjectives } from '../commands/measurement.js';
19
19
  import { configureConnection, connectionStatus, discoverConnections, disconnectConnection, syncConnection, validateConnection } from '../commands/connect.js';
20
+ import { evaluateDispositions, validateGovernance } from '../commands/governance.js';
20
21
 
21
22
  const HELP = `citable — SEO / AEO / GEO audit, remediation, validation, and governance
22
23
 
@@ -39,7 +40,7 @@ Commands
39
40
  validate [mode] registries (default) | claims | evidence | schema | links
40
41
  compare-snapshots [a b] Regression diff between two audit runs
41
42
  action-plan [run] Turn audit findings into ordered remediation work
42
- observe <mode> Collect render, index, citation, log, passage,
43
+ observe <mode> Collect render, index, citation, log, Bing, passage,
43
44
  consensus, performance, or corroboration evidence
44
45
  apply Apply a reviewed, hash-locked remediation spec
45
46
  monitor [runA runB] Compare observation runs and emit regression alerts
@@ -53,6 +54,8 @@ Commands
53
54
  objectives init Validate/add one objective from --input (--write to save)
54
55
  objectives validate Validate objective contracts and metric references
55
56
  evaluate [objective-id] Compare objective baseline and evaluation windows
57
+ governance validate Validate reviewer, policy, and exception controls
58
+ governance evaluate [run] Produce immutable enforcement dispositions without changing findings
56
59
  self-upgrade Check for a newer version and upgrade the npx cache
57
60
 
58
61
  Options
@@ -61,6 +64,7 @@ Options
61
64
  --ref-date <YYYY-MM-DD> Reference date for expiry/staleness checks (default: today)
62
65
  --input <file> Import file or remediation specification
63
66
  --provider <name> Provider label for imported observations
67
+ --dataset <name> Provider export dataset (for example ai_performance)
64
68
  --connection-id <id> Connection registry identifier
65
69
  --property-id <id> Provider property or site identifier
66
70
  --credential-env <name> Environment variable containing the access token
@@ -88,6 +92,7 @@ function parseArgs(argv) {
88
92
  else if (a === '--ref-date') args.refDate = argv[++i];
89
93
  else if (a === '--input') args.input = argv[++i];
90
94
  else if (a === '--provider') args.provider = argv[++i];
95
+ else if (a === '--dataset') args.dataset = argv[++i];
91
96
  else if (a === '--connection-id') args.connectionId = argv[++i];
92
97
  else if (a === '--property-id') args.propertyId = argv[++i];
93
98
  else if (a === '--credential-env') args.credentialEnv = argv[++i];
@@ -236,6 +241,20 @@ export async function main(argv = process.argv.slice(2), options = {}) {
236
241
  out(args, `evaluate ${r.objective_id}: ${r.status}\n` + r.metrics.map((metric) => ` ${metric.metric_id}: ${metric.state}${metric.state === 'observed' ? ` (${metric.baseline} → ${metric.evaluation})` : ''}`).join('\n') + `\n${r.interpretation}`, r);
237
242
  break;
238
243
  }
244
+ case 'governance': {
245
+ const mode = args._[0];
246
+ if (mode === 'validate') {
247
+ const r = validateGovernance(root, { refDate: args.refDate });
248
+ out(args, `governance validate: ${r.ok ? 'OK' : 'PROBLEMS'} (${r.counts.reviewers} reviewer(s), ${r.counts.policies} policy/policies, ${r.counts.exceptions} exception(s))${r.problems.length ? `\n${r.problems.map((problem) => ` - ${problem}`).join('\n')}` : ''}`, r);
249
+ if (!r.ok) process.exitCode = 1;
250
+ } else if (mode === 'evaluate') {
251
+ const r = evaluateDispositions(root, { runId: args._[1], refDate: args.refDate });
252
+ const accepted = r.dispositions.filter((item) => item.enforcement_disposition === 'accepted_exception').length;
253
+ out(args, `governance evaluate ${r.source_run_id}: ${r.dispositions.length} failed finding(s), ${accepted} accepted exception(s)\nEvidence package: ${r.dir}`, r);
254
+ if (r.dispositions.some((item) => item.enforcement_disposition === 'blocked_ambiguous_exception')) process.exitCode = 1;
255
+ } else throw new Error('usage: citable governance <validate|evaluate [run-id]> [--ref-date YYYY-MM-DD]');
256
+ break;
257
+ }
239
258
  case 'self-upgrade': {
240
259
  const output = await selfUpgradeCommand(argv.slice(1));
241
260
  console.log(output);