carlos / platform Public

region-ha-two-box-build

Squashed from region-ha-two-box-build into main.
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 93ceb6cdc2397f20659401707e0b4e3162335981 parent d850865
45 files changed, +20816 −135
  • docs/superpowers/notes/2026-10-08-region-ha-two-box-sweep-diagnosis.md +175 −0
  • docs/superpowers/plans/2026-10-07-region-ha-hostlife-two-box.md +10467 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-1.md +53 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-2.md +62 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-3.md +65 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-4.md +65 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-5.md +68 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-6.md +68 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-7.md +68 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-8.md +68 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-9.md +68 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R1.md +71 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R2.md +50 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R3.md +49 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R4.md +54 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R5.md +41 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R6.md +41 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R7.md +47 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R8.md +48 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R9.md +38 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-TWO-BOX-R1.md +339 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-TWO-BOX-R2.md +41 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-TWO-BOX-R3.md +37 −0
  • docs/superpowers/plans/CODEX-REVIEW-TWO-BOX-R1.md +42 −0
  • docs/superpowers/plans/CODEX-REVIEW-TWO-BOX-R2.md +45 −0
  • docs/superpowers/plans/CODEX-REVIEW-TWO-BOX-R3.md +35 −0
  • internal/sim/hostlife/background_test.go +18 −4
  • internal/sim/hostlife/console_test.go +181 −11
  • internal/sim/hostlife/expected-outcomes.two-box.txt +13 −0
  • internal/sim/hostlife/expected-outcomes.txt +32 −0
  • internal/sim/hostlife/moves_test.go +107 −82
  • internal/sim/hostlife/mutate.sh +39 −16
  • internal/sim/hostlife/onebox_identity_test.go +77 −0
  • internal/sim/hostlife/protocol_test.go +106 −9
  • internal/sim/hostlife/regionha_cases_test.go +733 −0
  • internal/sim/hostlife/regionha_completion_test.go +528 −0
  • internal/sim/hostlife/regionha_completion_witness_test.go +770 −0
  • internal/sim/hostlife/regionha_round1_test.go +1350 −0
  • internal/sim/hostlife/regionha_test.go +2668 −0
  • internal/sim/hostlife/regionha_witness_test.go +1290 −0
  • internal/sim/hostlife/rules_test.go +81 −0
  • internal/sim/hostlife/sim_test.go +68 −7
  • internal/sim/hostlife/twobox_test.go +194 −0
  • internal/sim/hostlife/witness_test.go +123 −3
  • internal/sim/hostlife/world_test.go +233 −3

CI passed — run details

CI log
=== gate ===
cd launchctx && go vet ./... && go test ./... -count=1
ok  	amadan.net/carlos/platform.git/launchctx	0.011s
?   	amadan.net/carlos/platform.git/launchctx/controlname	[no test files]
?   	amadan.net/carlos/platform.git/launchctx/wireid	[no test files]
go vet ./...
gofmt -l .: clean
go test ./... -count=1 -timeout 30m
ok  	github.com/carlosframework/platform	339.135s
?   	github.com/carlosframework/platform/cmd/changelog	[no test files]
ok  	github.com/carlosframework/platform/cmd/console	3.326s
ok  	github.com/carlosframework/platform/cmd/moveprobe	93.244s
ok  	github.com/carlosframework/platform/internal/activator	229.537s
ok  	github.com/carlosframework/platform/internal/agentsock	0.019s
ok  	github.com/carlosframework/platform/internal/alerting	0.003s
ok  	github.com/carlosframework/platform/internal/analytics	0.022s
ok  	github.com/carlosframework/platform/internal/appconfig	2.350s
ok  	github.com/carlosframework/platform/internal/apperr	0.073s
ok  	github.com/carlosframework/platform/internal/applog	0.130s
ok  	github.com/carlosframework/platform/internal/awsinv	0.003s
ok  	github.com/carlosframework/platform/internal/boxchoice	0.004s
ok  	github.com/carlosframework/platform/internal/boxid	0.446s
?   	github.com/carlosframework/platform/internal/boxid/boxidtest	[no test files]
?   	github.com/carlosframework/platform/internal/boxid/internal/signtest	[no test files]
ok  	github.com/carlosframework/platform/internal/boxvolumes	0.008s
ok  	github.com/carlosframework/platform/internal/caps	0.012s
ok  	github.com/carlosframework/platform/internal/certwarm	0.002s
ok  	github.com/carlosframework/platform/internal/cgroup	0.189s
ok  	github.com/carlosframework/platform/internal/changelog	0.240s
ok  	github.com/carlosframework/platform/internal/clamd	0.054s
?   	github.com/carlosframework/platform/internal/cliflag	[no test files]
ok  	github.com/carlosframework/platform/internal/console	363.245s
?   	github.com/carlosframework/platform/internal/controlname	[no test files]
?   	github.com/carlosframework/platform/internal/controlsock	[no test files]
ok  	github.com/carlosframework/platform/internal/dbdoor	6.085s
ok  	github.com/carlosframework/platform/internal/dbdoor/dbdoortest	0.009s
ok  	github.com/carlosframework/platform/internal/dbverify	0.004s
ok  	github.com/carlosframework/platform/internal/dnsrec	0.003s
ok  	github.com/carlosframework/platform/internal/docsite	0.007s
ok  	github.com/carlosframework/platform/internal/domains	2.176s
ok  	github.com/carlosframework/platform/internal/doorkey	0.011s
ok  	github.com/carlosframework/platform/internal/economics	0.004s
ok  	github.com/carlosframework/platform/internal/edge	25.966s
?   	github.com/carlosframework/platform/internal/edgeproof	[no test files]
ok  	github.com/carlosframework/platform/internal/edgesfile	0.006s
ok  	github.com/carlosframework/platform/internal/fleetapi	0.137s
ok  	github.com/carlosframework/platform/internal/gate	1.655s
ok  	github.com/carlosframework/platform/internal/genselect	0.022s
ok  	github.com/carlosframework/platform/internal/geo	0.009s
ok  	github.com/carlosframework/platform/internal/geoip	0.030s
ok  	github.com/carlosframework/platform/internal/host	61.658s
ok  	github.com/carlosframework/platform/internal/hostactors	0.392s
ok  	github.com/carlosframework/platform/internal/hostbox	1.281s
ok  	github.com/carlosframework/platform/internal/hostclaim	0.320s
ok  	github.com/carlosframework/platform/internal/hostevidence	0.010s
ok  	github.com/carlosframework/platform/internal/hostexec	0.309s
ok  	github.com/carlosframework/platform/internal/hostfence	0.032s
ok  	github.com/carlosframework/platform/internal/hostfiles	4.161s
ok  	github.com/carlosframework/platform/internal/hostfloor	0.008s
ok  	github.com/carlosframework/platform/internal/hostguard	0.137s
ok  	github.com/carlosframework/platform/internal/hostops	1.414s
?   	github.com/carlosframework/platform/internal/hostops/fencerelease	[no test files]
ok  	github.com/carlosframework/platform/internal/hostops/internal/fencerelease	0.003s
ok  	github.com/carlosframework/platform/internal/hostquarantine	0.003s
ok  	github.com/carlosframework/platform/internal/hostresolve	0.145s
ok  	github.com/carlosframework/platform/internal/hostwrite	0.002s
ok  	github.com/carlosframework/platform/internal/infraview	0.003s
ok  	github.com/carlosframework/platform/internal/instancectl	1.707s
ok  	github.com/carlosframework/platform/internal/instanceexec	2.686s
ok  	github.com/carlosframework/platform/internal/instancefs	0.004s
ok  	github.com/carlosframework/platform/internal/instancekey	0.003s
ok  	github.com/carlosframework/platform/internal/instanceupdates	0.009s
ok  	github.com/carlosframework/platform/internal/layout	1.392s
ok  	github.com/carlosframework/platform/internal/lease	9.447s
ok  	github.com/carlosframework/platform/internal/lease/leasetest	0.005s
ok  	github.com/carlosframework/platform/internal/ledger	0.013s
ok  	github.com/carlosframework/platform/internal/mail	0.154s
ok  	github.com/carlosframework/platform/internal/maintenance	0.076s
ok  	github.com/carlosframework/platform/internal/maintenanceexec	5.501s
ok  	github.com/carlosframework/platform/internal/maintenanceguard	0.068s
ok  	github.com/carlosframework/platform/internal/metrics	0.004s
ok  	github.com/carlosframework/platform/internal/moves	20.977s
ok  	github.com/carlosframework/platform/internal/moves/archive	0.771s
ok  	github.com/carlosframework/platform/internal/objstore	0.175s
ok  	github.com/carlosframework/platform/internal/ops	0.158s
ok  	github.com/carlosframework/platform/internal/park	0.193s
ok  	github.com/carlosframework/platform/internal/privatefile	0.003s
ok  	github.com/carlosframework/platform/internal/provision	3.307s
ok  	github.com/carlosframework/platform/internal/publicrelease	0.006s
?   	github.com/carlosframework/platform/internal/regionname	[no test files]
ok  	github.com/carlosframework/platform/internal/registry	3.971s
ok  	github.com/carlosframework/platform/internal/relay	7.228s
ok  	github.com/carlosframework/platform/internal/release	19.025s
ok  	github.com/carlosframework/platform/internal/rollout	3.259s
ok  	github.com/carlosframework/platform/internal/rolloutwords	0.003s
ok  	github.com/carlosframework/platform/internal/rootaws	0.006s
ok  	github.com/carlosframework/platform/internal/s3compat	0.005s
ok  	github.com/carlosframework/platform/internal/safefile	0.003s
ok  	github.com/carlosframework/platform/internal/schedule	2.270s
ok  	github.com/carlosframework/platform/internal/sim/hostlife	8.410s
ok  	github.com/carlosframework/platform/internal/sim/litestreamfacts	4.294s
ok  	github.com/carlosframework/platform/internal/status	0.039s
ok  	github.com/carlosframework/platform/internal/steering	0.006s
ok  	github.com/carlosframework/platform/internal/stopevidence	0.126s
ok  	github.com/carlosframework/platform/internal/svcrole	0.002s
ok  	github.com/carlosframework/platform/internal/telemetry	0.004s
ok  	github.com/carlosframework/platform/internal/termfence	0.004s
ok  	github.com/carlosframework/platform/internal/tunnelclient	0.004s
ok  	github.com/carlosframework/platform/internal/unixdial	0.003s
ok  	github.com/carlosframework/platform/internal/updatewords	0.004s
ok  	github.com/carlosframework/platform/internal/usage	0.005s
ok  	github.com/carlosframework/platform/internal/version	0.002s
ok  	github.com/carlosframework/platform/internal/vet	1.560s
=== cross ===
--- shard 0 of 5 ---
cross-compiling darwin/arm64
--- shard 1 of 5 ---
cross-compiling darwin/amd64
--- shard 2 of 5 ---
cross-compiling linux/arm64
--- shard 3 of 5 ---
cross-compiling windows/amd64
--- shard 4 of 5 ---
cross-compiling windows/arm64
=== minio-contract ===
minio contract: arm64, minio RELEASE.2025-09-07T16-13-09Z, mc RELEASE.2025-08-13T08-35-41Z
  minio: cached, digest verified
  mc: cached, digest verified
  minio healthy on 127.0.0.1:20999
Added `local` successfully.
Bucket created successfully `local/contract-bucket`.
Bucket created successfully `local/denied-bucket`.
Created policy `contract-only` successfully.
Added user `scopeduser` successfully.
Attached Policies: [contract-only]
To User: scopeduser
  buckets and scoped user ready
=== RUN   TestDeliveredContractMinio
=== RUN   TestDeliveredContractMinio/put
=== RUN   TestDeliveredContractMinio/get_round-trips_the_body
=== RUN   TestDeliveredContractMinio/list_shows_the_key
=== RUN   TestDeliveredContractMinio/head_and_list_agree_on_the_version
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_its_own_object
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict
=== RUN   TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed
=== RUN   TestDeliveredContractMinio/delete_removes_it
=== RUN   TestDeliveredContractMinio/cross-bucket_denial
--- PASS: TestDeliveredContractMinio (0.02s)
    --- PASS: TestDeliveredContractMinio/put (0.00s)
    --- PASS: TestDeliveredContractMinio/get_round-trips_the_body (0.00s)
    --- PASS: TestDeliveredContractMinio/list_shows_the_key (0.00s)
    --- PASS: TestDeliveredContractMinio/head_and_list_agree_on_the_version (0.00s)
    --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload (0.00s)
    --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route (0.01s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict (0.00s)
        --- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed (0.00s)
    --- PASS: TestDeliveredContractMinio/delete_removes_it (0.00s)
    --- PASS: TestDeliveredContractMinio/cross-bucket_denial (0.00s)
PASS
ok  	github.com/carlosframework/platform/internal/objstore	0.023s
=== RUN   TestT4StorageProbeMinio
2026/10/13 00:09:23 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18DDEE3AF8FAF1A1, HostID: 7c420053e0fbcd7f41653fdd92ffa2802c903d05303b1aa15adc2e8bb65d183f, api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
--- PASS: TestT4StorageProbeMinio (0.00s)
PASS
ok  	github.com/carlosframework/platform/internal/host	0.021s
minio contract: PASS
docs/superpowers/notes/2026-10-08-region-ha-two-box-sweep-diagnosis.md

Loading diff…

docs/superpowers/plans/2026-10-07-region-ha-hostlife-two-box.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-1.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-2.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-3.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-4.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-5.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-6.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-7.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-8.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-BRIEF-9.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R1.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R2.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R3.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R4.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R5.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R6.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R7.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R8.md

Loading diff…

docs/superpowers/plans/CODEX-PLAN-REGION-HA-TWO-BOX-R9.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-BRIEF-TWO-BOX-R1.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-BRIEF-TWO-BOX-R2.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-BRIEF-TWO-BOX-R3.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-TWO-BOX-R1.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-TWO-BOX-R2.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-TWO-BOX-R3.md

Loading diff…

internal/sim/hostlife/background_test.go

Loading diff…

internal/sim/hostlife/console_test.go

Loading diff…

internal/sim/hostlife/expected-outcomes.two-box.txt

Loading diff…

internal/sim/hostlife/expected-outcomes.txt

Loading diff…

internal/sim/hostlife/moves_test.go

Loading diff…

internal/sim/hostlife/mutate.sh

Loading diff…

internal/sim/hostlife/onebox_identity_test.go

Loading diff…

internal/sim/hostlife/protocol_test.go

Loading diff…

internal/sim/hostlife/regionha_cases_test.go

Loading diff…

internal/sim/hostlife/regionha_completion_test.go

Loading diff…

internal/sim/hostlife/regionha_completion_witness_test.go

Loading diff…

internal/sim/hostlife/regionha_round1_test.go

Loading diff…

internal/sim/hostlife/regionha_test.go

Loading diff…

internal/sim/hostlife/regionha_witness_test.go

Loading diff…

internal/sim/hostlife/rules_test.go

Loading diff…

internal/sim/hostlife/sim_test.go

Loading diff…

internal/sim/hostlife/twobox_test.go

Loading diff…

internal/sim/hostlife/witness_test.go

Loading diff…

internal/sim/hostlife/world_test.go

Loading diff…