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:
parent
f6941c2cf5
commit
a68f38609d
1 changed files with 3 additions and 1 deletions
|
|
@ -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.")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue