1.2 KiB
1.2 KiB
Sell/Reentry Algorithm Contract
Decision Context
- PortfolioId, AccountId, LotId, CycleId
- AssetPolicyId, IPSVersion
- AsOf, PublishedAtCutoff, TradableSession
- EvidenceId, DatasetId, ModelVersion, ConfigVersion, CodeSha
- CurrentLotQuantity, CurrentPortfolioWeight, StrategicCoreFloorWeight
- Peak/Floor/Breach/Cooldown
- Hard impairment evidence grade and approval
- Risk reduction requirement, concentration excess, liquidity capacity
- Expected utility component distribution and confidence lower bound
Decision Output
- Action: HOLD/PARTIAL_SELL/FULL_SELL
- PolicyId/Priority/ReasonCode
- SellRatioOfLot
- ProposedQuantity
- TargetPortfolioWeightAfter
- ReentryEligibility
- CounterEvidence
- ValidUntil/NextReviewSession
- DecisionHash
Invariants
- Hard impairment cannot be overridden.
- Proposed quantity cannot exceed lot quantity.
- Strategic core floor cannot be breached unless an approved higher-priority policy allows it.
- Same input and Version Set produce the same decision hash.
- A decision without immutable Evidence cannot be stored.
- A reentry stage executes at most once.
- Reentry creates a new CycleId.
- Hard impairment cannot create an automatic ReentryWatch.