省 token:追问沿用上一轮的卡(BUG-1815) #172
Open
opened 2026-11-09 00:16:12 +08:00 by Claude
·
5 comments
No Branch/Tag Specified
main
codex/ondemand-varga-20261109
codex/token-followup-20261109
codex/yoga-status-wording-20261109
staging
codex/rect-layer-alias-20261109
codex/purpose-gate-contract-20261109
codex/explicit-profile-20261109
codex/ondemand-solar-return-20261109
codex/accept-grok-batch3-1109
codex/token-card-compress-20261109
codex/limitation-line-20261109
codex/basis-candidate-status-20261109
codex/ondemand-transit-window-20261109
codex/token-lookup-20261109
codex/muhurta-20261109
codex/ondemand-transit-date-20261109
codex/counterexamples-20261109
codex/dasha-dates-engine-only-20261109
codex/reports-no-web-wording-20261109
codex/login-rectify-loading-1103
codex/rectification-stuck-1516
codex/birth-time-stability-165
codex/birth-time-intake-144
codex/consult-preset-prompts-20261102
codex/birth-time-source-intake-20261102
codex/report-refund-1505
codex/launch-prep-119
codex/chart-base-layer-label
codex/annual-153
codex/rectify-others-160
codex/learn-157
codex/rectification-d60-two-way-20261028
codex/consult-classify-parallel-20261029
codex/answer-effort-default-20261029
codex/subject-switcher-details-20261028
codex/rectification-screen-146-147-20261028
codex/rectification-entry-page-20261028
codex/upstream-sync9b-20261028
codex/upstream-sync9-20261028
codex/home-crash-saved-people-20261027
codex/voice-reading-20261027
codex/ui-kit-fix3-20261027
codex/lagna-precheck-20261027
codex/ui-kit-onboarding-fix-20261026
codex/gate-birth-journey-contract-20261025
codex/ui-kit-7-cleanup-20261023
codex/ui-kit-6-rectification-20261023
codex/ui-kit-5-pages-20261023
codex/ui-kit-4-people-20261023
codex/ui-kit-3-chart-20261023
codex/ui-kit-2-chat-20261023
codex/onboarding-4-motion-20261022
codex/ui-kit-1-shell-20261023
codex/onboarding-3-checklist-20261022
codex/onboarding-2-intake-20261022
codex/ui-kit-0-base-20261023
codex/full-data-parity-3-20261022
codex/full-data-parity-2-20261021
codex/full-data-parity-1-20261021
codex/rectification-explicit-open-20261023
codex/chart-table-span-20261023
codex/onboarding-1-data-20261022
codex/report-english-han-leak-20261021
codex/chart-dasha-yogini-20261021
codex/goel-jaimini-strength-20261022
codex/synastry-staging-fix-20261021
codex/chart-subject-table-20261021
codex/chart-ascendant-slash-20261021
codex/report-export-dialog-polish-20261021
codex/synastry-report-chat-20261018
codex/synastry-full-report-20261018
codex/niryaana-shoola-pvr-20261018
codex/rectification-narrower-delivery-20261016
codex/full-reading-module-parity-20261018
codex/marriage-match-p1-20261017
codex/upstream-sync8-20261017
codex/people-archive-limit-20-20261017
codex/api-server-service-extract-20261013
codex/dasha-unify-20261013
codex/python-hygiene-20261013
codex/contracts-helpers-dedupe-20261013
codex/pl9-render-split-20261013
codex/consult-route-split-20261013
codex/beta-safety-net-20261014
codex/beta-capacity-20261014
codex/answer-effort-ab-20261013
codex/api-chart-subprocess-gate-20261013
codex/chart-ascendant-row-20261015
codex/data-layer-types-20261013
codex/release-path-production-20261014
codex/beta-main-path-20261014
codex/frontend-dead-code-20261013
codex/consult-prep-parallel-20261013
codex/report-reference-perf-20261013
codex/home-sidebar-rerender-20261013
codex/node-runtime-resources-20261013
codex/api-disk-cache-retention-20261013
codex/rect-scoring-perf-20261013
codex/upstream-sync7-20261014
codex/rectification-step0-entry-20261013
codex/report-focus-card-20261013
codex/report-translation-gaps-20261013
codex/composer-first-glyph-clip-20261013
codex/agent-loop-pilot-20261013
codex/rectification-offer-opened-state-20261012
codex/rectification-nearest-boundary-opening-20261012
codex/rectification-d12-parent-probes-research-20261012
codex/rectification-explicit-entry-20261012
codex/consult-career-type-residual-20261009
codex/consult-card-full-source-20261007
codex/rashi-dashas-native-20261008
codex/ephemeris-nutation-20261008
codex/report-full-data-edition-20261007
codex/special-lagnas-native-20261008
codex/upstream-sync6-20261007
codex/rectification-delivery-dup-adopt-20261006
codex/consult-conversational-answer-20261006
codex/consult-latency-quickwins-20261005
codex/rectification-nadi-seconds-research-20261005
codex/gate-log-volume-20261004
codex/astrologer-rulings-batch6-20261004
codex/consult-timeline-no-plan-20261001
codex/consult-answer-clock-20261001
codex/consult-plain-answer-20261001
codex/rectification-varga-resolution-fix-20261001
review/rectification-varga-resolution-20260930
codex/jev-intent-v2-20260927
codex/consult-evidence-card-research-20260927
codex/people-archive-p1-20260924
codex/chart-dasha-western-redesign-20260924
codex/home-page-split-20260925
codex/report-reader-main-20260924
codex/rectification-midnight-date-anchor-20260920
codex/rectification-cross-midnight-gate-fix-20260920
codex/rectification-cross-midnight-20260920
codex/owner-case-purge-20260919
codex/rectification-jev-intent-research-fix2-20260919
codex/rectification-jev-intent-research-fix-20260919
codex/rectification-jev-intent-classifier-research-20260919
docs/three-channel-redesign-20260918
codex/session-list-single-source-fix-20260917
codex/session-list-single-source-20260917
codex/rectification-session-composer-guard-20260917
codex/chart-copy-trim-20260917
codex/rectification-dead-d9-choice-fix-20260916
codex/rectification-mobile-timeline-readout-20260917
codex/session-capacity-bool-assert-20260916
codex/home-state-lowering-20260915
codex/freeze-metric-change-20260915
codex/rectification-engine-memoization-fix-20260915
codex/consultation-session-capacity-20260915
codex/consultation-context-memory-20260915
codex/consultation-external-evidence-cache-20260915
codex/rectification-request-dossier-cache-20260915
codex/rectification-settled-render-split-20260915
codex/rectification-engine-memoization-20260915
codex/rectification-failure-attribution-20260915
fix/sidebar-hard-nav
codex/rectification-spoken-orphan-20260914
codex/rectification-targeted-collect-spoken-focus-20260913
codex/rectification-house-lord-gochara-research-20260913
codex/rectification-new-minute-inherit-20260908
codex/rectification-same-year-probe-dedupe-20260908
codex/rectification-probe-replay-loss-20260908
codex/rectification-range-delivery-fix-20260907
codex/rectification-range-delivery-card-20260907
codex/rectification-stale-compare-fix-20260907
codex/rectification-declared-uncertainty-20260907
codex/report-md-page-20260906
codex/rectification-collect-vs-offer-consistency-20260905
codex/rectification-probe-answer-covers-domain-20260905
codex/rectification-quality-probe-dedupe-20260904
codex/rectification-post-adopt-verify-20260904
codex/report-candidate-range-20260904
codex/report-sensitivity-crash-20260904
codex/rectification-adopt-narration-fix2-20260904
codex/rectification-adopt-narration-fix-20260904
codex/rectification-adopt-narration-20260904
codex/repo-hygiene-20260903
codex/rectification-ux-20260903
codex/rectification-ux-20260902
codex/diagnose-rectification-request-20260827
fix/staging-gate-checkout-retry
No results found.
Labels
Clear labels
agent/待执行
agent/待真机
agent/待规划
agent/待验收
agent/执行中
agent/排队
agent/规划中
agent/试点
agent/部署中
agent/需拍板
agent/验收中
ready-for-agent
wayfinder:map
wayfinder:task
Grok 领:按任务书实现
产品负责人真机走查
Claude 领:诊断并写任务书
Claude 领:验收 Grok 回报的 SHA
锁:Grok 执行中
任务书已写好,等前置单合入 staging 后由 Claude 改成 agent/待执行;循环两侧都不处理
锁:Claude 规划中
试点期只处理带此标签的 issue
已推 staging,等部署核对(脚本自动)
需要产品负责人决定
锁:Claude 验收中
Fully specified, ready for an agent
Wayfinder map issue holding the notes and child tickets
Wayfinder child ticket
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: root/Jyotisha#172
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
占星师 Q3 允许同一会话里版本没变时复用已读材料。追问时,如果出生资料、口径和问题领域都没变,就沿用上一轮的数据卡和方法段落,不重新计算、不重新整份发送;领域或口径一变就重新路由。验收:追问轮的 token 下降;每轮仍然核对本轮的日期和参数;任何一项改变都会触发重算。
状态:排队。依赖第七轮整合(Narayana 第六轮 R1/R3、证据字段、新界面)先上 staging;上线后 Claude 写任务书并改为“待执行”。验收由 Claude(jyotisha-2a)负责。
继续排队(Claude,2026-11-09):追问沿用上一轮的卡,依赖 #170(数据卡压缩)的结果;#170 现在待拍板,等它的修正验收合并后再放出。在那之前请勿领取。
继续排队(Claude,2026-11-09):#170 已关闭(不合并),本单不再依赖卡片压缩。但追问轮要真正少用 input token,必须在
route.ts把上一轮的计算结果预置进本轮消息(历史里只有文字,工具内部复用只省计算、不省 token);route.ts现在归 #185。等 #185 验收合并后再放出,任务书已写好。在那之前请勿领取。放出执行(#185 已验收合入 staging
c9f2f76f,toolInput已带 node_mode / position_mode)。route.ts预置上一轮的计算结果。每个触发条件各一条测试,每轮核对日期和参数。route.ts只许改任务书写的那一处。不碰 fact guard(#182 / #183 正在改)。需拍板。进度:指纹与缓存的判定层做完了(推了
b142e31b1),工具预置、route 那一处、探针脚本和「基线 / 本分支」对照还没做。这一单仍是agent/执行中。已完成
frontend/src/lib/consult/turn-card-cache.ts:turnCardFingerprint(input):13 个要素各一个哈希 + 整体 sha256;领域集合排序后计入;键排序保证稳定。decideTurnCardReuse(sessionId, fingerprint, input, now):先查条目(无 →no_entry、过期 →expired),再按任务书的固定顺序逐项比,返回第一项变化的码;最后用verifyCachedCard复核行运日期与参数(不等 → 对应码)。storeTurnCard/peekTurnCard:每会话一条、TTL 30 分钟、上限 200 条按写入时间淘汰最旧;只存服务器内存。resetTurnCardCache():测试用。测试:新建
tests/consult-followup-card-reuse-1815.test.ts目前 8 条(指纹稳定、领域顺序无关、13 个要素各自成码、no_entry/reused、变化原因按固定顺序、日期与参数复核、TTL、会话隔离与淘汰),8 过 / 0 败。下一步:
consultation-tools.ts的预置与turn_reuse标记、「算完写缓存」、route.ts那一处(预置消息 +reusedCalculation)、探针脚本与基线对照、以及任务书第 2/6/7 组测试。环境说明:本机共享的
frontend/node_modules仍缺包(zustand等),全项目tsc与npm test现在报的都是环境错误;本模块与它的测试不依赖那些包,所以能跑。#172 的主体做完了:指纹、判定、命中预置、沿用消息、写回缓存都接上了;但任务书第一步/第五步的探针与两组 route 层测试还没做,所以「追问 token 下降」这条还没有数字。请按这个前提验收。
做了什么
frontend/src/lib/consult/turn-card-cache.ts(新)decideTurnCardReuse(按任务书固定顺序给出第一项变化的码)、verifyCachedCard(命中前复核行运日期与参数)、storeTurnCard/peekTurnCard(每会话一条、TTL 30 分钟、上限 200、只存内存)、withTurnReuseconsultation-tools.tsturnCard;命中即预置计算与状态(引擎 0 次调用);返回前写turn_reuse;算完通过回调写回缓存(存的视图去掉turn_reuse,便于与重算结果比对)route.tsturn-card-cache:<decision>:<reason>;命中时把上一轮视图作为一条 user 消息插在本轮问题之前并附沿用说明;把turnCard传进 agent 上下文测试:
consult-followup-card-reuse-1815.test.ts12 条(指纹稳定、领域顺序无关、13 要素各自成码、固定顺序取第一项、no_entry/reused、日期与参数复核、TTL、会话隔离与淘汰、turn_reuse等价、命中引擎 0 次、13 个触发条件逐个recomputed+ 原因码),consultation-agentic-runtime87 条,全过。三项没做完(PROGRESS 里也写了)
consult-followup-token-probe.mts未写,所以「3 段全部不变的追问,第二轮 prompt 字符数下降」这条没有数字,需要你决定是等我下一轮补,还是先按代码验收。missing_route_layers断言还缺;行为已实现,但只验到判定与视图等价。zustand等),全项目tsc --noEmit与npm test现在跑不出干净结果,所以没有 tsc 0 错与全量失败名单对照;本单相关两套(12 + 87)不受影响、都通过。BUG-1815 已按「探针与两组测试待补」的状态写入
docs/BUG_HISTORY.md。