@nebulacomponents/citable 1.19.0 → 1.20.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 (239) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +12 -1
  3. package/dist/universal/.agents/skills/citable/SKILL.md +11 -2
  4. package/dist/universal/.agents/skills/citable/VERSION +1 -1
  5. package/dist/universal/.agents/skills/citable/manifest.json +15 -12
  6. package/dist/universal/.agents/skills/citable/schemas/action-plan.schema.json +38 -1
  7. package/dist/universal/.agents/skills/citable/schemas/audit-coverage.schema.json +118 -0
  8. package/dist/universal/.agents/skills/citable/schemas/collection-result.schema.json +35 -0
  9. package/dist/universal/.agents/skills/citable/schemas/config.schema.json +2 -0
  10. package/dist/universal/.agents/skills/citable/schemas/cro-report.schema.json +8 -1
  11. package/dist/universal/.agents/skills/citable/schemas/finding.schema.json +105 -2
  12. package/dist/universal/.agents/skills/citable/schemas/remediation-verification.schema.json +12 -1
  13. package/dist/universal/.agents/skills/citable/schemas/run.schema.json +15 -2
  14. package/dist/universal/.agents/skills/citable/schemas/search-report.schema.json +8 -1
  15. package/dist/universal/.agents/skills/citable/schemas/summary.schema.json +41 -0
  16. package/dist/universal/.claude/agents/citable/manifest.json +2 -2
  17. package/dist/universal/.claude/skills/citable/SKILL.md +11 -2
  18. package/dist/universal/.claude/skills/citable/VERSION +1 -1
  19. package/dist/universal/.claude/skills/citable/manifest.json +15 -12
  20. package/dist/universal/.claude/skills/citable/schemas/action-plan.schema.json +38 -1
  21. package/dist/universal/.claude/skills/citable/schemas/audit-coverage.schema.json +118 -0
  22. package/dist/universal/.claude/skills/citable/schemas/collection-result.schema.json +35 -0
  23. package/dist/universal/.claude/skills/citable/schemas/config.schema.json +2 -0
  24. package/dist/universal/.claude/skills/citable/schemas/cro-report.schema.json +8 -1
  25. package/dist/universal/.claude/skills/citable/schemas/finding.schema.json +105 -2
  26. package/dist/universal/.claude/skills/citable/schemas/remediation-verification.schema.json +12 -1
  27. package/dist/universal/.claude/skills/citable/schemas/run.schema.json +15 -2
  28. package/dist/universal/.claude/skills/citable/schemas/search-report.schema.json +8 -1
  29. package/dist/universal/.claude/skills/citable/schemas/summary.schema.json +41 -0
  30. package/dist/universal/.cursor/skills/citable/SKILL.md +11 -2
  31. package/dist/universal/.cursor/skills/citable/VERSION +1 -1
  32. package/dist/universal/.cursor/skills/citable/manifest.json +15 -12
  33. package/dist/universal/.cursor/skills/citable/schemas/action-plan.schema.json +38 -1
  34. package/dist/universal/.cursor/skills/citable/schemas/audit-coverage.schema.json +118 -0
  35. package/dist/universal/.cursor/skills/citable/schemas/collection-result.schema.json +35 -0
  36. package/dist/universal/.cursor/skills/citable/schemas/config.schema.json +2 -0
  37. package/dist/universal/.cursor/skills/citable/schemas/cro-report.schema.json +8 -1
  38. package/dist/universal/.cursor/skills/citable/schemas/finding.schema.json +105 -2
  39. package/dist/universal/.cursor/skills/citable/schemas/remediation-verification.schema.json +12 -1
  40. package/dist/universal/.cursor/skills/citable/schemas/run.schema.json +15 -2
  41. package/dist/universal/.cursor/skills/citable/schemas/search-report.schema.json +8 -1
  42. package/dist/universal/.cursor/skills/citable/schemas/summary.schema.json +41 -0
  43. package/dist/universal/.gemini/skills/citable/SKILL.md +11 -2
  44. package/dist/universal/.gemini/skills/citable/VERSION +1 -1
  45. package/dist/universal/.gemini/skills/citable/manifest.json +15 -12
  46. package/dist/universal/.gemini/skills/citable/schemas/action-plan.schema.json +38 -1
  47. package/dist/universal/.gemini/skills/citable/schemas/audit-coverage.schema.json +118 -0
  48. package/dist/universal/.gemini/skills/citable/schemas/collection-result.schema.json +35 -0
  49. package/dist/universal/.gemini/skills/citable/schemas/config.schema.json +2 -0
  50. package/dist/universal/.gemini/skills/citable/schemas/cro-report.schema.json +8 -1
  51. package/dist/universal/.gemini/skills/citable/schemas/finding.schema.json +105 -2
  52. package/dist/universal/.gemini/skills/citable/schemas/remediation-verification.schema.json +12 -1
  53. package/dist/universal/.gemini/skills/citable/schemas/run.schema.json +15 -2
  54. package/dist/universal/.gemini/skills/citable/schemas/search-report.schema.json +8 -1
  55. package/dist/universal/.gemini/skills/citable/schemas/summary.schema.json +41 -0
  56. package/dist/universal/.github/skills/citable/SKILL.md +11 -2
  57. package/dist/universal/.github/skills/citable/VERSION +1 -1
  58. package/dist/universal/.github/skills/citable/manifest.json +15 -12
  59. package/dist/universal/.github/skills/citable/schemas/action-plan.schema.json +38 -1
  60. package/dist/universal/.github/skills/citable/schemas/audit-coverage.schema.json +118 -0
  61. package/dist/universal/.github/skills/citable/schemas/collection-result.schema.json +35 -0
  62. package/dist/universal/.github/skills/citable/schemas/config.schema.json +2 -0
  63. package/dist/universal/.github/skills/citable/schemas/cro-report.schema.json +8 -1
  64. package/dist/universal/.github/skills/citable/schemas/finding.schema.json +105 -2
  65. package/dist/universal/.github/skills/citable/schemas/remediation-verification.schema.json +12 -1
  66. package/dist/universal/.github/skills/citable/schemas/run.schema.json +15 -2
  67. package/dist/universal/.github/skills/citable/schemas/search-report.schema.json +8 -1
  68. package/dist/universal/.github/skills/citable/schemas/summary.schema.json +41 -0
  69. package/dist/universal/.kiro/skills/citable/SKILL.md +11 -2
  70. package/dist/universal/.kiro/skills/citable/VERSION +1 -1
  71. package/dist/universal/.kiro/skills/citable/manifest.json +15 -12
  72. package/dist/universal/.kiro/skills/citable/schemas/action-plan.schema.json +38 -1
  73. package/dist/universal/.kiro/skills/citable/schemas/audit-coverage.schema.json +118 -0
  74. package/dist/universal/.kiro/skills/citable/schemas/collection-result.schema.json +35 -0
  75. package/dist/universal/.kiro/skills/citable/schemas/config.schema.json +2 -0
  76. package/dist/universal/.kiro/skills/citable/schemas/cro-report.schema.json +8 -1
  77. package/dist/universal/.kiro/skills/citable/schemas/finding.schema.json +105 -2
  78. package/dist/universal/.kiro/skills/citable/schemas/remediation-verification.schema.json +12 -1
  79. package/dist/universal/.kiro/skills/citable/schemas/run.schema.json +15 -2
  80. package/dist/universal/.kiro/skills/citable/schemas/search-report.schema.json +8 -1
  81. package/dist/universal/.kiro/skills/citable/schemas/summary.schema.json +41 -0
  82. package/dist/universal/.opencode/skills/citable/SKILL.md +11 -2
  83. package/dist/universal/.opencode/skills/citable/VERSION +1 -1
  84. package/dist/universal/.opencode/skills/citable/manifest.json +15 -12
  85. package/dist/universal/.opencode/skills/citable/schemas/action-plan.schema.json +38 -1
  86. package/dist/universal/.opencode/skills/citable/schemas/audit-coverage.schema.json +118 -0
  87. package/dist/universal/.opencode/skills/citable/schemas/collection-result.schema.json +35 -0
  88. package/dist/universal/.opencode/skills/citable/schemas/config.schema.json +2 -0
  89. package/dist/universal/.opencode/skills/citable/schemas/cro-report.schema.json +8 -1
  90. package/dist/universal/.opencode/skills/citable/schemas/finding.schema.json +105 -2
  91. package/dist/universal/.opencode/skills/citable/schemas/remediation-verification.schema.json +12 -1
  92. package/dist/universal/.opencode/skills/citable/schemas/run.schema.json +15 -2
  93. package/dist/universal/.opencode/skills/citable/schemas/search-report.schema.json +8 -1
  94. package/dist/universal/.opencode/skills/citable/schemas/summary.schema.json +41 -0
  95. package/dist/universal/.pi/agent/skills/citable/SKILL.md +11 -2
  96. package/dist/universal/.pi/agent/skills/citable/VERSION +1 -1
  97. package/dist/universal/.pi/agent/skills/citable/manifest.json +15 -12
  98. package/dist/universal/.pi/agent/skills/citable/schemas/action-plan.schema.json +38 -1
  99. package/dist/universal/.pi/agent/skills/citable/schemas/audit-coverage.schema.json +118 -0
  100. package/dist/universal/.pi/agent/skills/citable/schemas/collection-result.schema.json +35 -0
  101. package/dist/universal/.pi/agent/skills/citable/schemas/config.schema.json +2 -0
  102. package/dist/universal/.pi/agent/skills/citable/schemas/cro-report.schema.json +8 -1
  103. package/dist/universal/.pi/agent/skills/citable/schemas/finding.schema.json +105 -2
  104. package/dist/universal/.pi/agent/skills/citable/schemas/remediation-verification.schema.json +12 -1
  105. package/dist/universal/.pi/agent/skills/citable/schemas/run.schema.json +15 -2
  106. package/dist/universal/.pi/agent/skills/citable/schemas/search-report.schema.json +8 -1
  107. package/dist/universal/.pi/agent/skills/citable/schemas/summary.schema.json +41 -0
  108. package/dist/universal/.qoder/skills/citable/SKILL.md +11 -2
  109. package/dist/universal/.qoder/skills/citable/VERSION +1 -1
  110. package/dist/universal/.qoder/skills/citable/manifest.json +15 -12
  111. package/dist/universal/.qoder/skills/citable/schemas/action-plan.schema.json +38 -1
  112. package/dist/universal/.qoder/skills/citable/schemas/audit-coverage.schema.json +118 -0
  113. package/dist/universal/.qoder/skills/citable/schemas/collection-result.schema.json +35 -0
  114. package/dist/universal/.qoder/skills/citable/schemas/config.schema.json +2 -0
  115. package/dist/universal/.qoder/skills/citable/schemas/cro-report.schema.json +8 -1
  116. package/dist/universal/.qoder/skills/citable/schemas/finding.schema.json +105 -2
  117. package/dist/universal/.qoder/skills/citable/schemas/remediation-verification.schema.json +12 -1
  118. package/dist/universal/.qoder/skills/citable/schemas/run.schema.json +15 -2
  119. package/dist/universal/.qoder/skills/citable/schemas/search-report.schema.json +8 -1
  120. package/dist/universal/.qoder/skills/citable/schemas/summary.schema.json +41 -0
  121. package/dist/universal/.rovodev/skills/citable/SKILL.md +11 -2
  122. package/dist/universal/.rovodev/skills/citable/VERSION +1 -1
  123. package/dist/universal/.rovodev/skills/citable/manifest.json +15 -12
  124. package/dist/universal/.rovodev/skills/citable/schemas/action-plan.schema.json +38 -1
  125. package/dist/universal/.rovodev/skills/citable/schemas/audit-coverage.schema.json +118 -0
  126. package/dist/universal/.rovodev/skills/citable/schemas/collection-result.schema.json +35 -0
  127. package/dist/universal/.rovodev/skills/citable/schemas/config.schema.json +2 -0
  128. package/dist/universal/.rovodev/skills/citable/schemas/cro-report.schema.json +8 -1
  129. package/dist/universal/.rovodev/skills/citable/schemas/finding.schema.json +105 -2
  130. package/dist/universal/.rovodev/skills/citable/schemas/remediation-verification.schema.json +12 -1
  131. package/dist/universal/.rovodev/skills/citable/schemas/run.schema.json +15 -2
  132. package/dist/universal/.rovodev/skills/citable/schemas/search-report.schema.json +8 -1
  133. package/dist/universal/.rovodev/skills/citable/schemas/summary.schema.json +41 -0
  134. package/dist/universal/.trae/skills/citable/SKILL.md +11 -2
  135. package/dist/universal/.trae/skills/citable/VERSION +1 -1
  136. package/dist/universal/.trae/skills/citable/manifest.json +15 -12
  137. package/dist/universal/.trae/skills/citable/schemas/action-plan.schema.json +38 -1
  138. package/dist/universal/.trae/skills/citable/schemas/audit-coverage.schema.json +118 -0
  139. package/dist/universal/.trae/skills/citable/schemas/collection-result.schema.json +35 -0
  140. package/dist/universal/.trae/skills/citable/schemas/config.schema.json +2 -0
  141. package/dist/universal/.trae/skills/citable/schemas/cro-report.schema.json +8 -1
  142. package/dist/universal/.trae/skills/citable/schemas/finding.schema.json +105 -2
  143. package/dist/universal/.trae/skills/citable/schemas/remediation-verification.schema.json +12 -1
  144. package/dist/universal/.trae/skills/citable/schemas/run.schema.json +15 -2
  145. package/dist/universal/.trae/skills/citable/schemas/search-report.schema.json +8 -1
  146. package/dist/universal/.trae/skills/citable/schemas/summary.schema.json +41 -0
  147. package/dist/universal/.trae-cn/skills/citable/SKILL.md +11 -2
  148. package/dist/universal/.trae-cn/skills/citable/VERSION +1 -1
  149. package/dist/universal/.trae-cn/skills/citable/manifest.json +15 -12
  150. package/dist/universal/.trae-cn/skills/citable/schemas/action-plan.schema.json +38 -1
  151. package/dist/universal/.trae-cn/skills/citable/schemas/audit-coverage.schema.json +118 -0
  152. package/dist/universal/.trae-cn/skills/citable/schemas/collection-result.schema.json +35 -0
  153. package/dist/universal/.trae-cn/skills/citable/schemas/config.schema.json +2 -0
  154. package/dist/universal/.trae-cn/skills/citable/schemas/cro-report.schema.json +8 -1
  155. package/dist/universal/.trae-cn/skills/citable/schemas/finding.schema.json +105 -2
  156. package/dist/universal/.trae-cn/skills/citable/schemas/remediation-verification.schema.json +12 -1
  157. package/dist/universal/.trae-cn/skills/citable/schemas/run.schema.json +15 -2
  158. package/dist/universal/.trae-cn/skills/citable/schemas/search-report.schema.json +8 -1
  159. package/dist/universal/.trae-cn/skills/citable/schemas/summary.schema.json +41 -0
  160. package/dist/universal/manifest.json +184 -148
  161. package/package.json +1 -1
  162. package/schemas/action-plan.schema.json +38 -1
  163. package/schemas/audit-coverage.schema.json +118 -0
  164. package/schemas/collection-result.schema.json +35 -0
  165. package/schemas/config.schema.json +2 -0
  166. package/schemas/cro-report.schema.json +8 -1
  167. package/schemas/finding.schema.json +105 -2
  168. package/schemas/remediation-verification.schema.json +12 -1
  169. package/schemas/run.schema.json +15 -2
  170. package/schemas/search-report.schema.json +8 -1
  171. package/schemas/summary.schema.json +41 -0
  172. package/skill/SKILL.md +11 -2
  173. package/src/acceptance/reproducibility.js +5 -25
  174. package/src/analysis/croRoadmap.js +3 -3
  175. package/src/analysis/strategicRoadmap.js +3 -3
  176. package/src/artifacts/interchange.js +2 -6
  177. package/src/cli/index.js +15 -3
  178. package/src/commands/actionPlan.js +46 -5
  179. package/src/commands/applyRemediation.js +5 -5
  180. package/src/commands/audit.js +75 -8
  181. package/src/commands/ciWorkflow.js +7 -2
  182. package/src/commands/compareSnapshots.js +155 -47
  183. package/src/commands/connect.js +24 -4
  184. package/src/commands/context.js +41 -2
  185. package/src/commands/croSuite.js +51 -13
  186. package/src/commands/delivery.js +7 -7
  187. package/src/commands/governance.js +9 -10
  188. package/src/commands/implementationKit.js +2 -1
  189. package/src/commands/init.js +8 -1
  190. package/src/commands/previewCro.js +1 -1
  191. package/src/commands/prioritize.js +3 -2
  192. package/src/commands/reviews.js +31 -5
  193. package/src/commands/roadmapCmd.js +7 -13
  194. package/src/commands/sweep.js +15 -2
  195. package/src/commands/verifyRemediation.js +94 -19
  196. package/src/connectors/collectionResult.js +80 -0
  197. package/src/connectors/ga4.js +46 -11
  198. package/src/connectors/gsc.js +41 -6
  199. package/src/connectors/index.js +1 -1
  200. package/src/connectors/webflow.js +140 -10
  201. package/src/connectors/wordpress.js +92 -8
  202. package/src/crawler/fetch.js +220 -24
  203. package/src/crawler/resourceValidity.js +119 -0
  204. package/src/crawler/sitemap.js +435 -16
  205. package/src/crawler/sitemapCollector.js +364 -0
  206. package/src/crawler/urlIdentity.js +97 -0
  207. package/src/detectors/agent.js +11 -0
  208. package/src/detectors/ans.js +16 -1
  209. package/src/detectors/arch.js +6 -0
  210. package/src/detectors/claim.js +9 -0
  211. package/src/detectors/crawl.js +7 -0
  212. package/src/detectors/cro.js +21 -0
  213. package/src/detectors/cwv.js +4 -0
  214. package/src/detectors/entity.js +7 -0
  215. package/src/detectors/evd.js +9 -0
  216. package/src/detectors/framework.js +28 -2
  217. package/src/detectors/geoReco.js +16 -0
  218. package/src/detectors/hreflang.js +3 -0
  219. package/src/detectors/lifeMeas.js +9 -0
  220. package/src/detectors/link.js +6 -1
  221. package/src/detectors/page.js +11 -0
  222. package/src/detectors/schemaData.js +16 -1
  223. package/src/detectors/tech.js +34 -3
  224. package/src/evidence/coverage.js +448 -0
  225. package/src/evidence/determination.js +157 -0
  226. package/src/evidence/downstream.js +110 -0
  227. package/src/evidence/hashes.js +109 -0
  228. package/src/evidence/run.js +68 -8
  229. package/src/extractor/page.js +29 -2
  230. package/src/extractor/site.js +298 -50
  231. package/src/reporting/executiveCroReport.js +36 -13
  232. package/src/reporting/executiveExport.js +45 -16
  233. package/src/reporting/executiveSearchReport.js +56 -22
  234. package/src/reporting/report.js +56 -9
  235. package/src/shared/epistemicLanguage.js +86 -0
  236. package/src/shared/evidenceSourceResolver.js +48 -17
  237. package/src/shared/htmlEscape.js +8 -4
  238. package/src/shared/runPackageVerifier.js +99 -8
  239. package/src/shared/verifiedRunLoader.js +129 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebulacomponents/citable",
3
- "version": "1.19.0",
3
+ "version": "1.20.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",
@@ -4,11 +4,23 @@
4
4
  "title": "Finding action plan",
5
5
  "type": "object",
6
6
  "additionalProperties": false,
7
- "required": ["source_run_id", "source_findings_hash", "generated_at", "summary", "actions"],
7
+ "required": ["source_run_id", "source_findings_hash", "generated_at", "summary", "actions", "source_coverage"],
8
8
  "properties": {
9
9
  "source_run_id": { "type": "string", "minLength": 1 },
10
10
  "source_findings_hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
11
11
  "generated_at": { "type": "string" },
12
+ "source_coverage": {
13
+ "type": "object",
14
+ "additionalProperties": false,
15
+ "required": ["coverage_status", "determination_status", "evidence_scope", "limitations"],
16
+ "properties": {
17
+ "coverage_status": { "type": "string", "enum": ["complete", "truncated", "indeterminate", "not_applicable"] },
18
+ "determination_status": { "type": "string", "enum": ["supported", "qualified", "indeterminate", "not_applicable"] },
19
+ "artifact": { "type": ["string", "null"] },
20
+ "evidence_scope": { "$ref": "#/definitions/evidenceScope" },
21
+ "limitations": { "type": "array", "items": { "type": "string" } }
22
+ }
23
+ },
12
24
  "summary": {
13
25
  "type": "object",
14
26
  "additionalProperties": false,
@@ -40,6 +52,10 @@
40
52
  "owner": { "type": ["string", "null"] },
41
53
  "decision_owner": { "type": ["string", "null"] },
42
54
  "status": { "type": "string", "enum": ["ready", "blocked"] },
55
+ "coverage_status": { "type": "string", "enum": ["complete", "truncated", "indeterminate", "not_applicable"] },
56
+ "determination_status": { "type": "string", "enum": ["supported", "qualified", "indeterminate", "not_applicable"] },
57
+ "evidence_scope": { "$ref": "#/definitions/evidenceScope" },
58
+ "limitations": { "type": "array", "items": { "type": "string" } },
43
59
  "required_input": { "type": "array", "items": { "type": "string" } },
44
60
  "semantic_gates": { "type": "array", "items": { "type": "string" } },
45
61
  "unsafe_shortcuts": { "type": "array", "items": { "type": "string" } },
@@ -64,5 +80,26 @@
64
80
  }
65
81
  }
66
82
  }
83
+ },
84
+ "definitions": {
85
+ "evidenceScope": {
86
+ "type": "object",
87
+ "additionalProperties": false,
88
+ "required": ["requirement", "satisfaction", "coverage_ref", "resource_ids"],
89
+ "properties": {
90
+ "requirement": { "type": "string", "minLength": 1 },
91
+ "satisfaction": { "type": "string", "enum": ["supported", "qualified", "indeterminate", "not_applicable"] },
92
+ "coverage_ref": { "type": ["string", "null"] },
93
+ "resource_ids": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
94
+ "population": { "type": "string", "enum": ["evaluated_subset", "none_observed"] },
95
+ "evaluated": { "type": ["integer", "null"], "minimum": 0 },
96
+ "eligible": { "type": ["integer", "null"], "minimum": 0 },
97
+ "excluded": { "type": ["integer", "null"], "minimum": 0 },
98
+ "failed": { "type": ["integer", "null"], "minimum": 0 },
99
+ "indeterminate": { "type": ["integer", "null"], "minimum": 0 },
100
+ "unvisited": { "type": ["integer", "null"], "minimum": 0 },
101
+ "denominator": { "type": ["integer", "null"], "minimum": 0 }
102
+ }
103
+ }
67
104
  }
68
105
  }
@@ -0,0 +1,118 @@
1
+ {
2
+ "$id": "citable://schemas/audit-coverage.schema.json",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Audit coverage",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema_version",
9
+ "normalization_version",
10
+ "requested_scope",
11
+ "discovery",
12
+ "populations",
13
+ "resources",
14
+ "stop_reason",
15
+ "coverage_status",
16
+ "reconciliation",
17
+ "limitations"
18
+ ],
19
+ "properties": {
20
+ "schema_version": { "const": 1 },
21
+ "normalization_version": { "type": "string", "minLength": 1 },
22
+ "requested_scope": {
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": ["start_url", "origin", "max_pages", "time_budget_seconds"],
26
+ "properties": {
27
+ "start_url": { "type": "string", "format": "uri" },
28
+ "origin": { "type": "string", "format": "uri" },
29
+ "max_pages": { "type": "integer", "minimum": 1, "maximum": 10000 },
30
+ "time_budget_seconds": { "type": "integer", "minimum": 1, "maximum": 86400 }
31
+ }
32
+ },
33
+ "discovery": {
34
+ "type": "object",
35
+ "additionalProperties": false,
36
+ "required": ["status", "methods", "limitations"],
37
+ "properties": {
38
+ "status": { "type": "string", "enum": ["complete", "truncated", "indeterminate"] },
39
+ "methods": { "type": "array", "items": { "type": "string" } },
40
+ "limitations": { "type": "array", "items": { "type": "string" } }
41
+ }
42
+ },
43
+ "populations": {
44
+ "type": "object",
45
+ "additionalProperties": false,
46
+ "required": [
47
+ "discovered",
48
+ "eligible",
49
+ "excluded",
50
+ "attempted",
51
+ "retrieved",
52
+ "valid_resource",
53
+ "evaluated",
54
+ "valid_but_unevaluated",
55
+ "failed",
56
+ "indeterminate",
57
+ "unvisited"
58
+ ],
59
+ "properties": {
60
+ "discovered": { "$ref": "#/definitions/populationCount" },
61
+ "eligible": { "$ref": "#/definitions/populationCount" },
62
+ "excluded": { "$ref": "#/definitions/populationCount" },
63
+ "attempted": { "$ref": "#/definitions/populationCount" },
64
+ "retrieved": { "$ref": "#/definitions/populationCount" },
65
+ "valid_resource": { "$ref": "#/definitions/populationCount" },
66
+ "evaluated": { "$ref": "#/definitions/populationCount" },
67
+ "valid_but_unevaluated": { "$ref": "#/definitions/populationCount" },
68
+ "failed": { "$ref": "#/definitions/populationCount" },
69
+ "indeterminate": { "$ref": "#/definitions/populationCount" },
70
+ "unvisited": { "$ref": "#/definitions/populationCount" }
71
+ }
72
+ },
73
+ "resources": {
74
+ "type": "array",
75
+ "items": {
76
+ "type": "object",
77
+ "properties": {
78
+ "resource_id": { "type": ["string", "null"] },
79
+ "requested_url": { "type": ["string", "null"] },
80
+ "effective_url": { "type": ["string", "null"] },
81
+ "canonical_url": { "type": ["string", "null"] },
82
+ "response_body_hash": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" },
83
+ "rendered_dom_hash": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" },
84
+ "extracted_text_hash": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" },
85
+ "structured_data_hash": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" },
86
+ "evidence_hash": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" },
87
+ "artifact_hash": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" }
88
+ }
89
+ }
90
+ },
91
+ "stop_reason": {
92
+ "type": "string",
93
+ "enum": [
94
+ "frontier_exhausted",
95
+ "page_budget_exhausted",
96
+ "time_budget_exhausted",
97
+ "fatal_collection_failure"
98
+ ]
99
+ },
100
+ "coverage_status": {
101
+ "type": "string",
102
+ "enum": ["complete", "truncated", "indeterminate", "not_applicable"]
103
+ },
104
+ "reconciliation": {
105
+ "type": "object",
106
+ "additionalProperties": false,
107
+ "required": ["valid", "errors"],
108
+ "properties": {
109
+ "valid": { "type": "boolean" },
110
+ "errors": { "type": "array", "items": { "type": "string" } }
111
+ }
112
+ },
113
+ "limitations": { "type": "array", "items": { "type": "string" } }
114
+ },
115
+ "definitions": {
116
+ "populationCount": { "type": "integer", "minimum": 0 }
117
+ }
118
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "$id": "citable://schemas/collection-result.schema.json",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Collection result",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema_version",
9
+ "items",
10
+ "pagination_state",
11
+ "provider_reported_total",
12
+ "retrieved_total",
13
+ "coverage_status",
14
+ "continuation_state",
15
+ "limitations",
16
+ "errors"
17
+ ],
18
+ "properties": {
19
+ "schema_version": { "const": 1 },
20
+ "items": {
21
+ "type": "array",
22
+ "items": {}
23
+ },
24
+ "pagination_state": { "type": "object" },
25
+ "provider_reported_total": { "type": ["integer", "null"], "minimum": 0 },
26
+ "retrieved_total": { "type": "integer", "minimum": 0 },
27
+ "coverage_status": {
28
+ "type": "string",
29
+ "enum": ["complete", "truncated", "indeterminate", "provider_bounded"]
30
+ },
31
+ "continuation_state": { "type": ["object", "null"] },
32
+ "limitations": { "type": "array", "items": { "type": "string" } },
33
+ "errors": { "type": "array", "items": { "type": "string" } }
34
+ }
35
+ }
@@ -30,6 +30,8 @@
30
30
  "type": "object",
31
31
  "properties": {
32
32
  "index_target_default": { "type": "boolean" },
33
+ "max_pages": { "type": "integer", "minimum": 1, "maximum": 10000 },
34
+ "time_budget_seconds": { "type": "integer", "minimum": 1, "maximum": 86400 },
33
35
  "max_crawl_depth": { "type": "integer", "minimum": 1 },
34
36
  "thin_content_words": { "type": "integer", "minimum": 1 },
35
37
  "fetch_external": { "type": "boolean" },
@@ -103,7 +103,14 @@
103
103
  "source_identifier": { "type": ["string", "null"] },
104
104
  "source_findings_count": { "type": "integer", "minimum": 0 },
105
105
  "integrity_hash": { "type": ["string", "null"] },
106
- "synthetic_evidence": { "type": "boolean" }
106
+ "synthetic_evidence": { "type": "boolean" },
107
+ "package_verified": { "type": "boolean" },
108
+ "integrity_mode": { "type": "string" },
109
+ "legacy": { "type": "boolean" },
110
+ "coverage_status": { "type": "string" },
111
+ "determination_status": { "type": "string" },
112
+ "evaluated": { "type": ["integer", "null"], "minimum": 0 },
113
+ "eligible": { "type": ["integer", "null"], "minimum": 0 }
107
114
  },
108
115
  "additionalProperties": false
109
116
  }
@@ -17,12 +17,19 @@
17
17
  "status"
18
18
  ],
19
19
  "properties": {
20
+ "schema_version": {
21
+ "type": "integer",
22
+ "enum": [1, 2]
23
+ },
20
24
  "finding_id": {
21
25
  "$ref": "citable://schemas/common.defs.json#/definitions/id"
22
26
  },
23
27
  "detector_id": {
24
28
  "$ref": "citable://schemas/common.defs.json#/definitions/id"
25
29
  },
30
+ "detector_name": {
31
+ "type": "string"
32
+ },
26
33
  "run_id": {
27
34
  "type": "string"
28
35
  },
@@ -84,6 +91,15 @@
84
91
  },
85
92
  "rendered_selector": {
86
93
  "type": "string"
94
+ },
95
+ "resource_id": {
96
+ "type": "string"
97
+ },
98
+ "url_identity": {
99
+ "type": "object"
100
+ },
101
+ "evidence_identity": {
102
+ "$ref": "#/definitions/evidenceIdentity"
87
103
  }
88
104
  }
89
105
  },
@@ -106,7 +122,10 @@
106
122
  }
107
123
  },
108
124
  "captured_value": {},
109
- "expected_value": {}
125
+ "expected_value": {},
126
+ "evidence_identity": {
127
+ "$ref": "#/definitions/evidenceIdentity"
128
+ }
110
129
  }
111
130
  },
112
131
  "classification": {
@@ -326,6 +345,42 @@
326
345
  }
327
346
  }
328
347
  },
348
+ "evidence_scope": {
349
+ "type": "object",
350
+ "additionalProperties": false,
351
+ "required": [
352
+ "requirement",
353
+ "satisfaction",
354
+ "resource_ids",
355
+ "coverage_ref"
356
+ ],
357
+ "properties": {
358
+ "requirement": {
359
+ "type": "string",
360
+ "minLength": 1
361
+ },
362
+ "satisfaction": {
363
+ "type": "string",
364
+ "enum": [
365
+ "supported",
366
+ "qualified",
367
+ "indeterminate",
368
+ "not_applicable"
369
+ ]
370
+ },
371
+ "resource_ids": {
372
+ "type": "array",
373
+ "uniqueItems": true,
374
+ "items": {
375
+ "type": "string"
376
+ }
377
+ },
378
+ "coverage_ref": {
379
+ "type": "string",
380
+ "minLength": 1
381
+ }
382
+ }
383
+ },
329
384
  "status": {
330
385
  "type": "object",
331
386
  "required": [
@@ -358,7 +413,55 @@
358
413
  }
359
414
  }
360
415
  },
416
+ "allOf": [
417
+ {
418
+ "if": {
419
+ "required": ["schema_version"],
420
+ "properties": {
421
+ "schema_version": {
422
+ "const": 2
423
+ }
424
+ }
425
+ },
426
+ "then": {
427
+ "required": ["evidence_scope"],
428
+ "propertyNames": {
429
+ "enum": [
430
+ "schema_version",
431
+ "finding_id",
432
+ "detector_id",
433
+ "detector_name",
434
+ "run_id",
435
+ "timestamp",
436
+ "discipline",
437
+ "subject",
438
+ "observation",
439
+ "classification",
440
+ "reasoning",
441
+ "remediation",
442
+ "verification",
443
+ "provenance",
444
+ "evidence_scope",
445
+ "status"
446
+ ]
447
+ }
448
+ }
449
+ }
450
+ ],
361
451
  "definitions": {
452
+ "evidenceIdentity": {
453
+ "type": "object",
454
+ "additionalProperties": false,
455
+ "required": ["hash_schema_version", "representation", "hash"],
456
+ "properties": {
457
+ "hash_schema_version": { "type": "string", "minLength": 1 },
458
+ "representation": {
459
+ "type": "string",
460
+ "enum": ["response_body", "rendered_dom", "extracted_text", "structured_data", "evidence", "artifact"]
461
+ },
462
+ "hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
463
+ }
464
+ },
362
465
  "impactLevel": {
363
466
  "type": "string",
364
467
  "enum": [
@@ -370,4 +473,4 @@
370
473
  ]
371
474
  }
372
475
  }
373
- }
476
+ }
@@ -12,7 +12,7 @@
12
12
  "properties": {
13
13
  "verification_id": { "type": "string", "pattern": "^VR-[0-9]{14,20}-[a-z0-9]{2,8}$" },
14
14
  "timestamp": { "type": "string" },
15
- "status": { "type": "string", "enum": ["verified", "not_resolved", "blocked", "patch_refused"] },
15
+ "status": { "type": "string", "enum": ["verified", "not_resolved", "not_reobserved", "not_comparable", "indeterminate", "blocked", "patch_refused"] },
16
16
  "tool_version": { "type": "string" },
17
17
  "repository_commit": { "type": ["string", "null"] },
18
18
  "source_run_id": { "type": ["string", "null"], "minLength": 1 },
@@ -30,6 +30,7 @@
30
30
  "required": ["resolved"],
31
31
  "properties": {
32
32
  "resolved": { "type": "boolean" },
33
+ "comparison_state": { "type": "string", "enum": ["persisted", "resolved", "new", "changed", "not_comparable", "not_reobserved", "indeterminate"] },
33
34
  "before_finding_ids": { "type": "array", "items": { "type": "string" } },
34
35
  "after_finding_ids": { "type": "array", "items": { "type": "string" } },
35
36
  "new_regressions": {
@@ -51,6 +52,16 @@
51
52
  }
52
53
  }
53
54
  },
55
+ "comparison": {
56
+ "type": "object",
57
+ "required": ["state", "reason", "coverage_status"],
58
+ "properties": {
59
+ "state": { "type": "string", "enum": ["resolved", "not_reobserved", "not_comparable", "indeterminate"] },
60
+ "reason": { "type": "string" },
61
+ "coverage_status": { "type": "string" },
62
+ "resource": { "type": ["string", "null"] }
63
+ }
64
+ },
54
65
  "patch": {
55
66
  "type": ["object", "null"],
56
67
  "properties": {
@@ -5,6 +5,7 @@
5
5
  "type": "object",
6
6
  "required": ["run_id", "command", "tool_version", "skill_version", "timestamp", "target", "status"],
7
7
  "properties": {
8
+ "schema_version": { "type": "integer", "enum": [1, 2] },
8
9
  "run_id": { "type": "string" },
9
10
  "command": { "type": "string" },
10
11
  "argv": { "type": "array", "items": { "type": "string" } },
@@ -31,6 +32,18 @@
31
32
  "incomplete_checks": { "type": "array", "items": { "type": "string" } },
32
33
  "errors": { "type": "array", "items": { "type": "string" } },
33
34
  "warnings": { "type": "array", "items": { "type": "string" } },
34
- "status": { "type": "string", "enum": ["completed", "completed_with_warnings", "incomplete", "failed"] }
35
- }
35
+ "status": { "type": "string", "enum": ["completed", "completed_with_warnings", "incomplete", "failed"] },
36
+ "execution_status": { "type": "string", "enum": ["completed", "completed_with_warnings", "failed"] },
37
+ "coverage_status": { "type": "string", "enum": ["complete", "truncated", "indeterminate", "not_applicable"] },
38
+ "determination_status": { "type": "string", "enum": ["supported", "qualified", "indeterminate", "not_applicable"] }
39
+ },
40
+ "allOf": [
41
+ {
42
+ "if": {
43
+ "required": ["schema_version"],
44
+ "properties": { "schema_version": { "const": 2 } }
45
+ },
46
+ "then": { "required": ["execution_status", "coverage_status", "determination_status"] }
47
+ }
48
+ ]
36
49
  }
@@ -90,7 +90,14 @@
90
90
  "source_identifier": { "type": ["string", "null"] },
91
91
  "source_findings_count": { "type": "integer", "minimum": 0 },
92
92
  "integrity_hash": { "type": ["string", "null"] },
93
- "synthetic_evidence": { "type": "boolean" }
93
+ "synthetic_evidence": { "type": "boolean" },
94
+ "package_verified": { "type": "boolean" },
95
+ "integrity_mode": { "type": "string" },
96
+ "legacy": { "type": "boolean" },
97
+ "coverage_status": { "type": "string" },
98
+ "determination_status": { "type": "string" },
99
+ "evaluated": { "type": ["integer", "null"], "minimum": 0 },
100
+ "eligible": { "type": ["integer", "null"], "minimum": 0 }
94
101
  },
95
102
  "additionalProperties": false
96
103
  }
@@ -0,0 +1,41 @@
1
+ {
2
+ "$id": "citable://schemas/summary.schema.json",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Run summary",
5
+ "type": "object",
6
+ "required": ["coverage", "posture"],
7
+ "properties": {
8
+ "coverage": {
9
+ "type": ["object", "null"],
10
+ "required": ["status", "populations", "stop_reason"],
11
+ "properties": {
12
+ "status": { "enum": ["complete", "truncated", "indeterminate", "not_applicable"] },
13
+ "populations": { "$ref": "citable://schemas/audit-coverage.schema.json#/properties/populations" },
14
+ "stop_reason": { "type": ["string", "null"] }
15
+ },
16
+ "additionalProperties": false
17
+ },
18
+ "posture": {
19
+ "type": "object",
20
+ "required": ["retrieval_eligibility", "source_extraction_and_support", "observed_citation_behavior"],
21
+ "properties": {
22
+ "retrieval_eligibility": { "$ref": "#/definitions/posture" },
23
+ "source_extraction_and_support": { "$ref": "#/definitions/posture" },
24
+ "observed_citation_behavior": { "$ref": "#/definitions/posture" }
25
+ },
26
+ "additionalProperties": false
27
+ }
28
+ },
29
+ "additionalProperties": true,
30
+ "definitions": {
31
+ "posture": {
32
+ "type": "object",
33
+ "required": ["result"],
34
+ "properties": {
35
+ "result": { "type": "string" },
36
+ "coverage_status": { "enum": ["complete", "truncated", "indeterminate", "not_applicable"] }
37
+ },
38
+ "additionalProperties": true
39
+ }
40
+ }
41
+ }
package/skill/SKILL.md CHANGED
@@ -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.19.0
10
+ version: 1.20.0
11
11
  ---
12
12
 
13
13
  # Citable — evidence and change control for search and AI citation readiness
@@ -69,6 +69,15 @@ Every report must keep these top-level states separate:
69
69
  3. **Observed citation behavior** — only controlled, timestamped provider
70
70
  observations; absent observations are `not_evidenced`, never inferred.
71
71
 
72
+ Presentation language must preserve those boundaries. An empty finding list,
73
+ legacy package, unverified artifact, incomplete crawl, or indeterminate
74
+ determination must not be described as `clean`, `complete`, `verified`,
75
+ `resolved`, `100%`, or `site-wide`. State the evaluated population and the
76
+ limitation instead (for example, "No findings were produced for the 217
77
+ successfully evaluated resources; corpus-wide absence is not established").
78
+ Positive local observations may remain supported, but they must not be widened
79
+ to pages or resources that were not observed.
80
+
72
81
  Within retrieval, distinguish `allowed_by_policy`, `synthetic_fetch_succeeded`,
73
82
  `observed_in_production_logs`, `indexed`, and `returned_by_retrieval`. Within
74
83
  citation testing, distinguish mention, citation, material support, canonical
@@ -86,7 +95,7 @@ prefer running it over re-deriving its checks by hand:
86
95
 
87
96
  ```
88
97
  citable init # initialize .citable/ (non-destructive)
89
- citable audit [scope] --target <dir|url> [--base-url <url>] [--ref-date YYYY-MM-DD]
98
+ citable audit [scope] --target <dir|url> [--base-url <url>] [--max-pages <1..10000>] [--time-budget-seconds <1..86400>] [--ref-date YYYY-MM-DD]
90
99
  citable plan-audit --target <dir|url> [--base-url <url>]
91
100
  citable sweep technical --target <dir|url> # Technical SEO sweep + Core Web Vitals metrics
92
101
  citable inspect <page> --target <dir|url>
@@ -1,8 +1,8 @@
1
- import fs from 'node:fs';
2
1
  import path from 'node:path';
3
2
  import { canonicalJson } from '../release/governance.js';
4
- import { nowIso, readJson, sha256, sha256File, writeJson } from '../shared/io.js';
3
+ import { nowIso, readJson, sha256, writeJson } from '../shared/io.js';
5
4
  import { validateAgainst } from '../shared/schemaValidator.js';
5
+ import { loadVerifiedRun } from '../shared/verifiedRunLoader.js';
6
6
 
7
7
  const INCLUDED_FIELDS = [
8
8
  'property.target', 'property.source_commit', 'property.content_hashes',
@@ -37,25 +37,6 @@ function normalizedArguments(argv = []) {
37
37
  return normalized;
38
38
  }
39
39
 
40
- function verifyRunPackage(runDir, manifest) {
41
- const manifestCheck = validateAgainst('run.schema.json', manifest);
42
- if (!manifestCheck.valid) throw new Error(`run manifest violates contract: ${manifestCheck.errors.join('; ')}`);
43
- const checksumsFile = path.join(runDir, 'checksums.json');
44
- if (!fs.existsSync(checksumsFile)) throw new Error(`run ${manifest.run_id} has no checksums.json`);
45
- const checksums = readJson(checksumsFile);
46
- if (!checksums || Array.isArray(checksums) || typeof checksums !== 'object') throw new Error('run checksums must be an object');
47
- const failures = [];
48
- for (const [relative, expected] of Object.entries(checksums)) {
49
- const file = path.resolve(runDir, relative);
50
- if (path.isAbsolute(relative) || (!file.startsWith(`${path.resolve(runDir)}${path.sep}`))) failures.push(`${relative} escapes the run package`);
51
- else if (!/^[a-f0-9]{64}$/.test(expected)) failures.push(`${relative} has an invalid checksum`);
52
- else if (!fs.existsSync(file)) failures.push(`${relative} is missing`);
53
- else if (sha256File(file) !== expected) failures.push(`${relative} checksum differs`);
54
- }
55
- if (failures.length) throw new Error(`run package integrity failed: ${failures.join('; ')}`);
56
- return checksums;
57
- }
58
-
59
40
  function fingerprintPayload(receipt) {
60
41
  return {
61
42
  property: { target: receipt.property.target, source_commit: receipt.property.source_commit, content_hashes: receipt.property.content_hashes },
@@ -74,11 +55,10 @@ export function createAcceptanceReceipt(root, { runId, context = {}, createdAt =
74
55
  const contextCheck = validateAgainst('acceptance-run-context.schema.json', context);
75
56
  if (!contextCheck.valid) throw new Error(`acceptance context violates contract: ${contextCheck.errors.join('; ')}`);
76
57
  const runDir = path.join(root, '.citable', 'runs', runId);
77
- const manifestFile = path.join(runDir, 'manifest.json');
78
- if (!fs.existsSync(manifestFile)) throw new Error(`run ${runId} not found`);
79
- const manifest = readJson(manifestFile);
58
+ const verified = loadVerifiedRun(runDir, { requireCompletedExecution: false, allowLegacy: true, requireCoverage: false });
59
+ const manifest = verified.manifest;
80
60
  if (manifest.run_id !== runId) throw new Error(`run manifest id ${manifest.run_id} does not match requested run ${runId}`);
81
- const checksums = verifyRunPackage(runDir, manifest);
61
+ const checksums = verified.artifactHashes;
82
62
  const canonicalArtifacts = sortedObject(Object.fromEntries(
83
63
  Object.entries(checksums).filter(([name]) => name !== 'manifest.json'),
84
64
  ));
@@ -18,10 +18,10 @@ export function buildCroRoadmap({ findings = [], targetDomain = 'example.com', d
18
18
  'Mobile Tap Sizing: Expand diminutive mobile CTA touch targets to >= 48px standard (CRO-015)',
19
19
  ],
20
20
  target_outcomes: [
21
- '100% conversion funnel continuity intact across all declared paths',
21
+ 'Conversion funnel continuity observed across the declared paths in scope',
22
22
  'Keystroke Effort Index: Form completion friction reduced by >= 40%',
23
- 'Above-the-fold information scent match verified across all primary landing pages',
24
- 'Zero mobile touch target defects under 48px',
23
+ 'Above-the-fold information scent match observed on evaluated primary landing pages',
24
+ 'No mobile touch-target findings in the evaluated pages',
25
25
  ],
26
26
  measurable_conversion_kpi: 'Form Completion Rate (+8% to +15% expected relative lift)',
27
27
  experiments: backlog.experiments.filter((e) => ['CRO-007', 'CRO-005', 'CRO-015', 'CRO-017', 'CRO-018'].includes(e.detector_id) || e.ice_prioritization.effort <= 3),
@@ -24,9 +24,9 @@ export function buildStrategicRoadmap({ findings = [], initiatives = [], targetD
24
24
  ],
25
25
  exit_criteria: [
26
26
  'Zero critical-severity technical findings in citable audit technical',
27
- 'Static CLS readiness: 100% of body images have explicit dimensions',
28
- 'All major answer engine bots verified allowed in robots directives',
29
- 'Baseline Organization schema live with verified @id',
27
+ 'Static CLS readiness: every evaluated body image has explicit dimensions',
28
+ 'Major answer engine bot access observed as allowed in robots directives',
29
+ 'Baseline Organization schema live with an observed @id',
30
30
  ],
31
31
  actions: [],
32
32
  };