Repository navigation
Conversation
Add job-crosswalk registries for all 43 staged PSID waves, 1968 to 2023, with an exact-byte reader, a separate adjudication, the evidence table CE3 reads, and a differential against the predecessor registries. The registries hold setup-file labels, columns and code meanings, and their schemas carry no frequencies. The differential finds no difference in modern waves and 86 label differences in earlier waves, with no variable or column difference, and keeps every pair without changing either predecessor artifact. The metadata tests read PSID setup files only, in the integration_psid tier, and skip when the files are absent. No existing tracked file, tier file or seal changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Two host mutants survived: disabling the unknown-item guard or the duplicate-person guard still refused, through a later check with a different message, and the tests matched either message or none. The unknown-item case now matches "unknown requested item", the absent-item cases "absent from this wave", and the shared head and spouse ID case "ambiguous family or role". Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
The build's mutation runner makes 37 small changes to the three new source files, one at a time, and runs the named test for each. Each change breaks one invariant, and the named test catches it by failing. In the first run, 35 named tests caught their change. Two let the change through, because the code still refused by another route and the test accepted that refusal:
af30b02 makes each test check the refusal reason it covers. On that commit both tests catch their change, so all 37 do. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CE2a registers the PSID family-file variables that describe each head's, spouse's and family's jobs and residence, for all 43 interview waves from 1968 through 2023: annual through 1997, then odd years. For each wave, the registry records six items: government level, employee or self-employed status, incorporation, industry, occupation and state of residence. Each row carries its exact setup label and columns, its printed value codes and the disposition of each code. The registries hold metadata only, and PSID use follows the project's data-access record.
What it adds
populace_dynamics.data.psid_job_crosswalk_registry). The module pins each wave's SPSS setup and codebook by SHA-256 and checks every row's label and columns against the setup before a reader consumes any record. It gives each printed code exactly one disposition, raises on a code nobody verified, and keeps a government level only when the code's source text states it. Its closed schema has no frequency, count or percentage field.populace_dynamics.data.psid_job_crosswalk). The reader takes fixed-width records that its caller supplies, returns each registered token's bytes unchanged, and leaves value meanings to the registry's separate adjudicator. It attaches people to family items only through an explicit mapping, and it never finds or opens a family data file. This PR runs it on invented records only.populace_dynamics.data.psid_job_crosswalk_evidence). For every wave and every fact in itsFIELD_PURPOSEStable, the module names the registered items and substantive codes that establish the fact, and leaves every other factawaiting_ce2. Missing, not-applicable, not-asked, ambiguous and unverified codes never establish a fact, and a printed industry or occupation category identifies only that category.data/external/psid_job_crosswalk_v1/). One registry per wave,fact_evidence.json, anddifferential.json. The differential compares the registries with six earlier field-evidence files indata/external/psid_codebook_field_evidence/and with the modern job-context extraction specs indata/external/psid_modern_job_context_raw_extraction_specs_v1.json.Evidence
Invariants
Examples and Hypothesis properties on invented records and metadata check these invariants:
Tests
The PR adds 335 tests in five modules: 161 unit, 45 artifact and 129
integration_psid. The integration module reads only staged PSID setup files, runs invented records at the verified columns, and skips when it finds no staged setups. Each of 37 small changes that break one invariant in the new source makes its named test fail (mutation results). Black and Ruff pass on all eight changed Python files.Status
This PR stays a draft until:
tests/tier_counts.json, in a commit at the next tier-count slot (until then the tier-count check fails);axiom: n/a: PSID metadata registries; no RuleSpec or statute encoding
🤖 Generated with Claude Code