Verify-Tasks Report: 002-float-btree-ops
⚠️ FRESH SESSION ADVISORY: For maximum reliability, run /speckit.verify-tasks.run
in a separate agent session from the one that performed /speckit.implement.
The implementing agent’s context biases it toward confirming its own work.
(This run was made by a fresh agent with no implementation context.)
| Field |
Value |
|---|
| Date |
2026-11-27 |
| Feature dir |
specs/002-float-btree-ops (passed directly; check-prerequisites.sh not run because master does not resolve to this feature) |
| Repo state |
master @ 394a675, clean |
| Scope |
--scope plan-anchored: plan.md date 2026-01-11 → 33 commits since then (git log --since=2026-01-11). Not a shallow clone. |
| Completed tasks |
44 [X] tasks (tasks.md’s own summary says 36) |
| Extension hooks |
none (.specify/extensions.yml absent) |
| Walkthrough |
not run (step 6 and step 7 skipped by the caller’s brief) |
Citations — record (2026-11-30): this is a point-in-time audit. Every file:line citation in it refers to the tree at 394a675, and later commits on fix/002-verify-tasks move most of them. Read a cited line with git show 394a675:<file>, not in the working tree. The Resolution section and the record notes cite no line numbers.
Parsing warnings
WARNING: duplicate task IDs: T008, T009 and T010 each appear twice, at lines 35/51, 36/52 and 37/53. In this report the Phase 2 ones are T008(P2), T009(P2) and T010(P2), and the Phase 3 ones are T008(US1), T009(US1) and T010(US1).
- T013 is missing from tasks.md (sql/float_int_ops.sql:166 says it was removed as a duplicate). The summary table at tasks.md:171-179 (36 tasks) does not match the 44 checked tasks.
Execution evidence gathered this run
- Environment check:
pg_config is /opt/pg/install/bin/pg_config (PostgreSQL 18.6). The installed pg_num2int_direct_comp--1.0.0.sql, .control and .so are byte-identical to the tree (cmp). The .so was built 14:29 today, after the last commit touching pg_num2int_direct_comp.c (408a194, 12:58). A server is accepting connections on /tmp:5432. No sudo, no make install and no server start were needed.
- Command:
make installcheck EXTRA_REGRESS_OPTS="--outputdir=<scratchpad>/regress" (output kept out of the repo).
- Exit status: 0
- Summary:
ok 1..17, # All 17 tests passed. (numeric_int_ops, float_int_ops, index_usage, range_boundary, transitivity, edge_cases, comparison_exactness, null_handling, special_values, index_nested_loop, hash_joins, merge_joins, performance, selectivity, doc_examples, extension_lifecycle, returning_old_new)
- Caveat: a green run only proves the output matches the expected files. Several expected files record broken behaviour as correct (see T008(P2), T032a, T029a and T014a), so the green run does not make those tasks pass.
- Read-only catalog probes were run in
contrib_regression after the suite: pg_amop/pg_amproc per type pair, amvalidate() and session-local SET of the GUC. They changed nothing that persists.
Summary scorecard
| Verdict |
Count |
|---|
| ✅ VERIFIED |
17 (3 of them by execution) |
| 🔍 PARTIAL (code) |
9 |
| 🔍 PARTIAL (record) |
14 |
| ⚠️ WEAK |
1 |
| ❌ NOT_FOUND |
2 |
| ⏭️ SKIPPED |
1 |
| Total |
44 |
Flagged items
Layer key: L1 file existence, L2 changed in scope, L3 content match, L4 dead code, L5 semantic (interpretive). + positive, - negative, n/a not applicable.
❌ NOT_FOUND
T030 (tasks.md:102): Run doc-example-reviewer and verify 100% compliance
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| n/a |
n/a |
n/a |
n/a |
- |
⚠️ Interpretive: the tree contradicts the claim of 100% compliance. The README GUC example (README.md:442-459) says off produces Filter: ('10'::double precision = ...). Its test, sql/doc_examples.sql:429-449, records ERROR: unrecognized configuration parameter (expected/doc_examples.out:656) and then the same transformed plan, (integer_column = 10), for both off and on. A reviewer comparing the documented output with the test output would have caught this. No review record exists.
T031 (tasks.md:103): Measure final word count and verify ≥20% reduction
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| n/a |
n/a |
n/a |
n/a |
- |
⚠️ Interpretive: wc -w over README.md plus doc/*.md gives 11,233 before the feature (1ebe0d6), 11,645 at the feature merge (10f1844, +3.7%), and 9,922 at HEAD (−11.7%, partly because doc/api-reference.md was deleted later). The target of ≤8,987 (plan.md:117) was never met, and no final measurement is recorded anywhere.
🔍 PARTIAL (code)
T008(P2) (tasks.md:35): Add GUC pg_num2int_direct_comp.enable_support_functions with DefineCustomBoolVariable in _PG_init()
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| n/a |
n/a |
- |
n/a |
- |
The GUC is registered as pg_num2int_direct_comp.enableSupportFunctions (pg_num2int_direct_comp.c:414), not as the name in the task and in FR-014 (spec.md:94). That registered GUC works: in a live probe, enableSupportFunctions = off leaves (v = '10'::double precision). The documented name enable_support_functions is never registered. SET on it only creates a placeholder with no effect, because the prefix is not reserved. SHOW on it before the library loads fails (expected/extension_lifecycle.out:449). The rename already happened inside this feature: d9e2197 is the first commit whose expected output records the ERROR.
T026a (tasks.md:97): README GUC configuration section
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| + |
+ |
+ |
n/a |
- |
The section exists (README.md:424-460), but every name and example in it uses the unregistered enable_support_functions, and its “off” plan output (README.md:454) is not what the server produces. A user who follows the doc gets no effect. Fixing T008(P2) fixes this too.
T029a (tasks.md:101): GUC usage examples in sql/doc_examples.sql
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| + |
+ |
+ |
n/a |
- |
The examples are present (sql/doc_examples.sql:429-449). The expected output records an ERROR on SHOW (expected/doc_examples.out:656, doc_examples_1.out:658) and identical plans for off and on. So the test records the defect as its expected output instead of checking that the GUC works.
T032a (tasks.md:114): GUC configuration testing in sql/extension_lifecycle.sql
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| + |
+ |
+ |
n/a |
- |
sql/extension_lifecycle.sql:288 says that with the GUC off the plan “should show cross-type comparison”. The expected output (expected/extension_lifecycle.out, the guc_test block after line 449) shows the transformed '9007199254740992'::bigint filter in both modes and starts with the SHOW ERROR. The block then prints 'GUC configuration test passed' unconditionally (sql:308). The test records whatever output it got and checks nothing.
T016 (tasks.md:72): Transitivity test, int4 = float4 = int4 chain
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| + |
+ |
n/a |
n/a |
- |
⚠️ Interpretive: sql/float_int_ops.sql:188-192 uses the constant 42 in every position, and its “transitive” column is 42::int4 = 42::int4, a built-in operator. The test cannot fail unless = itself is broken. It does not exercise the property US2 scenario 1 cares about (spec.md: only one integer equals a stored float near the precision limit, so a chain cannot link two different integers).
T017 (tasks.md:73): Transitivity test, int8 = float8 = int8 chain
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| + |
+ |
n/a |
n/a |
- |
⚠️ Interpretive: this is the same constant-only pattern as T016, with the value 1000000 (sql/float_int_ops.sql:195-199). Nothing is near 253, so it cannot catch a transitivity failure.
T018 (tasks.md:74): NaN transitivity (NaN = NaN, NaN > all non-NaN)
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| + |
+ |
n/a |
n/a |
- |
⚠️ Interpretive: the task claims a property for “all non-NaN” values. sql/float_int_ops.sql:202-206 checks one value (999999, labelled maxint although it is not the maximum) against int4 and int8 only. It does not check int2 or the int-on-left operators. NaN = NaN uses the built-in float=float operator, not the extension’s. A live probe of the untested pairs (int2, int8 max, int-on-left) shows the property does hold. The gap is test coverage.
T019 (tasks.md:75): ±Infinity ordering (-Inf < all ints < +Inf)
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| + |
+ |
n/a |
n/a |
- |
⚠️ Interpretive: sql/float_int_ops.sql:209-213 covers only float4 vs int4 and float8 vs int8 at their extremes. That is 2 of the 6 float x int pairs, in one direction only. int2, float4 x int8, float8 x int4 and int-on-left are untested. The live probe shows the property holds on those pairs too.
T036 (tasks.md:118): Run quickstart.md validation (execute all code blocks, verify expected output)
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| + |
+ |
n/a |
n/a |
- |
quickstart.md:69-87 runs ALTER OPERATOR FAMILY float4_ops USING btree ADD ..., and its cleanup pattern (quickstart.md:93-102) also uses float4_ops. That family does not exist: pg_opfamily has only float_ops. quickstart.md:26 still lists the deleted doc/api-reference.md. So the blocks cannot all have run cleanly, or the failures were not acted on.
🔍 PARTIAL (record)
T001 (tasks.md:18): Create new regression test file sql/float_int_ops.sql with stubs (merge join, catalog, transitivity)
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| + |
+ |
n/a |
n/a |
- (record) |
The file was created in 6e47d7f (2025-12-24, an earlier feature), and this feature only appended to it (sql/float_int_ops.sql:157-234). The merge join tests went into sql/merge_joins.sql, not this file.
T002 (tasks.md:19): Create expected/float_int_ops.out
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| + |
+ |
n/a |
n/a |
- (record) |
This file also already existed from 6e47d7f (2025-12-24). The feature appended to it; it did not create it.
T003 (tasks.md:20): Add float_int_ops to REGRESS in Makefile
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| + |
+ |
+ |
n/a |
- (record) |
float_int_ops was already in REGRESS at 6e47d7f (2025-12-24, Makefile:12 there). The task was a no-op.
T009(P2) (tasks.md:36): GUC checks in SupportRequestSimplify and SupportRequestIndexCondition
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| n/a |
n/a |
- |
n/a |
+ |
The Simplify check exists and works (pg_num2int_direct_comp.c:1131-1135). The SupportRequestIndexCondition handler was removed by feature 003 (a5851c9), so half of the task text is stale.
T008(US1) / T009(US1) / T010(US1) / T011(US1) (tasks.md:51-54): Merge join tests for int4/int8 x float4/float8 “in sql/float_int_ops.sql”
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| + |
+ |
- |
n/a |
n/a |
sql/float_int_ops.sql contains no merge join test (no EXPLAIN of a join). The four tests exist in sql/merge_joins.sql:228-266, each tagged with its task ID, and expected/merge_joins.out shows Merge Join and 1000 matches for all four pairs. The work is done; the task names the wrong file. Plans for the int2 pairs were added later, in 3737329.
T012 (tasks.md:55): pg_amop verification for float_ops btree (expect 60 entries)
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| + |
+ |
+ |
n/a |
- (record) |
The query (sql/float_int_ops.sql:161-164) counts the whole family and expects 95, not the 60 in the task text. It does not single out the float entries. The 95 is correct: 20 built-in + 15 int same-type + 60 int x float. A per-pair catalog probe confirmed all 24 int x float pairs have strategies 1-5 and the right FUNCTION 1. The count would catch a missing entry, but not say which one.
T014 (tasks.md:56): pg_amop verification for integer_ops float entries (expect 70 entries)
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| + |
+ |
+ |
n/a |
- (record) |
As with T012, the query (sql/float_int_ops.sql:169-172) counts the whole family and expects 150, against 70 in the task text. A per-pair probe confirmed the 10 float same-type and 60 cross-type entries.
T014a (tasks.md:57): pg_operator query confirming MERGES on equality operators (FR-008)
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| n/a |
n/a |
+ |
n/a |
- (record) |
The query in sql/float_int_ops.sql:174-180 is a count snapshot that also includes built-in operators. It recorded 28 while =(int2,float4), =(int2,float8) and =(int4,float8) lacked MERGES, and was re-recorded as 31 in 3737329 (2026-11-25). It recorded the bug as correct rather than detecting it. A real check now exists in sql/merge_joins.sql:174-186: it lists extension equality operators lacking MERGES, and the expected result is none. That check was added outside this feature.
T023 (tasks.md:93): README “Why Custom Operators?” section
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| + |
+ |
- |
n/a |
n/a |
No heading with that title exists. The concern is answered by “Why not just fix the application to use consistent types?” (README.md:64) and “What’s the risk of custom operators?” (README.md:74), which were present at the feature merge.
T027 (tasks.md:98): doc/api-reference.md float btree family information
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| - |
+ |
n/a |
n/a |
n/a |
doc/api-reference.md was deleted in 0903430 (2026-01-15, “moved into operator-reference”). The float btree family information is in doc/operator-reference.md:144-167.
T035 (tasks.md:117): Verify all pg_amop entries removed after DROP EXTENSION via catalog query
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| n/a |
n/a |
n/a |
n/a |
- (record) |
The leftover queries (sql/extension_lifecycle.sql:140-169) check only int4 x int4 in numeric_ops and the 60 int x float cross-type entries per family. They do not check the 15 int same-type entries added to float_ops or the 10 float same-type entries added to integer_ops. Those entries are still covered indirectly: the second CREATE EXTENSION would fail with “already exists” if any were left. A static diff shows all 174 float-related btree ADDs have a matching DROP in the cleanup array. The property holds, but “all entries via catalog query” overstates what the query checks.
⚠️ WEAK
T022 (tasks.md:92): Measure baseline word count (11,234)
| L1 |
L2 |
L3 |
L4 |
L5 |
|---|
| n/a |
n/a |
n/a |
n/a |
+ |
⚠️ Interpretive: plan.md:116 records 11,234, and wc -w at 1ebe0d6 gives 11,233. That is consistent, but there is no artifact of the measurement itself.
Verified items
| Task |
Line |
Note |
|---|
| T004 |
31 |
float_ops: all 12 int x float4 / float4 x int pairs, strategies 1-5 + FUNCTION 1 (sql:2255-2364; live catalog) |
| T005 |
32 |
float_ops: all 12 int x float8 pairs likewise |
| T006 |
33 |
integer_ops: float4/float8 same-type + 24 cross-type pairs (sql:2368-2471). It does not add float4 x float8 cross-type (not required by FR-007) |
| T007 |
34 |
Every float-related btree ADD (174) has a matching DROP in the cleanup array |
| T010(P2) |
37 |
All 18 extension = operators have MERGES now; 3 lacked it until 3737329 (2026-11-25) |
| T015 |
58 |
✅ VERIFIED (by execution): float_int_ops passes |
| T020 |
76 |
Boundary pairs at 224 and 253 (sql:216-220) |
| T020a |
77 |
EXPLAIN shows the chain collapsed to Filter: (val = 42). This is a single-column chain of constants, so it shows simplification (SC-003) rather than inference between columns |
| T021 |
78 |
✅ VERIFIED (by execution) |
| T024 |
94 |
README “precision loss” mentions 10 → 4, boundary literals 23 → 12 |
| T025 |
95 |
Equivalence table, README.md:376-392 (FR-013 both forms) |
| T026 |
96 |
“Int × Float Merge Joins Not Supported” limitation removed |
| T028 |
99 |
All 36 float function names in the operator tables exist in the install script |
| T029 |
100 |
README examples covered in sql/doc_examples.sql (adapted to temp tables) |
| T032 |
113 |
DROP/CREATE cycle with float family checks, sql/extension_lifecycle.sql:151-198 |
| T033 |
115 |
Expected cleanup counts 0/0/0 and recreated counts 60/60 |
| T034 |
116 |
✅ VERIFIED (by execution): 17/17 pass, exit 0 |
Unassessable items
| Task |
Line |
Reason |
|---|
| T003a |
21 |
A past test failure leaves no artifact. History shows tests (d4e59cc) committed after the implementation (4bddf56), with no commit where the tests fail |
Observations outside the task record
amvalidate() returns false for float4_ops, float8_ops, int2_ops, int4_ops and int8_ops: “operator family float_ops / integer_ops … is missing cross-type operator(s)”. float_ops gets int2/int4/int8 same-type entries but not int2 x int4 and the other int x int pairs; integer_ops gets float4 and float8 but not float4 x float8 or numeric x float. The families are incomplete. This is design work for /speckit.converge, not a false check mark. — record: the float_ops gap made int x float x int join chains with two integer widths fail to plan (“operator N is not a member of opfamily 1970”). 1.0.1 (2026-11-30) adds the int x int pairs to float_ops and float4 x float8 to integer_ops; float_ops now validates, and integer_ops lacks only numeric x float, which the extension does not provide. See sql/cross_width_chains.sql.
- README.md:303 says all six operators, including
<>, are registered in the btree families. Btree has only strategies 1-5, and pg_amop confirms <> is not registered.
- SC-004 (spec.md:111) still describes
float4_ops and float8_ops families (30 + 30). PostgreSQL has a single float_ops family.
Machine-parseable verdicts
| Task |
Verdict |
Summary |
|---|
| T001 |
🔍 PARTIAL (record) |
file pre-existed (6e47d7f); merge join tests live in merge_joins.sql |
| T002 |
🔍 PARTIAL (record) |
expected file pre-existed (6e47d7f) |
| T003 |
🔍 PARTIAL (record) |
float_int_ops already in REGRESS before feature |
| T003a |
⏭️ SKIPPED |
historical failing-run claim, no artifact |
| T004 |
✅ VERIFIED |
float_ops int x float4 entries complete |
| T005 |
✅ VERIFIED |
float_ops int x float8 entries complete |
| T006 |
✅ VERIFIED |
integer_ops float entries complete (70) |
| T007 |
✅ VERIFIED |
all 174 float btree ADDs have DROPs |
| T008(P2) |
🔍 PARTIAL (code) |
GUC registered as enableSupportFunctions; documented name is a no-op placeholder |
| T009(P2) |
🔍 PARTIAL (record) |
IndexCondition handler removed by feature 003 |
| T010(P2) |
✅ VERIFIED |
18/18 = ops MERGES (fixed 3737329) |
| T008(US1) |
🔍 PARTIAL (record) |
test in merge_joins.sql, not float_int_ops.sql |
| T009(US1) |
🔍 PARTIAL (record) |
test in merge_joins.sql, not float_int_ops.sql |
| T010(US1) |
🔍 PARTIAL (record) |
test in merge_joins.sql, not float_int_ops.sql |
| T011 |
🔍 PARTIAL (record) |
test in merge_joins.sql, not float_int_ops.sql |
| T012 |
🔍 PARTIAL (record) |
whole-family count 95, task says 60 |
| T014 |
🔍 PARTIAL (record) |
whole-family count 150, task says 70 |
| T014a |
🔍 PARTIAL (record) |
snapshot count (recorded 28 while broken); real check in merge_joins.sql |
| T015 |
✅ VERIFIED (by execution) |
float_int_ops passes |
| T016 |
🔍 PARTIAL (code) |
constant-only chain, cannot fail |
| T017 |
🔍 PARTIAL (code) |
constant-only chain, cannot fail |
| T018 |
🔍 PARTIAL (code) |
“all non-NaN” sampled: 1 value, int4/int8, one direction |
| T019 |
🔍 PARTIAL (code) |
“all ints” covered for 2 of 6 pairs, one direction |
| T020 |
✅ VERIFIED |
boundary pairs at 224/253 |
| T020a |
✅ VERIFIED |
EXPLAIN shows simplified chain |
| T021 |
✅ VERIFIED (by execution) |
float_int_ops passes |
| T022 |
⚠️ WEAK |
baseline number consistent, no measurement artifact |
| T023 |
🔍 PARTIAL (record) |
heading differs; concern addressed at README.md:64,74 |
| T024 |
✅ VERIFIED |
duplicate precision text reduced |
| T025 |
✅ VERIFIED |
equivalence table README.md:376 |
| T026 |
✅ VERIFIED |
int x float merge join limitation removed |
| T026a |
🔍 PARTIAL (code) |
documents a GUC name that does not exist |
| T027 |
🔍 PARTIAL (record) |
api-reference.md deleted; content in operator-reference.md |
| T028 |
✅ VERIFIED |
36 float functions tabulated, all exist |
| T029 |
✅ VERIFIED |
README examples tested |
| T029a |
🔍 PARTIAL (code) |
expected output records ERROR and identical plans |
| T030 |
❌ NOT_FOUND |
100% compliance contradicted by GUC examples |
| T031 |
❌ NOT_FOUND |
word count +3.7% at merge, −11.7% now; target −20% |
| T032 |
✅ VERIFIED |
DROP/CREATE cycle covers float families |
| T032a |
🔍 PARTIAL (code) |
test records GUC no-op as pass |
| T033 |
✅ VERIFIED |
expected cleanup output present |
| T034 |
✅ VERIFIED (by execution) |
17/17 pass |
| T035 |
🔍 PARTIAL (record) |
catalog query checks a subset; rest implied by re-CREATE |
| T036 |
🔍 PARTIAL (code) |
quickstart uses nonexistent float4_ops family |
Resolution (2026-11-27, branch fix/002-verify-tasks)
The findings above describe master @ 394a675 and are kept as recorded. They were addressed as follows; make installcheck passes 17/17 on PostgreSQL 18 afterwards (PostgreSQL 16, 17 and 19 not run locally; expected/doc_examples_1.out was patched by hand with the same change).
| Finding |
Resolution |
|---|
| T008(P2), T026a, T029a, T032a |
GUC registered as pg_num2int_direct_comp.enable_support_functions (the documented name) and the prefix reserved with MarkGUCPrefixReserved. Expected outputs now show SHOW returning on and different plans for off and on. The unconditional “passed” line was removed, and a misspelled name is checked to be rejected. README example output corrected, plus a note that SHOW fails until the library loads. CHANGELOG notes the rename from the 1.0.0 name. |
| T016, T017 |
Rewritten: stored float values at and above 224 / 253; at most one integer equals each, and a = f AND f = c implies a = c. |
| T018, T019 |
Extended to all 6 float x int pairs, both operand orders, at min/-1/0/1/max. |
| T012, T014 |
Per-pair completeness check added (strategies 1-5 + FUNCTION 1 in both families); task text corrected to 95/150 whole-family. |
| T014a |
Snapshot count replaced by a query listing int x float = operators lacking MERGES (expected none). |
| T035 |
Post-DROP check extended to int same-type entries in float_ops and float same-type entries in integer_ops (pg_amop and pg_amproc). |
| T036 |
quickstart.md uses float_ops and no longer lists doc/api-reference.md; merge join block re-run, shows Merge Join. |
| T030, T031 |
Unchecked in tasks.md: reviewer never run; word-count target not met. |
| T001-T003, T003a, T009(P2), T008-T011(US1), T022, T023, T027 |
Record notes added in tasks.md. |
| Duplicate IDs, summary table |
Phase 2 T008-T010 renumbered T007a-c; summary table now 44 tasks. |
README <> claim, SC-004 |
Corrected. |
| T007, T010(P2) and the other VERIFIED items |
No change needed. |
amvalidate() false for float_ops/integer_ops |
Not addressed: the families lack some cross-type operators (for example int2 x int4 in float_ops, float4 x float8 in integer_ops). This is design work. |