Repository navigation
0.1.1: the #102 setup-script fix, certifi 2026.10.23, version 0.1.1 (release/0.1.x) - #105
Conversation
…ixes #102) (#103) The migration-owner guard passed `:'owner'` inside `psql -c`. psql 16 sends a -c string to the server as written and interpolates a variable only in what it reads as input, so the server got a literal colon and answered a syntax error. The `if !` read that as "no such role", so every first start on a fresh data volume exited 1 with a refusal that blamed an owner which existed. The next start skipped initialization and PostgreSQL came up healthy without the runtime role. The query now goes in on stdin, where `:'owner'` is interpolated. Both copies of the script change identically and stay byte-identical. Nothing else in either file moves, so the open edits to the same files do not conflict. tests_runtime/test_runtime_role_bootstrap.py is new. Its DB-backed cases run each copy of the script against a real PostgreSQL 16 and ask the catalogue whether the runtime role, its CONNECT and USAGE grants and its default privileges are there, and that a migration owner the database lacks is still refused by name without a syntax error. Its hermetic cases hold that no `psql -c` argument carries a psql variable. The existing shape cases (test_deploy_shape.py) needed no change. Co-authored-by: Brett Heap <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]> (cherry picked from commit 516560d) Co-Authored-By: Claude Opus 5.5 <[email protected]>
….1.1) The lock is re-resolved the way its header says, in a clean cpython 3.12.3 / linux x86_64 environment, but under every existing pin less `certifi` (`pip install --only-binary :all: -c <this file less certifi> -e ".[runtime,test]"`, then `pip freeze --exclude-editable | sort`). The freeze differs from the file in exactly one line: `certifi==2026.7.22` -> `certifi==2026.10.23`. No other pin moved, and the header records the re-resolve beside the earlier ones. certifi 2026.7.22 is inside GHSA-6q48-6c7w-9gw2 (critical, ">= 2019.03.09, < 2026.10.18"), the one CRITICAL the runtime image's scan reported. It is transitive: `httpx` and `httpcore`, from the `runtime` extra, require it. A full regeneration would have moved 26 pins (fastapi, starlette, pydantic, psycopg and more) and added a package, which is not a patch release. Ruling: opensoft/openXfactory#656 comment 6936600205, item 2. Co-Authored-By: Claude Opus 5.5 <[email protected]>
`pyproject.toml`'s version moves 0.1.0 -> 0.1.1, in the form the 0.1.0 release step took (#79): the one file, with the ruling cited above the version line. openDox-code keeps no changelog file, so nothing else carries the version. 0.1.1 is the patch release Brett Heap ruled: the branch `release/0.1.x`, from the commit `v0.1.0` tags, with exactly three changes: the first-start setup-script fix (#102, #103), `certifi` 2026.10.23 by a bounded re-resolve of the lock, and this version. This is the last of the three. Ruling: opensoft/openXfactory#656 comment 6936600205, item 2. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 5 days and 11 hours by commenting |
|
@codex review |
Reviewer's GuideConfigurationPipe the migration-owner lookup into psql stdin in both deployment scripts so psql interpolates the owner variable instead of sending it literally through -c.
Bump the package version to 0.1.1 for the ruled patch release.
TestsAdd hermetic and PostgreSQL-backed regression tests for the migration-owner guard and runtime-role bootstrap in both deployment scripts.
Lock files and vendored codeUpdate the dependency lock's certifi pin to 2026.10.23 via the bounded re-resolve.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|



The 0.1.1 patch release's contents, into the maintenance branch
release/0.1.x. Do not merge yet: the release order and the landing are the coordinator's and Brett Heap's.Ruling: opensoft/openXfactory#656 (comment) (Brett Heap, 2026-11-17).
release/0.1.xis created from the commitv0.1.0tags. It now exists atdede32b4b6f3d0f147d599776f83628c5af8ff3d, which the annotated tagv0.1.0(tag object9153c254) resolves to.The three commits
1a01343-xfrommain's516560d(#103). Its patch id is identical to516560d's (360bfba7…).init-runtime-role.shcopies,tests_runtime/test_runtime_role_bootstrap.py31c09b6certifi2026.7.22 -> 2026.10.23, by a bounded re-resolve of the lock, not a full regenerationconstraints-cpython312-linux.txt607c6eeversion = "0.1.1", in the form the 0.1.0 release step took (#79): this one file, with the ruling cited above the linepyproject.tomlDiffstat against
release/0.1.x: 5 files changed, 388 insertions(+), 8 deletions(-). 373 of those lines are #103 itself.The bounded re-resolve, measured
This is the lock header's own recipe, run in a clean cpython 3.12.3 / linux x86_64 environment under every existing pin except
certifi:pip install --only-binary :all: -c <lock less certifi> -e ".[runtime,test]"pip freeze --exclude-editable | sortThe freeze differs from the lock in one line only:
certifiis transitive:httpxandhttpcorerequire it.>= 2019.03.09, < 2026.10.18). That is the one CRITICAL the runtime image's scan reported..github/release-tools-cpython312-linux.txtalso pinscertifi2026.7.22, hash-locked. It is the release job's build-tool environment, is not in the image, and is not "the constraints file" the ruling names.What this PR does not do
It does not merge, tag
v0.1.1, open the merge-back intomain, move the openDox root pin, or dispatchrelease.yml. Those are the ruling's item 3 and come later, each by its own pull request or act.CI on this base
validate.ymlatdede32btriggers on everypull_request, with no branch filter, sovalidateruns on this PR.acceptancejob, sovalidateis the only job.runs-onisubuntu-latest, which now resolves toubuntu-26.04(read from org job logs on 2026-11-17).mainlater pinnedubuntu-24.04. This is the suite's first run on 26.04, and the runner pin is deliberately not changed: it is outside the ruling's three changes.release/0.1.xis the organization's non-fast-forward rule.validateis not a required check there.🤖 Generated with Claude Code
Summary by Sourcery
Prepare the 0.1.1 maintenance release with the runtime bootstrap fix, updated certifi constraint, and regression coverage.
Bug Fixes:
Tests:
Chores: