2.3 KiB
2.3 KiB
Task F5 — Faction War and Moderation
Scope
Implemented the F5 faction-war and moderation capability:
- Run-scoped
FactionWarstandings loaded from the existing ASCII faction catalog. Defeating a faction member credits its declared rival; standings report a leader only when the lead is non-zero, and expose leader/margin flags for future title and achievement conditions. - Run-scoped
Moderationstate applies data-backed reason penalties to the active floor deadline, clamps remaining turns at zero, counts strikes, and applies a Syndicate escalation every third violation. - Deterministic
Syndicateverdict messages keyed by run seed, reason, and strike count; the latest verdict is retained in run state. moderation_violationcontent-effect dispatch through the existing condition engine, with authoritative moderation strike and Syndicate verdict journal events.MFaction andNModeration panels, wired through the input router and scene hierarchy; panels toggle with their key and close with Escape.- Combat event payloads now retain actor and target content IDs, allowing faction-aware consumers to identify content-backed participants.
- TDD coverage for faction standings, moderation penalties/escalation/deterministic verdicts, and a real Game-scene end-to-end moderation/panel flow.
No unrelated code or content files were changed.
Verification
./scripts/verify.sh completed successfully using Godot 4.5.0:
- Unit: 176 / 176 tests passed, 1,316 assertions
- Integration: 10 / 10 tests passed, 59,462 assertions
- E2E: 51 / 51 tests passed, 512 assertions
- Visual captures passed:
artifacts/visual-check.png:dungeon_non_black_pixels=489308,visible_pixels=17524,explored_pixels=10438,explored_luminance=0.012,unknown_pixels=365325,unknown_luminance=0.001artifacts/visual-check-exit.png:dungeon_non_black_pixels=489252,visible_pixels=17404,explored_pixels=17146,explored_luminance=0.012,unknown_pixels=439497,unknown_luminance=0.001
The verifier reported only pre-existing third-party GUT invalid-UID and Godot resource-cleanup warnings; it reported no application parse error, script error, test failure, or visual failure.
Git
All intended F5 source, scene, test, resource UID, and report files are included in one local commit. No push and no pull request were created.