{
  "chapter": "METR-21",
  "stage": "First-stable actual analytical-frame contract;whole/public/runtime/UI authorship pending",
  "createdUTC": "2026-11-03T08:34:18.964303+00:00",
  "nativeCSV": [
    {
      "kind": "country",
      "file": "actual2500-county-mpdta-all6-fields.csv",
      "sha256": "cf11d6a1fac8ebb44a28ed043b8dbfbf67806147b1b20218c9b21a4341659ef6",
      "rows": 2500,
      "columns": 7,
      "CSVBodyFields": 17500,
      "newRemoteDownload": false
    },
    {
      "kind": "person",
      "file": "actual38408-NSW-all15-fields.csv",
      "sha256": "346be71909903ab5050146d4fc6eabd86320da3511df612d6ae877c775853014",
      "rows": 38408,
      "columns": 16,
      "CSVBodyFields": 614528,
      "newRemoteDownload": false
    },
    {
      "kind": "company",
      "file": "actual410-NJPA-all46-fields.csv",
      "sha256": "0e89461df7e5dfecef38e91d474480f8083577fab0c2a8d4285896c8ed2ee669",
      "rows": 410,
      "columns": 47,
      "CSVBodyFields": 19270,
      "newRemoteDownload": false
    }
  ],
  "originalAcquisitionReuse": "METR20 retained mpdta.rda/nsw_long.rda HTTP200native originals and nativeR17digit roundtrip/ZIP checks are reused by exact same CSV SHA. This preparation freshly reads the exported CSVs;it is not a new remote download or nativeRData parser audit.",
  "selection": {
    "country": "All500county source groups retained in ledger;select first.treat2007or0,baseline2003X,outcome2007lemp. Exclude60earlier adopters by declared target,not computing budget.",
    "person": "All19204native people retained in ledger;select all722experimental people,never recode nonexperimental treatedNA ascontrol0. Outcome1978re,features1974re74andrecordedblack.",
    "company": "All410native source rows retained;384completeFTEpairs determine observable baselineFTE and postFTE target. Use original row IDs;group both nativeSHEET407rows in the same fold conservatively. A repeated native key does not prove physical identity."
  },
  "features": {
    "country": [
      "baseline-log-teen-employment-2003",
      "recorded-log-population-2003"
    ],
    "person": [
      "recorded-real-earnings-1974",
      "recorded-black-indicator"
    ],
    "company": [
      "pre-policy-FTE",
      "chain2-indicator",
      "chain3-indicator",
      "chain4-indicator",
      "corporate-owned-indicator"
    ]
  },
  "folds": {
    "K": 5,
    "algorithm": "Sort unique group strings by SHA256(UTF8(METR21|kind|group)),tie group string;assign sorted rankmod5. Targets/outcome values never enter assignment. Source labels and treatment prevalence are not used for stratification.",
    "summaries": {
      "country": {
        "modelRows": 440,
        "groups": 440,
        "foldRows": {
          "0": 88,
          "3": 88,
          "1": 88,
          "4": 88,
          "2": 88
        },
        "foldGroups": {
          "0": 88,
          "1": 88,
          "2": 88,
          "3": 88,
          "4": 88
        },
        "treatmentCounts": {
          "1": 131,
          "0": 309
        },
        "noGroupAcrossFolds": true
      },
      "person": {
        "modelRows": 722,
        "groups": 722,
        "foldRows": {
          "2": 144,
          "0": 145,
          "1": 145,
          "3": 144,
          "4": 144
        },
        "foldGroups": {
          "0": 145,
          "1": 145,
          "2": 144,
          "3": 144,
          "4": 144
        },
        "treatmentCounts": {
          "1": 297,
          "0": 425
        },
        "noGroupAcrossFolds": true
      },
      "company": {
        "modelRows": 384,
        "groups": 383,
        "foldRows": {
          "1": 77,
          "2": 78,
          "4": 76,
          "0": 77,
          "3": 76
        },
        "foldGroups": {
          "0": 77,
          "1": 77,
          "2": 77,
          "3": 76,
          "4": 76
        },
        "treatmentCounts": {
          "0": 75,
          "1": 309
        },
        "noGroupAcrossFolds": true
      }
    }
  },
  "nuisancePlan": {
    "learner": "Explicit finite ridge with unpenalized intercept;outer-training-only range scaling,mean weighted squared error plus lambda feature penalty. Default lambda1/100 is predetermined,not selected on held-out outcome labels.",
    "lambdaZero": "Exact rank/nullspace and prediction-identification checks required;no silent generalized inverse or unidentified coefficient claims.",
    "scoring": "PLR uses ell=E[Y|X] nuisance and m=E[D|X],not structuralg=E[Y-thetaD|X]. Binary-treatment AIPW is a distinct target with explicit e support/clipping and arm-specific nuisance predictions.",
    "AIPWPropensityGrid": "For the actual-source AIPW experiment only,round the raw ridge propensity exactly to the nearest1/1000,ties to even,before separately declared clipping at1/20. Retain raw/grid/used values. PLR retains unrounded exact m. This finite modified score avoids explosive exact reciprocal-denominator sums without dropping any source row,and does not establish nuisance consistency. Null explicitly requests no grid and may exceed the documented rational/work budget."
  },
  "units": {
    "country": "log teen-employment points",
    "person": "recorded real earnings;price-base year not verified",
    "company": "FTE employees"
  },
  "boundaries": [
    "Group cross-fitting is a fitting split,not certification of state-cluster independence,unconfoundedness,overlap,nuisance rates or honest confidence coverage.",
    "Country and company policy assignment may share unobserved jurisdiction confounding;DML cannot repair missing confounders. These are finite adjusted projections/score exercises,not certified effects.",
    "NSW native treated code is the package experimental group indicator;individual receipt/enrollment timing is not invented. re74year is explicitly1974;no assumed hourly unit or price-base conversion.",
    "Post-level outcome with baseline covariates is not automatically the METR20paired-DID target. Feature timing,selection,estimand and identifying assumptions remain explicit.",
    "SHEET duplicate grouping prevents one obvious possible same-key fold leak,not all unknown physical-store or state-policy dependence.",
    "No real/synthetic source mixing,hidden imputation,subset shrinking,look-ahead preprocessing or test-label hyperparameter tuning.",
    "The actual-source AIPW propensity grid is an explicit finite-computation modeling choice,not source-data rounding,not an exact unrounded-AIPW result,and not hidden arbitrary precision. Ordinary source outcomes/features and all raw nuisance predictions remain exact stored rationals."
  ],
  "derivedCSV": [
    {
      "file": "derived-country-crossfit-model-frame.csv",
      "sha256": "58e79b687216c40cdeb44088fb350bc524d42536912b021c9dc9d92e342ad5f0",
      "rows": 440,
      "columns": 11
    },
    {
      "file": "derived-country-full-selection-ledger.csv",
      "sha256": "7d878e7aaeecb10b8f7971d918b30bbc9cea7ef2134bda1554da904e7f3a5380",
      "rows": 500,
      "columns": 5
    },
    {
      "file": "derived-person-crossfit-model-frame.csv",
      "sha256": "9a7937e1439041ba03d0a9a980d17ca281a89f08c56779e7b5b3e4af4d8fd257",
      "rows": 722,
      "columns": 11
    },
    {
      "file": "derived-person-full-selection-ledger.csv",
      "sha256": "d676cbe2f1699015152dfbb0de4ec763a1462cecb40e34845b8c763e11a40dce",
      "rows": 19204,
      "columns": 6
    },
    {
      "file": "derived-company-crossfit-model-frame.csv",
      "sha256": "d09b1c159969bacb658d95c31bf041f87c0a44d92df7c6cf9d8982c92b3e3691",
      "rows": 384,
      "columns": 11
    },
    {
      "file": "derived-company-full-selection-ledger.csv",
      "sha256": "082d41a76c278734527d49ef6cbc2bb8a5e1a22bda29d1bc016f6ec8eb6c46a2",
      "rows": 410,
      "columns": 5
    }
  ],
  "nativeOriginals": [
    {
      "file": "work/textbook-rewrite-2026/metr20-originals/mpdta.rda",
      "sha256": "0be3bc5eaaedaa50e047deaf45ad0e193e7210df1644103c63a6c1baa75965d4",
      "bytes": 28345
    },
    {
      "file": "work/textbook-rewrite-2026/metr20-originals/nsw_long.rda",
      "sha256": "4cdf4739cc58fdb02bfc2979a8a9d53d7dbef22b9e1157abb3cd483328ec91d7",
      "bytes": 209228
    },
    {
      "file": "work/textbooks-2026/raw/njmin.zip",
      "sha256": "41a29aec6b489658b20030d044a2b20a5f5a04b871cde41df057afd6013ba587",
      "bytes": 23017
    }
  ],
  "retainedAcquisition": {
    "file": "work/textbook-rewrite-2026/metr20-primary-download-author-proof.json",
    "sha256": "c05c28d61a33d5eda7e7ea29d37b2c85bf926b38b11ac02855b3cdde0887a2ba",
    "bytes": 4607
  },
  "retainedNativeExportEvidence": {
    "script": {
      "file": "work/textbook-rewrite-2026/inspect-export-metr20-original-rdata.R",
      "sha256": "bd0db16dfb8e448dadfa93051c7f1d09f1731121be85f132229b1ee059d7b308",
      "bytes": 2853
    },
    "method": "Actual base R isolated-environment load; full native schema/attributes preserved; 17-digit numeric export read back with equality checks. This is a native binary storage roundtrip, not asserted original decimal measurement precision."
  },
  "nativeAuditReusedFrom": {
    "file": "work/textbook-rewrite-2026/metr20-math-firststable-independent-handoff.json",
    "sha256": "582e98d7fa6fcc57f890aacd014acb210870a7491ecc0907dda73b301e61e04d",
    "scope": "Prior nativeRdata/ZIP raw609980field audit only,reused by same3CSV SHA;new M21 sourceframes/folds/ridge/scores are not covered by that earlier independent gate."
  },
  "review": {
    "stage": "Author fullsource quantitative cases;originalPNG/staticvisual/publicfullpeer/fixed/UI pending",
    "tablesKOEN": 66,
    "bodyCellsKOEN": 328298,
    "logicalGraphs": 12,
    "KOENSVG": 24,
    "chartY": 12368,
    "sourceModelRows": 1546,
    "OOFNuisanceScalarPredictions": 6184,
    "newCSVBodyFields": 442364,
    "unabridgedSelectionRows": 20114,
    "unabridgedTrainingLinks": 18552,
    "trainingView": "All memberships in full CSV and readonly actualdataUI,not duplicated in every staticcase table",
    "claim": "Finite residual projection/explicitgridAIPW;not originalpaper estimate or causal/rate/coverage certificate",
    "independentFinalReview": {
      "report": "work/textbook-rewrite-2026/metr21-math-independent-final-handoff.json",
      "reportSHA256": "69661a091456eebef862ad98a1eb5f6de7e075b569554561fd85457fdf61b510",
      "status": "passed-independent-whole-source-engine-runtime-review-native-separate"
    }
  },
  "datasets": [
    {
      "file": "metr21-sources/actual2500-county-mpdta-all6-fields.csv",
      "sha256": "cf11d6a1fac8ebb44a28ed043b8dbfbf67806147b1b20218c9b21a4341659ef6",
      "rows": 2500
    },
    {
      "file": "metr21-sources/actual38408-NSW-all15-fields.csv",
      "sha256": "346be71909903ab5050146d4fc6eabd86320da3511df612d6ae877c775853014",
      "rows": 38408
    },
    {
      "file": "metr21-sources/actual410-NJPA-all46-fields.csv",
      "sha256": "0e89461df7e5dfecef38e91d474480f8083577fab0c2a8d4285896c8ed2ee669",
      "rows": 410
    },
    {
      "file": "metr21-sources/computed-aipw-pseudo-outcomes.csv",
      "sha256": "8de232860244663e5e6f58449dbde664cc79fc835d1db5dd667852388ceb8bc8",
      "rows": 1546
    },
    {
      "file": "metr21-sources/computed-fold-coefficients.csv",
      "sha256": "2a9ad14632e37b7855bb6a5aea46c4fb59d3bf5fd994c82fdda7ea3e05191c4b",
      "rows": 240
    },
    {
      "file": "metr21-sources/computed-fold-crossproducts.csv",
      "sha256": "8699063442cfd4c7ea7bcc7ca519efdef61fcb190658e5731af8f933f8e3a2f8",
      "rows": 1080
    },
    {
      "file": "metr21-sources/computed-fold-fit-metrics.csv",
      "sha256": "125ee7b8108d65dfa137cd3ccef1ec001e3ad7538de55bf7586fa69e24344b49",
      "rows": 60
    },
    {
      "file": "metr21-sources/computed-fold-training-membership.csv",
      "sha256": "aaab0a4875e2fd1c400af31b58662a2261d86818697f36fefce602b7d80c8e6a",
      "rows": 18552
    },
    {
      "file": "metr21-sources/computed-full-selection-ledger.csv",
      "sha256": "a299230ae3b2d2c811554d3846d722b2dbfaa6de4ad11959455d9dcf6e9f7a0e",
      "rows": 20114
    },
    {
      "file": "metr21-sources/computed-heldout-predictions.csv",
      "sha256": "b5146b621745fb6440b1ae8d9bc9addabcb4b36fec9c9011dc7b10f43b1d4046",
      "rows": 1546
    },
    {
      "file": "metr21-sources/computed-model-frame.csv",
      "sha256": "6b2b91ab2483db96b95f38ab0a429a1db03e56352d1172da83ebe86dabfe0987",
      "rows": 1546
    },
    {
      "file": "metr21-sources/computed-propensity-ledger.csv",
      "sha256": "e92fe79be08ac251ff5180394dd05db1680345b89d9fdf09128ffcebf7446b6f",
      "rows": 1546
    },
    {
      "file": "metr21-sources/computed-residual-scores.csv",
      "sha256": "149adb7b0e77c8394d14c4b87fc4218afc9ec1eaf7014a58346652e7027e06a8",
      "rows": 1546
    },
    {
      "file": "metr21-sources/computed-source-chart-points.csv",
      "sha256": "741d24490fb57a1f00f18c91da42419d676bddd74a6be7193dd7b2d184a93c5e",
      "rows": 12368
    },
    {
      "file": "metr21-sources/computed-source-estimates.csv",
      "sha256": "ec1ad3b6a4465ba4b823ebf4fa80447926224179916fa8270287599e5a8ff009",
      "rows": 63
    },
    {
      "file": "metr21-sources/derived-company-crossfit-model-frame.csv",
      "sha256": "d09b1c159969bacb658d95c31bf041f87c0a44d92df7c6cf9d8982c92b3e3691",
      "rows": 384
    },
    {
      "file": "metr21-sources/derived-company-full-selection-ledger.csv",
      "sha256": "082d41a76c278734527d49ef6cbc2bb8a5e1a22bda29d1bc016f6ec8eb6c46a2",
      "rows": 410
    },
    {
      "file": "metr21-sources/derived-country-crossfit-model-frame.csv",
      "sha256": "58e79b687216c40cdeb44088fb350bc524d42536912b021c9dc9d92e342ad5f0",
      "rows": 440
    },
    {
      "file": "metr21-sources/derived-country-full-selection-ledger.csv",
      "sha256": "7d878e7aaeecb10b8f7971d918b30bbc9cea7ef2134bda1554da904e7f3a5380",
      "rows": 500
    },
    {
      "file": "metr21-sources/derived-person-crossfit-model-frame.csv",
      "sha256": "9a7937e1439041ba03d0a9a980d17ca281a89f08c56779e7b5b3e4af4d8fd257",
      "rows": 722
    },
    {
      "file": "metr21-sources/derived-person-full-selection-ledger.csv",
      "sha256": "d676cbe2f1699015152dfbb0de4ec763a1462cecb40e34845b8c763e11a40dce",
      "rows": 19204
    }
  ]
}
