Add CMake and Bzlmod integration and prepare first release - #2
Merged
jhurliman merged 6 commits intoSep 10, 2026
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 46a9b68b6e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
jhurliman
added this pull request to stack #3
September 10, 2026 18:33
jhurliman
added a commit
that referenced
this pull request
Sep 10, 2026
The current sampler shares one RNG across worker threads, chooses the first accepted speculative proposal, and can stop `Sample(n)` before recording n samples. Replace that path with sequential adaptive Metropolis-within-Gibbs: exactly one proposal per coordinate and one retained state per completed sweep. Remove the obsolete thread-count argument from AMWG::Init. Independent chains are the supported parallelism model. Fix model support (both sigma bounds and nu >= 1), log-density underflow, precision loss, temporary observation lifetimes, reinitialization, burn/storage coupling and empty/nonfinite statistics. Add deterministic lifecycle checks, analytic density/posterior references and fixed-seed normal/exponential distribution tests. This deliberately changes inferred results and random sequences; migration details are in CHANGELOG.md. Validation: optimized C++17 regression tests pass locally; ASan/UBSan passes with all 56 checks on Linux and macOS CI. CI runs optimized and sanitized tests on Linux and macOS. Stacked PR #2 adds portable packaging, independent consumers and release preparation. No release has been published. Addressed the API cleanup requested in #1 (comment): Init accepts only the starting state and log-posterior callback. Removed compatibility cases and updated the benchmark and documentation in the stack.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1. Prepare the first versioned release, 1.0.0, with a header-only CMake export (
best_cpp::best_cpp) and public Bzlmod target (@bayes//:best_cpp). Tests, CLI and benchmark builds are opt-in. No third-party numerical libraries or worker-thread runtime dependencies are imposed on consumers.Add installed CMake and renamed-repository Bazel consumers, independently compiled public headers, and an archive-based temporary BCR registry consumer with checksum verification. The registry generator preserves existing configuration; actual BCR submission waits for a public reviewed release archive. Include model/API documentation, compatibility notes, reproducibility and convergence limitations, release instructions, and a workload-specific performance comparison. Harden CLI parsing, including malformed trailing numeric tokens. Address the parent review finding by clamping initial sigmas to both prior bounds, with a highly imbalanced data regression.
Validation: 57 numerical/lifecycle checks; optimized and sanitizer Linux/macOS CI passed in #1. Local CMake library/tests/CLI/benchmark/install and independent consumer passed; Bazel 9.2 regression, renamed consumer and registry archive consumer passed. This PR adds Linux/macOS/Windows CMake CI plus Bazel CI. No tag or package has been published.
Addressed the API cleanup requested in #1 (comment): Init accepts only the starting state and log-posterior callback. Removed compatibility cases and updated the benchmark and documentation in the stack.