chore: commit remaining worktree changes
This commit is contained in:
@@ -4,13 +4,12 @@ The CI-runnable proxy for 'full session coherence': build a synthetic ledger by
|
||||
hand (decisions appended directly, not via an LLM) representing a full F1->F8 walk,
|
||||
then a rollback F6->F4 + re-derive, and assert the invariants the D1-the-L2-version
|
||||
would check. This is the coherence net for the Phase-A substrate (phase fold,
|
||||
effective view, teardown, taskdoc byte budget).
|
||||
effective view, teardown).
|
||||
"""
|
||||
from pathlib import Path
|
||||
|
||||
from tht.decisions import append_decision
|
||||
from tht.phase import current_phase, effective_decisions
|
||||
from tht.taskdoc import generate_task_doc
|
||||
from tht.teardown import teardown_to_phase
|
||||
from tht.workflow import load_workflow
|
||||
|
||||
@@ -77,16 +76,6 @@ def test_re_approve_after_rollback_advances_correctly(tmp_path):
|
||||
assert current_phase(s) == 4
|
||||
|
||||
|
||||
def test_task_doc_stays_under_byte_budget_across_phases(tmp_path):
|
||||
s = tmp_path / "sess"
|
||||
s.mkdir()
|
||||
(s / "question.md").write_text("# Domanda\ndammi i pazienti con ablazione nel 2025")
|
||||
(s / "schema_linking.json").write_text('{"candidates":[{"kind":"table","name":"fct_ricoveri"}]}')
|
||||
for ph in range(1, 9):
|
||||
doc = generate_task_doc(session_dir=s, phase=ph, promoted_tables=["fct_ricoveri"])
|
||||
assert doc.byte_budget_ok, f"phase {ph} task doc over byte budget"
|
||||
|
||||
|
||||
def test_decision_retraction_excluded_from_effective(tmp_path):
|
||||
s = tmp_path / "sess"
|
||||
s.mkdir()
|
||||
|
||||
Reference in New Issue
Block a user