Repository navigation
Description
Part of #17. Follows #215, #328, #350, #358, #368. Covers #365.
The design was settled with the owner on 2026-11-20 and is recorded in docs/reviews/2026-11-20-issue-479/ (committed with Phase 1): namespace_metadata.md (requirements R1–R12, rules, configuration, contract changes A1–A11, the Swagger and ReDoc standard, payload mocks, the portal form P1–P12, decisions D1–D13) and implementation_plan.md (phases, code rules, race conditions R1–R9).
Mockups (claude.ai, private to the owner):
- portal https://claude.ai/artifact/3nDGzZm2ZJpSjKu4rRr1pb
- Swagger https://claude.ai/artifact/2AYqUotuYe1qpPwCgDM1wP
- ReDoc https://claude.ai/artifact/ECf6nW9rNXfym1qjMxjN8F
- the plan https://claude.ai/artifact/GZauPZYvyWuAXwo1Ph1To9
In short:
- Name.
<mnemonic>-<desired name>-<cluster env>, with the portal locking both ends. - Required keys. Keep the current keys and add the required
name(filled in),company.net/app-environment(filled in),company.net/mnemonic,company.net/lobandcompany.net/cl. - Team default.
cmapi.net/teamdefaults to the mnemonic. - Filled-in keys. They are required and shown in Swagger, ReDoc and the portal, and cmapi still fills them.
- Extra keys. Set in two key/value tables, in a toggle section that is closed and empty by default.
- Expiration. An optional date from a calendar, showing the date and the days until it.
- Every response. Each status listed, with one named example per problem code.
- Extensions. Shown in Swagger UI and ReDoc.
Phases (each a PR; implementer Opus 5.5 high, reviewer Codex gpt-6.2-astra xhigh, coordinator runs the steps Codex cannot):
- API contract for the namespace (A1–A11)
- A contract lint, then all 40 operations to the standard
- Swagger UI and ReDoc settings
- The portal form (P1–P12)
- CRC configuration, Kyverno bundle, deploy (after the owner confirms the design's section 8, and after CRC's own import Secret uses a non-expiring legacy token and lacks the contract's managed-by and token-expires-at annotations #398's renewal merges)
Breaking change: the filled-in keys becoming required (A1) are listed in cmapi/contract/accepted-breaking.txt with this issue. Clients sending the right value, or nothing, keep working.
Research mandate. Research: search the primary sources (OpenAPI 3.1 and JSON Schema required/readOnly; Swagger UI showExtensions, showCommonExtensions; ReDoc options; PatternFly InputGroup, ExpandableSection, DatePicker), compare the options, choose the industry best practice, fix the cause rather than the symptom, and record the choice and its sources.
Activity
ephico2real2 commentedon Nov 20, 2026
The owner, 2026-11-20: "This is just a sample. Don't worry about this data. Focus on the format." The body is corrected: the reference gives the format only (a typed request object of named fields, each with its type and format shown in Example Value and Model, required fields marked, filled-in examples). The coordinator had over-read it: the requester object, the reshaped response,
description, and theesatsId/sourceTokennote are removed. The fields are the owner's: the current CRC keys plusname,company.net/app-environment,company.net/mnemonic,company.net/lobandcompany.net/cl.[-]Named, required metadata fields in the create-namespace API, Swagger and portal (company profile on CRC)[/-][+]Namespace contract and form (name rule, required company keys, extra keys, expiry calendar) and the API documentation standard[/+]#479 tests that pinned the old examples, words and render signature f…
#479 regenerated after the merge of main: samples, the contract, docs…
#479 review fixes: reviewer 1 (Codex gpt-6.2-astra xhigh) F01-F24, up…
#479 portal: the form lists x-cmapi-expiration as ignored until Phase…
#479 Fable review fixes: FB1-FB3, S1-S3
#479 CI: the metadata-keys answer test builds the instance view witho…
#479 doc citations relocated after Fable's S1 (scripts/doc-citations.…
Merge pull request #488 from ephico2real2/feat/479-p1-namespace-contract
2 remaining items
#479 Phase 5, Fable's finding 1: a test pins CRC's metadata keys to d…
Merge pull request #505 from ephico2real2/feat/479-p5-crc-company-config
#479 Phase 4 review fixes: reviewer 1 (Codex gpt-6.2-astra xhigh) fin…
#479 Phase 4: the Preview stays beside the form from 768 px, and ever…
Merge pull request #503 from ephico2real2/feat/479-p23-api-docs-standard
Merge pull request #506 from ephico2real2/feat/479-p4-portal-form
ephico2real2 commentedon Nov 20, 2026
Owner, 2026-11-20 (new requirement): "There are some teams that will just create a global namespace like -."
So the name rule becomes:
<mnemonic>-<desired>-<env>, for exampleabc-payments-dev, or<mnemonic>-<env>, for exampleabc-dev, a team-wide namespace;abc--devis still refused.Today
abc-devis refused in three places: the API (core/metadata.py_check_desired_name, from #488 F08), the generated Kyverno rule (core/policygen.py:195, #488 M2), and the portal (the middle isisRequiredinNamespaceNameField.tsx). All three change together, with tests. The work starts now.#479 Fable's F1 on #511: the namespace description test keeps its 'at…
Merge pull request #511 from ephico2real2/feat/479-team-wide-namespace
#24 CI fixes: the token route in the portal map and docs/08's count (…