Jesse Daniel Brown Codex commited on
Commit
2b807ea
·
1 Parent(s): 5bae029

liris: read back quant fidelity spec8

Browse files

Counter-verifies Acer's QUANTFIDELITYSPEC8 before implementation. Keeps the QUANT8/QUANT4 firewall, accepts ranking preservation as the gate-relevant property, and patches four methodology issues: absolute cosine error near rho=0, pilot-only p99 at 50 pairs, split bucket adversaries into same-sign and cancellation cases, and downgrade the JL row to a heuristic reference with fixed-6 output rounding.

Co-Authored-By: Codex <noreply@openai.com>

docs/LIRIS-QUANTFIDELITYSPEC8-READBACK-2026-06-11.hbp ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ LIRISQFSPEC8HDR|host=liris|date=2026-06-11|pulled_commit=5bae029|topic=readback-and-counter-verify-acer-QUANTFIDELITYSPEC8|mode=SPEC_ONLY-no-sweep-code|json=0
2
+ LIRISQFSPEC8VERIFY|pyramid_at_pull=114of114_PASS|spec_read=QUANTFIDELITYSPEC8-13-rows|quant8_quant4_firewall=CONFIRMED|ranking_preservation_addition=CONFIRMED_GATE_RELEVANT|json=0
3
+ LIRISQFSPEC8ACCEPT|target=QUANT8-stack-only|QUANT4_inherits_nothing=confirmed|spec-before-code=confirmed|state=methodology-sound-after-patch|json=0
4
+ LIRISQFSPEC8FINDINGS|F1=relative-cosine-error-is-ill-defined-at-rho0-and-unstable-near-zero|F2=p99-from-50-pairs-per-cell-is-pilot-grade-not-promotion-grade|F3=bucket-adversary-must-test-both-same-sign-amplification-and-opposite-sign-cancellation-in-the-count-sketch-bucket|F4=JL-1-over-sqrtD-row-needed-heuristic-not-formal-bound-for-count-sketch-plus-int8-normalization|verdict=FOUR_REAL_PATCHED|json=0
5
+ LIRISQFSPEC8PATCH|F1=metric-now-absolute-cosine-error-dot-relative-only-when-raw-dot-nonzero|F2=50-pairs-cell-now-pilot-only-promotion-minimum-200|F3=f4-split-into-f4a-same-sign-collision-and-f4b-opposite-sign-cancellation|F4=bound-row-now-heuristic-reference-and-output-rounding-fixed-6-for-byte-match|json=0
6
+ LIRISQFSPEC8VERDICT|ready_for_acer_implementation=1|implementation_guard=emit-HBP-only-no-gating-promotions-until-both-machines-byte-match-and-thresholds-pass|remaining_contest_lanes=promotion-pair-count+thresholds+f4-construction-details|json=0
7
+ LIRISQFSPEC8FTR|state=SPEC_PATCHED_READY_FOR_ACER_SWEEP_TOOL|json=0
docs/LIRIS-QUANTFIDELITYSPEC8-READBACK-2026-06-11.hbp.sha256 ADDED
@@ -0,0 +1 @@
 
 
1
+ 79F3E44E2B5069338BB0939F2D6B2CF6E2C42B29776386D89EECC739FF1C670E LIRIS-QUANTFIDELITYSPEC8-READBACK-2026-06-11.hbp
docs/QUANTFIDELITYSPEC8-2026-06-11.hbp CHANGED
@@ -1,13 +1,13 @@
1
  QFSPEC8HDR|host=acer|date=2026-06-11|topic=JL-fidelity-sweep-methodology-for-the-8-quant-system|mode=SPEC-ONLY-converge-before-code|provenance=liris-proposal(e501fc9-readback)+acer-counter-verify-and-sharpen|json=0
2
  QFSPEC8TARGET|target=QUANT8-stack-ONLY(JL+Turbo+Polar+Zeta+Triple+Quadruple+JS-histogram+von-Mangoldt-as-in-tools/behcs/quant-huge-message-benchmark.mjs)|json=0
3
  QFSPEC8SPLIT|QUANT8=huge-message-compression-tail-cost-law-DRAFT-until-this-sweep|QUANT4=live-fabric-path-4-scalar-PID-hash-quants-DIFFERENT-ENGINE|rule=QUANT4-does-NOT-inherit-QUANT8-fidelity-proof|future=QUANTFIDELITYSPEC4-separate-lane-if-operator-wants-live-engine-promoted|source=liris-doctrine-split-accepted-verbatim|json=0
4
- QFSPEC8PAIRS|generation=deterministic-LCG-fixed-seeds-time-free|dims_sweep=16384+131072+1048576|correlation_levels=rho-0.00+0.25+0.50+0.75+0.90+0.99|construction=y=rho*x+sqrt(1-rho^2)*noise|pairs_per_cell=50|json=0
5
- QFSPEC8FAMILIES|f1=dense-uniform|f2=sparse-k16-nonzero|f3=heavy-tail(power-law-amplitudes)|f4=bucket-aligned-adversarial(mass-concentrated-on-indices-colliding-in-the-count-sketch-modulo-D)|why_f4=count-sketch-JL-is-known-weak-when-mass-collides-in-one-bucket-liris-attack-lane-welcome|json=0
6
- QFSPEC8METRICS|m1=relative-cosine-error-in-quant-space-vs-raw-space(cosine-because-scale-free-quant-normalizes-by-max)|m2=relative-dot-error|m3=RANKING-PRESERVATION(triplets-x-closer-to-a-than-b-in-raw-must-stay-closer-in-quant;this-is-the-gate-relevant-property-acer-addition)|report=p50+p95+p99+max-per-cell+sign-agreement-rate|json=0
7
- QFSPEC8BOUND|reference=JL-theoretical-envelope-for-D-1024-relative-error-order-1-over-sqrt(D)-approx-3.1pct-per-unit-norm|comparison=measured-p95-vs-theoretical-reference-per-cell|json=0
8
- QFSPEC8PASSFAIL|gate_safe_similarity_requires=p99-relative-cosine-error-leq-0.05-AND-ranking-preservation-geq-99pct-at-margin-geq-0.1-ACROSS-ALL-FAMILIES-INCLUDING-f4|on_PASS=QUANTLAW-promotes-to-MEASURED-fidelity-bounded(still-NOT-fabric-engine-binding)|on_FAIL=QUANTLAW-stays-DRAFT+quant-tuples-remain-routing-hints-never-gating|thresholds=PROPOSAL-liris-contest-welcome|json=0
9
- QFSPEC8DETERMINISM|metric_path=mult-add-only-IEEE754-deterministic-cross-machine|byte_match_expected=metric-rows-regenerate-identical-on-both-machines|caveat=zeta-stage-uses-Math.log2(platform-ulp-variance-possible-at-bucket-boundaries)-zeta-EXCLUDED-from-byte-match-guarantee-and-from-fidelity-metrics(compare-path-uses-turbo+scale-only)|json=0
10
- QFSPEC8ROWS|format=QUANTFIDELITY-cell-dims-rho-family-pairs-p50-p95-p99-max-sign_agree-rank_preserve-json0|baseline=sealed-hbp-regenerate-and-byte-compare-both-machines(STEP166-pattern)|json=0
11
  QFSPEC8LANES|acer=implements-sweep-tool+seals-baseline|liris=adversarially-attacks(spec-first-then-tool)+reruns-byte-match|order=liris-spec-verdict-BEFORE-acer-implements|json=0
12
  QFSPEC8SAFETY|spec_only=1|no_code_in_this_commit=1|mutates=receipt-file-only|json=0
13
  QFSPEC8FTR|state=SPEC_SEALED_READY_FOR_LIRIS_SPEC_VERDICT_BEFORE_IMPLEMENTATION|json=0
 
1
  QFSPEC8HDR|host=acer|date=2026-06-11|topic=JL-fidelity-sweep-methodology-for-the-8-quant-system|mode=SPEC-ONLY-converge-before-code|provenance=liris-proposal(e501fc9-readback)+acer-counter-verify-and-sharpen|json=0
2
  QFSPEC8TARGET|target=QUANT8-stack-ONLY(JL+Turbo+Polar+Zeta+Triple+Quadruple+JS-histogram+von-Mangoldt-as-in-tools/behcs/quant-huge-message-benchmark.mjs)|json=0
3
  QFSPEC8SPLIT|QUANT8=huge-message-compression-tail-cost-law-DRAFT-until-this-sweep|QUANT4=live-fabric-path-4-scalar-PID-hash-quants-DIFFERENT-ENGINE|rule=QUANT4-does-NOT-inherit-QUANT8-fidelity-proof|future=QUANTFIDELITYSPEC4-separate-lane-if-operator-wants-live-engine-promoted|source=liris-doctrine-split-accepted-verbatim|json=0
4
+ QFSPEC8PAIRS|generation=deterministic-LCG-fixed-seeds-time-free|dims_sweep=16384+131072+1048576|correlation_levels=rho-0.00+0.25+0.50+0.75+0.90+0.99|construction=y=rho*x+sqrt(1-rho^2)*noise|pilot_pairs_per_cell=50|promotion_pairs_per_cell_min=200(p99-is-not-promotion-grade-below-this)|json=0
5
+ QFSPEC8FAMILIES|f1=dense-uniform|f2=sparse-k16-nonzero|f3=heavy-tail(power-law-amplitudes)|f4a=bucket-aligned-same-sign-collision(mass-amplifies-in-one-count-sketch-bucket)|f4b=bucket-aligned-opposite-sign-cancellation(mass-cancels-in-one-count-sketch-bucket)|why_f4=count-sketch-JL-is-known-weak-when-mass-collides-in-one-bucket|json=0
6
+ QFSPEC8METRICS|m1=absolute-cosine-error-in-quant-space-vs-raw-space(relative-cosine-error-is-ill-defined-at-rho0)|m2=dot-error-absolute-plus-relative-only-when-abs(raw_dot)-ge-1e-9|m3=RANKING-PRESERVATION(triplets-x-closer-to-a-than-b-by-raw-cosine-margin-ge-0.1-must-stay-closer-in-quant;gate-relevant-property)|report=p50+p95+p99+max-per-cell+sign-agreement-rate+rank_preserve|json=0
7
+ QFSPEC8BOUND|reference=JL-heuristic-envelope-for-D-1024-error-scale-order-1-over-sqrt(D)-approx-3.1pct-not-a-formal-bound-for-count-sketch-plus-int8-normalization|comparison=measured-p95-vs-heuristic-reference-per-cell|json=0
8
+ QFSPEC8PASSFAIL|gate_safe_similarity_requires=p99-absolute-cosine-error-leq-0.05-AND-ranking-preservation-geq-99pct-at-raw-cosine-margin-geq-0.1-ACROSS-ALL-FAMILIES-INCLUDING-f4a-f4b|pilot_rule=50-pairs-cell-may-find-failures-but-cannot-promote-QUANTLAW|on_PASS=QUANTLAW-promotes-to-MEASURED-fidelity-bounded(still-NOT-fabric-engine-binding)|on_FAIL=QUANTLAW-stays-DRAFT+quant-tuples-remain-routing-hints-never-gating|thresholds=PROPOSAL-acer-contest-welcome|json=0
9
+ QFSPEC8DETERMINISM|metric_path=mult-add-only-IEEE754-deterministic-cross-machine|byte_match_expected=canonical-rounded-metric-rows-regenerate-identical-on-both-machines|rounding=decimal-fixed-6-before-HBP-output|caveat=zeta-stage-uses-Math.log2(platform-ulp-variance-possible-at-bucket-boundaries)-zeta-EXCLUDED-from-byte-match-guarantee-and-from-fidelity-metrics(compare-path-uses-turbo+scale-only)|json=0
10
+ QFSPEC8ROWS|format=QUANTFIDELITY-cell-dims-rho-family-pairs-p50-p95-p99-max-sign_agree-rank_preserve-json0|baseline=sealed-hbp-regenerate-and-byte-compare-both-machines-after-fixed-6-rounding(STEP166-pattern)|json=0
11
  QFSPEC8LANES|acer=implements-sweep-tool+seals-baseline|liris=adversarially-attacks(spec-first-then-tool)+reruns-byte-match|order=liris-spec-verdict-BEFORE-acer-implements|json=0
12
  QFSPEC8SAFETY|spec_only=1|no_code_in_this_commit=1|mutates=receipt-file-only|json=0
13
  QFSPEC8FTR|state=SPEC_SEALED_READY_FOR_LIRIS_SPEC_VERDICT_BEFORE_IMPLEMENTATION|json=0
docs/QUANTFIDELITYSPEC8-2026-06-11.hbp.sha256 CHANGED
@@ -1 +1 @@
1
- 0493774E4361DD470A43B39BF3AB45C92E483766D12D8F365CA50F8C44593C96 QUANTFIDELITYSPEC8-2026-06-11.hbp
 
1
+ 7301CDDE0E325896451A743E70CDA495D3847FE56CE6FA3FB5D0DD7EBB45FDB9 QUANTFIDELITYSPEC8-2026-06-11.hbp
tests/supervisor-collision-router.system.test.mjs CHANGED
@@ -55,6 +55,7 @@ const sealedFiles = [
55
  'docs/FROZEN-SLICE-REBIND-PREIMAGE-2026-06-11.hbp',
56
  'docs/ACER-QUANT-HUGE-MESSAGE-BENCH-2026-06-11.hbp',
57
  'docs/QUANTFIDELITYSPEC8-2026-06-11.hbp',
 
58
  'docs/LIRIS-FROZEN-SLICE-PREIMAGE-READBACK-2026-06-11.hbp',
59
  'docs/LIRIS-QUANT-HUGE-MESSAGE-BENCH-READBACK-2026-06-11.hbp',
60
  'docs/LIRIS-FROZEN-SLICE-REBIND-READBACK-2026-06-11.hbp',
 
55
  'docs/FROZEN-SLICE-REBIND-PREIMAGE-2026-06-11.hbp',
56
  'docs/ACER-QUANT-HUGE-MESSAGE-BENCH-2026-06-11.hbp',
57
  'docs/QUANTFIDELITYSPEC8-2026-06-11.hbp',
58
+ 'docs/LIRIS-QUANTFIDELITYSPEC8-READBACK-2026-06-11.hbp',
59
  'docs/LIRIS-FROZEN-SLICE-PREIMAGE-READBACK-2026-06-11.hbp',
60
  'docs/LIRIS-QUANT-HUGE-MESSAGE-BENCH-READBACK-2026-06-11.hbp',
61
  'docs/LIRIS-FROZEN-SLICE-REBIND-READBACK-2026-06-11.hbp',
tests/supervisor-collision-router.system.test.mjs.sha256 CHANGED
@@ -1 +1 @@
1
- D0925F7D7DDE24359E8BDB16ED1F8E1C5078A716A312F71BFAEFD4E1627BD7AD supervisor-collision-router.system.test.mjs
 
1
+ FD84C541709759813BDA780EC01F603E63B04A20283891ED122160B0F05F7B1E supervisor-collision-router.system.test.mjs