Skip to content

seed: re-base an installed demo dataset seed dates, so an aged demo tenant does not drift into overdue deals and missed SLAs #32679

Description

@objectstack-fleet

repo:hotcrm#1 · huangyiirene · session_01J8VVAnPkgK6CWrJa6t7Fk5

Source

From HotCRM card objectstack-ai/hotcrm#2431, landed as hotcrm#2433. The maintainer agreed to filing this card at p3 (2026-11-12T09:47Z).

The gap (measured on @objectstack 18.3.0)

  • HotCRM's demo seed dates are CEL offsets from the seeding moment (daysAgo / daysFromNow). A fresh install is therefore current.
  • They are evaluated once, at install. A staging tenant that was 26 days old showed this:
    • open negotiation deals whose expected close dates were in the past;
    • 23 of 30 open cases past SLA;
    • a "last 30 days" chart covering only four days.
  • The platform has no way to re-base an installed demo dataset to today, short of deleting and reseeding it.

What would close it

Any of these:

  • A "refresh demo data" action that re-evaluates a dataset's date expressions and shifts the stored rows by the elapsed time.
  • A reseed that keeps user-created rows.
  • A documented, supported reseed path.

hotcrm half

  • hotcrm#2433 documents the reseed path in its admin docs.
  • A guard test now refuses a literal date in any seed row.

Generated by Claude Code

Activity

  1. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → decision box (needs-user-decision) · platform feature · 2026-11-12T10:51Z

    ⛔ Not a claim.

    • Why the decision box: this adds a platform capability (a new authorable key, syntax or setting), a human-floor item for the objectstack maintainer. The HotCRM maintainer's agreement to file it, and her ruling of the shape for HotCRM, are the app's pull and input. They are not a platform ruling.
    • Next: on the maintainer's standing order (「这几个决策卡都应该用 fable 评估之后和我讨论」), the card gets a fable-tier evaluation before it is presented. The analysis follows as its own comment.
    • Grade: the filed priority stands until the ruling.

    Generated by Claude Code

  2. added
    domain:server
    needs-user-decision
    on Nov 12, 2026
  3. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    决策分析(fable 档独立评估)· 2026-11-12T10:56Z

    维护者速读

    • 演示租户放了 26 天,商机全逾期、工单大面积超 SLA。
    • 卡片列的三种关法里,两种平台今天已经有:应用页「⋯」里的「清除示例数据」只删种子建的行、保留用户自建的行,再点「重新植入」,日期就按当天重算。
    • 唯一没有的是「一键平移日期、并保留用户对演示行的修改」,主流 CRM 不把它放在平台内核。
    • 请裁:A 做「刷新演示数据」平移日期 / B 用现有「清除 + 重新植入」,按已覆盖处理 / C 留卡暂缓。

    Governing text:

    • content/docs/data-modeling/seed-data.mdx「Import Modes」:默认 ignore,重放不覆盖客户改过的行。
    • packages/cloud-connection/src/marketplace-install-local-plugin.ts:5667-5680(purge first, then reseed)。
    • packages/spec/src/data/seed.zod.ts:207。

    前提核实:

    • 种子日期是 CEL 偏移,每次加载时求值(packages/metadata-protocol/src/seed-loader.ts:511-512)。
    • 清除和重新植入有文档、有界面(content/docs/deployment/marketplace-handbook.mdx:225-229;路由见 cloud-connection-route-ledger.ts:247、259),所以卡片第 2、3 条关闭条件已满足。
    • 另有可组合机制:mode: 'upsert' 加上非日期列 applyOn: 'create'。代价是用户对日期的修改会被覆盖。

    拉动: 仅 HotCRM 一例 26 天的 staging 租户,是演示环境。

    选项 客户看到什么 工作量
    A 刷新动作 一键平移日期,保留其他修改 seed-loader、安装台账、新路由、控制台,约 3–4 个 PR;无先例
    B 现有机制 管理员清除再重植,日期回到当天;用户自建行保留,对演示行的修改丢失 平台 0;可选 1 个 ui PR 把两步并成「重置示例数据」
    C 留卡暂缓 同 B,卡继续占队列 0

    四轴:

    • ① 长远:主流做法是「安装 / 移除示例数据」(Dynamics 365),日期平移是售前工具。A 要在「重放不碰客户行」这条核心承诺上开例外。
    • ② 拉动:一例,演示环境。
    • ③ 防 AI:A 引入「哪些列平移」的隐式规则,容易静默出错;B 是两个结果明确的现有动作。
    • ④ 不扩散:p3,且有现成路径。

    推荐:B。 置信缺口:

    • 用户挂在演示行下的子记录,清除后去向未实测。
    • 云端试用租户的老化是否影响转化,没有数据;若有,应重估优先级。

    自检: 只看①选 B;②③④ 不翻转。

    os-decision-facets

    • ① 长远:主流是安装 / 移除示例数据;日期平移要在「重放不碰客户行」的承诺上开例外
    • ② 拉动:仅 HotCRM 一例 26 天 staging 租户,演示环境
    • ③ 防 AI:B 是两个结果明确的现有动作;A 引入「哪些列平移」的隐式规则
    • ④ 不扩散:p3 且已有受支持路径,平台工作量 0

    Prior rulings read: seed-data.mdx Import Modes, seed.zod.ts mode default, marketplace reseed docblock; thread: none


    Generated by Claude Code

  4. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Brief-claimed-by: session_01Q4EjjMnyLqJdzuktEmRPXH · batch #3 · 2026-11-13T05:25Z

    Decision batch #3 (the last four of the box), on the maintainer's 「5张一批按总监决裁格式给我」.

  5. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Ruling recorded · #32679 · B + one-click reset · 2026-11-13T05:48Z

    Maintainer, verbatim (triage#1 session): 「创业项目,应该是需求合理就做」, then 「第三批同意」, approving the batch as revised under that principle: 32380 C / 31797 C / 32678 B / 32679 B + one-click reset. The batch was analysed independently at the fable tier, with prior rulings checked first.

    • B: demo data is refreshed by the existing purge then reseed, so dates are recomputed from today and the user's own rows are untouched. There is no date shifting of stored rows, which would break the seed promise not to touch rows a customer changed.
    • Plus, because the need is reasonable (fresh demos):
      • (1) A one-click Reset sample data action that runs purge then reseed in one step, with a receipt (rows removed and rows seeded) and a confirm that names what is lost (edits to demo rows).
      • (2) It must reach data seeded with the build, as HotCRM ships it, not only marketplace installs. If the build-seeded path cannot purge or reseed today, that gap is part of this card.
    • HotCRM half: a hotcrm card tests the reset on a HotCRM hosted environment, updates the admin docs (they say "seed a new organization"), and loosens the seed's case due times so a demo lasts at least two weeks.
    • Execution: domain:server (purge and reseed reach plus the action), with domain:ui for the console button. needs-user-decision → pm:queue.

    Generated by Claude Code

  6. added
    pm:queue
    and removed
    needs-user-decision
    on Nov 13, 2026
  7. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4czXwx6JtQPvacrzzUw

    Ruled · maintainer · 2026-11-14T15:08Z

    Maintainer, verbatim (project thread, 2026-11-14, answering the seat's recommendation list): 「以上都同意」.

    Ruling: not now. Re-basing demo seed dates is a new capability, not a defect; the card goes on hold until a product need picks a shape.


    Generated by Claude Code

  8. added
    pm:on-hold
    and removed
    pm:queue
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:packagedomain:serverpm:on-holdpriority:p3

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions