From 208cf76c95216d879f16f2479d40c16297c54908 Mon Sep 17 00:00:00 2001 From: OmO Orchestrator Date: Fri, 20 Nov 2026 14:53:42 -0500 Subject: [PATCH] docs(economy): disclose wallet.issue and Housing fairnessDebt as known limitations; reconcile the contradicted issuance-invariant claim --- ECONOMY.md | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/ECONOMY.md b/ECONOMY.md index 1acee3f..3540c23 100644 --- a/ECONOMY.md +++ b/ECONOMY.md @@ -18,9 +18,11 @@ misreading, so each is defined on its own below. - **Issuance (sources), each tied to a real contribution or an explicit, bounded grant:** - *Welcome credit* (50): a one-time line of credit the commons extends to - every new resident so trade can start on day one (classic LETS seed). - This is the ONLY deliberate net issuance, it is small and bounded, and it - is disclosed here - not hidden fiat. + every new resident so trade can start on day one (classic LETS seed). By + design, this is meant to be the ONLY deliberate net issuance, small and + bounded, and disclosed here - not hidden fiat. See the disclosed + limitation below: that design intent is not yet code-enforced against a + peer self-issuing an arbitrary amount. - *Being housed* credits a resident ONCE, as a one-time settlement grant, when an assignment cycle first places them in a slot - never again for the same placement and never per re-run of the cycle (idempotent). It is @@ -32,9 +34,11 @@ misreading, so each is defined on its own below. for a service (e.g. a Mentor session, a borrowed tool, help with a task). This is the wallet's reason to exist. - **Conservation:** every transfer is zero-sum (one debit, one matched - credit). The only net issuance is the bounded welcome credit, so at steady - state Sigma(balances) = residents x welcome - a stated, stable invariant, - not unbounded inflation. + credit). By design, the only INTENDED net issuance is the bounded welcome + credit, so at steady state Sigma(balances) = residents x welcome is meant + to be a stable invariant, not unbounded inflation - see the disclosed + limitation below: this is not yet code-enforced against a peer + self-issuing an arbitrary amount. - **Credit limit:** the default per-account credit limit is 0, so a resident cannot transfer below their own issued credit; an over-spend is REJECTED at replay (LedgerState.rejected) and surfaced, never silently applied. This is @@ -107,3 +111,25 @@ misreading, so each is defined on its own below. adjacent data on a shared store, sent on purpose. The passive symptom tally (`healthpost.symptomReport`) and all other personal health inputs stay strictly local; only the explicit referral handoff leaves the device. +- **Unauthenticated `wallet.issue` issuer:** `ledger.ts`'s `isIssuePayload` + accepts any signed entry shaped `{ type: "wallet.issue", account, amount }` + where `amount` is a non-negative finite number - it checks the payload's + shape, not who the signer is relative to `account`. Any peer can sign a + `wallet.issue` crediting their OWN account with an arbitrary amount, the + same way `fairdraw`/`housing` legitimately do; nothing authenticates + "issuer" identity the way `extractQvBallots` authenticates voter identity + against the signing key. So the "only the bounded welcome credit is net + issuance" invariant above is a design intent, not something the code + enforces today. This is disclosed as a known limitation, not fixed, per an + explicit scope decision for this build. +- **Unvalidated Housing `fairnessDebt` on sync:** `housing.ts`'s + `isHousingAssignmentPayload` checks that a `housing.assignment` event's + `fairnessDebt` is a non-null object, but never checks that its values are + finite numbers. A synced event from a malformed or malicious peer could + carry a `fairnessDebt` with a `NaN`, `Infinity`, or non-numeric value for + some resident; `computeFairnessDebtLedger` would fold that value straight + into the rotation ledger and `solveHousingAssignment`'s debt-weighted + objective would carry it into every future cycle. The blast radius is + bounded to the housing fairness rotation (it never touches Commons Credit + or any other circuit), but it is not validated at the replay boundary + today.