From 081b0fc99157b3204d70d4a8f51264e6b02f28c6 Mon Sep 17 00:00:00 2001 From: Heimdall Date: Thu, 5 Nov 2026 19:29:51 +0000 Subject: [PATCH] Estate-rule sim: review fixes for the purchased-stake arm Docstrings state weight is per identity, not sybil-safe, hours unanalysed; placeholder parameters marked in code; unit x roll sweep with interval; identity-cost thresholds by bisection (about half the budget, not the doubling-grid 51-82%); headline numbers pinned in a test; 'log bounds' test renamed. Co-Authored-By: Claude Sonnet 5.5 --- .../2026-11-05-estate-rule-sim/REPORT.md | 11 ++- .../2026-11-05-estate-rule-sim/estatesim.py | 70 ++++++++++++++----- .../2026-11-05-estate-rule-sim/results.md | 16 ++++- .../2026-11-05-estate-rule-sim/run.py | 21 ++++-- .../test_estatesim.py | 19 ++++- 5 files changed, 108 insertions(+), 29 deletions(-) diff --git a/docs/research/2026-11-05-estate-rule-sim/REPORT.md b/docs/research/2026-11-05-estate-rule-sim/REPORT.md index ab5269e..a5f9440 100644 --- a/docs/research/2026-11-05-estate-rule-sim/REPORT.md +++ b/docs/research/2026-11-05-estate-rule-sim/REPORT.md @@ -45,12 +45,12 @@ Static weight analysis, not a motion simulation: it measures weight share, not P **The working hypothesis, that logarithmic weight bounds buyout power, is only half true here, and the true half is not the log's doing.** -- **Within the estate the log does not bound a million-euro buyer.** Against the harness's 4-patron roll (Pareto(1.16) donations from 10 EUR, 40 seeds) the buyer holds 0.524 +/- 0.008 of Patrons weight and alone decides the Patrons estate (share above one half) in 85% of seeds. The log shrinks the buyer from 100% (linear weight) to about half; it does not take it below a majority of a 4-person estate. At rolls of 40 and 400 the share falls (binding rates below). +- **Within the estate the log does not bound a million-euro buyer.** Against the harness's 4-patron roll (Pareto(1.16) donations from 10 EUR, 40 seeds) the buyer holds 0.524 +/- 0.008 of Patrons weight and alone decides the Patrons estate (share above one half) in 85% of seeds. The log shrinks the buyer from 100% (linear weight) to about half; it does not take it below a majority of a 4-person estate. This is the harness's own cell (roll 4, unit 10 EUR, b = 10), not a typical one. Swept over unit {1, 10, 100} EUR and roll {4, 40, 400} (40 seeds each, table in results.md) the buyer's mean share of Patrons weight runs from 0.007 to 0.953, and the buyer alone decides the estate in 0 to 100% of seeds depending on the cell (0.85 at the headline cell, 0.65 at roll 40 with unit 100, 1.00 at roll 4 with unit 100, 0.00 in the other six). The roll size, Pareto scale and unit are placeholders; the interval, not the point, is the finding. The weight is per identity, so all of this assumes one identity per buyer (next bullet). - **At council level the bound comes from the estate weights.** With all four estates live the buyer's council share is 0.131 (equal weights) or 0.052 (minds-heavy), below the Patrons weight W_Patrons by construction; the half-influence cap never binds in 6,480 cell-seeds. Linear weight would give 0.25 and 0.10: the log halves the buyer's share, the estate structure sets its ceiling. - **The half-influence cap binds only when other estates are silent.** Fraction of (cell, seed) in which council share x >= .5 over 162 cells (b x unit x roll x amount x weights) x 40 seeds: all four live 0.000; Patrons + Minds live 0.044 (all of it the degenerate case where no other patron clears the unit, so there is nothing to cut against: unenforceable); Patrons alone live 0.222 (0.148 of cells bind in every seed, 0.089 of cell-seeds unenforceable). It binds more at small rolls (Patrons alone: 0.669 at roll 4 and b = 2 down to 0.000 at roll 400) and with a smaller log base. The Patrons-alone scenario is the renormalization case of prior section 10 (drop non-voting estates); how likely it is in practice is not a sim output. - **Splitting wins, by orders of magnitude.** The same 1,000,000 EUR over k identities multiplies weight by 1.9 (k = 2), 8.3 (k = 10), 66.7 (k = 100), 500 (k = 1000), and 16,667 at k = amount/unit = 100,000 (each fake identity buying exactly the unit). The multiplier is (amount/unit) / (1 + log_b(amount/unit)); for b = 10, unit = 10 it is 250 at 10,000 EUR, 2,000 at 100,000 EUR. With k = 10 fake identities the buyer's Patrons-alone share is 0.901, with k = 2 it is 0.676. This refutes the log as a purchase bound unless identities are scarce. - **The half-influence cap is per identity and splitting evades it.** In the Patrons-alone case the single identity trips the cap in 85% of seeds; at k = 2 no identity does (each holds 0.34) while the joint share is 0.676, in every seed. A cap on a person's influence needs an identity oracle the harness does not have. -- **SPEC names no sybil defence** (the charter's frozen roll, A6, bounds joins after notice, not pre-notice buying of identities), so none is implemented as policy. Three candidates are quantified in results.md and none is chosen: a per-person weight cap does not help (it caps the honest single purchase and the fakes are each below it; 100,000x at cap 1); a raised unit floor reduces the multiplier (250 at 1,000 EUR, 5 at 100,000 EUR, 1.0 only at 1,000,000 EUR, where no purchase under the buyer's amount buys any weight), so it neutralises splitting only by pricing out everyone smaller; a per-identity cost neutralises only at about half or more of the budget (51% to 82% on the doubling grid across 10,000 to 1,000,000 EUR), so it would also tax the honest buyer's single identity at that rate. The choice between pricing identities, verifying people or bounding total weight per verified person is a design fork left for the operator. Nothing here rules it. +- **SPEC names no sybil defence** (the charter's frozen roll, A6, bounds joins after notice, not pre-notice buying of identities), so none is implemented as policy. Three candidates are quantified in results.md and none is chosen: a per-person weight cap does not help (it caps the honest single purchase and the fakes are each below it; 100,000x at cap 1); a raised unit floor reduces the multiplier (250 at 1,000 EUR, 5 at 100,000 EUR, 1.0 only at 1,000,000 EUR, where no purchase under the buyer's amount buys any weight), so it neutralises splitting only by pricing out everyone smaller; a per-identity cost neutralises only at about half the budget (bisection values 49.3%, 49.8%, 49.95% of 10,000, 100,000, 1,000,000 EUR; the threshold is c = amount/2, where a second identity is left with nothing to buy), so it would also tax the honest buyer's single identity at that rate. The choice between pricing identities, verifying people or bounding total weight per verified person is a design fork left for the operator. Nothing here rules it. Limits specific to E6: the roll, the Pareto scale, b and unit are assumptions; the buyer joins as an additional patron and buys once (no repeated purchase or liquidation); decisiveness is estate-level only, not council-level (prior section 10 shows weight share is not decisiveness); the best split is a grid maximum, a lower bound; hours play no part in a purchase scenario because estate weights are fixed and the buyer sits in Patrons, so an hours buyer (a Member who is paid or who farms hours) is untested and the conversion of hours into weight is just a per-estate parameter whose gaming is not modeled. @@ -73,3 +73,10 @@ The sign of the PS effect holds across Users appeal 0.4/0.9/1.4, Users turnout . - Cap basis default is the estate's cast weight, not roll; both are swept. - E3f: the falsifier was first printed as means only; the paired interval was added to `run.py` before the final run (no number changed). Its materiality bar (-.01) is mine. - Per-category PS tables are printed only for the non-grid experiments (E1, E2, E4, E5). + +## Limits of E6 added after independent review + +- Weight in `log_weight`, `stake_weight` and `influence_cap` is per identity. Nothing in the module is sybil-safe; the half-influence cap bounds a ledger entry, not a person. +- The hours channel is unanalysed: no scenario gives a buyer hours, so whether hours can be farmed, bought or split is untested. +- Placeholder parameters (marked PLACEHOLDER in `estatesim.py`): b, unit (euros and hours), the Patron roll sizes, the Pareto scale. Ruled: the half cap. From prior section 4: the Pareto exponent. +- The headline figures (0.524, 0.85, split 1.9x/8.3x/66.7x) are pinned in `test_headline_numbers_are_pinned`. diff --git a/docs/research/2026-11-05-estate-rule-sim/estatesim.py b/docs/research/2026-11-05-estate-rule-sim/estatesim.py index 8cee858..63acf4d 100644 --- a/docs/research/2026-11-05-estate-rule-sim/estatesim.py +++ b/docs/research/2026-11-05-estate-rule-sim/estatesim.py @@ -445,17 +445,19 @@ def verdict(dps, dmt): # set of live estates come from the same tables the rules above use. STAKE_KEYS = ("euro_b", "euro_unit", "hours_b", "hours_unit") -# Per-estate conversion of stake to weight. Assumptions, stated in SPEC section 5c. -# Only Patrons (euros) and Members (contribution hours) carry stake; Minds are +# PLACEHOLDER: every number in STAKE_BASE, HALF excepted, is my assumption (SPEC section 5c), not a ruling +# or data. Results are conditional on them; run.py sweeps b and unit, not hours. +# Per-estate conversion of stake to weight. Only Patrons (euros) and Members (contribution hours) carry stake; Minds are # counted once and Users are one-each, so they have no entry and weigh 1. STAKE_BASE = { "Patrons": dict(euro_b=10.0, euro_unit=10.0, hours_b=10.0, hours_unit=10.0), "Members": dict(euro_b=10.0, euro_unit=10.0, hours_b=10.0, hours_unit=10.0), } -HALF = .5 # operator-influence cap: council weight share strictly below this (prior section 10) +HALF = .5 # RULED, not a placeholder: operator-influence cap: council weight share strictly below this (prior section 10) STRICT = 1e-9 # "strictly below": a capped holder sits at c*(1-STRICT) -PARETO_ALPHA = 1.16 # prior section 4: Pareto(1.16) contribution ladder -PARETO_XM = 10.0 # EUR; smallest ordinary Patron donation +PARETO_ALPHA = 1.16 # exponent from prior section 4 (Pareto(1.16) ladder); the roll sizes below are PLACEHOLDER +PARETO_XM = 10.0 # PLACEHOLDER: EUR scale, mine; prior section 4's ladder starts at 10 +STAKE_SEED = 20261105 def stake_params(name, overrides=()): @@ -469,14 +471,22 @@ def stake_params(name, overrides=()): def log_weight(x, b, unit): - """w = 1 + log_b(x/unit): 1 at x = unit, 0 (not negative) below unit.""" + """w = 1 + log_b(x/unit): 1 at x = unit, 0 (not negative) below unit. + + This is the weight of ONE IDENTITY. It is not sybil-safe: log is sub-linear, so the same x split over + k identities weighs more (split_weight). Whether the log bounds a purchase depends on identities being + scarce, which nothing in this module supplies. b and unit are PLACEHOLDER values (STAKE_BASE).""" if b <= 1 or unit <= 0: raise ValueError("log base must exceed 1 and unit must be positive") return 0.0 if x < unit else 1.0 + math.log(x / unit, b) def stake_weight(name, euros=0.0, hours=0.0, overrides=()): - """One member's weight: euro channel plus contribution-hours channel, each with the estate's own (b, unit).""" + """One identity's weight: euro channel plus contribution-hours channel, each with the estate's own (b, unit). + + Per identity, not per person: splitting evades it (see log_weight). The hours channel is UNANALYSED: + it is added here, but no scenario in run.py gives a buyer hours, so nothing below tests whether hours + can be farmed, bought or split. Its (b, unit) are PLACEHOLDER.""" p = stake_params(name, overrides) if not p: return 1.0 @@ -499,7 +509,10 @@ def council_share(w, rest, W, e, live): def influence_cap(w, rest, W, e, live, c=HALF): """Operator-influence cap (prior section 10, ruling operator-influence-below-half): a holder's council weight share must be strictly below c. Binds iff x >= c; the holder's internal weight is - then cut until x = c*(1-STRICT). Unenforceable when nobody else holds weight in the estate.""" + then cut until x = c*(1-STRICT). Unenforceable when nobody else holds weight in the estate. + + The cap is applied to ONE IDENTITY's weight w. A holder who splits across identities is never cut + (cap evasion, results.md), so this is a bound on a ledger entry, not on a person.""" s, x = council_share(w, rest, W, e, live) out = dict(s=s, x=x, binds=x >= c - EPS, w_capped=w, s_capped=s, x_capped=x, enforceable=True) if not out["binds"]: @@ -534,14 +547,33 @@ def best_split(amount, b, unit, identity_cost=0.0, person_cap=None): return best[0], -best[1] -def min_neutralising_cost(amount, b, unit, person_cap=None): - """Smallest per-identity cost on a doubling grid (from unit) at which no split beats one identity, - or None. Neutral = best split is k = 1 and one identity still has weight.""" - c = unit - while c < amount: - w1 = split_weight(amount, 1, b, unit, c, person_cap)[0] - tot, k = best_split(amount, b, unit, c, person_cap) - if w1 > 0 and k == 1: - return c - c *= 2 - return None +def min_neutralising_cost(amount, b, unit, person_cap=None, tol=1e-3): + """Smallest per-identity cost at which no split beats one identity, found by bisection to relative + tol (a bisection value, not a grid point). Neutral = best split is k = 1 and one identity still has + weight. A doubling search from unit brackets the first neutral cost; assumes the predicate is + monotone inside the bracket. Returns None if no cost below the amount is neutral.""" + def neutral(c): + return (split_weight(amount, 1, b, unit, c, person_cap)[0] > 0 + and best_split(amount, b, unit, c, person_cap)[1] == 1) + hi = unit + while hi < amount and not neutral(hi): + hi *= 2 + if hi >= amount: + return None + lo = hi / 2 if hi > unit else 0.0 + while hi - lo > tol * hi: + mid = (lo + hi) / 2 + lo, hi = (lo, mid) if neutral(mid) else (mid, hi) + return hi + + +def stake_ladder(n, s): + """Seed s's roll of n ordinary patrons: a pure function of (n, s).""" + return pareto_ladder(n, random.Random(STAKE_SEED + 1000 * n + s)) + + +def buyer_runs(amount, n, seeds, W, live, overrides=()): + """influence_cap result for a buyer of `amount` EUR against each of `seeds` rolls of n ordinary patrons.""" + wb = stake_weight("Patrons", euros=amount, overrides=overrides) + return [influence_cap(wb, sum(stake_weight("Patrons", euros=x, overrides=overrides) for x in stake_ladder(n, s)), + W, ESTATES.index("Patrons"), live) for s in range(seeds)] diff --git a/docs/research/2026-11-05-estate-rule-sim/results.md b/docs/research/2026-11-05-estate-rule-sim/results.md index 7f9d59e..99fcf43 100644 --- a/docs/research/2026-11-05-estate-rule-sim/results.md +++ b/docs/research/2026-11-05-estate-rule-sim/results.md @@ -806,6 +806,16 @@ Static weight analysis (no motions are simulated, so no PS or MT): a buyer joins | minds-heavy | Patrons + Minds | 0.524 ±0.008 | 0.105 ±0.002 | 0.200 ±0.000 | 0.00 | 0.00 | 0.85 | | minds-heavy | Patrons alone | 0.524 ±0.008 | 0.524 ±0.008 | 1.000 ±0.000 | 0.85 | 1.00 | 0.85 | +**Million-euro buyer's share of Patrons weight, b = 10, by unit and roll (mean over seeds, 95% interval; share of seeds in which the buyer alone decides the estate)** + +| unit EUR | roll 4 | roll 40 | roll 400 | +|---|---|---|---| +| 1 | 0.425 ±0.005 (0.00) | 0.069 ±0.000 (0.00) | 0.007 ±0.000 (0.00) | +| 10 | 0.524 ±0.008 (0.85) | 0.098 ±0.001 (0.00) | 0.011 ±0.000 (0.00) | +| 100 | 0.953 ±0.028 (1.00) | 0.579 ±0.040 (0.65) | 0.118 ±0.004 (0.00) | + +Interval over the swept cells: s from 0.007 to 0.953. The 0.524 headline is the harness's own cell (roll 4, unit 10), not a typical one: the buyer's majority of the estate depends on how few other patrons there are. + **Cap-binding rate over the sweep (b, unit, roll, amount, weights x live set; every cell run on every seed)** | live estates | cells | cells x seeds | binding (cell, seed) | cells binding in every seed | cells never binding | binding but unenforceable | @@ -850,9 +860,9 @@ Best multiplier at 1,000,000 EUR by log base and unit (b rows, unit columns): | unit floor | 100000 EUR | 5.0 | no | | unit floor | 500000 EUR | 1.5 | no | | unit floor | 1e+06 EUR | 1.0 | yes | -| identity cost | smallest on a doubling grid, amount 10000 EUR | | yes at 5120 EUR per identity (51% of the budget) | -| identity cost | smallest on a doubling grid, amount 100000 EUR | | yes at 81920 EUR per identity (82% of the budget) | -| identity cost | smallest on a doubling grid, amount 1e+06 EUR | | yes at 655360 EUR per identity (66% of the budget) | +| identity cost | smallest cost by bisection, amount 10000 EUR | | yes at 4930 EUR per identity (49.3% of the budget, bisection to 0.1%) | +| identity cost | smallest cost by bisection, amount 100000 EUR | | yes at 49800 EUR per identity (49.8% of the budget, bisection to 0.1%) | +| identity cost | smallest cost by bisection, amount 1e+06 EUR | | yes at 499520 EUR per identity (50.0% of the budget, bisection to 0.1%) | **Cap evasion: the cap is per identity. Patrons alone, equal weights, roll 4, defaults, 1,000,000 EUR over k identities** diff --git a/docs/research/2026-11-05-estate-rule-sim/run.py b/docs/research/2026-11-05-estate-rule-sim/run.py index 527a454..d20efd8 100644 --- a/docs/research/2026-11-05-estate-rule-sim/run.py +++ b/docs/research/2026-11-05-estate-rule-sim/run.py @@ -210,7 +210,6 @@ def copy_reading(cells, res): return L + [""] -STAKE_SEED = 20261105 PATRONS = E.ESTATES.index("Patrons") LIVE = {"all four estates": (0, 1, 2, 3), "Patrons + Minds": (0, PATRONS), "Patrons alone": (PATRONS,)} @@ -232,7 +231,7 @@ def stake_section(quick): f"{seeds} seeds each. Weight w = 1 + log_b(amount/unit), 0 below unit; defaults b = {E.STAKE_BASE['Patrons']['euro_b']:.0f}, " f"unit = {E.STAKE_BASE['Patrons']['euro_unit']:.0f} EUR. Share s is the buyer's share of Patrons weight; x is its share of council weight " "(estate weight W x s over the live estates' weights); the cap binds iff x >= .5.", ""] - ladders = {(n, s): E.pareto_ladder(n, random.Random(STAKE_SEED + 1000 * n + s)) for n in rolls for s in range(seeds)} + ladders = {(n, s): E.stake_ladder(n, s) for n in rolls for s in range(seeds)} # headline: the million-euro buyer, defaults, roll of the harness n0 = E.ROLL["Patrons"] L += ["**Million-euro buyer, defaults, Patrons roll " + str(n0) + " (mean over seeds, 95% interval); linear = weight proportional to amount, the counterfactual the log is meant to beat**", "", @@ -251,6 +250,20 @@ def stake_section(quick): fr = [sum(r[k] for r in rows) / seeds for k in (3, 4, 5)] L.append(f"| {wn} | {ln} | {f(*m[0])} | {f(*m[1])} | {f(*m[2])} | {fr[0]:.2f} | {fr[1]:.2f} | {fr[2]:.2f} |") L.append("") + # the headline share is one (unit, roll) cell: sweep both, state the interval + L += ["**Million-euro buyer's share of Patrons weight, b = 10, by unit and roll (mean over seeds, 95% interval; share of seeds in which the buyer alone decides the estate)**", "", + "| unit EUR | " + " | ".join(f"roll {n}" for n in rolls) + " |", "|---|" + "---|" * len(rolls)] + cells = [] + for u in units: + cols = [] + for n in rolls: + r = E.buyer_runs(EUR, n, seeds, E.WEIGHTS["equal"], (PATRONS,), (("Patrons", "euro_b", 10.0), ("Patrons", "euro_unit", u))) + m = E.mean_ci([x["s"] for x in r]) + cells.append(m[0]) + cols.append(f"{f(*m)} ({sum(x['s'] > .5 for x in r) / seeds:.2f})") + L.append(f"| {u:g} | " + " | ".join(cols) + " |") + L += ["", f"Interval over the swept cells: s from {min(cells):.3f} to {max(cells):.3f}. The 0.524 headline is the harness's own cell (roll {n0}, unit 10), " + "not a typical one: the buyer's majority of the estate depends on how few other patrons there are.", ""] # cap-binding rate across the whole sweep tally = {} for wn, W in E.WEIGHTS.items(): @@ -317,8 +330,8 @@ def stake_section(quick): L.append(f"| unit floor | {uf:g} EUR | {bt / s1:.1f} | {'yes' if bk == 1 else 'no'} |") for a in amounts: mc = E.min_neutralising_cost(a, b0, u0) - L.append(f"| identity cost | smallest on a doubling grid, amount {a:g} EUR | | " - + (f"yes at {mc:g} EUR per identity ({mc / a:.0%} of the budget)" if mc else "no cost below the amount") + " |") + L.append(f"| identity cost | smallest cost by bisection, amount {a:g} EUR | | " + + (f"yes at {mc:.0f} EUR per identity ({mc / a:.1%} of the budget, bisection to 0.1%)" if mc else "no cost below the amount") + " |") # cap evasion by splitting, Patrons alone L += ["", "**Cap evasion: the cap is per identity. Patrons alone, equal weights, roll " + str(n0) + ", defaults, 1,000,000 EUR over k identities**", "", "| k | joint share x | share of one identity | cap binds on an identity | joint x >= .5 (evaded) |", "|---|---|---|---|---|"] diff --git a/docs/research/2026-11-05-estate-rule-sim/test_estatesim.py b/docs/research/2026-11-05-estate-rule-sim/test_estatesim.py index 6b00613..5af6dce 100644 --- a/docs/research/2026-11-05-estate-rule-sim/test_estatesim.py +++ b/docs/research/2026-11-05-estate-rule-sim/test_estatesim.py @@ -337,7 +337,7 @@ class StakeTests(unittest.TestCase): self.assertLess(r["x_capped"], E.HALF) self.assertAlmostEqual(r["x_capped"], E.HALF, places=6) - def test_log_bounds_buyout_relative_to_linear(self): + def test_log_weight_gives_a_smaller_share_than_linear_but_still_a_near_total_one_in_a_tiny_estate(self): c = self.cfg() rest_amounts = [10.0, 50.0, 200.0, 5000.0] W = E.WEIGHTS["equal"] @@ -382,6 +382,23 @@ class StakeTests(unittest.TestCase): self.assertEqual(E.best_split(a, b, u, identity_cost=cost)[1], 1) self.assertGreater(E.best_split(a, b, u, identity_cost=cost / 2)[1], 1) self.assertGreater(cost, a / 4) + self.assertAlmostEqual(cost / a, .5, delta=.01) # bisection value: just under half the budget + self.assertLess(cost, a / 2 + 1e-9) + + def test_headline_numbers_are_pinned(self): + """The figures REPORT.md quotes, under the placeholder defaults and the fixed seeds (40, STAKE_SEED).""" + W = E.WEIGHTS["equal"] + r = E.buyer_runs(1e6, E.ROLL["Patrons"], 40, W, (self.P,)) + m, hw = E.mean_ci([x["s"] for x in r]) + self.assertEqual(round(m, 3), .524) + self.assertEqual(round(hw, 3), .008) + self.assertEqual(sum(x["s"] > .5 for x in r) / 40, .85) + c = self.cfg() + w1 = E.log_weight(1e6, c["euro_b"], c["euro_unit"]) + for k, want in ((2, 1.9), (10, 8.3), (100, 66.7)): + self.assertEqual(round(E.split_weight(1e6, k, c["euro_b"], c["euro_unit"])[0] / w1, 1), want) + for n in (40, 400): # the headline is a small-roll fact + self.assertLess(max(x["s"] for x in E.buyer_runs(1e6, n, 40, W, (self.P,))), .5) def test_per_identity_cap_is_evaded_by_splitting(self): c = self.cfg()