docs(state)+test(l2): deploy state snapshot + configurable L2 workspace path

PROJECT_STATE: sezione deploy Docker live (Profile A embedded portale, ruoli DB,
secrets, merge codex, fix load-bearing). L2 test: WORKSPACE da env THT_L2_WORKSPACE
(default path Mac) -> può girare ovunque, skip pulito se assente.
This commit is contained in:
User
2026-07-12 23:11:20 +02:00
parent 122cbfd50d
commit eb83cb8fc1
2 changed files with 16 additions and 2 deletions
@@ -6,6 +6,7 @@ here the LSH index is built from the real sampled values and the query is real.
Run: pytest -m l2 tests/l2/test_value_grounding_real.py -s (needs .env + VPN)
"""
import os
from pathlib import Path
import pytest
@@ -15,7 +16,7 @@ from tht.workspace import load_workspace
pytestmark = [pytest.mark.l2]
# Per-customer workspace repo (spec D7): the LSH index lives in the customer repo,
# not in harness/. PSD is the reference customer for L2. Skip cleanly if absent.
WORKSPACE = Path("/Users/mp/projects/tht-workspace-psd/psd.yaml")
WORKSPACE = Path(os.environ.get("THT_L2_WORKSPACE", "/Users/mp/projects/tht-workspace-psd/psd.yaml"))
def test_ablazione_returns_multiple_columns(l2_env):