Skip to content

Support Python predicates in specs - #62

Merged
peterbjohnson merged 3 commits into
devfrom
wb/t27
Sep 20, 2026
Merged

peterbjohnson merged 3 commits into
devfrom
wb/t27

Conversation

@peterbjohnson

Copy link
Copy Markdown
Member

Layer 2. Where selectors are not enough, a spec names predicates from a Python file beside it: functions over panflute elements that say whether a block is a question, part or solution. The predicate file's hash goes in the draft with the spec's, so a changed predicate invalidates the draft. Corpus testing decides how often this is needed, so keep it minimal. Done when a spec in the test data uses a predicate and produces its expected draft, and a spec whose predicate file is missing or changed since the draft was made is refused.


Workbench ticket t27.

@peterbjohnson
peterbjohnson merged commit 507c092 into dev Sep 20, 2026
2 of 6 checks passed
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