Skip to content

research: Qwen packed DeltaNet trace CPU reference, one head, layer 0 (#240) - #247

Merged
wakesync merged 15 commits into
mainfrom
research/1129-qwen-packed-trace-ref-240
Dec 1, 2026
Merged

wakesync merged 15 commits into
mainfrom
research/1129-qwen-packed-trace-ref-240

Conversation

@wakesync

@wakesync wakesync commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Part of #240

Draft. A CPU reference of the packed DeltaNet trace for one head (layer 0, V head 0, real stock weights, the first 4 tokens of the fixture prompt from sequence start, PR #68 integer head at F = 12), counted against DESIGN 7.3 / count_m3.py (85,861.33 limbs per V head per token, 95,057,841 entries per token). Count and layout only. No proof.

Registered verdict: M2 replay PASS; packed-output equality FAIL (69/512 coordinates differ). Criterion 2 passes on the M2 replay reading; the historical checker omitted the reciprocal remainder bound. It fails if the registered output is the stored y. S' and o match; packed y differs from M2 in 24, 2, 25 and 18 channels by token. The post-review diagnostic checks every recomposition and 0 <= on_rr < on_sigma; all stored fixture values fit and all four reciprocal remainders are valid.

  • Count: 88,703 1/3 limbs per V head per token; ratio 1.033099882. Both follow from preassigned widths, dimensions and sharing, including 42 scalar limbs and the choice to store 2,816 additional remainder limbs. Computable before any run; synthetic input gives the same count. Criterion 1 cannot fail here. Only criterion 2 measures values. Five identical runs test determinism on one input, not replication.
  • Full model: 97.8M entries/token substitutes the fixed count into count_m3, with the unverified 1.27 overhead and inherited dense counts. Not measured memory, fit or prover size.
  • Merged M3 design erratum: s, SiLU q and SiLU k all have two limbs. Their fixture maxima (20,264, 7,319, 10,639) fit; the pinned table maximum does not (32,741 > 32,639). Widening all three would cost +213 1/3 limbs/head/token (+0.25% of the design count, about +0.21M modeled entries/token). The synthetic maximum 48,986 is unclamped, not a table output. The erratum needs its own issue. Widths and registered counts are unchanged.

Files: experiments/20261129-240-qwen-packed-trace-ref/ (PREREG first and alone, RESULTS, ENV, runs), research/operators/qwen_packed_ref/ (new, enforces nothing, listed under excluded in the inventory as qwen_m3 is). No existing prover or verifier code is changed. The original nine run files are unchanged; new diag- files are outside the registered verdict.

Deviation: PR #231's data has no embedding rows and no input norm. I fetched 51,200 bytes (4 embedding rows and the layer-0 input norm) and checked each against its SHA-256 in the merged manifests. The issue said "no other fetch".

Where the issue text was off (details in RESULTS, "Provenance and deviations"): FIXTURE is defined in PR #88's q1_forward.py. The M2 reference it names (reference_m2.py) is synthetic only, so the real-weight head comes from PR #68's real_head.py. The issue's 95,057,841 and 88% are what main's count_m3 produces (checked).

NOT established: any proof, CUDA, relation or the 1.27 factor; other inputs, heads, layers or windows; the M3 arithmetic (the arrays hold M2 harness values, and s, t, y are formed here); the low-rank form; the chunk handoff; accuracy; replication.

Proposed claim: none public. The results.yaml row is qwen-packed-trace-ref-240. Must merge with a merge commit because it adds results.yaml metrics.

Conflicts: research/results.yaml, README.md, CLAIMS.md. results.yaml is main's file plus this PR's own entry (qwen-packed-trace-ref-240), unchanged and appended at the end. README/CLAIMS take main's side here and are regenerated in the following commit after the merge makes the metric commits available in branch history; README stamp is main's verbatim.
…9d2b

scripts/update-results.py after the merge commit (77 results); stamp line kept as main's verbatim. Adds this PR's row for qwen-packed-trace-ref-240 to the README block and CLAIMS.md on top of main's; no other change.
@wakesync

Copy link
Copy Markdown
Owner Author

Main sync: merged main fef9d2b800b49a2d3eefb45dda82c58474cc25d4 into this branch with a merge commit (no rebase, no force-push). New head 72992e8b84940082461d8868b31c4f204b0f5c65 (merge 06177f73, then a regeneration commit). Conflicts were only in research/results.yaml, README.md and CLAIMS.md; research/coverage/inventory.yaml merged cleanly.

Proofs: research/results.yaml minus this PR's entry qwen-packed-trace-ref-240 equals main's file byte for byte (sha256 05338b46...1fa0 on both); that entry is byte-identical to the previous head 2341b411; 77 ids, all unique, this PR's last. README/CLAIMS were regenerated with scripts/update-results.py (stamp line kept as main's) and differ from main by this PR's row only. All 12 files in experiments/20261129-240-qwen-packed-trace-ref/ and the 5 other non-generated paths this PR changes are byte-identical to 2341b411; the other 3,824 experiments/ paths are byte-identical to main. update-results.py --check, check-claims.py, check_inventory.py and the host-path guard all pass on the merged tree.

@wakesync

Copy link
Copy Markdown
Owner Author

REQUEST CHANGES at 72992e8

class A, Opus review, same model family as the author, second family not available; this verdict does not by itself allow a merge

The code does what it says. I reran it and recomputed it myself, and the numbers agree. What needs changing is the wording, on two points. First, the count of 88,703.33 and the ratio of 1.0331 are arithmetic on limb widths written into the PREREG. They do not depend on the values. Criterion 1 could not have failed on any input. Second, the s finding also applies to SiLU q and SiLU k.

What I checked myself

  • History (check 1). 838c388 holds PREREG.md alone (02:48). A1 (3b3a2e3, 02:56:48) only appends 2 lines to the Amendments section. The bar 0.9 to 1.1 and both criteria are word for word in the first commit, and A1 changes no width, class or bar. The registered run starts at 02:57:01 and its source_sha256 ea4d0b5c is the committed packed_ref.py. The timeline has 7 commit events and no force-push. The run files and code are unchanged from df33b06 to the head.
  • Reproduce (check 3). I ran prepare.py in place: every SHA-256 matches the merged manifests, and inputs.json is byte-identical. I reran controls, debug and real into a private directory. Each has 0 field differences from the committed file once utc_start is ignored (my own walker, checked against a known-different pair). compare_runs.py over the 5 committed runs plus my rerun gives all identical.
  • Independent recomputation (check 4). This does not import the PR's scripts, only the merged real_head.py primitives and my own Python-integer limbs. Class edges: 2 limbs -32,896 .. 32,639, 3 limbs -8,421,504 .. 8,355,711. SiLU table v1 row 4,095 (input 7.996) gives 32,741, and rows 4,089 to 4,095 (7 rows, inputs 7.97 and up) are above 32,639. The design total from its own table is 85,861.33, or 85,845.33 without the flat 16. The PREREG's B and C widths alone, with no values, give 88,703.33 (B 42, C 2,816). I recomputed 11 arrays from values: S', rS, conv out v, v, s, M, rM, SiLU q, SiLU k, the k-norm remainder and the delta remainder. Count, min, max, limbs needed and out-of-class count agree with the PR's JSON, with one cosmetic exception (nonblocking 1).
  • Power (check 5), on copies of the real trace. s = 32,640 is caught and 32,639 passes. A t remainder of 4,096 or -1 is caught. A k-norm remainder of 2s is caught. S' = 8,355,712 is caught. The synthetic debug rerun gives s out of class on 16 of 512 values, max 48,986, as stated.
  • Hygiene (check 7). update-results.py --check passes (77 results, 1,222 metrics). check-claims.py, check_inventory.py and check-no-host-paths.sh pass. The scrub gives total_matches=0 on all 20 changed files, the 7 commit messages and the PR body. pr: is 247. Metric values equal runs/real-head0-T4.json. results.yaml is main's file plus this one row appended. README and CLAIMS each add exactly one row.
  • What is in the repo (check 8). inputs.json holds hashes, shapes and byte ranges only. The run files hold counts and per-array min and max of integer intermediates. No weight or embedding values are committed.
  • Sync (check 9). main..head has exactly the 20 PR paths, so every other experiments/ path equals main fef9d2b. The experiment directory, the operator directory and the inventory are identical to 2341b41.
  • Main (check 11). Main is still fef9d2b, so no merge-tree was needed.

Layout against the design (worries a, d)

Every width is a constant in LAYOUT (packed_ref.py lines 73 to 101). No width is derived from values. The values only decide the class checks and min_limbs_needed.

array design reference where the reference width comes from limbs per V head per token
S' 3 3 copied from the DESIGN 7.3 / count_m3 table 49,152
S' remainder 2 2 copied 32,768
conv out v, v, M, delta, o 3 each 3 each copied 384 each
w, s 2 each 2 each copied 256 each
t 3 3 copied 384
y 4 4 copied 512
conv out q, k (/3) 3 each 3 each copied 128 each
SiLU q, SiLU k, q^, k^ (/3) 2 each 2 each copied 85.33 each
scalars (a, beta, 3 norms) flat 16 42 the PREREG B list, set by the lane 42
remainders M, w (2^24) not listed 4 each PREREG C, the width of [0, 2^24) in balanced signed bytes 512 each
remainders delta, o, conv v, t, y, conv q, k not listed 2 each PREREG C, [0, 2^12) or [0, 2^8) 256 each, q/k 85.33
L2 remainders q, k (/3) not listed 5, 3 PREREG C 213.33, 128

All of 88,703.33 is arithmetic on these constants. The synthetic input gives the same 88,703.33. The measurement is criterion 2 only: these real values fit these widths.

On d: each floor does need its remainder checked against its exact class (DESIGN 5.0, 5.1, 5.3, 5.4). count_m3's packed count lists only S's remainder, and its "not committed (a lookup key)" variant is only for S. The design could argue that the other remainders are lookup keys inside the 1.27 factor, which is a Maverick ratio. RESULTS finding 2 says this is a design choice, and that is fair. The 2,816 is a lower count for committed remainders. It is not proof that the design is short.

Must-fix

  1. RESULTS.md lines 5, 9 and 26, the results.yaml summary and the notes on packedref_limbs_per_v_head_per_token and packedref_ratio_to_design (both n: 5), the README and CLAIMS row, the PR body and issue comment 7249860200. Say that 88,703.33 and 1.0331 follow from the registered widths alone: the same on the synthetic input, computable before any run, so criterion 1 could not fail. Say that the only measurement is criterion 2. Today RESULTS says "by construction" only for the 85,845.33 part, and the metric note calls the total "Measured (a layout count)". Also say that 5 identical runs show determinism, not replication: n should be 1, or the note should say so. Also say on each surface that 97.8M is not a memory or fit result. This is settled when each surface carries those sentences.
  2. RESULTS.md line 54 (finding 1), the PR body, the results.yaml summary and the issue comment. SiLU q and SiLU k also have 2 limbs from the same table (packed_ref.py lines 87 and 88), so the same 32,741 > 32,639 defect applies to them. Give the cost for all three: +213.33 limbs per V head per token (+0.25%), about +0.21M entries per token at the design's factor. That replaces "+128, +0.15%", which covers s only. Also say plainly that the criterion 2 PASS for s, SiLU q and SiLU k holds because this input stayed below 32,639 (s max 20,264), not because the design width holds the table.

Nonblocking

  1. packed_ref.py line 210 starts lo_v and hi_v at 0. So min_value is never above 0 and max_value never below 0. In the RESULTS range table, the "0 .." minimum for Rc and the L2 remainder of q is an artefact. The k-norm remainder's true minimum is 26, and the file says 0. min_limbs_needed is only made more conservative.
  2. On the registered input, conv out v reaches 122,142 (29.8 at 2^12), outside table v1's domain [-8, 8). An M3 table SiLU would not produce these v values. "Arrays hold M2 harness values" covers this, but one sentence would help.
  3. The arrays a prover would also commit are not laid out: lookup index cells and index remainders (DESIGN 5.2) and the 36-bit remainder of the M3 q form. So 88,703.33 is not an upper bound on what a prover commits.
  4. An earlier debug run is not disclosed: lane data debug-try1.json, 02:54:28, older code sha 07bd5059. It gives the same numbers and differs only in two array names. It is synthetic and does not touch the registered run, but the PREREG describes one debug run.
  5. The extra fetch of 51,200 bytes: PREREG "Input" names these tensors in the first commit, before any fetch, but calls it a deviation from the issue only in RESULTS. Each byte is SHA-checked against merged manifests (I reran this). Acceptable.
  6. Worry h: the excluded entry follows the inventory's own rule (lines 1001 and 1002) and matches qwen_m3. Its reason says no more than the README.

Main sync needed: no (main fef9d2b)
CI (check-runs API at 72992e8): guard success, claims success.
Skipped checks: none skipped outright. Check 6 covers the surfaces listed in must-fix 1 and 2, and I did not reread the generated CLAIMS row word by word apart from its diff.
A second reviewer should look first at whether the floor remainders (d) belong inside the 1.27 factor, and at must-fix 1.

For the person deciding on a waiver
A merge would put on main a CPU script, a run and a results row. It shows that one honest head (layer 0, V head 0, 4 tokens, M2 harness values with s, t, y formed by the lane) fits the design's limb widths, and that the design's 2-limb SiLU width cannot hold the table's top rows. It would NOT establish that the design's count is right to 3%. That ratio is arithmetic on widths chosen at registration, with no measurement in it. It also establishes no proof, relation, 1.27 factor, memory or fit, and no other input, head or layer. I am least sure about worry d: whether the non-S remainders are really missing from the design, or are meant to live in the 1.27 factor as lookup keys.

@wakesync

wakesync commented Dec 1, 2026

Copy link
Copy Markdown
Owner Author

REQUEST CHANGES at 72992e8
class A, gpt-6.2-astra review, second model family, independent of the Opus review

I reproduced the real and synthetic runs and independently rebuilt all 42 arrays from the pinned input bytes without importing repository code. The count arithmetic is right. But the packed output y differs from the M2 harness at 69 of 512 coordinates, one floor remainder is not checked, and 18 published minima are not observations. I would not merge the current PASS wording or the checker as it stands.

Must-fix

RESULTS below means experiments/20261129-240-qwen-packed-trace-ref/RESULTS.md; packed_ref.py is in research/operators/qwen_packed_ref/. Keep the original PREREG and run JSONs as history. Add dated corrections and separately named, source-pinned diagnostic runs; do not silently rewrite what ran.

  1. Name the output that was compared. packed_ref.py:186-195,256-269 compares y_h with run_int, but stores a different y in the layout. My independent M2 and packed calculations disagree on 24, 2, 25 and 18 channels in token order (max absolute differences 10, 3, 10, 9). This is expected: M2 uses its one-floor cg path, while the reference forms s,t,y locally. Add separately named M2-replay and packed-output comparisons, including a test or receipt with these counts. Correct RESULTS:5-10,26,67, operator README:7-17, the ledger row, generated rows and PR body. Report the two interpretations of the inconsistent PREREG: the M2 replay passes; if the registered y means the packed y, equality fails. Do not retain an unqualified PASS for packed y or change the arithmetic to make the two match.
  2. Check the reciprocal remainder. packed_ref.py:92-95,196-201,219-221,254-256 assigns no divisor to on_rr, though it is the remainder of 2^36 / on_sigma. On token 0, setting on_rr = on_sigma = 79 leaves criterion2_limbs_in_class true. Check 0 <= on_rr < on_sigma in the actual layout checker; include valid, equal-to-divisor and negative controls that exercise that path. Audit the norm's named square-root remainders/slacks against their stated ranges, or explicitly distinguish which bounds the checker tests. All four original reciprocal remainders are valid; the existing checker is not evidence that it tested them.
  3. Report actual extrema and all failed recompositions. packed_ref.py:210-218,225-231,256-268 includes an unobserved zero in every range and masks out-of-width values when counting recomposition failures. My true minima include kn_e1=3476, on_Rc=660764199, rem_qhat=179288 and rem_khat=26; 18 of 42 real rows have the wrong minimum. Seed 240 gives 16 s failures, yet reports zero recomposition mismatches and recomposition_exact=true. Initialize extrema from data and compare all recomposed values to the originals, or report separate clearly labeled conditional and unconditional counters. Add all-positive/all-negative and one-over-width controls, a new diagnostic receipt, and fix RESULTS:46-50. Neither fix changes the real limb total.
  4. Separate counts from measurements on every results surface. packed_ref.py:73-100,225-227,237-246, RESULTS:5-28,55, operator README:7-15, research/results.yaml:2099-2106, generated README/CLAIMS rows, PR body and issue comment 7249860200. All 88,703 1/3 amortized limbs and the ratio 1.033099882 follow from preassigned widths, dimensions and sharing, including the 42 scalars and 2,816 remainder limbs. Criterion 1 cannot fail on any input for this layout. What was measured is the values' fit, including actual recompositions and ranges. Say explicitly that five repeats test determinism on one input, not five observations of the count; use n=1 for the counted metrics or explain that distinction in each note. Call the remainder storage a layout choice. Wherever 97.8M appears, qualify it as a substitution with the unverified 1.27 overhead and inherited dense counts, not measured memory, fit, or prover size. Regenerate only this PR's rows.
  5. Account for all three two-limb SiLU outputs. packed_ref.py:82,87-88, RESULTS:40,44,54, and the same outward-facing summaries. Seven legal F12 table rows (4089-4095) exceed the two-balanced-byte top. This affects s, silu_q and silu_k. Their real maxima were 20,264, 7,319 and 10,639, respectively. All three fit this input, not the table image. The synthetic max 48,986 is unclamped M2 SiLU, not a table output. Widening s only costs +128 limbs per V head per token (+294,912 model limbs, about +124,805 modeled entries/token); widening all three costs +213 1/3 (+491,520 model limbs; 163,840 entries before overhead, about +208,008 with it). Three limbs suffice for the table, not for unbounded mathematical SiLU. Do not change the registered widths retroactively.

Layout against the design

Every width in this table is fixed before inputs are read. The last column is per V head per token; comma-separated names marked “each” have the same count individually. A is the named array list in count_m3.deltanet_limbs; B and C are the lane's registered scalar and remainder lists. B is charged once per V head even for the q/k norm scalars, as registered.

Array(s) Design width Reference width Source of width Amortized limbs/token
S' 3 3 A: copied state width 49,152
rS 2 2 A: committed 12-bit remainder 32,768
conv_v, v, M, delta, o 3 each 3 each A: copied vectors 384 each
w, s_gate 2 each 2 each A: copied vectors 256 each
t; y 3; 4 3; 4 A: copied vectors 384; 512
conv_q, conv_k 3 each 3 each A: shared QK head 128 each
silu_q, silu_k, q_hat, k_hat 2 each 2 each A: shared QK head 85 1/3 each
a, beta flat pool of 16 for B 2 each B: assigned gate scalars 2 each
on_sigma, on_e1, on_e2, on_rr, on_gap pool 3 each B: assigned output norm scalars 3 each
on_Rc pool 5 B: assigned reciprocal width 5
qn_sigma, qn_e1, qn_e2, kn_sigma, kn_e1, kn_e2 pool 3 each B: assigned M2 norm scalars 3 each
rM, rw not listed 4 each C: exact 24-bit remainders 512 each
rdelta, ro, rconv_v, rt not listed 2 each C: exact 12-bit remainders 256 each
ry not listed 2 C: exact 8-bit remainder, 255 needs two balanced bytes 256
rconv_q, rconv_k not listed 2 each C: 12-bit remainders, shared QK head 85 1/3 each
rem_qhat; rem_khat not listed 5; 3 C: registered M2 widths for token-dependent divisors, shared 213 1/3; 128

I counted 363,688 digit slots across four tokens, or 90,922/token before sharing. Dividing the designated QK arrays by three gives A = 85,845 1/3, B = 42, C = 2,816. Design = A + 16 = 85,861 1/3. These are counts of digit slots, not the memory footprint of NumPy arrays. The implementation uses n * mult for the primary number, independently of array contents; actual shape and representability checks are separate. A real-value result, for comparison: S' needed only two digits on this fixture, versus the design's three; rM reached 16,744,576 and needed four. DESIGN 6.2 governs weight cells, not these activation widths. Fitting a signed-digit envelope is also not a test of every narrower M3 relation class.

Are 2,816 extra limbs required by a prover? An integer floor needs its exact remainder bounded, but not necessarily a separate committed copy of that number as these byte limbs. DESIGN 5.0-5.4 describes range keys; the packed formula explicitly counts only rS and has a variant leaving that out as a key. The 1.27 proxy includes generic lookup and sumcheck overhead; it gives no itemized accounting of the other remainders. Further, the M3 q/k path uses different floor/reciprocal relations. The 2,816 is exact for this explicit M2-based layout, neither a demonstrated shortfall nor a bound for a GPU prover.

What I checked myself

  • Registration and inputs (1, 8). First commit 838c388 contains PREREG alone, with both criteria and the 0.9-1.1 bar. A1 only appends the synthetic finding, at commit time 02:56:48 UTC, before the 02:57:01 registered start; no class or bar moved. Seven commit events, no force-push in the PR timeline. Run files were added once in Git. Checked the merged PR experiments: Qwen3.8-27B real weights, layer 0: ranges hold at F = 12, fidelity fails at F = 12/14/16; abliteration = 70 tensors, close to rank-1 on 3 checked (Part of #8, #32, #36) #68 integer head, research: Q1 deep-layer fidelity of the integer Qwen DeltaNet lowering (layers 16, 20; stock + abliterated; state precision) (Part of #8) #88 fixture definition and M3 design/count sources. All 14 local inputs (nine tensors including the norm, four rows, one integer matrix) hash to inputs.json; the preparation step independently matched them to unchanged merged manifests. No weight or embedding values in the 20 changed text files. The extra four rows plus norm were 51,200 bytes. Original PREREG:30 names the necessary inputs, but does not register an exception to “no other fetch.”
  • Reproduction and power (2-5). Re-ran prepare, controls, synthetic, all five real runs and the repeat comparison. All nine JSON files match field for field except clock metadata, including source digests. Independently decoded the inputs and calculated the layer-0/head-0 trace, including gates, state updates, both output formulas, remainders and balanced digits for all 42 rows. Population, maximum absolute value and maximum absolute digit matched for each. Read the actual 4,096 little-endian SiLU words, not just the design text: maximum 32,741 versus 127*(1+256)=32,639; the lower endpoint is -128*(1+256)=-32,896. On private copies s=32640 and rS=4096 each failed the overall class check as intended; the scalar omission and misleading recomposition flag are above.
  • Claims, hygiene and sync (6, 7, 9, 11). Read RESULTS, PREREG, operator README, inventory reason, ledger and both generated rows, PR body, and issue comment. They scope the input and disclaim proof; they do not consistently distinguish the counted total from measurement or M2 output from packed output. The inventory exclusion correctly says this directory enforces nothing. All four local guards passed (77 results, 1,222 metrics; inventory 101 rows). Official scrub: total_matches=0 for each changed file, seven commit messages and PR body. pr: 247; all four metric values agree to stated precision with their pinned source. Each of the three ledger files minus this PR's row is byte-identical to main. Experiment, operator directory and inventory equal 2341b411; every other experiment path equals main.
  • Process (10). Build records show the extra fetch was anticipated privately and done after PREREG, outside issue scope; digest verification preserves input identity, not retroactive authorization. There was also an earlier synthetic debug run at 02:54:28; compared to the committed 02:56:33 debug, only the clock, source hash and two row names changed. Neither used the real fixture for debugging. The lane records the amendment and code in one push milestone, so the record does not establish a separate push after each commit. inputs.json is a manifest with no start time, not a timed run. No sync deviation affecting evidence: only the authorized ledger union and regeneration changed the branch relative to main's merge.

Against the Opus review

  • Must-fix 1 and 2: agree with both, including the all-three width cost. I differ from the opening conclusion that only wording needs changing. The packed y comparison is not the M2 replay; the missing scalar remainder check and invalid diagnostic fields are executable defects.
  • Nonblocking 1 (extrema): agree on cause, disagree on severity. Eighteen wrong minima include three in the printed RESULTS table; correct them before merge. Including zero changes neither the real minimum width nor fit for these nested signed ranges, but it does change reported observations.
  • Nonblocking 2 (v domain): agree; conv_v reaches 122,142 at scale 4096, outside the table domain. 3 (uncounted arrays): agree that M3's index/remainder and q-floor storage are not built; neither the need for separate commitments nor costs are settled here.
  • 4 (extra debug): agree, confirmed numbers unchanged. 5 (fetch): agree the hashes are sufficient for provenance; naming inputs was not registration of permission to fetch them. 6 (inventory): agree, correct exclusion.
  • Agree on prereg order, reproducibility, head/main identity, guard status and the conditional nature of the 1.27 factor. I would not call the 2,816 a lower bound beyond the specified layout.

Nonblocking and disposition

Preserve the two debug attempts in the process history. In the operator README reproduction command, spelling out four more real invocations instead of ... would make the five-file comparison directly runnable. No GPU or new weight data is needed for any fix.

Main sync needed: no, main fef9d2b800b49a2d3eefb45dda82c58474cc25d4 (refetched).

CI at the reviewed SHA, check-runs API: guard success, claims success. Skipped checks: none; merge-tree was conditional on main moving, which it did not. Next reviewer: start with the actual tensor stored as y and the real checker path for on_rr, not the summary booleans.

For the person deciding on a waiver

A merge would put a reproducible CPU layout and four-token range observations on main. It would also publish equality and exact-check claims the code does not establish. It would not validate a prover's count within 3%, any memory or fit figure, an M3 relation, or any other input, layer, head or checkpoint. The least certain quantity is the cost of the remainder and lookup arrays in a future packed prover: this run cannot resolve it. I recommend fixing the code and claims together, not waiving them.

@wakesync

wakesync commented Dec 1, 2026

Copy link
Copy Markdown
Owner Author

Fix round at fc60f23, on top of reviewed 72992e8b. Amendment 51b371c was pushed alone before code or diagnostic outputs. The nine historical files, all widths, all registered counts and both output formulas are unchanged.

Review item Resolution at this head
Astra 1: which y? 29048a4, packed_ref.py:148-153,207-208,272-291; diagnostics.py:68-82 swaps the target to show that the two comparisons reverse. runs/diag-fixture.json:962-1023: M2 replay differs at 0/512, stored output at 69/512 (24, 2, 25, 18). de0c4de, RESULTS.md:3-13 reports PASS on the replay reading with the original omission, FAIL on the packed-output reading.
Astra 2: reciprocal remainder 29048a4, packed_ref.py:93,230-237; diagnostics.py:50-53 exercises the layout and combined flag for valid, equal and negative cases. diag-fixture.json:1024-1041 gives each (rr,sigma); de0c4de, RESULTS.md:64 distinguishes exact floor checks from limb-only square-root/slack checks.
Astra 3: extrema and recompositions 29048a4, packed_ref.py:217-229; diagnostics.py:55-66 tests both extrema signs and an over-width recomposition. de0c4de, RESULTS.md:48-62 corrects three printed minima and all 18 historical row minima, and names the synthetic flag and count: false, 16 mismatches (not true, zero).
Opus 1 / Astra 4: count versus measurement de0c4de, RESULTS.md:9-28, operator README.md:3-12, research/results.yaml:2099-2106: the whole count and ratio are predetermined by widths, including explicitly stored remainders. Count metrics use n=1; five repeats test determinism. The model substitution is not measured memory, fit or prover size. fc60f23, root README.md:88 and CLAIMS.md:90, regenerate only this row.
Opus 2 / Astra 5: SiLU width de0c4de, RESULTS.md:42-46,66-70, operator README.md:10, research/results.yaml:2099: all three maxima fit this input, not the table image. Widening all three costs +213 1/3 limbs/head/token, not +128. This merged M3 erratum needs its own issue; none opened here.

Both requested nonblocking corrections are in RESULTS.md:48-50,86. Source digests and diagnostic boundaries are at RESULTS.md:72-86. The identical control driver failed all 12 cases against the reviewed source and passed all 12 against the corrected source (diag-controls-before.json:166, diag-controls-after.json:166). The PR body and original issue summary now distinguish the results. All four local checks passed. Main checked at fef9d2b800b49a2d3eefb45dda82c58474cc25d4; no merge or sync performed.

Conflicts were limited to research/results.yaml, README.md, and CLAIMS.md.
The ledger is main's file plus the unchanged qwen-packed-trace-ref-240 entry.
README.md and CLAIMS.md are regenerated in the following commit.
@wakesync

wakesync commented Dec 1, 2026

Copy link
Copy Markdown
Owner Author

Merged main fa2df314a8718da90c28e6001d501506217e5bdd into this draft. New head: e2710296422ea62d38599bb0b3ee72d69d507267. Conflicts were limited to research/results.yaml, README.md, and CLAIMS.md.
The ledger is main's file byte-for-byte plus the unchanged PR row (78 unique IDs). README and CLAIMS each add just that generated row relative to main.
All 17 experiment files and all 6 other non-generated PR files match the prior head byte-for-byte, including the diagnostics. All 3,842 other experiment files match main.

@wakesync

wakesync commented Dec 1, 2026

Copy link
Copy Markdown
Owner Author

APPROVE at e271029
class A, Astra, fix-diff review, full reviews were at 72992e8; the fix and the sync were written by gpt-6.2-astra

The fix compares the output actually stored in the packed layout with M2, separately from replaying M2 itself. It also checks the reciprocal remainder against its token's divisor, takes extrema from the values, and counts every failed recomposition. Neither output formula changed, nor did the registered cases, widths, dimensions, sharing or slot counts.

Round-1 must-fixes, with RESULTS and runs/ referring to experiments/20261129-240-qwen-packed-trace-ref/:

  1. Astra 1, output equality: settled. packed_ref.py:193-208,270-291; RESULTS:3-13. In runs/diag-fixture.json:result.comparisons, S' and o match on every token. M2 replay differs at 0/512 coordinates; stored y differs at 69/512 (24, 2, 25, 18; maximum absolute differences 10, 3, 10, 9). Swapping the target reverses both comparisons and both verdicts. The write-up reports PASS on the replay reading with the original omission, FAIL on the packed-output reading. Reconstructing y from its digits is not evidence that it equals M2.
  2. Astra 2, reciprocal remainder: settled. packed_ref.py:93,230-237; diagnostics.py:50-53; RESULTS:64. I checked 2^36 mod sigma against all four result.reciprocal_bounds in diag-fixture.json: 10/79, 58/61, 40/104 and 75/97 (remainder/divisor). The old on_rr.remainders_out_of_exact_class was null. The new layout accepts sigma-1 and rejects sigma and -1, including in the combined verdict. The text correctly excludes tighter square-root/slack bounds from what the layout tests.
  3. Astra 3, extrema and recompositions: settled. packed_ref.py:217-229; RESULTS:32-64. Comparing all 42 rows in real-head0-T4.json:arrays with diag-fixture.json:result.arrays gives precisely the 18 corrected minima listed, including 3,476, 660,764,199, 179,288 and 26. The only other changed fixture array field is the newly checked remainder. In diag-synthetic.json, s_gate.recomposition_mismatches is 16, not zero, and result.summary.detail.recomposition_exact is false. Both signs of extrema and a value one above the width limit have red/green controls.
  4. Opus 1 / Astra 4, count versus measurement: settled. RESULTS:9-28; research/results.yaml:2117-2124. From the registered widths I get A = 85,845 1/3, B = 42, C = 2,816; total 88,703 1/3 versus design A + 16, ratio 1.033099882. Both historical summary objects, fixture and synthetic, give that answer. Criterion 1 cannot fail for this layout. Explicit remainder storage is a choice. The counted metrics now use n=1; I compared the five committed fixture files, identical except for their clocks. They show determinism, not replication. Substituting into the design gives 97,828,892 entries/token with inherited dense counts and unverified overhead; not memory, fit or prover size.
  5. Opus 2 / Astra 5, SiLU widths: settled. RESULTS:42-46,66-70; operator README.md:10. I decoded the committed F12 table: rows 4089 through 4095 exceed 32,639; maximum 32,741. diag-fixture.json:result.arrays gives maxima 20,264, 7,319 and 10,639 for s, SiLU q and SiLU k. They fit this input, not the table image. Seed 240's 48,986 is unclamped. Widening all three costs 128 + 128/3 + 128/3 = 213 1/3 limbs/head/token, 491,520 model limbs, about 208,008 modeled entries/token. Three limbs cover the finite table, not unbounded SiLU.

Reproduction and evidence. I ran the same diagnostic driver against both sources with the 14 verified local inputs. All four JSON files matched field for field, including source digests and types, except utc. Before: exit 1, all 12 expectations red. After: exit 0, all 12 green; fixture and synthetic both exit 0. I checked the printed grouped ranges, all replacement minima, producer hashes, input byte count and model arithmetic against the committed evidence. The earlier uncommitted synthetic attempt is identified as reviewer history and linked, not presented as a registered run.

The 14 fix paths are the ledger and generated rows, the experiment documents and four new diagnostics, the operator documents/code and the inventory. All nine original run files are byte-identical to round 1. A2, a dated four-line append alone in 51b371c, preceded code 29048a4: it specifies the new comparisons, bounds, extrema, recompositions and controls without moving a registered threshold, case, run or count. No force-push event in the PR timeline. The result is consistent across the experiment and operator READMEs, ledger, generated README:89 and CLAIMS:91, inventory:1014-1015, PR body and edited issue comment, which explicitly calls itself a correction.

Must-fix: none in the reviewed diff. Nonblocking: research/results.yaml:2122 says the ratio was “computed before any input”; “computable before any input” is more precise about when the script actually evaluates it. The table-width erratum remains a separate design follow-up.

Process: The fix records three failed setup calls using a relative working directory and also expands the historical five-run example beyond the two named nonblocking corrections. Neither changed any evidence. The sync used the authorized three-file ledger conflict procedure; I found no extra sync edit.

Sync proof 1: head ledger minus its row equals fa2df314 byte for byte (SHA-256 a1949773a32f398d2e556cf0d988d5dbd7e7bc3d52abb304efbd510ae1c0b0ec); own row equals fc60f23d, 78 unique IDs. Generated README and CLAIMS each differ from that main by just this row.
Sync proof 2: all 17 own experiment files, all five operator files and the inventory equal fc60f23d. All 3,842 other experiment paths equal fa2df314.

Main sync needed: yes. Main is 5f4c5d1682f4ad64ca6b88bc052360b71921ccbb after #246; this is no longer just the README stamp. GitHub reports the draft conflicting. This approval is for the SHA above, not for a future resolution.

CI at the reviewed SHA: claims and guard succeeded. All four local repository checks exited 0 (78 results, 1,229 metrics, 101 inventory rows). The scrub found zero matches in every fix file, all six commit messages, the PR body, corrected issue comment, and fix and sync comments. No required check skipped; I did not rerun the nine historical files or change the branch.

@wakesync

wakesync commented Dec 1, 2026

Copy link
Copy Markdown
Owner Author

APPROVE at e271029
class A, Opus, fix-diff review, full reviews were at 72992e8; the fix and the sync were written by gpt-6.2-astra

I reviewed the delta 72992e8b..e2710296. All seven round-1 must-fixes are settled. The four diagnostic files reproduce field for field. The code change adds checks and reporting only; it changes no registered output. The branch is now behind main and needs one more union sync before merge (see the end).

What the code change does

packed_ref.py now compares two outputs with run_int: the M2 replay y and the y actually stored in the layout, each with a count and a maximum difference per token (lines 148 to 153 and 207 to 208). It checks 0 <= on_rr < on_sigma in the layout itself (line 93, lines 230 to 237). It takes extrema from the data, not from a seeded 0 (lines 218 to 229). It counts every recomposition mismatch, not only in-width ones (line 224). LAYOUT widths, multipliers, sharing and all trace arithmetic are unchanged. The only changed rows are on_rr, which gains a divisor, and the single criterion 2 flag, which is split into criterion2_m2_replay_reading and criterion2_packed_output_reading. diagnostics.py is a separate driver. It checks the 14 inputs against runs/inputs.json and writes only new diag-*.json files with open('x').

Whether it changes the registered outputs: I compared runs/diag-fixture.json (new code, same fixture) with runs/real-head0-T4.json (original code) row by row. All count fields are identical: 88,703 1/3, 85,861 1/3, ratio 1.0330998819802473, 97,828,891.86, the groups and built_A_only. Per-array rows differ only in min_value (18 rows, the seeded-zero fix) and in on_rr.remainders_out_of_exact_class (null to 0). max_value, max_abs_value, max_abs_limb, values_out_of_class and recomposition_mismatches are identical. So rerunning the registered configuration would give the same counts and fits. Only the reporting would differ, as described. Nothing here needs to be fixed.

Can the new checks fail? Yes. With the same diagnostic driver, all 12 control cases fail on the original source and pass on the corrected one. That covers on_rr valid/equal/negative, both extrema signs, one over width, and the swapped output target that reverses which comparison passes.

Round-1 must-fixes

  • Opus 1 / Astra 4 (count vs measurement, n, 97.8M): settled. RESULTS.md lines 3, 9, 11 and 28. Operator README line 7 and line 9. The experiment README. The results.yaml summary and all four metric notes: both counted metrics are now n: 1, and each note says "determinism, not replication". The README and CLAIMS rows, the PR body and the issue comment are also corrected. I checked that debug-synthetic.json has the same 88,703.33 and 1.03309988, so "identical on synthetic input" is true.
  • Opus 2 / Astra 5 (all three SiLU arrays): settled. RESULTS.md lines 66 to 70, operator README line 10, the summary, the PR body and the issue comment. Maxima 20,264, 7,319 and 10,639 match diag-fixture.json result.arrays. +213 1/3 times 2,304 is 491,520. Divided by 3 that is 163,840. At 1.26958 that is about 208,008. 213 1/3 / 85,861 1/3 is 0.248%. The 7-row figure is cited to the Astra review, as the evidence rule asks.
  • Astra 1 (which y): settled. RESULTS.md lines 3 and 10 give both readings: M2 replay 0/512, stored y 24, 2, 25, 18 (sum 69 of 4 x 128 = 512), max differences 10, 3, 10, 9. These match diag-fixture.json result.comparisons. The headline says the replay reading PASSES and the packed-output reading FAILS. It claims no equality the runs do not show, and line 3 says that recomposition is not equality. Line 13 explains the two floor paths and says neither was changed.
  • Astra 2 (on_rr): settled. In code, see above. RESULTS.md line 64 gives the four pairs (10,79), (58,61), (40,104), (75,97). These match result.reciprocal_bounds. It also says that e1, e2 and on_gap are checked for limb fit only, not against their tighter slack ranges.
  • Astra 3 (extrema, recompositions): settled. RESULTS.md lines 30 to 60 now take the range table from diag-fixture.json. The 18 corrected minima equal result.corrected_minima (for example kn_e1 3,476, on_Rc 660,764,199, rem_qhat 179,288, rem_khat 26). Line 62: synthetic s_gate gives 16 mismatches and recomposition_exact false in diag-synthetic.json, against 0 and true in debug-synthetic.json.
  • Opus nonblocking 1 and 4 are also done (RESULTS.md lines 52 to 60 and line 86). The earlier debug run cites the Opus comment by link.

Delta and registration

72992e8b..fc60f23d: four commits, 14 paths, the same as the coordinator's list. The nine original run files have the same blob ids at the head. PREREG has 4 lines added and 0 deleted. A2 is alone in 51b371c1 (10:56:35Z), before the code commit 29048a4b (11:00:35Z). A2 registers the corrections and the diagnostics as outside the registered verdict. It says, and I confirmed, that no threshold, class, case, width, output arithmetic, run or count moves. The PR timeline shows only commit and comment events, with no force-push. All six commits since 72992e8b are by the wakesync noreply identity and have no trailer.

Diagnostics reproduced

I copied the head tree (and 72992e8b's tree for the "before" control) into a private directory and ran diagnostics.py on cores 8-9. I used the same local inputs, and the driver's own SHA check passed on all 14. Field-by-field against the committed files, ignoring utc: diag-controls-after 0 differences, diag-fixture 0, diag-synthetic 0, diag-controls-before 0 (rc 1, 12 failed, as expected and recorded). The source SHA-256 of packed_ref.py is 1111904c at the head and ea4d0b5c at the old head, and diagnostics.py is d85ec875. These match RESULTS' provenance table.

Must-fix

None.

Nonblocking

  1. The actual_* and swapped_* controls in diagnostics.py (line 76) hard-code 24, 2, 25, 18 from the review. The swap shows that the two comparisons are live, but these cases are a regression pin, not an independent derivation. The comment says so.
  2. The extrema controls exercise only the w row. The code path is shared by every row, so this is fine.
  3. The SiLU width erratum still needs its own issue (RESULTS line 70 says so). None is opened yet.
  4. Main moved after the sync (see below). The coordinator's "mergeable, clean" no longer holds.

Sync proofs

results.yaml at the head minus the own row equals main fa2df314 byte for byte (sha256 a1949773...). The own row (4,361 bytes) is identical to fc60f23d. There are 78 ids, all unique. The experiment directory (17 files), the operator directory (5) and the inventory are identical to fc60f23d, and all 3,842 other experiments/ paths equal fa2df314. README and CLAIMS each add one row against fa2df314, and update-results.py --check accepts them.

Main sync needed: yes. Main is now 5f4c5d1682f4ad64ca6b88bc052360b71921ccbb (PR #246 merged after the stamp PR #249, 0b4f725f). It adds a results.yaml row and README and CLAIMS rows. GitHub now reports this PR as mergeable: false, dirty. Against 0b4f725f alone the merge was clean (local merge-tree). Another union sync is needed. If it keeps the own paths byte-identical to e2710296, the review content above carries over.

CI (check-runs API at e271029): claims success, guard success (11:21Z). Local at the head: update-results.py --check ok (78 results, 1,229 metrics), check-claims.py ok, check_inventory.py ok (101 rows), check-no-host-paths.sh ok. Scrub total_matches=0 on the 14 changed files, the 6 commit messages, the PR body, the mapping and sync comments, and the edited issue comment. The edited issue comment opens with "Correction to the original verdict" and matches RESULTS.

Process: the fix lane edited issue comment 7249860200 in place, which its brief allows. Three of its setup calls fell back to a relative workdir and changed nothing. The sync lane recorded no deviations. Nothing outside the briefs touches the evidence.

Skipped checks: none. I did not rerun the nine registered runs, because check 2 gave no reason to. I did not run merge-tree against 5f4c5d16, because I did not fetch into the shared clone.

Resolve conflicts in research/results.yaml, README.md and CLAIMS.md.
Keep main's results.yaml intact and append only qwen-packed-trace-ref-240
from the branch. Inventory merged cleanly. Take the documents from main
and regenerate README.md and CLAIMS.md in the following commit so all
referenced metric commits are in history.
@wakesync

wakesync commented Dec 1, 2026

Copy link
Copy Markdown
Owner Author

Merged main bda75442b26ea97a0c3b75c9936bf23c247f2dd8 into this branch; new head 535dd1620193fc770ed79641c31f0ad18eea4775. Only research/results.yaml, README.md and CLAIMS.md conflicted. The results file is main plus this PR’s byte-identical row, appended last (80 unique IDs); the two documents were regenerated with main’s stamp preserved.

Inventory merged without edits. Its bytes match an independent three-way merge: all of main, including OP-R22, plus the unchanged qwen_packed_ref exclusion. All 17 experiment files and 5 operator files match the reviewed head, and all 3,883 other experiment files match main. All four local checks passed.

@wakesync

wakesync commented Dec 1, 2026

Copy link
Copy Markdown
Owner Author

APPROVE at 535dd16
class A, Opus, sync confirmation only; the content approvals are comments 7325207847 (Opus) and 7325007011 (Astra) at e271029; the sync was written by gpt-6.2-astra

Checked read only against git objects at e271029, main bda7544 and head 535dd16:

  1. Commits: first-parent e271029..535dd16 is the merge 6939168 (parents e271029 and main bda7544) plus one regeneration commit 535dd16 (README.md +1, CLAIMS.md +1). Both authored and committed by the wakesync noreply identity, no trailer. No force-push event in the PR timeline.
  2. Experiment directory experiments/20261129-240-qwen-packed-trace-ref: 17 files, byte-identical to e271029. The other 3,883 experiments/ files equal main bda7544.
  3. research/operators/qwen_packed_ref: 5 files, byte-identical to e271029.
  4. Inventory (changed on both sides): research/coverage/inventory.yaml at the head with this PR's qwen_packed_ref excluded entry removed (271 bytes) equals main bda7544 byte for byte, sha256 dee0b34ae6283a468b83cc81cc7bc506e5913ef42d78fb133fa6cb3856bd38bd. The own entry is byte-identical to e271029 and absent on main. OP-R22 appears once as an id; 113 ids, none repeated. So the file is main's rows plus this PR's unchanged entry, no hand edit.
  5. research/results.yaml at the head minus the qwen-packed-trace-ref-240 row equals main bda7544, sha256 56a6081b7df13a10bd94c8c6e630272e65d4dcf39e02ff2c6dc93479d91cb6ab. The own row is byte-identical to e271029. 80 ids, unique.
  6. README.md and CLAIMS.md each differ from main bda7544 by exactly one added line, this PR's row; the README stamp line equals main's. update-results.py --check exits 0.
  7. The head differs from main bda7544 in 26 paths: 17 own experiment, 5 own operator, 3 ledger (results.yaml, README.md, CLAIMS.md), 1 inventory. Nothing else.
  8. check-claims.py, research/coverage/check_inventory.py, check-no-host-paths.sh: all exit 0. CI at 535dd16: guard success, claims success.
    Main sync needed: no (main 139fb2f differs from the merged main by the README stamp line only; GitHub reports mergeable). Compare bda7544...139fb2f lists README.md only (+1 -1); GitHub reports MERGEABLE / CLEAN.
    Skipped: no content re-review (by design), no test merge against 139fb2f (not allowed in the shared clone).

@wakesync

wakesync commented Dec 1, 2026

Copy link
Copy Markdown
Owner Author

APPROVE at 535dd16
class A, Astra, sync confirmation only; the content approvals are comments 7325207847 (Opus) and 7325007011 (Astra) at e271029; the sync was written by gpt-6.2-astra

The first-parent sequence is exactly 69391686 (parents e2710296, bda75442) followed by 535dd162 (README and CLAIMS regeneration only). Both commits use the wakesync noreply identity, with no trailers. No force-push event appears in the PR timeline.

Inventory: I reproduced the clean three-way file merge; its output matches both the merge commit and the head byte for byte. Removing the unchanged 271-byte qwen_packed_ref entry reproduces main's inventory exactly (SHA-256 dee0b34ae6283a468b83cc81cc7bc506e5913ef42d78fb133fa6cb3856bd38bd). OP-R22 occurs once as an ID; all 113 IDs are distinct.

Scope: all 17 PR experiment files and all 5 operator files match e2710296 byte for byte. All 3,883 other experiment files match bda75442. Exactly 26 paths differ from that main: those 22 PR files, inventory, results, README and CLAIMS.

Results: removing the PR's unchanged qwen-packed-trace-ref-240 row reproduces main's ledger exactly (SHA-256 56a6081b7df13a10bd94c8c6e630272e65d4dcf39e02ff2c6dc93479d91cb6ab). All 80 IDs are distinct. README and CLAIMS each add just the PR's generated row; the README stamp matches merged main verbatim.

Local checks all exited 0: update-results.py --check, check-claims.py, check_inventory.py, and check-no-host-paths.sh (working tree). CI at the exact head: claims and guard both succeeded. No sync checks skipped; content was not re-reviewed.

Main sync needed: no (main 139fb2f differs from the merged main by the README stamp line only; GitHub reports mergeable). Remote main: 139fb2fef7ec0d4262b28ce79ccd5ce9d6f24b9d; PR state: MERGEABLE / CLEAN.

@wakesync
wakesync marked this pull request as ready for review December 1, 2026 21:38
@wakesync
wakesync merged commit 6315bad into main Dec 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant