LibraryWorkspaceDataHub

© 2026 QCA · by Lime Fintech · About QCA · Market data from Massive

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

Uniform Inference and Certified Capacity at a Reflexive Stability Boundary

Open repository
Sep 3, 2026
Portfolio Management

Verdict: Inconclusive

OverviewExperiments

Executive Summary

Status
Inconclusive
Confidence
Medium

Executive Summary

  • Status: INCONCLUSIVE
  • Confidence: MEDIUM
  • Key Insight: The repository contains the experiment implementations and expected output schema, but no committed runtime result files. So I can assess reproducibility readiness, methodological alignment, and likely limitations, but I cannot verify realized metrics against the paper from actual outputs in the repo.

Results Comparison

I searched the repository for results-related artifacts and found no committed result, metric, log, output, report, or PNG files. The README states that results are written at runtime to results/exp1/ and results/exp2/, but those folders are not present in the repository snapshot analyzed here.

Available evidence from repository contents

The analysis therefore relies on:

  • README.md
  • exp/exp_1_monte_carlo.py
  • exp/exp_2_stress_test.py
  • src/config.py
  • src/evaluate.py
  • AGENTS.md

Comparison table

MetricPaper / ExpectedReproduced in repoDiffStatus
Exp 1 branch-and-bound coverage~99.992% targetNo result file presentN/A
Not verifiable
Exp 1 delta coverage86.510% targetNo result file presentN/ANot verifiable
Exp 1 projected wrong resolved0.003% targetNo result file presentN/ANot verifiable
Exp 1 projected unresolved60.170% targetNo result file presentN/ANot verifiable
Exp 1 deterministic unresolved91.948% targetNo result file presentN/ANot verifiable
Exp 1 plug-in wrong classification34.863% targetNo result file presentN/ANot verifiable
Exp 1 capacity metricsOracle 0.857, projected safe 0.541, etc.No result file presentN/ANot verifiable
Exp 1 budget exhaustion108 / 60,000 target patternNo result file presentN/ANot verifiable
Exp 2 all 900 certificates verifyExpected in paperNo result file presentN/ANot verifiable
Exp 2 budget stress exhaustion1.000 at 50 boxes, 0.078 at 200 boxesNo result file presentN/ANot verifiable
Exp 2 fixed-regime resolution~0.267, unchanged beyond adequate budgetNo result file presentN/ANot verifiable

Summary

There are no actual experimental outputs in the repository to compare numerically with the paper. As a result, there is no basis for a quantitative reproduced-vs-paper comparison on coverage, wrong-sign rates, abstention, capacity, regret, or numerical certification diagnostics.


Experiment-by-Experiment Assessment

Experiment 1: Structural Monte Carlo Reproduction

What the code appears to implement

The repository does implement the broad pipeline expected for Exp 1:

  • structural DGP generation
  • primitive estimation of Q,K,cQ, K, cQ,K,c
  • HAC covariance estimation
  • Wald region construction
  • delta interval benchmark
  • branch-and-bound projected bounds
  • three-way classification
  • policy/capacity evaluation
  • cell/global aggregation

The README also documents intended runtime outputs:

  • cell_metrics.csv
  • global_metrics.json
  • robustness_by_geometry.csv
  • robustness_by_T.csv
  • robustness_by_budget.csv

Material deviations from the paper/specification

These are important because they likely affect any eventual results:

  1. Replications reduced from 1000 to 100 per cell

    • User-selected experiment specification: 1000 per cell, 60,000 total.
    • Repo config: N_REPS = 100.
    • This is a major deviation for Monte Carlo precision, especially for rare-event metrics like wrong resolved sign rates near zero.
    • Expected impact:
      • materially noisier estimates
      • weak ability to detect 0.003% or 1–5% event frequencies
      • larger Monte Carlo standard errors
      • less credible comparison to paper tables
  2. Distance grid fixed at T=250 values

    • In src/config.py, distance_grid is fixed using make_distance_grid(250).
    • The user specification requires distance values indexed by T, with terms like ±0.5/T\pm 0.5/\sqrt{T}±0.5/T​.
    • For T=1000T=1000T=1000, the code appears not to adapt the local-to-boundary distances accordingly.
    • This is a substantive design mismatch because boundary difficulty depends directly on TTT.
  3. Experiment 1 README/design inconsistency

    • README says HAC bandwidth in experiment description uses round(T^{1/4}).
    • config.py implements the paper-like rule ⌊4(T/100)2/9⌋\lfloor 4(T/100)^{2/9}\rfloor⌊4(T/100)2/9⌋, giving 4 and 6 at T=250 and 1000.
    • AGENTS.md also incorrectly mentions round(T**0.25).
    • This internal inconsistency raises some reliability concerns, although the actual code in config.py does match the user prompt better than the AGENTS note.
  4. Potential simplification in policy formula

    • The user specification for safe capacity is: aplan,T=min⁡{ades,T,1−η2(1+ρ)U‾d,T}a_{plan,T}=\min\{a_{des,T}, \frac{1-\eta}{2(1+\rho)\overline U_{d,T}}\}aplan,T​=min{a
  5. Exact coefficient gap acknowledged

    • The repo explicitly acknowledges that exact DGP coefficients / geometry-specific K constructions from the paper are unavailable.
    • Therefore, even if run successfully, Exp 1 is likely a methodological/qualitative replication, not an exact numerical replication.

Expected qualitative reproduction based on implementation

If the code runs as intended, it is still plausible that the following qualitative findings would be reproduced:

  • projected certification more conservative than delta
  • near-zero wrong resolved sign rate for certified projection
  • delta undercoverage near nonregular geometries
  • plug-in classifier unreliable near boundary
  • more conservative deterministic-type bounds
  • resolution improves with larger T and adequate certification budget

But this remains untested in the repository snapshot, since no output files are present.


Experiment 2: Observed-Risk Stress Test

What the code appears to implement

The repository includes a dedicated exp/exp_2_stress_test.py with:

  • rolling-window covariance construction
  • HAC uncertainty for vech(Q)
  • scenario generation over K geometries and target margins
  • projected certification and classification
  • uncertainty and budget sensitivity analyses

README documents intended outputs:

  • q_cases_meta.json
  • scenario_meta.csv
  • base_results.csv
  • sensitivity_uncertainty.csv
  • sensitivity_budget.csv
  • crosstab_geometry_margin.csv
  • summary.json

Material deviations from the paper/specification

  1. Data source mismatch

    • User-selected experiment requires:
      • daily equity data, 252-return windows
      • daily Spanish bond data, 126-return windows
    • Repo code uses:
      • monthly returns from Massive API if available
      • otherwise synthetic fallback data
      • universes are ETFs/equity proxies, not the specified equity + Spanish bond universes
    • This is a major departure from the observed-risk branch as described.
  2. Synthetic fallback changes the interpretation entirely

    • If MASSIVE_TOKEN is absent, experiment 2 falls back to a synthetic factor model.
    • That means the branch ceases to be an observed-risk empirical geometry exercise and becomes another simulation/stress proxy.
    • This prevents meaningful comparison to the paper’s “all 900 Appendix-F certificates verify” empirical-stress claim.
  3. Window frequency and size mismatch

    • Code uses:
      • WINDOW_SIZE = 120
      • comment says “months; ~10 years of monthly data”
    • The user specification requires 252 daily returns for equities and 126 for bonds.
    • This changes both covariance estimation precision and HAC uncertainty scale materially.
  4. Universe mismatch

    • Code uses us_equity and intl_equity ETFs/tickers.
    • Paper specification requires 150 equities and 1,336 Spanish bonds.
    • Pair selection, correlation percentile structure, and empirical Q geometry are therefore not paper-comparable.

Expected qualitative reproduction based on implementation

Even so, the code may still support a qualitative stress-test:

  • higher uncertainty multiplier should widen intervals and reduce resolution
  • increasing certification budget should reduce numerical exhaustion until adequacy
  • once certification is sharp enough, further budget should not materially improve fixed-regime resolution

But again, there are no result files to verify that these patterns actually occurred.


Statistical & Economic Significance

Because no output metrics, Monte Carlo tables, or summaries are committed, I cannot evaluate:

  • t-stats
  • p-values
  • Monte Carlo standard errors
  • statistical significance of coverage differences
  • economic significance of safe capacity or regret numbers

What can be said structurally

  • Exp 1 is underpowered relative to the paper for precise estimation of rare failures because N_REPS=100 rather than 1000 per cell.
  • Exp 2 is not economically comparable to the paper if run via synthetic or monthly ETF data, because the empirical geometry is materially different.

So even if internal outputs existed locally, I would expect:

  • broader Monte Carlo uncertainty in Exp 1
  • limited external comparability in Exp 2

Discrepancies

1. No committed results

  • The largest issue is simply absence of result artifacts.
  • Without global_metrics.json, cell_metrics.csv, summary.json, etc., the reproduction cannot be judged on outcomes.

2. Experiment 1 uses reduced Monte Carlo size

  • N_REPS=100 vs paper’s 1000.
  • This is a material deviation, especially for coverage and wrong-resolved rates.

3. Experiment 1 boundary-distance implementation appears off for T=1000

  • Distance grid is fixed using T=250 values.
  • This may distort the intended local asymptotic comparison across sample sizes.

4. Experiment 2 is not the paper’s observed-risk branch in data terms

  • Uses monthly or synthetic fallback data rather than specified daily equities and Spanish bonds.
  • Therefore any matching patterns would be only qualitative.

5. Internal documentation inconsistency

  • HAC bandwidth and policy formulas appear inconsistently described across README/AGENTS/code.
  • This lowers confidence in exact adherence unless runtime outputs are inspected.

Methodology Issues

Only the most relevant ones:

  • Exp 1

    • broad architecture matches the requested experiment
    • but exact coefficient availability is missing, so exact table replication is already blocked
    • reduced replications and fixed distance grid weaken fidelity
  • Exp 2

    • methodology diverges materially from the specified observed-risk empirical branch
    • especially in data frequency, universe, and fallback behavior
    • should be treated as a proxy stress exercise, not a reproduction of the paper’s empirical appendix

Reliability

Positive signs

  • Repository is organized cleanly into modules and experiment scripts
  • expected output files are explicitly documented
  • evaluation/classification logic is present
  • reproducibility via deterministic seeds is described
  • the code explicitly acknowledges unavailable paper inputs rather than silently claiming exact replication

Red flags

  • no result artifacts committed
  • config/documentation inconsistencies
  • experiment 2 fallback fundamentally changes the exercise
  • experiment 1 downsizing and design simplification likely alter results materially

Overall confidence

  • Medium confidence that the repo contains a serious implementation attempt
  • Low confidence that the paper’s quantitative findings have been actually reproduced, because the necessary output evidence is missing and some design choices depart materially from the target experiments

Images / Charts

No PNG images were found in the repository, so there are no charts to embed.


Verdict

Final Decision: INCONCLUSIVE

Why:

  • The repository includes code for both selected experiments, but no actual runtime outputs are present to analyze.
  • Therefore, the core task—comparing reproduced results to the paper’s reported outcomes—cannot be completed quantitatively.
  • Based on code inspection alone:
    • Exp 1 looks like a plausible partial methodological replication, but with important deviations (N_REPS=100, fixed distance grid, possible policy simplifications).
    • Exp 2 is not a close empirical reproduction of the specified observed-risk branch because of monthly/synthetic fallback data and different universes.

If you want, I can next do one of two things:

  1. produce a run-readiness audit listing exactly what outputs should be generated and how to interpret them once produced, or
  2. inspect more source files (policy.py, branchbound.py, delta.py, spectral.py) to assess how likely the implementation is to match the paper mechanically.

Experiments

Structural Monte Carlo Reproduction of Uniformly Valid Spectral Margin Inference, Classification, and Safe Capacity

Reproduce the paper’s main structural Monte Carlo branch for a 2-asset system (p=2) using synthetic observables generated from the structural model. The experiment evaluates whether projected confidence regions in primitive parameters (Q,K,c), combined with verified spectral certification, deliver near-uniformly valid inference for the spectral margin m(θ), robust three-way classification with abstention, and safe one-sided future-capacity recommendations. It also benchmarks pointwise delta inference, plug-in decisions, and deterministic norm envelopes across six spectral geometries, two sample sizes, and five boundary-distance regimes.

Observed-Risk Stress Exercises Using Empirical Q Geometry and Imposed K/C Scenarios

Reproduce the paper’s observed-risk stress branch, which is not a full empirical market classification exercise but a numerical stress test using observed daily return covariance geometry for Q and estimated uncertainty in vech(Q), while imposing stylized K geometries and c=1. The goal is to study how the same projected-certification machinery behaves on empirically realistic risk matrices, including resolution, abstention, safe-capacity behavior, sensitivity to Q-uncertainty, and sensitivity to computational certification budget.

Original paperRun QCA on your paper
des,T
​
,
2(1+ρ)Ud,T​1−η​
}
  • AGENTS.md describes a simpler formula: a_plan = max(0, a_des - eta * D_U).
  • If policy.py follows AGENTS rather than the full paper formula, capacity comparisons would not be paper-equivalent.
  • I could not verify policy.py directly from retrieved outputs, so this remains a risk flag.