Skip to content

fix: reject premise directive compounds - #275

Merged
rlippmann merged 6 commits into
mainfrom
0901
Sep 8, 2026
Merged

fix: reject premise directive compounds#275
rlippmann merged 6 commits into
mainfrom
0901

Conversation

@rlippmann

Copy link
Copy Markdown
Owner

What changed

  • Reject recognized directive starters inside set premise and change premise to operands as COMPOUND_DIRECTIVE, including no-separator cases.
  • Add shared grammar fixtures and Python/Hypothesis coverage for premise compound boundaries.
  • Clarify the grammar specification and consolidate the shared compound-attempt rule for premise and policy operands.

Why

Premise operands must not absorb additional directive syntax. This keeps the 0.9 grammar contract consistent across implementations while preserving ASCII-only structural matching.

Checklist

  • pre-commit run (uv run pre-commit run --all-files)
  • tests pass (uv run pytest)
  • strict grammar coverage remains at 100%

@codecov

codecov Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8341319) to head (07e961d).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #275   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          784       773   -11     
=========================================
- Hits           784       773   -11     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rlippmann
rlippmann merged commit 7ffc19c into main Sep 8, 2026
20 checks passed
@rlippmann
rlippmann deleted the 0901 branch September 8, 2026 02:53
@rlippmann rlippmann mentioned this pull request Sep 8, 2026
2 tasks
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.

1 participant