Skip to content

AutoProve Plugin System, prop prompt improvements #89

Open
jtoman wants to merge 9 commits into
masterfrom
jtoman/ap-pipelines-plugins
Open

AutoProve Plugin System, prop prompt improvements #89
jtoman wants to merge 9 commits into
masterfrom
jtoman/ap-pipelines-plugins

Conversation

@jtoman

@jtoman jtoman commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Adds a way to install "plugins" into the autoprover pipeline. Currently the only extension point is the property inference. We use importlib's entrypoints functionality for symbol discovery and instantiation.

  • Pre-property plugins contribute AnyPropertyGenerationInput. These are sorted and concatenated with the task prompt into a cache friendly order. These plugins run concurrently with each other.
  • Post-property plugins post-process the entire property list, and are run in plugin id order (I couldn't think of another sensible default ordering).

Via packaging magic, templates placed in "templates/" as a sibling to the loader class "just work" as arguments to the builders. The "host" (core) templates are accessed via "autoprover/" namespacing; there is some jinja black magic for this to work.

Sensible attempts at caching are made throughout.

Fixes a bug in autosetup where cancellation due to a sibling task failure would actually hang the whole program (at least until autosetup finished); CancellationException is a base exception, so it didn't go through the previous "except" handler, meaning we never killed "autosetup" during shutdown. In the finally block, we'd then wait for the (unkilled) process, hanging the orderly shutdown in the case of error until autosetup finished; not what we wanted.

@jtoman
jtoman requested a review from naftali-g July 20, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant