Skip to content

[Draft] OBI-38: Expiration and controlled namespace deletion #25

Open

Description

@ephico2real2

Part of #11

Story

As a namespace owner, I want to manage temporary namespaces without accidental deletion.

Business value

The plan (#6) sets this release exit for phase 5: "safe expiration/deletion, adoption, policy visibility, operations, reports, integrated portal, CLI, isolated staging/prod, restore proof; all 24 KPIs/eight dashboards accounted for and one month of KPI/export evidence; v1 frozen."

Context

The comment of 2026-11-06 on this issue says: "Partly delivered by #40, not proven. On main: the delete and prune confirmation flow (core/lifecycle.py), with fixes in #67 and #75. Not built: expire_check and the expiration endpoints." Delete is not proven through Argo CD on CRC.

Acceptance criteria

  • Prod TTL is refused by API validation and policy, shown by cmapi/tests/core/test_lifecycle_expiration.py::test_prod_never_expires and cmapi/tests/core/test_render_listquery_config.py::test_prod_expiry_refused_and_requester_kept
  • Set, extend and make-permanent obey 30-day steps/180-day maximum, notices at 14/7/1 days and seven-day grace, shown by cmapi/tests/core/test_lifecycle_expiration.py::test_extend_limits, ::test_set_and_make_permanent, ::test_grace_starts_on_the_date and ::test_short_expiry_still_gets_the_one_day_notice
  • Expiry opens the normal delete request; every namespace delete requires appropriate approvals and operator prune confirmation, shown by cmapi/tests/core/test_lifecycle_expiration.py::test_expire_check and cmapi/tests/service/test_flow.py::test_delete_waits_for_prune_confirmation
  • No scheduled direct deletion occurs; portal expiration reflects real state, shown by a new test in cmapi/tests/service/, not written yet, and a new test in cmapi-portal-ui/tests/ for the portal, not written yet

Tasks

  • Build the worker job expire_check and the expiration endpoints (Wave 8).
  • Prove a delete through Argo CD on CRC (Wave 5).

Out of scope

  • The source states none for this story.

Evidence

Definition of done

  • Mockup approved, or the work has no screen and no API shape
  • Draft pull request open
  • Build: tests fail before the change and pass after it
  • Documented where a reader looks for it
  • Review ruled
  • Merged with its proof
  • Released on the default branch
  • The owner approves, after a comment cites the proof for each criterion and its cluster

Class

INV. The story adds a new capability to the product.

Source

Status: Draft backlog. No sprint commitment.

Owner in Paperclip: Ahsoka. Ahsoka mentors Luke and assigns bounded engineering work after technical review.

Source: OBI-38.
Epic: #11. Plan, release windows, and review gates: #6.

Dependencies: #10 (OBI-34), OBI-19, OBI-20.

Planned story; phase 5, provisional 8 points (Ahsoka/Yoda to validate).

  • Attach automated or reproducible evidence for each criterion; cover denial/failure paths.
  • Read the plan; Yoda owns design choices. Keep this in backlog until prerequisite phase evidence is accepted. Ahsoka may split and delegate to Luke with mentorship.

Language acceptance criterion

Before sprint entry, the owner must define technical terms and attach language review evidence for this text revision.
Use simple-english 2.1.1, Strict mode. Index #6 records the vocabulary source and review limits.

The source criteria remain unchanged. Language review remains open.

Activity

  1. ephico2real2 commented on Nov 6, 2026

    @ephico2real2
    OwnerAuthor

    Partly delivered by #40, not proven. On main: the delete and prune confirmation flow (core/lifecycle.py), with fixes in #67 and #75. Not built: expire_check and the expiration endpoints. Delete is not proven through Argo CD on CRC. This story stays open until each acceptance criterion has evidence.

  2. added
    In-Progress
    class:INV
    status:partly-fixed
    story
    on Nov 13, 2026
  3. ephico2real2 commented on Nov 13, 2026

    @ephico2real2
    OwnerAuthor

    Work tag: In-Progress. A part of this story is merged: PR #40, merge commit 1f30ab1, on 2026-11-05 (build-tracker.md, "Stories and epics"). The story is not complete, and no cluster proves it. Read from gh and git at 2026-11-13T09:18Z.

  4. added a commit that references this issue on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-Progressclass:INVstatus:partly-fixedstory

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions