Household: member names and the subscription-names opt-in (v0.3.0) #4
Reference in New Issue
Block a user
Delete Branch "feature/household"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes the two v1 gaps left after day 2 on the core side: who is who in a shared budget, and the opt-in for household duplicates ("You both pay Spotify").
Events
profile.named {name}household.sharing_set {budget, on}member.named {budget, name}subscriptions.shared {budget, names}[]withdrawsThe state keeps
profile_nameandhousehold_sharing. A shared budget's state keeps nothing per author: the app folds the latest per author, because only Fundamentum knows who wrote what.fiscus-insight::household::shared_names(state, today)What leaves when someone opts in: the service key of every subscription still paid (active, or charged after a cancel), sorted, at most 100.
PAYPAL *SPOTIFY 4029357733leaves asspotify. Merchant text, references and amounts never leave.Tests (first)
fiscus-ledger/tests/household.rs: the profile name is trimmed and bounded; the opt-in works per shared budget only; member and subscription events need the budget and are bounded; the new type tags round-trip as JSON.fiscus-insight/tests/household.rs: only service keys of subscriptions still paid; a too-short key (TV) is not sent; a cancelled one drops out.cargo test --workspace: 92 passed.Self-review
todayis a parameter.apply()stays total, so anything else is a typed rejection.subscriptions.sharedonly to withdraw names it sent before, and only keys ever leave.merchant.rs:9,money.rs:52,subscriptions.rs:152), andcargo fmt --checkshows older drift. Both are left for a separate cleanup so this diff stays small.