@nebulacomponents/citable 1.18.0 → 1.18.2

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 (190) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/universal/.agents/skills/citable/SKILL.md +22 -1
  3. package/dist/universal/.agents/skills/citable/VERSION +1 -1
  4. package/dist/universal/.agents/skills/citable/agents/citable-remediator.md +43 -0
  5. package/dist/universal/.agents/skills/citable/agents/citable-sow-architect.md +43 -0
  6. package/dist/universal/.agents/skills/citable/commands/README.md +13 -0
  7. package/dist/universal/.agents/skills/citable/commands/artifact-interchange.md +5 -0
  8. package/dist/universal/.agents/skills/citable/commands/remediation.md +55 -0
  9. package/dist/universal/.agents/skills/citable/commands/reporting.md +28 -0
  10. package/dist/universal/.agents/skills/citable/commands/sow.md +95 -0
  11. package/dist/universal/.agents/skills/citable/manifest.json +15 -9
  12. package/dist/universal/.agents/skills/citable/schemas/cro-report.schema.json +112 -0
  13. package/dist/universal/.agents/skills/citable/schemas/search-report.schema.json +99 -0
  14. package/dist/universal/.agents/skills/citable/schemas/sow.schema.json +344 -26
  15. package/dist/universal/.claude/agents/citable/citable-remediator.md +43 -0
  16. package/dist/universal/.claude/agents/citable/citable-sow-architect.md +43 -0
  17. package/dist/universal/.claude/agents/citable/manifest.json +6 -4
  18. package/dist/universal/.claude/skills/citable/SKILL.md +22 -1
  19. package/dist/universal/.claude/skills/citable/VERSION +1 -1
  20. package/dist/universal/.claude/skills/citable/agents/citable-remediator.md +43 -0
  21. package/dist/universal/.claude/skills/citable/agents/citable-sow-architect.md +43 -0
  22. package/dist/universal/.claude/skills/citable/commands/README.md +13 -0
  23. package/dist/universal/.claude/skills/citable/commands/artifact-interchange.md +5 -0
  24. package/dist/universal/.claude/skills/citable/commands/remediation.md +55 -0
  25. package/dist/universal/.claude/skills/citable/commands/reporting.md +28 -0
  26. package/dist/universal/.claude/skills/citable/commands/sow.md +95 -0
  27. package/dist/universal/.claude/skills/citable/manifest.json +19 -11
  28. package/dist/universal/.claude/skills/citable/schemas/cro-report.schema.json +112 -0
  29. package/dist/universal/.claude/skills/citable/schemas/search-report.schema.json +99 -0
  30. package/dist/universal/.claude/skills/citable/schemas/sow.schema.json +344 -26
  31. package/dist/universal/.cursor/skills/citable/SKILL.md +22 -1
  32. package/dist/universal/.cursor/skills/citable/VERSION +1 -1
  33. package/dist/universal/.cursor/skills/citable/agents/citable-remediator.md +43 -0
  34. package/dist/universal/.cursor/skills/citable/agents/citable-sow-architect.md +43 -0
  35. package/dist/universal/.cursor/skills/citable/commands/README.md +13 -0
  36. package/dist/universal/.cursor/skills/citable/commands/artifact-interchange.md +5 -0
  37. package/dist/universal/.cursor/skills/citable/commands/remediation.md +55 -0
  38. package/dist/universal/.cursor/skills/citable/commands/reporting.md +28 -0
  39. package/dist/universal/.cursor/skills/citable/commands/sow.md +95 -0
  40. package/dist/universal/.cursor/skills/citable/manifest.json +15 -9
  41. package/dist/universal/.cursor/skills/citable/schemas/cro-report.schema.json +112 -0
  42. package/dist/universal/.cursor/skills/citable/schemas/search-report.schema.json +99 -0
  43. package/dist/universal/.cursor/skills/citable/schemas/sow.schema.json +344 -26
  44. package/dist/universal/.gemini/skills/citable/SKILL.md +22 -1
  45. package/dist/universal/.gemini/skills/citable/VERSION +1 -1
  46. package/dist/universal/.gemini/skills/citable/agents/citable-remediator.md +43 -0
  47. package/dist/universal/.gemini/skills/citable/agents/citable-sow-architect.md +43 -0
  48. package/dist/universal/.gemini/skills/citable/commands/README.md +13 -0
  49. package/dist/universal/.gemini/skills/citable/commands/artifact-interchange.md +5 -0
  50. package/dist/universal/.gemini/skills/citable/commands/remediation.md +55 -0
  51. package/dist/universal/.gemini/skills/citable/commands/reporting.md +28 -0
  52. package/dist/universal/.gemini/skills/citable/commands/sow.md +95 -0
  53. package/dist/universal/.gemini/skills/citable/manifest.json +15 -9
  54. package/dist/universal/.gemini/skills/citable/schemas/cro-report.schema.json +112 -0
  55. package/dist/universal/.gemini/skills/citable/schemas/search-report.schema.json +99 -0
  56. package/dist/universal/.gemini/skills/citable/schemas/sow.schema.json +344 -26
  57. package/dist/universal/.github/skills/citable/SKILL.md +22 -1
  58. package/dist/universal/.github/skills/citable/VERSION +1 -1
  59. package/dist/universal/.github/skills/citable/agents/citable-remediator.md +43 -0
  60. package/dist/universal/.github/skills/citable/agents/citable-sow-architect.md +43 -0
  61. package/dist/universal/.github/skills/citable/commands/README.md +13 -0
  62. package/dist/universal/.github/skills/citable/commands/artifact-interchange.md +5 -0
  63. package/dist/universal/.github/skills/citable/commands/remediation.md +55 -0
  64. package/dist/universal/.github/skills/citable/commands/reporting.md +28 -0
  65. package/dist/universal/.github/skills/citable/commands/sow.md +95 -0
  66. package/dist/universal/.github/skills/citable/manifest.json +15 -9
  67. package/dist/universal/.github/skills/citable/schemas/cro-report.schema.json +112 -0
  68. package/dist/universal/.github/skills/citable/schemas/search-report.schema.json +99 -0
  69. package/dist/universal/.github/skills/citable/schemas/sow.schema.json +344 -26
  70. package/dist/universal/.kiro/skills/citable/SKILL.md +22 -1
  71. package/dist/universal/.kiro/skills/citable/VERSION +1 -1
  72. package/dist/universal/.kiro/skills/citable/agents/citable-remediator.md +43 -0
  73. package/dist/universal/.kiro/skills/citable/agents/citable-sow-architect.md +43 -0
  74. package/dist/universal/.kiro/skills/citable/commands/README.md +13 -0
  75. package/dist/universal/.kiro/skills/citable/commands/artifact-interchange.md +5 -0
  76. package/dist/universal/.kiro/skills/citable/commands/remediation.md +55 -0
  77. package/dist/universal/.kiro/skills/citable/commands/reporting.md +28 -0
  78. package/dist/universal/.kiro/skills/citable/commands/sow.md +95 -0
  79. package/dist/universal/.kiro/skills/citable/manifest.json +15 -9
  80. package/dist/universal/.kiro/skills/citable/schemas/cro-report.schema.json +112 -0
  81. package/dist/universal/.kiro/skills/citable/schemas/search-report.schema.json +99 -0
  82. package/dist/universal/.kiro/skills/citable/schemas/sow.schema.json +344 -26
  83. package/dist/universal/.opencode/skills/citable/SKILL.md +22 -1
  84. package/dist/universal/.opencode/skills/citable/VERSION +1 -1
  85. package/dist/universal/.opencode/skills/citable/agents/citable-remediator.md +43 -0
  86. package/dist/universal/.opencode/skills/citable/agents/citable-sow-architect.md +43 -0
  87. package/dist/universal/.opencode/skills/citable/commands/README.md +13 -0
  88. package/dist/universal/.opencode/skills/citable/commands/artifact-interchange.md +5 -0
  89. package/dist/universal/.opencode/skills/citable/commands/remediation.md +55 -0
  90. package/dist/universal/.opencode/skills/citable/commands/reporting.md +28 -0
  91. package/dist/universal/.opencode/skills/citable/commands/sow.md +95 -0
  92. package/dist/universal/.opencode/skills/citable/manifest.json +15 -9
  93. package/dist/universal/.opencode/skills/citable/schemas/cro-report.schema.json +112 -0
  94. package/dist/universal/.opencode/skills/citable/schemas/search-report.schema.json +99 -0
  95. package/dist/universal/.opencode/skills/citable/schemas/sow.schema.json +344 -26
  96. package/dist/universal/.pi/agent/skills/citable/SKILL.md +22 -1
  97. package/dist/universal/.pi/agent/skills/citable/VERSION +1 -1
  98. package/dist/universal/.pi/agent/skills/citable/agents/citable-remediator.md +43 -0
  99. package/dist/universal/.pi/agent/skills/citable/agents/citable-sow-architect.md +43 -0
  100. package/dist/universal/.pi/agent/skills/citable/commands/README.md +13 -0
  101. package/dist/universal/.pi/agent/skills/citable/commands/artifact-interchange.md +5 -0
  102. package/dist/universal/.pi/agent/skills/citable/commands/remediation.md +55 -0
  103. package/dist/universal/.pi/agent/skills/citable/commands/reporting.md +28 -0
  104. package/dist/universal/.pi/agent/skills/citable/commands/sow.md +95 -0
  105. package/dist/universal/.pi/agent/skills/citable/manifest.json +15 -9
  106. package/dist/universal/.pi/agent/skills/citable/schemas/cro-report.schema.json +112 -0
  107. package/dist/universal/.pi/agent/skills/citable/schemas/search-report.schema.json +99 -0
  108. package/dist/universal/.pi/agent/skills/citable/schemas/sow.schema.json +344 -26
  109. package/dist/universal/.qoder/skills/citable/SKILL.md +22 -1
  110. package/dist/universal/.qoder/skills/citable/VERSION +1 -1
  111. package/dist/universal/.qoder/skills/citable/agents/citable-remediator.md +43 -0
  112. package/dist/universal/.qoder/skills/citable/agents/citable-sow-architect.md +43 -0
  113. package/dist/universal/.qoder/skills/citable/commands/README.md +13 -0
  114. package/dist/universal/.qoder/skills/citable/commands/artifact-interchange.md +5 -0
  115. package/dist/universal/.qoder/skills/citable/commands/remediation.md +55 -0
  116. package/dist/universal/.qoder/skills/citable/commands/reporting.md +28 -0
  117. package/dist/universal/.qoder/skills/citable/commands/sow.md +95 -0
  118. package/dist/universal/.qoder/skills/citable/manifest.json +15 -9
  119. package/dist/universal/.qoder/skills/citable/schemas/cro-report.schema.json +112 -0
  120. package/dist/universal/.qoder/skills/citable/schemas/search-report.schema.json +99 -0
  121. package/dist/universal/.qoder/skills/citable/schemas/sow.schema.json +344 -26
  122. package/dist/universal/.rovodev/skills/citable/SKILL.md +22 -1
  123. package/dist/universal/.rovodev/skills/citable/VERSION +1 -1
  124. package/dist/universal/.rovodev/skills/citable/agents/citable-remediator.md +43 -0
  125. package/dist/universal/.rovodev/skills/citable/agents/citable-sow-architect.md +43 -0
  126. package/dist/universal/.rovodev/skills/citable/commands/README.md +13 -0
  127. package/dist/universal/.rovodev/skills/citable/commands/artifact-interchange.md +5 -0
  128. package/dist/universal/.rovodev/skills/citable/commands/remediation.md +55 -0
  129. package/dist/universal/.rovodev/skills/citable/commands/reporting.md +28 -0
  130. package/dist/universal/.rovodev/skills/citable/commands/sow.md +95 -0
  131. package/dist/universal/.rovodev/skills/citable/manifest.json +15 -9
  132. package/dist/universal/.rovodev/skills/citable/schemas/cro-report.schema.json +112 -0
  133. package/dist/universal/.rovodev/skills/citable/schemas/search-report.schema.json +99 -0
  134. package/dist/universal/.rovodev/skills/citable/schemas/sow.schema.json +344 -26
  135. package/dist/universal/.trae/skills/citable/SKILL.md +22 -1
  136. package/dist/universal/.trae/skills/citable/VERSION +1 -1
  137. package/dist/universal/.trae/skills/citable/agents/citable-remediator.md +43 -0
  138. package/dist/universal/.trae/skills/citable/agents/citable-sow-architect.md +43 -0
  139. package/dist/universal/.trae/skills/citable/commands/README.md +13 -0
  140. package/dist/universal/.trae/skills/citable/commands/artifact-interchange.md +5 -0
  141. package/dist/universal/.trae/skills/citable/commands/remediation.md +55 -0
  142. package/dist/universal/.trae/skills/citable/commands/reporting.md +28 -0
  143. package/dist/universal/.trae/skills/citable/commands/sow.md +95 -0
  144. package/dist/universal/.trae/skills/citable/manifest.json +15 -9
  145. package/dist/universal/.trae/skills/citable/schemas/cro-report.schema.json +112 -0
  146. package/dist/universal/.trae/skills/citable/schemas/search-report.schema.json +99 -0
  147. package/dist/universal/.trae/skills/citable/schemas/sow.schema.json +344 -26
  148. package/dist/universal/.trae-cn/skills/citable/SKILL.md +22 -1
  149. package/dist/universal/.trae-cn/skills/citable/VERSION +1 -1
  150. package/dist/universal/.trae-cn/skills/citable/agents/citable-remediator.md +43 -0
  151. package/dist/universal/.trae-cn/skills/citable/agents/citable-sow-architect.md +43 -0
  152. package/dist/universal/.trae-cn/skills/citable/commands/README.md +13 -0
  153. package/dist/universal/.trae-cn/skills/citable/commands/artifact-interchange.md +5 -0
  154. package/dist/universal/.trae-cn/skills/citable/commands/remediation.md +55 -0
  155. package/dist/universal/.trae-cn/skills/citable/commands/reporting.md +28 -0
  156. package/dist/universal/.trae-cn/skills/citable/commands/sow.md +95 -0
  157. package/dist/universal/.trae-cn/skills/citable/manifest.json +15 -9
  158. package/dist/universal/.trae-cn/skills/citable/schemas/cro-report.schema.json +112 -0
  159. package/dist/universal/.trae-cn/skills/citable/schemas/search-report.schema.json +99 -0
  160. package/dist/universal/.trae-cn/skills/citable/schemas/sow.schema.json +344 -26
  161. package/dist/universal/manifest.json +186 -112
  162. package/package.json +2 -1
  163. package/schemas/cro-report.schema.json +112 -0
  164. package/schemas/search-report.schema.json +99 -0
  165. package/schemas/sow.schema.json +344 -26
  166. package/skill/SKILL.md +22 -1
  167. package/skill/agents/citable-remediator.md +43 -0
  168. package/skill/agents/citable-sow-architect.md +43 -0
  169. package/skill/commands/README.md +13 -0
  170. package/skill/commands/artifact-interchange.md +5 -0
  171. package/skill/commands/remediation.md +55 -0
  172. package/skill/commands/reporting.md +28 -0
  173. package/skill/commands/sow.md +95 -0
  174. package/src/analysis/behavioral.js +5 -4
  175. package/src/analysis/eeat.js +10 -9
  176. package/src/analysis/offpage.js +19 -36
  177. package/src/analysis/readiness.js +8 -2
  178. package/src/artifacts/verifyCustomerArtifact.js +283 -0
  179. package/src/cli/index.js +8 -1
  180. package/src/commands/sowCmd.js +17 -0
  181. package/src/reporting/executiveCroReport.js +393 -229
  182. package/src/reporting/executiveExport.js +6 -2
  183. package/src/reporting/executiveSearchReport.js +519 -271
  184. package/src/shared/domainUtils.js +140 -0
  185. package/src/shared/epistemicStatus.js +111 -0
  186. package/src/shared/evidenceSourceResolver.js +286 -0
  187. package/src/shared/htmlEscape.js +65 -0
  188. package/src/shared/runPackageVerifier.js +153 -0
  189. package/src/sow/admissibilityGate.js +234 -46
  190. package/src/sow/generateSow.js +524 -142
package/CHANGELOG.md CHANGED
@@ -15,6 +15,76 @@ _No entries yet. See [`BOUNTY.md`](BOUNTY.md) to submit the first one._
15
15
 
16
16
  ## Unreleased
17
17
 
18
+ ## 1.18.2 — 2026-09-10
19
+
20
+ ### Fixed — Executive Reporting, Evidence Provenance, and Commercial Artifact Hardening
21
+
22
+ - **Eliminated Fabricated Metrics in Executive Reports**:
23
+ - `src/reporting/executiveSearchReport.js`: Replaced all hardcoded fallback percentages and default metrics across Visibility Baseline, Organic Performance, SERP Landscape, AEO/GEO, E-E-A-T, Competitive Intelligence, Backlinks, and Measurement Integrity with standardized `NOT_OBSERVED` epistemic status envelopes whenever underlying analytics or platform telemetry (GSC, GA4, GTM, backlink crawls) is absent.
24
+ - `src/reporting/executiveCroReport.js`: Refactored to separate empirical observations from predictive hypotheses and causal evidence across all 25 enterprise pillars. Telemetry metrics (e.g. bounce rates, rage clicks, cohort divergence) fail closed to `NOT_OBSERVED` when session event streams are not provided.
25
+ - Added strict JSON schemas: `schemas/search-report.schema.json` and `schemas/cro-report.schema.json` compiled and validated with Ajv.
26
+ - **Unified Canonical Evidence Source Resolver & Run Verifier**:
27
+ - `src/shared/evidenceSourceResolver.js`: Unified evidence source resolution (`DIRECT_INPUT`, `EXPLICIT_RUN`, `LIVE_INSPECTION`, `LATEST_RECORDED_RUN`, `SAMPLE`) across SOW and Executive Reports with deterministic chronology and tie-breaking.
28
+ - `src/shared/runPackageVerifier.js`: Enforces checksum verification, file sha256 integrity, manifest schema validation, and run completion checks.
29
+ - **Epistemic Invariant Envelopes**:
30
+ - `src/shared/epistemicStatus.js`: Defined standard epistemic status values (`OBSERVED`, `DERIVED`, `MODELED`, `HUMAN_REVIEWED`, `NOT_OBSERVED`, `NOT_APPLICABLE`, `UNRESOLVED`, `SYNTHETIC_SAMPLE`) and typed value wrappers ensuring missing facts are explicitly visible rather than silently substituted with plausible numbers.
31
+ - **Domain & Public Suffix Boundary Parsing**:
32
+ - `src/shared/domainUtils.js`: Implemented multi-part public suffix extraction (`extractRegistrableDomain`, `extractPublicSuffix`, `isAuthoritativeDomain`) handling multi-part suffixes (e.g. `.co.uk`, `.com.au`, `.gov.uk`) and preventing substring boundary spoofing.
33
+ - `src/analysis/eeat.js`: Replaced naive substring matching with authoritative domain checks and enforced strict page-scoped claim filtering.
34
+ - `src/analysis/offpage.js`: Applied public suffix parsing to backlink profiles; empty anchor text is strictly categorized as `empty_anchor` rather than branded; corrected multi-token `rel` attribution (`nofollow`, `ugc`, `sponsored`).
35
+ - **AEO Readiness Scoring & Null Safety**:
36
+ - `src/analysis/readiness.js`: Standardized score naming (`score`, `readiness_score`), eliminated NaN drift, reclassified checks as `MODELED_EXTRACTION_READINESS` (`epistemic_status: 'MODELED'`).
37
+ - `src/analysis/behavioral.js`: Fixed null-handling when telemetry streams are absent.
38
+ - **Commercial SOW Contractual Mode Hardening**:
39
+ - `src/sow/generateSow.js` & `src/sow/admissibilityGate.js`: Refactored to use canonical source resolver and HTML escaping. In contractual mode, explicit commercial parameters and non-empty in-scope properties are strictly required; built-in template default owners are refused (`REFUSE-TEMPLATE-DEFAULT-OWNER`); `acceptance_basis` is recorded on every requirement; finding ID and requirement ID uniqueness invariants are enforced.
40
+ - **HTML/Markdown Escaping & Injection Protection**:
41
+ - `src/shared/htmlEscape.js`: Implemented canonical escaping utilities (`escapeHtml`, `escapeHtmlAttr`, `sanitizeUrl`, `escapeMarkdownTableCell`, `sanitizeForMarkdown`) protecting all rendered client names, finding summaries, recommendations, and subjects against raw script and event handler injection.
42
+ - **Customer Artifact Verification Tooling**:
43
+ - `src/artifacts/verifyCustomerArtifact.js`: Validates customer artifacts (SOW, Search Report, CRO Report) against schemas, verifies arithmetic invariants, enforces absence of synthetic/sample data in contractual mode, and detects unescaped script injections. Exposed via CLI command `citable artifacts verify-customer <file>`.
44
+ - **Supply Chain Security & Schema Validation**:
45
+ - Pinned all GitHub Action steps across all 8 workflows to immutable commit SHAs.
46
+ - Added `npm run validate:schemas` compiling all 64 schemas cleanly with Ajv.
47
+
48
+ ## 1.18.1 — 2026-09-10
49
+
50
+ ### Fixed — SOW Evidence Traceability & Admissibility Gate Hardening
51
+
52
+ - Hardened Scope Admissibility Gate (`src/sow/admissibilityGate.js`):
53
+ - Fixed acceptance gate bypass: findings without an automated rerun detector (`f.verification.detector_to_rerun`), validation method, or acceptance test are strictly refused with `REFUSE-UNVERIFIABLE`.
54
+ - Fixed scope boundary check: replaced naive substring matching with URL-aware hostname, subdomain, origin, and path prefix boundary validation (`checkScopeBoundary`), eliminating hostname-prefix and suffix spoofing vulnerabilities (`example.com.attacker.example`, `notexample.com`).
55
+ - Fixed identity conflation: separated `finding_id` from `detector_id`, ensuring deterministic uniqueness across multiple findings from the same detector.
56
+ - Fixed fake ownership: implemented real ownership gate resolving from `f.delivery_owner`, `f.remediation.owner`, `f.owner`, or declared engagement role mappings (`owner_source`, `owner_mapping_version`), refusing unresolved assignments with `REFUSE-OWNER-UNRESOLVED`.
57
+ - Fixed evidence collapsing: preserved complete supporting evidence lists in `evidence_ids[]` array without collapsing or synthesizing fallback IDs.
58
+ - Enforced `allowedDisciplines`: findings outside authorized disciplines are formally refused with `REFUSE-DISCIPLINE-NOT-AUTHORIZED`.
59
+ - Hardened Statement of Work (SOW) Generator (`src/sow/generateSow.js`):
60
+ - Eliminated implicit hardcoded fallback findings: generation from live target or historical run fails closed when findings are missing (`NoFindingsError`). Synthetic demonstration findings are strictly confined to explicit sample mode (`--sample` / `--demo`).
61
+ - Added typed SOW error classes: `SowError`, `RunNotFoundError`, `FindingsMissingError`, `FindingsInvalidError`, `LiveInspectionFailedError`, `NoFindingsError`, `NoAdmissibleRequirementsError`, `BudgetCalculationError`, and `SowInvariantError`.
62
+ - Enforced strict run authority: explicit `--run <id>` takes absolute precedence over live scanning and fails closed if the run does not exist or findings are missing/malformed.
63
+ - Machine-readable `generation_provenance` block: records `generator_version`, `generated_at`, `generation_mode` (`CONTRACTUAL`, `DRAFT`, `NON_CONTRACTUAL_SAMPLE`), `source_type`, `source_identifier`, `source_findings_count`, and `findings_integrity_hash`.
64
+ - Canonical run chronology: established `max(canonical run timestamp)` latest-run selection with deterministic secondary key tie-breaking (`getCanonicalRunTimestamp`, `sortRunCandidatesChronologically`) across run package manifests (`manifest.json`), ISO timestamp prefixes, and findings file metadata, replacing raw directory string sorting.
65
+ - Unambiguous minor-unit commercial currency arithmetic: established internal integer minor units (cents, exponent 2, currency `USD`) as source of truth (`commercial_total_fee_minor`, `milestones[].fee_minor`, `commercial_terms.total_fixed_fee_minor`) via `parseCommercialBudget`, distributing remainder pennies deterministically without fractional cents or commercial leaks, rejecting negative/sub-cent budgets, and formatting major-unit USD (`fee_usd`) at presentation boundaries.
66
+ - Added runtime cross-object invariants validation (`validateSowInvariants`): enforces fee balancing across minor and major units, currency compliance, work package and deliverable parity, and non-empty evidence links before artifact export.
67
+ - Hardened SOW Schema Contract (`schemas/sow.schema.json`):
68
+ - Enforced strict types, non-empty collections, and `additionalProperties: false` across all SOW pillars and sub-objects.
69
+ - Mandated `currency`, `currency_minor_unit_exponent`, `commercial_total_fee_minor`, `fee_minor`, `generation_mode`, `generation_provenance`, and `evidence_ids` in contractual requirements.
70
+ - Hardened CLI & Exporters (`src/commands/sowCmd.js`):
71
+ - Added CLI options: `--sample`, `--demo`, `--draft`, `--live`, `--run`, `--scope`, `--in-scope`, `--budget-minor`, and `--min-ice`.
72
+ - Enforced schema validation gate in `exportSow`, rejecting any artifact that violates `schemas/sow.schema.json`.
73
+
74
+ ### Added — Command Contracts & Claude Agent Profiles
75
+
76
+ - Added Command Contracts:
77
+ - `skill/commands/sow.md`: SOW generation, 7-gate scope admissibility table, standardized refusal codes, and 7-column evidence traceability matrix.
78
+ - `skill/commands/remediation.md`: Closed-loop code remediation, AST patch validation, confidence thresholds, and delivery kit exporter.
79
+ - `skill/commands/reporting.md`: Expanded with contracts for Enterprise Search Intelligence (`citable report search`) and Enterprise CRO (`citable report cro`).
80
+ - `skill/commands/README.md`: Matrix updated with all 13 newly implemented commands.
81
+ - Added Managed Claude Agent Profiles:
82
+ - `skill/agents/citable-remediator.md`: Closed-loop code remediation specialist with AST safety validation.
83
+ - `skill/agents/citable-sow-architect.md`: Enterprise SOW and governance architect enforcing admissibility and traceability invariants.
84
+ - Updated Canonical Skill & Multi-Provider Distribution:
85
+ - `skill/SKILL.md`: Added Enterprise SOW & governance protocol section (findings → admissibility → traceability → contract).
86
+ - Rebuilt distributions across 12 agent harnesses (106 packaged files per provider, 4 managed Claude agent profiles).
87
+
18
88
  ## 1.18.0 — 2026-09-09
19
89
 
20
90
  ### Added — Enterprise Search, CRO Intelligence & SOW Governance
@@ -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.18.0
10
+ version: 1.18.2
11
11
  ---
12
12
 
13
13
  # Citable — evidence and change control for search and AI citation readiness
@@ -259,6 +259,27 @@ The CRO suite completes the loop. Rules that govern every step:
259
259
  payload in the `citable_output_schema` 1.0 envelope
260
260
  (`schemas/cli-output-envelope.schema.json`).
261
261
 
262
+ ## Enterprise SOW & governance protocol (findings → admissibility → traceability → contract)
263
+
264
+ The SOW engine (`citable sow generate`, `citable sow validate`) translates verified audit findings into legally enforceable enterprise Statements of Work:
265
+
266
+ 1. **Authoritative Evidence Gating**: A contractual SOW requires verified audit findings from `--run <id>` or a live target. Never invent or synthesize findings in `CONTRACTUAL` or `DRAFT` modes; missing findings fail closed (`NoFindingsError`). Synthetic baseline findings are strictly confined to `--sample` / `--demo`.
267
+ 2. **Scope Admissibility Filter**: Audit findings do not automatically become contractual obligations. Every candidate finding must pass 7 objective gates:
268
+ - *Exclusion Gate*: No explicitly blacklisted detectors (`REFUSE-EXCLUDED`).
269
+ - *Discipline Authorization*: Finding discipline must be authorized in engagement terms (`REFUSE-DISCIPLINE-NOT-AUTHORIZED`).
270
+ - *Evidence Maturity*: Deterministic/observed confidence with real evidence (`REFUSE-EXPERIMENTAL`, `REFUSE-NO-EVIDENCE`).
271
+ - *Scope Boundary*: URL matches contracted origins, hosts, or paths (`REFUSE-OUT-OF-SCOPE`).
272
+ - *Technical Feasibility*: Reject legal, trademark, GDPR, or unfeasible remediation (`REFUSE-UNFEASIBLE-REMEDIATION`).
273
+ - *Commercial Materiality*: High severity or ICE score >= min threshold (`REFUSE-LOW-MATERIALITY`).
274
+ - *Measurable Acceptance*: Automated verification rerun detector or test (`REFUSE-UNVERIFIABLE`).
275
+ - *Ownership Clarity*: Resolvable accountable delivery owner (`REFUSE-OWNER-UNRESOLVED`).
276
+ All refused findings are logged in `admissibility_gate.refusal_log`. Never force a refused item into scope.
277
+ 3. **The 7-Column Traceability Matrix**: Every admitted requirement must strictly link:
278
+ `Finding ID → Recommendation → SOW Req ID → Deliverable ID → Acceptance Test ID → Responsible Owner → Source Evidence IDs`.
279
+ 4. **Commercial Integer Minor-Unit Arithmetic**: Milestone fee calculations are performed strictly in integer minor units (cents, exponent 2, currency `USD`) via `parseCommercialBudget` and `allocateMilestoneFees`. Remainder pennies are distributed deterministically across initial milestones. Fractional sub-cents (`100.001`) and negative budgets are rejected. Milestone fees and total fees must balance to the exact integer cent.
280
+ 5. **No Outcome Guarantees**: Fees are tied exclusively to verified deliverable acceptance and closed-loop test execution. Ranking, citation presence, and conversion revenue guarantees are strictly disclaimed.
281
+ 6. **Schema Validation Gate**: Exported SOW artifacts must validate against `schemas/sow.schema.json` with `additionalProperties: false`.
282
+
262
283
  ## Command workflows
263
284
 
264
285
  Detailed per-command workflows live in `commands/`. Follow them; they define
@@ -1 +1 @@
1
- 1.18.0
1
+ 1.18.2
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: citable-remediator
3
+ description: Execute closed-loop code remediation, AST patch validation, detector rerun verification, and customer delivery kit generation. Not for unreviewed direct file writes, semantic copy generation, or outcome promises.
4
+ tools:
5
+ - Read
6
+ - Glob
7
+ - Grep
8
+ - Bash
9
+ model: inherit
10
+ maxTurns: 25
11
+ skills:
12
+ - citable
13
+ ---
14
+
15
+ You are Citable's closed-loop remediation specialist. Your responsibility is to take verified audit findings, apply safe, idempotent AST patches, verify that target detectors are resolved with zero regressions, and generate customer implementation packages.
16
+
17
+ ## Authority boundary
18
+
19
+ - You may run `citable remediate`, `citable verify remediation`, `citable kit export`, and `citable lint components`.
20
+ - Never edit target source files using ad-hoc text manipulation or unvalidated shell scripts. All code mutations must flow through `citable remediate` with AST validation.
21
+ - Refuse automated writes on semantic copy or editorial content (CRO-012, COMP-003); microcopy decisions belong to human editors (fact ≠ inference).
22
+ - Always verify that a rollback snapshot exists under `.citable/remediation/snapshots/` before writing to disk.
23
+ - Never claim a finding is fixed until `citable verify remediation` confirms the source detector no longer flags the target surface.
24
+ - Never promise ranking gains, AI citation rates, or conversion lift.
25
+
26
+ ## Workflow
27
+
28
+ 1. **Finding Triage**: Identify the finding ID, source run, and target file. Inspect the finding's observation and remediation recommendation.
29
+ 2. **Dry-Run Inspection**: Execute `citable remediate --finding <id> [--target <file>]` (dry-run by default) to inspect the unified diff, framework classification, and confidence score.
30
+ 3. **Confidence Gate**: If `computeConfidence` is below `0.70`, or if the patch involves editorial copy, report `patch_refused` with required human inputs.
31
+ 4. **Gated Write**: If confidence is sufficient and structural validation passes, run `citable remediate --finding <id> --write`.
32
+ 5. **Closed-Loop Verification**: Run `citable verify remediation --run <run-id> --finding <id> [--target <file>]` to re-execute the source detector against the patched file and check for regressions.
33
+ 6. **Delivery Kit Export**: If verified, run `citable kit export --run <run-id> --finding <id>` to generate an engineer-ready delivery kit with tests, diffs, and rollback instructions.
34
+
35
+ ## Return contract
36
+
37
+ Report:
38
+ 1. Target finding ID, file path, and detected framework;
39
+ 2. Unified diff and structural AST validation verdict;
40
+ 3. Rollback snapshot path and integrity hash;
41
+ 4. Closed-loop verification verdict (`verified`, `not_resolved`, `blocked`, or `patch_refused`);
42
+ 5. Regression sweep results (verifying zero new critical/high defects);
43
+ 6. Delivery kit path and customer acceptance criteria.
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: citable-sow-architect
3
+ description: Generate contractually enforceable Statements of Work, evaluate Scope Admissibility Gates, enforce 7-column evidence traceability, and compile enterprise search/CRO intelligence briefings. Not for fabricated findings, unevidenced scope, or commercial guarantees.
4
+ tools:
5
+ - Read
6
+ - Glob
7
+ - Grep
8
+ - Bash
9
+ model: inherit
10
+ maxTurns: 25
11
+ skills:
12
+ - citable
13
+ ---
14
+
15
+ You are Citable's enterprise engagement and SOW architect. Your responsibility is to transform empirical audit findings into contractually enforceable, evidence-traceable Statements of Work (SOWs) and split executive intelligence briefings.
16
+
17
+ ## Authority boundary
18
+
19
+ - You may run `citable sow generate`, `citable sow validate`, `citable report search`, `citable report cro`, and read audit runs.
20
+ - Never synthesize or hallucinate findings in `CONTRACTUAL` mode. If audit evidence is missing, fail closed and report `NO_FINDINGS`. Synthetic findings are strictly confined to `--sample` / `--demo`.
21
+ - Never force an unqualified finding through the Admissibility Gate. Refused findings must be preserved in `admissibility_gate.refusal_log` with standard refusal codes.
22
+ - Enforce integer minor-unit arithmetic (cents, exponent 2, currency `USD`) for all fees. Never allow fractional pennies or budget drift across milestones.
23
+ - Strictly uphold Citable governance principles: **no search engine crawling, indexation, ranking, AI answer citation, or conversion revenue is guaranteed**. Fees are bound exclusively to verified deliverable acceptance.
24
+
25
+ ## Workflow
26
+
27
+ 1. **Source Evidence Resolution**: Determine the authoritative evidence source: explicit run (`--run <id>`), live scan (`--target <url>`), or sample demonstration (`--sample`). Explicit `--run` takes precedence.
28
+ 2. **Admissibility Gating**: Evaluate findings through the 7 admissibility gates (maturity, boundary, feasibility, materiality, acceptance, ownership, discipline). Record refused items in the contractual refusal log.
29
+ 3. **Traceability Binding**: Construct the 7-column matrix ensuring every requirement links: Finding ID → Recommendation → SOW Requirement ID → Deliverable ID → Acceptance Test ID → Owner → Source Evidence.
30
+ 4. **Commercial Minor-Unit Calculation**: Allocate milestone fees using integer minor units (`commercial_total_fee_minor`) with deterministic penny remainder distribution.
31
+ 5. **Contractual Export**: Generate SOW artifacts in Markdown, HTML, or JSON (`citable sow generate`).
32
+ 6. **Integrity Validation**: Run `citable sow validate <sow.json>` to verify strict schema conformance against `schemas/sow.schema.json` and cross-object runtime invariants.
33
+ 7. **Companion Briefings**: If executive reporting is requested, generate the companion 19-pillar Search Intelligence Briefing (`citable report search`) or 25-pillar CRO Briefing (`citable report cro`).
34
+
35
+ ## Return contract
36
+
37
+ Report:
38
+ 1. SOW ID, generation mode (`CONTRACTUAL`, `DRAFT`, `NON_CONTRACTUAL_SAMPLE`), and generator provenance;
39
+ 2. Commercial total value, currency (`USD`), minor units, and milestone fee schedule;
40
+ 3. Admissibility gate statistics: total findings, admitted count, refused count, and refusal codes;
41
+ 4. 7-column Traceability Matrix summary;
42
+ 5. Schema validation verdict against `schemas/sow.schema.json`;
43
+ 6. Output artifact paths (Markdown, HTML, JSON).
@@ -42,6 +42,19 @@ intent, not executability, so statuses are strict:
42
42
  | /citable validate-render | partially implemented by `observe render`; fixed Chromium profiles and schema-validated Chromium/Firefox/WebKit journeys are implemented, while reviewed semantic-impact detectors and reusable application-specific journey libraries remain |
43
43
  | /citable measure seo/aeo/geo, test-prompts, monitor-crawlers, monitor-contradictions | partially implemented by metric/observation imports, objective evaluation, Google/CrUX live APIs, custom citation adapters, and monitor comparisons |
44
44
  | `citable artifacts export/verify/import` | implemented — portable, versioned, checksum-bound run interchange without hosted-service authority |
45
+ | /citable sow generate / validate | implemented — 25-pillar SOW with 7-gate admissibility, 7-column traceability matrix, and integer minor-unit arithmetic (sow.md) |
46
+ | /citable report search / cro | implemented — split 19-pillar Search and 25-pillar CRO executive briefings with observation vs hypothesis vs causation taxonomy (reporting.md) |
47
+ | /citable sweep technical | implemented — static Core Web Vitals readiness analysis (LCP, INP, CLS) |
48
+ | /citable inspect eeat / inspect readiness | implemented — on-page 0-5 E-E-A-T rubric scoring and multi-answer-engine readiness (Perplexity, Copilot, ChatGPT) |
49
+ | /citable audit backlinks | implemented — off-page authority assessment, toxic TLD detection, and disavow generator |
50
+ | /citable prioritize matrix | implemented — Impact / Effort / Confidence (ICE) scoring matrix for findings |
51
+ | /citable roadmap strategic / cro roadmap | implemented — 30/90/180-day milestone implementation roadmaps |
52
+ | /citable cro / cro backlog | implemented — conversion path continuity, message match, cognitive friction, and falsifiable experiment backlog |
53
+ | /citable remediate / verify remediation / kit export | implemented — framework detection, idempotent AST patches, confidence gate, detector rerun verification, and customer delivery kits (remediation.md) |
54
+ | /citable check experiment | implemented — sample-ratio mismatch (SRM), early stopping, and statistical power guardrails |
55
+ | /citable test visual / preview cro | implemented — visual layout contract testing and accessibility-aware preview sandbox |
56
+ | /citable compatibility | implemented — pre-flight runtime, dependency, framework, and edge worker diagnostics |
57
+ | /citable corpus benchmark | implemented — golden benchmark corpus evaluation with per-detector precision/recall gates |
45
58
 
46
59
  Shared refusal conditions (all commands): any action that would fabricate
47
60
  facts, citations, evidence, authorship, reviews, corroboration, or hidden
@@ -7,6 +7,7 @@ external workspaces without changing its canonical bytes.
7
7
  citable artifacts export <run-id> --output <directory>
8
8
  citable artifacts verify --input <directory>
9
9
  citable artifacts import --input <directory>
10
+ citable artifacts verify-customer <file>
10
11
  ```
11
12
 
12
13
  An export contains the original run package plus
@@ -26,3 +27,7 @@ was authentic, that external observations were representative or complete, or
26
27
  that an intervention caused an outcome. Hosted tenancy, authentication,
27
28
  storage, retention, billing, scheduling, and dashboards are outside this
28
29
  contract.
30
+
31
+ Use `citable artifacts verify-customer <file>` to validate customer deliverables
32
+ (SOW, Search, and CRO JSON reports) against their JSON Schemas, verify arithmetic
33
+ consistency (e.g. minor-unit fee totals), and reject unescaped script or event handler injections.
@@ -0,0 +1,55 @@
1
+ ---
2
+ command: /citable remediate --finding <id> [--target <file>] [--write]
3
+ purpose: Apply safe, validated AST code patches for deterministic defects with automated rollback snapshots, structural syntax validation, and confidence gating.
4
+ preconditions: [valid finding from audit run; target source file identified and writeable]
5
+ failure_behaviour: unknown framework -> fail closed; invalid syntax after patch -> rollback and refuse; confidence < 0.7 -> refuse write; semantic microcopy changes -> always refuse automated write (human editorial decision required)
6
+ artifacts_created: [.citable/remediation/snapshots/<snapshot-id>/, unified diff on stdout]
7
+ ---
8
+
9
+ # Closed-Loop Code Remediation & Verification
10
+
11
+ The remediation suite provides safe, gated code fixes for deterministic technical, schema, and CRO defects discovered during audits. It bridges the gap between audit findings and customer-verified pull requests.
12
+
13
+ ## 1. Safe Patch Application (`citable remediate`)
14
+
15
+ 1. **Framework Detection**: Identifies target source syntax (`jsx`, `tsx`, `vue`, `svelte`, `html`). Fails closed on unknown or ambiguous frameworks.
16
+ 2. **Idempotent AST Patching**: Patches are mathematically verified to be idempotent (`applyPatchDetailed`): applying the patch a second time produces an identical AST (a fixed point).
17
+ 3. **Structural Validation Gate**: Runs `validatePatchedSource` to confirm that the patch does not break AST structure, introduce syntax errors, or alter unrelated code blocks.
18
+ 4. **Confidence Threshold**: Computes an explicit multi-factor confidence score (`computeConfidence`). `--write` is refused if confidence falls below `0.70`.
19
+ 5. **Editorial Boundary (Semantic Microcopy Refusal)**: Automated `--write` is strictly refused for semantic copy, CTA wording, or headline changes (e.g. `CRO-012`, `COMP-003`). Microcopy is a human editorial and brand judgment (fact ≠ inference).
20
+ 6. **Rollback Snapshot**: Every `--write` automatically snapshots the target file under `.citable/remediation/snapshots/<timestamp>/` with a SHA-256 manifest before making any disk modifications.
21
+
22
+ ## 2. Closed-Loop Verification (`citable verify remediation`)
23
+
24
+ Running a patch is NOT proof that a defect is resolved:
25
+
26
+ ```bash
27
+ citable verify remediation --run <run-id> --finding <id> [--target <file>] [--apply]
28
+ ```
29
+
30
+ 1. **Deterministic Detector Rerun**: Re-executes the exact source detector (`detector_to_rerun`) against the patched target.
31
+ 2. **Regression Sweep**: Sweeps for newly introduced critical or high severity defects compared to the baseline run.
32
+ 3. **Verification Envelopes**: Emits a checksum-bound before/after verification envelope conforming to `schemas/remediation-verification.schema.json`.
33
+ 4. **Verdict Classification**:
34
+ * `verified`: Target detector no longer reports the defect; zero regressions introduced.
35
+ * `not_resolved`: Target detector still detects the condition on the patched surface.
36
+ * `blocked`: Prerequisite dependencies, build tools, or environments unavailable.
37
+ * `patch_refused`: Confidence below threshold, semantic copy gated, or syntax check failed.
38
+ 5. **Outcome Boundary**: Resolution means the detector no longer flags the subject — **it is never an outcome guarantee of rankings, AI citations, or conversion lift**.
39
+
40
+ ## 3. Customer Implementation Kits (`citable kit export`)
41
+
42
+ Produce an engineer-ready delivery kit for customer development teams:
43
+
44
+ ```bash
45
+ citable kit export --run <run-id> --finding <id> [--target <file>]
46
+ ```
47
+
48
+ Creates a self-contained directory containing:
49
+ * Verbatim finding with evidence lineage.
50
+ * Exact unified diff for code review.
51
+ * Reusable Nebula design system component template (React / Vue / HTML).
52
+ * Rendering-evidence manifest (real captured DOM/visual state; synthetic evidence forbidden).
53
+ * Acceptance test criteria and re-audit verification script.
54
+ * Deployment and rollback instructions.
55
+ * Explicit technical limitations and non-guarantee disclosures.
@@ -71,3 +71,31 @@ any observed change to a specific intervention.
71
71
  authoritative index guarantees. Divergences are reported as factual observations,
72
72
  never fabricated or interpolated.
73
73
 
74
+ # Enterprise Search Intelligence Briefing (`citable report search`)
75
+
76
+ 1. Run `citable report search [--target <dir|url>] [--run <id>] [--format md|html|json] [--output <file>]`
77
+ to generate the 19-pillar Executive Search Intelligence Briefing.
78
+ 2. Synthesizes technical crawlability, indexation, Core Web Vitals readiness,
79
+ AEO answer-extractability, GEO citation frequency, knowledge graph schema
80
+ architecture, and competitor SERP landscape into an executive document.
81
+ 3. Every recommendation binds to a verified finding in the Evidence Register.
82
+ 4. Facts and inferences are strictly segregated: deterministic observations are
83
+ reported in green data panels; strategic hypotheses and inferences are explicitly
84
+ labeled with confidence ratings.
85
+ 5. Refusal boundary: Never promises rankings, algorithmic immunity, or indexing
86
+ guarantees.
87
+
88
+ # Enterprise CRO & Customer Journey Briefing (`citable report cro`)
89
+
90
+ 1. Run `citable report cro [--target <dir|url>] [--input <file>] [--format md|html|json] [--output <file>]`
91
+ to generate the 25-pillar Executive Conversion & Customer Journey Briefing.
92
+ 2. Covers end-to-end conversion paths: above-the-fold clarity, message-match
93
+ scoring, cognitive load, checkout friction, trust and objection analysis, offer
94
+ architecture, and prioritized A/B experiment blueprints.
95
+ 3. Strictly adheres to the **Observation vs Hypothesis vs Causation** taxonomy:
96
+ - **Observations**: Verbatim DOM defects (e.g. missing autocomplete, undersized touch targets).
97
+ - **Hypotheses**: Falsifiable experiment statements with measurable primary metrics and guardrails.
98
+ - **Causation**: Statistical lift attribution requiring concluded, SRM-clean A/B experiments.
99
+ 4. Refusal boundary: Revenue lift, conversion percentage improvements, and visual
100
+ saliency scores are modeled heuristic indices, never observed behavior or guaranteed revenue.
101
+
@@ -0,0 +1,95 @@
1
+ ---
2
+ command: /citable sow generate [--target <dir|url>] [--run <id>] [--budget <amount>] [--budget-minor <cents>] [--format md|html|json] [--output <path>] [--sample] [--draft]
3
+ purpose: Generate a contractually binding, evidence-traceable enterprise Statement of Work (SOW) from verified audit findings through a formal 8-gate scope admissibility filter and 7-column traceability matrix.
4
+ preconditions: [at least one finalized audit run with verified findings or live target; sample mode required for synthetic demonstrations]
5
+ failure_behaviour: absent or unverified findings in contractual mode -> NoFindingsError; all findings refused -> NoAdmissibleRequirementsError; non-existent run -> RunNotFoundError; negative or sub-cent budget -> BudgetCalculationError; invariant drift -> SowInvariantError
6
+ artifacts_created: [SOW.md, SOW.html, or SOW.json at specified output path]
7
+ ---
8
+
9
+ # Enterprise Statement of Work (SOW) Contract
10
+
11
+ The `citable sow` command generates enterprise-grade, evidence-backed Statements of Work derived from verified technical SEO, AEO, GEO, schema, and CRO audit findings. It establishes rigid, downward traceability:
12
+
13
+ ```text
14
+ Evidence (observation envelope)
15
+
16
+ Observation (deterministic DOM / HTTP probe)
17
+
18
+ Finding (verified defect / friction)
19
+
20
+ Recommendation (governed remediation)
21
+
22
+ SOW Requirement (contractual scope)
23
+
24
+ Deliverable (code patch / AST modification)
25
+
26
+ Acceptance Test (automated closed-loop detector rerun)
27
+ ```
28
+
29
+ ## 1. Operating Premises & Commercial Disclaimers
30
+
31
+ 1. **Fee Binding**: Supplier fees are bound exclusively to verified deliverable acceptance and closed-loop test execution.
32
+ 2. **Strict Outcome Disclaimers**: In strict compliance with Citable governance principles, **no search engine crawling, indexation, ranking, AI answer citation, or conversion revenue is guaranteed**.
33
+ 3. **No Synthetic Data in Contracts**: Attempting to generate a `CONTRACTUAL` SOW without verified empirical findings immediately fails closed with `NoFindingsError`. Synthetic findings are strictly confined to `--sample` / `--demo`.
34
+
35
+ ## 2. The Scope Admissibility Gate
36
+
37
+ Audit findings do NOT automatically become contractual obligations. Every candidate finding must pass 8 admissibility gates:
38
+
39
+ | Gate | Verification Check | Failure Refusal Code | Contractual Handling |
40
+ | :--- | :--- | :--- | :--- |
41
+ | **1. Exclusion Gate** | Check against explicit excluded detectors list | `REFUSE-EXCLUDED` | Track in internal backlog; execute under separate advisory engagement. |
42
+ | **2. Discipline Authorization** | Check if discipline is authorized under contract | `REFUSE-DISCIPLINE-NOT-AUTHORIZED` | Expand authorized disciplines in SOW engagement terms or contract under separate SOW. |
43
+ | **3. Evidence Maturity** | Require deterministic/observed confidence & evidence | `REFUSE-EXPERIMENTAL` / `REFUSE-NO-EVIDENCE` | Run controlled observation probes before considering for contractual obligation. |
44
+ | **4. Scope Boundary** | Verify URL matches authorized host, subdomain, or path | `REFUSE-OUT-OF-SCOPE` | Escalate domain ownership verification or expand contractual executive scope. |
45
+ | **5. Feasibility Gate** | Reject legal, trademark, GDPR, or unfeasible remediation | `REFUSE-UNFEASIBLE-REMEDIATION` | Refer to specialized legal or compliance counsel outside scope. |
46
+ | **6. Materiality Gate** | Require critical/high severity or ICE score >= threshold | `REFUSE-LOW-MATERIALITY` | Log to internal product maintenance backlog; omit from high-value SOW. |
47
+ | **7. Acceptance Gate** | Require automated rerun detector or objective pass/fail test | `REFUSE-UNVERIFIABLE` | Define deterministic verification criteria before adding to scope. |
48
+ | **8. Ownership Clarity** | Resolve accountable owner from finding or role mappings | `REFUSE-OWNER-UNRESOLVED` | Specify delivery_owner on finding or map discipline to accountable role. |
49
+
50
+ All refused findings are recorded in the SOW's `admissibility_gate.refusal_log` with standard refusal codes and contractual handling guidance.
51
+
52
+ ## 3. The 7-Column Traceability Matrix
53
+
54
+ Every admitted requirement must satisfy complete 7-column bidirectional traceability:
55
+
56
+ 1. **Finding ID**: Verbatim identifier of the empirical defect (e.g. `F-TECH-001`).
57
+ 2. **Recommendation**: Governed, safe remediation instruction.
58
+ 3. **SOW Requirement ID**: Contractual clause identifier (`REQ-SOW-001`).
59
+ 4. **Deliverable ID**: Accountable work package deliverable (`DELIV-01`).
60
+ 5. **Acceptance Test ID**: Automated closed-loop test (`ACC-TEST-001`).
61
+ 6. **Responsible Owner**: Named lead dev, architect, or agency practice owner.
62
+ 7. **Source Evidence IDs**: Array of cryptographic observation IDs (`['EVD-CWV-001']`).
63
+
64
+ ## 4. Commercial Currency & Minor-Unit Semantics
65
+
66
+ To eliminate commercial fee drift and rounding leaks, all internal calculations use exact **integer minor units (cents, exponent 2, currency `USD`)**:
67
+
68
+ * `currency`: Declared as `USD`.
69
+ * `currency_minor_unit_exponent`: Declared as `2`.
70
+ * `commercial_total_fee_minor`: Integer cents (e.g. `$50,000.00` = `5000000` cents).
71
+ * `milestones[].fee_minor`: Integer floor allocation across milestones with remainder pennies distributed deterministically to initial milestones.
72
+ * `commercial_total_fee_usd` / `milestones[].fee_usd`: Derived dollar representation formatted at presentation boundaries (`$33.34`, `$50,000`).
73
+ * Sub-cent fractional budgets (`100.001`) and negative budgets are strictly rejected.
74
+
75
+ ## 5. Generation Modes & Machine-Readable Provenance
76
+
77
+ Every generated SOW embeds an immutable `generation_provenance` block:
78
+
79
+ * **`CONTRACTUAL`**: Generated from verified historical run findings or live target; synthetic evidence forbidden.
80
+ * **`DRAFT`**: Generated with preliminary scope or unfinalized commercial terms; requires executive sign-off.
81
+ * **`NON_CONTRACTUAL_SAMPLE`**: Generated with synthetic baseline findings strictly for evaluation/demo (`--sample`).
82
+
83
+ Provenance tracks:
84
+ * `generator_version`: Exact Citable semver.
85
+ * `generated_at`: ISO 8601 timestamp.
86
+ * `source_type`: `HISTORICAL_RUN`, `LIVE_INSPECTION`, `DIRECT_FINDINGS`, or `SAMPLE_BASELINE`.
87
+ * `source_identifier`: Target URL, run ID, or sample identifier.
88
+ * `source_findings_count`: Integer count of evaluated findings.
89
+ * `findings_integrity_hash`: SHA-256 hash of input findings.
90
+
91
+ ## 6. SOW Verification Command
92
+
93
+ Run `citable sow validate <sow.json>` to verify:
94
+ 1. Strict schema compliance against `schemas/sow.schema.json` (`additionalProperties: false`).
95
+ 2. Cross-object invariants via `validateSowInvariants` (fee balancing, work package and deliverable parity, non-empty evidence links).
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "citable",
3
- "version": "1.18.0",
3
+ "version": "1.18.2",
4
4
  "managedBy": "citable-cli",
5
5
  "provider": "codex",
6
6
  "providerName": "OpenAI Codex",
7
7
  "scope": "bundle",
8
- "sourcePackage": "@nebulacomponents/citable@1.18.0",
8
+ "sourcePackage": "@nebulacomponents/citable@1.18.2",
9
9
  "variantPath": ".agents/skills/citable",
10
10
  "agentProfiles": {
11
11
  "status": "unsupported",
@@ -13,9 +13,11 @@
13
13
  },
14
14
  "files": {
15
15
  "agents/citable-auditor.md": "sha256:06fe8d84834b2c09b7e7083aa6f57e94e837e0643dbe4ead4bbecf651fb41cad",
16
+ "agents/citable-remediator.md": "sha256:c990e929f411fc2f2de3aca759333502c956e96924b3a0f809ab0927062623dc",
16
17
  "agents/citable-semantic-reviewer.md": "sha256:77582263a048ea41ae3f7ee326dbd036222fab81ed83bda98034ec83ee21ef2e",
18
+ "agents/citable-sow-architect.md": "sha256:d55cf8bc2ab8f364c0d95ec39fc44406684110d1e4d1ff2e34702ded003094b4",
17
19
  "commands/action-findings.md": "sha256:b1d5c4d8d8b1092bc73b99430bea0a2e460031658e42bed33eb94da9a3c0e48f",
18
- "commands/artifact-interchange.md": "sha256:18d56fbfa6bb3f23f08593a9a8135e51c268618b049e53c793969b68000875c3",
20
+ "commands/artifact-interchange.md": "sha256:300062880e141b80ce23024c0a9b309e93a1e2aeb87e22a68860d27388a3acb7",
19
21
  "commands/delivery.md": "sha256:3b29250f9e9f84442812e320a70d5d2784b4286e91af3866f99cb6062a85a10f",
20
22
  "commands/field-validation.md": "sha256:4f24b2758eef746d704b218364f1e45ee9e07418c8ae111081b1fd41f93dde2d",
21
23
  "commands/governance.md": "sha256:41792a2a08930c604cc7b635c23fb3cbdeebc5af610ef38c795f1a412c4a0816",
@@ -26,9 +28,11 @@
26
28
  "commands/optimize-page.md": "sha256:35866f3d7cdeef0376ea7a7d7036085a9b9cf95bbb300ecf4bd77610ebd74d85",
27
29
  "commands/page-work.md": "sha256:965a66e59bdf7b0da482d26fade53b3d265885ece5d463fe83b0789ebefaef3e",
28
30
  "commands/plan-audit.md": "sha256:69875c9654e13b84566dafb16afe5afe08cffb9f3bded1f2d8d2261ae871c869",
29
- "commands/README.md": "sha256:9c25573c8af30a8cf02f450f5f3812769aca01ebb422d600e830e78955f18c4a",
30
- "commands/reporting.md": "sha256:ae89f8620acfef645d52bfe715efa332fdb8f464d890e45240ea341b24adb985",
31
+ "commands/README.md": "sha256:683b226020582dd93e24a2fb59ce6264735f44eb26353f977153034a615f871c",
32
+ "commands/remediation.md": "sha256:f2a90608079d823b8192aa7acad8a60c923ac02b4e01e5ca653f45e9f52c7998",
33
+ "commands/reporting.md": "sha256:f560f3c8349fcdaf6d3c3a27968016e20ef42ef2473292f7b83260cfb4b3b2e6",
31
34
  "commands/reviews.md": "sha256:902904aaa405fe5724cf0662c7a5a36eab9a4fe0eb81cbd95ffa2fff946e0ac8",
35
+ "commands/sow.md": "sha256:caf4b7e4b9f0e801fbc86f40e6efb8a057d1243dc488b0bc629b8fb2b90c6933",
32
36
  "commands/validate-render.md": "sha256:a8e1d04d40b84d57c35039250d98c6a7302cd44a148a8c3b9d9cfb92678c4347",
33
37
  "policies/crawler-policy-template.md": "sha256:15c88a4eeb21f53f71e5250dd3eb2d2791a814b304eaefce8bb30e2bdf2e2e59",
34
38
  "references/aeo-geo-validation.md": "sha256:4b0041764f2fdbfbff1e1a2907eaed02cf0aef491254a9c98ec9250ff1084e80",
@@ -67,6 +71,7 @@
67
71
  "schemas/corroboration-import.schema.json": "sha256:927983d0590f1ec569e86195d2031be0cd212f9436ff98acca468cbae108d85e",
68
72
  "schemas/crawler-identity.schema.json": "sha256:e1e3e6da203a8bc49fba8f9bbde525368891db022d542fc615b677401825351d",
69
73
  "schemas/crawler.schema.json": "sha256:1a113dfb80bc6cde904c3ea648c82ea1d88fe50f2c1a0e7175d44abba28ac64e",
74
+ "schemas/cro-report.schema.json": "sha256:270cfe946d3dce007672c5fd5e052f07e3322c85a2bfcc0cd47f34ce569f2fb1",
70
75
  "schemas/customer-outcome.schema.json": "sha256:c0cdfee31a692feadb31dc6be734d45ae178ee53f28349c2a9e7504bdfcf9e50",
71
76
  "schemas/decision.schema.json": "sha256:7c30f3ad83a6aa0b67ecc51ac6691e5e041b633d01bab17cee2b5218d926204e",
72
77
  "schemas/deployment-receipt.schema.json": "sha256:789455907e7f3039fd55ee5b2568e09871128f513f5ddfe1f3afac1a4dd6b2bd",
@@ -107,13 +112,14 @@
107
112
  "schemas/sampling-plan.schema.json": "sha256:005f70f149baaacd7de698548d556d3e401c630978748271b0e14a74726dd413",
108
113
  "schemas/scenario.schema.json": "sha256:3f5bc2032d08f973600db068f475176a0e4706b33be42f99c778fe755a0ff38b",
109
114
  "schemas/schedule.schema.json": "sha256:645df065bf33577a960c0bf8bb97e141e9326840303569468dae8a553d468482",
115
+ "schemas/search-report.schema.json": "sha256:0ae2dad77cf3c6f2abac22a8180d66bde8ebd044ed6324a56329cd12a3c898f2",
110
116
  "schemas/source-identity-chain.schema.json": "sha256:a65d9c12eaed1bd6b637c66a2f9362c17287fdfcb454d8676fb611d2d28aa019",
111
- "schemas/sow.schema.json": "sha256:467b5f523773b4d459eeba33bf4b3445307be27058c590c0df49208956a0a2d2",
117
+ "schemas/sow.schema.json": "sha256:3a3fd6048a747a9bc0cfaea98920376b043616a33c953a9eb8b74d0ae32dded0",
112
118
  "schemas/variance.schema.json": "sha256:68389f64f0a3be13ff8951e8eefba9a5c31d0738325cb47e37c1a8435bea48f0",
113
119
  "scripts/README.md": "sha256:9eee4e8beb4579a183bd714c9dd24b83abd020753eada5caeffae004739d60b5",
114
- "SKILL.md": "sha256:fd34736c74771cf9375995f1e69ecd2ceda3a94042d80bb0efd6675b0a5ebc8f",
120
+ "SKILL.md": "sha256:a2c2ce3aced71fc2a66f2e46b4a9fcc10b65819dcef58176b2cefe674d6a941b",
115
121
  "templates/finding-review.md": "sha256:b270a83d3f015150aac80249ae9314979c0befea39ff92ec455f9a5aaa73404c",
116
- "VERSION": "sha256:04d659518a1793d5396007fcabdc9211a8c1db8406bf4e0fa8069171fdb06518"
122
+ "VERSION": "sha256:0a1b17e91d514c0c9e88520e6091e2d52a6faf8296892cad7355ff0723a42914"
117
123
  },
118
- "treeHash": "sha256:06dcedfde2429241e5714c6e5f0ddee25dc03c53435083a1c0cc3362abdcfdb3"
124
+ "treeHash": "sha256:2d4210d9dd26b7952f53964402abf06c8ae12ae43cb8ac5c568f070ab44b0001"
119
125
  }
@@ -0,0 +1,112 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "citable://schemas/cro-report.schema.json",
4
+ "title": "Enterprise CRO & Journey Intelligence Executive Report",
5
+ "type": "object",
6
+ "required": [
7
+ "fact_status",
8
+ "report_title",
9
+ "client_name",
10
+ "target_domain",
11
+ "generated_at",
12
+ "overall_conversion_readiness",
13
+ "pillars",
14
+ "evidence_register",
15
+ "decision_summary",
16
+ "generation_provenance"
17
+ ],
18
+ "properties": {
19
+ "$schema": { "type": "string" },
20
+ "fact_status": { "type": "string" },
21
+ "epistemic_status": { "type": "string" },
22
+ "report_title": { "type": "string" },
23
+ "client_name": { "type": "string" },
24
+ "target_domain": { "type": "string" },
25
+ "generated_at": { "type": "string" },
26
+ "overall_conversion_readiness": { "type": "number", "minimum": 0, "maximum": 100 },
27
+ "epistemological_framework": {
28
+ "type": "object",
29
+ "properties": {
30
+ "observation": { "type": "string" },
31
+ "hypothesis": { "type": "string" },
32
+ "causation": { "type": "string" },
33
+ "unknowns": { "type": "string" }
34
+ }
35
+ },
36
+ "pillars": {
37
+ "type": "object",
38
+ "required": [
39
+ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10",
40
+ "11", "12", "13", "14", "15", "16", "17", "18", "19", "20",
41
+ "21", "22", "23", "24", "25"
42
+ ],
43
+ "additionalProperties": false,
44
+ "patternProperties": {
45
+ "^[0-9]+$": {
46
+ "type": "object",
47
+ "required": ["name", "data"],
48
+ "properties": {
49
+ "name": { "type": "string" },
50
+ "data": {}
51
+ }
52
+ }
53
+ }
54
+ },
55
+ "evidence_register": {
56
+ "type": "array",
57
+ "items": {
58
+ "type": "object",
59
+ "required": ["evidence_id", "source", "methodology", "confidence_level"],
60
+ "properties": {
61
+ "evidence_id": { "type": "string", "pattern": "^EVD-CRO-[0-9]+$" },
62
+ "source": { "type": "string" },
63
+ "title": { "type": "string" },
64
+ "observation_date": { "type": "string" },
65
+ "methodology": { "type": "string" },
66
+ "confidence_level": { "type": "string" },
67
+ "data_snapshot": {}
68
+ }
69
+ }
70
+ },
71
+ "decision_summary": {
72
+ "type": "object",
73
+ "required": [
74
+ "observed_conversion_failures",
75
+ "evidence_supported_hypotheses",
76
+ "causal_findings",
77
+ "unresolved_unknowns",
78
+ "recommended_interventions"
79
+ ],
80
+ "properties": {
81
+ "observed_conversion_failures": { "type": "array", "items": { "type": "string" } },
82
+ "evidence_supported_hypotheses": { "type": "array", "items": { "type": "string" } },
83
+ "causal_findings": { "type": "array", "items": { "type": "string" } },
84
+ "unresolved_unknowns": { "type": "array", "items": { "type": "string" } },
85
+ "recommended_interventions": { "type": "array", "items": { "type": "string" } }
86
+ },
87
+ "additionalProperties": false
88
+ },
89
+ "generation_provenance": {
90
+ "type": "object",
91
+ "required": [
92
+ "generated_at",
93
+ "generator_version",
94
+ "generation_mode",
95
+ "source_type",
96
+ "synthetic_evidence"
97
+ ],
98
+ "properties": {
99
+ "generated_at": { "type": "string" },
100
+ "generator_version": { "type": "string" },
101
+ "generation_mode": { "type": "string", "enum": ["CONTRACTUAL", "DRAFT", "NON_CONTRACTUAL_SAMPLE"] },
102
+ "source_type": { "type": "string" },
103
+ "source_identifier": { "type": ["string", "null"] },
104
+ "source_findings_count": { "type": "integer", "minimum": 0 },
105
+ "integrity_hash": { "type": ["string", "null"] },
106
+ "synthetic_evidence": { "type": "boolean" }
107
+ },
108
+ "additionalProperties": false
109
+ }
110
+ },
111
+ "additionalProperties": false
112
+ }