schema_version: "1.0"
parity_id: aml-consolidation
sign_off_status: SIGNED_OFF
created: "2026-06-13"
created_by: "claude-sonnet-4-6 / cowork session"

# This parity record covers 4 guides consolidated into 1 chain.
# The aml-kyc-compliance-hub.html is a hub/directory page and is NOT in scope
# for deletion — it should be preserved as a navigation surface.

sources:
  - type: guide
    path: "repo/guides/aml-workflow.html"
    title: "AML Compliance Workflow"
    description: >
      Static 4-step guide: T110 → T116 → T121 → T131. No AIN Bridge.
      Multi-language (EN/ES). Covers customer risk rating, TM rules, SAR
      narrative, AP2 AML mandate. Accent: red (AML/risk theme).

  - type: guide
    path: "repo/guides/aml-programme-workflow.html"
    title: "AML Programme Build-Out · Live Workflow"
    description: >
      4-stage live workflow with iframes: T110 → T116 → T119 → T131.
      Uses T119 (CTR/SAR threshold) instead of T121 (SAR narrative).
      AP2 JSON export. Zero PII.

  - type: guide
    path: "repo/guides/aml-programme-composer.html"
    title: "AML Programme Composer"
    description: >
      4-stage AIN Bridge composer: T110 → T116 → T119 → T131.
      postMessage orchestration. Composite mandate export.

  - type: guide
    path: "repo/guides/amlr-single-rulebook-composer.html"
    title: "AMLR Single Rulebook Composer"
    description: >
      5-stage AIN Bridge composer for EU AMLR: T485 → T486 → T487 → T488 → T350.
      Obliged entity scope, UBO mapping, cash limit/EDD, CDD policy, readiness gap.
      Deadline: July 2027.

chaingraph_equivalent:
  type: chain
  path: "repo/chaingraph/chains/aml-consolidation.html"
  chain_id: "aml-consolidation"
  chaingraph_url: "https://ainumbers.co/chaingraph/chains/aml-consolidation.html"
  notes: >
    Branching chain. ART-10 (AMLA typology scorer) is the common ChainGraph root
    with §4 artifact. Branch A covers the core AML programme (T110→T116→T119→T121→T131),
    consolidating aml-workflow + aml-programme-workflow + aml-programme-composer.
    Branch B covers AMLR single rulebook (T485→T486→T487→T488→T350), consolidating
    amlr-single-rulebook-composer. The aml-kyc-compliance-hub.html is a hub page
    and is NOT part of this conversion — it should not be deleted.

parity_matrix:
  # aml-workflow.html coverage
  - feature: "aml-workflow: T110 customer risk rating step"
    source: true
    chaingraph: true
    notes: "Branch A step 1"

  - feature: "aml-workflow: T116 TM rule builder step"
    source: true
    chaingraph: true
    notes: "Branch A step 2"

  - feature: "aml-workflow: T121 SAR narrative generator step"
    source: true
    chaingraph: true
    notes: "Branch A step 4 (between T119 and T131)"

  - feature: "aml-workflow: T131 AP2 AML mandate builder (terminal)"
    source: true
    chaingraph: true
    notes: "Branch A terminal step"

  - feature: "aml-workflow: multi-language (EN/ES)"
    source: true
    chaingraph: false
    notes: >
      NOT reproduced in chain. ChainGraph chain pages are English only.
      Minor gap — chain covers all tool steps; users who need Spanish can
      access T110/T116/T121/T131 directly.

  # aml-programme-workflow.html / aml-programme-composer.html coverage
  - feature: "aml-programme-*: T119 CTR/SAR threshold simulator step"
    source: true
    chaingraph: true
    notes: "Branch A step 3 (before T121)"

  - feature: "aml-programme-*: AIN Bridge orchestration"
    source: true
    chaingraph: true
    notes: >
      Replaced by ART-10 §4 artifact chaining. Durable across sessions vs.
      single-session postMessage.

  - feature: "aml-programme-*: Composite mandate export"
    source: true
    chaingraph: true
    notes: "T131 terminal produces composite AP2 AML mandate"

  # amlr-single-rulebook-composer.html coverage
  - feature: "amlr-composer: T485 AMLR obliged entity scope mapper"
    source: true
    chaingraph: true
    notes: "Branch B step 1"

  - feature: "amlr-composer: T486 UBO/beneficial ownership mapper"
    source: true
    chaingraph: true
    notes: "Branch B step 2"

  - feature: "amlr-composer: T487 cash limit & EDD classifier"
    source: true
    chaingraph: true
    notes: "Branch B step 3"

  - feature: "amlr-composer: T488 CDD policy framework builder"
    source: true
    chaingraph: true
    notes: "Branch B step 4"

  - feature: "amlr-composer: T350 AMLR readiness gap analyser (terminal)"
    source: true
    chaingraph: true
    notes: "Branch B terminal step"

  - feature: "amlr-composer: EU AMLR July 2027 deadline callout"
    source: true
    chaingraph: true
    notes: "Deadline banner added to Branch B"

  # New in ChainGraph
  - feature: "ART-10 common root with §4 execution_hash"
    source: false
    chaingraph: true
    notes: "NEW — AMLA typology risk profile anchors both branches"

  - feature: "Branch A adds T119 before T121 (fuller CTR/SAR path)"
    source: false
    chaingraph: true
    notes: >
      NEW consolidation: aml-workflow used T121 only; aml-programme-* used T119 only.
      Chain includes both T119 → T121 for a fuller path.

  - feature: "URL hash branch routing (#branch-programme / #branch-amlr)"
    source: false
    chaingraph: true
    notes: "NEW — direct deep-linking to each branch"

  - feature: "Synthesis blocks per branch"
    source: false
    chaingraph: true
    notes: "NEW"

gaps_in_chaingraph:
  - id: "multi-language"
    description: >
      aml-workflow.html supports EN/ES. Chain page is English only.
    severity: "minor"
    workaround: "Users can access original tools in Spanish directly"

  - id: "saessonal-storage-ain-lang"
    description: >
      aml-programme-workflow.html and aml-programme-composer.html may write
      ain_lang to sessionStorage via AIN Bridge. Chain nodes do not. Minor
      functional difference — chain uses §4 artifact export instead.
    severity: "minor"
    workaround: "§4 JSON export is more durable than sessionStorage"

improvements_in_chaingraph:
  - "4 guides consolidated into 1 branching chain"
  - "ART-10 §4 artifact anchors both branches — adds verifiable typology risk baseline"
  - "Branch A completes the CTR/SAR path by including both T119 and T121"
  - "AMLR deadline banner prominent in Branch B"
  - "Session-persistent compliance record via §4 export"

not_in_scope:
  - "aml-kyc-compliance-hub.html is a 22-tool hub/directory page — NOT converted, NOT deleted"

deletion_gate:
  ready_to_delete_source: false
  blocking_reason: "Awaiting Tim sign-off on parity. Note: aml-kyc-compliance-hub.html must NOT be deleted."
  delete_command: >
    # Tim runs in PowerShell after sign-off (hub excluded):
    # Remove-Item C:\dev\Claude\Projects\AINumbers\repo\guides\aml-workflow.html
    # Remove-Item C:\dev\Claude\Projects\AINumbers\repo\guides\aml-programme-workflow.html
    # Remove-Item C:\dev\Claude\Projects\AINumbers\repo\guides\aml-programme-composer.html
    # Remove-Item C:\dev\Claude\Projects\AINumbers\repo\guides\amlr-single-rulebook-composer.html
    # git add -A; git commit -m "chore: delete 4 AML/AMLR guides — parity live at chains/aml-consolidation"
