oficina / equipo Public

Extend person answers, retry proof and raise funding bounds

Co-Authored-By: Astra <noreply@openai.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 722b5666f9864c3fb6a10aed9def07c827e335fc parent 8dcd4d2
19 files changed, +442 −50
  • docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md +3 −1
  • docs/superpowers/plans/CONTROLLER-REPORT-tty-answers.md +177 −1
  • internal/directlive/answer_source.go +7 −2
  • internal/directlive/answer_source_test.go +49 −1
  • internal/directlive/driver.go +3 −0
  • internal/directlive/driver_test.go +14 −1
  • internal/directlive/person_retry_test.go +94 −0
  • internal/directlive/terminal.go +7 −5
  • internal/directlive/terminal_retry_test.go +7 −4
  • internal/equipo/copy.go +8 −8
  • internal/plan3test/plan3_release_test.go +1 −1
  • internal/release/manifest.json +18 −18
  • internal/runner/provider/claude/launcher.go +1 −0
  • internal/runner/provider/claude/person_timeout_test.go +17 −0
  • internal/runner/provider/codex/launcher.go +3 −1
  • internal/runner/provider/codex/person_timeout_test.go +21 −0
  • internal/tryequipo/funding_test.go +6 −3
  • internal/tryequipo/run.go +4 −4
  • internal/tryequipo/testdata/tty-chain/drive.py +2 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
index 8eee89b9..3e0683ca 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
@@ -5157,8 +5157,10 @@ records to satisfy a gate. Release remains blocked while any row is pending.
| `live.check-deny` | Equipo is checking that this is refused. Type Deny. | Guided live probe controls | COPY ACCEPTED FOR NOW (Paul, 2026-11-05; live-probe brief) |
| `live.check-allow` | Equipo is checking one-time approval. Type Allow once. | Guided live probe controls | COPY ACCEPTED FOR NOW (Paul, 2026-11-05; live-probe brief) |
| `live.check-question` | Equipo is checking that your answer reaches the agent. Enter an answers JSON object. | Guided live probe controls | COPY ACCEPTED FOR NOW (Paul, 2026-11-05; live-probe brief) |
+| `live.answer` | Type Allow once, Deny, or an answers JSON object. This request expires in 5 minutes. | Guided live answer prompt | COPY ACCEPTED FOR NOW (Paul, 2026-11-05; iterate in context) |
| `live.answer-retry` | Enter Allow once, Deny, or a valid JSON object. | Guided live control typo retry | COPY ACCEPTED FOR NOW (Paul, 2026-11-05; iterate in context) |
-| `live.answer-received` | Answer received. | Guided live answer confirmation after validation | COPY REVIEW REQUIRED |
+| `live.answer-expired` | The request expired. This check will be retried or failed. | Guided live answer expiry | COPY ACCEPTED FOR NOW (Paul, 2026-11-05; iterate in context) |
+| `live.answer-received` | Answer received. | Guided live answer confirmation after validation | COPY ACCEPTED FOR NOW (Paul, 2026-11-05; iterate in context) |
| `CopyCalibrationFunding` | calibration funding is too low; rerun with JobInput=%d JobOutput=%d ProjectInputHeadroom=%d ProjectOutputHeadroom=%d TeamInputHeadroom=%d TeamOutputHeadroom=%d: %w | Direct isolation Round 3 | COPY ACCEPTED FOR NOW (Paul, 2026-11-05; iterate in context) |
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-tty-answers.md b/docs/superpowers/plans/CONTROLLER-REPORT-tty-answers.md
index 1e70074f..9d8a1f3a 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-tty-answers.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-tty-answers.md
@@ -1,6 +1,6 @@
# Typed terminal answers
-Status: incomplete. The reported lost-input failure did not reproduce offline.
+Round 1 status: incomplete. The reported lost-input failure did not reproduce offline.
This branch adds process-chain coverage and confirmation after a valid answer;
it does not claim to fix the cause of Paul's live timeout.
@@ -131,3 +131,179 @@ Only read-only process metadata, terminal settings and selected saved evidence
were inspected. The PTY fixtures clean up their private sessions. Fixture builds and audit
logs were removed before handoff; no process started by this task remains.
The user-provided worktree was retained. No merge or deployment was performed.
+
+## Round 2
+
+The round-two brief replaces the request to diagnose the earlier lost-input
+report with changes to timing, person-proof retries and proposed funding. These
+changes are verified offline. They do not establish the cause of that live run's
+lost-input report.
+
+### Timing and retry
+
+Person answer sources now allow five minutes; automatic sources still allow one
+minute. The terminal reader uses the source's context, removing its separate
+60-second limit. Earlier cancellation and the authorized run deadline still win.
+The default run deadline remains 7,200 seconds. Provider tool deadlines are ten
+minutes: Claude's explicit settings contain `MCP_TOOL_TIMEOUT=600000`, and Codex's
+Equipo MCP settings contain `tool_timeout_sec=600`. Both settings are included in
+the existing policy hashes and validation. Codex's policy serializer now handles
+integer TOML values. No provider binary was launched to inspect these options;
+the installed binaries were read for the setting names.
+
+The terminal prints `The request expired. This check will be retried or failed.`
+once on deadline expiry. `Answer received.` remains after validation only. The
+prompt now says five minutes. All three entries are individually marked
+`COPY ACCEPTED FOR NOW (Paul, 2026-11-05; iterate in context)` under the brief's
+2026-11-04/05 ruling. The consolidated inventory and its acceptance check include
+them. No copy-review server was started and README prose is unchanged.
+
+The driver no longer consumes a provider's person-proof opportunity when choosing
+a tuple. After completing a tuple, it validates the saved person proof before
+switching later tuples to automatic answers. A failed tuple, invalid proof or
+missing answer leaves the next specialist eligible. Coordinator and recovery
+workers remain automatic. Certification still requires a passing person-answered
+tuple for each provider; earlier failures remain failures in the run report.
+
+The new fake-CLI driver scenario uses both providers and four specialist tuples:
+Review expires, Engineering returns an invalid answer, Copy passes with person
+answers, and Design uses automatic answers. It checks saved proof, attribution,
+answer counts and the four retained tuple failures. Existing successful-run
+coverage still checks that later tuples do not prompt again.
+
+### Funding arithmetic
+
+Evidence was read only from
+`/home/paulca/.local/share/equipo/try/run-4024280761/evidence` on 2026-11-05.
+The run was still accumulating evidence. The calculation below uses the observed
+snapshot; unfinished tuples are estimates, not zero usage or certified results.
+
+For rows with `23-reservations-per-job.json`, the needs are 23 times that file's
+input and output reservations. For Claude Engineering and Coordinator, the same
+formula is applied to the completed `turn-*.json` usage frames, including cache
+creation and cache reads. Codex's completed token-usage frames use the `last`
+input/output counts. Each reservation is twice the largest sample, rounded up
+to the next 1,000 tokens, then multiplied by 23.
+
+| Tuple | Input need | Output need |
+| --- | ---: | ---: |
+| Claude Engineering | 17,986,000 | 184,000 |
+| Claude Engineering-reproduction | 14,375,000 | 184,000 |
+| Claude Review | 11,040,000 | 161,000 |
+| Claude Product | 11,270,000 | 161,000 |
+| Claude Scope | 11,684,000 | 184,000 |
+| Claude Research | 11,247,000 | 161,000 |
+| Claude Investigation | 9,568,000 | 161,000 |
+| Claude Copy | 11,546,000 | 184,000 |
+| Claude Design | 18,308,000 | 184,000 |
+| Claude Coordinator | 414,000 | 23,000 |
+| Codex Engineering, partial | 437,000 | 23,000 |
+| Codex Engineering-reproduction, partial | 391,000 | 23,000 |
+| Observed sum | 118,266,000 | 1,633,000 |
+
+The maximum input need is 18,308,000. Three times that is 54,924,000, rounded
+up to 60,000,000 for JobInput and both input headrooms. The maximum output need
+is 184,000; three times that is 552,000. JobOutput and both output headrooms
+retain the required 1,150,000 floor.
+
+For the full 19-tuple family, the seven missing tuples and both partial Codex
+rows are provisioned at the largest observed need, 18,308,000 input and 184,000
+output. The Claude row sums are 117,438,000 input and 1,587,000 output. The full
+bounds are `(117,438,000 + 9 × 18,308,000) × 3 = 846,630,000` input and
+`(1,587,000 + 9 × 184,000) × 3 = 9,729,000` output. The proposed calibration
+bounds are 900,000,000 input, rounded up to the next 100 million, and the existing
+16,000,000 output. These conservative reservation sums are bounds, not predicted
+spend. They exceed the observed charged totals as well as the measured usage sums.
+
+The old 11,500,000 input, 1,150,000 output, 100,000,000 total input and 16,000,000
+total output defaults are in the re-propose lists. The output proposals currently
+remain the same. Custom values remain selected, and the person must authorize the
+displayed limits before any live run.
+
+### Verification
+
+Before implementation, the focused tests failed for the one-minute person limit,
+missing expiry notice, missing provider tool deadlines and old funding bounds.
+`TestControlSourcesRetryUntilPass` failed with
+`Engineering lost person retry: automatic`. The first full fake-driver attempt
+also caught the shortened person deadline. A later development run caught missing
+integer TOML support; that serializer correction is included above.
+
+The combined driver run passed in 211.320 seconds, including both
+`TestPersonProofRetryFakeCLI` and `TestFewerPromptsFakeCLI`. That invocation also
+found the missing inventory row for the changed prompt; the row was added and
+the inventory check passed on rerun.
+
+After restoring all deliberate faults, this focused command passed:
+
+```sh
+CGO_ENABLED=0 go test ./internal/directlive ./internal/tryequipo ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/plan3test -run '^Test(ControlSources|PersonAnswerHasFiveMinutes|AnswerSources|TerminalAnswerProcessChain|FundingProposedDefaults|PersonControlProviderTimeout|Plan3ReleaseBoundaries)' -count=1
+```
+
+Times: directlive 0.113 s, tryequipo 3.830 s, Claude 0.223 s, Codex 0.207 s,
+plan3test 0.785 s. The five-minute source test uses Go's virtual clock; expiry is
+also checked through the real terminal process chain with a shortened parent
+context. No test sleeps for five minutes.
+
+Each mutation below failed, then its source was restored. Each command starts
+with `CGO_ENABLED=0 go test`, ends with `-count=1`, and uses the listed package
+and `-run` selector.
+
+| Deliberate fault | Package and selector | Observed failure |
+| --- | --- | --- |
+| Person limit back to one minute | `./internal/directlive -run '^TestPersonAnswerHasFiveMinutes$'` | Person expired after 1m, wanted 5m |
+| Automatic limit raised to five minutes | Same command | Automatic expired after 5m, wanted 1m |
+| Consume proof when selecting a tuple | `./internal/directlive -run '^TestControlSourcesRetryUntilPass$'` | Engineering lost person retry |
+| Suppress deadline notice | `./internal/tryequipo -run '^TestTerminalAnswerProcessChain$'` | Missing expiry notice |
+| Claude MCP timeout back to 60 seconds | `./internal/runner/provider/claude -run '^TestPersonControlProviderTimeout$'` | Provider tool timeout must exceed five minutes |
+| Codex MCP timeout back to 60 seconds | Same selector in `./internal/runner/provider/codex` | Provider tool timeout must exceed five minutes |
+| Input job/headroom proposals back to 11.5 million | `./internal/tryequipo -run '^TestFundingProposedDefaults$'` | Funding mismatch |
+| Omit 11.5 million from the legacy list | Same command | Saved round-one funding was retained |
+
+`make budget` passed for all 39 directories. A blank line beside the changed
+catalog entries was removed to keep the existing 10,800-line source ceiling;
+no budget was increased. `git diff --check` passed.
+
+
+The provider timeout settings change policy fingerprints. This offline work does
+not issue a certificate for either real provider; a separately authorized live
+run must collect fresh evidence. No existing production evidence or account file
+was modified. No merge, default-branch push or deployment was performed.
+
+The first full `CGO_ENABLED=0 make -k ci` exited 2. Besides the formatting issue,
+it found two stale policy-inventory tests and an existing PTY reap race. All
+18 portable inventory hashes were updated to match the timeout settings; every
+entry remains `uncertified`, and the certificate lists remain empty. The PTY
+feeder now waits for the child after terminal closure, within the original
+three-second deadline. Previously it could read `PASS`, receive terminal EOF,
+then fail because a nonblocking wait had not yet reaped the child.
+
+The focused correction check passed:
+
+```sh
+CGO_ENABLED=0 go test ./internal/directlive ./internal/release -run '^Test(MergedPlanPolicyInventory|PlanWorkflowReleasePolicyInventory|TerminalRetryDeadlineAndValidObject)$' -count=1
+make fmt-check budget
+```
+
+Directlive took 0.899 s; release took 0.004 s. The first full run's remaining
+lanes passed, including adapter/namespace tests, migrations and performance.
+Cold boot was 103 ms against 500 ms; every screen was within 150 ms. It reported
+existing timing-budget overruns in runner (357.469 s / 330 s), provider
+(20.710 s / 15 s), Claude (46.596 s / 45 s), and Codex (39.045 s / 35 s). These
+are local notes and become failures with CI timing enforcement. The new full
+directlive suite took 318.087 s against its unchanged 360 s ceiling.
+
+One permitted full rerun of `CGO_ENABLED=0 make -k ci` exited 0. All 29 test
+packages passed, along with build, vet, formatting, staticcheck, vulnerability
+and secret scans, size budgets, adapters, namespaces, migrations and performance.
+Directlive took 324.969 s against 360 s, including the retry regression. Cold boot
+was 101 ms; all screen checks stayed below 150 ms.
+
+The rerun retained timing warnings: runner 358.634 s / 330 s, provider 20.616 s /
+15 s, Claude 46.095 s / 45 s, Codex 38.686 s / 35 s, and tryequipo 11.503 s /
+10 s. The command passed locally; these overruns would fail with CI timing
+enforcement. No timing budget was raised. There were two full gate invocations
+in total, with no second rerun.
+
+Task scratch and logs were removed after their results were recorded here.
+All task test processes exited. The user-provided worktree remains in place.
diff --git a/internal/directlive/answer_source.go b/internal/directlive/answer_source.go
index b6aed98a..0c565b85 100644
--- a/internal/directlive/answer_source.go
+++ b/internal/directlive/answer_source.go
@@ -8,13 +8,19 @@ import (
"amadan.net/oficina/equipo/internal/runnerproto"
)
+const personAnswerTimeout = 5 * time.Minute
+
type answerSource struct {
answeredBy string
read answerFunc
}
func (s answerSource) answer(ctx context.Context, q runnerproto.Question) (runnerproto.QuestionAnswer, error) {
- ctx, cancel := context.WithTimeout(ctx, 60*time.Second)
+ timeout := time.Minute
+ if s.answeredBy == "person" {
+ timeout = personAnswerTimeout
+ }
+ ctx, cancel := context.WithTimeout(ctx, timeout)
defer cancel()
if err := ctx.Err(); err != nil {
return runnerproto.QuestionAnswer{}, err
@@ -34,7 +40,6 @@ func (d *driver) controlSource(family, role string) answerSource {
d.personControls = map[string]bool{}
}
if role != "Coordinator" && !d.worker && !d.personControls[family] {
- d.personControls[family] = true
return answerSource{"person", d.answer}
}
return answerSource{"automatic", expectedAnswer}
diff --git a/internal/directlive/answer_source_test.go b/internal/directlive/answer_source_test.go
index c5c78179..f470d211 100644
--- a/internal/directlive/answer_source_test.go
+++ b/internal/directlive/answer_source_test.go
@@ -4,6 +4,7 @@ import (
"context"
"errors"
"testing"
+ "testing/synctest"
"time"
"amadan.net/oficina/equipo/internal/runnerproto"
@@ -43,6 +44,7 @@ func TestControlSourcesFollowRunOrder(t *testing.T) {
t.Fatalf("%s/%s/%s: %+v %v", family, role, control, a, err)
}
}
+ d.personControls[family] = true // The completed tuple has supplied passing proof.
}
}
if calls != 8 {
@@ -66,7 +68,11 @@ func TestAnswerSourcesShareValidationAndDeadline(t *testing.T) {
}
s.read = func(ctx context.Context, _ runnerproto.Question) (runnerproto.QuestionAnswer, error) {
deadline, ok := ctx.Deadline()
- if !ok || time.Until(deadline) > 60*time.Second {
+ want := time.Minute
+ if by == "person" {
+ want = 5 * time.Minute
+ }
+ if !ok || time.Until(deadline) > want || time.Until(deadline) < want-time.Second {
t.Fatal("missing answer deadline")
}
return runnerproto.QuestionAnswer{Behavior: "deny"}, nil
@@ -77,3 +83,45 @@ func TestAnswerSourcesShareValidationAndDeadline(t *testing.T) {
})
}
}
+
+func TestPersonAnswerHasFiveMinutes(t *testing.T) {
+ for _, by := range []string{"person", "automatic"} {
+ t.Run(by, func(t *testing.T) {
+ synctest.Test(t, func(t *testing.T) {
+ start := time.Now()
+ s := answerSource{by, func(ctx context.Context, _ runnerproto.Question) (runnerproto.QuestionAnswer, error) {
+ <-ctx.Done()
+ return runnerproto.QuestionAnswer{Behavior: "deny"}, nil
+ }}
+ _, err := s.answer(context.Background(), runnerproto.Question{})
+ want := time.Minute
+ if by == "person" {
+ want = 5 * time.Minute
+ }
+ if !errors.Is(err, context.DeadlineExceeded) || time.Since(start) != want {
+ t.Fatalf("%s expired after %s, want %s: %v", by, time.Since(start), want, err)
+ }
+ })
+ })
+ }
+}
+
+func TestControlSourcesRetryUntilPass(t *testing.T) {
+ d := driver{answer: expectedAnswer}
+ for _, role := range []string{"Review", "Engineering", "Copy"} {
+ if got := d.controlSource("claude", role).answeredBy; got != "person" {
+ t.Fatalf("%s lost person retry: %s", role, got)
+ }
+ }
+ d.personControls["claude"] = true
+ if got := d.controlSource("claude", "Design").answeredBy; got != "automatic" {
+ t.Fatal(got)
+ }
+ if got := d.controlSource("codex", "Design").answeredBy; got != "person" {
+ t.Fatal("one provider consumed another's proof", got)
+ }
+ d.worker = true
+ if got := d.controlSource("codex", "Review").answeredBy; got != "automatic" {
+ t.Fatal("worker asked person", got)
+ }
+}
diff --git a/internal/directlive/driver.go b/internal/directlive/driver.go
index 0c32a117..09340d30 100644
--- a/internal/directlive/driver.go
+++ b/internal/directlive/driver.go
@@ -120,6 +120,9 @@ func runRoles(ctx context.Context, c provider.DirectLiveConfig, config []byte, p
}
e = failed.evidence
}
+ if e.ValidatePersonControls(dir) == nil {
+ d.personControls[b.Binding.Provider] = true
+ }
records = append(records, e)
index = append(index, name+"/certification.json")
}
diff --git a/internal/directlive/driver_test.go b/internal/directlive/driver_test.go
index 43d5e6ad..22a4dfc9 100644
--- a/internal/directlive/driver_test.go
+++ b/internal/directlive/driver_test.go
@@ -131,7 +131,11 @@ func TestDirectDriverFakeWorker(t *testing.T) {
}
p := Paths{Claude: filepath.Join(root, "claude"), Codex: filepath.Join(root, "codex"), CodeModeHost: filepath.Join(root, "codex-code-mode-host"), Bwrap: "/usr/bin/bwrap", Runner: os.Args[0], ToolProxy: filepath.Join(root, "equipo-tool-proxy")}
personCalls := 0
+ retryAnswer := personRetryAnswer()
answer := func(ctx context.Context, q runnerproto.Question) (runnerproto.QuestionAnswer, error) {
+ if os.Getenv("EQUIPO_FAKE_PERSON_RETRY") == "1" {
+ return retryAnswer(ctx, q)
+ }
if os.Getenv("EQUIPO_FAKE_FEWER_PROMPTS") == "1" {
personCalls++
return expectedAnswer(ctx, q)
@@ -198,12 +202,18 @@ func TestDirectDriverFakeWorker(t *testing.T) {
if os.Getenv("EQUIPO_FAKE_FEWER_PROMPTS") == "1" {
roles = []string{"Review", "Engineering"}
}
+ if os.Getenv("EQUIPO_FAKE_PERSON_RETRY") == "1" {
+ roles = []string{"Review", "Engineering", "Copy", "Design"}
+ c.Funding.Seconds = 720
+ }
source := "fake-cli"
if os.Getenv("EQUIPO_FAKE_LIVE_MODE") == "1" {
source = "direct-live"
}
runErr := runRoles(context.Background(), c, marshal(c), p, source, answer, paths, roles)
- if os.Getenv("EQUIPO_FAKE_BAD_COORDINATOR") == "1" {
+ if os.Getenv("EQUIPO_FAKE_PERSON_RETRY") == "1" {
+ checkPersonRetryRun(t, c.EvidenceDir, runErr)
+ } else if os.Getenv("EQUIPO_FAKE_BAD_COORDINATOR") == "1" {
var tuples *TupleFailures
if !errors.As(runErr, &tuples) || !strings.Contains(runErr.Error(), "codex-Coordinator") || strings.Contains(runErr.Error(), "Engineering") {
t.Fatalf("coordinator failure not isolated: %v", runErr)
@@ -264,6 +274,9 @@ func TestDirectDriverFakeWorker(t *testing.T) {
if json.Unmarshal(raw, &e) != nil || len(e.Usage) == 0 || e.Checks["workspace-positive-control"].Status != "pass" {
t.Fatalf("driver did not observe tools and usage: %s", raw)
}
+ if os.Getenv("EQUIPO_FAKE_PERSON_RETRY") == "1" && (strings.Contains(name, "-Review/") || strings.Contains(name, "-Engineering/")) {
+ continue
+ }
if e.Checks["tuple-completed"].Status == "not-certified" || e.Checks["complete-input-output"].Status != "pass" {
t.Fatal("specialist contaminated by coordinator", name)
}
diff --git a/internal/directlive/person_retry_test.go b/internal/directlive/person_retry_test.go
new file mode 100644
index 00000000..ea751c93
--- /dev/null
+++ b/internal/directlive/person_retry_test.go
@@ -0,0 +1,94 @@
+package directlive
+
+import (
+ "context"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "os"
+ "path/filepath"
+ "strings"
+ "testing"
+ "time"
+
+ "amadan.net/oficina/equipo/internal/runner/provider"
+ "amadan.net/oficina/equipo/internal/runnerproto"
+)
+
+func TestPersonProofRetryFakeCLI(t *testing.T) {
+ t.Parallel()
+ runFakeDriver(t, false, "EQUIPO_FAKE_PERSON_RETRY=1")
+}
+
+func personRetryAnswer() answerFunc {
+ return func(ctx context.Context, q runnerproto.Question) (runnerproto.QuestionAnswer, error) {
+ deadline, ok := ctx.Deadline()
+ if !ok || time.Until(deadline) < 4*time.Minute {
+ return runnerproto.QuestionAnswer{}, fmt.Errorf("person answer cut short: %v", deadline)
+ }
+ if strings.HasSuffix(q.AgentID, "/Review") {
+ return runnerproto.QuestionAnswer{}, context.DeadlineExceeded
+ }
+ if strings.HasSuffix(q.AgentID, "/Engineering") {
+ return runnerproto.QuestionAnswer{Behavior: "invalid"}, nil
+ }
+ if !strings.HasSuffix(q.AgentID, "/Copy") {
+ return runnerproto.QuestionAnswer{}, fmt.Errorf("person asked after passing proof: %s", q.AgentID)
+ }
+ return expectedAnswer(ctx, q)
+ }
+}
+
+func checkPersonRetryRun(t *testing.T, root string, runErr error) {
+ t.Helper()
+ var failures *TupleFailures
+ if !errors.As(runErr, &failures) || len(failures.Failures) != 4 {
+ t.Fatalf("want two failed tuples per provider: %v", runErr)
+ }
+ for _, family := range []string{"claude", "codex"} {
+ for _, role := range []string{"Review", "Engineering", "Copy", "Design"} {
+ dir := filepath.Join(root, family+"-"+role)
+ raw, err := os.ReadFile(filepath.Join(dir, "certification.json"))
+ var e provider.DirectEvidence
+ if err != nil || json.Unmarshal(raw, &e) != nil {
+ t.Fatal("missing evidence", dir, err)
+ }
+ if (e.ValidatePersonControls(dir) == nil) != (role == "Copy") {
+ t.Fatal("wrong person proof", family, role)
+ }
+ files, err := filepath.Glob(filepath.Join(dir, "answer-*.json"))
+ if err != nil {
+ t.Fatal(err)
+ }
+ controls := 0
+ for _, file := range files {
+ raw, err := os.ReadFile(file)
+ var a struct {
+ AnsweredBy string `json:"answered_by"`
+ Control string `json:"control"`
+ }
+ if err != nil || json.Unmarshal(raw, &a) != nil {
+ t.Fatal("invalid answer artifact", file, err)
+ }
+ if a.Control == "" {
+ continue
+ }
+ controls++
+ want := "automatic"
+ if role == "Copy" {
+ want = "person"
+ }
+ if a.AnsweredBy != want {
+ t.Fatal("wrong answer source", file, a.AnsweredBy)
+ }
+ }
+ want := 3
+ if role == "Review" || role == "Engineering" {
+ want = 0
+ }
+ if controls != want {
+ t.Fatal("wrong control answer count", family, role, controls)
+ }
+ }
+ }
+}
diff --git a/internal/directlive/terminal.go b/internal/directlive/terminal.go
index f21f53f3..3f6e0ed5 100644
--- a/internal/directlive/terminal.go
+++ b/internal/directlive/terminal.go
@@ -5,15 +5,14 @@ import (
"amadan.net/oficina/equipo/internal/runnerproto"
"context"
"encoding/json"
+ "errors"
"fmt"
"golang.org/x/sys/unix"
"os"
"strings"
- "time"
)
-func terminalAnswer(ctx context.Context, q runnerproto.Question) (runnerproto.QuestionAnswer, error) {
- var answer runnerproto.QuestionAnswer
+func terminalAnswer(ctx context.Context, q runnerproto.Question) (answer runnerproto.QuestionAnswer, err error) {
tty, err := os.OpenFile("/dev/tty", os.O_RDWR|unix.O_NONBLOCK, 0)
if err != nil {
return answer, err
@@ -34,8 +33,11 @@ func terminalAnswer(ctx context.Context, q runnerproto.Question) (runnerproto.Qu
}
fmt.Fprintln(tty, equipo.RunnerText("live.answer"))
fmt.Fprintln(tty, string(q.RawRequest))
- ctx, cancel := context.WithTimeout(ctx, 60*time.Second)
- defer cancel()
+ defer func() {
+ if errors.Is(err, context.DeadlineExceeded) {
+ fmt.Fprintln(tty, equipo.RunnerText("live.answer-expired"))
+ }
+ }()
raw := []byte{}
for len(raw) < 8192 {
if err = ctx.Err(); err != nil {
diff --git a/internal/directlive/terminal_retry_test.go b/internal/directlive/terminal_retry_test.go
index 90523f55..0063ed2b 100644
--- a/internal/directlive/terminal_retry_test.go
+++ b/internal/directlive/terminal_retry_test.go
@@ -32,18 +32,21 @@ pid,fd=pty.fork()
if pid==0:
os.environ['EQUIPO_TEST_RETRY_MODE']=sys.argv[2]
os.execv(sys.argv[1],[sys.argv[1],'-test.run=^TestTerminalRetryDeadlineAndValidObject$'])
-output=b''; sent=False; reaped=False; end=time.monotonic()+3; last=0
+output=b''; sent=False; reaped=False; eof=False; end=time.monotonic()+3; last=0
try:
while time.monotonic()<end:
- if select.select([fd],[],[],0.05)[0]:
+ if not eof and select.select([fd],[],[],0.05)[0]:
try:data=os.read(fd,65536)
- except OSError:break
+ except OSError:data=b'';eof=True
+ if not data:eof=True
output+=data
- if b'Type Allow once, Deny,' in output:
+ if not eof and b'Type Allow once, Deny,' in output:
if sys.argv[2]=='object' and not sent:os.write(fd,b'{}\n');sent=True
if sys.argv[2]=='deadline' and time.monotonic()-last>0.15:os.write(fd,b'Alloe once\n');last=time.monotonic()
done,status=os.waitpid(pid,os.WNOHANG)
if done:reaped=True;break
+ # A closed PTY can precede the child becoming waitable. Keep the same deadline.
+ if eof:time.sleep(0.01)
if not reaped:
done,status=os.waitpid(pid,os.WNOHANG)
reaped=bool(done)
diff --git a/internal/equipo/copy.go b/internal/equipo/copy.go
index 46fa8553..e040bb11 100644
--- a/internal/equipo/copy.go
+++ b/internal/equipo/copy.go
@@ -797,14 +797,14 @@ var runnerDraftCopy = map[string]string{
// COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context): plan.changes
"plan.changes": "Plan changes",
// COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context): task.state.proposed
- "task.state.proposed": "Proposed",
-
- "live.check-deny": "Equipo is checking that this is refused. Type Deny.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-05, live-probe brief): live.check-deny
- "live.check-allow": "Equipo is checking one-time approval. Type Allow once.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-05, live-probe brief): live.check-allow
- "live.check-question": "Equipo is checking that your answer reaches the agent. Enter an answers JSON object.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-05, live-probe brief): live.check-question
- "live.answer-retry": "Enter Allow once, Deny, or a valid JSON object.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-05; iterate in context)
- "live.answer-received": "Answer received.", // COPY REVIEW PENDING: live.answer-received
- "live.answer": "Type Allow once, Deny, or an answers JSON object. This request expires in 60 seconds.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context): live.answer
+ "task.state.proposed": "Proposed",
+ "live.check-deny": "Equipo is checking that this is refused. Type Deny.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-05, live-probe brief): live.check-deny
+ "live.check-allow": "Equipo is checking one-time approval. Type Allow once.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-05, live-probe brief): live.check-allow
+ "live.check-question": "Equipo is checking that your answer reaches the agent. Enter an answers JSON object.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-05, live-probe brief): live.check-question
+ "live.answer-retry": "Enter Allow once, Deny, or a valid JSON object.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-05; iterate in context)
+ "live.answer-expired": "The request expired. This check will be retried or failed.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-05; iterate in context)
+ "live.answer-received": "Answer received.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-05; iterate in context)
+ "live.answer": "Type Allow once, Deny, or an answers JSON object. This request expires in 5 minutes.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-05; iterate in context): live.answer
// COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context): isolation.approved_beyond_profile
"isolation.approved_beyond_profile": "approved beyond profile",
// COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context): trial.history
diff --git a/internal/plan3test/plan3_release_test.go b/internal/plan3test/plan3_release_test.go
index 4604250f..024edbe6 100644
--- a/internal/plan3test/plan3_release_test.go
+++ b/internal/plan3test/plan3_release_test.go
@@ -173,7 +173,7 @@ func plan3CopyInventory(t *testing.T) {
rows[key] = html.UnescapeString(strings.ReplaceAll(cells[1], "<br>", "\n"))
acceptedGuide := strings.HasPrefix(cells[2], "Guided live gate") && strings.TrimSuffix(cells[3], " |") == "COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)"
acceptedProbe := slices.Contains([]string{"live.check-deny", "live.check-allow", "live.check-question"}, key) && cells[2] == "Guided live probe controls" && strings.TrimSuffix(cells[3], " |") == "COPY ACCEPTED FOR NOW (Paul, 2026-11-05; live-probe brief)"
- acceptedRound2 := slices.Contains([]string{"live.answer-retry", "CopyCalibrationFunding"}, key) && strings.TrimSuffix(cells[3], " |") == "COPY ACCEPTED FOR NOW (Paul, 2026-11-05; iterate in context)"
+ acceptedRound2 := slices.Contains([]string{"live.answer", "live.answer-retry", "live.answer-received", "live.answer-expired", "CopyCalibrationFunding"}, key) && strings.TrimSuffix(cells[3], " |") == "COPY ACCEPTED FOR NOW (Paul, 2026-11-05; iterate in context)"
if !strings.Contains(cells[3], "COPY REVIEW REQUIRED") && !acceptedGuide && !acceptedProbe && !acceptedRound2 {
t.Fatal("entry has no copy review status or applicable acceptance", key)
}
diff --git a/internal/release/manifest.json b/internal/release/manifest.json
index 9b5b2158..c35f3875 100644
--- a/internal/release/manifest.json
+++ b/internal/release/manifest.json
@@ -18,109 +18,109 @@
{
"provider": "claude",
"action": "reproduce",
- "inventory_hash": "2d30111832a765985325c0c65ad47145f2fc20f91589f1d6a31f53cbe25064bc",
+ "inventory_hash": "d802e8240ad3ca9596d49474c9326a08247781c622524ac365d87f93772d6c6a",
"status": "uncertified"
},
{
"provider": "claude",
"action": "scope",
- "inventory_hash": "542e489e809d8033a6695465083e8465c7d56653afd19a9ae4b57c7fd1902416",
+ "inventory_hash": "7fe4e64e6c15483747018194e98be1f96f106a1c9ffd046a3ba31ab93873466a",
"status": "uncertified"
},
{
"provider": "claude",
"action": "recommend",
- "inventory_hash": "5793cd626d236cd3d88b5963c09902c14f1043a8933fa166398ce7f1c208e7fc",
+ "inventory_hash": "9e8ebe265a6bca64bccbf8fea3870330df0c3eedaa7199485b1fbd08aca96c9c",
"status": "uncertified"
},
{
"provider": "claude",
"action": "investigate",
- "inventory_hash": "32f8044b4fe444bebb181a1c0e08a3f9fcce322aec821e8fd03c0fdb0fea2ba7",
+ "inventory_hash": "060d0dfc291972fd62531f60473b9452421ded41ddb3a397718a1ec780b778d4",
"status": "uncertified"
},
{
"provider": "claude",
"action": "implement",
- "inventory_hash": "72a972b9044c47ce5ac1a113300c106ce7ce6042b637f588d95fbc21992240bf",
+ "inventory_hash": "7b789913bac4eda97c50d6371cf77649b5b4e0a33c61c8dd26a1e4959a7c4d56",
"status": "uncertified"
},
{
"provider": "claude",
"action": "copy",
- "inventory_hash": "4089970bdc8d187421aa4a47d910e0ca557a2f53d1131f1f5ee2a9e2bc3dc891",
+ "inventory_hash": "04edfb7745cf0165a7de42efa3df30664f65071fadb333a7eb02af905d2d792a",
"status": "uncertified"
},
{
"provider": "claude",
"action": "design",
- "inventory_hash": "0bb7c9b79bd32d907786dee975bd7d1af9ded0d643560cb65060d44f9f7514a6",
+ "inventory_hash": "d4c63e082e1999db25b3df3f069cf35666c0ecf376a86da36b2c78299089e7c9",
"status": "uncertified"
},
{
"provider": "claude",
"action": "review",
- "inventory_hash": "1575c1af43786b4051c966b76529a4e0c5da218d1628294c6248e652129dd320",
+ "inventory_hash": "4da217f49bbbf4b91bb1a633960f168d591cec6fe9872efcff73864f338cba77",
"status": "uncertified"
},
{
"provider": "codex",
"action": "reproduce",
- "inventory_hash": "901526200f84751107212e20d37ba0fb69b7327c68f22fb848bce0b1e8d8015a",
+ "inventory_hash": "b6e655f8fcf1a0034d53746b9b4d787231507bbbe5dd8bdf1f2808396ef61330",
"status": "uncertified"
},
{
"provider": "codex",
"action": "scope",
- "inventory_hash": "d4ca8ac8de09708ff436f6e6f9f37c7633f0f142ed8f05dc0323fd125067d7cb",
+ "inventory_hash": "1bed31cbb9eae1492739d411096cc12f7b26cdab00afe05edd1407372221231d",
"status": "uncertified"
},
{
"provider": "codex",
"action": "recommend",
- "inventory_hash": "1b74ea49e9ea967cc5e45259f5083a1e72a075f0c4a36966bf7b547cd35b63b4",
+ "inventory_hash": "b7859832d33116d86e7286b0bffd3f90c8e08d2f56e61c56f14f37027346ddd8",
"status": "uncertified"
},
{
"provider": "codex",
"action": "investigate",
- "inventory_hash": "41d48df7ddc595e8bf8d18af7aec7949d061e3f623be652acb641701bbe14c7d",
+ "inventory_hash": "3a958ba7d6be9e64ab95b3c605044c84b295c3d8b8d7c340f0d918fe64fdeae0",
"status": "uncertified"
},
{
"provider": "codex",
"action": "implement",
- "inventory_hash": "c17dcf2652a12d934d315a9851ef30c2a44e28c0b335821fd37130d80073ce5d",
+ "inventory_hash": "28be065a40027bf8cfdb6155f44da69bdcf30b6eae13babf7ea4a2612fb83ed3",
"status": "uncertified"
},
{
"provider": "codex",
"action": "copy",
- "inventory_hash": "07d46054cadebbb157b506214dc68dd28f603c7b7626a24d2f7a68fd9dab58cd",
+ "inventory_hash": "37431eba8f27d0692ab5a418621b14d4c24b6d94762bd8683b7f76b6ee0e0398",
"status": "uncertified"
},
{
"provider": "codex",
"action": "design",
- "inventory_hash": "f9c15cf275406039ca47da0b22b7d3fdaaabde84d320690a965c0cb53bbf5623",
+ "inventory_hash": "a33a8c70e38254817d814c407657d541a5ddaf363014aa15869e5f98e1d27ec6",
"status": "uncertified"
},
{
"provider": "codex",
"action": "review",
- "inventory_hash": "93d34cac547f6daef7ef6d6d0a4220df25fbb98bf03e15e5e743f694bc2a35a7",
+ "inventory_hash": "787313a03304024b83146a6ed21d8e559afaa28e85aa65423e9f78bd2f2d9f39",
"status": "uncertified"
},
{
"provider": "claude",
"action": "coordinate",
- "inventory_hash": "dd19cd361277bd2cce8ca708c9b43ded23b71fb6d8bd3df4e244d0f1f4921a31",
+ "inventory_hash": "a671f7b2fe5b2d9864684d2260400f278041f35f0b33afbe7e2569551aba9e7f",
"status": "uncertified"
},
{
"provider": "codex",
"action": "coordinate",
- "inventory_hash": "87c00f178407f7bd3868f1c22cf1c8ac0bbc4f0e011f68d49cb308098003452d",
+ "inventory_hash": "d6815e9d94c8c96ae63e40505011be6c7ec226db1e2479454eee83ca6b8f4c6e",
"status": "uncertified"
}
]
diff --git a/internal/runner/provider/claude/launcher.go b/internal/runner/provider/claude/launcher.go
index 712eb731..52d2ab14 100644
--- a/internal/runner/provider/claude/launcher.go
+++ b/internal/runner/provider/claude/launcher.go
@@ -160,6 +160,7 @@ func PolicyInputs(b provider.Binding, in provider.PolicyInputs, specialist, mode
}
}
settings := map[string]any{
+ "env": map[string]string{"MCP_TOOL_TIMEOUT": "600000"},
"disableAllHooks": true, "enabledPlugins": map[string]any{"agents-md@builtin": false, "plugin-authoring@builtin": false}, "autoMemoryEnabled": false, "autoDreamEnabled": false,
"sandbox": map[string]any{"enabled": true, "failIfUnavailable": true, "allowUnsandboxedCommands": false, "autoAllowBashIfSandboxed": true, "excludedCommands": []string{}, "filesystem": map[string]any{"denyRead": settingsDenied, "denyWrite": settingsDenied}, "network": map[string]any{"allowUnixSockets": []string{}}},
"permissions": map[string]any{"deny": nativeDenies, "allow": allow, "ask": ask},
diff --git a/internal/runner/provider/claude/person_timeout_test.go b/internal/runner/provider/claude/person_timeout_test.go
new file mode 100644
index 00000000..668c769e
--- /dev/null
+++ b/internal/runner/provider/claude/person_timeout_test.go
@@ -0,0 +1,17 @@
+package claude
+
+import (
+ "encoding/json"
+ "testing"
+)
+
+func TestPersonControlProviderTimeout(t *testing.T) {
+ f := fixtureFor(t, "Engineering")
+ var settings struct{ Env map[string]string }
+ if err := json.Unmarshal(f.launch.Policy.Settings, &settings); err != nil {
+ t.Fatal(err)
+ }
+ if settings.Env["MCP_TOOL_TIMEOUT"] != "600000" {
+ t.Fatalf("provider tool timeout must exceed five minutes: %+v", settings)
+ }
+}
diff --git a/internal/runner/provider/codex/launcher.go b/internal/runner/provider/codex/launcher.go
index f30c94ac..94dd64cf 100644
--- a/internal/runner/provider/codex/launcher.go
+++ b/internal/runner/provider/codex/launcher.go
@@ -139,7 +139,7 @@ func PolicyInputs(b provider.Binding, in provider.PolicyInputs, model string) (p
"skills": map[string]any{"bundled": map[string]any{"enabled": false}},
"model": model, "model_provider": "openai", "approval_policy": "on-request", "approvals_reviewer": "user", "default_permissions": "equipo",
"permissions": map[string]any{"equipo": map[string]any{"filesystem": fs, "network": map[string]any{"enabled": false}}},
- "features": map[string]any{"incremental_tools": true, "apps": false, "multi_agent": false, "remote_control": false, "memories": false, "goals": false, "plugins": false, "remote_plugin": false, "tool_suggest": false, "tool_call_mcp_elicitation": true}, "mcp_servers": map[string]any{"equipo": map[string]any{"command": "/opt/equipo-tool-proxy", "args": []string{"--socket", "/tool/equipo.sock"}}},
+ "features": map[string]any{"incremental_tools": true, "apps": false, "multi_agent": false, "remote_control": false, "memories": false, "goals": false, "plugins": false, "remote_plugin": false, "tool_suggest": false, "tool_call_mcp_elicitation": true}, "mcp_servers": map[string]any{"equipo": map[string]any{"tool_timeout_sec": 600, "command": "/opt/equipo-tool-proxy", "args": []string{"--socket", "/tool/equipo.sock"}}},
}
// Code mode hides the native tool schemas from the captured catalog. The
// v2 collaboration switches are independent of the legacy multi_agent flag.
@@ -184,6 +184,8 @@ func PolicyInputs(b provider.Binding, in provider.PolicyInputs, model string) (p
}
func toml(v any) string {
switch x := v.(type) {
+ case int:
+ return strconv.Itoa(x)
case string:
return strconv.Quote(x)
case bool:
diff --git a/internal/runner/provider/codex/person_timeout_test.go b/internal/runner/provider/codex/person_timeout_test.go
new file mode 100644
index 00000000..aed1afb5
--- /dev/null
+++ b/internal/runner/provider/codex/person_timeout_test.go
@@ -0,0 +1,21 @@
+package codex
+
+import (
+ "encoding/json"
+ "testing"
+)
+
+func TestPersonControlProviderTimeout(t *testing.T) {
+ f := fixtureFor(t)
+ var settings struct {
+ MCP map[string]struct {
+ Timeout int `json:"tool_timeout_sec"`
+ } `json:"mcp_servers"`
+ }
+ if err := json.Unmarshal(f.launch.Policy.Settings, &settings); err != nil {
+ t.Fatal(err)
+ }
+ if settings.MCP["equipo"].Timeout != 600 {
+ t.Fatalf("provider tool timeout must exceed five minutes: %+v", settings)
+ }
+}
diff --git a/internal/tryequipo/funding_test.go b/internal/tryequipo/funding_test.go
index e74756ce..6805c299 100644
--- a/internal/tryequipo/funding_test.go
+++ b/internal/tryequipo/funding_test.go
@@ -8,7 +8,7 @@ import (
)
func TestFundingProposedDefaults(t *testing.T) {
- for _, saved := range []string{"fresh", "legacy", "recent", "custom"} {
+ for _, saved := range []string{"fresh", "legacy", "recent", "round-one", "custom"} {
t.Run(saved, func(t *testing.T) {
values := map[string]string{}
if saved == "legacy" {
@@ -17,6 +17,9 @@ func TestFundingProposedDefaults(t *testing.T) {
if saved == "recent" {
values = map[string]string{"OutputTokens": "2000000", "JobOutput": "230000", "ProjectOutputHeadroom": "230000", "TeamOutputHeadroom": "230000", "InputTokens": "50000000", "JobInput": "5750000", "ProjectInputHeadroom": "5750000", "TeamInputHeadroom": "5750000"}
}
+ if saved == "round-one" {
+ values = map[string]string{"InputTokens": "100000000", "OutputTokens": "16000000", "JobInput": "11500000", "JobOutput": "1150000", "ProjectInputHeadroom": "11500000", "TeamInputHeadroom": "11500000", "ProjectOutputHeadroom": "1150000", "TeamOutputHeadroom": "1150000"}
+ }
if saved == "custom" {
values = map[string]string{"JobInput": "3000000", "OutputTokens": "17000000", "JobOutput": "1300000", "ProjectOutputHeadroom": "1300000", "TeamOutputHeadroom": "1300000"}
}
@@ -29,13 +32,13 @@ func TestFundingProposedDefaults(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- want := int64(11500000)
+ want := int64(60000000)
wantOut, wantTotalOut := int64(1150000), int64(16000000)
if saved == "custom" {
want = 3000000
wantOut, wantTotalOut = 1300000, 17000000
}
- 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 {
+ if f.JobInput != want || f.ProjectInputHeadroom != 60000000 || f.TeamInputHeadroom != 60000000 || f.JobOutput != wantOut || f.ProjectOutputHeadroom != wantOut || f.TeamOutputHeadroom != wantOut || f.InputTokens != 900000000 || 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 f763f49f..bfd2c041 100644
--- a/internal/tryequipo/run.go
+++ b/internal/tryequipo/run.go
@@ -217,16 +217,16 @@ 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}
+ // Round 2 bounds include 3x the saved family needs; see the tty answers report.
+ in, out := []int64{2300000, 5750000, 11500000}, []int64{230000, 1150000}
entries := []struct {
Key string
Value *int64
Default int64
Legacy []int64
}{
- {"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},
+ {"Calls", &f.Calls, 500, nil}, {"InputTokens", &f.InputTokens, 900000000, []int64{10000000, 50000000, 100000000}}, {"OutputTokens", &f.OutputTokens, 16000000, []int64{1000000, 2000000, 16000000}}, {"Seconds", &f.Seconds, 7200, nil},
+ {"JobInput", &f.JobInput, 60000000, in}, {"JobOutput", &f.JobOutput, 1150000, out}, {"ProjectInputHeadroom", &f.ProjectInputHeadroom, 60000000, in}, {"ProjectOutputHeadroom", &f.ProjectOutputHeadroom, 1150000, out}, {"TeamInputHeadroom", &f.TeamInputHeadroom, 60000000, in}, {"TeamOutputHeadroom", &f.TeamOutputHeadroom, 1150000, out},
}
for _, e := range entries {
def := strconv.FormatInt(e.Default, 10)
diff --git a/internal/tryequipo/testdata/tty-chain/drive.py b/internal/tryequipo/testdata/tty-chain/drive.py
index cd8267ca..05f4a71d 100644
--- a/internal/tryequipo/testdata/tty-chain/drive.py
+++ b/internal/tryequipo/testdata/tty-chain/drive.py
@@ -53,6 +53,8 @@ try:
raise RuntimeError('process chain did not finish successfully')
if b'fixture answers verified' not in output or stage != 6:
raise RuntimeError('typed answers never arrived')
+ if output.count(b'The request expired. This check will be retried or failed.') != 1:
+ raise RuntimeError('missing or repeated expiry notice')
if output.count(confirmation) != 3:
raise RuntimeError('invalid or expired answer was confirmed')
finally: