docs(economy): disclose wallet.issue and Housing fairnessDebt as known limitations; reconcile the contradicted issuance-invariant claim
This commit is contained in:
1 parent
5c2c97dcb0
commit
208cf76c95
1 file changed
+32
-6
+32
-6
@@ -18,9 +18,11 @@ misreading, so each is defined on its own below.
|
|||||||
- **Issuance (sources), each tied to a real contribution or an explicit,
|
- **Issuance (sources), each tied to a real contribution or an explicit,
|
||||||
bounded grant:**
|
bounded grant:**
|
||||||
- *Welcome credit* (50): a one-time line of credit the commons extends to
|
- *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).
|
every new resident so trade can start on day one (classic LETS seed). By
|
||||||
This is the ONLY deliberate net issuance, it is small and bounded, and it
|
design, this is meant to be the ONLY deliberate net issuance, small and
|
||||||
is disclosed here - not hidden fiat.
|
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,
|
- *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
|
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
|
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).
|
for a service (e.g. a Mentor session, a borrowed tool, help with a task).
|
||||||
This is the wallet's reason to exist.
|
This is the wallet's reason to exist.
|
||||||
- **Conservation:** every transfer is zero-sum (one debit, one matched
|
- **Conservation:** every transfer is zero-sum (one debit, one matched
|
||||||
credit). The only net issuance is the bounded welcome credit, so at steady
|
credit). By design, the only INTENDED net issuance is the bounded welcome
|
||||||
state Sigma(balances) = residents x welcome - a stated, stable invariant,
|
credit, so at steady state Sigma(balances) = residents x welcome is meant
|
||||||
not unbounded inflation.
|
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
|
- **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
|
cannot transfer below their own issued credit; an over-spend is REJECTED at
|
||||||
replay (LedgerState.rejected) and surfaced, never silently applied. This is
|
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
|
adjacent data on a shared store, sent on purpose. The passive symptom tally
|
||||||
(`healthpost.symptomReport`) and all other personal health inputs stay
|
(`healthpost.symptomReport`) and all other personal health inputs stay
|
||||||
strictly local; only the explicit referral handoff leaves the device.
|
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.
|
||||||
Reference in new issue
Block a user