{
  "version": 1,
  "task": "LEAD-ENGINE-001.2",
  "passed": true,
  "checks": [
    {
      "kind": "file",
      "passed": true,
      "path": "/home/iovon/lead-generation/tests/test_migrations.py",
      "sha256": "ade40e69e1276416a7d80d848884f9fffa1d91e6b1fefb99a6fa9c0749317d91",
      "size_bytes": 22559,
      "before_sha256": null
    },
    {
      "kind": "sqlite",
      "passed": true,
      "path": "/home/iovon/lead-generation/data/leads.db",
      "query": "SELECT name FROM sqlite_master WHERE type='table' AND name IN ('research_runs','signals','evidence','assessments') ORDER BY name",
      "rows": [
        [
          "assessments"
        ],
        [
          "evidence"
        ],
        [
          "research_runs"
        ],
        [
          "signals"
        ]
      ]
    },
    {
      "kind": "test",
      "passed": true,
      "argv": [
        "python3",
        "-m",
        "unittest",
        "tests.test_migrations",
        "-v"
      ],
      "exit_code": 0,
      "stdout": "",
      "stderr": "test_live_copy_preserves_cards_and_reviews (tests.test_migrations.TestLiveDatabaseCopy.test_live_copy_preserves_cards_and_reviews) ... ok\ntest_backfill_is_unverified_with_provenance (tests.test_migrations.TestMigrationOnLegacyFixture.test_backfill_is_unverified_with_provenance) ... ok\ntest_backup_written_before_migration (tests.test_migrations.TestMigrationOnLegacyFixture.test_backup_written_before_migration) ... ok\ntest_campaign_config_versions_immutable (tests.test_migrations.TestMigrationOnLegacyFixture.test_campaign_config_versions_immutable) ... ok\ntest_company_dedup_keys (tests.test_migrations.TestMigrationOnLegacyFixture.test_company_dedup_keys) ... ok\ntest_creates_all_tables_and_records_versions (tests.test_migrations.TestMigrationOnLegacyFixture.test_creates_all_tables_and_records_versions) ... ok\ntest_human_reviews_preserved (tests.test_migrations.TestMigrationOnLegacyFixture.test_human_reviews_preserved) ... ok\ntest_idempotent_second_run (tests.test_migrations.TestMigrationOnLegacyFixture.test_idempotent_second_run) ... ok\ntest_legacy_rows_preserved_exactly (tests.test_migrations.TestMigrationOnLegacyFixture.test_legacy_rows_preserved_exactly) ... ok\ntest_no_automatic_verified (tests.test_migrations.TestMigrationOnLegacyFixture.test_no_automatic_verified) ... ok\ntest_provenance_is_immutable (tests.test_migrations.TestMigrationOnLegacyFixture.test_provenance_is_immutable) ... ok\ntest_review_history_append_only_and_app_insert_still_works (tests.test_migrations.TestMigrationOnLegacyFixture.test_review_history_append_only_and_app_insert_still_works) ... ok\ntest_signal_and_evidence_dedup (tests.test_migrations.TestMigrationOnLegacyFixture.test_signal_and_evidence_dedup) ... ok\ntest_company_names (tests.test_migrations.TestNormalization.test_company_names) ... ok\ntest_domains (tests.test_migrations.TestNormalization.test_domains) ... ok\ntest_engine_is_domain_agnostic (tests.test_migrations.TestNormalization.test_engine_is_domain_agnostic) ... ok\ntest_aborts_if_legacy_rows_would_change (tests.test_migrations.TestSafety.test_aborts_if_legacy_rows_would_change) ... ok\ntest_fresh_empty_database (tests.test_migrations.TestSafety.test_fresh_empty_database) ... ok\ntest_refuses_db_with_factory_fingerprint (tests.test_migrations.TestSafety.test_refuses_db_with_factory_fingerprint) ... ok\ntest_refuses_factory_paths (tests.test_migrations.TestSafety.test_refuses_factory_paths) ... ok\ntest_rollback_on_failure_leaves_db_untouched (tests.test_migrations.TestSafety.test_rollback_on_failure_leaves_db_untouched) ... ok\ntest_tolerates_odd_legacy_payloads (tests.test_migrations.TestSafety.test_tolerates_odd_legacy_payloads) ... ok\n\n----------------------------------------------------------------------\nRan 22 tests in 13.978s\n\nOK\n"
    }
  ],
  "contract": [
    {
      "kind": "file",
      "path": "tests/test_migrations.py"
    },
    {
      "kind": "sqlite",
      "path": "data/leads.db",
      "query": "SELECT name FROM sqlite_master WHERE type='table' AND name IN ('research_runs','signals','evidence','assessments') ORDER BY name",
      "expected_rows": [
        [
          "assessments"
        ],
        [
          "evidence"
        ],
        [
          "research_runs"
        ],
        [
          "signals"
        ]
      ]
    },
    {
      "kind": "test",
      "argv": [
        "python3",
        "-m",
        "unittest",
        "tests.test_migrations",
        "-v"
      ],
      "timeout": 120
    }
  ],
  "workspace": {
    "path": "/home/iovon/lead-generation",
    "write_read_verified": true
  }
}