Skip to content

[Product Slice] Make Deep Research complete one primary-source-backed, claim-verified report end to end #102

Description

@helsome

Problem

Deep Research has accumulated several strong subsystems — retrieval ranking, checkpoint/recovery, Gold Cases, Langfuse tracing, prompt-injection defenses, claim/evidence work, claim verifier work, and primary-source connectors — but the repository still lacks one explicit product acceptance target that proves these pieces work together as a complete research workflow.

Without that vertical slice, individual modules can be correct while the final report still loses source authority, evidence spans, verification status, or reproducibility between retrieval and synthesis.

Related: #13 #15 #20 #21 #30 #32 #39 #100

Current state

Folio currently has or is actively developing:

  • Deep Research production workflow;
  • source ranking/deduplication;
  • primary-source document adapters (for example SEC / issuer sources);
  • structured claim/evidence relationships;
  • claim verifier core;
  • inline citation/source inspection;
  • Gold Case datasets and Langfuse trace integration;
  • checkpoint and crash recovery;
  • prompt-injection defenses for untrusted research content.

The missing piece is one canonical report flow that demonstrates the whole chain rather than another isolated subsystem.

Expected direction

Choose one real public company and one bounded research question, for example:

“What drove the company’s latest-quarter revenue/margin change, and what are the major risks to the current thesis?”

The production flow should be:

Research question
  ↓
Research plan
  ↓
Primary-source retrieval (filing / exchange / IR)
  +
Secondary-source retrieval (news/web when useful)
  ↓
Dedup / source ranking
  ↓
Evidence extraction with stable source + location
  ↓
Atomic claims
  ↓
Claim-level verification
  ↓
Synthesis
  ↓
Persisted report
  ↓
Citation / Source Inspector
  ↓
Eval / trace metadata

Primary sources should be preferred for factual financial claims; secondary sources may add interpretation or market context. Unsupported conclusions must remain visibly unsupported rather than being promoted into confident report prose.

Non-goals

Validation / acceptance criteria

  • Run one real Deep Research task through the production research path using a real model.
  • Retrieve at least one real primary source (regulatory filing / exchange disclosure / issuer IR document) and at least one additional independent source when relevant.
  • Retrieval output demonstrates dedup/source-ranking behavior; syndicated copies do not count as independent supporting evidence.
  • The final report contains stable claim IDs for factual/causal conclusions and evidence references that resolve to specific source spans/structured facts, not only source homepages.
  • Each material factual/causal claim is machine-readably classified as supported / contradicted / insufficient evidence (or equivalent).
  • Unsupported/contradicted claims are not silently rendered as verified conclusions.
  • Report persistence + reload preserves claim/evidence/citation identities.
  • At least one inline citation can be opened from the report into the corresponding evidence/source detail.
  • Run metadata records model/provider, retrieval policy/version, relevant tools, and trace/eval identity where available.
  • The run is represented in the current Gold Case / evaluation path, or produces an equivalent reproducible eval artifact with groundedness/evidence checks.
  • Provide a reproducible test report with exact commands, Bun/OS, model/provider, query, source set, verifier summary and focused/full test results.
  • Attach screenshots of the final report and at least one claim → citation/evidence inspection path.

Maintainer note

The goal is not architectural completeness. A narrow, credible, end-to-end research report is more valuable than adding another broad abstraction. Prefer wiring existing components together and fixing contract gaps discovered along the path.

Activity

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

Metadata

Metadata

Assignees

Labels

claimedClaimed by a contributor and currently in progress

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions