beamer-bridge / beamer

Beamer - Bridging rollups with L1 inherited security
https://beamerbridge.com
MIT License
45 stars 21 forks source link

Passive Mode Agent #2012

Open fredo opened 1 year ago

fredo commented 1 year ago

Cerated out of #1757

Recent events have shown that the agent needs to be able to run in a safe mode where it maintains the current position but does not engage in new positions. The main reason for it is, that the agent is required to have a certain amount of ETH to function properly. But currently the agent is designed to only spend ETH, eventually depleting its ETH funds.

With the minimum source balance, an LP could already mitigate entering new positions but I consider this more of a hack.

Passive Mode

I see the spec of the passive mode as follows:

Also, add documentation for some scenarios e.g. agent just wants to shut down the agent for a certain time or wants to exit the system etc.

istankovic commented 1 year ago

Agent should not enter new challenges

This is just for other agents' claims, right?

I think it would be helpful to be more specific here. I can think of at least these situations (feel free to add more!):

Please check those cases where you think a passive-mode agent should take action.

istankovic commented 1 year ago

Should ignore the whitelist check

What does this mean?

fredo commented 1 year ago

next turn of a challenge game in which the agent does not participate

Nothing happens here even in the normal mode

fredo commented 1 year ago

Should ignore the whitelist check

What does this mean?

The Agent should not crash if he is not whitelisted

fredo commented 1 year ago

I don't think that it makes a lot of sense to list all possible situations, rather I'd like to extend on the invariants. The goal of this mode is to successfully exit the system. In a bit more detail this means that the agent has no stake/tokens whatsoever in the contracts anymore. In order to achieve this state, the agent should not enter new positions.

If you are uncertain with a specific case, please look at the above statements and see if they answer your case. If not we should extend the list of invariants.