diff --git a/docs/product-technical-gap-baseline.md b/docs/product-technical-gap-baseline.md
index e65883463..dffded983 100644
--- a/docs/product-technical-gap-baseline.md
+++ b/docs/product-technical-gap-baseline.md
@@ -19,7 +19,7 @@
## 3. General Architecture Gaps
- **DB Architecture**: Ensure PostgreSQL is strictly used (no file DBs), 3rd normal form is maintained, and Hot Partitions are handled. DB locks must be managed (or use read/write replicas).
- **Zotero Integration**: Papers and standards referenced by TEPP must be synced via Local Zotero API (http://localhost:23119/api/) and cited using APA 7th edition in docstrings.
-- **Testing**: We need actual testing of Psychometrics (Fast-MLSIRM parameter calibration, RMSE of estimates, Fixed-Item Parameter Calibration, CAT) against synthetic/demo data.
+- **Testing**: Partially resolved -- `tests/test_fast_mlsirm_grm_recovery.py` (new) simulates polytomous GRM responses from known true item parameters and person thetas (`fast_mlsirm` ships no polytomous-specific simulator, so the Samejima (1969) graded-response formula is implemented directly in the test), fits them with `fast_mlsirm.fit_polytomous` -- the same function `period_report.py`'s production code calls -- and asserts the recovered EAP thetas are close to true by RMSE (measured ~0.38, asserted `< 0.6`) and correlation (measured ~0.92, asserted `> 0.75`). This is real GRM theta-recovery accuracy testing against synthetic data with known ground truth, not item-parameter calibration or an infra-only smoke test. Still open: item-parameter calibration, GPCM recovery (only GRM covered so far), Fixed-Item Parameter Calibration (Kim, 2006 FIPC -- `period_report.py` uses this for later periods, untested), and CAT (`fast_mlsirm.cat`/`administer_adaptive_test` -- not exercised anywhere in this repo's tests) remain unverified.
- **Security & Compliance**: PII masking cannot break the system. Need SOC 2 and CSAP compliance alternatives to blind PII masking.
- **LLM Orchestration**: Ensure ALL LLM calls route through `contextual-orchestrator` utilizing API keys (BYTEZ, NVIDIA, OPENROUTER, OPENAI) with auto model discovery and optimal reasoning effort allocation (Fugu/Conductor/TRINITY research).
diff --git a/frontend/src/App.test.tsx b/frontend/src/App.test.tsx
index 7462abd2c..70eb27590 100644
--- a/frontend/src/App.test.tsx
+++ b/frontend/src/App.test.tsx
@@ -41,6 +41,9 @@ describe("App, unauthenticated", () => {
state: expect.objectContaining({ returnUrl: expect.stringMatching(/^\//) }),
}),
);
+ // Persisted as a fallback in case the OIDC state round-trip is dropped
+ // (see oidcReturnUrl.ts's restoreOidcReturnUrl, consumed in main.tsx).
+ expect(window.sessionStorage.getItem("lineageweave.oidc.returnUrl")).toMatch(/^\//);
});
});
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index 6fba0dd41..1b5b351ab 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -4610,7 +4610,8 @@ export default function App({ showLabPanels = false }: { showLabPanels?: boolean