Skip to content

refactor: harden legacy integration boundaries - #13

Merged
pes7 merged 14 commits into
masterfrom
refactor/legacy-cleanup-integration-hardening
Jul 27, 2026
Merged

pes7 merged 14 commits into
masterfrom
refactor/legacy-cleanup-integration-hardening

Conversation

@pes7

@pes7 pes7 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

This stacked PR adds the final legacy-cleanup and integration-regression gate on top of refactor/bootstrap-scene-architecture.

Completed scope

  • adds a catalog of forbidden and deprecated integration patterns
  • adds Zone UA -> Validation -> Scan Legacy Integration
  • scans runtime C# sources with file/line/source reporting
  • blocks new legacy UnityEngine.Input polling
  • blocks direct gameplay access to the ammo HUD through GlobalSystem
  • warns on Player/Enemy tag-based combat logic
  • warns on legacy lowercase Health API calls
  • warns on scene-wide runtime object searches
  • writes Logs/ZoneUALegacyUsage.json
  • adds a Unity build preprocessor gate
  • adds scripts/check_legacy_usage.py for checks without Unity
  • runs the Python scanner in repository-integrity CI
  • uploads repository JSON reports from GitHub Actions
  • marks Health compatibility APIs with Obsolete
  • marks GlobalSystem.AmmoUI and getRandomBlood() with Obsolete
  • preserves serialized UnityEvent compatibility while making new C# usages visible
  • adds Editor tests for blocking, allowed-path and comment handling
  • adds Docs/LEGACY_CLEANUP_INTEGRATION_HARDENING.md

Stacking

Base branch: refactor/bootstrap-scene-architecture

Merge after PR #12, or retarget after the earlier stacked PRs are merged.

Validation required in Unity 6000.5.5f1

  • project compiles with zero Console errors
  • LegacyUsageScannerTests pass
  • Editor legacy scan completes and writes JSON
  • repository Python scan completes
  • a deliberate Input.GetKey usage is blocked
  • a deliberate direct AmmoUI dependency is blocked
  • warnings identify remaining serialized migration bridges
  • obsolete warnings do not break existing UnityEvents
  • production prefabs/scenes are migrated before compatibility methods are deleted
  • full validation, EditMode tests, Play Mode smoke tests and a build pass

The code scope is complete. This PR remains draft because serialized UnityEvent usage and full project compilation must be verified in the Unity Editor before compatibility bridges can be removed.

@pes7 pes7 mentioned this pull request Jul 27, 2026
10 tasks
@pes7
pes7 force-pushed the refactor/bootstrap-scene-architecture branch from 8e84cc9 to 13b83c1 Compare July 27, 2026 21:05
@pes7
pes7 force-pushed the refactor/legacy-cleanup-integration-hardening branch from 040def7 to 7ff103f Compare July 27, 2026 21:12
@pes7
pes7 changed the base branch from refactor/bootstrap-scene-architecture to master July 27, 2026 21:12
@pes7
pes7 marked this pull request as ready for review July 27, 2026 21:12
@pes7
pes7 merged commit 9f5001a into master Jul 27, 2026
2 checks passed
@pes7
pes7 deleted the refactor/legacy-cleanup-integration-hardening branch July 28, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant