Risk Matrix

This appendix enumerates the primary research risks identified during architecture research. Each risk is assigned to the implementation phase where it is most relevant and where its mitigation is tested. Risks are ordered by severity.

Risk Phase Severity Mitigation Warning Signs
Hypernetwork mode collapse Phase 1 (kill-switch gate), Phase 4 High Diversity regularization in training loss from the start. Monitor adapter cosine diversity metric (threshold > 0.1). The degenerate solution — the mean adapter — has near-zero variance across different inputs. Generated adapters cluster tightly in PCA; cosine similarity between adapters approaches 1.0; training loss converges but Pass@1 does not improve.
Adapter composition interference Phase 2 Medium Default to single-adapter retrieval at inference time. Treat multi-adapter composition as an optional future experiment. Direct additive merging of heterogeneous LoRAs produces interference in non-orthogonal subspaces. Performance with 2 adapters loaded is worse than with 1; inference latency increases non-linearly with adapter count.
Catastrophic forgetting Phase 2 Medium Immutable adapter storage with write-once semantics enforced at the registry API level. No code path may overwrite an existing adapter. Adapters indexed by session ID and timestamp. Performance on session-1 tasks degrades after session-50 adapters are added to the corpus; adapter file checksums change unexpectedly.
Oracle coverage gap Phase 4 (round-2) Operational min_oracle_coverage=0.8 startup gate — train_d2l_qwen3_round2 raises RuntimeError before any model load if the registered oracle set covers < 80% of training records. Use --dry-run to check coverage without paying the full training cost. Run scripts/validate_oracles.py (≥ 3% Pass@1 improvement per oracle) before seeding the registry. Startup RuntimeError referencing min_oracle_coverage; oracle validator reports any oracle below the 3% threshold; records with missing oracles dominate the skip counter during dry-run.
Round-2 training regression Phase 4 (round-2) High Kill-switch wiring in train_d2l_qwen3 (kill_switch_evaluate_fn kwarg, default off; opt-in via config.kill_switch_enabled=True) halts training on ≥ 5% HumanEval Pass@1 regression over baseline (20–30 held-out tasks, k=5). Post-training, the strict success gate in scripts/evaluate_round2.py (evaluate_round2_gate: ≥ 4/6 benchmarks improved ≥ 2.0%, no regression > 1.0%) blocks promotion on any backslide. Mid-training HumanEval Pass@1 drops > 5% below baseline; post-training verdict JSON shows passed=false with non-empty reasons list; max_regression exceeds -0.01 on any required benchmark.

How to Use This Matrix

Each risk listed here should be monitored during the assigned phase via MLflow experiment tracking. Log the warning sign metrics as MLflow scalars at each evaluation step so degradation is visible before it becomes unrecoverable. If any warning sign is observed, stop training and reassess before continuing — there are no predefined fallback strategies, only stop-and-learn.

For the round-2 risks, two additional monitoring surfaces complement MLflow: scripts/validate_oracles.py (per-oracle ≥ 3% Pass@1 improvement check — run before seeding the registry) and scripts/evaluate_round2.py (strict gate on the round-2 adapter — exit 0 PASS, 1 FAIL for CI integration).