Skip to content

[Draft] OBI-22: Production service and durable request store #13

Done
25 of 32 issues completed
Done

Description

@ephico2real2

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_problems and ::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_up and cmapi/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

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-22.
Epic: #7. Plan, release windows, and review gates: #6.

Dependencies: OBI-19, OBI-20.

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.

Sub-issues

Sub-issues

25 of 32 Issues completed
Loading 32 sub-issues

Activity

  1. added
    In-Progress
    class:INV
    status:partly-fixed
    story
    on Nov 13, 2026
  2. 15 remaining items

  3. added a commit that references this issue on Nov 16, 2026
  4. ephico2real2 commented on Nov 25, 2026

    @ephico2real2
    OwnerAuthor

    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 worker sha256:60bea17b..., portal sha256:8bffe39f...). Criterion 3 was proven on main c2b89f5d71 (OB1 run 40, 2026-11-25), with CI's images by digest: api and worker sha256:c939bfc5..., portal sha256: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

    • CRC delivers by delivery.mode: apply, not Argo CD (20-config.yaml l.45). This story does not depend on Argo CD.
    • Monitoring on CRC is off by the owner's choice since 2026-11-20. This story's criteria do not need it.

    2. Criterion 1: "Startup discovers plugins and exposes /docs, /redoc and JSON/YAML OpenAPI; an undocumented route fails CI"

    3. Criterion 2: "PostgreSQL migrations work from empty and the prior schema; restart retains requests and audit events"

    • From empty: run 9 (rollback, then step 21), logs/step21.log.
    • Prior schema with data: 0004 to 0005 (run 11 l.28); 0007 to 0008 (run 36); 0008 to 0009 (run 38 l.130-141): one migrated event, change_requests 19 to 19, md5 ad67d99767536ec34012a2e8cab4e8ca before and after.
    • Restart: the api, worker and portal rolled (run 38 l.119-122); 19 requests, 192 events, 26 audit events unchanged (run 38 l.138-143, l.238-239).
    • CI: 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"

    5. Approval

    The owner approved closing #13 on 2026-11-25. Criterion 3 is met with instanceUrl alone, because CRC's directory entry gives no portal URL. #675 tracks adding one.

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

    In-Progressclass:INVstatus:partly-fixedstory

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions