The input file was empty. Not truncated. Not partial. The downstream parser dutifully returned a JSON object with every field populated by placeholder strings — "unprovided", "unjudged" — and, tellingly, an instruction prompt left unrendered in an output field. That artifact, 请从上述信息点中识别, is not a bug in the analysis layer. It is a fingerprint of the assembly layer.
A template string appearing in assistant output means one of two things happened. Either the pipeline never executed stage one, or the prompt template itself was concatenated into the messages array where the model response should be. Both are data-layer failures. Both are worth dissecting, because analysis pipelines fail in exactly the way their architecture permits — and this one permitted the wrong thing.
The constraint definition first. A two-stage pipeline has a hard contract: stage one transforms raw text into structured atoms (titles, claims, sources, entities); stage two consumes those atoms. The contract holds only if stage one's output schema matches stage two's input expectations, field name for field name. When the output arrives with every field at its default value, there are three candidate failure modes:
- Input never reached the model — the article body was null, oversized, or stripped during preprocessing.
- The model responded with unparseable content, and a fallback handler silently injected defaults rather than raising.
- Message assembly was inverted — system or user prompt content landing in the assistant role, so the model echoed instruction text back as if it were analysis.
The third mode is the one the artifact points to. Instruction text in an output field is a 99% signature of template variable substitution failure or messages-array misassembly. The model did not hallucinate. The plumbing did.
This maps directly onto a pattern I have seen on-chain repeatedly. Based on my audit experience with oracle-based lending systems, the failure class is identical: a silent fallback that substitutes default values for missing data instead of propagating failure upward. Compound's interest rate model, as I documented in a 2020 whitepaper, did not fail because the math was wrong — it failed at the boundaries where data entered the system and assumptions went unchecked. A parser that fills empty fields with "unprovided" is a liquidation engine that fills missing price feeds with stale values. Both convert a recoverable exception into an unrecoverable silent state.
The core insight is structural. Most analysis pipelines — like most DeFi protocols — are optimized for the happy path and have no defined behavior for the empty-input path. The correct behavior when stage one produces nothing is a hard interrupt: no stage two execution, a typed error surfaced to the operator, and a diagnostic that distinguishes between the three failure modes above. Instead, what shipped here is the worst possible design: stage two ran anyway, consumed a valid-looking-but-empty schema, and the failure became visible only because a human noticed an instruction string in the wrong field.
The diagnostic checklist writes itself. Verify the invocation arguments — is the article body actually present, and under the expected length cap? Inspect the raw model response — is it valid JSON, and does it parse? Diff the output schema field names against the prompt template field names — a single mismatch routes every value to its default. And audit the messages assembly — confirm system prompts are never appended to assistant content. Each check is cheap. Together they localize the fault in minutes.
The contrarian angle: the empty run is more informative than a successful one. A populated template tells you the pipeline works on that one input. An empty template exposes the entire error-handling philosophy of the system — that it prefers plausible-looking output over honest failure. That preference, at scale, is what turns data infrastructure into a liability. The analysts who received this empty schema and did not catch the placeholder text would have proceeded to write analysis of nothing, with full confidence. Multiply that across an automated reporting stack and you get a system that produces confident, verifiable-looking output derived from zero source data. The Terra collapse followed the same shape: every intermediate signal looked structurally sound right up to the feedback loop that nobody bounded.
There is a second-order effect worth naming. Pipelines that fail silently train their operators to distrust output only when it looks wrong. The dangerous cases are the outputs that look right — a stage-one result with plausible-sounding summary text that the model generated from an empty context, rather than template defaults. Placeholder strings are the lucky failure. A confabulated summary is the unlucky one, and no schema validation catches it.
Takeaway: fix the contract, not the symptom. The pipeline needs three properties it currently lacks: fail-fast on empty input at stage boundaries, schema validation that rejects default-valued outputs before stage two consumes them, and a messages-assembly invariant test that would have caught the template echo before it ever reached a human. The deeper question for anyone building multi-stage analysis systems — or multi-stage anything: when your stage one returns nothing, does your system stop, or does it keep going and hope nobody checks? The answer to that question predicts every future failure this pipeline will have.