N/A after NumPy masked find: hand off result dtype with valid fill metadata
After a dtype change, check whether fill_value is representable under the result contract.
Metadata behind the visible result
After a dtype change, check whether fill_value is representable under the result contract. Include actual result fill metadata and its validity evidence in Truthound inputs. A visible integer result does not establish that the next team’s view operation can use it. [1, 2, 3]
An old fill exposed by view
NumPy #32401 reports a string masked-array find result with int64 dtype inheriting string fill_value N/A, failing later at view. Printing and indexing can appear normal beforehand. A legitimate find result -1 differs from a fill -1, so retaining the mask is essential to interpretation. [1]
Separate a legitimate -1 from missingness
Extract input and result dtypes and the actual fill_value type, comparing them with an approved result-fill policy. Withhold incompatible output and verify an explicit valid fill. The operator checks representability and keeps legitimate -1, missing mask and fill policy distinct instead of discarding the mask after producing a flag. [1, 3]
The fill-representability reference
The illustrative result dtype is int64 with approved integer fill -1. It is representable, so validity true meets that condition. Inheriting string N/A gives false and fails. A true flag still does not distinguish a legitimate unmatched -1 from missing data; preserve their mask semantics separately. [1, 3]
A bounded validity-flag comparison
Truthound Core Python SDK 3.3.2 can compare prepared required_validity and fill_value_valid_for_result_dtype through ColumnPairValidator with relationship="==". The operator supplies a safe representability test and non-missing flags. The SDK does not repair MaskedArray metadata or view, and true does not establish semantic separation of normal and missing values. [1, 2, 3]
Reconstruct while preserving meaning
Specify a verified result fill_value or retain data and mask separately for semantic reconstruction. Pass on existing evidence if the same dtype transition and view consumer are already verified. Replacing N/A with 0 merely to remove an exception still requires rechecking the original mask contract. [1, 3]
Application conditions
Validate actual fill representability for the result dtype, keeping the mask, legitimate -1 and fill meaning distinct.
Alternatives
Specify a verified result fill or preserve data and mask separately for semantic reconstruction.
Limitations
Core compares externally validated flags, does not repair metadata or view and cannot establish semantic separation from true.
Evidence
- Event checked
- Subject checked
- Modified
