feat(tht): column_promoted/column_excluded decision types (F4)

This commit is contained in:
2026-07-06 23:25:00 +02:00
committed by Marco Pancotti
parent 9339a8272b
commit 1df5d40d05
3 changed files with 20 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
from tht.decisions import DecisionType
import typing
def test_column_decision_types_exist():
allowed = set(typing.get_args(DecisionType))
assert "column_promoted" in allowed
assert "column_excluded" in allowed
def test_f4_emits_column_types():
import yaml
from pathlib import Path
wf = yaml.safe_load(Path("workflow.yaml").read_text())
f4 = next(p for p in wf["phases"] if p["id"] == "F4")
assert "column_promoted" in f4["emits"]
assert "column_excluded" in f4["emits"]
+2
View File
@@ -14,6 +14,8 @@ DecisionType = Literal[
"question_rewritten",
"table_promoted",
"table_excluded",
"column_promoted",
"column_excluded",
"column_corrected",
"join_modified",
"evidence_accepted",
+1 -1
View File
@@ -34,7 +34,7 @@ phases:
advance: reviewer_decide
prerequisites: []
artifacts_out: [schema_linking.json]
emits: [table_promoted, table_excluded, column_corrected, join_modified,
emits: [table_promoted, table_excluded, column_promoted, column_excluded, column_corrected, join_modified,
evidence_accepted, evidence_rejected, value_grounded,
concept_formula_approved, concept_formula_rejected]
- id: F5