← Files Codex ReplayARCHIVED FILE
tests/test_maintained_catalog.py
1.05 KB · Oct 2, 2026 · 00:19 UTC
"""Rollout contract for the maintained Codex Replay plugin."""
from __future__ import annotations
import json
import unittest
from pathlib import Path
PLUGIN_ROOT = Path(__file__).resolve().parents[1]
CATALOG_ROOT = PLUGIN_ROOT.parents[1]
class MaintainedCatalogTests(unittest.TestCase):
def test_replay_remains_codex_only_and_statsig_gated(self) -> None:
marketplace = json.loads((CATALOG_ROOT / "marketplace.json").read_text(encoding="utf-8"))
entries = [entry for entry in marketplace["plugins"] if entry["name"] == "codex-replay"]
self.assertEqual(len(entries), 1)
self.assertEqual(
entries[0]["source"],
{"source": "local", "path": "./plugins/codex-replay"},
)
self.assertEqual(
entries[0]["policy"],
{
"installation": "AVAILABLE",
"authentication": "ON_INSTALL",
"products": ["CODEX"],
"statsigGate": "codex_replay_early_access",
},
)
if __name__ == "__main__":
unittest.main()
SHA-256: 4ff2a6436dfb34ced512befae3e2a40254d7fe6c91efff31dc10d0377c75aea5