Skip to content

Remove all defaults from Household.State and Aggregates#101

Merged
speedcom merged 1 commit intomainfrom
refactor/household-no-defaults
Mar 10, 2026
Merged

Remove all defaults from Household.State and Aggregates#101
speedcom merged 1 commit intomainfrom
refactor/household-no-defaults

Conversation

@speedcom
Copy link
Contributor

Summary

  • Household.State: removed 7 field defaults (bankId, equityWealth, lastSectorIdx, isImmigrant, numDependentChildren, consumerDebt, education)
  • Household.Aggregates: removed 11 field defaults (totalDepositInterest, crossSectorHires, voluntaryQuits, sectorMobilityRate, totalRemittances, totalPit, totalSocialTransfers, totalConsumerDebtService, totalConsumerOrigination, totalConsumerDefault, totalConsumerPrincipal)

All constructor calls now fully explicit — same convention as every other agent type in sfc.agents.

26 files, −55/+432. Pure refactoring, no behavioral changes.

Test plan

  • sbt test — 1245 tests pass
  • Zero field defaults in Household.State and Aggregates

State: 7 defaults removed (bankId, equityWealth, lastSectorIdx,
isImmigrant, numDependentChildren, consumerDebt, education).
Aggregates: 11 defaults removed (totalDepositInterest,
crossSectorHires, voluntaryQuits, sectorMobilityRate,
totalRemittances, totalPit, totalSocialTransfers,
totalConsumerDebtService/Origination/Default/Principal).

All constructor calls now fully explicit across 26 files.
@speedcom speedcom merged commit 0ca86a1 into main Mar 10, 2026
2 checks passed
@speedcom speedcom deleted the refactor/household-no-defaults branch March 10, 2026 20:19
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.

1 participant