Skip to content

sequentialCrossingHorizon is not exported from the package root #780

Description

@drewstone

sequentialCrossingHorizon is declared in dist/sequential-*.d.ts and documented as the best-case reachability preflight for pairedEvalueSequence, but it is not re-exported from the package root: on 0.183.0, import { sequentialCrossingHorizon } from '@tangle-network/agent-eval' is undefined, while pairedEvalueSequence, minimumPairsForPairedDeltaTest, requiredPairedSampleSize and pairedMde are exported.

A decidability gate (discovery docs/09-failure-modes.md mode 22) has to simulate the all-at-bound best case to find the decision horizon before a sequential design is allowed to spend. Without the export, every caller re-implements the simulation on top of pairedEvalueSequence, which is exactly the drift the function's own doc comment says it exists to prevent.

Reproduce:

npm i @tangle-network/agent-eval@0.183.0
node -e 'import("@tangle-network/agent-eval").then(m => console.log(typeof m.sequentialCrossingHorizon, typeof m.pairedEvalueSequence))'
# undefined function

Expected: function function. Re-export it from src/index.ts beside pairedEvalueSequence.

Observed by simulating it by hand on 0.183.0 with alpha 0.05: evidence at 22 pairs, decision at 24, for any bound, matching the mode-22 record.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions