Skip to content

chore(release): prepare 0.40.0-beta.3 - #624

Merged
mohanagy merged 3 commits into
nextfrom
agent/release-0.40.0-beta.3
Jul 29, 2026
Merged

mohanagy merged 3 commits into
nextfrom
agent/release-0.40.0-beta.3

Conversation

@mohanagy

@mohanagy mohanagy commented Jul 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • prepare @lubab/madar@0.40.0-beta.3 for npm dist-tag next
  • preserve the immutable [Bug]: beta.2 full-flow retrieval remains prompt-sensitive and misses async pipeline handoffs #622 receipt and record beta.3 separately at 102 files / 158,330 packed / 639,914 unpacked bytes
  • require the tag to equal the exact protected next tip and recheck protection immediately before Trusted Publishing
  • create and verify the GitHub prerelease against the exact release SHA instead of main
  • keep npm latest, stable release, MCP Registry publication, tags before merge, and main outside scope

Exact candidate:

  • base: 6416dbc02cefb3bd79157cf440e420b30dda8cf0
  • head: eb4c52071cf963940a3164455af094c34e43bf35
  • tree: dad194c0a39f85c8b202ce3043d0259b920c4b60
  • package SHA-1: c72c5f786dd07aff16f3ef4990bb4d166a197791
  • package integrity: sha512-ulfQ/bNBKz5VDzErYke1hsk3xIxoZtaJKZlN/lsRb60Tq7wvUnFFlxFR2sdkRQ9HBNBWgc/vhpcCgVvdPEk1lw==
  • package SHA-256: f3b74abf196c790fb65389a6dc93f8574a655943315553f2097d82f91974c787

Testing

  • release hygiene and Registry metadata validation
  • typecheck, production build, and evaluation build
  • 74 test files / 630 tests under coverage
  • focused Core Reset governance and release tests: 29/29 on the exact head
  • packed retrieval parity and package isolation
  • dependency audit, 75 verified registry signatures, and 27 verified attestations
  • exact npm 12.0.1 package receipt independently reproduced

Core Reset contract

  • RFC requirement: publish beta.3 only from one exact reviewed protected-next commit under npm next
  • Parent issue: [Bug]: beta.2 full-flow retrieval remains prompt-sensitive and misses async pipeline handoffs #622 owner publication receipt
  • Removal-manifest IDs: retrieval-regression-622, current release_candidate
  • Exit gate: six exact-head CI jobs, independent no-blocker review, honest CodeRabbit disposition, zero unresolved threads, protected next
  • Production LOC added: 0
  • Production LOC removed: 0
  • Net production LOC: 0
  • Superseded paths deleted: none; release/governance metadata only

Reset scope checks

  • This PR is governed by accepted RFC [RFC]: Madar Core Reset — narrow TypeScript semantic-path engine #577 and the exact owner receipt
  • No permanent fallback or parallel implementation was added
  • No evaluation-repository-specific production logic was added under src/
  • Production does not import development-only evaluation tooling
  • The removal manifest and scorecard were updated
  • No src/**, dependency, graph/index, retrieval, CLI, or MCP behavior changed

Checklist

  • I updated docs for the user-visible prerelease
  • I updated tests for the release contract
  • This PR includes no private corpora, secrets, credentials, proprietary prompts, sensitive raw logs, or accidental generated artifacts
  • This PR is focused on the beta.3 release candidate
  • npm latest, stable release, MCP Registry publication, and main remain untouched

Merge and publication gate

GitHub currently reports next as unprotected. This PR must not merge, and no release tag may be pushed, until next is protected. After that, merge requires all six exact-head CI jobs green, independent no-blocker review, CodeRabbit's actual disposition stated honestly, and zero unresolved review threads. Publication is then allowed only from the exact merged next tip through the tag-triggered Trusted Publishing workflow.

Related issues

Refs #622. Owner authorization: #622 (comment)

@coderabbitai

coderabbitai Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The release is advanced from 0.40.0-beta.2 to 0.40.0-beta.3. Release validation now checks protected next, package integrity, and the exact release target commit, while governance records, package metadata, documentation, and tests are updated for retrieval regression #622.

Changes

Beta.3 release preparation

Layer / File(s) Summary
Release workflow validation
.github/workflows/release.yml, tests/unit/release-hygiene.test.ts, docs/release.md
Release automation authorizes beta.3, authenticates exact-tip checks, requires protected next, verifies updated package hashes, and pins the GitHub release to GITHUB_SHA.
Core Reset governance state
docs/core-reset/*, docs/designs/..., docs/roadmap.md, docs/claims-and-evidence.md, tests/unit/core-reset-governance.test.ts
Governance records mark retrieval regression #622 complete and beta.3 preparation authorized, with updated completion evidence, package metrics, commits, and publication boundaries.
Package and release metadata
package.json, package-lock.json, docs/mcp-registry/server.json, sbom.cdx.json, CHANGELOG.md, README.md
Package, registry, SBOM, changelog, and README references are updated for 0.40.0-beta.3.
Current-release package verification
.github/scripts/verify-packed-retrieval-parity.mjs
Packed retrieval parity checks now validate package measurements and artifact identity against manifest.current using current-release error terminology.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

  • mohanagy/madar#464: Added release-hygiene verification infrastructure related to the workflow and hygiene tests updated here.
  • mohanagy/madar#557: Introduced the packed retrieval parity verification path updated here.
  • mohanagy/madar#617: Previously updated release-workflow gating and beta-version verification expectations.

Suggested labels: core-reset

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title is concise and accurately summarizes the main change: preparing the 0.40.0-beta.3 release.
Description check ✅ Passed The description includes the required sections and enough release, testing, and Core Reset details to meet the template.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/release-0.40.0-beta.3

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/release.yml (1)

235-245: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Use the tag-derived commit as the release source of truth. In .github/workflows/release.yml and tests/unit/release-hygiene.test.ts, --target "$GITHUB_SHA" and the .target_commitish assertion are redundant here; the existing tag checks already cover the actual release commit. Drop those two checks and keep the tag dereference assertions.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/release.yml around lines 235 - 245, Use the release tag as
the source of truth by removing --target "$GITHUB_SHA" from the gh release
create invocation and deleting the .target_commitish assertion while retaining
the .tag_name validation. Apply the corresponding cleanup in
.github/workflows/release.yml lines 235-245 and
tests/unit/release-hygiene.test.ts lines 161-162; keep the existing tag
dereference checks in both sites.

Source: MCP tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/core-reset/scorecard.md`:
- Line 49: Update the opening of the scorecard line so it does not begin with an
unescaped issue number: change the `#622 is complete on `next`` wording to start
with `Issue `#622``, while preserving the remainder of the status details
unchanged.

In `@tests/unit/release-hygiene.test.ts`:
- Around line 141-148: Update the releaseWorkflow assertions in release-hygiene
tests to also verify the beta.3 EXPECTED_INTEGRITY value, alongside the existing
shasum assertion. Use the exact updated integrity constant from the workflow so
both immutable artifact identifiers are covered.

---

Outside diff comments:
In @.github/workflows/release.yml:
- Around line 235-245: Use the release tag as the source of truth by removing
--target "$GITHUB_SHA" from the gh release create invocation and deleting the
.target_commitish assertion while retaining the .tag_name validation. Apply the
corresponding cleanup in .github/workflows/release.yml lines 235-245 and
tests/unit/release-hygiene.test.ts lines 161-162; keep the existing tag
dereference checks in both sites.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: d571f10c-98f5-4007-a7a0-bae5c1a44b10

📥 Commits

Reviewing files that changed from the base of the PR and between 6416dbc and 26636df.

📒 Files selected for processing (15)
  • .github/workflows/release.yml
  • CHANGELOG.md
  • README.md
  • docs/claims-and-evidence.md
  • docs/core-reset/removal-manifest.yml
  • docs/core-reset/scorecard.md
  • docs/designs/2026-07-19-core-reset.md
  • docs/mcp-registry/server.json
  • docs/release.md
  • docs/roadmap.md
  • package-lock.json
  • package.json
  • sbom.cdx.json
  • tests/unit/core-reset-governance.test.ts
  • tests/unit/release-hygiene.test.ts

Comment thread docs/core-reset/scorecard.md Resolved
Comment thread tests/unit/release-hygiene.test.ts Resolved
@mohanagy

Copy link
Copy Markdown
Owner Author

Independent exact-head review receipt

Reviewed head f6eb4d74f426d42a9d7bd4eb64ae054707792a85, tree b5b10773fe901f712e3c6b22cb11d01eb8ac6e36, against base 6416dbc02cefb3bd79157cf440e420b30dda8cf0.

Result: no code blocker.

  • independently reproduced npm 12.0.1 artifact: 102 files / 158,330 packed / 639,914 unpacked bytes
  • exact SHA-1 c72c5f786dd07aff16f3ef4990bb4d166a197791, integrity sha512-ulfQ/bNBKz5VDzErYke1hsk3xIxoZtaJKZlN/lsRb60Tq7wvUnFFlxFR2sdkRQ9HBNBWgc/vhpcCgVvdPEk1lw==, and SHA-256 f3b74abf196c790fb65389a6dc93f8574a655943315553f2097d82f91974c787
  • immutable [Bug]: beta.2 full-flow retrieval remains prompt-sensitive and misses async pipeline handoffs #622 candidate receipt remains unchanged; beta.3 uses the separate current release receipt
  • protected-next is checked at workflow start and again immediately before npm publication
  • zero src/**, dependency, or build-config changes
  • focused governance/release tests: 29/29 passed

External blocker remains: live GitHub reports next as unprotected. Do not merge, tag, or publish until protection is enabled. Exact-head CI and CodeRabbit remain separate gates.

@mohanagy

Copy link
Copy Markdown
Owner Author

Review follow-up at head eb4c52071cf963940a3164455af094c34e43bf35:

  • fixed the Markdown lint finding by changing the leading issue reference to Issue #622
  • added the exact beta.3 integrity assertion beside the shasum assertion
  • focused governance/release tests pass 29/29; both review threads are resolved

The outside-diff suggestion to remove --target "$GITHUB_SHA" and the .target_commitish assertion is intentionally not applied. The prior beta.1/beta.2 GitHub prerelease records used target_commitish: main even though their tags pointed at next; this release is explicitly forbidden from targeting main. The exact target plus API assertion closes that metadata gap while the tag dereference remains independently verified.

@mohanagy

Copy link
Copy Markdown
Owner Author

Independent review follow-up: exact final head eb4c52071cf963940a3164455af094c34e43bf35, tree dad194c0a39f85c8b202ce3043d0259b920c4b60, has no code blocker. The delta after the prior independent pass is limited to corrected scorecard wording plus matching governance/integrity assertions; focused tests pass 29/29. Protected next and the remaining exact-head automation gates still apply.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/release.yml (1)

243-243: 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Drop the target_commitish check here. GitHub ignores --target for an existing tag, so this post-create assertion doesn’t prove the release matches the tag commit. The tag dereferences above already cover that; remove the --target/.target_commitish checks to avoid a false failure after the release is published.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/release.yml at line 243, Remove the --target "$GITHUB_SHA"
option from RELEASE_FLAGS and remove the subsequent .target_commitish validation
in the release creation flow. Keep the existing tag dereference checks and all
other release flags unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In @.github/workflows/release.yml:
- Line 243: Remove the --target "$GITHUB_SHA" option from RELEASE_FLAGS and
remove the subsequent .target_commitish validation in the release creation flow.
Keep the existing tag dereference checks and all other release flags unchanged.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ab32c65f-4aed-4bc9-826c-46d9f31c9e44

📥 Commits

Reviewing files that changed from the base of the PR and between 26636df and f6eb4d7.

📒 Files selected for processing (5)
  • .github/scripts/verify-packed-retrieval-parity.mjs
  • .github/workflows/release.yml
  • docs/core-reset/removal-manifest.yml
  • tests/unit/core-reset-governance.test.ts
  • tests/unit/release-hygiene.test.ts

@mohanagy

Copy link
Copy Markdown
Owner Author

Beta.3 exact-head pre-merge gate receipt

  • Candidate head: eb4c520
  • Candidate tree: dad194c0a39f85c8b202ce3043d0259b920c4b60
  • Base: next at 6416dbc
  • CI: all six required matrix jobs succeeded on run 30460239210: Ubuntu, macOS, and Windows on Node 20 and Node 22.
  • Independent review: no blocker on this exact head (chore(release): prepare 0.40.0-beta.3 #624 (comment)).
  • CodeRabbit: SUCCESS. Its two valid inline findings were fixed; both review threads are resolved. Its repeated suggestion to remove the explicit GitHub Release target was rejected because the release must not target main and earlier prerelease metadata did so incorrectly.
  • Review threads: 0 unresolved.
  • Package receipt: 102 files; 158330 packed bytes; 639914 unpacked bytes; SHA-1 c72c5f786dd07aff16f3ef4990bb4d166a197791; artifact SHA-256 f3b74abf196c790fb65389a6dc93f8574a655943315553f2097d82f91974c787.

STOP: GitHub currently reports next as protected=false and no active ruleset targets refs/heads/next. No merge, tag, npm publication, GitHub Release, Registry publication, stable release, or main mutation has occurred. Publication remains paused until the owner explicitly authorizes creation of the required next protection ruleset.

@mohanagy

Copy link
Copy Markdown
Owner Author

Owner-authorized next protection activation receipt

Ruleset protect-next-prerelease (ID 19978840) is active on exact ref refs/heads/next with no bypass actors. GitHub now reports next protected=true. It requires PRs, squash-only merge, the six CI matrix contexts, resolved review threads, and blocks deletion and non-fast-forward updates.

Immediately before merge, PR #624 remains open and mergeable on exact head eb4c520 and tree dad194c0a39f85c8b202ce3043d0259b920c4b60; all six CI jobs and CodeRabbit are successful; unresolved review threads remain zero. Proceeding through the protected merge path without bypass.

@mohanagy
mohanagy merged commit ece7d0d into next Jul 29, 2026
7 checks passed
@mohanagy

Copy link
Copy Markdown
Owner Author

@lubab/madar@0.40.0-beta.3 publication completion receipt

  • Protected branch ruleset: protect-next-prerelease, ID 19978840, active on refs/heads/next with no bypass actors.
  • PR: chore(release): prepare 0.40.0-beta.3 #624 merged through the protected squash-only path.
  • Merge commit: ece7d0d
  • Merge tree: dad194c0a39f85c8b202ce3043d0259b920c4b60, exactly matching the reviewed candidate tree.
  • Annotated tag object: 4a55ab0182afe2aa377b8be27de95c0327e5d3c1
  • Tag v0.40.0-beta.3 peels to the exact protected next merge commit.
  • Release workflow: SUCCESS, https://github.com/mohanagy/madar/actions/runs/30462907772
  • npm version: @lubab/madar@0.40.0-beta.3
  • npm dist-tag next: 0.40.0-beta.3
  • npm dist-tag latest: 0.32.0, unchanged
  • npm SHA-1: c72c5f786dd07aff16f3ef4990bb4d166a197791
  • npm integrity: sha512-ulfQ/bNBKz5VDzErYke1hsk3xIxoZtaJKZlN/lsRb60Tq7wvUnFFlxFR2sdkRQ9HBNBWgc/vhpcCgVvdPEk1lw==
  • npm unpacked size: 639914 bytes
  • npm exposes SLSA provenance; fresh install verified registry signatures and one attestation and reported madar 0.40.0-beta.3.
  • GitHub prerelease: https://github.com/mohanagy/madar/releases/tag/v0.40.0-beta.3
  • GitHub Release target: ece7d0d
  • MCP Registry publication was not dispatched.
  • No stable release was published and no main-targeting operation was performed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant