Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

[S2] hmm/hmmm metric key inconsistency across 4 files #51

Description

@erinepshovel-code

The metric key for hesitation markers is spelled two ways across the codebase:

File Key used
backend/src/edcmbone/engine.py "hmm"
backend/src/edcmbone/operator_extractor.py "hmm" / "hmmm" (mixed)
core/bridge/bridge_engine.py "hmm"
core/behavioral/behavioral_metrics.py "hmm"

Where a writer uses "hmmm" and a reader uses "hmm" (or vice versa), the hesitation signal is silently dropped — the lookup returns 0.0 or None with no error. Bridge correlations involving the hesitation metric are computed from a flat-zero input on the mismatched side.

Fix: Canonicalize to one spelling (suggest "hmm") across all four files. Define a shared constant:

# in a shared constants module
HMM_KEY = "hmm"

and import it at each of the four sites to eliminate the risk of future re-divergence.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions