Intent-Code Divergence
High
- Confidence
- 97% confidence
- Finding
- The black-swan handler says a 3% index drop should reduce exposure by half, but it calls order_shares(_context["position"], half). Elsewhere in this strategy, order_shares(etf, 0) is used to set an absolute target position, which strongly suggests this call targets a final holding of 'half' shares rather than selling half; if the current position is already below 'half' or the API uses delta semantics differently, the behavior can be wrong and may even increase exposure during a market drawdown. In a live trading strategy, incorrect risk-control logic is a real security/safety issue because it can directly cause unintended trades and magnify losses during stressed conditions.
