Skip to main content

ops portfolio

Portfolio management and cross-project visibility across all Wasteology projects. Provides unified status, git state, and strategic context queries across every registered project.

Portfolio Scope

A "portfolio project" is anything declared in a manifests/builtin/*.toml file. See ops project for the registry itself; ops portfolio is the cross-cutting view on top of it.

When to Use

🌐

Cross-Project Visibility

status, git, and health give one-screen answers across every project — no cd-and-look-around required.

🧠

Natural-Language Queries

ask queries the lat.md knowledge graph across all projects; query translates English into SQL against the digest warehouse.

🎯

Strategic Alignment

okr-import and okr-sync keep project-to-OKR mappings up to date so the dashboard can show strategic context, not just engineering activity.

Subcommands

SubcommandDescription
statusUnified status across all portfolio projects
gitGit status for all portfolio projects
healthHealth check all portfolio projects
contextStrategic context for all portfolio projects
askAsk a natural-language question across all project lat.md knowledge graphs
queryTranslate a natural-language question to SQL and run it against wg_digests
infographicGenerate project infographics using the Art skill (Gemini) or NotebookLM
okr-importImport OKR definitions from a quarterly CSV export
okr-syncSnapshot current project-OKR alignments from manifests

ops portfolio status

Unified status across every registered project — pulls health, recent failures, and pipeline state into a single table.

One-screen view of the entire portfolio
Terminal
$ops portfolio status
Compared to ops status

ops status is optimized for the operational picture (current failures, recent errors). ops portfolio status is broader — it includes strategic-context fields and is portfolio-scoped by design.


ops portfolio git

Git state across every portfolio project: branch, dirty/clean, unpushed commits, last activity. Useful when you've been working across several repos and want to make sure nothing is stranded.

Branch + dirty/clean + ahead/behind for every project
Terminal
$ops portfolio git

ops portfolio health

Runs each project's adapter health check in parallel. Reports adapter availability, downstream services, and recent error patterns.

Adapter-level health check across the portfolio
Terminal
$ops portfolio health

ops portfolio context

Strategic context view — pulls the strategic positioning, OKR alignments, and category for each project. Best paired with the dashboard's Context tab.

Strategic context across the portfolio
Terminal
$ops portfolio context

ops portfolio ask

Ask a natural-language question that searches across every project's lat.md knowledge graph. The answer cites which project (and which section) the information came from.

Federated lat.md query across all portfolio projects
Terminal
$ops portfolio ask "Which projects have active Prefect flows?"
Requires LLM Key

ask requires a Gemini or OpenAI key configured via LAT_LLM_KEY (or one of its variants). Without a key, fall back to per-project lat search and lat locate.


ops portfolio query

Translate a plain-English question into SQL and run it against the wg_digests warehouse. Returns the result set inline and prints the generated SQL so you can audit it.

Natural-language → SQL → result table
Terminal
$ops portfolio query "Show me all failed pipelines in the last week"
Read-Only by Design

query is gated to SELECT-only statements against wg_digests. If the LLM generates anything mutating, it is rejected before execution.


ops portfolio infographic

Generate a visual infographic for a project using the Art skill (Gemini image gen) or NotebookLM. Useful for stakeholder decks and one-pagers.

Generate an infographic for the wdp-import project
Terminal
$ops portfolio infographic wdp-import

OKR Tracking

Two complementary commands keep the strategic layer in sync with engineering reality.

ops portfolio okr-import

Import OKR definitions from a quarterly CSV export into wg_digests.okr_definitions. Run this once per quarter when the OKR doc is published.

Load quarterly OKR definitions
Terminal
$ops portfolio okr-import okrs-2026-Q2.csv

ops portfolio okr-sync

Snapshot the current project-to-OKR alignments from each project's manifest into wg_digests.project_okr_alignments. Run this whenever a manifest's OKR mapping changes.

Refresh project ↔ OKR mappings from manifests
Terminal
$ops portfolio okr-sync
Import vs Sync

okr-import brings in the definitions (the OKRs themselves). okr-sync brings in the alignments (which project maps to which OKR). You generally do okr-import quarterly and okr-sync on demand.


Combined Workflows

# Morning check — full portfolio sweep
ops portfolio status
ops portfolio git
ops portfolio health

# Ask the knowledge graph a question
ops portfolio ask "Which projects depend on CieTrade data?"

# Pull data for a deck
ops portfolio query "Top 5 projects by commit count this quarter"
ops portfolio infographic wdp-import