| 1 | # Try Equipo follow-up controller report |
| 2 | |
| 3 | The guide asks for total account counts, defaulting to six Claude accounts and |
| 4 | two Codex accounts. It requires at least two of each and keeps existing accounts |
| 5 | connected. Each account gets its own private home and confirmed identity. All |
| 6 | connected accounts enter the bindings file; coordinator selection is unchanged. |
| 7 | |
| 8 | Saved counts become the next run's defaults. Existing home paths, identity |
| 9 | markers and binding IDs survive reruns, including upgrades from the original |
| 10 | three-home setup. Finished sign-ins are probed without another sign-in. A new |
| 11 | home that resolves to an already connected account is refused before its |
| 12 | identity is saved. On rerun, that unconfirmed home can sign in to another account. |
| 13 | |
| 14 | Certification now selects two connected accounts per provider. Both adapters |
| 15 | observe the second account, then must refuse its login when the expected |
| 16 | identity is the first account. The source homes remain untouched. Marker |
| 17 | modification has its own separate observation and cannot substitute for a second |
| 18 | account. The input format adds `account_changes`, keyed by provider. The previous |
| 19 | Claude-only `account_change` input remains readable; ambiguous inputs are refused. |
| 20 | |
| 21 | No real sign-ins, provider sessions, other agents, copy-review server, enrolment, |
| 22 | release or deployment were run. README prose is unchanged. The live gate still |
| 23 | requires real evidence before release. |
| 24 | |
| 25 | ## Verification |
| 26 | |
| 27 | The new setup tests first failed to compile because `connectAccounts` and |
| 28 | `writeBindings` did not exist. The first driver test exposed an incorrect |
| 29 | observation path in the test; that path was corrected before guard checks. |
| 30 | |
| 31 | Targeted setup and configuration checks passed: |
| 32 | |
| 33 | `CGO_ENABLED=0 go test ./internal/tryequipo ./internal/runner/provider -run 'TestConnectAll|TestAccount|TestDuplicateAccount|TestLiveConfig|TestUpgradeOriginal|TestDirectLive' -count=1` |
| 34 | |
| 35 | The fake Engineering driver passed with second-account evidence for both |
| 36 | providers: |
| 37 | |
| 38 | `CGO_ENABLED=0 go test ./internal/directlive -run '^TestDirectDriverFakeCLI/Engineering$' -count=1` |
| 39 | |
| 40 | Each guard below was deliberately broken with a compile-valid mutation, tested, |
| 41 | and restored. Every command uses `CGO_ENABLED=0` and `-count=1`. |
| 42 | |
| 43 | | Broken guard | Test command | Result | |
| 44 | | --- | --- | --- | |
| 45 | | Default to two Claude accounts | `go test ./internal/tryequipo -run '^TestConnectAllAccountsAndAddOnRerun$'` | Failed: only four accounts connected | |
| 46 | | Allow fewer than two accounts | `go test ./internal/tryequipo -run '^TestAccountCountMinimumAndNoRemoval$'` | Failed: sign-in began before valid counts | |
| 47 | | Allow dropping existing accounts | `go test ./internal/tryequipo -run '^TestUpgradeOriginalThreeHomes$'` | Failed: existing sixth account removed | |
| 48 | | Accept duplicate identities | `go test ./internal/tryequipo -run '^TestDuplicateAccountRefusedAndRetryable$'` | Failed for both providers | |
| 49 | | Repeat finished sign-ins | `go test ./internal/tryequipo -run '^TestConnectAllAccountsAndAddOnRerun$'` | Failed: finished sign-ins repeated | |
| 50 | | Write only two bindings | `go test ./internal/tryequipo -run '^TestConnectAllAccountsAndAddOnRerun$'` | Failed: not every account was bound | |
| 51 | | Omit the second Codex account | `go test ./internal/tryequipo -run '^TestLiveConfigAccountChangeBothProviders$'` | Failed: missing account-change configuration | |
| 52 | | Accept the primary account as the second account | `go test ./internal/runner/provider -run '^TestDirectLiveAccountChanges$'` | Failed for both providers | |
| 53 | | Skip Codex account change | `go test ./internal/directlive -run '^TestDirectDriverFakeCLI/Engineering$'` | Failed: Codex account-change evidence was not certified | |
| 54 | |
| 55 | The tests use temporary directories managed by Go and do not require `TMPDIR`. |
| 56 | The fake sign-in programs inherit only the provider login environment. They |
| 57 | record login counts and emit synthetic login output to verify it stays hidden. |
| 58 | The driver checks that both primary and secondary credential sources stay intact. |
| 59 | |
| 60 | Full affected-package checks passed: |
| 61 | |
| 62 | `CGO_ENABLED=0 go test ./internal/tryequipo ./internal/directlive ./internal/runner/provider -count=1` |
| 63 | |
| 64 | Results: setup 7.693s, certification 156.581s, provider 9.689s. The added binding |
| 65 | write on rerun and the exact copy-inventory check also passed: |
| 66 | |
| 67 | `CGO_ENABLED=0 go test ./internal/tryequipo ./internal/plan3test -run 'TestConnectAllAccountsAndAddOnRerun|TestPlan3ReleaseBoundaries/inventory' -count=1` |
| 68 | |
| 69 | Targeted `go vet`, the reference inventory and unchanged size budgets passed. |
| 70 | The single background `make ci` run passed with exit 0. Its full test step ran |
| 71 | 27 packages without cached results or failures in 5m4.889s. Build, vet, |
| 72 | formatting, staticcheck, govulncheck, gitleaks, size budgets, adapter checks, |
| 73 | namespace checks, migrations and performance all passed. Cold boot had a 102ms |
| 74 | median against 500ms; every measured GET stayed below its 150ms budget. |
| 75 | No reachable vulnerabilities or leaked secrets were reported. Network access |
| 76 | remained enabled and Go caches used their defaults. |
| 77 | |
| 78 | ## New strings |
| 79 | |
| 80 | All four entries are individually marked `COPY REVIEW PENDING` in |
| 81 | `internal/equipo/copy.go` and listed in the Plan 3 copy inventory. The guide's |
| 82 | account-count, rerun and certification paragraphs were updated in |
| 83 | `docs/live-gate.md`. No copy-review server was started, as instructed. |
| 84 | |
| 85 | | Key | Text | |
| 86 | | --- | --- | |
| 87 | | `claude-accounts` | Total Claude accounts to connect | |
| 88 | | `codex-accounts` | Total Codex accounts to connect | |
| 89 | | `account-minimum` | Enter a whole number of at least %d. Keep all existing accounts connected. | |
| 90 | | `duplicate-account` | This account is already connected in another home. Run the guide again and sign in to a different account. | |
| 91 | |
| 92 | The last two strings end with a newline. |
| 93 | |