carlos / platform Public

Merge remote-tracking branch 'origin/main' into moves-phase1-7

claude agent, operated by paul@keymail.dev 73e5a4cc5dfb33fb334645455785c9ec81d09ef5 parent 9da1888parent 1b5802f
90 files changed, +5184 −441
  • approved_moves_copy_test.go +5 −0
  • docs/superpowers/plans/2026-10-06-moves-phase1-copy.md +9 −1
  • internal/activator/claimwake.go +13 −2
  • internal/activator/plan12_resume_test.go +73 −0
  • internal/console/claim_authority_census_test.go +2 −2
  • internal/console/claim_invariant_moves_test.go +2 −2
  • internal/console/claim_runtime.go +4 −8
  • internal/console/movesrecovery.go +4 −12
  • internal/console/movesrecovery_test.go +5 −12
  • internal/console/server.go +0 −4
  • internal/console/testdata/claim-authority-sites.txt +5 −2
  • internal/host/claimassembly.go +16 −2
  • internal/host/claimconstruction.go +10 −1
  • internal/host/claimhandover_crossbox.go +30 −5
  • internal/host/claimhandover_recovery.go +328 −0
  • internal/host/claimmovefence.go +41 −0
  • internal/host/claimmoveparks.go +21 −12
  • internal/host/claimmoveparks_test.go +15 −9
  • internal/host/claimowners.go +3 −1
  • internal/host/claimproduction.go +17 −11
  • internal/host/claimrecoveryjournal.go +153 −0
  • internal/host/claimrecoveryreceipt.go +56 −0
  • internal/host/claimretire_local.go +59 −22
  • internal/host/claimretirementcensus.go +134 −0
  • internal/host/claimretryrecovery_test.go +21 −5
  • internal/host/claimroleassembly.go +1 −0
  • internal/host/claimroleassembly_linux.go +24 −9
  • internal/host/claimwakeassembly.go +88 −27
  • internal/host/claimwakestop.go +9 −1
  • internal/host/claimwiring.go +10 −8
  • internal/host/movessources.go +6 −3
  • internal/host/movessources_test.go +8 −2
  • internal/host/plan10_j2_test.go +2 −32
  • internal/host/plan12_census_test.go +164 −0
  • internal/host/plan12_fix1_test.go +218 −0
  • internal/host/plan12_handover_test.go +258 −0
  • internal/host/plan12_local_test.go +30 −0
  • internal/host/plan12_receipt_test.go +67 −0
  • internal/host/plan12_restore_linux_test.go +424 −0
  • internal/hostbox/aggregateleases.go +49 −7
  • internal/hostbox/parkleases.go +42 −0
  • internal/hostbox/plan12_fence_loss_test.go +118 −0
  • internal/hostbox/plan12_held_test.go +116 −0
  • internal/hostbox/plan12_loss_test.go +175 −0
  • internal/hostbox/renewing.go +10 −7
  • internal/hostbox/writer.go +17 −0
  • internal/hostbox/writer_loss.go +80 −0
  • internal/hostclaim/claim.go +6 −0
  • internal/hostclaim/create.go +12 −0
  • internal/hostclaim/generation.go +20 −0
  • internal/hostclaim/lossrecord.go +24 −0
  • internal/hostclaim/lost.go +17 −3
  • internal/hostclaim/lost_test.go +4 −0
  • internal/hostclaim/move.go +16 −1
  • internal/hostclaim/move_fence_admission.go +50 −0
  • internal/hostclaim/move_loss.go +83 −82
  • internal/hostclaim/move_target_fence.go +177 −0
  • internal/hostclaim/operation_loss.go +69 −0
  • internal/hostclaim/plan12_fence_test.go +135 −0
  • internal/hostclaim/plan12_fix1_loss_test.go +132 −0
  • internal/hostclaim/plan12_history_test.go +18 −0
  • internal/hostclaim/plan12_target_release_test.go +30 −0
  • internal/hostclaim/writer_identity.go +11 −0
  • internal/hostguard/fence.go +3 −0
  • internal/hostguard/writerstop.go +26 −0
  • internal/hostops/automatic_loss.go +76 −0
  • internal/hostops/fencerelease/token.go +7 −0
  • internal/hostops/internal/fencerelease/token.go +27 −0
  • internal/hostops/internal/fencerelease/token_test.go +37 −0
  • internal/hostops/move_fence_release.go +177 −0
  • internal/hostops/move_local_loss_test.go +31 −0
  • internal/hostops/move_loss_admission.go +49 −0
  • internal/hostops/move_loss_owner.go +3 −3
  • internal/hostops/move_recovery_bridge.go +0 −34
  • internal/hostops/move_recovery_bridge_test.go +31 −40
  • internal/hostops/move_recovery_grant.go +3 −10
  • internal/hostops/move_recovery_grant_test.go +0 −49
  • internal/hostops/plan12_fence_test.go +304 −0
  • internal/hostops/plan12_fix1_recovery_test.go +70 −0
  • internal/hostops/plan12_loss_test.go +42 −0
  • internal/hostops/recovery.go +21 −2
  • internal/park/remote.go +27 −2
  • internal/park/sweep.go +35 −0
  • internal/provision/plan9_b8_census_test.go +12 −4
  • internal/provision/provision.go +6 −1
  • internal/registry/plan12_fix1_journal_test.go +49 −0
  • internal/registry/plan12_recovery_test.go +109 −0
  • internal/registry/recoveryhandover.go +129 −0
  • internal/registry/recoveryjournal.go +142 −0
  • internal/registry/remote_dispatch.go +22 −1

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	329.177s
?   	github.com/carlosframework/platform/cmd/changelog	[no test files]
ok  	github.com/carlosframework/platform/cmd/console	3.239s
ok  	github.com/carlosframework/platform/cmd/moveprobe	93.320s
ok  	github.com/carlosframework/platform/internal/activator	208.694s
ok  	github.com/carlosframework/platform/internal/agentsock	0.020s
ok  	github.com/carlosframework/platform/internal/alerting	0.003s
ok  	github.com/carlosframework/platform/internal/analytics	0.028s
ok  	github.com/carlosframework/platform/internal/appconfig	2.342s
ok  	github.com/carlosframework/platform/internal/apperr	0.101s
ok  	github.com/carlosframework/platform/internal/applog	0.210s
ok  	github.com/carlosframework/platform/internal/awsinv	0.005s
ok  	github.com/carlosframework/platform/internal/boxchoice	0.009s
ok  	github.com/carlosframework/platform/internal/boxid	1.123s
?   	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.188s
ok  	github.com/carlosframework/platform/internal/changelog	0.290s
ok  	github.com/carlosframework/platform/internal/clamd	0.059s
?   	github.com/carlosframework/platform/internal/cliflag	[no test files]
ok  	github.com/carlosframework/platform/internal/console	357.221s
?   	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	5.753s
ok  	github.com/carlosframework/platform/internal/dbdoor/dbdoortest	0.009s
ok  	github.com/carlosframework/platform/internal/dbverify	0.008s
ok  	github.com/carlosframework/platform/internal/dnsrec	0.008s
ok  	github.com/carlosframework/platform/internal/docsite	0.008s
ok  	github.com/carlosframework/platform/internal/domains	2.004s
ok  	github.com/carlosframework/platform/internal/doorkey	0.008s
ok  	github.com/carlosframework/platform/internal/economics	0.008s
ok  	github.com/carlosframework/platform/internal/edge	25.833s
?   	github.com/carlosframework/platform/internal/edgeproof	[no test files]
ok  	github.com/carlosframework/platform/internal/edgesfile	0.009s
ok  	github.com/carlosframework/platform/internal/fleetapi	0.141s
ok  	github.com/carlosframework/platform/internal/gate	1.655s
ok  	github.com/carlosframework/platform/internal/genselect	0.015s
ok  	github.com/carlosframework/platform/internal/geo	0.020s
ok  	github.com/carlosframework/platform/internal/geoip	0.036s
ok  	github.com/carlosframework/platform/internal/host	51.787s
ok  	github.com/carlosframework/platform/internal/hostactors	0.554s
ok  	github.com/carlosframework/platform/internal/hostbox	1.331s
ok  	github.com/carlosframework/platform/internal/hostclaim	0.249s
ok  	github.com/carlosframework/platform/internal/hostevidence	0.013s
ok  	github.com/carlosframework/platform/internal/hostexec	0.309s
ok  	github.com/carlosframework/platform/internal/hostfence	0.043s
ok  	github.com/carlosframework/platform/internal/hostfiles	4.140s
ok  	github.com/carlosframework/platform/internal/hostfloor	0.019s
ok  	github.com/carlosframework/platform/internal/hostguard	0.130s
ok  	github.com/carlosframework/platform/internal/hostops	1.311s
?   	github.com/carlosframework/platform/internal/hostops/fencerelease	[no test files]
ok  	github.com/carlosframework/platform/internal/hostops/internal/fencerelease	0.002s
ok  	github.com/carlosframework/platform/internal/hostquarantine	0.005s
ok  	github.com/carlosframework/platform/internal/hostresolve	0.125s
ok  	github.com/carlosframework/platform/internal/hostwrite	0.003s
ok  	github.com/carlosframework/platform/internal/infraview	0.004s
ok  	github.com/carlosframework/platform/internal/instancectl	1.704s
ok  	github.com/carlosframework/platform/internal/instanceexec	2.694s
ok  	github.com/carlosframework/platform/internal/instancefs	0.004s
ok  	github.com/carlosframework/platform/internal/instancekey	0.004s
ok  	github.com/carlosframework/platform/internal/instanceupdates	0.007s
ok  	github.com/carlosframework/platform/internal/layout	1.350s
ok  	github.com/carlosframework/platform/internal/lease	9.434s
ok  	github.com/carlosframework/platform/internal/lease/leasetest	0.006s
ok  	github.com/carlosframework/platform/internal/ledger	0.011s
ok  	github.com/carlosframework/platform/internal/mail	0.151s
ok  	github.com/carlosframework/platform/internal/maintenance	0.079s
ok  	github.com/carlosframework/platform/internal/maintenanceexec	5.495s
ok  	github.com/carlosframework/platform/internal/maintenanceguard	0.077s
ok  	github.com/carlosframework/platform/internal/metrics	0.005s
ok  	github.com/carlosframework/platform/internal/moves	21.063s
ok  	github.com/carlosframework/platform/internal/moves/archive	0.741s
ok  	github.com/carlosframework/platform/internal/objstore	0.160s
ok  	github.com/carlosframework/platform/internal/ops	0.152s
ok  	github.com/carlosframework/platform/internal/park	0.174s
ok  	github.com/carlosframework/platform/internal/privatefile	0.007s
ok  	github.com/carlosframework/platform/internal/provision	3.177s
ok  	github.com/carlosframework/platform/internal/publicrelease	0.007s
ok  	github.com/carlosframework/platform/internal/registry	3.705s
ok  	github.com/carlosframework/platform/internal/relay	7.228s
ok  	github.com/carlosframework/platform/internal/release	18.693s
ok  	github.com/carlosframework/platform/internal/rollout	1.494s
ok  	github.com/carlosframework/platform/internal/rolloutwords	0.003s
ok  	github.com/carlosframework/platform/internal/rootaws	0.007s
ok  	github.com/carlosframework/platform/internal/s3compat	0.005s
ok  	github.com/carlosframework/platform/internal/safefile	0.004s
ok  	github.com/carlosframework/platform/internal/schedule	2.221s
ok  	github.com/carlosframework/platform/internal/sim/hostlife	2.453s
ok  	github.com/carlosframework/platform/internal/sim/litestreamfacts	3.867s
ok  	github.com/carlosframework/platform/internal/status	0.042s
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.005s
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.002s
ok  	github.com/carlosframework/platform/internal/updatewords	0.002s
ok  	github.com/carlosframework/platform/internal/usage	0.004s
ok  	github.com/carlosframework/platform/internal/version	0.002s
ok  	github.com/carlosframework/platform/internal/vet	1.573s
=== cross ===
--- shard 0 of 5 ---
cross-compiling darwin/arm64
go: downloading github.com/ncruces/go-strftime v1.0.0
--- shard 1 of 5 ---
cross-compiling darwin/amd64
go: downloading github.com/ncruces/go-strftime v1.0.0
--- shard 2 of 5 ---
cross-compiling linux/arm64
--- shard 3 of 5 ---
cross-compiling windows/amd64
go: downloading github.com/ncruces/go-strftime v1.0.0
--- shard 4 of 5 ---
cross-compiling windows/arm64
go: downloading github.com/ncruces/go-strftime v1.0.0
=== minio-contract ===
minio contract: arm64, minio RELEASE.2025-09-07T16-13-09Z, mc RELEASE.2025-08-13T08-35-41Z
  minio: downloading https://github.com/minio/minio/releases/download/RELEASE.2025-09-07T16-13-09Z/minio.linux-arm64.RELEASE.2025-09-07T16-13-09Z
  minio: downloaded, digest verified
  mc: downloading https://github.com/minio/mc/releases/download/RELEASE.2025-08-13T08-35-41Z/mc.linux-arm64.RELEASE.2025-08-13T08-35-41Z
  mc: downloaded, 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.024s
=== RUN   TestT4StorageProbeMinio
2026/10/12 05:13:54 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18DDB0446A47BA07, 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.01s)
PASS
ok  	github.com/carlosframework/platform/internal/host	0.016s
minio contract: PASS
approved_moves_copy_test.go

Loading diff…

docs/superpowers/plans/2026-10-06-moves-phase1-copy.md

Loading diff…

internal/activator/claimwake.go

Loading diff…

internal/activator/plan12_resume_test.go

Loading diff…

internal/console/claim_authority_census_test.go

Loading diff…

internal/console/claim_invariant_moves_test.go

Loading diff…

internal/console/claim_runtime.go

Loading diff…

internal/console/movesrecovery.go

Loading diff…

internal/console/movesrecovery_test.go

Loading diff…

internal/console/server.go

Loading diff…

internal/console/testdata/claim-authority-sites.txt

Loading diff…

internal/host/claimassembly.go

Loading diff…

internal/host/claimconstruction.go

Loading diff…

internal/host/claimhandover_crossbox.go

Loading diff…

internal/host/claimhandover_recovery.go

Loading diff…

internal/host/claimmovefence.go

Loading diff…

internal/host/claimmoveparks.go

Loading diff…

internal/host/claimmoveparks_test.go

Loading diff…

internal/host/claimowners.go

Loading diff…

internal/host/claimproduction.go

Loading diff…

internal/host/claimrecoveryjournal.go

Loading diff…

internal/host/claimrecoveryreceipt.go

Loading diff…

internal/host/claimretire_local.go

Loading diff…

internal/host/claimretirementcensus.go

Loading diff…

internal/host/claimretryrecovery_test.go

Loading diff…

internal/host/claimroleassembly.go

Loading diff…

internal/host/claimroleassembly_linux.go

Loading diff…

internal/host/claimwakeassembly.go

Loading diff…

internal/host/claimwakestop.go

Loading diff…

internal/host/claimwiring.go

Loading diff…

internal/host/movessources.go

Loading diff…

internal/host/movessources_test.go

Loading diff…

internal/host/plan10_j2_test.go

Loading diff…

internal/host/plan12_census_test.go

Loading diff…

internal/host/plan12_fix1_test.go

Loading diff…

internal/host/plan12_handover_test.go

Loading diff…

internal/host/plan12_local_test.go

Loading diff…

internal/host/plan12_receipt_test.go

Loading diff…

internal/host/plan12_restore_linux_test.go

Loading diff…

internal/hostbox/aggregateleases.go

Loading diff…

internal/hostbox/parkleases.go

Loading diff…

internal/hostbox/plan12_fence_loss_test.go

Loading diff…

internal/hostbox/plan12_held_test.go

Loading diff…

internal/hostbox/plan12_loss_test.go

Loading diff…

internal/hostbox/renewing.go

Loading diff…

internal/hostbox/writer.go

Loading diff…

internal/hostbox/writer_loss.go

Loading diff…

internal/hostclaim/claim.go

Loading diff…

internal/hostclaim/create.go

Loading diff…

internal/hostclaim/generation.go

Loading diff…

internal/hostclaim/lossrecord.go

Loading diff…

internal/hostclaim/lost.go

Loading diff…

internal/hostclaim/lost_test.go

Loading diff…

internal/hostclaim/move.go

Loading diff…

internal/hostclaim/move_fence_admission.go

Loading diff…

internal/hostclaim/move_loss.go

Loading diff…

internal/hostclaim/move_target_fence.go

Loading diff…

internal/hostclaim/operation_loss.go

Loading diff…

internal/hostclaim/plan12_fence_test.go

Loading diff…

internal/hostclaim/plan12_fix1_loss_test.go

Loading diff…

internal/hostclaim/plan12_history_test.go

Loading diff…

internal/hostclaim/plan12_target_release_test.go

Loading diff…

internal/hostclaim/writer_identity.go

Loading diff…

internal/hostguard/fence.go

Loading diff…

internal/hostguard/writerstop.go

Loading diff…

internal/hostops/automatic_loss.go

Loading diff…

internal/hostops/fencerelease/token.go

Loading diff…

internal/hostops/internal/fencerelease/token.go

Loading diff…

internal/hostops/internal/fencerelease/token_test.go

Loading diff…

internal/hostops/move_fence_release.go

Loading diff…

internal/hostops/move_local_loss_test.go

Loading diff…

internal/hostops/move_loss_admission.go

Loading diff…

internal/hostops/move_loss_owner.go

Loading diff…

internal/hostops/move_recovery_bridge.go

Loading diff…

internal/hostops/move_recovery_bridge_test.go

Loading diff…

internal/hostops/move_recovery_grant.go

Loading diff…

internal/hostops/move_recovery_grant_test.go

Loading diff…

internal/hostops/plan12_fence_test.go

Loading diff…

internal/hostops/plan12_fix1_recovery_test.go

Loading diff…

internal/hostops/plan12_loss_test.go

Loading diff…

internal/hostops/recovery.go

Loading diff…

internal/park/remote.go

Loading diff…

internal/park/sweep.go

Loading diff…

internal/provision/plan9_b8_census_test.go

Loading diff…

internal/provision/provision.go

Loading diff…

internal/registry/plan12_fix1_journal_test.go

Loading diff…

internal/registry/plan12_recovery_test.go

Loading diff…

internal/registry/recoveryhandover.go

Loading diff…

internal/registry/recoveryjournal.go

Loading diff…

internal/registry/remote_dispatch.go

Loading diff…