Scan your whole stack
Latest version: v0.2.0
io.github.lockoutgate/lockout-mcp was last scanned on 27 Nov 2026 at version 0.2.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.0 LATEST | 27 Nov 2026 | No rules fired |
Findings for v0.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.2.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
lockout is a stock-token account on Robinhood Chain for an owner who lets an AI agent trade. Before a session the owner calls seal() with ten rules, a bell (unlockAt) and a $LOCKOUT bond. Until the bell the rules only tighten, and every buy, the agent's or the owner's own, goes through the same buy() and its 21 gates. The buy that meets the loss limit trades nothing and halts the account; from then until the bell every buy reverts, while the account can still sell: the owner's sells under four checks, the agent's inside the feed band. contracts/ holds the factory, the account and a read-only Lens. mcp/ is lockout-mcp, the MCP server that gives an agent seven tools on one account.
rpc=https://rpc.mainnet.chain.robinhood.com
# the bond floor: $LOCKOUT base units per day sealed
cast call 0xeAD444A07f59C89Fb4454F28854245D5D8E1f456 'minBondPerDay()(uint256)' --rpc-url $rpc
# each listed stock: its feed, its pools, the chain's gates on it now, and whether an agent may buy or sell it
cast call 0xfbCAcd8748a473a4778a43B1bCd2dB3B563daA42 'markets()((address,address,bytes32[],(bool,bool,bool,bool,bool,bool,bool,uint256,uint256),bool,bool)[])' --rpc-url $rpc
Robinhood Chain, chain id 4663, deployed in block 123592326.
| Contract | Address | Source |
|---|---|---|
LockoutFactory |
0xeAD444A07f59C89Fb4454F28854245D5D8E1f456 |
LockoutFactory.sol |
LockoutAccount implementation |
0x451725A29F3Fa20d075CC171991b746d3406A757 |
LockoutAccount.sol |
LockoutLens |
0xfbCAcd8748a473a4778a43B1bCd2dB3B563daA42 |
LockoutLens.sol |
createAccount(agent) clones the implementation (OpenZeppelin Clones) for the caller, who becomes the account's owner, and names the agent key; the agent cannot be the owner. The factory keeps the lists every account reads live: listed stocks, their USDG pools on Uniswap v3, MetaDEX and Uniswap v4, one Chainlink feed per stock, the bond token and its per-day floor. Its usdg, registry, accountImplementation and the three venue addresses are immutable. The account enforces the rules. The Lens only reads: previewBuy and previewSell run the account's own simulateBuy and simulateSell and return the gate that would stop an order, and accountState and markets gather a page's or an agent's reads into one call. Nothing upgrades, and the factory owner has no function that reaches into an account.
seal(rules, unlockAt, bond) opens a session:
function seal(Rules calldata next, uint64 bell, uint256 bond) external locked onlyOwner {
if (sealed_) revert AlreadySealed();
address token = factory.token();
if (token == address(0)) revert TokenNotSet();
if (bell < block.timestamp + MIN_SEAL_DURATION || bell > block.timestamp + MAX_SEAL_DURATION) {
revert BadDuration();
}
if (next.maxDailyLossUsdg == 0 || next.maxPerTradeUsdg == 0 || next.maxOpenCostBasisUsdg == 0) {
revert ZeroLimit();
}
if (next.maxDailyLossUsdg > uint256(type(int256).max)) revert LimitTooLarge();
if (next.maxSlippageBps > MarketChecks.BPS) revert RuleOutOfRange();
uint256 required = factory.minBondPerDay() * Math.ceilDiv(bell - block.timestamp, 1 days);
if (bond < required) revert InsufficientBond(bond, required);
uint256 received = _receive(IERC20(token), bond);
if (received < required) revert InsufficientBond(received, required);
...
}
MIN_SEAL_DURATION (1 hours) and at most MAX_SEAL_DURATION (7 days) away.minBondPerDay × ceil((unlockAt − now) / 1 day) in $LOCKOUT, counted as the balance the account actually received.sessionFeed).setAgent can only clear the agent, never name a new one.The ten rules, and what tighten(rules) accepts while sealed. Anything else reverts with CannotLoosenWhileSealed(), and every accepted call runs the halt check at once.
| Rule | Limits | 0 means | tighten() accepts |
|---|---|---|---|
maxDailyLossUsdg |
realized loss plus the open positions' mark loss, net of realized gains | refused by seal (ZeroLimit()) |
equal or lower |
maxPerTradeUsdg |
USDG spent in one buy | refused (ZeroLimit()) |
equal or lower |
maxOpenCostBasisUsdg |
cost basis of everything held | refused (ZeroLimit()) |
equal or lower |
maxConsecutiveLosses |
losing sells in a row before the halt | off | switched on, or lower; never back to 0 |
maxTradesPerSession |
buys in the session; the last one halts | off | switched on, or lower; never back to 0 |
cooldownSec |
pause on buys after a losing sell | no pause | equal or longer |
maxFeedAgeSec |
oldest feed answer a buy accepts | no limit on owner buys; the agent's is 90,000 s | switched on, or lower; never back to 0 |
maxSlippageBps |
fill against the feed price, at most 10,000 | no band, and the agent cannot trade | equal or lower, never 0 |
requireLiveFeed |
a buy of a stock that has a feed needs that feed live | switched on, never off | |
blockOutsideMintWindow |
buys only from Monday 02:00 to Saturday 02:00 Central European time (MintWindow.isOutside, CET or CEST) |
switched on, never off |
Every buy runs _buy and _buyOrderChecks: 21 gates, the owner's buys and the agent's alike, in this order: 01 to 05, 06 to 19, the swap, then 20 and 21. Gate 13 applies only to the agent key. A failing gate reverts with its error. The numbers are the @gate tags in the source and contracts/gate-lines.json.
| Gate | Stops when | Error | Line |
|---|---|---|---|
| 01 | !sealed_ |
NotSealed() |
345 |
| 02 | now >= unlockAt |
SessionEnded() |
347 |
| 03 | halted \|\| sessionBroken |
AccountHalted() |
348 |
| 04 | trade count reached cap |
AccountHalted() |
350 |
| 05 | MTM loss reached limit or held mark unavailable |
the latch, or MarkUnavailable(address) |
354, 360 |
| 06 | usdgIn == 0 |
ZeroAmount() |
376 |
| 07 | usdgIn > trackedUsdg |
InsufficientTracked() |
377 |
| 08 | !isListed(stock) |
AssetNotListed(address) |
378 |
| 09 | pool.stock != stock |
PoolNotListed(address,bytes32) |
380 |
| 10 | now < cooldownUntil |
CooldownActive(uint64) |
382 |
| 11 | usdgIn > maxPerTradeUsdg |
OverPerTradeCap() |
383 |
| 12 | open cost + usdgIn > maxOpenCostBasisUsdg |
OverOpenCostCap() |
386 |
| 13 | agent without eligible live feed |
AgentNeedsLiveFeed(address) |
390 |
| 14 | stock.paused() |
TokenPaused(address) |
392 |
| 15 | stock.oraclePaused() |
OracleFlagged(address) |
394 |
| 16 | registry.isBlocked(account) |
AccountBlocked() |
396 |
| 17 | mint window required and outside |
OutsideMintWindow() |
398 |
| 18 | required feed missing or stale |
FeedRequiredOrStale(address,uint256) |
400 |
| 19 | no feed && minSharesOut == 0 |
MinOutNotMet() |
402 |
| 20 | sharesOut == 0 \|\| sharesOut < minSharesOut |
MinOutNotMet() |
365 |
| 21 | fill above feed band |
SlippageVsFeedExceeded() |
368 |
Gate 05 has two outcomes. If the effective loss has reached maxDailyLossUsdg, the buy does not revert: it latches the halt and returns with nothing bought (next section). Otherwise, if a held stock's feed cannot be read, the buy reverts with MarkUnavailable(address).
The agent key's buys and sells also need, for that stock (agentEligible): a feed answer no older than maxFeedAgeSec, capped at AGENT_MAX_FEED_AGE (90,000 s, which also stands in for 0); the token's oracle not paused; and maxSlippageBps above 0. So the agent cannot trade a stock that has no feed.
A sell runs _sell: seven gates. The owner's sells meet four of them: an amount, a tracked balance, a listed pool and the owner's own minimum. The agent's meet all seven: a sealed session, a live feed and a fill inside maxSlippageBps of the feed price.
| Gate | Stops when | Error | Line | Owner's sells |
|---|---|---|---|---|
| 01 | sharesIn == 0 |
ZeroAmount() |
424 | yes |
| 02 | sharesIn > trackedShares |
InsufficientTracked() |
425 | yes |
| 03 | pool.stock != stock |
PoolNotListed(address,bytes32) |
427 | yes |
| 04 | agent && !sealed_ |
NotSealed() |
428 | no |
| 05 | agent without eligible live feed or a carried mark is pending |
AgentNeedsLiveFeed(address) |
435 | no |
| 06 | usdgOut < minUsdgOut |
MinOutNotMet() |
440 | yes |
| 07 | agent fill below feed band |
SlippageVsFeedExceeded() |
442 | no |
FIG. 1. One session, from the state changes in LockoutAccount.sol. A diagram of the rules: the spacing is not to scale and it shows no amounts.
The loss check runs inside every buy, ahead of the order's own gates (L352-L357):
address unavailable = _rebasePending();
Mark memory mark = _marks();
if (_effectiveLoss(mark.unrealized) >= rules.maxDailyLossUsdg) {
_halt(REASON_MTM_LOSS, mark.unrealized);
return (0, 0, REASON_MTM_LOSS);
}
_effectiveLoss).halted and emits LockoutTriggered(sessionId, 2, …).AccountHalted(). Nothing clears halted before release().tighten() (_trip). Its reasons: realized loss at the limit (1), effective loss at the limit (2), maxConsecutiveLosses losing sells in a row (3), maxTradesPerSession buys (4). The owner can halt by hand with manualHalt() (5); emergencyWithdraw() halts with 6.tripIfBreached() lets anyone run that check, so a breach left by a price move alone is recorded without waiting for the next trade.After the bell anyone can call release(). The session ends, halted clears, and the bond goes back to the owner in full, whether or not the account halted.
Before the bell the owner's only way out is emergencyWithdraw(token, amount):
if (!sessionBroken) {
uint256 amountToBurn = bondAmount;
bondAmount = 0;
sessionBroken = true;
uint256 supply = IERC20(bondToken).totalSupply();
IBurnable(bondToken).burn(amountToBurn);
uint256 remaining = IERC20(bondToken).totalSupply();
if (remaining > supply || supply - remaining != amountToBurn) revert BurnNotVerified();
emit SessionBrokenAndBurned(sessionId, amountToBurn);
_halt(REASON_EMERGENCY_BROKEN, _marks().unrealized);
}
_withdraw(token, amount);
The first call burns the whole bond with the $LOCKOUT token's own burn and reverts unless the total supply fell by exactly that amount. It marks the session broken and halts with reason 6. Later calls before the bell only move funds to the owner. withdraw and sweep work only outside a session (SessionNotEnded() while sealed); sweep returns tokens that reached the account outside its ledger.
FIG. 2. From the access checks in LockoutAccount.sol and LockoutFactory.sol: solid gold arrows move tokens, thin arrows call, dashed arrows read.
onlyOwner): depositUsdg, seal, tighten, manualHalt, setAgent, buy, sell, emergencyWithdraw, and outside a session withdraw and sweep. The account pays out only to the owner.buy and sell. Every other function reverts with NotOwner(), and tokens never move to the agent.tripIfBreached(), and release() once the bell has passed.Ownable2Step), on the factory only:setToken, once: the bond token. The bond floor's cap becomes a thousandth of its supply at that moment.setMinBondPerDay: at or under that cap. A raise waits 24 hours after the last raise and at most doubles the floor; a cut takes effect at once. It applies to later seals.listAsset, setFeedOnce and listPool: an 18-decimal stock, at most one 8-decimal feed for it, and USDG pools on Uniswap v3, MetaDEX, or Uniswap v4 without hooks or a dynamic fee. Nothing is ever unlisted or replaced.mcp/ is lockout-mcp, an MCP server over stdio that trades one account with its agent key.
Run npx -y lockout-mcp init to create a local agent key and print client setup and a lock page link that fills in the agent address.
claude mcp add lockout -e LOCKOUT_FACTORY=0xeAD444A07f59C89Fb4454F28854245D5D8E1f456 -e LOCKOUT_LENS=0xfbCAcd8748a473a4778a43B1bCd2dB3B563daA42 \
-e LOCKOUT_ACCOUNT=<your account> -e LOCKOUT_AGENT_KEY_FILE=<absolute path of the key file> -- npx -y lockout-mcp Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.