<!-- XE-13762 · DAO harness: pinned governance numerics are never range-checked — a proposal passes with zero 'for' votes, and a fee is refunded on a quorum nobody met · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13762>. The page is the record; this is the same page for reading.*

XE-13762 · Bounty

# DAO harness: pinned governance numerics are never range-checked — a proposal passes with zero 'for' votes, and a fee is refunded on a quorum nobody met

Closed · duplicate
—claimed Minor
web
filed 2026-11-15 04:22 UTC
by Jeri055

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Minor

Area
:   DAO harness

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-15 10:27 UTC

Told
:   2026-11-15 10:27 UTC

### Patches

None linked.

### History

- [258570](https://bounty.xe.network/log/258570) 2026-11-15 10:27 UTC proposal.adopted
- [258569](https://bounty.xe.network/log/258569) 2026-11-15 10:27 UTC reply.sent
- [258568](https://bounty.xe.network/log/258568) 2026-11-15 10:27 UTC ticket.status new → closed
- [257708](https://bounty.xe.network/log/257708) 2026-11-15 10:27 UTC proposal.adopted
- [257707](https://bounty.xe.network/log/257707) 2026-11-15 10:27 UTC ticket.facts
- [257706](https://bounty.xe.network/log/257706) 2026-11-15 10:27 UTC proposal.adopted
- [257705](https://bounty.xe.network/log/257705) 2026-11-15 10:27 UTC ticket.facts
- [257704](https://bounty.xe.network/log/257704) 2026-11-15 10:27 UTC proposal.adopted
- [257703](https://bounty.xe.network/log/257703) 2026-11-15 10:27 UTC ticket.facts area
- [257702](https://bounty.xe.network/log/257702) 2026-11-15 10:27 UTC proposal.adopted
- [257701](https://bounty.xe.network/log/257701) 2026-11-15 10:27 UTC ticket.award
- [256353](https://bounty.xe.network/log/256353) 2026-11-15 10:26 UTC note.added

[Full history](https://bounty.xe.network/log?ref=XE-13762) · [JSON](https://bounty.xe.network/v1/tickets/XE-13762) · [markdown](https://bounty.xe.network/XE-13762.md)

### Report

Summary
pinned\_rules() (dao/dao/config.py:192-207) copies the Schedule B governance numbers into every proposal's pinned rules with no validation of any numeric field. The two fee-action strings from the same function were XE-13153; the numerics are a separate, graver effect: they decide outcomes. A Schedule B value outside its meaningful range silently inverts the decision rules the members believe are in force.

Reproduction (executed against a local Postgres 16 with the real service functions portal.tally / portal.\_close / portal.close\_due / portal.\_open; probe and raw output available on request)

- pass\_mark\_fraction \= 0, votes 1 for / 99 against, quorum met: outcome \= passed (for\_share 0.01 \> 0).
- pass\_mark\_fraction \= -0.5, votes 0 for / 100 against: outcome \= passed (for\_share 0.00 \> -0.5). A proposal with no supporting weight at all is recorded as passed.
- pass\_mark\_fraction \= 1, votes 100 for / 0 against (unanimous): outcome \= failed (1.0 \> 1 is false). No proposal can ever pass.
- quorum\_wallets \= 0 and quorum\_wallets \= -5, proposal with zero votes: closes with quorum\_met \= True, and \_close takes the fee\_on\_quorum path — the filer's fee row went to state 'due\_refund' on a proposal nobody participated in. The no\_quorum outcome exists precisely to route that case to fee\_below\_quorum.
- window\_days \= -1: closes\_at is a day before opened\_at; portal.\_open refuses every vote from birth ('voting is closed') and close\_due closes the proposal on its first pass with 0 votes.
- fee\_micro\_xe \= -5: submit demands a fee\_block\_hash (a negative fee is truthy) and then \_verify\_fee early-returns amount 0 for fee \<\= 0 without ever reading the named block. A non-numeric fee ('abc', a YAML typo) raises ValueError in submit's int(...) and returns 500 on every proposal submission while pinned.

Impact
Governance integrity and fee routing are set by whichever numbers happen to be pinned, with no error anywhere: a 0-for 'pass' can carry ops into a resolution, a unanimous vote can be recorded as failed, and proposal fees leave by the refund path on quorums that were never met. The shipped config (pass mark 0.5, quorum 20, window 21 days) is sane, so this needs a bad pin — a config edit, a template copy, a future Schedule B change — and nothing would ever say so.

Suggested fix direction
Validate the numeric fields where they are pinned (or where the config loads): pass\_mark\_fraction within (0, 1), quorum\_wallets \>\= 1, window\_days \>\= 1, fee\_micro\_xe \>\= 0 and an integer — and refuse to open proposals under a ruleset that fails validation, in the same place XE-13153's fee-action validation belongs.

Novelty note
Same root cause as my XE-13153 (unvalidated pinned\_rules()), filed separately because the effects are new — decision outcomes and fee routing, not fee-state stranding. If triage prefers one config-validation ticket per class, folding this into XE-13153 is fine.

### Thread

**Joseph Denne**team2026-11-15 10:27 UTCdesk

Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the
first verifiable submission, so this one closes as a duplicate. If you believe it is a different
bug, file a new report that links https://bounty.xe.network/XE-13762 and says what differs; it is read like any other.
