Tier 1 Series 6

6G: The Communication Exam

Capstone Exam
Pilot Record
Student Profile
"The AI has generated a "Communication Hub" that is creating spaghetti dependencies and memory leaks. Identify the three critical failures to restore signal integrity."

Target Asset for Audit

FRAGILE_CODE_DETECTED
public class CommSystem : MonoBehaviour {
    // Audit Requirement: Lesson 6A (Hard Dependency)
    public HUDManager hud;
    public static Action onAlert;

    void Start() {
        hud.UpdateText("Ready");
    }

    void OnEnable() {
        onAlert += TriggerAlarm;
    }
    // Audit Requirement: Lesson 6D (Zombie Signal)
    // Missing OnDisable!
}

Supervisor's Certification

Authenticated Pilot
pilot_9b8366e135aa1f10
Session Secure

Failure Point #1

Hard Dependency

The system relies on a direct reference to "HUDManager". Command the AI to decouple this using an Event.

Failure Point #2

Decoupling the HUD

Command the AI to remove the direct HUD reference and use a UnityEvent to broadcast position updates instead.

Failure Point #3

Subscription Safety

Identify the memory leak. Command the AI to provide an unsubscription path for the static Action.