Upgrade a serialized DPprior object conservatively
upgrade_DPprior_object.RdConverts an exactly recognized DPprior 1.1 fit or diagnostics object into
the canonical result schema. A migrated fit never inherits the former
success or converged claim: it remains approximate and unverified because
v1.1 did not serialize candidate-selection and independent-verifier lineage.
Arguments
- x
A canonical object, or an exactly recognized DPprior 1.1 fit or diagnostics object.
- verify
Logical. For fits, record a fresh fixed-candidate numerical audit without changing the candidate or scientific status. Diagnostics migration requires
TRUEand recomputes all metrics froma,b, andJ.- M_verify
Optional current verifier order used only for the fresh migration audit or diagnostics recomputation.
- allow_legacy
Logical. When
TRUE, only migrated A1 and retained legacy Dual-Anchor fits may be usable approximations. It never makes an A2, hard, or soft result decision-ready.
Value
A validated canonical object. Current dpprior.result/1,
dpprior.target/1, and dpprior.weight-target/1 inputs are
returned after validation. An exactly recognized 1.1 object is converted
conservatively and retains explicit migration and quarantine evidence;
it is never promoted to a verified current calibration merely because a
fixed-candidate audit succeeds. The input is not modified.
Details
Objects that are not exactly recognized fail closed with a typed serialization condition. Refit with the current API when decision-ready calibration is required; compatibility views are not scientific fields.