fix: add date_errors to substantive fixer tag routing

date_errors was evaluated but never routed to any fixer, leaving PRs
stuck permanently. Now classified as FIXABLE with targeted prompt guidance.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
m3taversal 2026-04-07 01:01:12 +01:00 committed by Teleo Agents
parent f6941c2cf5
commit a68f38609d

View file

@ -29,7 +29,7 @@ from .llm import openrouter_call
logger = logging.getLogger("pipeline.substantive_fixer") logger = logging.getLogger("pipeline.substantive_fixer")
# Issue type routing # Issue type routing
FIXABLE_TAGS = {"confidence_miscalibration", "title_overclaims", "scope_error", "frontmatter_schema"} FIXABLE_TAGS = {"confidence_miscalibration", "title_overclaims", "scope_error", "frontmatter_schema", "date_errors"}
CONVERTIBLE_TAGS = {"near_duplicate"} CONVERTIBLE_TAGS = {"near_duplicate"}
UNFIXABLE_TAGS = {"factual_discrepancy"} UNFIXABLE_TAGS = {"factual_discrepancy"}
@ -78,6 +78,8 @@ def _build_fix_prompt(
issue_descriptions.append("TITLE: Reviewer says the title asserts more than the evidence supports.") issue_descriptions.append("TITLE: Reviewer says the title asserts more than the evidence supports.")
elif tag == "scope_error": elif tag == "scope_error":
issue_descriptions.append("SCOPE: Reviewer says the claim needs explicit scope qualification.") issue_descriptions.append("SCOPE: Reviewer says the claim needs explicit scope qualification.")
elif tag == "date_errors":
issue_descriptions.append("DATES: Reviewer flagged incorrect, missing, or inconsistent dates in the claim. Check created dates, event dates cited in the body, and any temporal claims against the source material.")
elif tag == "near_duplicate": elif tag == "near_duplicate":
issue_descriptions.append("DUPLICATE: Reviewer says this substantially duplicates an existing claim.") issue_descriptions.append("DUPLICATE: Reviewer says this substantially duplicates an existing claim.")