You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
polylogue analyze --portfolio renders one report over the whole archive (or a --since/--origin-bounded slice): aggregate session/repo/origin counts, cost and wall-clock
distributions, the top recurring failure-mode pathologies, and the top context-loss patterns.
It is the corpus-scope sibling of the per-session postmortem bundle (#2380).
Shipped shape
polylogue/insights/portfolio.py — a pure aggregator (compile_portfolio_bundle) composing
the postmortem metric vocabulary (#2380) and the pathology distribution (#2383) over a
whole-archive scope, adding per-session cost and wall-clock DistributionStat (nearest-rank
quartiles, deterministic), per-origin counts, and the context-loss (stale-context)
distribution. No-signal fields degrade honestly. Plain/markdown/JSON renderers; surfaced via Polylogue.portfolio_bundle(spec) and the analyze --portfolio CLI verb.
Relationship
Parent #1807 (analysis). Composes #2316 (cost/wallclock) and #2383 (pathologies); corpus-scope
sibling of #2380. Adds no new durable schema noun — a projection/Bundle.
analyze --portfolio renders the corpus-wide sanitized report (plain/markdown/json):
✅ One documented command over the whole archive: session/repo/origin counts, cost + wall-clock distributions, top failure-mode pathologies, top context-loss patterns.
✅ Routed through the #2381 sanitizer (sanitize_rows) and fail-closed via assert_text_sanitized — sanitizer failure ⇒ no raw leak (the gate also withholds leaked values from its own error message, CodeRabbit-hardened).
changed the title [-]feat(analyze): corpus-wide sanitized agent-usage portfolio report[/-][+]feat(analyze): corpus-wide agent-usage report[/+]on Jun 27, 2026
Activity
fix(export): don't echo leaked values in the sanitizer gate error
feat(analyze): add corpus-wide sanitized portfolio report (#2437) (#2451
Sinity commentedon Jun 26, 2026
Realized in #2451 (merged to master).
analyze --portfoliorenders the corpus-wide sanitized report (plain/markdown/json):sanitize_rows) and fail-closed viaassert_text_sanitized— sanitizer failure ⇒ no raw leak (the gate also withholds leaked values from its own error message, CodeRabbit-hardened).PathologyFieldunavailable/clean).Closing as fully realized.
[-]feat(analyze): corpus-wide sanitized agent-usage portfolio report[/-][+]feat(analyze): corpus-wide agent-usage report[/+]chore(release): 0.2.0 (#2102)