# E7.M4 — ContractMissionGenerator ## Summary | Field | Value | |--------|--------| | **Module ID** | E7.M4 | | **Epic** | [Epic 7 — Quest / Faction](../epics/epic_07_quest_faction.md) | | **Stage target** | Pre-production | | **Status** | Planned (see [dependency register](module_dependency_register.md)) | ## Purpose Semi-procedural repeatable contracts from templates, keyed by zone difficulty ([E4.M1](E4_M1_ZoneGraphAndTravelRules.md)), encounter templates ([E5.M3](E5_M3_EncounterAndRewardTables.md)), and faction state ([E7.M3](E7_M3_FactionReputationLedger.md)). ## Responsibilities - Emit validated `ContractTemplate` instances from `ContractSeed`; record `ContractOutcome`. ## Key contracts | Contract | Role | |----------|------| | `ContractTemplate` | Parameterized mission skeleton. | | `ContractSeed` | RNG or daily seed inputs. | | `ContractOutcome` | Completion and reward linkage. | ## Module dependencies - **E4.M1** — ZoneGraphAndTravelRules. - **E5.M3** — EncounterAndRewardTables. - **E7.M3** — FactionReputationLedger. ## Dependents (by design) - Live ops and content pipelines; validate against economy/parity rules per epic. ## Related implementation slices Epic 7 **Slice 4** — `contract_issued`, `contract_complete`, reward anomalies. ## Source anchors - Master plan: [`neon_sprawl_vision.plan.md`](../../../neon_sprawl_vision.plan.md) — Epic 7. - [Module dependency register](module_dependency_register.md)