Skip to content

research(R20.2): threshold-based hand-off — surfaces Pan-Tompkins production requirement#746

Merged
ruvnet merged 1 commit into
mainfrom
research/sota-r20.2-threshold-handoff
May 22, 2026
Merged

research(R20.2): threshold-based hand-off — surfaces Pan-Tompkins production requirement#746
ruvnet merged 1 commit into
mainfrom
research/sota-r20.2-threshold-handoff

Conversation

@ruvnet
Copy link
Copy Markdown
Owner

@ruvnet ruvnet commented May 22, 2026

Fifth step in the quantum integration arc. Implements R20.1's catalogued refinement; surfaces a deeper production gap.

Result (5 distances)

Distance Smart fused Error Regime
0.5 m 72.0 ✓ +0.0 nv_drives
1.0 m 144.0 ✗ (harmonic) +72.0 nv_drives
1.5 m+ weighted fallback +16-19 NV conf below threshold

Production lesson

Threshold policy correct in spirit; simple FFT rate estimator picks harmonics. Pan-Tompkins QRS detection is binding, not nice-to-have, before hand-off ships.

Five-step quantum arc

R20 (vision) → Doc 17 (bridge) → ADR-114 (spec) → R20.1 (demo) → R20.2 (refinement).

🤖 Generated with claude-flow

…gap at 1 m surfaces Pan-Tompkins requirement

Implements R20.1's catalogued refinement: when NV conf > 60% AND
amplitude > 3 pT, trust NV entirely.

Mixed result (5 distances):
- 0.5 m: NV=72.00 ✓, smart=72.0 (+0.0 error, NV trusted) ✓
- 1.0 m: NV=144 (harmonic!), smart trusts wrong NV (+72 BPM error)
- 1.5 m+: falls back to weighted (NV conf below threshold)

Production lesson: the threshold-based policy is correct in spirit
but incorrect with simple FFT rate estimator (picks harmonics).
Production needs:
1. Harmonic rejection (Pan-Tompkins QRS or autocorrelation)
2. Cross-check vs breathing band
3. Per-frame plausibility window

R20.1's 'production needs Pan-Tompkins' note is confirmed BINDING,
not nice-to-have, before threshold hand-off can ship.

ADR-114 implementation budget refined: +30-50 LOC for Pan-Tompkins.

Five-step quantum arc:
- R20 vision (tick 37)
- Doc 17 bridge (tick 38)
- ADR-114 spec (tick 39)
- R20.1 working demo (tick 40)
- R20.2 threshold refinement (this tick)

Production ADR-114 cog now has all known refinements catalogued
BEFORE any Rust code is written.

Honest mixed result — catalogue-then-revisit pattern works:
R20.1 flagged production gap; R20.2 attempted fix; fix surfaced
deeper gap (harmonic rejection). Three layers of refinement.
@ruvnet ruvnet merged commit fecb1da into main May 22, 2026
@ruvnet ruvnet deleted the research/sota-r20.2-threshold-handoff branch May 22, 2026 11:57
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