Skip to content

[design] Prevent overlapping top-level pools - #129

Merged
matt-FFFFFF merged 1 commit into
mainfrom
design/req-000017-root-overlap-09b89f7c4275f690
Dec 1, 2026
Merged

matt-FFFFFF merged 1 commit into
mainfrom
design/req-000017-root-overlap-09b89f7c4275f690

Conversation

@appvia-agentic-writer

@appvia-agentic-writer appvia-agentic-writer Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Design for Requirement 17: serialize root-pool overlap decisions in a versioned CAS registry under the existing pools/ storage prefix, integrate reservation lifecycle with CreatePool and DeletePool, lazily bootstrap existing stores, add read-only doctor diagnostics, and document the public overlap conflict.

The design retains the exact-pinned Go 1.27.3/Cobra stack and existing pool/allocation document schemas. The threat model rates the overall design medium risk; no authentication, authorisation, credential, dependency or backend change is introduced.

Artifacts

  • plan.md: CAS create/delete protocols, component boundaries, rollout and AC-to-proof map.
  • research.md: code evidence, alternatives, adapted analyze passes A-D/F and design assumptions.
  • data-model.md: root registry schema and pending / active / deleting transitions.
  • contracts/: public conflict, registry, lifecycle and doctor reporting contracts.
  • decisions/: stack, root registry and lifecycle/migration ADRs.
  • threat-model.md: authentication, authorisation, data exposure, input, secrets, audit and residual risk coverage.

Decisions to confirm

  • ASM-1: Bootstrap the registry on the first state-changing root CreatePool or DeletePool; read-only operations and doctor never create it.
  • ASM-2: Treat each registry entry's full canonical CIDR list as the root coordination snapshot and require it to match an active root.
  • ASM-3: Reserve ranges from pending through deleting; only CAS-owned removal releases them.
  • ASM-4: Require all concurrent root-mutating writers to use the registry-aware client during rollout because pre-registry clients cannot be forced to honor a key they do not read.
  • ASM-5: Keep the existing retry/backoff contention outcome for exhausted registry CAS races while returning overlap for an established same-family intersection.
  • ASM-6: Treat non-reconciled pending/deleting snapshots as diagnostic uncertainty, while reporting confirmed active mismatch, missing membership and usable-root overlap as failures.
  • ASM-7: Reserve pools/.root-registry.json as internal storage; its leading-dot basename cannot be a valid pool ID and retains the existing pools/* permission boundary.

Open questions

No blocking questions.

Review focus

Confirm the registry lifecycle and rollout assumption, especially the requirement to quiesce older root-mutating clients. No product code or approved spec file is changed by this PR.

Generated by design-draft · copilot · mai20 · ~39 AIC · ⌖ ~1 AIC · ⊞ 35.6K · ◷

Agentic-Link: design #17

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@appvia-agentic-writer
appvia-agentic-writer Bot requested review from a team as code owners December 1, 2026 19:01
@appvia-agentic-writer appvia-agentic-writer Bot added the origin:agent Marks issues that an agent created, for audit and metrics. label Dec 1, 2026
@matt-FFFFFF
matt-FFFFFF merged commit 4ecc1af into main Dec 1, 2026
7 checks passed
@matt-FFFFFF
matt-FFFFFF deleted the design/req-000017-root-overlap-09b89f7c4275f690 branch December 1, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

origin:agent Marks issues that an agent created, for audit and metrics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant