try-equipo: raise job input funding to 23 x 500,000 and re-propose
Run 4 measured 6,072,000 input for Claude Engineering against the 5,750,000 default. Saved values equal to any earlier default are re-proposed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+13
−9
docs/live-gate.md+2 −2internal/tryequipo/funding_test.go+3 −3internal/tryequipo/run.go+8 −4
CI passed — run details
diff --git a/docs/live-gate.md b/docs/live-gate.md| index e7913cae..4e55e343 100644 |
| --- a/docs/live-gate.md |
| +++ b/docs/live-gate.md |
| @@ -45,8 +45,8 @@ project and team token headroom. Enter your own limits where needed. These are |
| bounds on calls, tokens and duration; subscription usage has no hard currency |
| cap. Type `RUN LIVE GATE` to authorize that run. |
| -The proposed limits are 500 calls, 50 million input tokens, 2 million output |
| -tokens and 7200 seconds, with 5,750,000 input tokens and 230,000 output tokens |
| +The proposed limits are 500 calls, 100 million input tokens, 16 million output |
| +tokens and 7200 seconds, with 11,500,000 input tokens and 1,150,000 output tokens |
| for the job and each project/team headroom value. The guide proposes these |
| values again when you saved the older defaults, keeps custom limits, and prints |
| the exact funding values to enter if the measured job or period headroom is too |
diff --git a/internal/tryequipo/funding_test.go b/internal/tryequipo/funding_test.go| index c07bee3a..e74756ce 100644 |
| --- a/internal/tryequipo/funding_test.go |
| +++ b/internal/tryequipo/funding_test.go |
| @@ -15,7 +15,7 @@ func TestFundingProposedDefaults(t *testing.T) { |
| values = map[string]string{"InputTokens": "10000000", "OutputTokens": "1000000", "JobInput": "2300000", "ProjectInputHeadroom": "2300000", "TeamInputHeadroom": "2300000"} |
| } |
| if saved == "recent" { |
| - values = map[string]string{"OutputTokens": "2000000", "JobOutput": "230000", "ProjectOutputHeadroom": "230000", "TeamOutputHeadroom": "230000"} |
| + values = map[string]string{"OutputTokens": "2000000", "JobOutput": "230000", "ProjectOutputHeadroom": "230000", "TeamOutputHeadroom": "230000", "InputTokens": "50000000", "JobInput": "5750000", "ProjectInputHeadroom": "5750000", "TeamInputHeadroom": "5750000"} |
| } |
| if saved == "custom" { |
| values = map[string]string{"JobInput": "3000000", "OutputTokens": "17000000", "JobOutput": "1300000", "ProjectOutputHeadroom": "1300000", "TeamOutputHeadroom": "1300000"} |
| @@ -29,13 +29,13 @@ func TestFundingProposedDefaults(t *testing.T) { |
| if err != nil { |
| t.Fatal(err) |
| } |
| - want := int64(5750000) |
| + want := int64(11500000) |
| wantOut, wantTotalOut := int64(1150000), int64(16000000) |
| if saved == "custom" { |
| want = 3000000 |
| wantOut, wantTotalOut = 1300000, 17000000 |
| } |
| - if f.JobInput != want || f.ProjectInputHeadroom != 5750000 || f.TeamInputHeadroom != 5750000 || f.JobOutput != wantOut || f.ProjectOutputHeadroom != wantOut || f.TeamOutputHeadroom != wantOut || f.InputTokens != 50000000 || f.OutputTokens != wantTotalOut || f.Calls != 500 || f.Seconds != 7200 { |
| + if f.JobInput != want || f.ProjectInputHeadroom != 11500000 || f.TeamInputHeadroom != 11500000 || f.JobOutput != wantOut || f.ProjectOutputHeadroom != wantOut || f.TeamOutputHeadroom != wantOut || f.InputTokens != 100000000 || f.OutputTokens != wantTotalOut || f.Calls != 500 || f.Seconds != 7200 { |
| t.Fatalf("funding: %+v", f) |
| } |
| }) |
diff --git a/internal/tryequipo/run.go b/internal/tryequipo/run.go| index cc63a58b..f763f49f 100644 |
| --- a/internal/tryequipo/run.go |
| +++ b/internal/tryequipo/run.go |
| @@ -6,6 +6,7 @@ import ( |
| "fmt" |
| "os" |
| "path/filepath" |
| + "slices" |
| "sort" |
| "strconv" |
| "strings" |
| @@ -215,19 +216,22 @@ func (w *Wizard) ownedWrite(path string, raw []byte) error { |
| } |
| func (w *Wizard) funding() (provider.LiveFunding, error) { |
| var f provider.LiveFunding |
| + // Legacy holds earlier proposals; a saved value equal to one is re-proposed. |
| + // Job input is 23 x 500,000: run 4 measured 6,072,000 for Claude Engineering. |
| + in, out := []int64{2300000, 5750000}, []int64{230000} |
| entries := []struct { |
| Key string |
| Value *int64 |
| Default int64 |
| - Legacy int64 |
| + Legacy []int64 |
| }{ |
| - {"Calls", &f.Calls, 500, 0}, {"InputTokens", &f.InputTokens, 50000000, 10000000}, {"OutputTokens", &f.OutputTokens, 16000000, 2000000}, {"Seconds", &f.Seconds, 7200, 0}, |
| - {"JobInput", &f.JobInput, 5750000, 2300000}, {"JobOutput", &f.JobOutput, 1150000, 230000}, {"ProjectInputHeadroom", &f.ProjectInputHeadroom, 5750000, 2300000}, {"ProjectOutputHeadroom", &f.ProjectOutputHeadroom, 1150000, 230000}, {"TeamInputHeadroom", &f.TeamInputHeadroom, 5750000, 2300000}, {"TeamOutputHeadroom", &f.TeamOutputHeadroom, 1150000, 230000}, |
| + {"Calls", &f.Calls, 500, nil}, {"InputTokens", &f.InputTokens, 100000000, []int64{10000000, 50000000}}, {"OutputTokens", &f.OutputTokens, 16000000, []int64{1000000, 2000000}}, {"Seconds", &f.Seconds, 7200, nil}, |
| + {"JobInput", &f.JobInput, 11500000, in}, {"JobOutput", &f.JobOutput, 1150000, out}, {"ProjectInputHeadroom", &f.ProjectInputHeadroom, 11500000, in}, {"ProjectOutputHeadroom", &f.ProjectOutputHeadroom, 1150000, out}, {"TeamInputHeadroom", &f.TeamInputHeadroom, 11500000, in}, {"TeamOutputHeadroom", &f.TeamOutputHeadroom, 1150000, out}, |
| } |
| for _, e := range entries { |
| def := strconv.FormatInt(e.Default, 10) |
| // Re-propose the old defaults in the prompt; custom limits remain selected. |
| - if v := w.State.Values[e.Key]; v != "" && (e.Legacy == 0 || v != strconv.FormatInt(e.Legacy, 10)) && !(e.Key == "OutputTokens" && v == "1000000") { |
| + if v := w.State.Values[e.Key]; v != "" && !slices.ContainsFunc(e.Legacy, func(l int64) bool { return v == strconv.FormatInt(l, 10) }) { |
| def = v |
| } |
| v, err := w.ask(e.Key, def) |