Hi, first time poster here but I am interested in this idea.
First I would like to mention the APT tool which comes with 1.5. It allows for preprocessing of source code marked with annotations. Instead of some custom security manager at runtime, I would think this would possibly allow for code violations to be checked at compile time.
I am curious as to if you think there should be a cost to actual instructions. I'm new to this but it seems to be fair that each agent should get equal cpu time slices. I'm not sure how this is done accurately. Consider though that each function that the game arena calls on the agent has a predetermined cost or energy usage which is determined at compile time using the APT. This way a fine tuning database could be constructed which will have different cost values for different library calls. Math.trig calls might cost 4 points, + - / * might be worth 1 point, any paranthesis might be a point. A recursive call might be 10 points.