feat: Add Hardcore Integrity Keeper (HIK) MVP subsystem#1
Draft
Copilot wants to merge 4 commits into
Draft
Conversation
- HikConfig: ForgeConfigSpec with 8 config keys (enable_hik, archive_path, spectator_grace_minutes, verification_api_port, allow_sealed_backups, strict_inventory_provenance, compromise_on_lan_cheats, read_only_on_external_cheat_flag) - soulbind subsystem: IntegrityFlag enum, DeathLogEntry (SHA-256 checksummed POJO), DeathSealManager (Gson file I/O + integrity map), SoulbindEventHandler (LivingDeathEvent + PlayerLoggedInEvent) - integrity subsystem: WorldChecksumValidator (level.dat SHA-256), LevelDatWatcher (ServerStartingEvent), IntegrityOverlay (client HUD) - backup subsystem: SessionIdManager (per-world UUID session IDs), BackupDetector (600-tick rollback detection) - spectator subsystem: SpectatorLockHandler (per-tick enforcer), ArchiveCountdown (grace period + world name tracking), CommandInterceptor (CommandEvent for locked players) - lan subsystem: LanMenuMixin (ShareToLanScreen mixin disabling Allow Cheats), CheatFlagWatcher (getAllowCommands() transition detection), ReadOnlyWorldEnforcer (BlockEvent cancellation when not CLEAN) - CovenantVerifier: added 5 HIK verification methods - TruthSystems: register HikConfig.SPEC via ModLoadingContext - mods.toml: added [[mixins]] block - truthsystems.mixins.json: new mixin config (client-only LanMenuMixin) - docs/HIK_ARCHITECTURE.md: full architecture documentation - README.md: HIK subsystem section Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: aidoruao <174227749+aidoruao@users.noreply.github.com>
Agent-Logs-Url: https://github.com/aidoruao/truthsystems-mod/sessions/1a302289-e3fd-4c8d-b0df-3c312bbd835b Co-authored-by: aidoruao <174227749+aidoruao@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add MVP implementation of Hardcore Integrity Keeper feature
feat: Add Hardcore Integrity Keeper (HIK) MVP subsystem
Mar 30, 2026
Agent-Logs-Url: https://github.com/aidoruao/truthsystems-mod/sessions/f862e20c-86fd-4083-a9ad-d30af816ffbd Co-authored-by: aidoruao <174227749+aidoruao@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CovenantVerifierCovenantVerifierHIK methods into runtime handlers and add HIK-specificErrorLoggertypesbuild.gradle, mixin config plugin/json, safer LAN button matching, compatibility doc)HikCovenantCompliance, explicit HIK initialization updates, public test helpers)code_review,codeql_checker, verification hash regeneration)./gradlew test --no-daemonstill cannot run here because DNS resolution tomaven.minecraftforge.net/repo.spongepowered.orgis unavailable in the sandboxOriginal prompt
Create a pull request in
aidoruao/truthsystems-modimplementing the first-phaseHardcore Integrity Keeper (HIK)feature set for Forge 1.20.1 / Java 17, based on the provided Devin spec and DeepSeek review.Goal
Add an MVP implementation of HIK to the existing TruthSystems mod so Hardcore worlds gain runtime integrity enforcement for the main bypass vectors, while fitting the existing architecture and covenant/audit patterns already present in the repository.
Scope for this PR (MVP only)
Implement the following in
aidoruao/truthsystems-mod:1) Configuration support
Add configuration for the HIK subsystem, with defaults that keep advanced networking disabled unless explicitly enabled.
Required config keys:
enable_hik = truearchive_path = "saves/archived"spectator_grace_minutes = 10verification_api_port = 0(disabled by default)allow_sealed_backups = truestrict_inventory_provenance = falseor similar conservative default if provenance tracking is stubbed/deferredcompromise_on_lan_cheats = trueread_only_on_external_cheat_flag = trueIntegrate config cleanly with the existing mod initialization flow.
2) HIK core package structure
Create a new package tree under:
src/main/java/com/truthsystems/hardcore/with MVP-ready classes aligned to the spec where feasible.
At minimum add packages/classes for:
soulbind/DeathSealManager.javasoulbind/DeathLogEntry.javasoulbind/SoulbindEventHandler.javasoulbind/IntegrityFlag.javaintegrity/WorldChecksumValidator.javaintegrity/IntegrityOverlay.javaintegrity/LevelDatWatcher.javabackup/SessionIdManager.javabackup/BackupDetector.javaspectator/SpectatorLockHandler.javaspectator/ArchiveCountdown.javaspectator/CommandInterceptor.javalan/LanMenuMixin.javaor the nearest viable Forge/mixin implementation for disabling/removing LAN cheats in Hardcorelan/CheatFlagWatcher.javalan/ReadOnlyWorldEnforcer.javaIf some advanced classes from the larger spec are not yet practical for MVP, add clear scaffolding and TODO notes rather than overengineering.
3) Death sealing / soulbind MVP
Implement the core death-sealing behavior for Hardcore worlds:
soulbind/).Implementation notes:
4) World integrity monitoring MVP
Implement world load integrity checks focused on realistic, high-value signals:
level.datchanges relevant to Hardcore integrity where practical.Important:
ChunkHasher, where appropriate.5) Backup/session continuity MVP
Implement basic session continuity and backup-detection scaffolding:
6) Spectator lock MVP
After Hardcore death:
/gamemode,/give, and similar routes for locked players.If true world archival is too invasive for the first PR, implement a safe archive marker / archival queue and document the follow-up work clearly.
7) Anti-LAN exploit hardening MVP
Implement the primary LAN-hardening protections:
This pull request was created from Copilot chat.
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.