{"item":"stable-refusal-halt","commit":"ff1c192b3798542997f600091f2dc73ff05e4c40","forge":"forge 1.8.3 (older than 1.9: per the brief no forge run; every answer below is reasoned from the code at the commit, no test ran)","verdict":"holds",
"findings":[],
"claims":[
{"id":"C1","result":"holds","evidence":"Code read: _pull (src/peg/StableModule.sol:763) has exactly 3 callers: redeem pre-pricing pull :248 (only if yieldBps!=0), FROZEN payout :284 (`if (!_pull(l,out,to)) revert VaultStuck();` rolls back the halt), rebalance withdraw :358 (`return 0`). Writers of `halted=true`: _report :845 (called from poke :310, close :377, reportLoss :409, abandonVault :427, _pull :787) and the relisting _addLeg :907 only; cleared only by REOPEN apply :999. No caller in src/ or script/. Not tested (forge 1.8.3)."},
{"id":"C2","result":"holds","evidence":"redeem returns 0 at :262 / :274 before usd.safeTransferFrom :276 and before any stable transfer, so no imdUSD taken and no stable sent to the caller (a short-paying vault's partial payment lands in the module's idle, internal). rebalance :358 returns 0 after the pull only. grep of src/ and script/ finds no contract calling StableModule.redeem or rebalance (the .redeem( hits are ERC4626 calls in Join, CompoundHook, PegPositionZap, Allocator, StockJoin), so none treats 0 as a fill. Not tested."},
{"id":"C3","result":"holds","evidence":"_pull's failure branch :784-787 sets l.yieldBps=0, _clear(SET_YIELD|i), emits YieldSet, then _report(i,l,0) which _clear(REOPEN|i) :843 and sets halted. _exitState :727 and redeem :248 stop calling the vault once yieldBps==0. Not tested."},
{"id":"C4","result":"not-checked","evidence":"[fork]/[data] NOT RUN (no fork run; no forge 1.9). From README:651-653 at the commit: 'sUSDS has none of these.' and README:656-659 'A listed stable must accept that probe while not paused (USDC, USDS, USDG do).' Unverified on chain by this worker. ERC4626Adapter.withdraw (src/peg/ERC4626Adapter.sol) calls vault.withdraw directly with no lock of its own."},
{"id":"C5","result":"holds","evidence":"Proposed invariant (not run): for every leg i and every state transition T, halted_after(i) && !halted_before(i) implies one of: (a) T is close/reportLoss/abandonVault by the Safe, (b) T is poke and readable idle+vault < minted after T, (c) T is relisting _addLeg, (d) inside T some adapter.withdraw(a,to) call made with gasleft >= PULL_GAS either reverted or credited `to` < a while stable.transfer(module,0) succeeded; and halted_before && !halted_after implies T is REOPEN apply with _settle()==0. Plus: after any T where (d) fired, yieldBps==0 and no pending SET_YIELD/REOPEN for i. An invariant handler over redeem/rebalance/poke/applyPending/governor acts with a mock vault (honest, refusing, short-paying, gas-burning) and a pausable stable would cover every writer listed in C1."}
],
"holds":[
{"property":"P1","tried":"Code review only (forge 1.8.3, no test run): every _pull failure path writes cut+drop+halt; redeem's refusal path never reverts for size (:261-262) or price/slippage (:272-273) once `refused`; rebalance returns 0; the only reverting caller is the FROZEN payout (known README:674). Halt can be undone if the caller's own later step reverts (transferFrom of imdUSD, stable transfer to a blocklisted `to`), which is the caller's choice; anyone can make it stand via rebalance :358 or a redeem that returns 0."},
{"property":"P2","tried":"Code review only: issuer pause -> probe t.safeTransfer(this,0) :776 reverts (no write); 0-amount: redeem pulls only if need>0 (upper>idle), rebalance reverts NothingToDo on wd==0; starved gas -> PullGas :774. Observation (untested, info): poke :310 halts on any readable idle+vault<minted, so a vault whose read DIPS for one block would be halted and a loss reported by anyone's poke; for the day-1 sUSDS (chi non-decreasing) this is not reachable, and rebalance's WouldShort :363 blocks rounding-made shortfalls. Not tested."}
],
"notRun":["All Foundry tests: forge 1.8.3 installed, brief requires 1.9+ with --use solar","C4 fork checks (sUSDS lock/hold, USDC/USDS/USDG 0-amount self-transfer)"]}
