Skip to content

[WIP] Build deterministic financial computations in analytics package#58

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/feat-deterministic-financial-computations
Closed

[WIP] Build deterministic financial computations in analytics package#58
Copilot wants to merge 1 commit intomainfrom
copilot/feat-deterministic-financial-computations

Conversation

Copy link
Contributor

Copilot AI commented Mar 22, 2026

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt

This section details on the original issue you should resolve

<issue_title>feat(analytics): deterministic financial computations</issue_title>
<issue_description>## Summary
Build packages/analytics — deterministic financial analysis that sits on top of the ledger and resolution layers.

Owns

  • Trend analysis: Spending trends by category/merchant over time
  • Debt scenarios: Payoff timelines, interest projections, snowball vs avalanche
  • Liquidity runway: "How many months can I sustain current burn?"
  • Budget vs actual: Set budgets per category, compare against actuals
  • Monthly burn: Total outflow analysis with recurring vs discretionary split
  • Recurring commitment load: Total monthly obligated spend (subscriptions + bills + debt payments)
  • Variance analysis: Month-over-month and category-level variance detection

Principles

  • All computations are deterministic — no AI, no randomness
  • Inputs: ledger postings + resolved transactions + time range
  • Outputs: structured data objects, not prose
  • Every number is traceable to source postings

Key Computations

// Monthly burn rate
computeMonthlyBurn(accountId, period): { total, recurring, discretionary, byCategory }

// Liquidity runway
computeRunway(accounts, burnRate): { months, pessimistic, optimistic }

// Recurring load
computeRecurringLoad(resolvedTransactions): { monthly, annual, items[] }

// Budget variance
computeVariance(budget, actuals, period): { overBudget[], underBudget[], net }

Acceptance

  • Monthly burn calculation is accurate against known test data
  • Budget vs actual comparison works
  • Recurring load correctly sums detected subscriptions
  • All outputs include source transaction references</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

@kayodebristol
Copy link
Contributor

Closing this PR to enforce the 1-PR-per-repo rule. Only one Copilot PR is allowed per repository at a time. The oldest PR (#48) will be kept active.

Copilot stopped work on behalf of kayodebristol due to an error March 22, 2026 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(analytics): deterministic financial computations

2 participants