本命计算显式传入交点与位置口径(BUG-1828) #185

Open
opened 2026-11-09 09:04:23 +08:00 by Claude · 1 comment
Collaborator

产品负责人 2026-11-09 决定(来自 #173 的拍板):本命计算从现在起显式传入交点口径(node_mode)和位置口径(position_mode),默认值为现在实际在用的 mean / apparent,结果不会变。

要做的:

  • 前端本命请求 schema(consultation-workflow.ts)加这两个字段;
  • 服务器绑定盘字段(consultation-route-service.ts 的 ServerChartToolInput)也加上;
  • 后端接收后显式使用,不再用 body.get 的隐式默认(jyotish_api_server.py 里有多处);
  • 回执和缓存键记录这两个值;
  • 按需工具(#173 起)沿用同一份口径。

依据:占星师 Q9 与第五轮第 9 条,“所有适用入口都应显式传递已确认的岁差、交点和位置口径,不能让默认值替用户做选择”。

状态:排队,等第一批验收(#169–#171,它们改同一批咨询文件)合并后放出。验收由 Claude(jyotisha-2a)负责。BUG-1828。

产品负责人 2026-11-09 决定(来自 #173 的拍板):本命计算从现在起显式传入交点口径(node_mode)和位置口径(position_mode),默认值为现在实际在用的 mean / apparent,结果不会变。 要做的: - 前端本命请求 schema(consultation-workflow.ts)加这两个字段; - 服务器绑定盘字段(consultation-route-service.ts 的 ServerChartToolInput)也加上; - 后端接收后显式使用,不再用 body.get 的隐式默认(jyotish_api_server.py 里有多处); - 回执和缓存键记录这两个值; - 按需工具(#173 起)沿用同一份口径。 依据:占星师 Q9 与第五轮第 9 条,“所有适用入口都应显式传递已确认的岁差、交点和位置口径,不能让默认值替用户做选择”。 状态:排队,等第一批验收(#169–#171,它们改同一批咨询文件)合并后放出。验收由 Claude(jyotisha-2a)负责。BUG-1828。
Claude added the agent/试点agent/排队 labels 2026-11-09 09:04:27 +08:00
Author
Collaborator

放出执行。已核对:#171 的修正只改 frontend/src/mastra/consultation-tools.ts,不碰 consultation-workflow.ts / consultation-route-service.ts,不冲突;本单因此禁止改 consultation-tools.ts。

  • 本命请求 schema、绑定盘 ServerChartToolInput、预热请求、后端(替换列出的隐式 body.get(..., 'mean'))、回执、缓存键都显式带 node_mode / position_mode,默认 mean / apparent(产品负责人 #173 拍板)。
  • 计算数值不得有任何变化;position_mode=mean 返回 400 position_mode_unsupported。
  • 默认值只有一份定义:后端 import scripts/ondemand_calc/contract.py 的常量,按需工具沿用同一份口径。
  • 详见分支上的任务书。任务书没写的取舍一律选 需拍板。
<!-- agent:claude plan brief=docs/tasks/TASK-explicit-profile-20261109.md branch=codex/explicit-profile-20261109 base=afac4ea92f293a4d2bc81f62563487d26f92e4d2 --> **放出执行**。已核对:#171 的修正只改 `frontend/src/mastra/consultation-tools.ts`,不碰 `consultation-workflow.ts` / `consultation-route-service.ts`,不冲突;本单因此禁止改 `consultation-tools.ts`。 - 本命请求 schema、绑定盘 `ServerChartToolInput`、预热请求、后端(替换列出的隐式 `body.get(..., 'mean')`)、回执、缓存键都显式带 `node_mode` / `position_mode`,默认 mean / apparent(产品负责人 #173 拍板)。 - 计算数值不得有任何变化;`position_mode=mean` 返回 400 `position_mode_unsupported`。 - 默认值只有一份定义:后端 import `scripts/ondemand_calc/contract.py` 的常量,按需工具沿用同一份口径。 - 详见分支上的任务书。任务书没写的取舍一律选 `需拍板`。
Claude added agent/待执行 and removed agent/排队 labels 2026-11-09 14:04:36 +08:00
Grok added the agent/执行中 label 2026-11-09 15:15:52 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: root/Jyotisha#185