Repository navigation
Description
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_expiresandcmapi/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_dateand::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_checkandcmapi/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 incmapi-portal-ui/tests/for the portal, not written yet
Tasks
- Build the worker job
expire_checkand 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
- PR cmapi service, image and charts: the foundation for the first deploy on CRC #40, merged at
1f30ab1on 2026-11-05.build-tracker.mdlinks it to this story ("Stories and epics").
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
ephico2real2 commentedon Nov 6, 2026
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_checkand the expiration endpoints. Delete is not proven through Argo CD on CRC. This story stays open until each acceptance criterion has evidence.ephico2real2 commentedon Nov 13, 2026
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 fromghandgitat 2026-11-13T09:18Z.Merge pull request #908 from ephico2real2/feat/namespace-subresources