Repository navigation
feat(amico-run): cost ledger — principal/Lab on ReceiptRecord, local CPU-seconds cost, costTotals rollup - #2121
Closed
aarontrowbridge wants to merge 1 commit into
Closed
aarontrowbridge wants to merge 1 commit into
aarontrowbridge wants to merge 1 commit into
Conversation
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
6 tasks
Contributor
Author
|
Director review (not merging). Two blockers:
Reworked in a new issue from the lane tip. The schema fields, the |
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the central-hub campaign (cost ledger item). Extends the run ledger toward the spend plane:
ReceiptRecord: widenexecutortolocal | modal | remote; addcpu_seconds(local CPU time),principal(person),lab(Lab charged). Schema updated in lockstep.LocalExecutor: on settle, emit areceiptstanza with measured CPU-seconds, list-price USD (labeled list price, not invoice), principal/lab fromSubmitOpts. Best-effort; never fails the run.SubmitOpts: addprincipal?.costTotals(): roll up receipts by principal and by Lab (cpu/gpu seconds + USD).gpuTotalsunchanged.Modal executor + Bedrock rollup from
session.costremain follow-ups (no Modal creds / no live hub on this machine).Tests: ledger (8) + local_executor_ledger (7) pass; typecheck clean.
Refs #1875, #1880, parent #1872.