meta:
  has_code_implementation: true
  code_path:
  - spec\anti_late_entry_contract.yaml
schema_version: anti_late_entry_contract.v2
goal: Define rules to block late chasing of leading stocks and prevent buying in distribution
  phases.
metrics:
- id: breakout_quality
  description: 20D high status and volume acceleration at breakout
- id: flow_acceleration
  description: Foreign/Institutional net buying acceleration indicator
- id: distribution_risk
  description: Risk score reflecting high-volume churn without price progression
- id: entry_timing_decile
  description: Decile rank of entry timing relative to recent price progression
rules:
- id: RULE_OVERHEATED_BLOCK_BUY
  condition: entry_timing_decile >= 8 (Overheated zone)
  action: BLOCK new buys until a pullback trigger is confirmed
- id: RULE_DISTRIBUTION_DOWNGRADE
  condition: distribution_risk is HIGH
  action: Downgrade BUY to HOLD/WAIT
- id: RULE_LATE_CHASE_ATTRIBUTION
  condition: T+5/T+20 operational outcomes are updated to attribute entry quality
  action: Update attribution metrics
