model-writtenrun 6329 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jacob Champion split the SASL framework refactor out of his OAUTHBEARER work, introducing frontend and backend callback structures so other mechanisms could reuse the exchange machinery, and proposed rejecting backend output accompanying a failed exchange #1.
- Michael Paquier supported the callback approach but requested namespaced constants, clearer frontend naming, documented interfaces and separate SASL files #2; Jacob deferred extracting GS2 message parsing and further channel-binding abstractions until another suitable mechanism justified them #3.
- Jacob's revisions added the naming changes, extensive callback documentation and fe-auth-sasl.h, with backend code movement isolated in a second patch for review; documenting the interface also exposed missing support for empty client responses and checks against silently ignoring challenges #3 #4 #5.
- Michael consolidated the series, simplified callback declarations and polished the documentation #6; Jacob clarified mechanism-name termination and the free callback wording #7, and the refactor landed with those comment changes and the TODO comments removed as 9fd85570d1.
- Discussion clarified that a client could abort an exchange but could not ignore a challenge while keeping the exchange open #8 #9, leading Michael to submit a separate patch rejecting backend output on failure, allowing empty frontend responses and requiring responses during unfinished exchanges #10.
- Jacob approved the safeguards and suggested a documentation correction #11; Michael incorporated that correction and removed the unnecessary success test from the missing-response condition before committing 44bd0126c7, then explained the additional logic change #12.
- The safeguards were treated as improvements for future mechanisms rather than backpatch candidates because SCRAM already met their requirements #10; Jacob and Michael left replacing the done/success boolean pair with a clearer status representation for future work #13 #14.
- Mikhail Kulagin then reported an extension build failure because installed libpq-int.h included the uninstalled fe-auth-sasl.h, and supplied installation fixes for both Make and MSVC #15; Michael agreed with the diagnosis #16.
- Jacob reviewed the installation fix, raised forward declaration as an alternative, and confirmed the patch worked on Windows #17 #18; Michael committed it with minor ordering and formatting changes as 6c9c283166.
- By the final reply, the refactor and both follow-ups had landed; Michael explained that installing the header deliberately exposes callbacks to applications using libpq internals and enables out-of-core mechanisms, while those internal interfaces may change across major releases #19.