← Back to Pull requests

chore(release): prepare 0.2.2 and correct source packaging #6148

Merged
Astro-Han merged 19 files (285 lines) on Oct 19, 2026 02:23 UTC
View on GitHub
Astro-Han Astro-Han commented on Oct 18, 2026 08:39 UTC
Author

Summary

Prepare Apache Maka 0.2.2 with aligned root, Desktop, CLI and lockfile versions and a changelog covering main since 0.2.1 RC1. Both unreleased versions remain undated while 0.2.1 completes its existing vote. The upgrade notes reflect Host compatibility epoch 224, versus 217 in 0.2.1; Desktop, CLI and remote Hosts must upgrade together. Rust Host and GPUI remain on rust-preview.

Address the four source-package concerns in JB's 0.2.1 IPMC review:

  • Replace the embedded, unchanged QuickJS WASM in run+2.1.4.patch with a source-only placeholder. The existing postinstall script expands it from the pinned, installed dependency into a temporary patch directory and runs patch-package normally. Source verification now rejects Base64-encoded WASM as well as binary files.

  • Correct stale Ant/Semi component references and the provider-utils version in LICENSE.

  • Identify 0.2.0 RC1 explicitly in DISCLAIMER-WIP, retaining its outstanding initial-code authorization disclosure.

  • Preserve Cua's copyright and MIT scope in the two adapted cursor files, separately from Maka's Apache-2.0 modifications.
  • Register the dependency patch installer and its regression test in the existing ASF source CI selection. The planner's existing coverage assertion exposed the missing registration. No runtime behavior or voted 0.2.1 candidate bytes change.

    Verification

  • Original release-preparation base, Node 24 on macOS: clean npm ci, complete workspace build, Desktop typecheck, 227 release checks, 97 ASF source checks and 33 Runtime Code Mode tests passed.

  • Fresh upstream run 2.1.4 tarball: all 11 patched files match the prior installation byte for byte, including repeat application. The install, encoded-WASM and cursor-attribution regressions failed before their fixes.

  • After rebasing onto main 286ffa8206cfaa9f58c0d50e806ab6287c457575: clean npm ci, complete workspace build, all 141 tests in CI's planner/policy step, all 97 ASF source checks and all 227 release checks pass locally. The planner assertion failed before adding the missing registration.

  • Format, lint and diff checks pass. Created and verified an unsigned source preflight from 539843b8ef3c6734dada3dddc8b59976e1a171b2; its fresh extraction passes the header audit (4,551 covered files, 258 reviewed exclusions).

  • Automated review on f61033b5e found no P0–P2 issues. Both P3 documentation notes are addressed in 539843b8e: the patch regeneration guide now documents the source-only placeholder, and the changelog includes #5394, #6073 and #6102. All 97 ASF source checks pass again, and both inline threads are resolved. Independent human review remains required.

  • GitHub Actions on exact head 539843b8ef3c6734dada3dddc8b59976e1a171b2: all 17 reported checks succeeded; installed CLI Eval was skipped by workflow configuration. This includes main CI (workspace and Runtime Host tests, Desktop E2E, browser smoke, Storybook, transcript geometry and CLI packaging), Windows/Linux Desktop packages, native builds, installed CLI validation and released State Root qualification.

  • Full repository tests, native platform acceptance and local E2E were not run locally. PR/main CI and the source-candidate workflow must qualify the selected release commit.
  • RC preparation

    After independent committer review, merge and green CI on the selected main commit, run the source-candidate workflow for 0.2.2. Verify, sign and stage the workflow's exact RC1 bytes and prepare fresh vote emails. The local archive is an unsigned preflight. This PR does not publish a release or close the pending 0.2.1 vote.

    AI use

  • No generative tool made a substantive contribution

  • Generative tooling made a substantive contribution
  • Tool(s) and scope: Codex prepared release metadata, source-package repairs, CI selection and regression tests. All commits carry Generated-by: Codex.

    Checklist

  • Tests cover the change and fail without it

  • Lint, format, typecheck and the affected suites pass locally
  • Does this PR entail a change in behavior?

  • Yes — source packaging and dependency patch installation change as described above; runtime behavior is preserved

  • No
  • Diff: 285 lines (+223 / -62) across 19 files Reviewer: me2seeks Review duration: 1063m
    All Vouch review confidence checks passed
    Residual risk 0.09 = Change Risk (0.65) × (1 − Review Confidence (0.87)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.65 · 285 lines diff across 19 files
    0.65
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.89 · 5 substantive comment(s)
    0.89
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    86%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.338
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    9 items
    Astro-Han Astro-Han commented on code on Oct 19, 2026 01:14 UTC
    Code Review
    CHANGELOG.md:1
    @@ -21,6 +21,40 @@
     
     ## Unreleased
     
    +## 0.2.2 - Unreleased
    +
    +### Added
    +
    +- A personal assistant with indexed memory, durable tasks and an inbox bot for coordinating work (#6004, #6124), and durable observation of event waits (#6113).
    +- Import Cursor sessions through their SQLite history adapter (#6039).
    +- Configured external agents in the model picker, alongside unified model and effort options (#6103, #5789).
    +- Automatic rendering and archiving of chat images, and clearer project, task and execution-location controls (#5969, #6088).
    +
    +### Fixed
    +
    +- Preserve cached replies, new Side Chat sessions and question forms across session switches (#6129, #6111, #5854).
    +- Recover failed message delivery and workspace Skill deletion, retain client tool outcomes, and release settled external executions whose results were rejected (#5058, #6009, #5458, #5823).
    +- Render imported Codex user context without raw envelopes, scope WorkHub tool lookups to the owning turn, and include tool and human evidence in Goal context (#6117, #6096, #6087).
    +- Keep fullscreen editing usable on short terminals, mask fine-grained GitHub tokens, and align connection URL validation with the Host (#6085, #6062, #6098).
    +- Restore image attachments in Codex imports and preserve running tool state when reconnecting (#6118, #6145).

    P3: #5394 (artifact previews invalidated after deletion), #6073 (New project dialog without a name) and #6102 (conversations centered with classic scrollbars) landed after v0.2.1-incubating-rc1 but appear in no changelog section. Consider adding them to this Fixed list.

    Astro-Han Astro-Han commented on code on Oct 19, 2026 01:14 UTC
    Code Review
    LICENSE:1
    @@ -218,7 +218,9 @@ License: Apache-2.0
     These patches modify the execution time policy and its SDK forwarding. The
     Apache License, Version 2.0 above applies. The generated run Worker includes
     embedded third-party code; its upstream notices and license texts are retained
    -in patches/run-2.1.4-notices.md.
    +in patches/run-2.1.4-notices.md. The patch carries no WebAssembly binary:

    P3: This is accurate, but patches/README.md (line 76 and the regeneration recipe) still describes the run patch as carrying the embedded WASM. Regenerating with patch-package would re-embed the Base64 payload unless the maintainer swaps it back to __MAKA_RUN_WASM_BASE64__. Please document that step there.

    Astro-Han Astro-Han commented on Oct 19, 2026 01:14 UTC
    Reviewer

    Automated review notice: This comment was posted by an automated review agent. It is not an independent human review and does not replace one.

    First review. Reviewed range: 286ffa82..f61033b5 (5 commits; merge-base is current main 286ffa8206cf). No prior findings.

    Verdict: No P0–P2 defects found. Two P3 items below; neither blocks merge.

    What I checked

  • Version bumps: root, apps/desktop and packages/cli manifests and the three package-lock.json entries all move 0.2.1 → 0.2.2. That is the same set the 0.2.1 prep (#6077) touched, and #6077 made the version fixtures derive from the manifests. No other first-party 0.2.1 version strings remain. The remaining 0.2.1 hits are third-party crates/packages, a story fixture and docs examples.

  • Upgrade note: the epoch claim is correct: RUNTIME_HOST_COMPATIBILITY_EPOCH is 217 at v0.2.1-incubating-rc1 and 224 on head. No protocol files are touched, so this PR has no epoch impact.

  • Source packaging: I ran node scripts/asf-source-release.mjs create on head (--version 0.2.2) and on main (--version 0.2.1). Both build and self-verify.

  • - Head's patches/run+2.1.4.patch contains no AGFzbQ payload, only the two __MAKA_RUN_WASM_BASE64__ placeholders. The archive is about 730 KB smaller.
    - Running head's verifier on main's archive fails with Compiled artifact .../patches/run+2.1.4.patch has forbidden Base64 WASM content, so the new check catches the original problem.
    - The file lists match except for the new scripts/apply-dependency-patches.test.mjs. LICENSE, NOTICE and DISCLAIMER-WIP are present at the archive root.
  • Install path: I ran a clean npm ci --ignore-scripts plus node scripts/apply-dependency-patches.mjs in separate head and main worktrees (Linux, Node 22.23). All 14 patches apply. The patched node_modules/run tree hashes identically on head and main, so the placeholder expansion reproduces the old bytes exactly. A repeat run exits 0 and the temporary node_modules/.maka-patches-* directory is removed.

  • Legal text:

  • - The LICENSE corrections match the tree. No Ant Design or Semi assets remain in THIRD_PARTY_LICENSES.txt or the sources, and patches/@ai-sdk+provider-utils+5.0.51.patch is the shipped patch.
    - The cursor files now carry the Cua copyright and the MIT/Apache scope, and they are added to the header-audit exclusions. NOTICE stays unchanged, which is consistent with docs/code-origin-audit.md.
    - The new palette comment is accurate: the code returns one fixed brand palette.
  • Tests and lint: all 97 tests in the check:asf-source suite list pass (the check:model-metadata pre-step needs build output and was not run). scripts/ci-test-plan.test.mjs passes 40/40. Biome format and lint are clean on the touched scripts.

  • Scope: every change relates to the release prep or the four IPMC items. Nothing unrelated is included.
  • Findings

  • P3: patches/README.md is stale for the new run patch format. Line 76 still says "The large generated hunk is the inline Worker with unchanged embedded WASM". The regeneration recipe (node node_modules/patch-package/index.js run) would produce a patch with the full Base64 WASM again. Nothing says the payload must be swapped back to __MAKA_RUN_WASM_BASE64__ afterwards. The install script would still apply such a patch, because it only substitutes when the marker is present, and the source verifier would catch it at RC time. Still, the README should document the replacement step.

  • P3: The 0.2.2 changelog misses three user-facing fixes that landed after v0.2.1-incubating-rc1 and appear in no section: #5394 (artifact previews invalidated after deletion), #6073 (New project dialog submits without a name) and #6102 (conversations stay centered with classic scrollbars). The other omitted PRs in range are docs, test, CI, refactor, a dependency bump or nightly-only (#4221), which is reasonable to leave out.
  • CI / mergeability: GitHub reports MERGEABLE, state BLOCKED (review required). On head f61033b5, all completed checks pass, including the four direct-peer builds, the installed-CLI validations on Linux, macOS and Windows, package-linux, windows_recovery and audit. test and package were still pending when this was written and must finish before merge.

    Astro-Han Astro-Han commented on Oct 19, 2026 01:18 UTC
    Author

    Automated follow-up (Codex).

    I've addressed both P3 notes in 539843b8e: the run patch regeneration instructions now explain replacing the unchanged WASM with the source-only placeholder, and the 0.2.2 changelog includes #5394, #6073 and #6102. All 97 ASF source checks pass again. This follow-up changes documentation only; CI is rerunning on the new head.

    Astro-Han Astro-Han commented on code on Oct 19, 2026 01:31 UTC
    Code Review
    CHANGELOG.md:1
    @@ -21,6 +21,40 @@
     
     ## Unreleased
     
    +## 0.2.2 - Unreleased
    +
    +### Added
    +
    +- A personal assistant with indexed memory, durable tasks and an inbox bot for coordinating work (#6004, #6124), and durable observation of event waits (#6113).
    +- Import Cursor sessions through their SQLite history adapter (#6039).
    +- Configured external agents in the model picker, alongside unified model and effort options (#6103, #5789).
    +- Automatic rendering and archiving of chat images, and clearer project, task and execution-location controls (#5969, #6088).
    +
    +### Fixed
    +
    +- Preserve cached replies, new Side Chat sessions and question forms across session switches (#6129, #6111, #5854).
    +- Recover failed message delivery and workspace Skill deletion, retain client tool outcomes, and release settled external executions whose results were rejected (#5058, #6009, #5458, #5823).
    +- Render imported Codex user context without raw envelopes, scope WorkHub tool lookups to the owning turn, and include tool and human evidence in Goal context (#6117, #6096, #6087).
    +- Keep fullscreen editing usable on short terminals, mask fine-grained GitHub tokens, and align connection URL validation with the Host (#6085, #6062, #6098).
    +- Restore image attachments in Codex imports and preserve running tool state when reconnecting (#6118, #6145).

    Automated follow-up (Codex): I've added all three fixes to the 0.2.2 Fixed section in 539843b8e.

    Astro-Han Astro-Han commented on code on Oct 19, 2026 01:31 UTC
    Code Review
    LICENSE:1
    @@ -218,7 +218,9 @@ License: Apache-2.0
     These patches modify the execution time policy and its SDK forwarding. The
     Apache License, Version 2.0 above applies. The generated run Worker includes
     embedded third-party code; its upstream notices and license texts are retained
    -in patches/run-2.1.4-notices.md.
    +in patches/run-2.1.4-notices.md. The patch carries no WebAssembly binary:

    Automated follow-up (Codex): I've updated the regeneration instructions in 539843b8e to replace the unchanged WASM in both Worker diff lines with __MAKA_RUN_WASM_BASE64__, and documented postinstall restoration from the pinned dependency. All 97 ASF source checks pass again.

    me2seeks me2seeks approved these changes on Oct 19, 2026 01:48 UTC
    Approved Reviewer

    AI-assisted review performed with Codex at 539843b8ef3c6734dada3dddc8b59976e1a171b2, submitted under explicit reviewer authorization. No blocking defects found.

    Verified coordinated root/Desktop/CLI versions and lockfile entries, changelog coverage and compatibility epochs (217 to 224), source-only patch expansion, temporary-directory cleanup, source verification, attribution changes and CI selection.

    Local validation: 137 related source/planner tests passed; header audit passed (4,551 covered files, 258 reviewed exclusions); product release identity and diff checks passed. A fresh upstream run@2.1.4 tarball passed first and repeated patch installation. Expanding the placeholder reproduced the previous patch byte for byte. Created and self-verified the unsigned 0.2.2 source candidate from this exact commit.

    At submission, all 17 executed GitHub checks passed, installed CLI Eval was skipped, and both prior review threads were resolved. Full local workspace builds and native platform/E2E acceptance were not rerun; those are covered by the reported hosted checks. This automated review does not replace independent human release review or qualify signed release bytes.

    M4n5ter M4n5ter approved these changes on Oct 19, 2026 01:53 UTC
    Approved Reviewer

    <details open>
    <summary>English</summary>

    Looks good to me on 539843b8e. I didn’t find any correctness or maintainability concerns in the changed code.

    The temporary patch directory is a straightforward way to keep the committed patch source-only while reusing patch-package. Cleanup stays in finally, and the regression test runs the actual installer twice and checks both the installed bytes and the unchanged source patch. The extraction regex is tied to run@2.1.4, but that seems reasonable for a pinned dependency, especially since a format mismatch fails the install explicitly.

    I also verified that the expanded patch matches the previous patch byte for byte, and that the source archive can be created, verified and reproduced. The 97 source-related tests and 40 CI planner tests passed locally. I haven’t run a fresh full install/build or platform E2E locally.

    </details>

    <details>
    <summary>中文</summary>

    看过 539843b8e,这版我没有发现正确性或可维护性方面的问题。

    临时补丁目录的处理比较直接:既能让仓库里的补丁保持纯源码,又能继续复用 patch-package。清理放在 finally,回归测试也实际执行安装脚本两次,检查安装后的字节和原补丁保持不变。提取正则确实绑定了 run@2.1.4 的格式,不过对于锁定版本的依赖,这个约束是合理的,格式不匹配时也会明确终止安装。

    另外确认了还原后的补丁与旧补丁逐字节一致,源码归档可以生成、校验并重建。本地 97 个源码相关测试和 40 个 CI 规划测试通过;没有在本地做全新完整安装、构建或平台 E2E。

    </details>

    Reviewers
    Assignees
    Astro-Han Astro-Han
    Labels
    risk: low confidence: 86.9% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 65.4% (HIGH) · Higher = larger blast radius
    65.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 86.9% · Lower = rushed or shallow review
    86.9%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 8.6% · Safe to merge
    8.6%
    Repository