Skip to content

docs(agents): declare Project kind: product - #2937

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-2846-project-kind
Dec 4, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-2846-project-kind

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Closes #2846

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:只在给开发代理看的规则文件里加一行,说明 HotCRM 是对外交付的产品。
  • 为什么:新同步进来的项目流程技能在缺这一行时把项目当成"自用",会告诉代理不必写变更说明,与本仓规则相反。
  • 出错会怎样:最坏是代理照旧按本仓规则办事,无任何用户影响;直接撤回这一行即可。
  • 要你做什么:受管文件改动,请审后亲自合并。

What changes

  • AGENTS.md: one bare line Project kind: product, first line under ## 🎯 Product, priorities and the development process, the section that already records the 2026-11-18 ruling that HotCRM is a product. The objectstack-project skill (.claude/skills/objectstack-project/SKILL.md, §0 question 2) reads it: "Record the answer as one line in the project's AGENTS.md (Project kind: own use or Project kind: product)." The skill names no section, so the line sits beside the existing product statement, at line start so grep '^Project kind:' finds it.
  • .changeset/agents-project-kind-product.md: empty-frontmatter changeset, the sanctioned form for a PR that ships nothing to users (AGENTS.md, Verifying changes). Agent instructions are not shipped.

Acceptance notes

The skill's product rules were compared with AGENTS.md and docs/PRIORITIES.md:

  • Changeset on every PR that changes what ships, written for the customer, breaking change states FROM → TO: agrees with Every PR carries a changeset.
  • Release notes from changesets via changeset version into CHANGELOG.md: agrees (PRIORITIES, Release row; release.yml).
  • Requirement file in docs/requirements/ for a customer-visible feature: agrees (PRIORITIES, Requirement row).
  • Two differences in detail, not edited here (the skill is a synced copy; AGENTS.md and its linked docs win): the skill says changesets carry "no issue numbers", while HotCRM's CHANGELOG sections cite (#n) on each entry; and the skill's release step sets manifest.version in objectstack.config.ts and publishes with os package publish, while HotCRM sets the package manifests' versions in src/*/index.ts and releases through release.yml (docs/RELEASE_STRATEGY.md). Both are noted for the seat.

Verification

Run at 67d81b3 under the shared verify lock: pnpm validate && pnpm lint && pnpm hygiene && pnpm exec vitest run test/docs-role-hierarchy.test.ts test/docs-src-tree-paths.test.ts test/docs-zh-hant-justification.test.ts (the three tests that read AGENTS.md).

Readings
  • ✓ Validation passed
  • objectstack lint --strict: suggestions only, chain continued
  • ✓ source hygiene clean
  • Test Files 3 passed (3) · Tests 124 passed (124)
  • os-verify-lock: VERDICT command-exit 0

Two-minute check: grep -n '^Project kind:' AGENTS.md prints one line, Project kind: product.

🤖 Generated with Claude Code

https://claude.ai/code/session_017xRBcUpajguxop2zMyDN9K

The re-synced objectstack-project skill reads a `Project kind:` line in
AGENTS.md and defaults to "own use" when it is missing, which tells an
agent no changeset is owed. HotCRM is a product and requires a changeset
on every PR, so record the kind where the skill looks for it.

Empty-frontmatter changeset: agent instructions only, ships nothing.

Claude-Session: https://claude.ai/code/session_017xRBcUpajguxop2zMyDN9K
@vercel

vercel Bot commented Dec 3, 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 Dec 3, 2026 12:33pm UTC

Request Review

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:hotcrm@sunhaolin · sunhaolin · session_017xRBcUpajguxop2zMyDN9K

Independent read-only review (Fable) · head 67d81b3 · 2026-12-03T12:36Z · governed path, stays draft for the maintainer's merge

  1. 结论:有条件通过——改动本身正确,条件是合并时测试分片和 CodeQL 跑完无失败。
  2. 依据:技能没有解析程序,只要求 AGENTS.md「记一行」Project kind: product;本 PR 这一行顶格、拼写与技能一致、全仓唯一,紧挨已有的「HotCRM 是产品」裁定;空 frontmatter changeset 符合 AGENTS.md 的例外,Check Changeset 已绿;读取 AGENTS.md 的三个测试和 hygiene 不受影响。
  3. 风险:这一行生效后技能的 ★ 产品规则对 HotCRM 适用,其中两条与本仓做法不同(Q1、Q2),不阻塞合并,留给维护者。
  4. 类别:受管路径(AGENTS.md),维护者亲自合并。

待维护者裁决(不阻塞合并)

Q1 · changeset 里要不要写卡号:技能 §4 说「No issue numbers」;本仓每条 changeset 和 CHANGELOG 都带 (#n),RELEASE_STRATEGY 第 80-82 行已写明保留卡号、上架时由 customerText() 自动去掉——客户本来看不到。缺口只在 AGENTS.md 的 changeset 规则没提卡号。

  • A 在 AGENTS.md 写明本仓做法(半句话,受管路径要再合一次);B 改用技能规则(丢追溯,还要改脚本和文档,无收益);C 不动(先读技能的代理可能删卡号)。建议 A。

Q2 · 发版步骤不同:技能说在 objectstack.config.ts 设 manifest.version 再 os package publish;本仓版本在 src/*/index.ts,走 release.yml,见 RELEASE_STRATEGY。普通开发代理不发版,走错不会造成错误发布。

  • A 不动;B 在 AGENTS.md 加一行指向 RELEASE_STRATEGY。建议 A;若 Q1 选 A,可在同一句里顺带写上。

Evidence: .claude/skills/objectstack-project/SKILL.md:37-44, 153-166; AGENTS.md:39, 337-340, 348-350; docs/RELEASE_STRATEGY.md:36-41, 80-82, 126-132; scripts/lib/marketplace-release-notes.mjs:36-58; objectstack.config.ts:63.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 3, 2026
@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 4, 2026 01:07
@objectstack-fleet
objectstack-fleet Bot requested a review from os-zhuang December 4, 2026 01:07
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit bde4be7 Dec 4, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue

Projects

None yet

1 participant