D — shared-cost bases
Goal
Split shared ClickHouse, Modal, Cloudflare, Vercel and storage by a measured basis, leaving the residual explicit. Current work is owner/tenant splits, not run or conversation bases. The scoreboard holds current values; policy lives in the architecture.Metric
Share of shared-dollar exposure allocated by a measured basis. A measured row must use the SQL executor’sallocation: method, a versioned basis and a positive
basis quantity. Estimated allocations and named idle/internal residuals remain
in the denominator, not the measured numerator. E checks signed bill closure.
Proof query
PRs to adopt now
From the merged map: #11519 (ClickHouse internal CPU buckets), #11374 (explicit Modal internal classification), #11310 (Modal tenant allocation), #11308 (occupancy/idle/untagged). Coordinate occupancy prerequisites in B2’s #11309 without pushing to it. Park D’s per-run/per-conversation bases until the run/message rungs; adopt only owner/tenant slices now. The collector’sclickhouse-basis.clickhouse-local.test.ts belongs to E for
old-ledger retirement (#11642, after #11646’s ownership correction lands).
The production ClickHouse basis implementation remains D-owned.
Stop-and-ask conditions
Stop before a migration, deploy or flag flip; on estimated/fabricated bases, unexplained residual redistribution, or a proposed run/conversation expansion. Follow standing rules.Exit check
Every expected shared provider must appear withexit_pass=1 for complete
measured coverage; missing/empty providers fail. Otherwise report the query’s
explicit residual, not an invented split. A deliberate idle/fixed residual needs
architect approval of its owner/class and does not become measured allocation.