Skip to content

Wayfinder: per-PersonaBot 费用与用量可见性 #34

Closed
5 of 5 issues completed
Closed

Description

@DoodleBears

v1.0 closeout (2026-10-05)

Human 已批准关闭此协调父票。v1.0 的 per-PersonaBot token 用量可见性已完成:#36–#39 全部关闭,初始消费方 #428 已交付,#39 的实现子票 #499、#502、#503、#507 和图表 #592 均已合并。

最终交付契约以 #39、ADR-0094 和其 完成记录 为准:按 PersonaBot、Host-local day、execution role、实际 provider/model 保留四类 token 与未知用量信息;Profile 默认七天、支持模型/provider/执行类别筛选、累计统计与手动刷新。普通 Session 删除后保留统计,彻底清除 PersonaBot 按隐私契约清除可识别用量。旧决策中的 purpose 分项及全表重建描述不代表最终实现。

初始统计 PR #439 与最终切片 PR #641 已合并;真实 DSH、UI 证据和 Human QA 记录随对应 PR/issue 保留。金额估算、账单对账与预算告警不属于此 v1.0 父票。


Destination

为 BotHarness 定出并落地 v1.0 的 per-PersonaBot 用量可见性:DSH usage facts 的完整性、explicit Session ownership 归属、durable 日汇总 projection,以及供 PersonaBot Profile 消费的 read model。金额估算(价格 / 计费口径)不在 1.0 范围,由 #35 留在 v1.1。

Historical decisions (2026-09-29; see final delivery above)

  • 数据源:DSH SessionEvent 的 assistant/message.usage 与 assistant/attempt 的 stream usage;按 DSH 导出的 deriveTurnTokenUsage 逐 turn 折四个 token 桶;sessionProjections.tokenUsage 只作每 Session 总量对账(fork 子 Session 含父前缀,按 isOwnSeq 去重)。
  • 归属:orchestrator、assignment 及各自 subagent/fork 全部归 PersonaBot;unowned / ambiguous 不计入任何 bot,只进 diagnostics。
  • 口径:重试、压缩、自动标题等系统调用计入(带 purpose 便于诊断)。
  • 日界:Host OS 本地时区。
  • projection:durable 日桶 (bot, day, provider, model, purpose) 存 botharness.db,可从 Session 日志重建;live 增量 + 迟到修正。
  • read model:由 Usage read model / Typert remote / Profile contract #39 定义 contract;Profile 卡片只消费 read model,不直读 Session logs / tables。
  • 金额:1.0 不做;价格与计费口径:官方来源、币种/时段/缓存规则 #35 价格表、era、币种留 v1.1。

Tickets

Consumed by

Locked architectural baseline

Not yet specified

Out of scope

  • 真实支付、结算或账单对账。
  • 实时逐 token 费用动画。
  • 用 Cordis Event、Dashboard cache 或日汇总替代 durable execution facts。

Activity

  1. added this to the v1.1 milestone on Sep 18, 2026
  2. added
    V1.1Milestone v1.1; mirrors the GitHub milestone
    area:docsDocumentation, research, or planning artifact
    feature:usageUsage and cost attribution
    scope:hubParent coordination map or epic; not a standalone implementation slice
    and removed
    V1.1Milestone v1.1; mirrors the GitHub milestone
    on Sep 22, 2026
  3. modified the milestones: v1.1, v1.0 on Sep 28, 2026
  4. DoodleBears commented on Sep 28, 2026

    @DoodleBears
    ContributorAuthor

    2026-09-29 状态:本 map 移入 v1.0;1.0 只做 token(金额 #35 留 v1.1)。#37 / #38 决策已定并关闭;#36 / #39 留在 v1.0。消费方:PersonaBot Profile epic #425(T4 #428 token 卡)。

  5. DoodleBears commented on Oct 4, 2026

    @DoodleBears
    ContributorAuthor

    v1.0 parent closeout

    Human approved closing this coordination issue after the acceptance audit. All native children #35–#39 are closed; #35 remains outside this parent’s v1.0 token scope. Initial Profile consumption #428 and the final #39 implementation sequence are merged. The body now marks #36/#39 complete and points to the final retained-statistics contract, replacing the old decisions as the current delivery description.

    Evidence: #39 completion and Human QA, merged PR #439 and PR #641. The fixed-main audit at 647fbe958f72053c1b85d45cc05996a92603a658 passed 113 focused usage/runtime/policy tests. This audit did not repeat live-model or Human QA; those acceptance records belong to the merged delivery PRs.

    No remaining implementation scope for this v1.0 coordination issue.

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:docsDocumentation, research, or planning artifactfeature:usageUsage and cost attributionscope:hubParent coordination map or epic; not a standalone implementation slicewayfinder:mapWayfinder map

    Type

    No type

    Projects

    • Status
      Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions