Repository navigation
feat: coordinate root pool deletion lifecycle - #141
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Final verificationF1 — fail
F2 — fail
F3 — fail
F4 — fail
agentic-pr-verify: {"run":"46949809066","sha":"36cbd03f6a1e48a79e95884b054208d9dbfbef63","verdict":"fail","acs":1,"mapped":[],"finals":{"F1":"fail","F2":"fail","F3":"fail","F4":"fail"}}
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Commit pushed:
|
Final verificationF1 — pass
F2 — pass
F3 — pass
F4 — pass
agentic-pr-verify: {"run":"46958310032","sha":"49e5eccf8a29ca46485db102dce801e7368c2b74","verdict":"pass","acs":1,"mapped":[{"ac":"AC-15","proof":"test","test":"TestDeleteRootPoolAC15CoordinatesLifecycle; TestDeleteRootPoolAC15RejectsNonemptyBeforeLifecycleTransition; TestDeleteRootPoolAC15RepeatedDeletePreservesReplacementIncarnation; TestDeleteRootPoolAC15RepeatedDeleteDoesNotAdoptNewDeletingIncarnation; TestDeleteRootPoolAC15MismatchedActiveIncarnationPreservesDocuments; TestDeleteRootPoolAC15RereadsAmbiguousOutcomes; TestDeleteRootPoolAC15RereadsAmbiguousRegistryTransition; TestCreatePoolIncompleteStatesRetryThenReportWithoutWrites","check":"test (ubuntu-latest)"}],"finals":{"F1":"pass","F2":"pass","F3":"pass","F4":"pass"}}
|
Summary
Coordinate root pool deletion with the root registry lifecycle so active or pending reservations become
deletingbefore owned document removal, and exact interrupted deletions retain their incarnation through retry.The redraft makes active and pending ownership all-or-nothing: if either present pool or state document belongs to another incarnation, deletion returns an inconsistent-lifecycle conflict without writes and preserves both documents and the registry entry. Deleting retries continue to remove only their pinned incarnation.
Changed files outside Story Hints
root_lifecycle.go: owns exact root-registry document matching used bypool.go.root_create_protocol_test.go: the requested AC-15 lifecycle tables live here because this repository has nopool_test.go.client_attempt4_test.go: existing incomplete-state coverage now records the required preservation behavior for a split root incarnation.Skills used: programming, go, ac-test-mapping.
Final verification
F1. Story compliance Reviewed by pr-verify run 46958310032 on 49e5ecc.
pool.goandroot_lifecycle.gopin the registry incarnation before deletion, reject mixed ownership for active or pending entries, and never adopt a foreign reservation or pool document.F2. Code quality Reviewed by pr-verify run 46958310032 on 49e5ecc.
make testpassed with the race detector across all packages.make buildpassed.go vet ./...passed.make lintpassed, includinggolangci-lintand license headers.F3. Test evidence Reviewed by pr-verify run 46958310032 on 49e5ecc.
TestDeleteRootPoolAC15CoordinatesLifecycleproves active and pending transitions, established document order, and exact cleanup.TestDeleteRootPoolAC15RejectsNonemptyBeforeLifecycleTransitionproves nonempty refusal performs no writes.TestDeleteRootPoolAC15MismatchedActiveIncarnationPreservesDocumentsproves both split directions and a fully mismatched pair preserve document bytes and perform no writes for active and pending entries. The matching-pool/foreign-reservation cases failed before the fix and pass after it.TestDeleteRootPoolAC15RepeatedDeletePreservesReplacementIncarnationandTestDeleteRootPoolAC15RepeatedDeleteDoesNotAdoptNewDeletingIncarnationprove interrupted retries remain incarnation-safe.TestDeleteRootPoolAC15RereadsAmbiguousOutcomesandTestDeleteRootPoolAC15RereadsAmbiguousRegistryTransitionprove ambiguous outcomes retain unrelated roots and reservations.TestCreatePoolIncompleteStatesRetryThenReportWithoutWritesproves the existing incomplete-state behavior, including preservation of split root incarnations.F4. Spec fidelity Reviewed by pr-verify run 46958310032 on 49e5ecc.
root-pool-overlap.mdand ADR-0003: lifecycle state determines participation, all deleting transitions remain exact-incarnation, and an unusable foreign incarnation is not adopted as a usable root.TestDeleteRootPoolAC15CoordinatesLifecycle;TestDeleteRootPoolAC15MismatchedActiveIncarnationPreservesDocuments; interruption and ambiguous-outcome AC-15 tests inroot_create_protocol_test.gotest (ubuntu-latest)Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
ipamtesthost.invalidTo allow these domains, add them to the
network.allowedlist in your workflow frontmatter:See Network Configuration for more information.
Closes #135