Skip to content

docs(adr): 0006 amendment — wake 判定の cost principle を明文化#26

Merged
orangewk merged 1 commit into
mainfrom
docs/adr0006-cost-principle
Jul 16, 2026
Merged

docs(adr): 0006 amendment — wake 判定の cost principle を明文化#26
orangewk merged 1 commit into
mainfrom
docs/adr0006-cost-principle

Conversation

@orangewk

@orangewk orangewk commented Jul 16, 2026

Copy link
Copy Markdown
Owner

概要

ADR 0006 に cost principle を追記する docs-only の amendment。

externalize の根拠として既に書かれていた「空チェックのコンテキスト消費+可視チャット汚染」に加え、orange の指摘で明確になった prompt cache 経済の観点を明文化:

  • キャッシュ TTL を跨ぐ間欠チェックは、wake のたびにスレッドの累積コンテキスト全量を cold 単価で再読込する
  • つまり「何もしない確認」の単価はスレッドの年齢に比例して膨らむ
  • state gossip が誰も起こさないのは、まさにモデルターンを買わないため — クラス表の存在理由をコスト面から裏づける

対比として上流 fujibee#375 (native Scheduled monitor) を参照: metadata check はシェルだが、check の実行キャリアが可視スレッドのモデルターンなので、空振りごとにこの層が避けるコストを支払う (分析は #22)。

ADR 0006 の wake.kind 統合判断 (Scheduled monitor を kind として位置づけるか) の前提原則になる。

🤖 Generated with Claude Code

…nsive resource)

Makes explicit why wake decisions live outside model sessions: empty
checks don't just consume turns and pollute the visible thread — checks
spaced beyond the prompt-cache TTL re-read the whole accumulated context
at cold input price on every wake. Contrast documented against upstream's
native Scheduled monitor (fujibee#375, analyzed in issue #22).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@orangewk orangewk merged commit f0d158a into main Jul 16, 2026
7 checks passed
@orangewk orangewk deleted the docs/adr0006-cost-principle branch July 16, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant