{
  "db": "/home/agent/jarvis_runtime/finance-system/legacy_fk_repair/preflight-restored-copy-20260729T075746Z.sqlite3",
  "table_columns": {
    "broker_import_execution_plans": [
      "execution_plan_id",
      "dry_run_id",
      "review_item_id",
      "source_platform",
      "target_account_id",
      "target_instrument_id",
      "transaction_type",
      "snapshot_date",
      "payload_status",
      "payload_quality_flags_json",
      "source_row_hash",
      "planned_write_summary_json",
      "execution_status",
      "transaction_id",
      "created_at",
      "updated_at",
      "executed_at",
      "notes"
    ],
    "broker_import_review_items": [
      "review_item_id",
      "dry_run_id",
      "source_platform",
      "source_file_type",
      "source_row_ref",
      "row_hash",
      "source_label",
      "normalized_name",
      "detected_asset_class",
      "detected_currency",
      "detected_quantity_present",
      "detected_market_value_present",
      "isin",
      "ticker",
      "exchange",
      "mapped_instrument_id",
      "mapped_account_id",
      "quality_flags_json",
      "review_status",
      "reviewer_note",
      "created_at",
      "updated_at",
      "import_readiness_status",
      "reviewer_confirmed",
      "snapshot_date_confirmed",
      "ticker_exchange_confirmed",
      "account_mapping_status"
    ],
    "broker_import_dry_runs": [
      "dry_run_id",
      "source_name",
      "source_platform",
      "source_file_label",
      "source_file_type",
      "source_hash",
      "source_filename_hash",
      "detected_snapshot_date",
      "snapshot_date_status",
      "detected_sections_json",
      "field_coverage_json",
      "rows_total",
      "rows_position_candidates",
      "rows_cash_candidates",
      "candidate_positions",
      "candidate_cash_rows",
      "mapped_positions",
      "blocked_positions",
      "warnings_count",
      "errors_count",
      "quality_flags_json",
      "summary_json",
      "created_at",
      "notes",
      "session_status",
      "is_current",
      "archived_at",
      "discarded_at"
    ],
    "transactions": [
      "transaction_id",
      "transaction_type",
      "account_id",
      "instrument_id",
      "trade_date",
      "settlement_date",
      "quantity",
      "price_original",
      "gross_amount_original",
      "fee_original",
      "tax_original",
      "net_amount_original",
      "currency_original",
      "fx_rate_to_chf",
      "fx_source",
      "fx_status",
      "gross_amount_chf",
      "fee_chf",
      "tax_chf",
      "net_amount_chf",
      "source_type",
      "source_id",
      "external_transaction_id",
      "row_hash",
      "is_confirmed",
      "quality_status",
      "notes",
      "created_at",
      "updated_at",
      "is_voided",
      "voided_at",
      "void_reason",
      "voided_by",
      "correction_of_transaction_id",
      "correction_reason",
      "activity_kind",
      "booking_date",
      "event_timestamp",
      "base_currency",
      "internal_transfer_group_id",
      "reversal_of_transaction_id",
      "source_reference"
    ]
  },
  "rows": [
    {
      "evidence": {
        "plan": {
          "execution_plan_id": "plan-1c6136ca-852d-4467-ae87-4924ea2bd305",
          "dry_run_id": "2761d82c-b80f-44d2-8c5f-d969e01b9912",
          "review_item_id": "1c6136ca-852d-4467-ae87-4924ea2bd305",
          "source_platform": "True Wealth",
          "target_account_id": "true-wealth-review-brokerage",
          "target_instrument_id": "instrument-US9220428588",
          "transaction_type": "initial_position_snapshot",
          "snapshot_date": "2026-05-14",
          "payload_status": "ready",
          "payload_quality_flags_json": "[\"cost_basis_uncertain\", \"fx_missing\"]",
          "source_row_hash": "69b0d49e21558dff03555e0dd70509e800f81507a014215c18722548f809b63b",
          "planned_write_summary_json": "{\"account_id\": \"true-wealth-review-brokerage\", \"cost_basis_quality\": \"uncertain\", \"currency_original\": \"USD\", \"fx_rate_to_chf\": null, \"fx_status\": \"missing\", \"gross_amount_chf\": \"11476.56\", \"instrument_id\": \"instrument-US9220428588\", \"price_original\": \"59.94\", \"quantity\": \"245\", \"snapshot_date\": \"2026-05-14\", \"source_id\": \"1c6136ca-852d-4467-ae87-4924ea2bd305\", \"source_row_ref\": \"table1:row15\", \"source_type\": \"broker_import_reviewed_snapshot\", \"trade_date\": \"2026-05-14\", \"transaction_type\": \"initial_position_snapshot\"}",
          "execution_status": "imported",
          "transaction_id": "tx-e13645cf-1681-4ac8-b57d-981aad88098c",
          "created_at": "2026-05-15T10:20:15.960591+00:00",
          "updated_at": "2026-05-15T10:48:28.447099+00:00",
          "executed_at": "2026-05-15T10:48:28.447099+00:00",
          "notes": "B6c second controlled mini-import from reviewed True Wealth execution plan; no mass import."
        },
        "review": {
          "review_item_id": "1c6136ca-852d-4467-ae87-4924ea2bd305",
          "dry_run_id": "2761d82c-b80f-44d2-8c5f-d969e01b9912",
          "source_platform": "True Wealth",
          "source_file_type": "docx",
          "source_row_ref": "table1:row15",
          "row_hash": "4f1d78d6efbb8bf10ef8626c64ab009009ad753a5197e4931eeb83ba1faf4a88",
          "source_label": "Vanguard FTSE Emerging Markets ETF ISIN: US9220428588",
          "normalized_name": "vanguard ftse emerging markets etf isin us9220428588",
          "detected_asset_class": "etf",
          "detected_currency": "CHF",
          "detected_quantity_present": 1,
          "detected_market_value_present": 1,
          "isin": "US9220428588",
          "ticker": "VWO",
          "exchange": "NYSE ARCA",
          "mapped_instrument_id": "instrument-US9220428588",
          "mapped_account_id": "true-wealth-review-brokerage",
          "quality_flags_json": "[\"cost_basis_uncertain\", \"needs_manual_review\", \"snapshot_only\"]",
          "review_status": "imported",
          "reviewer_note": "B6c second controlled mini-import from reviewed True Wealth execution plan; no mass import.",
          "created_at": "2026-05-15T09:35:47.611310+00:00",
          "updated_at": "2026-05-15T10:48:28.447099+00:00",
          "import_readiness_status": "ready_for_import",
          "reviewer_confirmed": 1,
          "snapshot_date_confirmed": 1,
          "ticker_exchange_confirmed": 1,
          "account_mapping_status": "mapped"
        },
        "dry_run": {
          "dry_run_id": "2761d82c-b80f-44d2-8c5f-d969e01b9912",
          "source_name": "True Wealth",
          "source_platform": "True Wealth",
          "source_file_label": "[runtime-file-redacted]",
          "source_file_type": "docx",
          "source_hash": "6d55404a91397dc52b8162663c15de00172f9c806d3803db9114a3e970ec63a8",
          "source_filename_hash": "6d55404a91397dc52b8162663c15de00172f9c806d3803db9114a3e970ec63a8",
          "detected_snapshot_date": null,
          "snapshot_date_status": "missing",
          "detected_sections_json": "[\"table_1\"]",
          "field_coverage_json": "{}",
          "rows_total": 19,
          "rows_position_candidates": 17,
          "rows_cash_candidates": 1,
          "candidate_positions": 17,
          "candidate_cash_rows": 1,
          "mapped_positions": 0,
          "blocked_positions": 17,
          "warnings_count": 87,
          "errors_count": 0,
          "quality_flags_json": "{\"cost_basis_uncertain\": 17, \"missing_isin\": 17, \"missing_ticker\": 17, \"needs_manual_review\": 18, \"snapshot_only\": 18}",
          "summary_json": "{\"blocked_positions\": 17, \"candidate_cash_rows\": 1, \"candidate_positions\": 17, \"mapped_positions\": 0, \"rows_total\": 19, \"source_file_type\": \"docx\", \"source_platform\": \"True Wealth\"}",
          "created_at": "2026-05-15T09:35:47.610688+00:00",
          "notes": "dry-run summary only; no productive ledger writes",
          "session_status": "active",
          "is_current": 0,
          "archived_at": null,
          "discarded_at": null
        }
      },
      "candidate_field_names": [
        "plan.source_row_hash",
        "plan.transaction_id",
        "review.row_hash",
        "dry_run.source_hash"
      ],
      "exact_match_counts": {
        "plan_source_row_hash_to_transaction_row_hash": 0,
        "plan.source_row_hash->source_id": 0,
        "plan.source_row_hash->external_transaction_id": 0,
        "plan.source_row_hash->row_hash": 0,
        "plan.source_row_hash->transaction_id": 0,
        "plan.transaction_id->source_id": 0,
        "plan.transaction_id->external_transaction_id": 0,
        "plan.transaction_id->row_hash": 0,
        "plan.transaction_id->transaction_id": 0,
        "review.row_hash->source_id": 0,
        "review.row_hash->external_transaction_id": 0,
        "review.row_hash->row_hash": 0,
        "review.row_hash->transaction_id": 0,
        "dry_run.source_hash->source_id": 0,
        "dry_run.source_hash->external_transaction_id": 0,
        "dry_run.source_hash->row_hash": 0,
        "dry_run.source_hash->transaction_id": 0
      }
    },
    {
      "evidence": {
        "plan": {
          "execution_plan_id": "plan-8cc9a511-e679-47ee-a57a-30fe53ea72a6",
          "dry_run_id": "2761d82c-b80f-44d2-8c5f-d969e01b9912",
          "review_item_id": "8cc9a511-e679-47ee-a57a-30fe53ea72a6",
          "source_platform": "True Wealth",
          "target_account_id": "true-wealth-review-brokerage",
          "target_instrument_id": "instrument-US92204A7028",
          "transaction_type": "initial_position_snapshot",
          "snapshot_date": "2026-05-14",
          "payload_status": "ready",
          "payload_quality_flags_json": "[\"cost_basis_uncertain\", \"fx_missing\"]",
          "source_row_hash": "4af3459e24c3edf73a406bad31c4ebe4ece6ca7dcefa8acb175c3d1798e49ca1",
          "planned_write_summary_json": "{\"account_id\": \"true-wealth-review-brokerage\", \"cost_basis_quality\": \"uncertain\", \"currency_original\": \"USD\", \"fx_rate_to_chf\": null, \"fx_status\": \"missing\", \"gross_amount_chf\": \"32095.35\", \"instrument_id\": \"instrument-US92204A7028\", \"price_original\": \"113.45\", \"quantity\": \"362\", \"snapshot_date\": \"2026-05-14\", \"source_id\": \"8cc9a511-e679-47ee-a57a-30fe53ea72a6\", \"source_row_ref\": \"table1:row17\", \"source_type\": \"broker_import_reviewed_snapshot\", \"trade_date\": \"2026-05-14\", \"transaction_type\": \"initial_position_snapshot\"}",
          "execution_status": "imported",
          "transaction_id": "tx-aecd65d3-148f-4e45-9e19-d5c2d85e8133",
          "created_at": "2026-05-15T10:20:15.960672+00:00",
          "updated_at": "2026-05-15T10:58:02.510937+00:00",
          "executed_at": "2026-05-15T10:58:02.510937+00:00",
          "notes": "B6d final controlled True Wealth mini-import from reviewed execution plan; no mass import."
        },
        "review": {
          "review_item_id": "8cc9a511-e679-47ee-a57a-30fe53ea72a6",
          "dry_run_id": "2761d82c-b80f-44d2-8c5f-d969e01b9912",
          "source_platform": "True Wealth",
          "source_file_type": "docx",
          "source_row_ref": "table1:row17",
          "row_hash": "784929a66c3fa44444a9b9e0890aae947ff61976ae8e9394c00d00b110fe5bde",
          "source_label": "Vanguard Information Technology ETF ISIN: US92204A7028",
          "normalized_name": "vanguard information technology etf isin us92204a7028",
          "detected_asset_class": "etf",
          "detected_currency": "CHF",
          "detected_quantity_present": 1,
          "detected_market_value_present": 1,
          "isin": "US92204A7028",
          "ticker": "VGT",
          "exchange": "NYSE ARCA",
          "mapped_instrument_id": "instrument-US92204A7028",
          "mapped_account_id": "true-wealth-review-brokerage",
          "quality_flags_json": "[\"cost_basis_uncertain\", \"needs_manual_review\", \"snapshot_only\"]",
          "review_status": "imported",
          "reviewer_note": "B6d final controlled True Wealth mini-import from reviewed execution plan; no mass import.",
          "created_at": "2026-05-15T09:35:47.611374+00:00",
          "updated_at": "2026-05-15T10:58:02.510937+00:00",
          "import_readiness_status": "ready_for_import",
          "reviewer_confirmed": 1,
          "snapshot_date_confirmed": 1,
          "ticker_exchange_confirmed": 1,
          "account_mapping_status": "mapped"
        },
        "dry_run": {
          "dry_run_id": "2761d82c-b80f-44d2-8c5f-d969e01b9912",
          "source_name": "True Wealth",
          "source_platform": "True Wealth",
          "source_file_label": "[runtime-file-redacted]",
          "source_file_type": "docx",
          "source_hash": "6d55404a91397dc52b8162663c15de00172f9c806d3803db9114a3e970ec63a8",
          "source_filename_hash": "6d55404a91397dc52b8162663c15de00172f9c806d3803db9114a3e970ec63a8",
          "detected_snapshot_date": null,
          "snapshot_date_status": "missing",
          "detected_sections_json": "[\"table_1\"]",
          "field_coverage_json": "{}",
          "rows_total": 19,
          "rows_position_candidates": 17,
          "rows_cash_candidates": 1,
          "candidate_positions": 17,
          "candidate_cash_rows": 1,
          "mapped_positions": 0,
          "blocked_positions": 17,
          "warnings_count": 87,
          "errors_count": 0,
          "quality_flags_json": "{\"cost_basis_uncertain\": 17, \"missing_isin\": 17, \"missing_ticker\": 17, \"needs_manual_review\": 18, \"snapshot_only\": 18}",
          "summary_json": "{\"blocked_positions\": 17, \"candidate_cash_rows\": 1, \"candidate_positions\": 17, \"mapped_positions\": 0, \"rows_total\": 19, \"source_file_type\": \"docx\", \"source_platform\": \"True Wealth\"}",
          "created_at": "2026-05-15T09:35:47.610688+00:00",
          "notes": "dry-run summary only; no productive ledger writes",
          "session_status": "active",
          "is_current": 0,
          "archived_at": null,
          "discarded_at": null
        }
      },
      "candidate_field_names": [
        "plan.source_row_hash",
        "plan.transaction_id",
        "review.row_hash",
        "dry_run.source_hash"
      ],
      "exact_match_counts": {
        "plan_source_row_hash_to_transaction_row_hash": 0,
        "plan.source_row_hash->source_id": 0,
        "plan.source_row_hash->external_transaction_id": 0,
        "plan.source_row_hash->row_hash": 0,
        "plan.source_row_hash->transaction_id": 0,
        "plan.transaction_id->source_id": 0,
        "plan.transaction_id->external_transaction_id": 0,
        "plan.transaction_id->row_hash": 0,
        "plan.transaction_id->transaction_id": 0,
        "review.row_hash->source_id": 0,
        "review.row_hash->external_transaction_id": 0,
        "review.row_hash->row_hash": 0,
        "review.row_hash->transaction_id": 0,
        "dry_run.source_hash->source_id": 0,
        "dry_run.source_hash->external_transaction_id": 0,
        "dry_run.source_hash->row_hash": 0,
        "dry_run.source_hash->transaction_id": 0
      }
    },
    {
      "evidence": {
        "plan": {
          "execution_plan_id": "plan-9122f3c2-eb76-4f92-b95d-1f9c2a99f686",
          "dry_run_id": "2761d82c-b80f-44d2-8c5f-d969e01b9912",
          "review_item_id": "9122f3c2-eb76-4f92-b95d-1f9c2a99f686",
          "source_platform": "True Wealth",
          "target_account_id": "true-wealth-review-brokerage",
          "target_instrument_id": "instrument-US9229087690",
          "transaction_type": "initial_position_snapshot",
          "snapshot_date": "2026-05-14",
          "payload_status": "ready",
          "payload_quality_flags_json": "[\"cost_basis_uncertain\", \"fx_missing\"]",
          "source_row_hash": "d91dcdb723e0725fc4d721d2c3083d3609a33c1bd04c191d3d548fbfaa55d38a",
          "planned_write_summary_json": "{\"account_id\": \"true-wealth-review-brokerage\", \"cost_basis_quality\": \"uncertain\", \"currency_original\": \"USD\", \"fx_rate_to_chf\": null, \"fx_status\": \"missing\", \"gross_amount_chf\": \"36482.67\", \"instrument_id\": \"instrument-US9229087690\", \"price_original\": \"364.71\", \"quantity\": \"128\", \"snapshot_date\": \"2026-05-14\", \"source_id\": \"9122f3c2-eb76-4f92-b95d-1f9c2a99f686\", \"source_row_ref\": \"table1:row14\", \"source_type\": \"broker_import_reviewed_snapshot\", \"trade_date\": \"2026-05-14\", \"transaction_type\": \"initial_position_snapshot\"}",
          "execution_status": "imported",
          "transaction_id": "tx-0870b5b9-0c4e-4ffb-94b5-4eef18009b99",
          "created_at": "2026-05-15T10:20:15.960216+00:00",
          "updated_at": "2026-05-15T10:21:23.938094+00:00",
          "executed_at": "2026-05-15T10:21:23.938094+00:00",
          "notes": "B6b mini-import executed for exactly one reviewed payload."
        },
        "review": {
          "review_item_id": "9122f3c2-eb76-4f92-b95d-1f9c2a99f686",
          "dry_run_id": "2761d82c-b80f-44d2-8c5f-d969e01b9912",
          "source_platform": "True Wealth",
          "source_file_type": "docx",
          "source_row_ref": "table1:row14",
          "row_hash": "086dc01f831a0c5117dacf146f90000795af85e7461932ddb953663d574e60cf",
          "source_label": "Vanguard US Total Stock Market Shares Index ETF ISIN: US9229087690",
          "normalized_name": "vanguard us total stock market shares index etf isin us9229087690",
          "detected_asset_class": "etf",
          "detected_currency": "CHF",
          "detected_quantity_present": 1,
          "detected_market_value_present": 1,
          "isin": "US9229087690",
          "ticker": "VTI",
          "exchange": "NYSE ARCA",
          "mapped_instrument_id": "instrument-US9229087690",
          "mapped_account_id": "true-wealth-review-brokerage",
          "quality_flags_json": "[\"cost_basis_uncertain\", \"needs_manual_review\", \"snapshot_only\"]",
          "review_status": "imported",
          "reviewer_note": "B6b mini-import completed for exactly one reviewed payload.",
          "created_at": "2026-05-15T09:35:47.611275+00:00",
          "updated_at": "2026-05-15T10:21:23.938094+00:00",
          "import_readiness_status": "ready_for_import",
          "reviewer_confirmed": 1,
          "snapshot_date_confirmed": 1,
          "ticker_exchange_confirmed": 1,
          "account_mapping_status": "mapped"
        },
        "dry_run": {
          "dry_run_id": "2761d82c-b80f-44d2-8c5f-d969e01b9912",
          "source_name": "True Wealth",
          "source_platform": "True Wealth",
          "source_file_label": "[runtime-file-redacted]",
          "source_file_type": "docx",
          "source_hash": "6d55404a91397dc52b8162663c15de00172f9c806d3803db9114a3e970ec63a8",
          "source_filename_hash": "6d55404a91397dc52b8162663c15de00172f9c806d3803db9114a3e970ec63a8",
          "detected_snapshot_date": null,
          "snapshot_date_status": "missing",
          "detected_sections_json": "[\"table_1\"]",
          "field_coverage_json": "{}",
          "rows_total": 19,
          "rows_position_candidates": 17,
          "rows_cash_candidates": 1,
          "candidate_positions": 17,
          "candidate_cash_rows": 1,
          "mapped_positions": 0,
          "blocked_positions": 17,
          "warnings_count": 87,
          "errors_count": 0,
          "quality_flags_json": "{\"cost_basis_uncertain\": 17, \"missing_isin\": 17, \"missing_ticker\": 17, \"needs_manual_review\": 18, \"snapshot_only\": 18}",
          "summary_json": "{\"blocked_positions\": 17, \"candidate_cash_rows\": 1, \"candidate_positions\": 17, \"mapped_positions\": 0, \"rows_total\": 19, \"source_file_type\": \"docx\", \"source_platform\": \"True Wealth\"}",
          "created_at": "2026-05-15T09:35:47.610688+00:00",
          "notes": "dry-run summary only; no productive ledger writes",
          "session_status": "active",
          "is_current": 0,
          "archived_at": null,
          "discarded_at": null
        }
      },
      "candidate_field_names": [
        "plan.source_row_hash",
        "plan.transaction_id",
        "review.row_hash",
        "dry_run.source_hash"
      ],
      "exact_match_counts": {
        "plan_source_row_hash_to_transaction_row_hash": 0,
        "plan.source_row_hash->source_id": 0,
        "plan.source_row_hash->external_transaction_id": 0,
        "plan.source_row_hash->row_hash": 0,
        "plan.source_row_hash->transaction_id": 0,
        "plan.transaction_id->source_id": 0,
        "plan.transaction_id->external_transaction_id": 0,
        "plan.transaction_id->row_hash": 0,
        "plan.transaction_id->transaction_id": 0,
        "review.row_hash->source_id": 0,
        "review.row_hash->external_transaction_id": 0,
        "review.row_hash->row_hash": 0,
        "review.row_hash->transaction_id": 0,
        "dry_run.source_hash->source_id": 0,
        "dry_run.source_hash->external_transaction_id": 0,
        "dry_run.source_hash->row_hash": 0,
        "dry_run.source_hash->transaction_id": 0
      }
    }
  ]
}