QBI v2 engine: qualification derivations + host-conditioned SSTB (fail-closed) - #534
Draft
MaxGhenis wants to merge 11 commits into
Draft
QBI v2 engine: qualification derivations + host-conditioned SSTB (fail-closed)#534MaxGhenis wants to merge 11 commits into
MaxGhenis wants to merge 11 commits into
Conversation
Contributor
Author
|
Note on CI: the PR gate triggers on base=main only, so no checks run while this is stacked on |
This was referenced Jul 25, 2026
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.
Summary
Builds the v2 machinery on top of the #532 fidelity port, per the evidence-anchored spec on #530. v1 remains the production default; v2 fails closed until crosswalk content and published priors land.
qbi_assumptions_v2.json+ loader: per-source qualification asderived|priorwith a rationale string each; ansstb_classificationblock (crosswalk resource, ambiguous prior, passive pass-through SSTB priors by AGI band); per-family independent rng streams — removing one family's draws leaves every other family's stream byte-identical (proven by test).business_is_sstbfrom host occupation through the versioned crosswalk (clear/non-SSTB deterministic; ambiguous → seeded Bernoulli), passive pass-through income draws from AGI-band priors, then the SE split and SSTB W-2/UBIA pools reroute and the mutually-exclusive qualification routes re-derive — ending in a state that satisfies every existing reconciliation invariant.sstb_crosswalk_placeholder.jsonships with"status": "placeholder"; running v2 against it outside tests raises.AGIandPEIOOCCbut no detailed industry, so the spine is occupation-first with an explicitindustry_column: nullseam and a synthetic industry-primary test for the future wire-up.Verification (supervisor, independent)
qbi_assumptions_v2.jsonandsstb_crosswalk_placeholder.json; both declared incountry_package.json.Awaiting content (v2 stays fail-closed until then)
Refs #530
🤖 Generated with Claude Code