Commit 9d633c83 authored by Christos Tranoris's avatar Christos Tranoris
Browse files

Generic controller guide and presentation; rename the example controller doc

Adds docs/creating-an-openslice-controller.md (language-agnostic controller
contract) and its slide deck, and renames docs/writing-an-openslice-controller.md
to docs/the-example-generic-controller.md.
parent 415d7827
Loading
Loading
Loading
Loading
+32
Changes for .changelog/20261015_2332_generic-controller-guide.md: 32 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Generic guide: creating an OpenSlice controller / adapter

**Date:** 2026-10-15

## What

Added `docs/creating-an-openslice-controller.md`, a language-agnostic guide to the controller contract,
split in two parts:

1. **Adapting the resources of a category** — how OSOM routes an RFS to a generic controller
   (`AutomationCheck` → `GRSPEC` → `GCOrchestrationService`), the `CREATE/UPDATE/DELETE/<category>/<version>`
   request-reply queues and headers, RSpec registration via `CATALOG.UPDADD.RESOURCESPEC`, reporting via
   `CATALOG.UPD.RESOURCE`, the X.731 health rules per verb, reply semantics, and a checklist.
2. **Supporting simulation** — the `/PLANNING` queues and `X-OSL-SIMULATION`, the no-side-effects rule,
   the `PLANNING.RESOURCE.CREATEORUPDATE` callback contract (headers, id acknowledgement), modelling
   HELD → UP, estimate headers, `estimateOnly` cost enquiries, planning timeouts and what OSOM does when a
   controller does not answer, and a checklist.

Appendices list every queue and map each concern to the OSOM/TMF class and the example class that
implements it.

The existing `docs/the-example-generic-controller.md` (then named `writing-an-openslice-controller.md`) now links to it from its "Further reading" table.

## Sources checked

- OSOM: `GCOrchestrationService`, `AutomationCheck`, `CreateServiceProcess.bpmn`,
  `AutomaticallyHandleAction`, `ServiceOrderManager`, `PlanningResourceCallbackHandler`,
  `AbstractPlanningDelegate`, `RelatedResourceFactory`, `application.yml` (planning timeouts).
- TMF API: `ServiceRepoService.updateServicesHavingThisSupportingResource`.
- This repo: `PartnerRouteBuillder`, `ResourceRepoService`, `CatalogClient`, `ExampleResourceSpec`.

No code changed.
+18
Changes for .changelog/20261015_2337_rename-example-generic-controller-doc.md: 18 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Rename the example walkthrough to "The Example Generic Controller"

**Date:** 2026-10-15

Renamed `docs/writing-an-openslice-controller.md` to `docs/the-example-generic-controller.md` (via
`git mv`, so history follows) and retitled it **The Example Generic Controller**. Now that
`docs/creating-an-openslice-controller.md` holds the generic contract, the name makes clear this one is
the walkthrough of this example.

Updated references:

- `README.md` — the three links (intro callout, *Health, not status*, changelog pointer), now titled
  "The Example Generic Controller".
- `docs/creating-an-openslice-controller.md` — the companion link in the intro.
- `.changelog/20261015_2332_generic-controller-guide.md` — notes the old name.

Older changelog entries still mention the old filename. They are left unchanged because they record
what was true when they were written.
+22
Changes for .changelog/20261015_2354_controller-guide-presentation.md: 22 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Presentation: creating an OpenSlice controller / adapter

**Date:** 2026-10-15

Added `docs/creating-an-openslice-controller.pptx`, a 29-slide deck built from
`docs/creating-an-openslice-controller.md`. It follows the same two-part structure:

- **Overview** — what a controller is, `AutomationCheck` routing, the category as the queue address, the
  production sequence, "the reply is not the outcome", and the three verbs.
- **Part 1 — Adapting resources** — prerequisites, publishing RSpecs, listening and headers, dispatch,
  reporting to the inventory, the X.731 health table, the shape of each verb, replying within 20 s, and a
  checklist.
- **Part 2 — Supporting simulation** — the planning sequence, the no-side-effects rule, what happens when
  a controller does not consume `/PLANNING`, planning headers, HELD → UP within the 8-pass / 60 s budget,
  estimates, `estimateOnly` and the planning reply, and a checklist.
- **Appendix** — queue reference and a map from each concern to the class that implements it.

Every slide has speaker notes. The deck uses PowerPoint layouts (title, section, content), a custom theme
and named sections, so it can be restyled and edited in PowerPoint.

The deck was generated with `pptxgenjs` from a script kept outside the repo. Every slide was rendered in
PowerPoint and checked for overflow and overlap. No code changed.
+19
Changes for .changelog/20261016_0011_presentation-osl-template.md: 19 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Presentation restyled to the OpenSlice template

**Date:** 2026-10-16

Restyled `docs/creating-an-openslice-controller.pptx` to match the OpenSlice promo template
(`osl.promo/overview/Template.pptx`). The content is unchanged: the same 29 slides with the same speaker notes.

- **Title and section slides** use the template's photos with the curved edge. The template's own curve
  geometry is applied to the layout photos.
- **The OpenSlice logo** is at the top right of every layout.
- **Fonts** are Cambria for headings and Calibri for body text, as in the template.
- **Palette:** `0B4F6C` (titles), `1C7293` (primary), `F0A202` (amber highlight, with dark text on it),
  `EDF3F6` (card fill) and `FFF6E0` (callout fill). The theme is named "OpenSlice".
- **Cards** have rounded corners and a soft shadow. Numbered cards use an amber number circle.
- **Content slides** have no footer and no slide numbers, as in the template. Long titles shrink so they
  stay clear of the logo.

Every slide was rendered in PowerPoint and checked for overflow and overlap. The generator script is kept
outside the repo. No code changed.
+3 −3
Changes for README.md: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ nothing; the cost figures are made up. What is real, and what is worth copying,
queue conventions, the simulation contract, and the estimate contract.

> **Writing your own controller?** Read
> **[docs/writing-an-openslice-controller.md](docs/writing-an-openslice-controller.md)** —
> **[The Example Generic Controller](docs/the-example-generic-controller.md)** —
> the full architecture and authoring guide, including the rules that fail silently if you get them
> wrong. This README is the quick tour.

@@ -130,7 +130,7 @@ them into a verdict, and that verdict, *not* `resourceStatus`, is what moves the
+`SHUTDOWN` → GONE → TERMINATED. Leave either attribute unset and health reads PENDING, which moves
nothing: the order never fails, it simply never finishes. `resourceStatus` is pool bookkeeping and ends
no wait loop on its own. See
[the authoring guide](docs/writing-an-openslice-controller.md) — *Health, not status*.
[The Example Generic Controller](docs/the-example-generic-controller.md) — *Health, not status*.

## Simulation and cost estimates

@@ -175,4 +175,4 @@ than 720.
## Documentation

See [.changelog/index.md](.changelog/index.md) for the full changelog. Start with
[Writing an OpenSlice Generic Controller](docs/writing-an-openslice-controller.md).
[The Example Generic Controller](docs/the-example-generic-controller.md).
Loading