Repository navigation
feat: persist versioned root pool registry - #138
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Final verificationF1 — fail
F2 — fail
F3 — fail
F4 — fail
agentic-pr-verify: {"run":"46866064757","sha":"87a13d313d98a708e8721072284f5bbab0bb9a00","verdict":"fail","acs":2,"mapped":[{"ac":"AC-10","proof":"test","test":"TestRootRegistryCodecAC10RejectsInvalidStateWithoutWriting; TestRootRegistryTransitionAC10RetriesStaleVersions; TestRootRegistryTransitionAC10RereadsUnknownConditionalWrite","check":"test (ubuntu-latest)"}],"finals":{"F1":"fail","F2":"fail","F3":"fail","F4":"fail"}}
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Commit pushed:
|
Final verificationF1 — passNo blocking findings. The diff delivers the strict v1 registry, deterministic encoding, validation and CAS transitions within the Story's constraints. Every changed file outside the hinted areas is listed and justified in the PR description; no pool or allocation-state schema or backend operation changes were introduced. F2 — passNo blocking findings. The whole diff is consistent with the repository's Go conventions and error handling, the prior CIDR-ordering defect is fixed, and ambiguous writes are reread for landed and non-landed outcomes. All non-agentic CI checks on the head SHA succeeded: F3 — fail
F4 — passNo blocking findings. Both ACs map to named automated tests run by the successful agentic-pr-verify: {"run":"46872765515","sha":"fa232a85098c7919cd59965c966d389eb888568c","verdict":"pass","acs":2,"mapped":[{"ac":"AC-10","proof":"test","test":"TestRootRegistryCodecAC10RejectsInvalidStateWithoutWriting; TestRootRegistryTransitionAC10RetriesStaleVersions; TestRootRegistryTransitionAC10RereadsUnknownConditionalWrite","check":"test (ubuntu-latest)"},{"ac":"AC-15","proof":"test","test":"TestRootRegistryCodecAC15RoundTripsLifecycleOwnership; TestRootRegistryTransitionAC15RereadsUnknownCASOwnership","check":"test (ubuntu-latest)"}],"finals":{"F1":"pass","F2":"pass","F3":"fail","F4":"pass"}}
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Commit pushed:
|
Final verificationF1 — passNo blocking findings. The diff delivers the strict v1 registry document, deterministic canonical ordering, state invariants, and reusable conditional-write transitions within the Story's constraints. Every changed file outside the Story's hints is listed and justified in the PR description; pool and allocation-state wire schemas and backend operations remain unchanged. F2 — passNo blocking findings. The full diff follows the repository's Go conventions, handles malformed state and CAS failures explicitly, and contains no prose-only or self-exercising tests. All applicable CI checks on the head SHA succeeded: F3 — passNo blocking findings. AC-10 covers unsupported and malformed schema, duplicate IDs, invalid identity, family, CIDR, ordering and lifecycle state while preserving stored bytes; it also covers stale-version retry and landed/non-landed ambiguous creation. AC-15 covers codec round trips and transition ownership for pending, active and deleting incarnations, including landed/non-landed ambiguous CAS outcomes. F4 — passNo blocking findings. Both ACs map to named automated tests executed successfully by agentic-pr-verify: {"run":"46878361610","sha":"1a9ecb7e0b3fb272c2ef0c8112881983995d0aa5","verdict":"pass","acs":2,"mapped":[{"ac":"AC-10","proof":"test","test":"TestRootRegistryCodecAC10RejectsInvalidStateWithoutWriting; TestRootRegistryTransitionAC10RetriesStaleVersions; TestRootRegistryTransitionAC10RereadsUnknownConditionalWrite","check":"test (ubuntu-latest)"},{"ac":"AC-15","proof":"test","test":"TestRootRegistryCodecAC15RoundTripsLifecycleOwnership; TestRootRegistryTransitionAC15RereadsUnknownCASOwnership","check":"test (ubuntu-latest)"}],"finals":{"F1":"pass","F2":"pass","F3":"pass","F4":"pass"}} Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "ipamtesthost.invalid"See Network Configuration for more information.
|
Summary
root_pool_registrywire document below the existingpools/capability.CreateIfAbsent/PutIfMatchtransitions with stale-version retry and explicit ambiguous-outcome rereads.Skills used: programming, go, ac-test-mapping, spec-kit
Final verification
The registry retains pending, active and deleting ownership and uses only Get, List, CreateIfAbsent and PutIfMatch. Invalid state remains explicit and is never repaired or overwritten. Changed files outside the Story's Hints:
root_registry.goexposes the internal transition seam;root_registry_document.goowns the in-package domain model, validation and deterministic conversion;root_registry_test.go,root_registry_test_helpers_test.goandroot_registry_transition_test.goprovide codec, transition and ambiguous-outcome evidence. The CIDR comparator ininternal/document/root_registry.gofixes the shared encoder/decoder ordering mismatch rather than special-casing a caller. No refactor changes pool or allocation-state wire schemas or backend operations.Passed
gofmt -l .,go vet ./...,golangci-lint run --fix ./...,golangci-lint run ./...,scripts/license-headers.sh --check,make test(go test ./... -count=1 -race -timeout 20m), andgit diff --check. Serena diagnostics reported no errors inroot_registry_transition_test.go.TestRootRegistryCodecAC10RejectsInvalidStateWithoutWritingcovers unsupported and malformed schema, duplicate IDs, invalid identity, family, CIDR, state and ordering, with byte preservation.TestRootRegistryCodecAC15RoundTripsLifecycleOwnershipround-trips incarnation and pending, active and deleting states, including CIDRs whose lexical and address orders differ.TestRootRegistryTransitionAC10RetriesStaleVersionsproves stale CAS retry.TestRootRegistryTransitionAC10RereadsUnknownConditionalWritecovers landed and non-landed ambiguous creation.TestRootRegistryTransitionAC15RereadsUnknownCASOwnershipnow transitions an entry from active to deleting in the same ambiguous CAS that preserves an active entry, adds a pending entry and verifies every incarnation and lifecycle state after the reread; both landed and non-landed cases passed locally in the full race suite.TestRootRegistryCodecAC10RejectsInvalidStateWithoutWriting;TestRootRegistryTransitionAC10RetriesStaleVersions;TestRootRegistryTransitionAC10RereadsUnknownConditionalWritetest (ubuntu-latest)TestRootRegistryCodecAC15RoundTripsLifecycleOwnership;TestRootRegistryTransitionAC15RereadsUnknownCASOwnershiptest (ubuntu-latest)The v1 shape, canonical ordering, lifecycle ownership and conditional transition handling follow
specs/REQ-000017-prevent-overlapping-top-level-pools/data-model.md,contracts/root-pool-overlap.mdanddecisions/ADR-0002-root-registry.md. Unknown schema, malformed state and ambiguous ownership remain explicit, with no automatic repair or normalization.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 #132