Repository navigation
Improving PR review process #86
Closed
alexanderlhicks
started this conversation in
Ideas
Replies: 2 comments
my 2c: ensuring that blueprints have accurate statements takes effort and requires review. for now, I prefer a model of staying mostly sorry-free on main. If I ever not do a proof immediately, it's either a trivial statement, or one with a partial proof / proof outline that is progressed far enough that you can already see it working. so in the review process, I'd be wary if too much work is added that relies on an unproven, complex statement |
0 replies
This is now enabled, see #96 as an example.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Quick follow up on the discussion on the call earlier today, we are all agreed on aiming to improve the PR review process. Please comment with any diagnosis, feedback on suggestions, or new suggestions.
The basic things we want to ensure are:
I want to note that given this library is in its early stages and there is a lot of established work we would like to formalize, we want to be able to encourage and accommodate new contributors.
Right now the review process suffers from:
This is partly due to the review work essentially being offloaded onto Quang, who is well suited to review things but should not be expected to be able to review everything -- it's also a goal of mine to ensure this does not encroach on his time.
Below is a non-exhaustive list (I may edit more in) of possible changes to improve things (in no particular order):
This can be implemented without too much trouble I think. Ensuring that any theorems and lemmas clearly reference a theorem or lemma in a paper should make it possible to automatically sanity check the formalization of a statement.
This should be timely (due to automation), consistent (up to the underlying LLMs consistency), help with soundness (identifying at least some issue), and may be productive if it can make reasonable suggestions to fix any identified errors.
Status: to be done, aiming to carve out time to set this up as soon as possible.
This could be setup to provide some incentive to identify any unproven statements that may be incorrect by proving their negation.
This is not timely (happens post-merge), inconsistent (not systematic), helps with soundness if it identifies errors, and not productive (happens post-merge).
Status: I've cooled off on this as I think more about it. It should probably exist if we are building on top of unproven statements (e.g. making claims about implementations verified against unproven statements), but it not a substitute for improvement the PR review process as a whole so may not be a priority for now. May revisit this. (Similar argument for audits which are just more consistent.)
Self explanatory. Right now this is very ad-hoc: Quang and I have an admin role, Gregor (who isn't currently contributing to ArkLib) and Devon are maintainers, Chung and Bolton have write access, and James (who isn't currently contributing to ArkLib) has read access.
This could help with timeliness (more people that can be assumed to review PRs), consistency (more expertise of different parts of the library to review different PRs appropriately), soundness (cf consistency), and productive (assuming new maintainers are nice people).
Status: This should definitely happen, someone from Nethermind would be an obvious option given Nethermind is heavily contributing to ArkLib.
Our current model is more or less to get PRs merge very quickly. This is good and keep things moving, particularly when a PR includes material that is widely useful (e.g., coding theory), but means PRs may not be extensively reviewed and instead be merged based on trust. This is okay-ish in the short term (small set of contributors, no immediate negative impacts of errors other than fixing them) but unadvisable in the long term (larger set of contributors and verification projects assuming that ArkLib is reliable).
This would hurt timeliness and could result in a growing backlog, could improve consistency, would be done to improve soundness, and is a mixed bag in terms of productivity (may improve actionable feedback but may delay too much for it to be as valuable).
Status: Could be implemented as guidance for now, with the aim of not having to do this (outside of exceptional situations) by increasing the maintainer count.
We could consider changing the way contributions are made (and making this explicit in the CONTRIBUTIONS.md file) to facilitate reviews. This could include requiring smaller PRs which are easier to review, pre-announcing PRs so that maintainers could plan when they expect to allocate time to review a PR (or indicate when they will be available to do so), or modifying the current "blueprint first" approach in favour of PRs with more proofs.
Improvements or regressions in timeliness, consistency, soundness, and productivity would depend on how we might changes things.
Status: Open to suggestions, but mindful of trade-offs and being able to evaluate them.
We could try to implement some form of testing for unproven statements (e.g., via LSPec or something similar). Testing could be the responsibility of the author of the blueprint.
This would improve soundness and leave timeliness, consistency and productivity unchanged.
Status: I'm not sure how useful this would actually be due to unfamiliarity with the available tools and how they would apply to representative statements for our use case.
All reactions