Skip to content

[Product Slice] Turn portfolio context into an evidence-backed daily intelligence workflow #103

Description

@helsome

Problem

Folio already has portfolio/watchlist concepts, market/research tools, background-job work, notifications, and research/evidence infrastructure. However, these capabilities are not yet organized around a recurring user job that makes the product useful every day.

A financial research workbench should not require the user to repeatedly ask “research company X.” A more valuable workflow is:

“What changed today across the companies I own or watch, why does it matter, and what evidence supports that conclusion?”

Without this vertical slice, Portfolio Context (#37), Background Jobs (#38), filings/news retrieval (#32), evidence/citation, and thesis-impact logic can remain technically complete but product-level disconnected.

Related: #13 #20 #32 #37 #38 #96 #100 #102

Current state

Folio already has or is developing:

  • explicit/versioned watchlist and portfolio context;
  • canonical instrument resolution;
  • market/news/research capabilities;
  • primary-source filing/announcement retrieval;
  • Deep Research and thesis-impact flows;
  • scheduled/background jobs and desktop notifications;
  • evidence/citation/provenance infrastructure.

There is also a known scheduler correctness issue (#96) around duplicate daily execution, which must be respected before expanding scheduled workflows.

What is missing is one product contract that connects these pieces into a safe, auditable portfolio intelligence loop.

Expected direction

Build a narrow daily/triggered intelligence workflow:

Selected Portfolio / Watchlist snapshot
  ↓
Detect meaningful new information
  ├─ filing / announcement
  ├─ material company news
  └─ relevant market/financial change
  ↓
Retrieve primary evidence
  ↓
Assess relevance / impact to the selected holdings or thesis
  ↓
Produce concise evidence-backed digest
  ↓
Persist run + context snapshot + evidence
  ↓
Notify user
  ↓
Open directly into the corresponding report/run

The workflow should distinguish new meaningful change from ordinary noise. It does not need a sophisticated ML ranking model initially; deterministic rules plus existing Agent/research judgment are acceptable if the evidence path remains inspectable.

Each result should make clear:

  • which portfolio/watchlist snapshot was used;
  • which company/instrument triggered the item;
  • what changed;
  • why it may matter to the portfolio/thesis;
  • what primary/secondary evidence supports it;
  • when the source/data was retrieved;
  • whether the conclusion is supported or only tentative.

Safety / reliability requirements

  • No automatic trading or order placement.
  • Background execution must not gain additional tool permissions compared with foreground research.
  • Fix or account for [Automation] Scheduled rules can run more than once on the same day #96 before claiming recurring-job correctness; one scheduled occurrence must not produce duplicate research runs/notifications.
  • Portfolio/watchlist content follows the existing privacy/redaction policy and must not be emitted wholesale into unrelated telemetry.
  • If no meaningful change exists, the workflow may produce a compact “no material update” result rather than fabricating activity.

Non-goals

  • No full portfolio management system.
  • No tax/P&L accounting engine.
  • No real-time tick-by-tick alert platform.
  • No automatic trade execution.
  • No requirement to support every exchange/source in the first slice.
  • Do not create a second background scheduler; reuse/harden the existing job infrastructure.

Validation / acceptance criteria

  • Create a real watchlist or portfolio with at least 5 canonical instruments and persist a versioned snapshot.
  • Run one actual portfolio-intelligence job through the production path using real retrieval/data sources.
  • At least one test scenario detects a real filing/announcement/news/data change relevant to one of the selected instruments.
  • The produced digest links each material item to stable evidence/source identities; factual claims are not backed only by free-text model output.
  • The result records the exact portfolio/watchlist snapshot/version used, and later portfolio edits do not rewrite the historical run context.
  • The user can open at least one digest item and inspect the underlying evidence/provenance.
  • A scheduled occurrence executes at most once across overlapping scheduler ticks and application restart/reconciliation semantics; [Automation] Scheduled rules can run more than once on the same day #96 must be fixed or explicitly depended on before this criterion is marked complete.
  • Completion/failure produces a privacy-safe notification that opens the corresponding persisted run/report.
  • Include one “no material change” case and verify the system does not manufacture a meaningful event.
  • Provide a reproducible test report with exact commands, Bun/OS, provider/model/source information and focused integration results.
  • Because this is a visible workflow, attach screenshots of the generated digest and the evidence/report opened from its notification or entry point.

Maintainer note

This Issue is intentionally product-oriented. Prefer connecting existing portfolio, research, evidence and scheduling components over introducing another general-purpose agent subsystem.

Activity

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

Metadata

Metadata

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