Skip to content

[Draft] OBI-27: Namespace plans, metadata and transactional submission #17

Done
2 of 3 issues completed

Description

@ephico2real2

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_folder and cmapi/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_response and ::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_names and cmapi/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

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.

Sub-issues

Sub-issues

2 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added
    In-Progress
    class:INV
    status:partly-fixed
    on Nov 13, 2026
  2. added
    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. ephico2real2 commented on Nov 25, 2026

    @ephico2real2
    OwnerAuthor

    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).

  5. ephico2real2 commented on Nov 25, 2026

    @ephico2real2
    OwnerAuthor

    Found under #17 while fixing #250: #680 (Medium), a folder file that is not YAML answers 500. Both are fixed in PR #682.

  6. ephico2real2 commented on Nov 25, 2026

    @ephico2real2
    OwnerAuthor

    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.

    • Criteria 3 and 4 were proven by OB1 run 40 on main c2b89f5d71, with CI's images by digest: api and worker sha256:c939bfc5….
    • The real writes were all on cmap-live-g-dev, each one undone, ending with 0 open requests.
    • Records are in workbench/cmapi/ob1-run40/resume.md (the A3 table) and ob1-run40/logs/a3-*.

    Criterion 1: "Dry-run writes nothing"

    • On CRC: run 38 l.159-161 (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).
    • Run 40 again: every dry run left the request count unchanged.
    • CI: 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"

    Criterion 3: "Same idempotency key cannot duplicate a request; competing submissions cannot acquire the same object lock"

    • Key (run 40, logs/a3-idem.out):
      • A PATCH sent twice with one Idempotency-Key (350da29c-…), the same If-Match and the same body, answered 202 and 202, both req-20261125-0001.
      • The request count went from 19 to 20, and one row holds the key. The second answer equals the first.
      • After synced (PR [Draft] OBI-40: Reports, efficiency and notification delivery #27), the key sent a third time returned the same request.
    • Lock: 409 change-pending while req-20261121-0006 held the namespace (run 32 l.153-156).
    • CI: 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"

    • Names (run 40, logs/a3-names.out):
      • A create dry run of kube-x answered 422 reserved-namespace ("kube-x is reserved (kube-*)").
      • A create of cmapi answered 409 namespace-exists-unmanaged.
      • Nothing was written.
    • Null (run 40, logs/a3-null.out):

    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.

  7. added
    Done
    and removed
    In-Progress
    on Dec 2, 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

    Doneclass:INVstatus:partly-fixedstory

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions