Add query-conditioned observability for partial 4D gauges - #338
Merged
Conversation
FlorianPfaff
marked this pull request as ready for review
August 27, 2026 20:35
Member
Author
|
Validation is complete on head Green workflows:
The PR is now ready for scientific review. Its claim boundary remains deterministic mechanism/software evidence only; the PointWorld/Flat'n'Fold source qualification and later garment-disjoint held-out experiment remain the material empirical gate. |
This was referenced Aug 29, 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.
Purpose
Turn the recently added observable-subspace Sim(3) factor into a decision-relevant scientific kernel.
A rank-deficient overlap may locate points on its observed support while leaving an off-support physical query dependent on an unobserved gauge direction. Pooled point error and a favorable average covariance reduction do not identify that distinction. This PR projects a partial gauge likelihood through a declared downstream query and makes exact fallback possible before BayesianPhysTwin consumes the candidate.
This is the method-level bridge needed by #49 and the PointWorld/Flat'n'Fold path in #333. It does not open any protected target outcome.
Method
For a query Jacobian
J_qin the centroid-normalized Sim(3) chart and a declared positive-definite output metric, the new kernel reports:Direct geometric support is deliberately separated from variance reduction transmitted only through prior correlation. A source-frozen three-criterion gate returns stable rejection reasons but does not alter the factor, invent a ridge, or implement fallback; BayesianPhysTwin remains responsible for exact caller-owned fallback.
A point-position Jacobian helper covers endpoint, marker, contact, and probe-position queries. Arbitrary nonlinear physical queries can supply their own local Jacobian and output metric.
Deterministic failure control
The checked evidence isolates one unobservable rotation-about-line direction under a complete identity prior and one frozen gate:
The last arm is intentionally invalid. It demonstrates that query conditioning cannot repair a factor that has already fabricated information in its nullspace; preserving rank deficiency is necessary.
Files
src/prob4d/query_observability.py: reports, gate, and point-query Jacobian;src/prob4d/query_observability_study.py: deterministic analytic control and CLI;evidence/query-observability-control-v1/result.json: checked mechanism evidence;tests/test_query_observability.py: eight focused tests, including prior-correlation and evidence-drift controls;docs/query-conditioned-observability.md: derivation, claim boundary, and prospective real-provider design.Paper path
This supports a focused Prob4D companion-paper thesis:
The material claim still requires one fresh real action-conditioned provider. The documented promotion path is PointWorld on garment-disjoint Flat'n'Fold groups, with source-only support/calibration, persistent sparse identities, frozen query metrics and thresholds, full-rank/ridge failure controls, grouped proper scores, accepted-update harm, worst-group regret, and exact fallback. Provider competence and downstream BayesianPhysTwin value remain separate endpoints. Causal4D is optional downstream evidence and cannot rescue an upstream failure.
Validation before push
The new module, study, and tests were syntax-checked locally. An isolated execution using the declared analytic factor passed all 8 focused tests and reproduced the checked JSON exactly.
Claim boundary
This PR establishes software and deterministic mechanism evidence only. It does not establish real-provider competence, held-out calibration, BayesianPhysTwin benefit, Causal4D benefit, deployment safety, or state of the art.