An offline robot report expects two observation rows, but its candidate result contains only one channel vector. A numerical comparison returns True. That Boolean can be correct under NumPy's broadcasting rules while the candidate still fails the report's record-count requirement.
The issue is not necessarily a loose numerical tolerance. An original fixture produces the same outcome with both tolerances set to zero. Treat shape and observation coverage as separate questions before using allclose to decide whether corresponding numerical results agree.
Declare the records before comparing values
The synthetic reference is a float64 array with rows [4,7,13] and [4,7,13]. Its shape is (2,3). For this example, the first axis names two required observations and the second names three channels. These invented numbers have no physical unit and are not a robot calibration, a sensor trace, or a production test result.
The candidate is a one-dimensional float64 array [4,7,13], with shape (3,). It contains three numerical entries instead of the reference's six. The declared interface requires a two-row result even when both observation rows happen to contain equal values. It does not permit one shared channel vector as an alternative representation.
That last sentence matters. Another application could deliberately allow broadcasting a shared vector. This fixture tests a stricter record-preserving interface, so the expected shape belongs to the comparison contract rather than being inferred from the numbers.
Inspect the Boolean that actually returned
The local NumPy 2.5.2 call np.allclose(candidate,reference,rtol=0,atol=0) returns True. The candidate's three-channel dimension matches the reference's trailing dimension. Broadcasting supplies the same candidate values for comparison against each reference row.
Every resulting numerical comparison is exact in this fixture. Tightening tolerances cannot reveal the absent observation row because there is no numerical difference after that broadcast. The predicate has answered whether broadcast-compatible values are close, not whether both arrays contain the same population of records.
Giving the candidate a leading singleton dimension does not change this result. The array [[4,7,13]] has shape (1,3), and allclose still returns True against the (2,3) reference at zero tolerances. It is now explicitly two-dimensional, but it still contains only one observation row under the declared interface.
Use an independent structural check
The separate array_equal reference requires matching shapes as well as matching elements. Both the (3,) candidate and the (1,3) candidate return False when compared with the (2,3) reference through array_equal. An independent complete copy of the reference returns True.
For an approximate numerical comparison, a proposed helper first requires candidate.shape == reference.shape, then applies allclose with the chosen tolerances. The local fixture uses short-circuit evaluation of that conjunction. Both incomplete candidates are rejected at the shape condition; the complete copy satisfies both conditions.
This is not a claim that array_equal is a drop-in replacement whenever a calculation has rounding error. Exact element equality and approximate agreement ask different numerical questions. The structural guard can remain the same while the later numerical predicate follows the precision policy appropriate to the calculation.
Check a nonrepeating reference too
A contrasting reference keeps [4,7,13] in its first row but changes the second to [5,8,14]. Against that reference, the one-dimensional candidate returns False from allclose at zero tolerances. The candidate no longer matches the second row after broadcasting.
This negative result does not make the comparison structurally safe. It shows that the missing-row defect can be exposed or hidden by the particular values. A test set using only distinct observation rows may therefore fail to reveal that a helper accepts an incomplete representation when observations repeat.
Include the repeated-row case deliberately. Equal observations are possible in a numerical interface, and a contract requiring separate records should preserve their count even when their channel values agree. Distinct timestamps or identities would need their own aligned checks; matching a numeric matrix does not certify those external labels.
Test tolerance only after structure agrees
The fixture next uses a complete (2,3) candidate and adds 0.002 to its final entry. The shapes now agree. With relative tolerance zero and absolute tolerance 0.001, the proposed guarded comparison returns False. With absolute tolerance 0.003, it returns True.
The recorded maximum error is approximately 0.002, with the ordinary floating-point representation difference retained in the proof. Array_equal returns False for this perturbed candidate because its final element differs. These outcomes isolate numerical policy from the missing-record issue rather than treating every False result as the same failure.
The chosen tolerances are only illustrative values for unitless synthetic numbers. They are not calibration limits, motion acceptance bounds, or a specification for a particular robot. Physical units and calculation uncertainty must inform any real numerical threshold.
Do not reshape away the evidence
For the incomplete candidate, adding a singleton dimension merely made its shape (1,3). Repeating that row to create a (2,3) array would introduce a separate data-production operation. It would not prove that two independent records were originally computed or acquired.
Likewise, flattening arrays can discard axis meaning before a comparison. Keep the required dimensions and their labels attached to the expected result. A fix should correct the producer or explicitly change the interface contract, rather than manufacture matching dimensions just to satisfy a predicate.
A proposed comparison receipt records expected and observed shapes, axis meanings, element counts, dtype assumptions, the numeric predicate, and its tolerances. It keeps structural and numerical outcomes separately so that a True broadcast comparison cannot be reported as complete record coverage.
Sources checked November 18, 2026:
NumPy, numpy.allclose, version 2.5 manual:
https://numpy.org/doc/stable/reference/generated/numpy.allclose.html
NumPy, numpy.array_equal, version 2.5 manual:
https://numpy.org/doc/stable/reference/generated/numpy.array_equal.html
Python 3.14.7 and NumPy 2.5.2 produced the isolated calculations. All arrays, numerical perturbations, and proposed receipt checks are original T-800 editorial work, not source examples or a deployed robot validation suite.
Illustration: an AI-generated concept contrasts two expected observation rows with one supplied channel vector. Its True label describes only the synthetic allclose predicate, not acceptance of the incomplete record set.