Repository navigation
Description
Part of #7
Story
As a platform operator, I want to start and recover the service without losing requests.
Business value
The plan (#6) sets this release exit for phase 1: "documented service with durable data and identity; every live read on two automatically imported clusters; baseline telemetry."
Context
PR #40 merged the service, the migrations 0001 to 0003 and the docs layer. CI runs 312 service tests (build-tracker.md). On kind, the api and the worker are Ready and /readyz gives 200. Nothing runs on CRC.
Acceptance criteria
- Startup discovers plugins and exposes /docs, /redoc and JSON/YAML OpenAPI; an undocumented route fails CI, shown by
cmapi/tests/service/test_api_contract.py::test_openapi_lists_every_route_with_summary_permission_and_problemsand::test_an_undocumented_route_stops_startup - PostgreSQL migrations work from empty and the prior schema; restart retains requests and audit events, shown by
cmapi/tests/service/test_review_h_tools_migrate.py::test_migrations_from_an_empty_database_up_down_upandcmapi/tests/service/test_review_e_recovery.py::test_kill_at_each_step_resumes_with_nothing_doubled - Wrong-instance environments return 422 with the correct instance URLs, shown by a new test in
cmapi/tests/service/, not written yet
Tasks
- Fix SEC-04: Connections to CNPG do not verify the server #91: connections to CNPG verify the server.
- Fix the API-docs defects BUG-25: API docs: the CDN fallback loads ReDoc 2 and Swagger UI 5.x while the image bundles ReDoc 3.0.1 and Swagger UI 5.34.1 #127 to BUG-07: docs.public has no effect, so the API docs cannot be put behind sign-in #134.
- Prove each criterion on CRC in Wave 1 (Wave 1: deploy cmapi on CRC with oc apply, image in the internal registry by digest #94).
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-22.
Epic: #7. Plan, release windows, and review gates: #6.
Planned story; phase 1, 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
15 remaining items
Records: the stories' status (#13-#29) and which PRs need a Fable rev…
Records review: the issue register regenerated by its script; #486 be…
ephico2real2 commentedon Nov 25, 2026
Story #13, production service and durable request store: proof for the owner's approval.
Part of #7. Cluster: CRC, main
aceaded(OB1 run 38, 2026-11-24), images from CI by digest (api and workersha256:60bea17b..., portalsha256:8bffe39f...). Criterion 3 was proven on mainc2b89f5d71(OB1 run 40, 2026-11-25), with CI's images by digest: api and workersha256:c939bfc5..., portalsha256:62328ef6.... Sources:workbench/cmapi/ob1-run38/resume.md("resume l.N"),ob1-run9,ob1-run11,ob1-run32,ob1-run36. Earlier proof: CI (service,api-contract), PR #40, #135, #153.1. Process facts, first
delivery.mode: apply, not Argo CD (20-config.yamll.45). This story does not depend on Argo CD.2. Criterion 1: "Startup discovers plugins and exposes /docs, /redoc and JSON/YAML OpenAPI; an undocumented route fails CI"
/docs,/redocand/openapi.jsonthrough the Route: run 9 l.30 (08f7fe5).logs/ui-docs32-doc32-chrome.json)./openapi.json,/openapi.yaml,/docs,/redoc: each answers the status of its GET: run 38 l.185-189.test_api_contract.py::test_an_undocumented_route_stops_startup, CI jobapi-contract(PR The API documentation of docs/01: tags, curl samples, ETag, changelog, contract gate, docs.public, no CDN #135).3. Criterion 2: "PostgreSQL migrations work from empty and the prior schema; restart retains requests and audit events"
logs/step21.log.migratedevent,change_requests19 to 19, md5ad67d99767536ec34012a2e8cab4e8cabefore and after.test_migrations_from_an_empty_database_up_down_up,test_kill_at_each_step_resumes_with_nothing_doubled.4. Criterion 3: "Wrong-instance environments return 422 with the correct instance URLs"
test_environment_not_served_417.py::test_the_request_problem_environment_not_served_still_returns_422(422,instanceUrl,portalUrl);test_capacity_302.pyl.308.160bd8387c) found that criterion 3 was not met on CRC: the answer had noinstanceUrl. That was defect environment-not-served from GET /api/v1/capacity (and two other raise sites) has no instanceUrl or portalUrl #671, fixed by PR #671 environment-not-served names the serving instance at every raise site #674.c2b89f5d71):GET /api/v1/capacity?env=prodascmapi.viewer.application/problem+json,codeenvironment-not-served.instanceUrl"https://cmapi.ephico2real.com": the prod entry of CRC'sinstance.directory(20-config.yamll.35).portalUrl. That entry gives none, and the environment-not-served from GET /api/v1/capacity (and two other raise sites) has no instanceUrl or portalUrl #671 record says "A URL that the directory does not give is left out, not sent asnull". No shipped instance.directory entry has a portalUrl, so a deployed instance never sends the portalUrl docs/02 promises #675 tracks adding one.?env=devanswers 200.workbench/cmapi/ob1-run40/logs/story-cap13/viewer-capacity-prod.txt(x-request-idda2407abdcd10fa0d47f6d7a47ef9e0c) andob1-run40/resume.md, "Story A2".5. Approval
The owner approved closing #13 on 2026-11-25. Criterion 3 is met with
instanceUrlalone, because CRC's directory entry gives no portal URL. #675 tracks adding one.