fix: harden preprocessing state and child capabilities

This commit is contained in:
2026-08-11 14:30:16 +02:00
parent a5916f6177
commit ee5ac381b3
12 changed files with 323 additions and 104 deletions
+8
View File
@@ -11,6 +11,14 @@ from tht.ports.vector import VectorStoreError
from tht.vectorstore.embeddings import EmbeddingsError
@pytest.fixture(autouse=True)
def _child_capability_for_pipeline_unit_tests(monkeypatch):
# These tests exercise pipeline result/JSON behavior; process-boundary
# authorization is covered by test_workspace_writer_lock.py.
import tht.cli.preprocess_cmd as command
monkeypatch.setattr(command, "_require_writer_capability", lambda **kwargs: None)
def test_preprocess_evidence_json_is_pristine(monkeypatch, tmp_path):
import tht.cli.preprocess_cmd as command