Residual Discovery as Open-World Scientific Search: From Anomaly Clusters to Testable Hypotheses Without Reusing Discovery Evidence

Public source edition. Original dates, research statuses, numerical results and stated limits belong to this source. Any private material is identified by a custody notice in the text.

Residual Discovery as Open-World Scientific Search: From Anomaly Clusters to Testable Hypotheses Without Reusing Discovery Evidence

Author: E. M. Honeycutt III Affiliation: Honeycutt Ai Labs, Princeton, TX License: CC BY-NC 4.0 Revised: 2026-09-02 (Tier 3, prior-art overhaul, FWER correction, label pass)


The short version

Model failure is the engine of scientific progress, but the transition from unexplained observation to testable hypothesis lacks a formal protocol. Posterior predictive checks (Box 1980; Gelman, Meng, and Stern 1996) identify model inadequacy; Bayesian nonparametric methods (Rasmussen 2000; Ferguson 1973) grow hypothesis spaces automatically; preregistration (Chambers 2013; Nosek et al. 2018) constrains post-hoc hypothesis revision and makes it detectable. None of the cited systems supplies the complete typed lifecycle defined here, from residual detection through bin formation, candidate registration, confirmatory evaluation, and versioned disposition.

This paper develops a formal methodology for residual discovery as open-world scientific search. The framework begins with observations that are inadequately predicted by all active models. These observations enter an unresolved residual pool rather than being forced into the least-bad available explanation. Residuals may then be grouped into candidate bins according to recurrence, stability, coherence, and novelty. A candidate bin is not yet a hypothesis. It becomes one only when it is compressed into a predictive specification capable of making discriminating claims about unseen data.

The method separates three stages:

$$ \text{residual detection} \rightarrow \text{candidate construction} \rightarrow \text{held-out confirmation}. $$

Evidence used to discover a candidate cannot also serve as untouched confirmation of that same candidate. Candidate hypotheses therefore require fresh data, prospective predictions, or an explicit statistical correction for model-selection effects. Where multiple candidates advance to confirmation in the same evaluation epoch, FDR correction (Benjamini and Hochberg 1995) is required.

The central claim is methodological:

$$ \boxed{ \text{A recurring anomaly becomes a scientific hypothesis only when it predicts something it was not built to explain.} } $$


Note on H_perp

Throughout this paper, H_⊥ denotes the none-of-the-above residual model, the probability mass assigned to mechanisms outside the current named hypothesis set H = {H_1, ..., H_K}. The construct formalizes the catch-all hypothesis of Bayesian epistemology (Salmon 1975; Earman 1992): the complement partition that must receive probability when the named hypotheses do not collectively account for all evidence. H_⊥ is defined formally in the companion paper The None-of-the-Above Bayesian Hypothesis Controller: Open-World Model Selection with Residual Discovery and Typed Scientific Transitions (publication P-028) (The None-of-the-Above Bayesian Hypothesis Controller), which specifies the predictive distribution q_⊥ required for Bayesian weight, the SPLIT and MERGE operators that manage H_⊥ as the hypothesis set evolves, and the MODEL_SET_OPEN alarm threshold τ_⊥. Readers should consult The None-of-the-Above Bayesian Hypothesis Controller: Open-World Model Selection with Residual Discovery and Typed Scientific Transitions (publication P-028)'s Carving a New Hypothesis from H_perp, Proposal as Reparameterization, and Approximate Proposal sections for the definition of P(E | H_⊥) used in the Bayes factor BF_{j,⊥} in the Confirmation Likelihood section and the PROMOTE criteria in the PROMOTE section.


Introduction

Many reasoning systems assume a closed hypothesis set:

$$ \mathcal H= {H_1,\ldots,H_K}. $$

Every observation is interpreted relative to one of these models.

When no model predicts the data well, the system still tends to identify a winner:

$$ H^\ast = \arg\max_i P(D\mid H_i). $$

But:

$$ \text{best available} $$

does not imply:

$$ \text{adequate}. $$

This distinction matters in domains where the current explanation set is expected to be incomplete.

Examples include:

A system capable of discovering new explanatory structure therefore requires a disciplined response to model failure.

The response should not be:

$$ \text{pick the least-wrong model}. $$

Nor should it be:

$$ \text{invent a new explanation for every anomaly}. $$

The correct intermediate state is:

$$ \text{unresolved residual}. $$

Residual Discovery Problem

Let observation at time (t) be:

$$ y_t. $$

Existing models provide predictive distributions:

$$ p_i(y_t\mid x_t), \qquad i=1,\ldots,K. $$

Define an adequacy function:

$$ A(y_t,\mathcal H). $$

If:

$$ A(y_t,\mathcal H)<\tau_A, $$

the observation is classified as unresolved.

This creates residual record:

$$ r_t. $$

The core question is:

> When does a collection of unresolved residuals contain enough recurrent structure to justify proposing a new model?

Residuals Are Not Hypotheses

A residual records model failure.

It does not explain the failure.

For example:

$$ r_t: \text{all current models underpredict outcome }Y. $$

This observation may arise from:

Thus:

$$ Residual \neq Mechanism. $$

The architecture must preserve that distinction.

Residual Signature

Rather than storing only scalar prediction error, define residual signature:

$$ z_t = \Phi( y_t, x_t, p_1,\ldots,p_K ). $$

Possible components include:

A residual signature should describe the failure without assigning a cause. The signature is explicitly model-free at the labeling stage, it characterizes the observation's failure mode without attributing it to any specific hypothesis. Bayesian residual analysis (Gelman and Shalizi 2013; Gelman et al. 2013) provides the nearest precedent; the key architectural difference is that z_t is computed jointly across all K current models rather than relative to a single posterior predictive distribution.

Adequacy Gate

A residual should enter the discovery pool only if the current model set is genuinely inadequate under a predefined rule. The "surprise" framework of Box (1980) provides the foundational precedent: when posterior predictive distributions fail to cover observations, those observations are anomalies that motivate model revision. The adequacy gate operationalizes this as a binary classifier feeding a discrete FSM state.

For example:

$$ \max_i p_i(y_t\mid x_t)<\tau_L. $$

Or:

$$ \min_i Loss(H_i,y_t)>\tau_{loss}. $$

The gate should account for each model's declared noise and uncertainty.

Otherwise ordinary tail events will be mislabeled as open-world anomalies.

The open-set recognition literature (Scheirer et al. 2013; Hendrycks and Gimpel 2017) formalizes the equivalent problem in discriminative classifier contexts. The present architecture differs: where open-set recognition classifies instances at inference time, the adequacy gate routes unresolved observations into a persistent residual pool for downstream hypothesis generation. Detection is an intermediate step, not the terminal output.

Noise-Aware Residuals

Suppose model (H_i) already predicts heavy-tailed noise.

Then a large error may remain ordinary under:

$$ p_i(y). $$

Residual discovery should operate on calibrated predictive failure, not raw deviation.

Thus:

$$ |y-\hat y| $$

alone is generally insufficient.

The correct question is:

$$ \text{How surprising is }y\text{ under the complete predictive distribution?} $$

Residual Pool

Let:

$$ R= {r_1,\ldots,r_n} $$

be the unresolved residual pool.

These residuals remain unassigned to explicit mechanisms.

The pool may be heterogeneous.

It is not assumed that:

$$ Cause(r_1)=Cause(r_2)=\cdots. $$

Its purpose is to preserve unexplained observations long enough for recurrence to become visible.

Residual Persistence

Residuals should not disappear merely because a favored hypothesis becomes popular.

If observation (r_j) remains inadequately predicted, it remains in the residual pool.

This gives the invariant:

$$ \boxed{ \text{Unexplained observations remain represented until actually explained or invalidated.} } $$

Candidate Bins

A subset:

$$ B\subseteq R $$

may be identified as a candidate residual bin if its members share stable structure.

A bin is a pattern class, not yet a scientific hypothesis.

For example:

$$ B: \text{errors occurring only under high temperature and low pressure}. $$

That describes recurrence.

It does not yet identify mechanism.

Bin Eligibility

A residual bin should satisfy minimum criteria before model construction.

Possible conditions include:

$$ |B|\ge n_{\min}, $$

$$ Recurrence(B)\ge\rho_{\min}, $$

$$ Stability(B)\ge s_{\min}, $$

$$ Coherence(B)\ge c_{\min}, $$

$$ Novelty(B)\ge\nu_{\min}. $$

These thresholds should be defined before confirmatory testing (Chambers 2013; Nosek et al. 2018). Preregistration constrains post-hoc manipulation and makes it detectable (the Threshold Immutability property, P6, in the Property-Based Tests section) but does not prevent lenient ex-ante setting. No calibrated defaults exist across domains, so the thresholds are researcher-set. A framework user should state the chosen values and rationale, recognizing that this is a principled gate rather than an automatic constraint. Bayesian nonparametric methods (Rasmussen 2000; Broderick, Jordan, and Pitman 2012; Miller and Harrison 2014) address the same "how many classes" question through automatic data-driven component creation; the present approach substitutes human-gated, auditable criteria for automatic expansion, trading calibration difficulty for transparency and auditability.

Recurrence

A pattern occurring once may be scientifically interesting.

It is weak evidence of a stable mechanism.

Define recurrence across independent observations:

$$ Recurrence(B) = #\text{independent occurrences}. $$

Independence matters.

Ten duplicated records from one source are not ten independent residuals.

Source Independence

Let residual provenance be:

$$ Prov(r). $$

If several residuals share one underlying source, they should not contribute independently to recurrence.

Define effective recurrence:

$$ R_{eff}(B) $$

over independent provenance roots.

This prevents duplicate observations from manufacturing apparent stability.

Temporal Recurrence

A residual pattern recurring across time is generally stronger than one appearing within one short burst.

A candidate may require observations across:

$$ t_1<t_2<\cdots<t_m. $$

This helps distinguish persistent mechanism from transient instrumentation failure.

Cross-Context Recurrence

A stronger candidate may recur across contexts:

$$ C_1,C_2,\ldots,C_m. $$

For example, the same residual structure may appear:

Cross-context recurrence increases robustness.

Coherence

A candidate bin should possess internal similarity on predefined residual dimensions.

Let:

$$ d(z_i,z_j) $$

be a distance or dissimilarity function.

One coherence measure is:

$$ Coherence(B) = 1- \frac{1}{|B|(|B|-1)} \sum_{i\neq j} \tilde d(z_i,z_j), $$

where $\tilde d$ is normalized.

The exact metric is domain-specific.

The principle is not.

Stability

A real residual bin should not disappear under minor perturbations of the analysis.

Possible stability tests include:

A candidate that exists only under one fragile analysis choice should remain OPEN or PARK.

Bootstrap Stability

Let:

$$ B^{(1)},\ldots,B^{(m)} $$

be candidate bins produced from bootstrap samples.

Define:

$$ Stability(B) = \frac{1}{m} \sum_{j=1}^{m} Overlap(B,B^{(j)}). $$

High stability indicates that the candidate is not being driven by a small number of idiosyncratic observations.

Leave-One-Out Stability

For each residual:

$$ r_j\in B, $$

remove (r_j) and recompute candidate structure.

If:

$$ B_{-j} $$

collapses whenever one observation is removed, the pattern is fragile.

This is particularly useful for small residual sets.

Novelty

A residual bin should not create a new hypothesis if an existing model can absorb it through parameter revision within its declared scope.

Define compatibility:

$$ C(B,H_i). $$

A novelty gate may require:

$$ \max_i C(B,H_i)<\tau_C. $$

This separates:

$$ \text{model extension} $$

from:

$$ \text{new model class}. $$

Parameter Failure Versus Model Failure

Suppose model:

$$ H_i(\theta) $$

has parameters $\theta$.

Residuals may indicate simply that:

$$ \theta $$

was poorly estimated.

Before creating a new hypothesis, test whether some admissible:

$$ \theta^\ast $$

can explain the residuals without damaging held-out performance elsewhere.

If yes, the appropriate response may be:

$$ UPDATE_PARAMETERS, $$

not:

$$ PROPOSE_NEW_MODEL. $$

Scope Failure

A model may also be valid but applied outside its intended domain.

If:

$$ x\notin Scope(H_i), $$

failure of (H_i) does not imply a new mechanism.

It may indicate a scope error.

Residual discovery therefore requires explicit model scope.

Data-Quality Gate

Before mechanism generation, residuals should be tested against data-quality explanations.

Possible checks include:

A new mechanism should not be introduced to explain a corrupted column.

Residual Audit

Before candidate generation, each bin should pass:

$$ DataQuality(B)=PASS. $$

This establishes that obvious data-quality explanations have been investigated.

OPEN

A stable unresolved residual pattern enters:

$$ OPEN. $$

OPEN means:

> there is structure requiring explanation.

It does not mean:

> there is a new mechanism.

An OPEN record may contain:

Hypothesis Construction

The transition:

$$ OPEN\rightarrow PROPOSE $$

requires more than a cluster description.

A hypothesis must define:

  1. mechanism or model form;
  2. scope;
  3. variables;
  4. parameters;
  5. expected observations;
  6. discriminating predictions;
  7. failure conditions.

This converts descriptive structure into a testable model.

Compression Principle

A useful hypothesis compresses several residual observations into one explanatory structure.

Instead of:

$$ r_1,r_2,\ldots,r_n $$

as separate anomalies, hypothesis (H_j) provides a common model:

$$ H_j\Rightarrow {r_1,\ldots,r_n} $$

and predicts additional consequences.

Compression alone is not enough.

The key requirement is extrapolation.

Prediction Beyond Discovery

A candidate hypothesis must predict something not used to construct it.

Let:

$$ D_{disc} $$

be discovery data.

The candidate must define:

$$ P(D_{future}\mid H_j) $$

before:

$$ D_{future} $$

is observed.

This is the point at which a pattern becomes a scientific hypothesis.

Discovery/Confirmation Separation

Partition evidence:

$$ D= D_{disc} \cup D_{confirm}. $$

Require:

$$ D_{disc}\cap D_{confirm} = \varnothing $$

under the default protocol.

Discovery evidence may motivate the hypothesis.

Confirmation evidence tests it.

The partition rule prevents the grossest form of selection bias, reuse of the same data for discovery and confirmation (Simmons, Nelson, and Simonsohn 2011; Wagenmakers et al. 2012). Selective inference methods (Berk et al. 2013; Fithian, Sun, and Taylor 2014) provide post-selection inference that is valid after adaptive model selection, correcting for the selection event. The present architecture is complementary rather than competing: D_disc ∩ D_confirm = $\emptyset$ prevents data reuse but does not provide selection-corrected inference conditional on the discovery event. Applications requiring formal post-selection guarantees should apply Berk et al. (2013) or Fithian et al. (2014) at the confirmatory stage. The architecture's contribution is the operational infrastructure, typed lifecycle states, ledger records, residual preservation, within which selection-corrected inference methods can be applied.

Why Reuse Is Dangerous

A model generated from (D_{disc}) has already been optimized (formally or informally) to fit that data.

Therefore:

$$ P(D_{disc}\mid H_j) $$

overstates independent support if treated naively.

The same issue occurs in:

The simplest control is held-out confirmation.

Cross-Validation

When fresh data are scarce, cross-validation may be used.

But if model form itself was invented using the full dataset, ordinary cross-validation can remain optimistic.

A cleaner design uses nested procedures:

$$ OuterSplit \rightarrow Discovery \rightarrow CandidateFreeze \rightarrow OuterTest. $$

The nested procedure controls parameter overfitting. It does not fully control model-class selection bias when hypothesis form is selected from residual search, a case the paper explicitly anticipates. The strongest error-rate claims in this paper apply to the prospective-data setting described in the Prospective Confirmation section. In the nested cross-validation setting, held-out testing reduces but does not eliminate the inflation that arises from searching over a model class of unbounded complexity.

Prospective Confirmation

The strongest confirmation is prospective.

Freeze:

$$ H_j $$

at time (t_0).

Observe new data after:

$$ t_1>t_0. $$

If predicted residual structure appears:

$$ PredictionSuccess(H_j). $$

Prospective confirmation establishes temporal ordering unambiguously. It fully resolves the reparameterization attack described in the Confirmatory Boundary section because D_future does not exist at hypothesis-freeze time. For retrospective applications (the historical retrospective case described in the Evaluation Plan section), the attack is available: a researcher can delay the formal freeze while tailoring the hypothesis to informal knowledge of the confirmation-data distribution. The framework's versioning and ledger requirements (the Candidate Freeze and Versioning sections) audit the declared freeze boundary but cannot audit informal pre-freeze tailoring. The strongest Type-I error guarantees are therefore scoped to the prospective setting.

Prediction Specificity

A hypothesis that predicts:

> something unusual will happen

is weak.

A strong prediction specifies:

For example:

$$ x>a \land y<b \Rightarrow z\in[c,d]. $$

Specific predictions are easier to falsify and more informative when successful.

Discriminating Predictions

The best prediction is one on which rival hypotheses disagree.

For hypotheses:

$$ H_a,H_b, $$

choose experiment (E) such that:

$$ P(Y\mid H_a,E) $$

differs substantially from:

$$ P(Y\mid H_b,E). $$

This reduces ambiguity. The Bayesian optimal experimental design literature (Chaloner and Verdinelli 1995) formalizes experiment selection to maximize the expected information gain over the model posterior, the framework described here adapts this criterion to the multi-candidate discovery setting.

Adversarial Alternative Generation

Before testing a new candidate, actively construct alternatives.

Given residual bin (B), propose:

$$ H_1,H_2,\ldots,H_m. $$

Alternatives should include:

This transforms hypothesis generation into model competition.

Strong Alternatives

An alternative is useful when it explains the same discovery data but predicts something different later.

If all candidates make identical predictions, the next experiment cannot discriminate them.

A strong discovery system therefore optimizes for divergence in future predictions.

Candidate Freeze

Before confirmatory evidence is examined, freeze:

$$ Spec(H_j). $$

The specification includes:

Material changes after evidence exposure create:

$$ H_j^{(2)}. $$

The original version remains historically fixed.

Versioning

Let:

$$ H_j^{(v)} $$

denote version (v).

If a failed prediction causes the model to change materially, the revised model is not the same tested object.

This prevents:

$$ H^{(1)} \rightarrow \text{failure} \rightarrow \text{edit} \rightarrow \text{claim success for }H^{(1)}. $$

Confirmation Likelihood

For held-out evidence (E), evaluate:

$$ P(E\mid H_j). $$

Against rival (H_k):

$$ BF_{j,k} = \frac{ P(E\mid H_j) }{ P(E\mid H_k) }. $$

Against residual model:

$$ BF_{j,\perp} = \frac{ P(E\mid H_j) }{ P(E\mid H_\perp) }. $$

A new candidate must compete with remaining none-of-the-above uncertainty. See the H_perp note preceding the Introduction for the definition of H_⊥ and the location of P(E | H_⊥) in the companion paper The None-of-the-Above Bayesian Hypothesis Controller: Open-World Model Selection with Residual Discovery and Typed Scientific Transitions (publication P-028). Bayes factors are formally characterized in Kass and Raftery (1995); the catch-all hypothesis that H_⊥ formalizes has its epistemological foundation in Salmon (1975) and Earman (1992).

Candidate Does Not Own the Entire Residual

Suppose:

$$ B $$

contains 100 residual observations.

Hypothesis (H_j) convincingly explains 60.

The other 40 remain:

$$ B_\perp. $$

The correct update is:

$$ B \rightarrow B_j + B_\perp. $$

Not:

$$ B\rightarrow H_j. $$

This is residual preservation.

Partial Explanatory Coverage

Define coverage:

$$ Coverage(H_j,B) = \frac{ |{r\in B:H_j\text{ adequately predicts }r}| }{ |B| }. $$

A candidate may have high predictive precision but incomplete coverage.

This can still be useful.

Coverage and adequacy should be reported separately.

Precision Versus Coverage

A broad model may explain many residuals weakly.

A narrow model may explain fewer residuals strongly.

Therefore report:

$$ PredictivePrecision $$

and:

$$ ResidualCoverage. $$

Do not combine them automatically into one score unless the aggregation is justified.

Residual After Promotion

Even after a model is promoted, new prediction errors return to the residual process.

Thus:

$$ PROMOTE(H_j) $$

does not close future discovery.

Scientific search remains open-world.

Candidate Failure

A proposed model fails when it violates its frozen criteria.

Examples:

Failure applies to the candidate version.

Failure Is Informative

A failed model still contributes information.

It identifies:

The failure record should remain in the hypothesis lineage.

No Resurrection

A failed candidate should not later reappear unchanged as a new proposal.

If a successor differs materially, it receives new version:

$$ H_j^{(2)}. $$

The lineage records:

$$ REFINES(H_j^{(2)},H_j^{(1)}). $$

The prior failure remains visible.

PARK

A candidate may be PARKED when:

PARK preserves the candidate without treating it as established.

PROPOSE

PROPOSE means:

> a predictive model exists and is ready for testing.

This is stronger than OPEN.

It does not mean the model is likely true.

PROMOTE

PROMOTE means:

> the candidate has passed its initial confirmatory contract and is admitted to the active explicit model set.

Promotion should require frozen criteria.

Examples:

$$ BF_{j,\perp}\ge B_{\min}, $$

$$ Replication\ge r_{\min}, $$

$$ Calibration\ge c_{\min}. $$

Prior redistribution, how P(H_j) changes when a new hypothesis is promoted from H_⊥, is governed by the SPLIT operator in The None-of-the-Above Bayesian Hypothesis Controller: Open-World Model Selection with Residual Discovery and Typed Scientific Transitions (publication P-028)'s Carving a New Hypothesis from H_perp, Proposal as Reparameterization, and Approximate Proposal sections.

PASS

PASS should be scoped to a specific test.

For example:

$$ PASS(H_j,Test_4). $$

It should not mean:

$$ H_j\text{ permanently correct}. $$

The model remains exposed to future evidence.

FAIL

FAIL means the candidate version has violated a predefined decisive criterion.

It should be difficult to erase.

A later successor may remain possible.

Controller States

The discovery lifecycle is:

$$ OPEN \rightarrow PROPOSE \rightarrow PROMOTE \rightarrow PASS $$

with alternative transitions to:

$$ PARK $$

or:

$$ FAIL. $$

This is not a simple ladder.

For example:

$$ PROMOTE\rightarrow PARK $$

may occur when applicability becomes uncertain.

The six-state FSM extends the two-stage Registered Reports model (Chambers 2013; Nosek et al. 2018), Stage 1 (proposal + in-principle acceptance) maps to PROPOSE → PROMOTE; Stage 2 (results) maps to PASS / FAIL, by adding OPEN as a formal state for unresolved observations prior to hypothesis formation, PARK as a workflow state that preserves posterior without advancing, versioned FAIL semantics that allow re-entry with lineage declared, and coupling of lifecycle state to the H_⊥ probability mass via BF_{j,⊥}.

Distinguishing Discovery From Administration

Administrative transitions should not themselves change Bayesian belief.

If:

$$ P(H_j)=0.42 $$

before PROMOTE, then:

$$ P'(H_j)=0.42 $$

after PROMOTE unless new evidence is separately applied.

This preserves separation between scientific evidence and workflow.

Discovery Priors

Candidate generation raises a difficult issue:

> What prior should a newly invented hypothesis receive?

A coherent open-world system should allocate prior mass from a broader residual model or use a hierarchical prior over model generation.

It should not create probability from nothing.

The SPLIT operator in The None-of-the-Above Bayesian Hypothesis Controller: Open-World Model Selection with Residual Discovery and Typed Scientific Transitions (publication P-028)'s Carving a New Hypothesis from H_perp, Proposal as Reparameterization, and Approximate Proposal sections governs this allocation, how much mass to extract from H_⊥, under what conditions, and what remains in H_⊥ after a new hypothesis is promoted. The Bayesian nonparametric literature (Broderick, Jordan, and Pitman 2012; Ferguson 1973) addresses the same redistribution problem through automatic component creation; the SPLIT operator provides the human-gated analog. The Bayesian confirmation machinery in the Confirmation Likelihood section depends on this specification, BF_{j,⊥} requires P(E | H_⊥), which requires knowing how much prior mass remains in H_⊥ after allocation.

Search Cost

Scientific search is not free.

Candidate generation and testing consume:

The system may rank residual bins by expected value.

One possible score is:

$$ Priority(B) = Impact(B) \times Recurrence(B) \times InformationGain(B) / Cost(B). $$

This is operational, not epistemic.

Information Gain

For candidate set:

$$ \mathcal H_B, $$

choose experiment (e) maximizing:

$$ I(H;Y\mid e). $$

This favors experiments whose possible outcomes would substantially change model probabilities. MacKay (1992) introduced expected information gain as the objective for active data selection, the criterion is standard Bayesian optimal experimental design (Chaloner and Verdinelli 1995). The architecture's contribution is the integration of this criterion into a lifecycle FSM, so that information gain governs which experiments to run in the PROPOSE → PROMOTE window.

Residual discovery therefore naturally connects to active experimental design.

Exploratory Search

Exploration may be broad and unconstrained.

Researchers may:

The architecture does not prohibit exploratory freedom.

It constrains what happens after exploration.

Confirmatory Boundary

Once a candidate is selected for serious evaluation, its specification freezes.

This is the boundary between:

$$ \text{discovery} $$

and:

$$ \text{test}. $$

The framework preserves creativity without confusing it with confirmation.

The boundary is declared by the researcher (the moment of "selection for serious evaluation"). The framework's versioning and ledger requirements (the Candidate Freeze and Versioning sections) audit the declared boundary but cannot audit what a researcher knew informally during unrestricted exploration. In prospective applications, this concern is substantially mitigated because D_future does not yet exist at freeze time. In retrospective applications (the historical retrospective case described in the Evaluation Plan section), a researcher can in principle tailor the hypothesis to informal knowledge of the confirmation-data distribution while maintaining a formally compliant ledger. The framework scopes its strongest guarantees to the prospective setting accordingly.

AI-Assisted Residual Search

AI systems are well suited to generating candidate explanations for residual patterns.

Possible role:

$$ LLM: B\rightarrow{H_1,\ldots,H_m}. $$

The model should be treated as proposer.

Generated hypotheses receive no evidentiary credit merely because they sound coherent.

They must define testable predictions.

AI as Adversarial Generator

An especially useful role is to ask an AI system to generate:

This can reduce confirmation bias in human-led research.

AI Generation Provenance

Each generated candidate should record:

This allows later determination of whether apparently independent hypotheses were actually generated from the same underlying material.

Residual Search and Multiple Testing

If thousands of candidate bins are examined, some will appear coherent by chance.

Discovery-scale metadata should include two distinct counts:

Under independent tests when the relevant nulls are true, with K candidates evaluated at significance threshold α, the familywise error rate inflates to 1 − (1 − α)\textsuperscript{K}, which exceeds 0.99 for K = 100 and α = 0.05 (Benjamini and Hochberg 1995; Ioannidis 2005). Confirmatory testing on held-out data prevents reuse of discovery observations but does not itself control this inflation. Evaluations with N_tested > 1 should apply FDR correction (Benjamini and Hochberg 1995, step-up procedure) at level q across all N_tested confirmatory tests in the evaluation epoch.

Where the application requires strong control of individual false positives (e.g., medical device certification or formal claim registration), FDR control is insufficient. In those settings, FWER control is appropriate; use Holm (1979) or Bonferroni correction instead. FDR-level control is appropriate for discovery pipelines where some false positives are acceptable in exchange for higher power, the typical residual discovery setting.

The controller records N_tested as a required metadata field alongside N_searched.

Selection Bias

Suppose the strongest cluster among 10,000 candidate partitions is reported.

Its discovery score is not an unbiased estimate of future performance.

This is why:

$$ DiscoveryScore $$

must remain distinct from:

$$ ConfirmatoryScore. $$

Negative Controls

Residual discovery pipelines should be tested on data generated from models known to be complete.

The method should not generate stable new mechanisms at high rates under the null.

This measures false discovery.

Positive Controls

Synthetic datasets with deliberately omitted mechanisms can test whether the pipeline detects recurrent residual structure.

For example:

$$ Data= H_1+H_2 $$

while the initial model set contains only:

$$ H_1. $$

The pipeline should discover residual structure associated with (H_2).

Hard Positive Controls

A harder test uses omitted mechanisms whose effects overlap strongly with existing models.

This evaluates whether novelty detection can distinguish:

$$ parameter variation $$

from:

$$ new model class. $$

Hard Negative Controls

Generate data with:

but no new mechanism.

A strong pipeline should identify these as model/data-quality issues rather than inventing new causal categories.

Evaluation Plan

The framework should be evaluated across four settings.

Synthetic model omission

Known hidden mechanism.

Measure recovery.

Noise-only anomalies

No hidden mechanism.

Measure false discovery.

Historical retrospective case

Use a domain where a later-discovered mechanism is known and simulate earlier incomplete knowledge.

Test whether residual search would have surfaced it.

Note: retrospective applications are subject to the reparameterization attack described in the Confirmatory Boundary section. The evaluation should explicitly test whether the freeze-boundary constraint is enforceable in retrospective settings.

AI-assisted research workflow

Measure whether structured residual handling reduces unsupported hypothesis promotion relative to unconstrained generation.

Metrics

Recommended metrics include:

Discovery Precision

Define:

$$ Precision_{disc} = \frac{ \text{candidate bins corresponding to real omitted structure} }{ \text{all candidate bins} }. $$

This can be measured directly in synthetic benchmarks.

Discovery Recall

Define:

$$ Recall_{disc} = \frac{ \text{omitted mechanisms detected} }{ \text{omitted mechanisms present} }. $$

A method can be conservative and precise but miss subtle mechanisms.

Both dimensions matter.

Prospective Lift

For candidate (H_j), compare predictive score before and after its introduction on held-out data:

$$ Lift(H_j) = \frac{ Score(\mathcal H+H_j,D_{test}) }{ Score(\mathcal H,D_{test}) }. $$

A legitimate new model should improve future prediction, not merely retrospective fit.

Residual Reduction

After promotion, measure:

$$ ResidualMass_{before} $$

versus:

$$ ResidualMass_{after}. $$

A useful candidate should reduce unexplained structure.

But if reduction occurs only by increasing model flexibility without improving held-out prediction, the result may be overfit.

Robustness

Candidate success should be tested across:

A legitimate mechanism should not depend entirely on one arbitrary analytic pipeline.

Ablation

Remove each discovery stage:

Measure false promotion rate.

This reveals which controls matter most.

Expected Ablation Result

The strongest anticipated failure should occur when discovery and confirmation are merged.

Without held-out separation, candidate promotion rates will increase, but prospective performance should deteriorate.

That would directly demonstrate the importance of the central boundary.

Mutation Testing

Inject defects:

The invariant suite should detect each.

Property-Based Tests

P1. Residual persistence

Unexplained residuals are never silently deleted.

P2. Discovery-confirmation disjointness

A residual used to construct (H_j) cannot be marked untouched confirmation of (H_j).

P3. Candidate version immutability

Material change creates new version.

P4. Partial coverage preservation

Residuals not explained by (H_j) remain open.

P5. No administrative belief mutation

OPEN/PROPOSE/PROMOTE/PARK/PASS/FAIL do not directly alter posterior probability.

P6. Threshold immutability

Confirmatory thresholds do not change after evidence exposure.

P7. Failure lineage

Failed model cannot silently reappear unchanged.

P8. Provenance-aware recurrence

Duplicate-source residuals do not count as independent recurrence.

Residual Ledger

Each residual should record:

$$ ( residual_id, observation, model_set, prediction, failure_metric, provenance, time, status ). $$

This allows later reconstruction of why the observation was considered unexplained.

Candidate Ledger

Each candidate records:

$$ ( hypothesis_id, version, parent_bin, discovery_data, specification, alternatives, predictions, thresholds, N_tested, status ). $$

N_tested is the count of candidates that advanced to confirmatory evaluation in the same epoch; it feeds the BH FDR correction required in the Residual Search and Multiple Testing section.

This creates an auditable discovery history.

Result Ledger

Each confirmatory test records:

$$ ( test_id, hypothesis_version, held_out_data, likelihoods, Bayes\ factors, decision, receipt ). $$

Thus the pathway from anomaly to model becomes reconstructable.

Failure Surface

The method is designed to fail explicitly.

A residual candidate weakens or fails if:

  1. pattern does not recur;
  2. pattern is source-duplicate;
  3. data-quality explanation dominates;
  4. existing model absorbs the residual under legitimate parameter change;
  5. cluster is unstable;
  6. alternative model predicts held-out data better;
  7. candidate predicts no new observations;
  8. fresh confirmation fails;
  9. claimed coverage ignores residual remainder.

Mechanism Humility

A residual bin may remain descriptive for a long time.

That is acceptable.

The system should prefer:

$$ OPEN: \text{stable unexplained pattern} $$

over:

$$ PROPOSE: \text{weak invented mechanism}. $$

Open-world science does not require immediate closure.

It requires preserving unresolved structure.

Discovery Without Mechanism

Sometimes a stable empirical subtype can be useful even before mechanism is known.

For example:

$$ Subtype_B $$

may reliably predict future behavior.

Such a predictive class can become an explicit statistical hypothesis while its causal mechanism remains OPEN.

The ledger should distinguish:

$$ PredictiveModel $$

from:

$$ MechanisticExplanation. $$

Causal Claims

A causal hypothesis requires stronger tests than a predictive subtype.

The framework therefore allows candidate type:

$$ PREDICTIVE $$

or:

$$ CAUSAL. $$

A model should not be promoted from predictive success directly into causal status without additional evidence.

Hierarchical Discovery

Residual search may proceed recursively.

After promoting:

$$ H_j, $$

its own residuals may reveal subtypes:

$$ H_{j,1}, H_{j,2}. $$

Thus the model space can grow hierarchically.

Each refinement still requires fresh prediction boundaries.

Residual Contraction

Ideally, scientific progress reduces:

$$ P(H_\perp) $$

or residual mass while improving predictive performance.

However, discovery may also reveal that the original model space was more incomplete than believed.

Thus temporary increase in unresolved structure can itself represent progress.

Discovery and None-of-the-Above

This framework naturally interfaces with a Bayesian none-of-the-above model.

High posterior on:

$$ H_\perp $$

triggers residual investigation.

Residual discovery then attempts to partition part of:

$$ H_\perp $$

into explicit candidate models.

The Bayesian controller (The None-of-the-Above Bayesian Hypothesis Controller: Open-World Model Selection with Residual Discovery and Typed Scientific Transitions (publication P-028)) handles probability.

The present framework handles model generation discipline.

Difference From Anomaly Detection

Anomaly detection asks:

$$ \text{Is this observation unusual?} $$

Residual discovery asks:

$$ \text{Do unusual observations form a stable, reproducible structure that supports a new predictive model?} $$

This is a substantially stronger requirement. Anomaly detection terminates at instance classification; residual discovery uses the anomalous instance as the first stage in a typed lifecycle that culminates in a falsifiable hypothesis. OOD detection (Hendrycks and Gimpel 2017) represents the canonical anomaly detection approach in the machine learning setting; the present architecture converts OOD instances into residual clusters and drives them toward new hypotheses rather than terminating at a rejection decision.

Difference From Clustering

Clustering asks:

$$ \text{Which observations are similar?} $$

Residual discovery asks:

$$ \text{Does the cluster correspond to a model inadequacy, and can a new hypothesis predict unseen data?} $$

A cluster is only an intermediate object. Bayesian nonparametric clustering methods (Rasmussen 2000; Broderick, Jordan, and Pitman 2012; Miller and Harrison 2014) address hypothesis-space expansion automatically through data-driven component creation. The present architecture differs in two respects: (1) bin eligibility is human-gated and preregistered rather than automatic, making the transition auditable; (2) the cluster is not itself promoted, it must generate a predictive model that is separately confirmed on held-out data. Miller and Harrison (2014) note that Pitman-Yor process mixtures can be inconsistent for the number of components, which motivates the human-gated alternative.

Difference From Open-Set Recognition

Open-set recognition (Scheirer et al. 2013) identifies samples outside known classes at inference time, producing a reject option for instances that fall below a recognition threshold. Residual discovery extends beyond detection into scientific model construction, adversarial comparison, and prospective testing. Where open-set recognition asks whether a new instance belongs to any known class, residual discovery accumulates rejected instances and asks whether their pattern constitutes a stable new class that warrants a formal hypothesis.

Difference From Novelty Detection

Novelty detection (Markou and Singh 2003; Pimentel et al. 2014) identifies new patterns in data streams. The present architecture extends novelty detection in two directions: (1) bin eligibility gates determine whether novelty is persistent and stable, not merely present; (2) the lifecycle FSM provides a typed transition from novelty to falsifiable hypothesis. Novelty detection terminates when a novel instance is flagged; residual discovery begins there.

Related Work

The paper's distinctive contribution is the explicit residual-to-hypothesis transition contract: a typed lifecycle FSM with ledger records, data-role labels, versioned failure semantics, residual preservation, and BH FDR-controlled confirmatory testing. The components are drawn from five established areas; none of those areas provides the combination.

Posterior predictive checking and model criticism. Box (1980) introduced the "surprise" framework: when posterior predictive distributions fail to cover observations, those observations motivate model extension. Gelman, Meng, and Stern (1996) formalized posterior predictive checks; Gelman and Shalizi (2013) discuss the iterative model-building cycle in which residuals drive model revision. The present architecture is structurally related, both collect observations that fail existing model predictions and use them to motivate new models, but differs architecturally. Posterior predictive checking produces a continuous discrepancy statistic and does not specify a lifecycle for residuals. The adequacy gate here produces a binary FSM state (OPEN), after which the residual enters a persistent pool with explicit provenance and recurrence requirements. The transition to PROPOSE requires prediction-beyond-discovery, which PPC does not require.

Out-of-distribution and novelty detection. OOD detection (Scheirer et al. 2013; Hendrycks and Gimpel 2017) and novelty detection (Markou and Singh 2003) identify instances outside known distributions. These literatures define the "what is an anomaly" question that the Adequacy Gate section operationalizes. The cited detectors output an anomaly or rejection decision and do not specify the downstream residual-to-hypothesis lifecycle defined here.

Bayesian nonparametric methods. Rasmussen (2000), Broderick, Jordan, and Pitman (2012), and Miller and Harrison (2014) address hypothesis-space expansion through automatic component creation, the same "how many classes" question the bin-eligibility gate answers. The delta: BNP expansion is automatic and continuous; the present approach is human-gated and auditable. BNP methods do not require prediction-beyond-discovery or impose a lifecycle on new components. The preregistered threshold requirement in the Bin Eligibility section is the human-gated alternative to BNP's automatic priors.

Preregistration and the replication crisis. The discovery/confirmation separation described in the Discovery/Confirmation Separation section, candidate freeze described in the Candidate Freeze section, and threshold immutability (the P6 property in the Property-Based Tests section) formalize the core contribution of the preregistration movement (Simmons, Nelson, and Simonsohn 2011; Wagenmakers et al. 2012; Chambers 2013; Nosek et al. 2018). Registered Reports implement a two-state analogue of the lifecycle: Stage 1 (proposal) maps to PROPOSE and Stage 2 (results) maps to PASS/FAIL. The genuine additions here: OPEN as a formal state for unresolved observations prior to hypothesis formation, PARK as a workflow state that preserves posterior without advancing, versioned FAIL semantics, and coupling of lifecycle state to H_⊥. The preregistration literature addresses journal-level workflows; this architecture formalizes the same principles in a computational protocol with typed transitions and a Bayesian posterior coupling. Gelman and Loken (2014) analyze the "garden of forking paths", the implicit hypothesis search that occurs through researchers' unrestricted analytic choices, which directly motivates the confirmatory boundary described in the Confirmatory Boundary section.

Scientific discovery systems. Langley et al. (1987) describe BACON, a rule-induction system that discovers quantitative regularities by searching over symbolic patterns. The cited BACON account centers rule induction from symbolic patterns; the present paper adds an explicit persistent-residual ledger and typed disposition lifecycle. Kitano (2016) frames AI-assisted discovery at the systems level without specifying the complete typed lifecycle defined here. The present contribution is the lifecycle contract that specifies what happens between anomaly detection and hypothesis confirmation.

Selective inference. Berk et al. (2013) and Fithian, Sun, and Taylor (2014) provide post-selection inference that is valid after adaptive model selection, correcting for the selection event. The partition rule D_disc ∩ D_confirm = $\emptyset$ prevents data reuse, the grossest form of selection bias, but does not provide selection-corrected inference conditional on the discovery event. Applications requiring formal post-selection guarantees should apply Berk et al. (2013) or Fithian et al. (2014) at the confirmatory stage. The architecture's contribution is the operational infrastructure within which such inference methods can be applied.

Design Claim (Promotion Gate)

Let candidate (H_j) be generated from residual discovery set:

$$ D_{disc}. $$

Let:

$$ D_{test} $$

be untouched confirmation data.

If:

  1. residual pattern is recurrent and stable;
  2. known data-quality and parameter explanations are excluded under declared tests;
  3. (H_j) is frozen before observing (D_{test});
  4. (H_j) predicts (D_{test}) better than specified alternatives;
  5. unexplained remainder is preserved;

then the evidence supports promotion of (H_j) as an explicit predictive model more strongly than continued treatment of the pattern as undifferentiated residual.

This is a model-selection result.

It does not automatically establish causal mechanism.

This Design Claim enumerates the verification protocol at the PROMOTE gate; it is a summary of the PROMOTE criteria set out in the PROMOTE section, not a proved theorem or an independent formal result. The conditions do not assert independent sufficiency as statistical guarantees. Each condition addresses a distinct failure mode: conditions 1–3 ensure the evaluation is prospective and preregistered; conditions 4–5 assess the confirmatory evidence against H_⊥ as the baseline. Note that condition 5 (BF_{j,⊥} ≥ B_min) implies condition 4 in the specific case where H_⊥ is one of the "specified alternatives", the conditions are design requirements the framework enforces, which are not required to be logically independent.

Core Invariants

The framework can be reduced to eight invariants.

Residual preservation

Unexplained observations stay represented.

Cluster-hypothesis separation

A residual bin is not automatically a hypothesis.

Prediction requirement

A proposed model must predict beyond its discovery data.

Discovery-confirmation separation

The same evidence is not naively counted twice.

Alternative competition

Candidates compete against plausible rivals.

Partial-coverage preservation

A successful model absorbs only what it explains.

Versioned failure

Failed candidate versions remain failed historically.

Open-world continuation

Promotion of one model does not close the residual search space.

Architectural Summary

The complete pipeline is:

$$ \boxed{ \begin{array}{c} \text{Existing models make predictions}\ \downarrow\ \text{Adequacy gate identifies unresolved observations}\ \downarrow\ \text{Residual signatures enter persistent pool}\ \downarrow\ \text{Recurrent stable bins are identified}\ \downarrow\ \text{Data-quality and existing-model alternatives are tested}\ \downarrow\ \text{Residual pattern enters OPEN}\ \downarrow\ \text{Predictive model is constructed}\ \downarrow\ \text{Candidate freezes as PROPOSE}\ \downarrow\ \text{Fresh evidence tests candidate against alternatives (BH FDR if N_tested > 1)}\ \downarrow\ \text{PROMOTE / PARK / FAIL}\ \downarrow\ \text{Unexplained remainder stays residual} \end{array} } $$

Conclusion

Scientific discovery begins where current models stop working.

But model failure alone does not tell us what should replace them.

The residual-discovery framework therefore inserts a disciplined intermediate layer between anomaly and explanation.

Unexpected observations are retained as residuals.

Repeated residual structure may form stable bins.

Stable bins are tested against data-quality, parameter, and scope explanations.

Only then may they become OPEN scientific questions.

A question becomes a proposed hypothesis only when it is converted into a predictive model with explicit failure conditions.

The evidence that generated the model is not reused naively as confirmation.

Fresh data must test it.

Alternatives must compete.

When multiple candidates proceed to confirmation, FDR correction scales Type-I error control to the actual number tested.

Failed models remain failed.

Partially successful models explain only the residual portion they actually cover.

The rest remains open.

The architecture therefore rejects both forced closure and uncontrolled hypothesis proliferation.

Its core rule is:

$$ \boxed{ \text{Do not promote an anomaly into a mechanism until it survives prediction beyond the anomaly itself.} } $$

More compactly:

$$ \boxed{ \text{Residual first. Hypothesis second. Prediction third.} } $$

That ordering turns unexplained data into a disciplined search process rather than a generator of post hoc stories.

Runtimes and their contribution

Authorship and all research judgments are the author's alone. Machine runtimes assisted with editorial restructuring, source-location checks, house-style normalization, and verification. They did not originate the research claims, perform unreported experiments, or receive creator credit. Detailed per-runtime provenance remains in the project audit record.

References

Benjamini, Y., and Hochberg, Y. (1995). Controlling the false discovery rate: A practical and powerful approach to multiple testing. Journal of the Royal Statistical Society B, 57(1), 289–300.

Berk, R., Brown, L., Buja, A., Zhang, K., and Zhao, L. (2013). Valid post-selection inference. Annals of Statistics, 41(2), 802–837.

Box, G. E. P. (1980). Sampling and Bayes inference in scientific modelling and robustness. Journal of the Royal Statistical Society A, 143(4), 383–430.

Broderick, T., Jordan, M. I., and Pitman, J. (2012). Beta processes, stick-breaking and power laws. Bayesian Analysis, 7(2), 439–476.

Chaloner, K., and Verdinelli, I. (1995). Bayesian experimental design: A review. Statistical Science, 10(3), 273–304.

Chambers, C. D. (2013). Registered reports: A new publishing initiative at Cortex. Cortex, 49(3), 609–610.

Earman, J. (1992). Bayes or Bust? A Critical Examination of Bayesian Confirmation Theory. MIT Press.

Ferguson, T. S. (1973). A Bayesian analysis of some nonparametric problems. Annals of Statistics, 1(2), 209–230.

Fithian, W., Sun, D., and Taylor, J. (2014). Optimal inference after model selection. arXiv:1410.2597.

Fowler, M. (2005). Event Sourcing. martinfowler.com.

Gelman, A., Carlin, J. B., Stern, H. S., Dunson, D. B., Vehtari, A., and Rubin, D. B. (2013). Bayesian Data Analysis (3rd ed.). CRC Press.

Gelman, A., and Loken, E. (2014). The statistical crisis in science. American Scientist, 102(6), 460–465.

Gelman, A., Meng, X.-L., and Stern, H. (1996). Posterior predictive assessment of model fitness via realized discrepancies. Statistica Sinica, 6(4), 733–807.

Gelman, A., and Shalizi, C. R. (2013). Philosophy and the practice of Bayesian statistics. British Journal of Mathematical and Statistical Psychology, 66(1), 8–38.

Hendrycks, D., and Gimpel, K. (2017). A baseline for detecting misclassified and out-of-distribution examples in neural networks. ICLR 2017.

Holm, S. (1979). A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics, 6(2), 65–70.

Ioannidis, J. P. A. (2005). Why most published research findings are false. PLoS Medicine, 2(8), e124.

Kass, R. E., and Raftery, A. E. (1995). Bayes factors. Journal of the American Statistical Association, 90(430), 773–795.

Kitano, H. (2016). Artificial intelligence to win the Nobel Prize and beyond. AI Magazine, 37(1), 39–49.

Langley, P., Simon, H. A., Bradshaw, G. L., and Zytkow, J. M. (1987). Scientific Discovery: Computational Explorations of the Creative Processes. MIT Press.

MacKay, D. J. C. (1992). Information-based objective functions for active data selection. Neural Computation, 4(4), 590–604.

Markou, M., and Singh, S. (2003). Novelty detection: A review, Part 1: Statistical approaches. Signal Processing, 83(12), 2481–2497.

Miller, J. W., and Harrison, M. T. (2014). Inconsistency of Pitman-Yor process mixtures for the number of components. Journal of Machine Learning Research, 15, 3333–3370.

Moreau, L., et al. (2013). PROV-DM: The PROV data model. W3C Recommendation. World Wide Web Consortium.

Nosek, B. A., et al. (2018). The preregistration revolution. Proceedings of the National Academy of Sciences, 115(11), 2600–2606.

Pimentel, M. A. F., Clifton, D. A., Clifton, L., and Tarassenko, L. (2014). A review of novelty detection. Signal Processing, 99, 215–249.

Rasmussen, C. E. (2000). The infinite Gaussian mixture model. Advances in Neural Information Processing Systems, 12, 554–560.

Salmon, W. C. (1975). Confirmation and relevance. Minnesota Studies in the Philosophy of Science, 6, 3–36.

Scheirer, W. J., de Rezende Rocha, A., Sapkota, A., and Boult, T. E. (2013). Toward open set recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(7), 1757–1772.

Simmons, J. P., Nelson, L. D., and Simonsohn, U. (2011). False-positive psychology: Undisclosed flexibility in data collection and analysis allows presenting anything as significant. Psychological Science, 22(11), 1359–1366.

Wagenmakers, E.-J., Wetzels, R., Borsboom, D., van der Maas, H. L. J., and Kievit, R. A. (2012). An agenda for purely confirmatory research. Perspectives on Psychological Science, 7(6), 632–638.

Download this public source

Public source text and line addresses
# Residual Discovery as Open-World Scientific Search: From Anomaly Clusters to Testable Hypotheses Without Reusing Discovery Evidence

**Author:** E. M. Honeycutt III
**Affiliation:** Honeycutt Ai Labs, Princeton, TX
**License:** CC BY-NC 4.0
**Revised:** 2026-09-02 (Tier 3, prior-art overhaul, FWER correction, label pass)

---

## The short version

Model failure is the engine of scientific progress, but the transition from unexplained observation to testable hypothesis lacks a formal protocol. Posterior predictive checks (Box 1980; Gelman, Meng, and Stern 1996) identify model inadequacy; Bayesian nonparametric methods (Rasmussen 2000; Ferguson 1973) grow hypothesis spaces automatically; preregistration (Chambers 2013; Nosek et al. 2018) constrains post-hoc hypothesis revision and makes it detectable. None of the cited systems supplies the complete typed lifecycle defined here, from residual detection through bin formation, candidate registration, confirmatory evaluation, and versioned disposition.

This paper develops a formal methodology for **residual discovery as open-world scientific search**. The framework begins with observations that are inadequately predicted by all active models. These observations enter an unresolved residual pool rather than being forced into the least-bad available explanation. Residuals may then be grouped into candidate bins according to recurrence, stability, coherence, and novelty. A candidate bin is not yet a hypothesis. It becomes one only when it is compressed into a predictive specification capable of making discriminating claims about unseen data.

The method separates three stages:

$$
\text{residual detection}
\rightarrow
\text{candidate construction}
\rightarrow
\text{held-out confirmation}.
$$

Evidence used to discover a candidate cannot also serve as untouched confirmation of that same candidate. Candidate hypotheses therefore require fresh data, prospective predictions, or an explicit statistical correction for model-selection effects. Where multiple candidates advance to confirmation in the same evaluation epoch, FDR correction (Benjamini and Hochberg 1995) is required.

The central claim is methodological:

$$
\boxed{
\text{A recurring anomaly becomes a scientific hypothesis only when it predicts something it was not built to explain.}
}
$$

---

## Note on H_perp

Throughout this paper, H_⊥ denotes the none-of-the-above residual model, the probability mass assigned to mechanisms outside the current named hypothesis set H = {H_1, ..., H_K}. The construct formalizes the catch-all hypothesis of Bayesian epistemology (Salmon 1975; Earman 1992): the complement partition that must receive probability when the named hypotheses do not collectively account for all evidence. H_⊥ is defined formally in the companion paper The None-of-the-Above Bayesian Hypothesis Controller: Open-World Model Selection with Residual Discovery and Typed Scientific Transitions (publication P-028) (The None-of-the-Above Bayesian Hypothesis Controller), which specifies the predictive distribution q_⊥ required for Bayesian weight, the SPLIT and MERGE operators that manage H_⊥ as the hypothesis set evolves, and the MODEL_SET_OPEN alarm threshold τ_⊥. Readers should consult The None-of-the-Above Bayesian Hypothesis Controller: Open-World Model Selection with Residual Discovery and Typed Scientific Transitions (publication P-028)'s Carving a New Hypothesis from H_perp, Proposal as Reparameterization, and Approximate Proposal sections for the definition of P(E | H_⊥) used in the Bayes factor BF_{j,⊥} in the Confirmation Likelihood section and the PROMOTE criteria in the PROMOTE section.

---

## Introduction

Many reasoning systems assume a closed hypothesis set:

$$
\mathcal H=
\{H_1,\ldots,H_K\}.
$$

Every observation is interpreted relative to one of these models.

When no model predicts the data well, the system still tends to identify a winner:

$$
H^\ast
=
\arg\max_i P(D\mid H_i).
$$

But:

$$
\text{best available}
$$

does not imply:

$$
\text{adequate}.
$$

This distinction matters in domains where the current explanation set is expected to be incomplete.

Examples include:

- exploratory science;
- anomaly detection;
- historical reconstruction;
- biological subtype discovery;
- fault diagnosis;
- novel mechanism detection;
- AI-assisted research.

A system capable of discovering new explanatory structure therefore requires a disciplined response to model failure.

The response should not be:

$$
\text{pick the least-wrong model}.
$$

Nor should it be:

$$
\text{invent a new explanation for every anomaly}.
$$

The correct intermediate state is:

$$
\text{unresolved residual}.
$$

## Residual Discovery Problem

Let observation at time (t) be:

$$
y_t.
$$

Existing models provide predictive distributions:

$$
p_i(y_t\mid x_t),
\qquad
i=1,\ldots,K.
$$

Define an adequacy function:

$$
A(y_t,\mathcal H).
$$

If:

$$
A(y_t,\mathcal H)<\tau_A,
$$

the observation is classified as unresolved.

This creates residual record:

$$
r_t.
$$

The core question is:

> When does a collection of unresolved residuals contain enough recurrent structure to justify proposing a new model?

## Residuals Are Not Hypotheses

A residual records model failure.

It does not explain the failure.

For example:

$$
r_t:
\text{all current models underpredict outcome }Y.
$$

This observation may arise from:

- missing mechanism;
- incorrect parameters;
- measurement error;
- mislabeled data;
- data corruption;
- model misspecification;
- unmodeled interaction;
- random variation.

Thus:

$$
Residual
\neq
Mechanism.
$$

The architecture must preserve that distinction.

## Residual Signature

Rather than storing only scalar prediction error, define residual signature:

$$
z_t
=
\Phi(
y_t,
x_t,
p_1,\ldots,p_K
).
$$

Possible components include:

- standardized prediction errors;
- missing predicted features;
- unexpected observed features;
- temporal structure;
- topology;
- categorical mismatch;
- calibration error;
- source metadata;
- context variables.

A residual signature should describe the failure without assigning a cause. The signature is explicitly model-free at the labeling stage, it characterizes the observation's failure mode without attributing it to any specific hypothesis. Bayesian residual analysis (Gelman and Shalizi 2013; Gelman et al. 2013) provides the nearest precedent; the key architectural difference is that z_t is computed jointly across all K current models rather than relative to a single posterior predictive distribution.

## Adequacy Gate

A residual should enter the discovery pool only if the current model set is genuinely inadequate under a predefined rule. The "surprise" framework of Box (1980) provides the foundational precedent: when posterior predictive distributions fail to cover observations, those observations are anomalies that motivate model revision. The adequacy gate operationalizes this as a binary classifier feeding a discrete FSM state.

For example:

$$
\max_i p_i(y_t\mid x_t)<\tau_L.
$$

Or:

$$
\min_i Loss(H_i,y_t)>\tau_{loss}.
$$

The gate should account for each model's declared noise and uncertainty.

Otherwise ordinary tail events will be mislabeled as open-world anomalies.

The open-set recognition literature (Scheirer et al. 2013; Hendrycks and Gimpel 2017) formalizes the equivalent problem in discriminative classifier contexts. The present architecture differs: where open-set recognition classifies instances at inference time, the adequacy gate routes unresolved observations into a persistent residual pool for downstream hypothesis generation. Detection is an intermediate step, not the terminal output.

## Noise-Aware Residuals

Suppose model (H_i) already predicts heavy-tailed noise.

Then a large error may remain ordinary under:

$$
p_i(y).
$$

Residual discovery should operate on calibrated predictive failure, not raw deviation.

Thus:

$$
|y-\hat y|
$$

alone is generally insufficient.

The correct question is:

$$
\text{How surprising is }y\text{ under the complete predictive distribution?}
$$

## Residual Pool

Let:

$$
R=
\{r_1,\ldots,r_n\}
$$

be the unresolved residual pool.

These residuals remain unassigned to explicit mechanisms.

The pool may be heterogeneous.

It is not assumed that:

$$
Cause(r_1)=Cause(r_2)=\cdots.
$$

Its purpose is to preserve unexplained observations long enough for recurrence to become visible.

## Residual Persistence

Residuals should not disappear merely because a favored hypothesis becomes popular.

If observation (r_j) remains inadequately predicted, it remains in the residual pool.

This gives the invariant:

$$
\boxed{
\text{Unexplained observations remain represented until actually explained or invalidated.}
}
$$

## Candidate Bins

A subset:

$$
B\subseteq R
$$

may be identified as a candidate residual bin if its members share stable structure.

A bin is a pattern class, not yet a scientific hypothesis.

For example:

$$
B:
\text{errors occurring only under high temperature and low pressure}.
$$

That describes recurrence.

It does not yet identify mechanism.

## Bin Eligibility

A residual bin should satisfy minimum criteria before model construction.

Possible conditions include:

$$
|B|\ge n_{\min},
$$

$$
Recurrence(B)\ge\rho_{\min},
$$

$$
Stability(B)\ge s_{\min},
$$

$$
Coherence(B)\ge c_{\min},
$$

$$
Novelty(B)\ge\nu_{\min}.
$$

These thresholds should be defined before confirmatory testing (Chambers 2013; Nosek et al. 2018). Preregistration constrains post-hoc manipulation and makes it detectable (the Threshold Immutability property, P6, in the Property-Based Tests section) but does not prevent lenient ex-ante setting. No calibrated defaults exist across domains, so the thresholds are researcher-set. A framework user should state the chosen values and rationale, recognizing that this is a principled gate rather than an automatic constraint. Bayesian nonparametric methods (Rasmussen 2000; Broderick, Jordan, and Pitman 2012; Miller and Harrison 2014) address the same "how many classes" question through automatic data-driven component creation; the present approach substitutes human-gated, auditable criteria for automatic expansion, trading calibration difficulty for transparency and auditability.

## Recurrence

A pattern occurring once may be scientifically interesting.

It is weak evidence of a stable mechanism.

Define recurrence across independent observations:

$$
Recurrence(B)
=
\#\text{independent occurrences}.
$$

Independence matters.

Ten duplicated records from one source are not ten independent residuals.

## Source Independence

Let residual provenance be:

$$
Prov(r).
$$

If several residuals share one underlying source, they should not contribute independently to recurrence.

Define effective recurrence:

$$
R_{eff}(B)
$$

over independent provenance roots.

This prevents duplicate observations from manufacturing apparent stability.

## Temporal Recurrence

A residual pattern recurring across time is generally stronger than one appearing within one short burst.

A candidate may require observations across:

$$
t_1<t_2<\cdots<t_m.
$$

This helps distinguish persistent mechanism from transient instrumentation failure.

## Cross-Context Recurrence

A stronger candidate may recur across contexts:

$$
C_1,C_2,\ldots,C_m.
$$

For example, the same residual structure may appear:

- across laboratories;
- across datasets;
- across historical sources;
- across model versions.

Cross-context recurrence increases robustness.

## Coherence

A candidate bin should possess internal similarity on predefined residual dimensions.

Let:

$$
d(z_i,z_j)
$$

be a distance or dissimilarity function.

One coherence measure is:

$$
Coherence(B)
=
1-
\frac{1}{|B|(|B|-1)}
\sum_{i\neq j}
\tilde d(z_i,z_j),
$$

where $\tilde d$ is normalized.

The exact metric is domain-specific.

The principle is not.

## Stability

A real residual bin should not disappear under minor perturbations of the analysis.

Possible stability tests include:

- bootstrap resampling;
- leave-one-out deletion;
- alternative clustering algorithms;
- feature ablation;
- parameter perturbation;
- temporal subsampling.

A candidate that exists only under one fragile analysis choice should remain OPEN or PARK.

## Bootstrap Stability

Let:

$$
B^{(1)},\ldots,B^{(m)}
$$

be candidate bins produced from bootstrap samples.

Define:

$$
Stability(B)
=
\frac{1}{m}
\sum_{j=1}^{m}
Overlap(B,B^{(j)}).
$$

High stability indicates that the candidate is not being driven by a small number of idiosyncratic observations.

## Leave-One-Out Stability

For each residual:

$$
r_j\in B,
$$

remove (r_j) and recompute candidate structure.

If:

$$
B_{-j}
$$

collapses whenever one observation is removed, the pattern is fragile.

This is particularly useful for small residual sets.

## Novelty

A residual bin should not create a new hypothesis if an existing model can absorb it through parameter revision within its declared scope.

Define compatibility:

$$
C(B,H_i).
$$

A novelty gate may require:

$$
\max_i C(B,H_i)<\tau_C.
$$

This separates:

$$
\text{model extension}
$$

from:

$$
\text{new model class}.
$$

## Parameter Failure Versus Model Failure

Suppose model:

$$
H_i(\theta)
$$

has parameters $\theta$.

Residuals may indicate simply that:

$$
\theta
$$

was poorly estimated.

Before creating a new hypothesis, test whether some admissible:

$$
\theta^\ast
$$

can explain the residuals without damaging held-out performance elsewhere.

If yes, the appropriate response may be:

$$
UPDATE\_PARAMETERS,
$$

not:

$$
PROPOSE\_NEW\_MODEL.
$$

## Scope Failure

A model may also be valid but applied outside its intended domain.

If:

$$
x\notin Scope(H_i),
$$

failure of (H_i) does not imply a new mechanism.

It may indicate a scope error.

Residual discovery therefore requires explicit model scope.

## Data-Quality Gate

Before mechanism generation, residuals should be tested against data-quality explanations.

Possible checks include:

- missingness;
- corruption;
- transcription error;
- unit mismatch;
- instrument failure;
- duplicate data;
- provenance uncertainty.

A new mechanism should not be introduced to explain a corrupted column.

## Residual Audit

Before candidate generation, each bin should pass:

$$
DataQuality(B)=PASS.
$$

This establishes that obvious data-quality explanations have been investigated.

## OPEN

A stable unresolved residual pattern enters:

$$
OPEN.
$$

OPEN means:

> there is structure requiring explanation.

It does not mean:

> there is a new mechanism.

An OPEN record may contain:

- residual IDs;
- feature summary;
- recurrence;
- stability;
- provenance;
- unresolved alternatives.

## Hypothesis Construction

The transition:

$$
OPEN\rightarrow PROPOSE
$$

requires more than a cluster description.

A hypothesis must define:

1. mechanism or model form;
2. scope;
3. variables;
4. parameters;
5. expected observations;
6. discriminating predictions;
7. failure conditions.

This converts descriptive structure into a testable model.

## Compression Principle

A useful hypothesis compresses several residual observations into one explanatory structure.

Instead of:

$$
r_1,r_2,\ldots,r_n
$$

as separate anomalies, hypothesis (H_j) provides a common model:

$$
H_j\Rightarrow
\{r_1,\ldots,r_n\}
$$

and predicts additional consequences.

Compression alone is not enough.

The key requirement is extrapolation.

## Prediction Beyond Discovery

A candidate hypothesis must predict something not used to construct it.

Let:

$$
D_{disc}
$$

be discovery data.

The candidate must define:

$$
P(D_{future}\mid H_j)
$$

before:

$$
D_{future}
$$

is observed.

This is the point at which a pattern becomes a scientific hypothesis.

## Discovery/Confirmation Separation

Partition evidence:

$$
D=
D_{disc}
\cup
D_{confirm}.
$$

Require:

$$
D_{disc}\cap D_{confirm}
=
\varnothing
$$

under the default protocol.

Discovery evidence may motivate the hypothesis.

Confirmation evidence tests it.

The partition rule prevents the grossest form of selection bias, reuse of the same data for discovery and confirmation (Simmons, Nelson, and Simonsohn 2011; Wagenmakers et al. 2012). Selective inference methods (Berk et al. 2013; Fithian, Sun, and Taylor 2014) provide post-selection inference that is valid after adaptive model selection, correcting for the selection event. The present architecture is complementary rather than competing: D_disc ∩ D_confirm = $\emptyset$ prevents data reuse but does not provide selection-corrected inference conditional on the discovery event. Applications requiring formal post-selection guarantees should apply Berk et al. (2013) or Fithian et al. (2014) at the confirmatory stage. The architecture's contribution is the operational infrastructure, typed lifecycle states, ledger records, residual preservation, within which selection-corrected inference methods can be applied.

## Why Reuse Is Dangerous

A model generated from (D_{disc}) has already been optimized (formally or informally) to fit that data.

Therefore:

$$
P(D_{disc}\mid H_j)
$$

overstates independent support if treated naively.

The same issue occurs in:

- overfitting;
- multiple hypothesis testing;
- data dredging;
- model selection.

The simplest control is held-out confirmation.

## Cross-Validation

When fresh data are scarce, cross-validation may be used.

But if model form itself was invented using the full dataset, ordinary cross-validation can remain optimistic.

A cleaner design uses nested procedures:

$$
OuterSplit
\rightarrow
Discovery
\rightarrow
CandidateFreeze
\rightarrow
OuterTest.
$$

The nested procedure controls parameter overfitting. It does not fully control model-class selection bias when hypothesis form is selected from residual search, a case the paper explicitly anticipates. The strongest error-rate claims in this paper apply to the prospective-data setting described in the Prospective Confirmation section. In the nested cross-validation setting, held-out testing reduces but does not eliminate the inflation that arises from searching over a model class of unbounded complexity.

## Prospective Confirmation

The strongest confirmation is prospective.

Freeze:

$$
H_j
$$

at time (t_0).

Observe new data after:

$$
t_1>t_0.
$$

If predicted residual structure appears:

$$
PredictionSuccess(H_j).
$$

Prospective confirmation establishes temporal ordering unambiguously. It fully resolves the reparameterization attack described in the Confirmatory Boundary section because D_future does not exist at hypothesis-freeze time. For retrospective applications (the historical retrospective case described in the Evaluation Plan section), the attack is available: a researcher can delay the formal freeze while tailoring the hypothesis to informal knowledge of the confirmation-data distribution. The framework's versioning and ledger requirements (the Candidate Freeze and Versioning sections) audit the declared freeze boundary but cannot audit informal pre-freeze tailoring. The strongest Type-I error guarantees are therefore scoped to the prospective setting.

## Prediction Specificity

A hypothesis that predicts:

> something unusual will happen

is weak.

A strong prediction specifies:

- variable;
- direction;
- range;
- condition;
- timing;
- structure.

For example:

$$
x>a
\land
y<b
\Rightarrow
z\in[c,d].
$$

Specific predictions are easier to falsify and more informative when successful.

## Discriminating Predictions

The best prediction is one on which rival hypotheses disagree.

For hypotheses:

$$
H_a,H_b,
$$

choose experiment (E) such that:

$$
P(Y\mid H_a,E)
$$

differs substantially from:

$$
P(Y\mid H_b,E).
$$

This reduces ambiguity. The Bayesian optimal experimental design literature (Chaloner and Verdinelli 1995) formalizes experiment selection to maximize the expected information gain over the model posterior, the framework described here adapts this criterion to the multi-candidate discovery setting.

## Adversarial Alternative Generation

Before testing a new candidate, actively construct alternatives.

Given residual bin (B), propose:

$$
H_1,H_2,\ldots,H_m.
$$

Alternatives should include:

- mundane explanation;
- measurement explanation;
- parameter explanation;
- competing mechanism;
- null-like residual model.

This transforms hypothesis generation into model competition.

## Strong Alternatives

An alternative is useful when it explains the same discovery data but predicts something different later.

If all candidates make identical predictions, the next experiment cannot discriminate them.

A strong discovery system therefore optimizes for divergence in future predictions.

## Candidate Freeze

Before confirmatory evidence is examined, freeze:

$$
Spec(H_j).
$$

The specification includes:

- model form;
- parameters/fitting procedure;
- scope;
- tests;
- thresholds;
- failure conditions.

Material changes after evidence exposure create:

$$
H_j^{(2)}.
$$

The original version remains historically fixed.

## Versioning

Let:

$$
H_j^{(v)}
$$

denote version (v).

If a failed prediction causes the model to change materially, the revised model is not the same tested object.

This prevents:

$$
H^{(1)}
\rightarrow
\text{failure}
\rightarrow
\text{edit}
\rightarrow
\text{claim success for }H^{(1)}.
$$

## Confirmation Likelihood

For held-out evidence (E), evaluate:

$$
P(E\mid H_j).
$$

Against rival (H_k):

$$
BF_{j,k}
=
\frac{
P(E\mid H_j)
}{
P(E\mid H_k)
}.
$$

Against residual model:

$$
BF_{j,\perp}
=
\frac{
P(E\mid H_j)
}{
P(E\mid H_\perp)
}.
$$

A new candidate must compete with remaining none-of-the-above uncertainty. See the H_perp note preceding the Introduction for the definition of H_⊥ and the location of P(E | H_⊥) in the companion paper The None-of-the-Above Bayesian Hypothesis Controller: Open-World Model Selection with Residual Discovery and Typed Scientific Transitions (publication P-028). Bayes factors are formally characterized in Kass and Raftery (1995); the catch-all hypothesis that H_⊥ formalizes has its epistemological foundation in Salmon (1975) and Earman (1992).

## Candidate Does Not Own the Entire Residual

Suppose:

$$
B
$$

contains 100 residual observations.

Hypothesis (H_j) convincingly explains 60.

The other 40 remain:

$$
B_\perp.
$$

The correct update is:

$$
B
\rightarrow
B_j
+
B_\perp.
$$

Not:

$$
B\rightarrow H_j.
$$

This is residual preservation.

## Partial Explanatory Coverage

Define coverage:

$$
Coverage(H_j,B)
=
\frac{
|\{r\in B:H_j\text{ adequately predicts }r\}|
}{
|B|
}.
$$

A candidate may have high predictive precision but incomplete coverage.

This can still be useful.

Coverage and adequacy should be reported separately.

## Precision Versus Coverage

A broad model may explain many residuals weakly.

A narrow model may explain fewer residuals strongly.

Therefore report:

$$
PredictivePrecision
$$

and:

$$
ResidualCoverage.
$$

Do not combine them automatically into one score unless the aggregation is justified.

## Residual After Promotion

Even after a model is promoted, new prediction errors return to the residual process.

Thus:

$$
PROMOTE(H_j)
$$

does not close future discovery.

Scientific search remains open-world.

## Candidate Failure

A proposed model fails when it violates its frozen criteria.

Examples:

- held-out predictions fail;
- rival model dominates;
- required recurrence disappears;
- candidate depends on data-quality artifacts;
- purported mechanism predicts wrong direction.

Failure applies to the candidate version.

## Failure Is Informative

A failed model still contributes information.

It identifies:

- what residual structure was considered;
- what predictions were attempted;
- which mechanism was excluded;
- what future models should not simply repeat.

The failure record should remain in the hypothesis lineage.

## No Resurrection

A failed candidate should not later reappear unchanged as a new proposal.

If a successor differs materially, it receives new version:

$$
H_j^{(2)}.
$$

The lineage records:

$$
REFINES(H_j^{(2)},H_j^{(1)}).
$$

The prior failure remains visible.

## PARK

A candidate may be PARKED when:

- data are insufficient;
- confirmation is unavailable;
- alternatives are unresolved;
- residual structure is unstable;
- testing cost is currently excessive.

PARK preserves the candidate without treating it as established.

## PROPOSE

PROPOSE means:

> a predictive model exists and is ready for testing.

This is stronger than OPEN.

It does not mean the model is likely true.

## PROMOTE

PROMOTE means:

> the candidate has passed its initial confirmatory contract and is admitted to the active explicit model set.

Promotion should require frozen criteria.

Examples:

$$
BF_{j,\perp}\ge B_{\min},
$$

$$
Replication\ge r_{\min},
$$

$$
Calibration\ge c_{\min}.
$$

Prior redistribution, how P(H_j) changes when a new hypothesis is promoted from H_⊥, is governed by the SPLIT operator in The None-of-the-Above Bayesian Hypothesis Controller: Open-World Model Selection with Residual Discovery and Typed Scientific Transitions (publication P-028)'s Carving a New Hypothesis from H_perp, Proposal as Reparameterization, and Approximate Proposal sections.

## PASS

PASS should be scoped to a specific test.

For example:

$$
PASS(H_j,Test_4).
$$

It should not mean:

$$
H_j\text{ permanently correct}.
$$

The model remains exposed to future evidence.

## FAIL

FAIL means the candidate version has violated a predefined decisive criterion.

It should be difficult to erase.

A later successor may remain possible.

## Controller States

The discovery lifecycle is:

$$
OPEN
\rightarrow
PROPOSE
\rightarrow
PROMOTE
\rightarrow
PASS
$$

with alternative transitions to:

$$
PARK
$$

or:

$$
FAIL.
$$

This is not a simple ladder.

For example:

$$
PROMOTE\rightarrow PARK
$$

may occur when applicability becomes uncertain.

The six-state FSM extends the two-stage Registered Reports model (Chambers 2013; Nosek et al. 2018), Stage 1 (proposal + in-principle acceptance) maps to PROPOSE → PROMOTE; Stage 2 (results) maps to PASS / FAIL, by adding OPEN as a formal state for unresolved observations prior to hypothesis formation, PARK as a workflow state that preserves posterior without advancing, versioned FAIL semantics that allow re-entry with lineage declared, and coupling of lifecycle state to the H_⊥ probability mass via BF_{j,⊥}.

## Distinguishing Discovery From Administration

Administrative transitions should not themselves change Bayesian belief.

If:

$$
P(H_j)=0.42
$$

before PROMOTE, then:

$$
P'(H_j)=0.42
$$

after PROMOTE unless new evidence is separately applied.

This preserves separation between scientific evidence and workflow.

## Discovery Priors

Candidate generation raises a difficult issue:

> What prior should a newly invented hypothesis receive?

A coherent open-world system should allocate prior mass from a broader residual model or use a hierarchical prior over model generation.

It should not create probability from nothing.

The SPLIT operator in The None-of-the-Above Bayesian Hypothesis Controller: Open-World Model Selection with Residual Discovery and Typed Scientific Transitions (publication P-028)'s Carving a New Hypothesis from H_perp, Proposal as Reparameterization, and Approximate Proposal sections governs this allocation, how much mass to extract from H_⊥, under what conditions, and what remains in H_⊥ after a new hypothesis is promoted. The Bayesian nonparametric literature (Broderick, Jordan, and Pitman 2012; Ferguson 1973) addresses the same redistribution problem through automatic component creation; the SPLIT operator provides the human-gated analog. The Bayesian confirmation machinery in the Confirmation Likelihood section depends on this specification, BF_{j,⊥} requires P(E | H_⊥), which requires knowing how much prior mass remains in H_⊥ after allocation.

## Search Cost

Scientific search is not free.

Candidate generation and testing consume:

- experiments;
- computation;
- researcher attention;
- time.

The system may rank residual bins by expected value.

One possible score is:

$$
Priority(B)
=
Impact(B)
\times
Recurrence(B)
\times
InformationGain(B)
/
Cost(B).
$$

This is operational, not epistemic.

## Information Gain

For candidate set:

$$
\mathcal H_B,
$$

choose experiment (e) maximizing:

$$
I(H;Y\mid e).
$$

This favors experiments whose possible outcomes would substantially change model probabilities. MacKay (1992) introduced expected information gain as the objective for active data selection, the criterion is standard Bayesian optimal experimental design (Chaloner and Verdinelli 1995). The architecture's contribution is the integration of this criterion into a lifecycle FSM, so that information gain governs which experiments to run in the PROPOSE → PROMOTE window.

Residual discovery therefore naturally connects to active experimental design.

## Exploratory Search

Exploration may be broad and unconstrained.

Researchers may:

- inspect plots;
- search corpora;
- cluster residuals;
- generate analogies;
- use language models;
- search literature.

The architecture does not prohibit exploratory freedom.

It constrains what happens after exploration.

## Confirmatory Boundary

Once a candidate is selected for serious evaluation, its specification freezes.

This is the boundary between:

$$
\text{discovery}
$$

and:

$$
\text{test}.
$$

The framework preserves creativity without confusing it with confirmation.

The boundary is declared by the researcher (the moment of "selection for serious evaluation"). The framework's versioning and ledger requirements (the Candidate Freeze and Versioning sections) audit the declared boundary but cannot audit what a researcher knew informally during unrestricted exploration. In prospective applications, this concern is substantially mitigated because D_future does not yet exist at freeze time. In retrospective applications (the historical retrospective case described in the Evaluation Plan section), a researcher can in principle tailor the hypothesis to informal knowledge of the confirmation-data distribution while maintaining a formally compliant ledger. The framework scopes its strongest guarantees to the prospective setting accordingly.

## AI-Assisted Residual Search

AI systems are well suited to generating candidate explanations for residual patterns.

Possible role:

$$
LLM:
B\rightarrow\{H_1,\ldots,H_m\}.
$$

The model should be treated as proposer.

Generated hypotheses receive no evidentiary credit merely because they sound coherent.

They must define testable predictions.

## AI as Adversarial Generator

An especially useful role is to ask an AI system to generate:

- mundane alternatives;
- countermodels;
- failure explanations;
- discriminating experiments.

This can reduce confirmation bias in human-led research.

## AI Generation Provenance

Each generated candidate should record:

- model;
- version;
- prompt;
- context;
- timestamp.

This allows later determination of whether apparently independent hypotheses were actually generated from the same underlying material.

## Residual Search and Multiple Testing

If thousands of candidate bins are examined, some will appear coherent by chance.

Discovery-scale metadata should include two distinct counts:

- N_searched, the number of candidate bins that entered the bin-eligibility pipeline;
- N_tested, the number of candidates that advanced to confirmatory evaluation in a given evaluation epoch.

Under independent tests when the relevant nulls are true, with K candidates evaluated at significance threshold α, the familywise error rate inflates to 1 − (1 − α)\textsuperscript{K}, which exceeds 0.99 for K = 100 and α = 0.05 (Benjamini and Hochberg 1995; Ioannidis 2005). Confirmatory testing on held-out data prevents reuse of discovery observations but does not itself control this inflation. Evaluations with N_tested > 1 should apply FDR correction (Benjamini and Hochberg 1995, step-up procedure) at level q across all N_tested confirmatory tests in the evaluation epoch.

Where the application requires strong control of individual false positives (e.g., medical device certification or formal claim registration), FDR control is insufficient. In those settings, FWER control is appropriate; use Holm (1979) or Bonferroni correction instead. FDR-level control is appropriate for discovery pipelines where some false positives are acceptable in exchange for higher power, the typical residual discovery setting.

The controller records N_tested as a required metadata field alongside N_searched.

## Selection Bias

Suppose the strongest cluster among 10,000 candidate partitions is reported.

Its discovery score is not an unbiased estimate of future performance.

This is why:

$$
DiscoveryScore
$$

must remain distinct from:

$$
ConfirmatoryScore.
$$

## Negative Controls

Residual discovery pipelines should be tested on data generated from models known to be complete.

The method should not generate stable new mechanisms at high rates under the null.

This measures false discovery.

## Positive Controls

Synthetic datasets with deliberately omitted mechanisms can test whether the pipeline detects recurrent residual structure.

For example:

$$
Data=
H_1+H_2
$$

while the initial model set contains only:

$$
H_1.
$$

The pipeline should discover residual structure associated with (H_2).

## Hard Positive Controls

A harder test uses omitted mechanisms whose effects overlap strongly with existing models.

This evaluates whether novelty detection can distinguish:

$$
parameter variation
$$

from:

$$
new model class.
$$

## Hard Negative Controls

Generate data with:

- heteroskedasticity;
- heavy tails;
- missingness;
- instrument drift;

but no new mechanism.

A strong pipeline should identify these as model/data-quality issues rather than inventing new causal categories.

## Evaluation Plan

The framework should be evaluated across four settings.

### Synthetic model omission

Known hidden mechanism.

Measure recovery.

### Noise-only anomalies

No hidden mechanism.

Measure false discovery.

### Historical retrospective case

Use a domain where a later-discovered mechanism is known and simulate earlier incomplete knowledge.

Test whether residual search would have surfaced it.

Note: retrospective applications are subject to the reparameterization attack described in the Confirmatory Boundary section. The evaluation should explicitly test whether the freeze-boundary constraint is enforceable in retrospective settings.

### AI-assisted research workflow

Measure whether structured residual handling reduces unsupported hypothesis promotion relative to unconstrained generation.

## Metrics

Recommended metrics include:

- residual recall;
- false residual rate;
- candidate-bin stability;
- false candidate rate;
- prospective predictive accuracy;
- model discrimination;
- residual coverage;
- number of candidates proposed;
- percentage promoted;
- percentage later failed;
- time to discriminating experiment.

## Discovery Precision

Define:

$$
Precision_{disc}
=
\frac{
\text{candidate bins corresponding to real omitted structure}
}{
\text{all candidate bins}
}.
$$

This can be measured directly in synthetic benchmarks.

## Discovery Recall

Define:

$$
Recall_{disc}
=
\frac{
\text{omitted mechanisms detected}
}{
\text{omitted mechanisms present}
}.
$$

A method can be conservative and precise but miss subtle mechanisms.

Both dimensions matter.

## Prospective Lift

For candidate (H_j), compare predictive score before and after its introduction on held-out data:

$$
Lift(H_j)
=
\frac{
Score(\mathcal H+H_j,D_{test})
}{
Score(\mathcal H,D_{test})
}.
$$

A legitimate new model should improve future prediction, not merely retrospective fit.

## Residual Reduction

After promotion, measure:

$$
ResidualMass_{before}
$$

versus:

$$
ResidualMass_{after}.
$$

A useful candidate should reduce unexplained structure.

But if reduction occurs only by increasing model flexibility without improving held-out prediction, the result may be overfit.

## Robustness

Candidate success should be tested across:

- alternate residual metrics;
- alternate cluster algorithms;
- feature ablation;
- source subsets;
- time splits.

A legitimate mechanism should not depend entirely on one arbitrary analytic pipeline.

## Ablation

Remove each discovery stage:

- no data-quality gate;
- no stability requirement;
- no novelty gate;
- no held-out confirmation;
- no adversarial alternatives.

Measure false promotion rate.

This reveals which controls matter most.

## Expected Ablation Result

The strongest anticipated failure should occur when discovery and confirmation are merged.

Without held-out separation, candidate promotion rates will increase, but prospective performance should deteriorate.

That would directly demonstrate the importance of the central boundary.

## Mutation Testing

Inject defects:

- reuse discovery evidence as confirmation;
- duplicate residuals;
- suppress contradictory residuals;
- auto-assign whole residual bin to candidate;
- modify thresholds after results;
- allow failed candidate ID reuse.

The invariant suite should detect each.

## Property-Based Tests

### P1. Residual persistence

Unexplained residuals are never silently deleted.

### P2. Discovery-confirmation disjointness

A residual used to construct (H_j) cannot be marked untouched confirmation of (H_j).

### P3. Candidate version immutability

Material change creates new version.

### P4. Partial coverage preservation

Residuals not explained by (H_j) remain open.

### P5. No administrative belief mutation

OPEN/PROPOSE/PROMOTE/PARK/PASS/FAIL do not directly alter posterior probability.

### P6. Threshold immutability

Confirmatory thresholds do not change after evidence exposure.

### P7. Failure lineage

Failed model cannot silently reappear unchanged.

### P8. Provenance-aware recurrence

Duplicate-source residuals do not count as independent recurrence.

## Residual Ledger

Each residual should record:

$$
(
residual\_id,
observation,
model\_set,
prediction,
failure\_metric,
provenance,
time,
status
).
$$

This allows later reconstruction of why the observation was considered unexplained.

## Candidate Ledger

Each candidate records:

$$
(
hypothesis\_id,
version,
parent\_bin,
discovery\_data,
specification,
alternatives,
predictions,
thresholds,
N\_tested,
status
).
$$

N_tested is the count of candidates that advanced to confirmatory evaluation in the same epoch; it feeds the BH FDR correction required in the Residual Search and Multiple Testing section.

This creates an auditable discovery history.

## Result Ledger

Each confirmatory test records:

$$
(
test\_id,
hypothesis\_version,
held\_out\_data,
likelihoods,
Bayes\ factors,
decision,
receipt
).
$$

Thus the pathway from anomaly to model becomes reconstructable.

## Failure Surface

The method is designed to fail explicitly.

A residual candidate weakens or fails if:

1. pattern does not recur;
2. pattern is source-duplicate;
3. data-quality explanation dominates;
4. existing model absorbs the residual under legitimate parameter change;
5. cluster is unstable;
6. alternative model predicts held-out data better;
7. candidate predicts no new observations;
8. fresh confirmation fails;
9. claimed coverage ignores residual remainder.

## Mechanism Humility

A residual bin may remain descriptive for a long time.

That is acceptable.

The system should prefer:

$$
OPEN:
\text{stable unexplained pattern}
$$

over:

$$
PROPOSE:
\text{weak invented mechanism}.
$$

Open-world science does not require immediate closure.

It requires preserving unresolved structure.

## Discovery Without Mechanism

Sometimes a stable empirical subtype can be useful even before mechanism is known.

For example:

$$
Subtype\_B
$$

may reliably predict future behavior.

Such a predictive class can become an explicit statistical hypothesis while its causal mechanism remains OPEN.

The ledger should distinguish:

$$
PredictiveModel
$$

from:

$$
MechanisticExplanation.
$$

## Causal Claims

A causal hypothesis requires stronger tests than a predictive subtype.

The framework therefore allows candidate type:

$$
PREDICTIVE
$$

or:

$$
CAUSAL.
$$

A model should not be promoted from predictive success directly into causal status without additional evidence.

## Hierarchical Discovery

Residual search may proceed recursively.

After promoting:

$$
H_j,
$$

its own residuals may reveal subtypes:

$$
H_{j,1},
H_{j,2}.
$$

Thus the model space can grow hierarchically.

Each refinement still requires fresh prediction boundaries.

## Residual Contraction

Ideally, scientific progress reduces:

$$
P(H_\perp)
$$

or residual mass while improving predictive performance.

However, discovery may also reveal that the original model space was more incomplete than believed.

Thus temporary increase in unresolved structure can itself represent progress.

## Discovery and None-of-the-Above

This framework naturally interfaces with a Bayesian none-of-the-above model.

High posterior on:

$$
H_\perp
$$

triggers residual investigation.

Residual discovery then attempts to partition part of:

$$
H_\perp
$$

into explicit candidate models.

The Bayesian controller (The None-of-the-Above Bayesian Hypothesis Controller: Open-World Model Selection with Residual Discovery and Typed Scientific Transitions (publication P-028)) handles probability.

The present framework handles model generation discipline.

## Difference From Anomaly Detection

Anomaly detection asks:

$$
\text{Is this observation unusual?}
$$

Residual discovery asks:

$$
\text{Do unusual observations form a stable, reproducible structure that supports a new predictive model?}
$$

This is a substantially stronger requirement. Anomaly detection terminates at instance classification; residual discovery uses the anomalous instance as the first stage in a typed lifecycle that culminates in a falsifiable hypothesis. OOD detection (Hendrycks and Gimpel 2017) represents the canonical anomaly detection approach in the machine learning setting; the present architecture converts OOD instances into residual clusters and drives them toward new hypotheses rather than terminating at a rejection decision.

## Difference From Clustering

Clustering asks:

$$
\text{Which observations are similar?}
$$

Residual discovery asks:

$$
\text{Does the cluster correspond to a model inadequacy, and can a new hypothesis predict unseen data?}
$$

A cluster is only an intermediate object. Bayesian nonparametric clustering methods (Rasmussen 2000; Broderick, Jordan, and Pitman 2012; Miller and Harrison 2014) address hypothesis-space expansion automatically through data-driven component creation. The present architecture differs in two respects: (1) bin eligibility is human-gated and preregistered rather than automatic, making the transition auditable; (2) the cluster is not itself promoted, it must generate a predictive model that is separately confirmed on held-out data. Miller and Harrison (2014) note that Pitman-Yor process mixtures can be inconsistent for the number of components, which motivates the human-gated alternative.

## Difference From Open-Set Recognition

Open-set recognition (Scheirer et al. 2013) identifies samples outside known classes at inference time, producing a reject option for instances that fall below a recognition threshold. Residual discovery extends beyond detection into scientific model construction, adversarial comparison, and prospective testing. Where open-set recognition asks whether a new instance belongs to any known class, residual discovery accumulates rejected instances and asks whether their pattern constitutes a stable new class that warrants a formal hypothesis.

## Difference From Novelty Detection

Novelty detection (Markou and Singh 2003; Pimentel et al. 2014) identifies new patterns in data streams. The present architecture extends novelty detection in two directions: (1) bin eligibility gates determine whether novelty is persistent and stable, not merely present; (2) the lifecycle FSM provides a typed transition from novelty to falsifiable hypothesis. Novelty detection terminates when a novel instance is flagged; residual discovery begins there.

## Related Work

The paper's distinctive contribution is the explicit **residual-to-hypothesis transition contract**: a typed lifecycle FSM with ledger records, data-role labels, versioned failure semantics, residual preservation, and BH FDR-controlled confirmatory testing. The components are drawn from five established areas; none of those areas provides the combination.

**Posterior predictive checking and model criticism.** Box (1980) introduced the "surprise" framework: when posterior predictive distributions fail to cover observations, those observations motivate model extension. Gelman, Meng, and Stern (1996) formalized posterior predictive checks; Gelman and Shalizi (2013) discuss the iterative model-building cycle in which residuals drive model revision. The present architecture is structurally related, both collect observations that fail existing model predictions and use them to motivate new models, but differs architecturally. Posterior predictive checking produces a continuous discrepancy statistic and does not specify a lifecycle for residuals. The adequacy gate here produces a binary FSM state (OPEN), after which the residual enters a persistent pool with explicit provenance and recurrence requirements. The transition to PROPOSE requires prediction-beyond-discovery, which PPC does not require.

**Out-of-distribution and novelty detection.** OOD detection (Scheirer et al. 2013; Hendrycks and Gimpel 2017) and novelty detection (Markou and Singh 2003) identify instances outside known distributions. These literatures define the "what is an anomaly" question that the Adequacy Gate section operationalizes. The cited detectors output an anomaly or rejection decision and do not specify the downstream residual-to-hypothesis lifecycle defined here.

**Bayesian nonparametric methods.** Rasmussen (2000), Broderick, Jordan, and Pitman (2012), and Miller and Harrison (2014) address hypothesis-space expansion through automatic component creation, the same "how many classes" question the bin-eligibility gate answers. The delta: BNP expansion is automatic and continuous; the present approach is human-gated and auditable. BNP methods do not require prediction-beyond-discovery or impose a lifecycle on new components. The preregistered threshold requirement in the Bin Eligibility section is the human-gated alternative to BNP's automatic priors.

**Preregistration and the replication crisis.** The discovery/confirmation separation described in the Discovery/Confirmation Separation section, candidate freeze described in the Candidate Freeze section, and threshold immutability (the P6 property in the Property-Based Tests section) formalize the core contribution of the preregistration movement (Simmons, Nelson, and Simonsohn 2011; Wagenmakers et al. 2012; Chambers 2013; Nosek et al. 2018). Registered Reports implement a two-state analogue of the lifecycle: Stage 1 (proposal) maps to PROPOSE and Stage 2 (results) maps to PASS/FAIL. The genuine additions here: OPEN as a formal state for unresolved observations prior to hypothesis formation, PARK as a workflow state that preserves posterior without advancing, versioned FAIL semantics, and coupling of lifecycle state to H_⊥. The preregistration literature addresses journal-level workflows; this architecture formalizes the same principles in a computational protocol with typed transitions and a Bayesian posterior coupling. Gelman and Loken (2014) analyze the "garden of forking paths", the implicit hypothesis search that occurs through researchers' unrestricted analytic choices, which directly motivates the confirmatory boundary described in the Confirmatory Boundary section.

**Scientific discovery systems.** Langley et al. (1987) describe BACON, a rule-induction system that discovers quantitative regularities by searching over symbolic patterns. The cited BACON account centers rule induction from symbolic patterns; the present paper adds an explicit persistent-residual ledger and typed disposition lifecycle. Kitano (2016) frames AI-assisted discovery at the systems level without specifying the complete typed lifecycle defined here. The present contribution is the lifecycle contract that specifies what happens between anomaly detection and hypothesis confirmation.

**Selective inference.** Berk et al. (2013) and Fithian, Sun, and Taylor (2014) provide post-selection inference that is valid after adaptive model selection, correcting for the selection event. The partition rule D_disc ∩ D_confirm = $\emptyset$ prevents data reuse, the grossest form of selection bias, but does not provide selection-corrected inference conditional on the discovery event. Applications requiring formal post-selection guarantees should apply Berk et al. (2013) or Fithian et al. (2014) at the confirmatory stage. The architecture's contribution is the operational infrastructure within which such inference methods can be applied.

## Design Claim (Promotion Gate)

Let candidate (H_j) be generated from residual discovery set:

$$
D_{disc}.
$$

Let:

$$
D_{test}
$$

be untouched confirmation data.

If:

1. residual pattern is recurrent and stable;
2. known data-quality and parameter explanations are excluded under declared tests;
3. (H_j) is frozen before observing (D_{test});
4. (H_j) predicts (D_{test}) better than specified alternatives;
5. unexplained remainder is preserved;

then the evidence supports promotion of (H_j) as an explicit predictive model more strongly than continued treatment of the pattern as undifferentiated residual.

This is a model-selection result.

It does not automatically establish causal mechanism.

This Design Claim enumerates the verification protocol at the PROMOTE gate; it is a summary of the PROMOTE criteria set out in the PROMOTE section, not a proved theorem or an independent formal result. The conditions do not assert independent sufficiency as statistical guarantees. Each condition addresses a distinct failure mode: conditions 1–3 ensure the evaluation is prospective and preregistered; conditions 4–5 assess the confirmatory evidence against H_⊥ as the baseline. Note that condition 5 (BF_{j,⊥} ≥ B_min) implies condition 4 in the specific case where H_⊥ is one of the "specified alternatives", the conditions are design requirements the framework enforces, which are not required to be logically independent.

## Core Invariants

The framework can be reduced to eight invariants.

### Residual preservation

Unexplained observations stay represented.

### Cluster-hypothesis separation

A residual bin is not automatically a hypothesis.

### Prediction requirement

A proposed model must predict beyond its discovery data.

### Discovery-confirmation separation

The same evidence is not naively counted twice.

### Alternative competition

Candidates compete against plausible rivals.

### Partial-coverage preservation

A successful model absorbs only what it explains.

### Versioned failure

Failed candidate versions remain failed historically.

### Open-world continuation

Promotion of one model does not close the residual search space.

## Architectural Summary

The complete pipeline is:

$$
\boxed{
\begin{array}{c}
\text{Existing models make predictions}\\
\downarrow\\
\text{Adequacy gate identifies unresolved observations}\\
\downarrow\\
\text{Residual signatures enter persistent pool}\\
\downarrow\\
\text{Recurrent stable bins are identified}\\
\downarrow\\
\text{Data-quality and existing-model alternatives are tested}\\
\downarrow\\
\text{Residual pattern enters OPEN}\\
\downarrow\\
\text{Predictive model is constructed}\\
\downarrow\\
\text{Candidate freezes as PROPOSE}\\
\downarrow\\
\text{Fresh evidence tests candidate against alternatives (BH FDR if N\_tested > 1)}\\
\downarrow\\
\text{PROMOTE / PARK / FAIL}\\
\downarrow\\
\text{Unexplained remainder stays residual}
\end{array}
}
$$

## Conclusion

Scientific discovery begins where current models stop working.

But model failure alone does not tell us what should replace them.

The residual-discovery framework therefore inserts a disciplined intermediate layer between anomaly and explanation.

Unexpected observations are retained as residuals.

Repeated residual structure may form stable bins.

Stable bins are tested against data-quality, parameter, and scope explanations.

Only then may they become OPEN scientific questions.

A question becomes a proposed hypothesis only when it is converted into a predictive model with explicit failure conditions.

The evidence that generated the model is not reused naively as confirmation.

Fresh data must test it.

Alternatives must compete.

When multiple candidates proceed to confirmation, FDR correction scales Type-I error control to the actual number tested.

Failed models remain failed.

Partially successful models explain only the residual portion they actually cover.

The rest remains open.

The architecture therefore rejects both forced closure and uncontrolled hypothesis proliferation.

Its core rule is:

$$
\boxed{
\text{Do not promote an anomaly into a mechanism until it survives prediction beyond the anomaly itself.}
}
$$

More compactly:

$$
\boxed{
\text{Residual first. Hypothesis second. Prediction third.}
}
$$

That ordering turns unexplained data into a disciplined search process rather than a generator of post hoc stories.

## Runtimes and their contribution

Authorship and all research judgments are the author's alone. Machine runtimes assisted with editorial restructuring, source-location checks, house-style normalization, and verification. They did not originate the research claims, perform unreported experiments, or receive creator credit. Detailed per-runtime provenance remains in the project audit record.

## References

Benjamini, Y., and Hochberg, Y. (1995). Controlling the false discovery rate: A practical and powerful approach to multiple testing. *Journal of the Royal Statistical Society B*, 57(1), 289–300.

Berk, R., Brown, L., Buja, A., Zhang, K., and Zhao, L. (2013). Valid post-selection inference. *Annals of Statistics*, 41(2), 802–837.

Box, G. E. P. (1980). Sampling and Bayes inference in scientific modelling and robustness. *Journal of the Royal Statistical Society A*, 143(4), 383–430.

Broderick, T., Jordan, M. I., and Pitman, J. (2012). Beta processes, stick-breaking and power laws. *Bayesian Analysis*, 7(2), 439–476.

Chaloner, K., and Verdinelli, I. (1995). Bayesian experimental design: A review. *Statistical Science*, 10(3), 273–304.

Chambers, C. D. (2013). Registered reports: A new publishing initiative at Cortex. *Cortex*, 49(3), 609–610.

Earman, J. (1992). *Bayes or Bust? A Critical Examination of Bayesian Confirmation Theory*. MIT Press.

Ferguson, T. S. (1973). A Bayesian analysis of some nonparametric problems. *Annals of Statistics*, 1(2), 209–230.

Fithian, W., Sun, D., and Taylor, J. (2014). Optimal inference after model selection. arXiv:1410.2597.

Fowler, M. (2005). Event Sourcing. martinfowler.com.

Gelman, A., Carlin, J. B., Stern, H. S., Dunson, D. B., Vehtari, A., and Rubin, D. B. (2013). *Bayesian Data Analysis* (3rd ed.). CRC Press.

Gelman, A., and Loken, E. (2014). The statistical crisis in science. *American Scientist*, 102(6), 460–465.

Gelman, A., Meng, X.-L., and Stern, H. (1996). Posterior predictive assessment of model fitness via realized discrepancies. *Statistica Sinica*, 6(4), 733–807.

Gelman, A., and Shalizi, C. R. (2013). Philosophy and the practice of Bayesian statistics. *British Journal of Mathematical and Statistical Psychology*, 66(1), 8–38.

Hendrycks, D., and Gimpel, K. (2017). A baseline for detecting misclassified and out-of-distribution examples in neural networks. *ICLR 2017*.

Holm, S. (1979). A simple sequentially rejective multiple test procedure. *Scandinavian Journal of Statistics*, 6(2), 65–70.

Ioannidis, J. P. A. (2005). Why most published research findings are false. *PLoS Medicine*, 2(8), e124.

Kass, R. E., and Raftery, A. E. (1995). Bayes factors. *Journal of the American Statistical Association*, 90(430), 773–795.

Kitano, H. (2016). Artificial intelligence to win the Nobel Prize and beyond. *AI Magazine*, 37(1), 39–49.

Langley, P., Simon, H. A., Bradshaw, G. L., and Zytkow, J. M. (1987). *Scientific Discovery: Computational Explorations of the Creative Processes*. MIT Press.

MacKay, D. J. C. (1992). Information-based objective functions for active data selection. *Neural Computation*, 4(4), 590–604.

Markou, M., and Singh, S. (2003). Novelty detection: A review, Part 1: Statistical approaches. *Signal Processing*, 83(12), 2481–2497.

Miller, J. W., and Harrison, M. T. (2014). Inconsistency of Pitman-Yor process mixtures for the number of components. *Journal of Machine Learning Research*, 15, 3333–3370.

Moreau, L., et al. (2013). PROV-DM: The PROV data model. W3C Recommendation. World Wide Web Consortium.

Nosek, B. A., et al. (2018). The preregistration revolution. *Proceedings of the National Academy of Sciences*, 115(11), 2600–2606.

Pimentel, M. A. F., Clifton, D. A., Clifton, L., and Tarassenko, L. (2014). A review of novelty detection. *Signal Processing*, 99, 215–249.

Rasmussen, C. E. (2000). The infinite Gaussian mixture model. *Advances in Neural Information Processing Systems*, 12, 554–560.

Salmon, W. C. (1975). Confirmation and relevance. *Minnesota Studies in the Philosophy of Science*, 6, 3–36.

Scheirer, W. J., de Rezende Rocha, A., Sapkota, A., and Boult, T. E. (2013). Toward open set recognition. *IEEE Transactions on Pattern Analysis and Machine Intelligence*, 35(7), 1757–1772.

Simmons, J. P., Nelson, L. D., and Simonsohn, U. (2011). False-positive psychology: Undisclosed flexibility in data collection and analysis allows presenting anything as significant. *Psychological Science*, 22(11), 1359–1366.

Wagenmakers, E.-J., Wetzels, R., Borsboom, D., van der Maas, H. L. J., and Kievit, R. A. (2012). An agenda for purely confirmatory research. *Perspectives on Psychological Science*, 7(6), 632–638.