Repository navigation
Description
Part of #8
Story
As a requester, I want to preview and submit a safe namespace change.
Business value
The plan (#6) sets this release exit for phase 2: "rnd namespace POST to Synced with one portal approval and no manual Git step; edited approved PR fails cmapi check. Auto-approval remains disabled."
Context
build-tracker.md links PR #40 to this story. The API and the worker jobs are on main. The metadata plugin and the metadata endpoints are not built (build-tracker.md, "Not built, by area"). No real namespace request has run on a cluster.
Acceptance criteria
- Dry-run writes nothing, shown by
cmapi/tests/service/test_flow.py::test_dry_run_writes_nothing_and_shows_the_plan - Create and metadata edits render plain manifests from the tier catalog, shown by
cmapi/tests/core/test_tiers.py::test_render_matches_the_example_namespace_folderandcmapi/tests/core/test_render_listquery_config.py::test_renders_the_example_folder - Same idempotency key cannot duplicate a request; competing submissions cannot acquire the same object lock, shown by
cmapi/tests/service/test_review_a_concurrency.py::test_same_key_same_body_in_parallel_returns_the_first_responseand::test_two_creates_of_one_namespace - Reserved or unmanaged namespace names are refused; removed metadata keys disappear from rendered output, shown by
cmapi/tests/service/test_review_d_delivery.py::test_create_refuses_namesandcmapi/tests/service/test_review_c_authz.py::test_null_in_a_merge_patch_removes_the_key
Tasks
- Build the metadata plugin and the metadata endpoints.
- Send a real request through a real pull request 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-27.
Epic: #8. Plan, release windows, and review gates: #6.
Dependencies: #7 (OBI-21), OBI-19, OBI-20.
Planned story; phase 2, 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 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.ephico2real2 commentedon Nov 25, 2026
Found under #17 while fixing #353: #679 (Low, Backlog), a surrogate escape in a value that Git already holds would make a PATCH of its namespace answer 500 (inferred, not reproduced).
ephico2real2 commentedon Nov 25, 2026
Found under #17 while fixing #250: #680 (Medium), a folder file that is not YAML answers 500. Both are fixed in PR #682.
ephico2real2 commentedon Nov 25, 2026
Story #17, namespace plans, metadata and transactional submission: proof, and closed with the owner's approval (2026-11-25).
Part of #7. Cluster: CRC. CRC delivers by
delivery.mode: apply, not Argo CD, and this story's criteria do not need Argo CD.c2b89f5d71, with CI's images by digest: api and workersha256:c939bfc5….cmap-live-g-dev, each one undone, ending with 0 open requests.workbench/cmapi/ob1-run40/resume.md(the A3 table) andob1-run40/logs/a3-*.Criterion 1: "Dry-run writes nothing"
aceaded). Requests stayed at 19, audit rows at 26, and the md5 was equal. A DELETE dry run answered 200 with its 5 paths (run 38 l.209-214).test_flow.py::test_dry_run_writes_nothing_and_shows_the_plan.Criterion 2: "Create and metadata edits render plain manifests from the tier catalog"
test_render_matches_the_example_namespace_folder,test_renders_the_example_folder.Criterion 3: "Same idempotency key cannot duplicate a request; competing submissions cannot acquire the same object lock"
logs/a3-idem.out):Idempotency-Key(350da29c-…), the sameIf-Matchand the same body, answered 202 and 202, both req-20261125-0001.change-pendingwhile req-20261121-0006 held the namespace (run 32 l.153-156).test_same_key_same_body_in_parallel_returns_the_first_response,test_two_creates_of_one_namespace.Criterion 4: "Reserved or unmanaged namespace names are refused; removed metadata keys disappear from rendered output"
logs/a3-names.out):kube-xanswered 422reserved-namespace("kube-x is reserved (kube-*)").cmapianswered 409namespace-exists-unmanaged.logs/a3-null.out):{"labels":{"ob1-run40":null}}became req-20261125-0002, synced through PR [Draft] OBI-41: Deployable releases, SDK and operational readiness #28.namespace.yaml.Defects on this story's write path, fixed and merged on 2026-11-25
The Low follow-ups stay in Backlog: #679, #684, #686.
These fixes are merged, but not yet deployed to CRC: the next deploy carries them. Run 40's proofs ran on
c2b89f5, before these fixes.