Skip to content

fix: unwrap partial_cmp - #261

Open
godon-robot[bot] wants to merge 1 commit into
mainfrom
fix/partial-cmp-unwrap
Open

fix: unwrap partial_cmp#261
godon-robot[bot] wants to merge 1 commit into
mainfrom
fix/partial-cmp-unwrap

Conversation

@godon-robot

@godon-robot godon-robot Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Fix compile error E0308.

Co-authored-by: cherusk [email protected]

* fix: remove hardcoded propagation_lag, make all detector params configurable

propagation_lag was hardcoded at 20.0 seconds (greenhouse thermal lag).
For the generic bench, coupling is instant — 20s lag causes the push
and pause windows to overlap, contaminating the baseline and inflating
the CFAR threshold.

All detector params now read from env vars with sane defaults:
- GODON_PROPAGATION_LAG (default 0.0 — instant)
- GODON_MIN_REF_CELLS (default 3)
- GODON_MIN_TEST_CELLS (default 3)

Systems with slow coupling (greenhouses, HVAC) set GODON_PROPAGATION_LAG
explicitly. Default 0 covers the majority of use cases.

Co-authored-by: cherusk <[email protected]>

* feat: auto-derive propagation lag from trial data

When GODON_PROPAGATION_LAG is not set (default), the detector
auto-derives the lag by finding when the receiver's objective first
deviates from baseline after a sender push. Returns 0 for instant
coupling.

This replaces the old hardcoded 20s greenhouse thermal lag with a
data-driven approach that works for any system.

Co-authored-by: cherusk <[email protected]>

---------

Co-authored-by: godon-robot[bot] <godon-robot[bot]@users.noreply.github.com>
Co-authored-by: cherusk <[email protected]>
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.

0 participants