The Empty Input Problem: Why AI Crypto Research Pipelines Fail Before the Model Runs

0xHasu • • Video

The Empty Input Problem: Why AI Crypto Research Pipelines Fail Before the Model Runs

Hook

In the third week of a range-bound tape, a nine-dimension crypto analysis pipeline returned a document of roughly 4,800 words. Every section was populated. Every table was formatted. The Howey test had four rows and a verdict line. The risk matrix carried six categories, a probability column, and an impact column. The report closed with a glossary, a disclaimer, and a prioritized list of remediation steps.

Every substantive field read N/A.

Technical positioning: N/A. Supply structure: N/A. Market sentiment: N/A. Regulatory jurisdiction: N/A. Composite risk rating: N/A. The document had reached a rare state — structurally complete, semantically empty.

Then it did the thing that made me stop scrolling. Instead of filling the void, it diagnosed its own upstream failure. Phase 1 returned an empty information-point list. It could not tell whether the source had contained no facts, whether the fetch had failed, whether a field name had drifted, or whether JSON parsing had silently returned an empty object. It listed the missing keys. It published a re-submission checklist. It refused to proceed.

I have audited code before a token sale. I have read more research notes than I can count. This is the first automated artifact I would frame — not for what it concluded, but for what it declined to conclude.

Context: The Two-Stage Architecture and Its Seam

To understand why that refusal is rare, you need the architecture.

Most crypto research pipelines sold today run in two stages. Stage 1 is deconstruction. It takes a source — a news article, a governance post, a thread — and extracts information points. Each point carries a claim, a source, a timestamp, and a domain tag. It identifies the entities involved. It scores source quality. It flags time sensitivity. Stage 1 is ingestion and parsing.

Stage 2 is analysis. It takes Stage 1's output and runs it through a fixed set of dimensions: technical, tokenomics, market, ecosystem, regulatory, team and governance, risk, narrative, and supply-chain transmission. Each dimension has sub-tables, scoring rubrics, and cross-references.

Here is the part that matters. Stage 2 never reads the news. Stage 2 reads Stage 1's output. The two stages are joined by a data contract — a schema with required keys, expected types, and implicit freshness assumptions.

When that contract holds, the pipeline produces analysis. When it breaks, the pipeline produces something else: a valid document describing nothing.

The failure modes are mundane and they are everywhere. A field-name mismatch, where the upstream stage emits information_points and the downstream stage reads infoPoints. A JSON parse that swallows an exception and returns an empty object. An upstream task that times out and emits a heartbeat instead of an error. A retry loop that converts a hard failure into a soft one by writing a default.

The report in front of us is the artifact of that seam. It carried nine sections of N/A and one accurate root-cause note. Everything else in the document was a template doing what templates do when they are fed nothing: holding shape.

The industry is not short of Stage 2 tooling. Agent frameworks proliferate. Reasoning models get longer context windows every quarter. Retrieval stacks are commoditized and cheap. Stage 1 — the unglamorous, low-margin work of fetching, parsing, verifying, and timestamping — is where the pipelines actually break, and it is where almost nobody is investing. The tooling market has priced the reasoning layer as the product and the ingestion layer as a commodity. That pricing is backwards.

A pipeline is only as reliable as its ingestion contract. Everything downstream of a broken contract is expensive theater.

Core

1. An empty array is not a missing key

Start with the primitive. In Solidity, there is a difference between a call that fails and a call that returns zero.

(bool ok, bytes memory ret) = feed.staticcall(payload);

// ok == false, ret.length == 0 // -> address has no code, or the call reverted // ok == true, ret.length == 32, decoded value == 0 // -> the protocol answered, and the answer is zero ```

These two states are not the same. The first is an absence of an answer. The second is an answer. Correct systems check extcodesize before the call and returndatasize after. Sloppy systems decode the return buffer, get zero, and move on.

The same collapse happens in the data layer, and it happens more often.

points = stage1_output.get("information_points", [])
if not points:
    return render_empty_report()

Three distinct situations produce that branch. The key is missing, which is a contract violation. The key exists and holds an empty list, which is an empty source. The key exists, holds data, and something upstream truncated it, which is silent corruption. One branch. Three causes. No distinction.

The fix is not sophisticated. It is a sentinel.

if "information_points" not in stage1_output:
    raise UpstreamContractError("phase1_output missing required key")

points = stage1_output["information_points"]

if len(points) == 0: raise EmptySourceError("phase1 returned zero information points") ```

Now the pipeline fails loudly at the seam, in the language of the failure, with the key name attached.

The report we are examining is what happens when you catch EmptySourceError and still owe the user a document. You render nine sections of N/A. That is the honest version. The dishonest version renders nine sections of prose.

2. Staleness is a different animal from absence

An empty input is easy to reason about. A stale input is not. Stale data looks exactly like fresh data.

Oracle networks expose this directly. latestRoundData() returns five values. Two of them exist purely so that you do not trust the other three.

(uint80 roundId, int256 answer, , uint256 updatedAt, uint80 answeredInRound)
    = priceFeed.latestRoundData();

require(answeredInRound >= roundId, "STALE_ROUND"); require(updatedAt >= block.timestamp - HEARTBEAT, "STALE_PRICE"); require(answer > 0, "NON_POSITIVE"); ```

Read those three requires in order. The first catches a round that was carried over from a previous answer. The second catches a heartbeat that lapsed. The third catches a feed that is answering with zero, which is never a price. A price of zero is a feed that has failed and is telling you so in the only vocabulary it has.

I learned the second and third checks the expensive way. In 2021 I ran a high-frequency arbitrage strategy between DAI and USDC pairs on Uniswap V2. A Python worker, a six-week window, roughly $150,000 in profit. Then July arrived. A flash crash hit, my quotes lagged the block, and slippage took 40% of the gains in under an hour.

My root-cause analysis found exactly one defect. I had a price check. I did not have a depth check. The pool existed. The price was real. The liquidity behind that price was gone. Nothing in my system distinguished a valid quote from a valid quote you can actually fill.

I froze all operations and wrote the post-mortem the same week. The rule that came out of it — no position exceeds 5% of total capital — is the least interesting part. The interesting part is the second rule: every data input gets a freshness bound and a depth bound, or it does not get used. Precision in audit prevents chaos in execution.

The pipeline in our report had no such bounds. It had schema shape and nothing else.

3. The pressure to fabricate

Now the part that should worry you more than the N/A.

An agent operating under an output contract feels pressure to satisfy that contract. If the template says nine sections, the agent produces nine sections. If a section has a scoring rubric, the agent produces a score. Instruction-following is the whole point of these systems, and it does not switch off when the data is missing.

So the default behavior of a research agent handed an empty input is not N/A. It is this:

Technical assessment: Moderate. The protocol's architecture is conventional for its category, with standard assumptions. Tokenomics: Reasonable. Team: Experienced but partially anonymous. Risk: Medium. Watch for catalysts.

That output is fluent, formatted, plausible, and worthless. Worse than worthless. It is indistinguishable from real analysis at a glance, and a reader will size a position on it. The asymmetry is brutal: a fabricated N/A converted into Moderate costs nothing to produce and can cost a reader their capital.

In 2017, I spent four months auditing Bancor's conversion logic before its token sale. I found three integer overflow vulnerabilities and submitted them as formal GitHub issues. They were patched before launch. The thing I did not submit was a sentence like the codebase appears generally sound. An auditor who writes that without reading line by line is worse than no auditor, because they transfer unearned confidence to a reader who cannot verify the claim.

An AI research agent that fills an empty input with Moderate is that auditor. It is worse than no agent. It launders absence into confidence.

The reason the report we are examining is notable is not that it did something clever. It is that it did the default thing — report the absence — and the default thing is now rare enough to be remarkable.

4. Audit the checklist, not just the output

Nine dimensions. Let me map each to the input it actually needs, because the mapping exposes something the report's format hides.

| Dimension | Required input | Failure mode when absent | |---|---|---| | Technical | Repository, audit reports, deployed bytecode | Narrative copied from a deck | | Tokenomics | Allocation table, vesting contract, unlock schedule | Supply numbers from a blog post | | Market | Venue depth, funding, open interest, holder distribution | A price chart read as sentiment | | Ecosystem | Integration map, contract deployment counts, contributor activity | Vibes from a partner logo | | Regulatory | Jurisdiction, entity structure, filings | A Howey guess dressed as legal analysis | | Team and governance | Identities, prior exits, proposal history, voter concentration | Anonymous-founder discount applied blindly | | Risk | All of the above, plus a threat model | A generic six-row risk matrix | | Narrative | Social volume, funding rates, attention decay curve | Momentum chasing labeled as research | | Supply chain | Upstream dependencies, downstream integrations | An isolated entity view |

Count the rows. Eight of the nine dimensions are downstream of the same three sources of truth: the contract, the chain, and the filing. The technical dimension needs the contract. Market, ecosystem, and supply chain need the chain. Regulatory needs the filing. Tokenomics needs the contract and the filing together.

When all three are missing, all nine collapse. The 100% N/A rate is not nine failures. It is one failure propagating through nine views.

One missing input at the root produces nine false negatives at the leaf. The report's format made a single ingestion failure look like a comprehensive nine-point assessment. The shape of the output concealed the shape of the failure. That is a design defect in the template, not in the model.

If you build one of these systems, invert the reporting order. Root cause first, dimensions second. A reader should learn that ingestion failed before they learn that nine things are unknown. Otherwise the document teaches them the wrong thing at the exact moment they are least able to check.

5. The two-key rule

Here is what I run.

Since early 2026 I have operated a hybrid system that cross-references off-chain AI sentiment analysis with on-chain liquidity metrics from Chainlink. The design principle is a two-key rule, borrowed from weapons control and, more recently, from every serious risk desk.

No trade fires unless both legs are fresh. The sentiment leg carries a model version hash and a generation timestamp. The liquidity leg carries an oracle round and a heartbeat. If either leg is stale, out of range, or missing, the system abstains.

def evaluate(signal):
    sentiment = signal.sentiment_leg
    liquidity = signal.liquidity_leg

if sentiment.model_hash != CONFIG.active_model_hash: return ABSTAIN, "sentiment_model_drift"

if now() - sentiment.generated_at > SENTIMENT_TTL: return ABSTAIN, "sentiment_stale"

if liquidity.answered_in_round < liquidity.round_id: return ABSTAIN, "oracle_round_carried"

if now() - liquidity.updated_at > ORACLE_HEARTBEAT: return ABSTAIN, "oracle_stale"

if liquidity.depth_within_50bps < CONFIG.min_depth: return ABSTAIN, "depth_insufficient"

return EXECUTE, signal ```

Note what the function returns when a check fails. Not a smaller position. Not a hedged position. ABSTAIN.

The system's reported accuracy in volatile conditions is 92%. That number is quoted often and understood rarely. It is not a prediction accuracy. It is a conditional accuracy — the hit rate on the subset of signals where both keys turned. The system generates far more signals than it executes. Roughly two-thirds of everything it evaluates ends in ABSTAIN.

The accuracy is a function of abstention, not of prediction. A system that trades everything has a lower hit rate than a system that trades one-third of everything, even if the underlying models are identical. The selectivity is the edge. The models are the commodity.

Every time someone asks me what model I use, I give the wrong answer on purpose, because the question is wrong. The model is not the system. The refusal logic is the system.

6. Three checks that make a pipeline fail loud

If you take one thing from this piece, take the checklist. It fits on a card.

Schema check. Every required field must be present and non-empty. Presence and emptiness are different assertions. Key membership is not the same test as length greater than zero. Assert both. On failure, raise with the key name in the message. Do not default. A default is a lie with good manners.

Provenance check. Every information point carries a source and a timestamp. Points without a source are dropped, not kept with an unverified flag, because flags get stripped in transit and the point survives. I have watched this happen in a production pipeline. The unverified flag was dropped by a serializer, and six months of low-quality points entered the training set. Provenance that is not enforced is provenance that is decorative.

Freshness check. Every timestamped input gets a time-to-live. TTLs are set from the heartbeat of the source, not from intuition. An oracle with a 24-hour heartbeat does not get a 1-hour TTL and it does not get a 72-hour TTL. It gets a bound derived from how the source actually behaves under stress, measured, not assumed.

Then the fourth thing, which is not a check but a posture: log the null. An empty input is a signal. It tells you a source died, a schema drifted, or a task silently failed. The report we are examining did exactly this — it documented what was missing and produced a re-submission checklist. That is the correct output format for a null result. It is also the format that gets an empty report rated as a failure by every benchmark and every user, which is precisely why so few systems produce it.

7. Why chop makes this worse

We are in a sideways tape. Ranges compress volatility. Nothing forces resolution. That condition has a specific effect on data quality that almost nobody prices.

In a trend, bad data punishes you fast. A stale feed gets you stopped out within hours. A missing input costs you the trade and you notice. The feedback loop is short and the lesson lands.

In chop, bad data punishes you slowly. A fabricated Moderate produces a position that goes nowhere. No stop triggers. No liquidation. You sit in a range with a thesis built on nothing and you call it patience. The feedback loop is long enough that the causal link never closes, and you carry the same broken pipeline into the next trend.

This is why the agent-framework market is loudest in exactly the conditions where data quality matters most. Range-bound markets sell research. Research sells agents. Agents get plugged into pipelines whose ingestion layer has never been tested with an empty input. And chop absorbs the error without ever telling anyone.

There is a second-order effect worth naming. In a range, correlation between assets rises and information content falls. The marginal value of a new data source drops. The marginal value of knowing whether your existing sources are alive goes up. Most teams are spending on the wrong side of that ratio, buying the tenth feed when they have never verified the first one.

Contrarian: The Fix Is Not a Better Model

The consensus, stated at every conference and in every funding memo, is that pipelines like this improve with better models. Longer context. More tools. Better retrieval. Reinforcement learning from human feedback on research outputs.

I think that is wrong, and I think the evidence is in the document we started with.

That report did not fail because the model was weak. The model produced a correct root-cause diagnosis, an accurate list of missing fields, a coherent remediation plan, and a clean refusal. That is high-quality reasoning. It failed because there was nothing to reason about. Spending more on reasoning would not have changed the outcome. It would have produced a more articulate N/A.

The binding constraint is not capability. It is the contract at the seam and the provenance of what crosses it. That is unglamorous work: schema validation, source attestation, freshness bounds, null logging. It does not demo well. It does not raise at a higher valuation. It is the difference between a system that works and a system that appears to work.

There is a second, subtler error in the consensus. The industry rates abstention as failure. A benchmark rewards an agent that produces an answer over one that produces N/A. A user churns from a tool that says insufficient data and stays with one that says moderate risk. That rating function is the mechanism that manufactures hallucinated research. The incentive gradient points directly at fabrication, and then everyone acts surprised when fabrication shows up.

Flip the rating. In trading, the ability to not trade is the position. My 2021 drawdown was not caused by a wrong model. It was caused by a missing check that would have stopped execution. The stop was the alpha. The model was fine.

I have not changed my core trading model in three years. I have rewritten the refusal logic four times. That ratio is the entire argument of this piece, and it is not really contrarian. It is just expensive to implement and impossible to market.

Takeaway

Before the next cycle opens, run one test on any research agent you are considering wiring into your book. Feed it an empty input.

Not a hard input. Not a confusing input. An empty one — an object with the required keys present and the arrays empty. Watch what comes back.

If it returns N/A, a root-cause note, and a list of what it would need to proceed, you have an auditor. Keep it.

If it returns a thesis — moderate risk, promising fundamentals, watch for catalysts — you have a writer. It will do exactly the same thing with your capital that it just did with that empty array. It will fill the void with something fluent. And in a range-bound market, you will not find out for months.

Precision in audit prevents chaos in execution.

How many of the positions on your book right now were opened by a pipeline that has never once refused to answer?