MCPcopy Create free account
hub / github.com/Facets-cloud/flow / Savings

Struct Savings

internal/stats/model.go:64–71  ·  view source on GitHub ↗

Savings are the counterfactual estimates. AddressableCount is a count, NOT time/$ — it must never be summed into TotalHours/TotalDollars. ContextTokens is set by BuildStats from real file sizes after ComputeSavings.

Source from the content-addressed store, hash-verified

62// NOT time/$ — it must never be summed into TotalHours/TotalDollars.
63// ContextTokens is set by BuildStats from real file sizes after ComputeSavings.
64type Savings struct {
65 AutomationHours float64
66 ContextSwitchHours float64
67 ContextTokens int64
68 AddressableCount int
69 TotalHours float64
70 TotalDollars float64
71}
72
73// ComputeSavings applies the counterfactual model. TotalHours sums only the
74// two time-valued levers (automation + context-switch); ContextTokens (tokens)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected