package schedule // Copy has a hard ceiling: the normal lowest-available fallback cannot spend // above either standard or the account's current cap. Unclassified plans wait. func copyInput(in Input) Input { out := make([]Conn, 0, len(in.Conns)) for _, c := range in.Conns { cap := min(tierRank(TierStandard), tierRank(TierCap(c))) models := []Model{} for _, m := range c.Models { rank := tierRank(m.Tier) if rank >= tierRank(TierCheap) && rank <= cap { models = append(models, m) } } c.Models = models if len(models) == 0 { c.Capable = false } out = append(out, c) } in.Conns = out return in } // Only these exact subscription model IDs have a v1 Copy tier. A new alias // waits for classification instead of inheriting a tier from its spelling. func CopySubscriptionModel(provider, model string) (Model, bool) { known := provider == "claude" && (model == "claude-haiku-5" || model == "claude-haiku-5-5") || provider == "codex" && model == "gpt-6-luna" if !known { return Model{}, false } return Model{ID: model, Family: provider, Tier: TierCheap}, true }