Skip to content

fix: make preprocessor validation output-only#19

Merged
rlippmann merged 1 commit into
mainfrom
suggest-directive-audit
Jul 14, 2026
Merged

fix: make preprocessor validation output-only#19
rlippmann merged 1 commit into
mainfrom
suggest-directive-audit

Conversation

@rlippmann

Copy link
Copy Markdown
Owner

Summary

  • remove the source_input parameter and source-aware acceptance policy from validate_preprocessor_output(...) and parse_preprocessor_output(...)
  • make validation and parsing strictly responsible for preprocessor output shape and canonical directive grammar
  • remove obsolete source-aware helpers, tests, and fixtures, and update the public API contract, examples, and documentation
  • preserve the prior output-only behavior without broadening normalization or repairing grammar near misses
  • clarify that structural validation does not establish semantic faithfulness to the user’s original input

Notes

  • this is an intentional pre-1.0 contract correction
  • direct before/after auditing confirmed that the prior output-only validator/parser behavior is preserved
  • known grammar near misses remain rejected, and no unintended output-only broadening or narrowing was found
  • source-aware policy for unattended model-generated directives is intentionally not replaced in this PR; automatic-handoff policy and reviewed draft_directive(...) behavior are separate follow-up concerns

Closes #15 by removing source-aware semantic acceptance from output validation; unattended automatic-handoff policy remains a separate follow-up concern.

@rlippmann
rlippmann merged commit bfab73d into main Jul 14, 2026
20 checks passed
@rlippmann
rlippmann deleted the suggest-directive-audit branch July 14, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Source-aware fallback validation rejects canonical directive outputs for documented natural-language cases

1 participant