Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Build bank init state from actual agent populations#132

Merged
speedcom merged 1 commit intomainfrom
refactor/bank-init-honest
Mar 12, 2026
Merged

Build bank init state from actual agent populations#132
speedcom merged 1 commit intomainfrom
refactor/bank-init-honest

Conversation

@speedcom
Copy link
Contributor

Summary

  • BankInit.create now computes per-bank loans, deposits, and consumer credit from actual firm/household populations instead of splitting aggregates by marketShare
  • WorldInit derives World.bank aggregate from initBankingSector.aggregate (single source of truth) instead of constructing it independently
  • Removes the consumer loans "initialize with zero then override" hack
  • Banking.initialize kept as-is for test convenience (doesn't depend on agent populations)

Test plan

  • sbt compile — clean
  • sbt test — 1244 tests pass
  • sbt scalafmtAll — formatted

@speedcom speedcom force-pushed the refactor/bank-init-honest branch from cd18777 to 25f5cb5 Compare March 12, 2026 11:15
@speedcom speedcom force-pushed the refactor/bank-init-honest branch from 25f5cb5 to 858c281 Compare March 12, 2026 11:18
@speedcom speedcom merged commit a70edc6 into main Mar 12, 2026
2 checks passed
@speedcom speedcom deleted the refactor/bank-init-honest branch March 12, 2026 11:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant