codegen.mdc
1 --- 2 description: strategy, framework and tests codegen 3 alwaysApply: false 4 --- 5 Always use the actual state or value from the relevant object, not a default or global value, when handling existing entities. 6 If an action’s precondition (like minimum size) is not met but an entity is still active, perform the appropriate cleanup (e.g., close the position) instead of skipping the action. 7 Don't write temporary tests files to check if the code you applied works, running the julia repl to check small modifications it too slow, instead simply review the code for potential bugs and discrepancies. 8 Remember to check that the types and functions that you use are available in the current environment.