Skip to content

chore(release): v6.7.0 - #2837

Merged
sunhaolin merged 4 commits into
mainfrom
claude/release-v6.7.0
Nov 27, 2026
Merged

sunhaolin merged 4 commits into
mainfrom
claude/release-v6.7.0

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

repo:hotcrm#2 · sunhaolin · session_local9776f3cdfe35469db129b1cffa06231d

Clause-②: no
Metadata-protocol: none
Metadata-impact: reviewer — the version and dependencies range of the seven package manifests only; no object, field, permission, flow or page changes

维护者速读

  • 用户能看到什么变化:应用市场上的 HotCRM 升到 6.7.0;从 6.6.0 升上来的客户会得到发票与回款并行、「未回款」「未开票」取代应收余额、合同有了名称和形式、订单上的确认/完成/取消按钮、订单从草稿改为已确认时总金额不能低于已回款或已开票,以及线索、工单、项目改用平台默认记录页;市场说明重写成 7,775 字,升级步骤全部写在开头。
  • 为什么做:本席位在 2026-11-27 收到发 6.7.0 的要求(先开发版 PR,合并后打标签),把 6.6.0 之后攒下的 30 个 changeset 一起发出。平台仍是 ObjectStack 18.6.0,宿主不用升级。
  • 出错会怎样:升级后管理员要运行两条平台命令和三个脚本;不运行的话,升级前保存的订单、合同、回款计划和客户上「未回款」「未开票」为空,直到该记录下次保存,合同也没有形式和名称。跳过第 1 条命令或先运行第 2 条,已有确认订单的合同会按合同金额而不是订单金额计算,客户汇总里还可能把同一笔生意算两次;第 2 条命令默认只填空值,再跑一遍改不掉这些旧值(从代码读出,没有实测)。合并本身可以直接回退;打标签后版本会自动发布到 staging 应用市场,本仓库没有撤回已发布版本的流程。
  • 要你做什么:审核并放行合并。合并后、主干上落任何东西之前,本席位在合并提交上打 v6.7.0 标签(已受托);生产市场发布和托管环境升级仍是你的。本 PR 开出之后 feat(o2c): confirming again refuses a Total Price below what the order invoiced or received (#2827) #2836(卡片 Sales orders: confirming again refuses a new Total Price below what was already invoiced or received #2827)先落到了主干,本分支已并入主干并把它的 changeset 一起用掉;合并之前再有带 changeset 的 PR 落到主干,本分支要再生成一次。feat!: move to ObjectStack 19.0.0-next.0 and protocol 19 #2820(升到 ObjectStack 19)要排在标签之后。

What changes

Files touched

CHANGELOG.md · package.json · src/sales/index.ts · src/service/index.ts · src/revenue/index.ts · src/marketing/index.ts · src/o2c/index.ts · src/expense/index.ts · src/psa/index.ts · README.md · README.zh-CN.md · docs/STATUS.md · docs/RELEASE_STRATEGY.md · docs/ARCHITECTURE.md · content/docs/(start)/whats-new.mdx · content/docs/(start)/whats-new.zh-Hans.mdx · content/docs/(start)/whats-new.zh-Hant.mdx · the 30 consumed .changeset/*.md (deleted).

Read first

  1. CHANGELOG.md, the ## 6.7.0 opening (items 1 to 10): the upgrade steps the listing carries.
  2. content/docs/(start)/whats-new.mdx, "Check these before and after upgrading to 6.7.0".
  3. src/psa/index.ts: the one manifest with two ranges.
  4. What changed since the first review (head a61998af): git diff 673657a0 0d547b45 is the whole of it: the deleted changeset, one new bullet and seven added sentences; 673657a0 is the merge of main. What the second review (head fb4bb1a9) asked for is git diff fb4bb1a9 0d547b45: the bullet reworded, and one sentence in the Integrations check of each whats-new page.

Two-minute check: node --input-type=module -e "import {readFileSync} from 'fs'; import {releaseNotesFromChangelog, describeReleaseNotes} from './scripts/lib/marketplace-release-notes.mjs'; console.log(describeReleaseNotes(releaseNotesFromChangelog(readFileSync('CHANGELOG.md','utf8'),'6.7.0')))" prints release notes: 7775 chars · sections 6.7.0, with no truncation.

Tests

No test changed. pnpm verify ran the whole suite on the tree of 0d547b45: Test Files 342 passed (342), Tests 6569 passed | 58 skipped (6627). The one test file more than at a61998af is #2836's test/sales-order-reconfirm-floor.test.ts.

Acceptance notes

Verification

  • pnpm verify on the tree of 0d547b45 (fb4bb1a9 + the commit that answers the second review; run just before that commit, and no tracked file changed in between): exit 0, about 300 s. validate (HotCRM v6.7.0, Data: 38 Objects 638 Fields, UI: 6 Apps 32 Views 4 Pages 7 Dashboards 10 Reports 56 Actions, Logic: 55 Flows, Security: 18 Positions 13 Permissions, the counts STATUS carries; feat(o2c): confirming again refuses a Total Price below what the order invoiced or received (#2827) #2836 moved none of them) → typecheck → lint → hygiene (✓ source hygiene clean) → build → test. Run directly on a local seat, not under os-verify-lock.
  • pnpm publish:marketplace:dry-run (exit 0): packages 7, release notes: 7775 chars · sections 6.7.0, body keys version, bundle, release_notes, auto_approve, ✓ published version 6.7.0 (dry run).
  • release.yml's refusal, mirrored: find .changeset -maxdepth 1 -name '*.md' ! -name 'README.md' lists nothing, and package.json reads 6.7.0.
  • CI reports on this PR. Nothing was skipped or quarantined.

After merge: this seat tags v6.7.0 on this PR's merge commit before anything else lands on main (a later changeset makes release.yml refuse the tag). The tag starts release.yml and publish-staging.yml (https://cloud.objectos.app). publish-production.yml (dry-run first) and the hosted environment upgrades stay the maintainer's.

🤖 Generated with Claude Code

`pnpm changeset:version` consumes the 29 pending changesets (6 minor,
21 patch, 2 empty), so package.json goes 6.6.0 -> 6.7.0 and CHANGELOG.md
gains `## 6.7.0`. The section is rewritten for the marketplace listing:
it opens with the 18.6.0 requirement (the host needs no upgrade), the
two platform commands and three scripts an administrator runs once
after the upgrade, and the five checks, then groups every user-facing
change.

The seven package manifests declare 6.7.0 and the modules' ranges
^6.7.0; the README badges, STATUS, RELEASE_STRATEGY, ARCHITECTURE and
the whats-new pages in three locales follow.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
hotcrm Ignored Ignored Nov 27, 2026 11:08am UTC

Request Review

@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR ships nothing to users (pure CI/docs chore) — changeset gate waived label Nov 27, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation dependencies Dependency bumps and lockfile changes labels Nov 27, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:hotcrm#2 · sunhaolin · session_local9776f3cdfe35469db129b1cffa06231d

独立评审 · 2026-11-27T10:30Z

Verdict: PASS WITH FINDINGS · declared class reviewer: confirmed

  • head: a61998afef3cfa2154e6b0d2a97228535c04bca0, one commit on main 3459c684
  • Implemented-by: this seat (the session in the line above)
  • Reviewed-by: a separate read-only subagent of this seat. It took no part in the change, formed its view from the diff and the 29 consumed changesets first, and then read the PR body as claims to check. This seat gave it no conclusion of its own.
  • Class: under src/ the diff touches only the version string and the dependency ranges of the seven manifests.
  • CI when this was written: 20 checks passed, none failed, none pending; Check Changeset skipped (label skip-changeset).

评审结论

  • 改了什么:把版本号从 6.6.0 升到 6.7.0(package.json、七个应用包的清单、两个 README 徽章、docs/STATUS.md、docs/RELEASE_STRATEGY.md、docs/ARCHITECTURE.md),删掉 29 个已用掉的 .changeset/*.md,在 CHANGELOG.md 写入手工压缩的 ## 6.7.0 一节,并在三种语言的 whats-new 页面加了 v6.7.0 一节;src/ 下只改了版本号和依赖范围。
  • 为什么、谁要求的:PR 正文说"本席位在 2026-11-27 收到发 6.7.0 的要求",这次没有发版卡片(6.5.0 的 chore(release): v6.5.0 #2563 和 6.6.0 的 chore(release): v6.6.0 #2741 都有);是谁提的要求、以及"合并后由本席位打 v6.7.0 标签(已受托)"这项委托,在仓库和 GitHub 上都查不到依据,需要维护者本人确认。
  • 最坏情况与能否撤回:只合并不会发布任何东西,一个提交可以直接回退;推送 v6.7.0 标签后会建 GitHub Release 并把 6.7.0 发布到 staging 应用市场(https://cloud.objectos.app),标签和 Release 能删,但仓库里没有撤回已发布版本的流程。升级后管理员若不按顺序跑 os migrate summary-nulls --apply 和 os migrate stored-expressions … --apply,升级前保存的订单、合同、回款计划、客户上的「未回款」「未开票」是空的;跳过第 1 步或先跑第 2 步,已有确认订单的合同会按合同金额而不是订单金额算,在客户汇总里还可能被算两次,这是错数而不是空值;托管环境的客户自己跑不了这些命令,发版说明没写托管环境怎么办。
  • 评审没有验证什么:没有运行 pnpm verify、pnpm build、pnpm publish:marketplace:dry-run(只看到 PR 上 CI 全部通过);没有实际做一次 6.6.0 到 6.7.0 的升级并跑第 1 到 5 步;没有验证托管环境升级时会不会自动填好新字段;没有核实"自动生成的那一节是 38,649 字节";没有核实应用市场能否下架已发布的版本;没有核实是谁要求发版和打标签的委托。

Findings

The reviewer found no real defect: every command, object name, script, argument, label, button, reason code and removed page in CHANGELOG.md ## 6.7.0 matches the 29 changesets and the source at head. None of the findings below blocks the merge. It asks that 1 and 2 be settled before the tag, because the tag publishes these notes as the staging listing.

  1. No instruction for a hosted environment (CHANGELOG.md:7-13, content/docs/(start)/whats-new.mdx:60-61 and the two Chinese pages). Steps 1 to 5 are commands and scripts an administrator runs against a database or an org of their own. The 6.6.0 notes had separate "Self-hosted:" and "Hosted:" items (CHANGELOG.md:62-63); these say nothing for a hosted tenant.
  2. Steps 1 and 2 do not say why the order matters, and omit --yes. Without a terminal, --apply alone writes nothing. If step 2 runs first, or a contract is saved before step 1, a contract with confirmed orders is based on its Contract Value and also matches COUNTED_CONTRACT, so the account can count the deal through both its order and its contract: wrong figures, not empty ones (read from src/o2c/extensions/contract-account.extension.ts, not run). A payment plan step's Open was a formula at v6.6.0 and is a stored field now (src/o2c/objects/billing_milestone.object.ts:150-161), so a figure that showed before the upgrade is empty on old steps until step 2.
  3. The section is written by hand, and the rule text says release notes come from the changesets (docs/RELEASE_STRATEGY.md:25 and :51, docs/PRIORITIES.md:79, AGENTS.md:317). chore(release): v6.5.0 #2563 and chore(release): v6.6.0 #2741 did the same and this PR says so: the 29 changeset bodies are 38,807 bytes and the listing takes 8,000 characters.
  4. Details of the Invoices and payments run in parallel: unlink them, show Unpaid and Uninvoiced instead of Receivable Balance, measure overdue on the payment plan, and generate a plan step when an order is confirmed #2806 changeset that the section drops: the shipped CRM User and Project Team Member permission sets hide Unpaid and Uninvoiced on the account (item 6 covers only a permission set of your own); the payment plan no longer shows Invoiced and the invoice page no longer lists payments; step 1 also fills Linked Order Amount.
  5. CHANGELOG.md:17 gives the new reason codes only, not the value they replace (AGENTS.md:330-333 asks FROM and TO for a breaking change); the three whats-new pages leave the reason sentence out.
  6. docs/MAINTENANCE.md:115-121 contradicts step 1: it says os migrate summary-nulls does not apply to HotCRM. The PR says so; reported as Docs: docs/MAINTENANCE.md says os migrate summary-nulls does not apply to HotCRM; the app declares roll-up fields and the 6.7.0 notes tell administrators to run it #2835.
  7. A minor bump for a release that removes a field and needs migration steps. The Compatibility Policy in docs/RELEASE_STRATEGY.md lists removed fields and migration-required behaviour under Major. The level was computed from the changesets, as for 6.6.0.
  8. The PR body said the PR carries skip-changeset only; it carries three labels.
  9. The PR body's 「出错会怎样」 left out the wrong-figure case of finding 2.
  10. Nit: whats-new.zh-Hans.mdx:35 writes 「销售应用」 where older sections of the same page (lines 135 and 185) write 「Sales 应用」, and whats-new.zh-Hant.mdx:37 writes 「Sales 應用」.
  11. Nit, already on main: the zh-Hant page mixes 回款計畫 and 回款計劃.

What this seat did with them

Landing: the PR stays a draft. This seat has not taken it out of draft and has armed nothing. After it lands, the v6.7.0 tag goes on its merge commit before anything else lands on main.

sunhaolin and others added 3 commits November 27, 2026 11:45
#2836 landed on main after the release PR opened, with a 30th
changeset (minor). The branch merged main; this commit removes
.changeset/2827-reconfirm-total-floor.md and writes its line into the
6.7.0 notes: one bullet under Order to Cash and one sentence in the
Integrations check of CHANGELOG.md, and one sentence in the Orders item
of the whats-new page in three locales.

`changeset version` on a copy of c9d500f computes 6.7.0 from all 30
changesets (7 minor, 21 patch, 2 empty), so the version stands. The
marketplace listing reads 7,738 of 8,000 characters, nothing omitted.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The v6.7.0 notes said a first confirm is not checked. The rule judges
every move from Draft to Confirmed (src/o2c/extensions/sales-order.extension.ts),
and a payment or an invoice can name an order that is still Draft: on the
booted app a never-confirmed order at 8,000 with 10,000 received is refused
on its first confirm.

- CHANGELOG.md, 6.7.0, Order to Cash: the bullet says only the move from
  Draft to Confirmed is checked, a first confirm included.
- whats-new (en, zh-Hans, zh-Hant): the Integrations check lists the
  refusal, as CHANGELOG item 9 already does.

The marketplace listing is 7,775 of 8,000 characters, nothing omitted.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:hotcrm#2 · sunhaolin · session_local9776f3cdfe35469db129b1cffa06231d

独立评审(第二轮) · 2026-11-27T11:16Z

Verdict: PASS WITH FINDINGS (both reads) · declared class reviewer: confirmed

  • head: 0d547b45071c52b086e16caa17fbe9806d8eb1fe. Since the first record (head a61998af) the branch gained the merge of main c9d500f5 (673657a0), fb4bb1a9 (takes Sales orders: confirming again refuses a new Total Price below what was already invoiced or received #2827 into 6.7.0) and 0d547b45 (wording).
  • Implemented-by: this seat (the session in the line above)
  • Reviewed-by: two separate read-only subagents of this seat. Neither took part in the change.
  • Class: unchanged. Under src/ the PR still touches only the version string and the dependency ranges of the seven manifests. The two commits after the merge touch CHANGELOG.md, the three whats-new pages and one deleted changeset.
  • CI when this was written: 17 checks passed, none failed, 2 still running; Check Changeset skipped (label skip-changeset).

评审结论

  • 改了什么:第一轮评审(head a61998af)之后,分支并入了主干 c9d500f5(feat(o2c): confirming again refuses a Total Price below what the order invoiced or received (#2827) #2836,卡片 Sales orders: confirming again refuses a new Total Price below what was already invoiced or received #2827),删掉它带来的第 30 个 changeset,在 CHANGELOG.md 的 ## 6.7.0 一节和三种语言的 whats-new 页面写入「确认订单时,总金额低于已回款或已开票会被拒绝」;随后按本轮评审意见改了 4 个文件里的 5 行措辞。版本号仍是 6.7.0,src/ 下没有新的改动。
  • 为什么、谁要求的:feat(o2c): confirming again refuses a Total Price below what the order invoiced or received (#2827) #2836 在本 PR 开出之后先落到了主干并带着一个 changeset,不把它并进来用掉,release.yml 会拒绝 v6.7.0 标签。措辞修改来自本轮评审的第 A1、A2 条。发版本身是谁要求的,仍如第一轮记录所说,需要维护者本人确认。
  • 最坏情况与能否撤回:和第一轮相同:合并本身可以直接回退;打标签后 6.7.0 会发布到 staging 应用市场,仓库里没有撤回已发布版本的流程。本轮新增的风险只在文字上:发布说明把这条规则写错的话,集成方会按错误的预期调用接口。现在的写法已经用实测核对过。
  • 评审没有验证什么:两次评审都没有运行测试和文档守卫(当时工作区里正在跑 pnpm verify),「首次确认也会被检查」是读代码得出的,之后由本席位实测补上(见下);没有核对 ja、es 文本和 MDX 渲染;导入是否受这条规则约束只是推断;第一轮记录里列出的未验证事项(托管环境、实际升级、应用市场能否下架)仍然没有验证。

Findings

Read A, a61998af..fb4bb1a9. No blocker. It asked for two wording fixes before the merge.

  • A1, should-fix: CHANGELOG.md:26 said "A first confirm is not checked". The rule has no such term: src/o2c/extensions/sales-order.extension.ts fires on any update that moves draft to confirmed with the figure above the total. The changeset qualified the sentence ("A first confirm (nothing invoiced or received)") and the release notes had dropped the qualifier. A payment or an invoice can name a Draft order that was never confirmed (no order-status check in payment.hook.ts, invoice.hook.ts or _row-stamp.ts), so such an order can be refused. Read, not run. The bullet also contradicted item 9 of the same section, which was right.
  • A2, should-fix (low): the whats-new Integrations check left out the new refusal that item 9 of CHANGELOG.md lists (whats-new.mdx, .zh-Hans.mdx, .zh-Hant.mdx).
  • A3, note: on whats-new.zh-Hant.mdx the words 總金額, 已回款 and 已開票 are the zh-CN pack labels in Traditional characters, as the page's standing sentence says; feat(o2c): confirming again refuses a Total Price below what the order invoiced or received (#2827) #2836's own zh-Hant manual page uses the English labels. Optional alignment only.
  • A4, note: fb4bb1a9 edits CHANGELOG.md by hand and deletes a changeset by hand, against the letter of docs/RELEASE_STRATEGY.md. It follows a61998af and the 6.6.0 release. Running changeset version again on 6.7.0 with a minor changeset would cut 6.8.0 (inferred).
  • A5, note: the bullet leaves things out and gets none wrong: the refusal shows on Total Price and names the figure, the remedy, the rule's module, that Invoiced counts issued invoices only, that an empty total counts as 0.

Clean in Read A: labels in English and zh-CN against the packs; the three locales say the same thing; .changeset/ holds only README.md and config.json; the 30 changesets (7 minor, 21 patch, 2 empty) still give 6.7.0 and no v6.7.0 tag exists; the manifests and ranges read 6.7.0; everything in CHANGELOG.md outside ## 6.7.0 is byte-identical to main; docs/STATUS.md counts do not move.

Read B, fb4bb1a9..0d547b45. All four changed sentences are true to the code and need no change.

  • B1, should-fix, outside the diff: the manual and the module doc still say a first confirm is not checked: content/docs/(product)/order-to-cash/invoices-and-payments.mdx:43, .zh-Hans.mdx:43, .zh-Hant.mdx:45, src/o2c/docs/crm_o2c_invoices_payments.md:67-68, src/o2c/docs/crm_o2c_invoices_payments.zh.md:21. All five came with feat(o2c): confirming again refuses a Total Price below what the order invoiced or received (#2827) #2836. CHANGELOG.md:26 now says the opposite.
  • B2, note: the Orders item of the three whats-new pages ("Confirming again is refused…") is narrower than the code. The new Integrations sentence does not contradict it.
  • B3, note: the new zh-Hant sentence is consistent with its page.
  • B4, note: no test covers a never-confirmed order with Received above its total; test/sales-order-reconfirm-floor.test.ts:133 confirms with no figures. "A first confirm included" rested on reading the condition.

What this seat did with them

Landing: the PR stays a draft. This seat has not taken it out of draft and has armed nothing. main was still at c9d500f5 when 0d547b45 was pushed; a PR with a changeset that lands before this one means another regeneration. After this PR lands, the v6.7.0 tag goes on its merge commit before anything else lands on main.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 27, 2026 12:24
@sunhaolin
sunhaolin added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 9b3a9ba Nov 27, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency bumps and lockfile changes documentation Improvements or additions to documentation skip-changeset PR ships nothing to users (pure CI/docs chore) — changeset gate waived

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant