{
  "base": "9ffcc3e3bc23d59a34dbe300d31d1e8c2576f1b0",
  "isolatedEnvironment": {
    "project": "barbelic_2330",
    "container": "supabase_db_barbelic_2330",
    "apiPort": 57331,
    "dbPort": 57332,
    "shadowPort": 57333,
    "postgres": "17.6.1.127",
    "otherDatabaseAccess": false,
    "productionVerified": false,
    "startupLogExcludedBecauseContainsLocalCredentials": true
  },
  "migration": {
    "file": "supabase/migrations/20260929040000_policy_comments_only_2330.sql",
    "changedObjects": 698,
    "functionReissues": 457,
    "commentStatements": 672,
    "statements": 1129,
    "riskLevel": "low",
    "riskFingerprint": "cecb5d9f",
    "historicalFilesPreserved": 351,
    "finalReplayedFiles": 352,
    "tail": "20260929040000",
    "allMigrationsFingerprint": "0a116cad582e3035e8cfb6487c1aca506750394ba1ca02a9903f6def3bb4d97a"
  },
  "source": {
    "primaryFiles": 846,
    "primaryChanged": 844,
    "standaloneSqlFiles": 12,
    "standaloneChanged": 9,
    "executableComparisonFailures": 0,
    "primarySyntaxBefore": 2624,
    "primarySyntaxAfter": 36,
    "primaryMetadataBefore": 673,
    "primaryMetadataAfter": 27,
    "jsonCommentBefore": 28,
    "jsonCommentAfter": 16,
    "primaryToolSurvivors": 4,
    "primaryPolicySurvivors": 75,
    "standalonePolicySurvivors": 3,
    "standaloneMetadataCleared": 15
  },
  "steps": [
    {
      "command": "npm run sql:candidate -- --slug policy_comments_only_2330",
      "result": "passed; regenerate against latest release schema rather than rename the old function body"
    },
    {
      "command": "npm run migrations:risk -- --write supabase/migrations/20260929040000_policy_comments_only_2330.sql",
      "result": "passed; low, cecb5d9f"
    },
    {
      "command": "npm run migrations:renumber -- --base origin/release/v1.4.3 --no-fetch",
      "result": "passed; 351 protected, zero renames, expected migration 20260929040000 synchronized"
    },
    {
      "command": "npm run schema:snapshot -- --sandbox ../db-2330 --reset",
      "result": "passed; 352 replay and deterministic two-build snapshot"
    },
    {
      "command": "npm run sql:extract",
      "result": "passed; 815 objects, 3875 statements"
    },
    {
      "command": "npm run db:model",
      "result": "passed; 119 tables, 3 views, 199 indexes, 185 FKs"
    },
    {
      "command": "npm run sql:check",
      "result": "passed; source equals snapshot, registry and approved exceptions match"
    },
    {
      "command": "npm run db:model:check",
      "result": "passed"
    },
    {
      "command": "npm run check:gates -- retired-rpc sql-function-size",
      "result": "2 passed, 0 failed; ledger unchanged"
    },
    {
      "command": "node ../2330-policy-golden-regenerate-9ffcc3.mjs",
      "result": "normal generator invoked for 11 chapters at 2026-09-28 and relations at 2026-09-29; 12 files, 281 steps"
    },
    {
      "command": "node --import tsx ../2330-policy-golden-comparison.mjs --base 9ffcc3e3bc23d59a34dbe300d31d1e8c2576f1b0 --prefix 2330-policy-golden-9ffcc3",
      "result": "12 files, 281 steps normalized equal to latest release"
    },
    {
      "command": "node --import tsx --test --test-timeout=20000 tests/unit/flow/doorGolden.test.mjs",
      "result": "29 passed, 0 failed, 0 skipped",
      "durationMs": 10451.4374
    },
    {
      "executor": "parent",
      "test": "tests/unit/db/internalAccountsSearch.test.mjs",
      "result": "5 passed, 0 failed, 0 skipped; transaction rolled back",
      "durationMs": 1099.7034,
      "evidence": "2330-policy-internal-db-test.log"
    },
    {
      "command": "node ../2330-policy-schema-verify.mjs --base 9ffcc3e3bc23d59a34dbe300d31d1e8c2576f1b0 --newer-release 9ffcc3e3bc23d59a34dbe300d31d1e8c2576f1b0 --prefix 2330-policy-schema-9ffcc3 --expected-count 352",
      "result": "schema executable tokens equal; file/header/database migration count and tail match"
    },
    {
      "command": "node ../2330-policy-sql.verify.mjs --base 9ffcc3e3bc23d59a34dbe300d31d1e8c2576f1b0 --prefix 2330-policy-sql-9ffcc3",
      "result": "846 source files, 0 failures; generated ledger values separately classified"
    },
    {
      "command": "node ../2330-policy-sql-final-inventory.mjs --verification 2330-policy-sql-9ffcc3.verification.json --prefix 2330-policy-sql-9ffcc3-inventory",
      "result": "858 source files enumerated; original 351 migrations unchanged; 0 executable token failures"
    }
  ],
  "reusedEvidence": [
    {
      "evidence": "2330-policy-read-scope-db.log",
      "result": "7/7 passed in previous same-task sandbox run",
      "condition": "9ffcc3 does not change the three anchor function bodies or tests/unit/db/readsIgnoreUnrelatedHistory.test.mjs; exact source anchors rechecked. Not described as a new run."
    },
    {
      "evidence": "2330-policy-fixture-metadata-verification.json",
      "result": "21 reference functions installed, zero metadata, transaction rolled back",
      "condition": "The two standalone SQL fixture inputs have not changed since this evidence was collected."
    }
  ],
  "limitations": [
    "Local synthetic validation, not Production measurement",
    "All comments enumerated and retained reasons reviewed; not every feature mentioned by deleted prose was independently exercised",
    "Generated copies are not added to source comment counts"
  ]
}
