Repository navigation
fix(release): recover artifacts from existing tags - #2779
Conversation
Problem: v0.2.0 has a release tag but its PyPI, GHCR, Homebrew, and extension artifact lanes did not run. Rebuilding from master would misrepresent the tagged source and container images did not carry a verifiable full revision.\n\nWhat changed: manual artifact recovery now checks out and validates a named vX.Y.Z tag before publishing. GHCR builds receive and smoke-check the complete source revision. The extension package and install matrix now describe matching release artifacts, pipx, and the recovery sequence.\n\nCompatibility/migration: normal tag pushes retain their existing paths; manual publication now requires an explicit release_tag.\n\nRef polylogue-y8s5\nRef polylogue-6rvt\n\nCo-Authored-By: Claude <[email protected]>
|
Warning Review limit reached
Next review available in: 57 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 288f0ca836
ℹ️ 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".
Problem: the release workflow only installed wheels with pip, leaving the documented pipx route unproved. It also did not assert that the packaged wheel exposes its full immutable revision.\n\nWhat changed: install the built wheel with pipx and exercise the CLI, daemon, and MCP scripts against an isolated archive. The release build now reads VERSION_INFO from the installed wheel and requires the complete checked-out revision.\n\nRef polylogue-y8s5\nRef polylogue-6rvt\n\nCo-Authored-By: Claude <[email protected]>
Problem: the tap workflow audited a generated formula but could open a PR without building it or exercising its Formula test block.\n\nWhat changed: install the resource-expanded candidate from source and run brew test before tap publication.\n\nRef polylogue-y8s5\n\nCo-Authored-By: Claude <[email protected]>
Problem: release assets identified the extension version but did not give store operators a machine-readable binding from each archive to its exact source revision and bytes.\n\nWhat changed: emit and attach a versioned store-submission manifest with the source revision, Firefox ID, archive SHA-256 values, and sizes. Document it in the install matrix.\n\nRef polylogue-y8s5\n\nCo-Authored-By: Claude <[email protected]>
Problem: recovery could move latest backwards, accept an ambiguous ref, and assert a full revision in the intentionally concise version string. Store attestation also accepted two artifacts of the same kind.\n\nWhat changed: recovery resolves explicit tag refs and verifies their target commits. It leaves latest untouched during manual recovery, smokes the concise version prefix plus the full machine-readable runtime revision, and requires one version-matched Chrome archive and one Firefox archive. Source extension manifests remain consistent until the release builder synchronizes both.\n\nRef polylogue-y8s5\nRef polylogue-6rvt\n\nCo-Authored-By: Claude <[email protected]>
Adversarial review — iteration 1Findings and fixes:
What survived scrutiny: the pipx release route, Homebrew formula smoke ordering, installed-wheel full-revision proof, and store archive creation. Verification: workflow checks and actionlint passed; production store-manifest build passed. The focused extension suite has one reproducible, unrelated pre-existing packaged-service-worker fixture failure (expected two backfill page requests, received one); archive-emission coverage passed. Proceeding to an independent iteration 2. |
Problem: recovery documentation still claimed that the concise CLI version rendered the full tag revision.\n\nWhat changed: document the concise CLI prefix separately from the full machine-readable VERSION_INFO.commit field used for runtime attestation.\n\nRef polylogue-6rvt\n\nCo-Authored-By: Claude <[email protected]>
Problem: checking out a tag and comparing HEAD to that same tag does not detect a retargeted release tag. Recovery documentation also linked to a missing section and still advised re-cutting after Trusted Publishing setup failures.\n\nWhat changed: explicit recovery now compares each tag to the immutable commit recorded on its GitHub Release. The release checklist owns the backfill sequence and forbids moving the existing tag.\n\nRef polylogue-y8s5\nRef polylogue-6rvt\n\nCo-Authored-By: Claude <[email protected]>
Adversarial review — iteration 2Findings and fixes:
What survived scrutiny: the tag-ref disambiguation, non-latest recovery policy, concise/full revision split, pipx wheel route, Homebrew install/test ordering, and one-Chrome/one-Firefox store manifest contract. Verification: actual v0.2.0 tag SHA equals its GitHub Release target; a simulated mismatched release target rejected; workflow/actionlint/document-command checks passed. Proceeding to an independent iteration 3. |
Problem: docker/metadata-action auto-generates latest from active semver tags, so manual recovery could still retarget latest despite the explicit rule being disabled.\n\nWhat changed: disable automatic latest generation and assert the recovery metadata has no latest tag before any image can be pushed.\n\nRef polylogue-y8s5\n\nCo-Authored-By: Claude <[email protected]>
Adversarial review — iteration 3Finding and fix:
What survived scrutiny: release-target commit binding, explicit tag checkout, concise/full revision contract, pipx smoke, Homebrew formula smoke, extension artifact cardinality and attestation. Verification: workflow checker and actionlint passed; the recovery-latest contract is present and fails before publication if metadata contains Proceeding to an independent iteration 4. |
Problem: the post-publish smoke constructed an image reference from the\ncapitalized GitHub owner, while direct Docker repository paths require\nlowercase components.\n\nWhat changed: use the canonical sinity/polylogue repository name for\nmetadata and smoke pulls.\n\nRef polylogue-y8s5\nRef polylogue-6rvt
Problem: a manually supplied version could rebuild the tap from an\narbitrary PyPI release and overwrite a newer formula.\n\nWhat changed: recovery accepts an immutable release tag, validates it against\nthe GitHub Release target, checks out that tag, and rejects formula\ndowngrades. The recovery documentation now uses the same input.\n\nRef polylogue-y8s5
Adversarial review — iteration 4Findings and fixes:
What survived scrutiny: the no- Verification: Proceeding to an independent iteration 5. |
Adversarial review — iteration 5 (converged)No legitimate gaps found across all 2 beads after iteration 5 review. This cold review rechecked the full Final acceptance matrix
No beads were closed or updated, per lane instruction. The reproducible extension packaged-service-worker fixture failure remains unrelated to these workflow/docs paths; all GitHub Actions failures that stop at billing initialization remain excluded from product verification. |
…803,2787,2798 013x (search-coverage, PR #2803) and g9f2 (write-model, PR #2798) fully satisfied — closed. y8s5 (distribution, PR #2779), ttu (docs-ia, PR #2778), kwsb (PR #2799), and n4hb/c52g/znwj (test-hardening, PR #2787) partially satisfied — noted with disposition, left open per closure-discipline. Co-Authored-By: Claude <[email protected]>
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
…from stored bytes (#6304) Polylogue's `primary` mode on Sinex (architecture 7.1; epic plnext-3sx), and the rebuild proof (joint #7). **The loop builds the index from stored bytes.** A deleted or outdated `index.db` is built again by the same loop from what `archive.db` stored, read by range through `hashed-blobs`, even when the provider file moved or went. This is also what lets a standalone archive rebuild without its files. Two engine tests cover it. **`crates/sinex` (`polylogue-sinex`, behind the `sinex` feature; the default build has no NATS dependency):** - Publish: every input blob is placed into Sinex's content store (same host) and registered as a material; every unit of `archive.db` rows (a revision with its input, extents, observations and blob rows; a note with targets and relations; an excision; a setting; a delivery) travels as a record-batch material plus one `polylogue.rows` event (Sinity/sinex#2779). Frames are named by what they carry, units by their position in write order, so the publish step asks Sinex (`have`, by bisection) and sends only the rest; nothing local records what was sent. - Restore: an empty archive reads its units from the confirmed stream in order, checks each batch whole and contiguous positions, inserts the rows, and takes over the archive's identity and write counter. The loop then builds `index.db` with Sinex's store as an extra blob root. - Daemon: `$XDG_CONFIG_HOME/polylogue/sinex.toml` with `mode = "primary"` adds Sinex's store as a blob root, restores an empty archive named by `archive = "<id>"`, and publishes once a minute. A file that does not parse pauses publishing and never switches mode. - The row codec lives in `polylogue-store::rows` (only the store opens SQLite); `archive.db` now carries an `archive_id`. **Proof** (`crates/sinex/tests/proof.rs`, ignored by default; how to run it is in `docs/development.md`): the Claude Code examples converge standalone, publish to a real `sinexd` over a throwaway PostgreSQL and NATS (a second publish sends nothing), restore into an empty archive, converge with no provider files present, and every session and message comes back identical. Passed (18 s). Verification: `xtask fast`; nextest on store, engine and sinex (56 passed); the proof run against `sinexd` built from Sinex #2779. Not done (follow-ups filed): normalized segments and object-level equivalence keys (joint #3–#5); excision orders across the boundary (joint #6, #19); the pending area that drops local copies once Sinex confirms; tables without `local_seq` (`kept_result`, `variant`, `variant_alignment`, `notice_delivery`) and `delivery_event`s added after their delivery's publish; publishing from another host (bytes over NATS); the real-corpus rebuild before any cutover. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01AcQETkbTfFMr1hgNJ8A3em --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
Completes the release-artifact recovery path for v0.2.0, makes every documented install channel exercise its production packaging route, and attaches verifiable browser-store submission metadata.
Problem
v0.2.0 has a real GitHub tag/release but no release assets, no release/Homebrew tag workflow run, and no PyPI project. Rebuilding from current master could have published newer source under an older release version. The documented pipx and Homebrew install paths had not been exercised by their release workflows, and store archives were not bound to a full source revision.
Solution
Acceptance matrix
Verification
The focused extension build suite has one reproducible unrelated failure: its pre-existing packaged-service-worker fixture expects two page requests and receives one. It does not cover any changed workflow/docs/package-metadata path; its archive-emission tests pass.
No tests were added. The release verifier exercises the production Hatch build configuration and installed console entrypoints; removing a runtime dependency or entrypoint would fail the isolated-wheel smoke. The pipx smoke exercises the documented installer rather than a test wrapper. The Homebrew smoke executes the formula test shipped to users. The extension build uses the production archive builder, and the submission-manifest validation would fail if a required archive or its integrity metadata were removed.