Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Classify runtime lenses in platform manifest

rcourtmanddad6108ae8d
diff --git a/docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json b/docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json
index d807df764c..55cf3cba77 100644
--- a/docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json
+++ b/docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json
@@ -1,5 +1,5 @@
{
- "schema_version": 1,
+ "schema_version": 2,
"default_infrastructure_source_order": [
"agent",
"truenas",
@@ -39,6 +39,7 @@
{
"id": "agent",
"family": "Pulse-managed host",
+ "surface_kind": "platform",
"governance_state": "supported",
"readiness_stage": "supported",
"primary_mode": "agent-backed",
@@ -71,6 +72,7 @@
{
"id": "docker",
"family": "Container runtime",
+ "surface_kind": "runtime-lens",
"governance_state": "supported",
"readiness_stage": "supported",
"primary_mode": "agent-backed",
@@ -105,6 +107,7 @@
{
"id": "kubernetes",
"family": "Cluster runtime",
+ "surface_kind": "platform",
"governance_state": "supported",
"readiness_stage": "supported",
"primary_mode": "agent-backed",
@@ -141,6 +144,7 @@
{
"id": "proxmox-pve",
"family": "Proxmox",
+ "surface_kind": "platform",
"governance_state": "supported",
"readiness_stage": "supported",
"primary_mode": "api-backed",
@@ -180,6 +184,7 @@
{
"id": "proxmox-pbs",
"family": "Proxmox",
+ "surface_kind": "platform",
"governance_state": "supported",
"readiness_stage": "supported",
"primary_mode": "api-backed",
@@ -214,6 +219,7 @@
{
"id": "proxmox-pmg",
"family": "Proxmox",
+ "surface_kind": "platform",
"governance_state": "supported",
"readiness_stage": "supported",
"primary_mode": "api-backed",
@@ -247,6 +253,7 @@
{
"id": "truenas",
"family": "TrueNAS",
+ "surface_kind": "platform",
"governance_state": "supported",
"readiness_stage": "supported",
"primary_mode": "api-backed",
@@ -280,6 +287,7 @@
{
"id": "vmware-vsphere",
"family": "VMware",
+ "surface_kind": "platform",
"governance_state": "supported",
"readiness_stage": "supported",
"primary_mode": "api-backed",
@@ -315,6 +323,7 @@
{
"id": "unraid",
"family": "Unraid",
+ "surface_kind": "presentation-only",
"governance_state": "presentation-only",
"readiness_stage": "presentation-only",
"primary_mode": "presentation-only",
@@ -341,6 +350,7 @@
{
"id": "synology-dsm",
"family": "Synology",
+ "surface_kind": "presentation-only",
"governance_state": "presentation-only",
"readiness_stage": "presentation-only",
"primary_mode": "presentation-only",
@@ -368,6 +378,7 @@
{
"id": "microsoft-hyperv",
"family": "Hyper-V",
+ "surface_kind": "presentation-only",
"governance_state": "presentation-only",
"readiness_stage": "presentation-only",
"primary_mode": "presentation-only",
@@ -396,6 +407,7 @@
{
"id": "aws",
"family": "AWS",
+ "surface_kind": "presentation-only",
"governance_state": "presentation-only",
"readiness_stage": "presentation-only",
"primary_mode": "presentation-only",
@@ -422,6 +434,7 @@
{
"id": "azure",
"family": "Azure",
+ "surface_kind": "presentation-only",
"governance_state": "presentation-only",
"readiness_stage": "presentation-only",
"primary_mode": "presentation-only",
@@ -448,6 +461,7 @@
{
"id": "gcp",
"family": "GCP",
+ "surface_kind": "presentation-only",
"governance_state": "presentation-only",
"readiness_stage": "presentation-only",
"primary_mode": "presentation-only",
diff --git a/docs/release-control/v6/internal/PLATFORM_SUPPORT_MODEL.md b/docs/release-control/v6/internal/PLATFORM_SUPPORT_MODEL.md
index d891f805ce..4a92a0a54b 100644
--- a/docs/release-control/v6/internal/PLATFORM_SUPPORT_MODEL.md
+++ b/docs/release-control/v6/internal/PLATFORM_SUPPORT_MODEL.md
@@ -256,13 +256,16 @@ Rules:
### First-class platforms
1. `agent` for unified-agent hosts
-2. `docker`
-3. `kubernetes`
-4. `proxmox-pve`
-5. `proxmox-pbs`
-6. `proxmox-pmg`
-7. `truenas`
-8. `vmware-vsphere`
+2. `kubernetes`
+3. `proxmox-pve`
+4. `proxmox-pbs`
+5. `proxmox-pmg`
+6. `truenas`
+7. `vmware-vsphere`
+
+### Runtime lenses
+
+1. `docker`
### Admitted platforms (not yet supported)
@@ -297,28 +300,29 @@ Support floor fields are recorded in this order: `setup`, `visibility`,
`workloads`, `storage`, `recovery`, `alerts`, `assistant_read`,
`assistant_control`.
-| Platform | Governance | Readiness | Primary mode | Onboarding | Canonical projections | Support floor |
-| --- | --- | --- | --- | --- | --- | --- |
-| `agent` | `supported` | `supported` | `agent-backed` | `install-workspace` | `agent`, `storage`, `physical-disk` | `setup=supported`; `visibility=supported`; `workloads=n/a`; `storage=supported`; `recovery=n/a`; `alerts=supported`; `assistant_read=supported`; `assistant_control=supported` |
-| `docker` | `supported` | `supported` | `agent-backed` | `install-workspace` | `agent`, `app-container`, `docker-service` | `setup=supported`; `visibility=supported`; `workloads=supported`; `storage=n/a`; `recovery=n/a`; `alerts=supported`; `assistant_read=supported`; `assistant_control=supported` |
-| `kubernetes` | `supported` | `supported` | `agent-backed` | `install-workspace` | `k8s-cluster`, `k8s-node`, `pod`, `k8s-deployment` | `setup=supported`; `visibility=supported`; `workloads=supported`; `storage=n/a`; `recovery=supported`; `alerts=supported`; `assistant_read=supported`; `assistant_control=supported` |
-| `proxmox-pve` | `supported` | `supported` | `api-backed` | `platform-connections` | `agent`, `vm`, `system-container`, `storage`, `ceph`, `physical-disk` | `setup=supported`; `visibility=supported`; `workloads=supported`; `storage=supported`; `recovery=supported`; `alerts=supported`; `assistant_read=supported`; `assistant_control=augmentation-only` |
-| `proxmox-pbs` | `supported` | `supported` | `api-backed` | `platform-connections` | `pbs`, `storage` | `setup=supported`; `visibility=supported`; `workloads=n/a`; `storage=supported`; `recovery=supported`; `alerts=supported`; `assistant_read=supported`; `assistant_control=read-only` |
-| `proxmox-pmg` | `supported` | `supported` | `api-backed` | `platform-connections` | `pmg` | `setup=supported`; `visibility=supported`; `workloads=n/a`; `storage=n/a`; `recovery=n/a`; `alerts=supported`; `assistant_read=supported`; `assistant_control=read-only` |
-| `truenas` | `supported` | `supported` | `api-backed` | `platform-connections` | `agent`, `app-container`, `storage`, `physical-disk` | `setup=supported`; `visibility=supported`; `workloads=supported`; `storage=supported`; `recovery=supported`; `alerts=supported`; `assistant_read=supported`; `assistant_control=supported` |
-| `vmware-vsphere` | `supported` | `supported` | `api-backed` | `platform-connections` | `agent`, `vm`, `storage` | `setup=supported`; `visibility=supported`; `workloads=supported`; `storage=supported`; `recovery=n/a`; `alerts=supported`; `assistant_read=supported`; `assistant_control=read-only` |
+| Platform | Surface kind | Governance | Readiness | Primary mode | Onboarding | Canonical projections | Support floor |
+| --- | --- | --- | --- | --- | --- | --- | --- |
+| `agent` | `platform` | `supported` | `supported` | `agent-backed` | `install-workspace` | `agent`, `storage`, `physical-disk` | `setup=supported`; `visibility=supported`; `workloads=n/a`; `storage=supported`; `recovery=n/a`; `alerts=supported`; `assistant_read=supported`; `assistant_control=supported` |
+| `docker` | `runtime-lens` | `supported` | `supported` | `agent-backed` | `install-workspace` | `agent`, `app-container`, `docker-service` | `setup=supported`; `visibility=supported`; `workloads=supported`; `storage=n/a`; `recovery=n/a`; `alerts=supported`; `assistant_read=supported`; `assistant_control=supported` |
+| `kubernetes` | `platform` | `supported` | `supported` | `agent-backed` | `install-workspace` | `k8s-cluster`, `k8s-node`, `pod`, `k8s-deployment` | `setup=supported`; `visibility=supported`; `workloads=supported`; `storage=n/a`; `recovery=supported`; `alerts=supported`; `assistant_read=supported`; `assistant_control=supported` |
+| `proxmox-pve` | `platform` | `supported` | `supported` | `api-backed` | `platform-connections` | `agent`, `vm`, `system-container`, `storage`, `ceph`, `physical-disk` | `setup=supported`; `visibility=supported`; `workloads=supported`; `storage=supported`; `recovery=supported`; `alerts=supported`; `assistant_read=supported`; `assistant_control=augmentation-only` |
+| `proxmox-pbs` | `platform` | `supported` | `supported` | `api-backed` | `platform-connections` | `pbs`, `storage` | `setup=supported`; `visibility=supported`; `workloads=n/a`; `storage=supported`; `recovery=supported`; `alerts=supported`; `assistant_read=supported`; `assistant_control=read-only` |
+| `proxmox-pmg` | `platform` | `supported` | `supported` | `api-backed` | `platform-connections` | `pmg` | `setup=supported`; `visibility=supported`; `workloads=n/a`; `storage=n/a`; `recovery=n/a`; `alerts=supported`; `assistant_read=supported`; `assistant_control=read-only` |
+| `truenas` | `platform` | `supported` | `supported` | `api-backed` | `platform-connections` | `agent`, `app-container`, `storage`, `physical-disk` | `setup=supported`; `visibility=supported`; `workloads=supported`; `storage=supported`; `recovery=supported`; `alerts=supported`; `assistant_read=supported`; `assistant_control=supported` |
+| `vmware-vsphere` | `platform` | `supported` | `supported` | `api-backed` | `platform-connections` | `agent`, `vm`, `storage` | `setup=supported`; `visibility=supported`; `workloads=supported`; `storage=supported`; `recovery=n/a`; `alerts=supported`; `assistant_read=supported`; `assistant_control=read-only` |
Presentation-only platform vocabulary uses `governance=presentation-only`,
-`readiness=presentation-only`, `primary_mode=presentation-only`, no onboarding
-paths, no canonical projections, and `n/a` for every support-floor field.
+`surface_kind=presentation-only`, `readiness=presentation-only`,
+`primary_mode=presentation-only`, no onboarding paths, no canonical projections,
+and `n/a` for every support-floor field.
### Machine-readable projection
`PLATFORM_SUPPORT_MANIFEST.json` is the machine-readable projection of the
supported, admitted, and presentation-only platform vocabulary declared here,
plus the canonical platform-family, readiness-stage, primary-mode,
-onboarding-path, projection, and support-floor classification for supported
-and admitted platforms, and the separate machine-readable agent host profile
+surface-kind, onboarding-path, projection, and support-floor classification for
+supported and admitted platforms, and the separate machine-readable agent host profile
classification (including the runtime-platform fallback) for supported
host/appliance profiles. Tests and shared frontend vocabulary may consume that
manifest, and the tracked frontend projection in
@@ -327,8 +331,8 @@ tracked backend projection in
`internal/platformsupport/manifest_generated.go` must be generated from it,
but neither projection may introduce platform ids, host profile ids,
governance states, families, readiness stages, primary modes, onboarding
-paths, projections, support-floor claims, host identity tokens, or runtime
-platform fallbacks that are not declared in this document.
+paths, projections, surface kinds, support-floor claims, host identity tokens,
+or runtime platform fallbacks that are not declared in this document.
### Runtime variants
@@ -356,16 +360,16 @@ platform fallbacks that are not declared in this document.
## Current Support Matrix
-| Platform | Family | Primary mode | Optional augmentation | Canonical projections |
-| ------------- | ------------------ | ------------ | ---------------------------------- | --------------------------------------------------------------------- |
-| `agent` | Pulse-managed host | agent-backed | none | `agent`, `storage`, `physical-disk` |
-| `docker` | container runtime | agent-backed | none | `agent`, `app-container`, `docker-service` |
-| `kubernetes` | cluster runtime | agent-backed | none | `k8s-cluster`, `k8s-node`, `pod`, `k8s-deployment` |
-| `proxmox-pve` | Proxmox | api-backed | host agent may augment into hybrid | `agent`, `vm`, `system-container`, `storage`, `ceph`, `physical-disk` |
-| `proxmox-pbs` | Proxmox | api-backed | host agent may augment into hybrid | `pbs`, `storage` |
-| `proxmox-pmg` | Proxmox | api-backed | none today | `pmg` |
-| `truenas` | TrueNAS | api-backed | host agent may augment into hybrid | `agent`, `app-container`, `storage`, `physical-disk` |
-| `vmware-vsphere` | VMware | api-backed | host or guest agent later, not phase 1 | `agent`, `vm`, `storage` |
+| Platform | Surface kind | Family | Primary mode | Optional augmentation | Canonical projections |
+| ---------------- | ------------- | ------------------ | ------------ | ------------------------------------- | --------------------------------------------------------------------- |
+| `agent` | platform | Pulse-managed host | agent-backed | none | `agent`, `storage`, `physical-disk` |
+| `docker` | runtime-lens | container runtime | agent-backed | none | `agent`, `app-container`, `docker-service` |
+| `kubernetes` | platform | cluster runtime | agent-backed | none | `k8s-cluster`, `k8s-node`, `pod`, `k8s-deployment` |
+| `proxmox-pve` | platform | Proxmox | api-backed | host agent may augment into hybrid | `agent`, `vm`, `system-container`, `storage`, `ceph`, `physical-disk` |
+| `proxmox-pbs` | platform | Proxmox | api-backed | host agent may augment into hybrid | `pbs`, `storage` |
+| `proxmox-pmg` | platform | Proxmox | api-backed | none today | `pmg` |
+| `truenas` | platform | TrueNAS | api-backed | host agent may augment into hybrid | `agent`, `app-container`, `storage`, `physical-disk` |
+| `vmware-vsphere` | platform | VMware | api-backed | host or guest agent later, not phase 1 | `agent`, `vm`, `storage` |
| Platform | Setup | Visibility | Workloads | Storage | Recovery | Alerts | Assistant read | Assistant control |
| ---------------- | -------------------------------------- | ---------- | --------- | --------- | --------- | --------- | -------------- | ----------------- |
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index cc76fb0ee9..ddcf66b3c0 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -220,6 +220,8 @@ work extends shared components instead of creating new local variants.
retired dashboard target, so first-open and restored-session chrome remain
source-named.
9. `frontend-modern/src/utils/platformSupportManifest.generated.ts` shared with `unified-resources`: the generated platform support projection is both a canonical unified-resource platform union boundary and a shared frontend source/platform vocabulary boundary.
+ It must expose the manifest `surface_kind` field so runtime lenses such as
+ `docker` are not collapsed back into owning platform semantics.
10. `frontend-modern/src/utils/sourcePlatforms.ts` shared with `unified-resources`: the source platform normalizer is both a canonical unified-resource source adapter boundary and a shared frontend source/platform vocabulary boundary.
That shared boundary must preserve `availability` as the agentless
infrastructure source for `network-endpoint` resources and settings
@@ -745,11 +747,11 @@ AI runtime.
runtime lens and its owning platform page, such as Proxmox when the runtime
is detected inside a PVE LXC, while TrueNAS app containers stay scoped to
TrueNAS even when their runtime metadata uses the shared Docker facet.
- Primary navigation uses that same membership model: the `/docker` route is
+ Primary navigation uses that same membership model: the Docker route is
the container-runtime lens and may be labelled `Containers` in the shell,
while shared source badges, filters, and runtime management copy continue
to use `Docker / Podman` where the capability itself is being named.
-8. Keep shared source/platform vocabulary on the governed manifest boundary. `frontend-modern/src/utils/platformSupportManifest.generated.ts` must be the tracked frontend projection of `docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json`, `frontend-modern/src/utils/platformSupportManifest.ts`, `frontend-modern/src/utils/sourcePlatforms.ts`, and `frontend-modern/src/utils/sourcePlatformOptions.ts` must consume that generated projection instead of embedding divergent future-label lists, setup/onboarding path allowlists, host-profile labels, or presentation-only guesses, and `frontend-modern/scripts/canonical-platform-audit.mjs` must fail when the generated projection drifts from the governed manifest. The generic `docker` source-platform label is "Docker / Podman" in shared selectors, badges, and filter options so v5 Docker users can find the runtime surface while Podman-backed rows are not mislabeled as Docker-only; "Container runtime" remains the governed runtime family, not the primary customer-facing label. Identity colour is semantic, not page-local decoration: shared source/platform badges, host identity badges, and container runtime badges must use the shared presentation helpers so Docker remains on the Docker/Podman blue runtime tone, Podman uses its distinct runtime tone, Proxmox PVE remains orange, and those meanings do not drift across table rows, filters, drawers, or platform pages. Agent host-profile entries, including Unraid, stay in the generated `agentHostProfiles` projection and shared wrapper helpers; frontend primitives may render those labels for Pulse Agent install/identity copy but must not add them to the first-class platform union.
+8. Keep shared source/platform vocabulary on the governed manifest boundary. `frontend-modern/src/utils/platformSupportManifest.generated.ts` must be the tracked frontend projection of `docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json`, `frontend-modern/src/utils/platformSupportManifest.ts`, `frontend-modern/src/utils/sourcePlatforms.ts`, and `frontend-modern/src/utils/sourcePlatformOptions.ts` must consume that generated projection instead of embedding divergent future-label lists, setup/onboarding path allowlists, host-profile labels, surface-kind guesses, or presentation-only guesses, and `frontend-modern/scripts/canonical-platform-audit.mjs` must fail when the generated projection drifts from the governed manifest. The generated `surface_kind` is the machine-readable boundary between owning platform entries and runtime lenses: `docker` is a `runtime-lens`, not a `platform`, even when the container-runtime route stays available as a primary shell destination. The generic `docker` source-platform label is "Docker / Podman" in shared selectors, badges, and filter options so v5 Docker users can find the runtime surface while Podman-backed rows are not mislabeled as Docker-only; "Container runtime" remains the governed runtime family, not the primary customer-facing label. Identity colour is semantic, not page-local decoration: shared source/platform badges, host identity badges, and container runtime badges must use the shared presentation helpers so Docker remains on the Docker/Podman blue runtime tone, Podman uses its distinct runtime tone, Proxmox PVE remains orange, and those meanings do not drift across table rows, filters, drawers, or platform pages. Agent host-profile entries, including Unraid, stay in the generated `agentHostProfiles` projection and shared wrapper helpers; frontend primitives may render those labels for Pulse Agent install/identity copy but must not add them to the first-class platform union.
The generated host-profile projection also carries runtime platform fallback
metadata for shared explanation and parity with backend normalization, but
frontend primitives must still render host-profile labels through
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 2d67c54068..931fd73570 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -142,6 +142,9 @@ reintroduce false Swarm capability surfaces.
13. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableState.ts` shared with `performance-and-scalability`: unified resource table state, grouping, and windowing are both a canonical unified-resource consumer surface and a fleet-scale performance hot-path boundary.
14. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableViewportSync.ts` shared with `performance-and-scalability`: unified resource table viewport sync and selected-row reveal are both a canonical unified-resource consumer surface and a fleet-scale performance hot-path boundary.
15. `frontend-modern/src/utils/platformSupportManifest.generated.ts` shared with `frontend-primitives`: the generated platform support projection is both a canonical unified-resource platform union boundary and a shared frontend source/platform vocabulary boundary.
+ It must carry the manifest `surface_kind` distinction so `docker` remains
+ machine-readable as a `runtime-lens` while owning infrastructure sources
+ remain `platform` entries.
16. `frontend-modern/src/utils/sourcePlatforms.ts` shared with `frontend-primitives`: the source platform normalizer is both a canonical unified-resource source adapter boundary and a shared frontend source/platform vocabulary boundary.
That shared vocabulary boundary owns the generic `docker` platform label:
selectors, badges, and filter options render it as "Docker / Podman" so
diff --git a/frontend-modern/src/utils/__tests__/sourcePlatforms.test.ts b/frontend-modern/src/utils/__tests__/sourcePlatforms.test.ts
index 8f61efbb14..bed5a17c97 100644
--- a/frontend-modern/src/utils/__tests__/sourcePlatforms.test.ts
+++ b/frontend-modern/src/utils/__tests__/sourcePlatforms.test.ts
@@ -20,7 +20,12 @@ import {
getAgentHostProfileRuntimePlatform,
getSourcePlatformCanonicalProjections,
getSourcePlatformReadinessStage,
+ getSourcePlatformSurfaceKind,
getSourcePlatformSupportFloor,
+ sourcePlatformIsOwningPlatform,
+ sourcePlatformIsRuntimeLens,
+ SUPPORTED_OWNING_PLATFORM_IDS,
+ SUPPORTED_RUNTIME_LENS_IDS,
} from '@/utils/platformSupportManifest';
describe('sourcePlatforms', () => {
@@ -184,6 +189,15 @@ describe('sourcePlatforms', () => {
expect(PLATFORM_TYPE_KEYS).not.toContain('unraid');
expect(PRESENTATION_ONLY_PLATFORM_IDS).toContain('unraid');
});
+
+ it('classifies Docker as a runtime lens instead of an owning platform', () => {
+ expect(getSourcePlatformSurfaceKind('docker')).toBe('runtime-lens');
+ expect(sourcePlatformIsRuntimeLens('Docker / Podman')).toBe(true);
+ expect(sourcePlatformIsOwningPlatform('docker')).toBe(false);
+ expect(SUPPORTED_RUNTIME_LENS_IDS).toEqual(['docker']);
+ expect(SUPPORTED_OWNING_PLATFORM_IDS).toContain('proxmox-pve');
+ expect(SUPPORTED_OWNING_PLATFORM_IDS).not.toContain('docker');
+ });
});
describe('resolvePlatformTypeFromSources', () => {
@@ -201,9 +215,9 @@ describe('sourcePlatforms', () => {
describe('resolveResourcePlatformType', () => {
it('prefers the resource platformType field when present', () => {
- expect(
- resolveResourcePlatformType({ platformType: 'proxmox-pve', sources: ['agent'] }),
- ).toBe('proxmox-pve');
+ expect(resolveResourcePlatformType({ platformType: 'proxmox-pve', sources: ['agent'] })).toBe(
+ 'proxmox-pve',
+ );
expect(resolveResourcePlatformType({ platformType: 'docker', sources: [] })).toBe('docker');
});
diff --git a/frontend-modern/src/utils/platformSupportManifest.generated.ts b/frontend-modern/src/utils/platformSupportManifest.generated.ts
index 5bbf0563aa..7f57200890 100644
--- a/frontend-modern/src/utils/platformSupportManifest.generated.ts
+++ b/frontend-modern/src/utils/platformSupportManifest.generated.ts
@@ -1,14 +1,14 @@
// This file is generated by scripts/release_control/generate_platform_support_frontend_module.py.
// Do not edit by hand.
// Source: docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json
-// Source SHA256: a24d731a8717835071e48d58b02c8cc0ea6e40e85cf9fd8e2d26733397b44be5
+// Source SHA256: 01e0f1c5cbe2f5b46745a0a5fd51d0d085f48346cc2dbadf391dac558666fb34
export const PLATFORM_SUPPORT_MANIFEST_SOURCE = {
path: 'docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json',
- sha256: 'a24d731a8717835071e48d58b02c8cc0ea6e40e85cf9fd8e2d26733397b44be5',
+ sha256: '01e0f1c5cbe2f5b46745a0a5fd51d0d085f48346cc2dbadf391dac558666fb34',
} as const;
export const PLATFORM_SUPPORT_MANIFEST = {
- schemaVersion: 1,
+ schemaVersion: 2,
defaultInfrastructureSourceOrder: [
'agent',
'truenas',
@@ -44,6 +44,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'agent',
family: 'Pulse-managed host',
+ surfaceKind: 'platform',
governanceState: 'supported',
readinessStage: 'supported',
primaryMode: 'agent-backed',
@@ -68,6 +69,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'docker',
family: 'Container runtime',
+ surfaceKind: 'runtime-lens',
governanceState: 'supported',
readinessStage: 'supported',
primaryMode: 'agent-backed',
@@ -92,6 +94,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'kubernetes',
family: 'Cluster runtime',
+ surfaceKind: 'platform',
governanceState: 'supported',
readinessStage: 'supported',
primaryMode: 'agent-backed',
@@ -116,6 +119,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'proxmox-pve',
family: 'Proxmox',
+ surfaceKind: 'platform',
governanceState: 'supported',
readinessStage: 'supported',
primaryMode: 'api-backed',
@@ -140,6 +144,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'proxmox-pbs',
family: 'Proxmox',
+ surfaceKind: 'platform',
governanceState: 'supported',
readinessStage: 'supported',
primaryMode: 'api-backed',
@@ -164,6 +169,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'proxmox-pmg',
family: 'Proxmox',
+ surfaceKind: 'platform',
governanceState: 'supported',
readinessStage: 'supported',
primaryMode: 'api-backed',
@@ -188,6 +194,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'truenas',
family: 'TrueNAS',
+ surfaceKind: 'platform',
governanceState: 'supported',
readinessStage: 'supported',
primaryMode: 'api-backed',
@@ -212,6 +219,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'vmware-vsphere',
family: 'VMware',
+ surfaceKind: 'platform',
governanceState: 'supported',
readinessStage: 'supported',
primaryMode: 'api-backed',
@@ -236,6 +244,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'unraid',
family: 'Unraid',
+ surfaceKind: 'presentation-only',
governanceState: 'presentation-only',
readinessStage: 'presentation-only',
primaryMode: 'presentation-only',
@@ -260,6 +269,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'synology-dsm',
family: 'Synology',
+ surfaceKind: 'presentation-only',
governanceState: 'presentation-only',
readinessStage: 'presentation-only',
primaryMode: 'presentation-only',
@@ -284,6 +294,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'microsoft-hyperv',
family: 'Hyper-V',
+ surfaceKind: 'presentation-only',
governanceState: 'presentation-only',
readinessStage: 'presentation-only',
primaryMode: 'presentation-only',
@@ -308,6 +319,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'aws',
family: 'AWS',
+ surfaceKind: 'presentation-only',
governanceState: 'presentation-only',
readinessStage: 'presentation-only',
primaryMode: 'presentation-only',
@@ -332,6 +344,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'azure',
family: 'Azure',
+ surfaceKind: 'presentation-only',
governanceState: 'presentation-only',
readinessStage: 'presentation-only',
primaryMode: 'presentation-only',
@@ -356,6 +369,7 @@ export const PLATFORM_SUPPORT_MANIFEST = {
{
id: 'gcp',
family: 'GCP',
+ surfaceKind: 'presentation-only',
governanceState: 'presentation-only',
readinessStage: 'presentation-only',
primaryMode: 'presentation-only',
@@ -393,6 +407,16 @@ export const SUPPORTED_PLATFORM_IDS = [
'truenas',
'vmware-vsphere',
] as const;
+export const SUPPORTED_OWNING_PLATFORM_IDS = [
+ 'agent',
+ 'kubernetes',
+ 'proxmox-pve',
+ 'proxmox-pbs',
+ 'proxmox-pmg',
+ 'truenas',
+ 'vmware-vsphere',
+] as const;
+export const SUPPORTED_RUNTIME_LENS_IDS = ['docker'] as const;
export const ADMITTED_PLATFORM_IDS = [] as const;
export const PRESENTATION_ONLY_PLATFORM_IDS = [
'unraid',
@@ -546,6 +570,22 @@ export const SOURCE_PLATFORM_FAMILY = {
azure: 'Azure',
gcp: 'GCP',
} as const;
+export const SOURCE_PLATFORM_SURFACE_KIND = {
+ agent: 'platform',
+ docker: 'runtime-lens',
+ kubernetes: 'platform',
+ 'proxmox-pve': 'platform',
+ 'proxmox-pbs': 'platform',
+ 'proxmox-pmg': 'platform',
+ truenas: 'platform',
+ 'vmware-vsphere': 'platform',
+ unraid: 'presentation-only',
+ 'synology-dsm': 'presentation-only',
+ 'microsoft-hyperv': 'presentation-only',
+ aws: 'presentation-only',
+ azure: 'presentation-only',
+ gcp: 'presentation-only',
+} as const;
export const SOURCE_PLATFORM_READINESS_STAGE = {
agent: 'supported',
docker: 'supported',
@@ -832,6 +872,7 @@ export const SOURCE_PLATFORM_STORAGE_FAMILY = {
} as const;
export type PlatformGovernanceState =
(typeof SOURCE_PLATFORM_MANIFEST_ENTRIES)[number]['governanceState'];
+export type PlatformSurfaceKind = (typeof SOURCE_PLATFORM_MANIFEST_ENTRIES)[number]['surfaceKind'];
export type PlatformReadinessStage =
(typeof SOURCE_PLATFORM_MANIFEST_ENTRIES)[number]['readinessStage'];
export type PlatformPrimaryMode = (typeof SOURCE_PLATFORM_MANIFEST_ENTRIES)[number]['primaryMode'];
diff --git a/frontend-modern/src/utils/platformSupportManifest.ts b/frontend-modern/src/utils/platformSupportManifest.ts
index 2506f248fd..d16e9c55b6 100644
--- a/frontend-modern/src/utils/platformSupportManifest.ts
+++ b/frontend-modern/src/utils/platformSupportManifest.ts
@@ -27,8 +27,11 @@ import {
SOURCE_PLATFORM_PRIMARY_MODE,
SOURCE_PLATFORM_READINESS_STAGE,
SOURCE_PLATFORM_STORAGE_FAMILY,
+ SOURCE_PLATFORM_SURFACE_KIND,
SOURCE_PLATFORM_SUPPORT_FLOOR,
SUPPORTED_PLATFORM_IDS,
+ SUPPORTED_OWNING_PLATFORM_IDS,
+ SUPPORTED_RUNTIME_LENS_IDS,
type AgentHostProfileGovernanceState,
type AgentHostProfileReadinessStage,
type AgentHostProfileRuntimePlatform,
@@ -39,6 +42,7 @@ import {
type GeneratedKnownSourcePlatform,
type GeneratedSourcePlatformOnboardingPath,
type GeneratedSourcePlatformManifestEntry,
+ type PlatformSurfaceKind,
type PlatformPrimaryMode,
type PlatformReadinessStage,
type PlatformSupportFloor,
@@ -64,6 +68,7 @@ export type {
PlatformSupportFloor,
PlatformSupportFloorValue,
PlatformGovernanceState,
+ PlatformSurfaceKind,
SourcePlatformFamily,
SourcePlatformStorageFamily,
};
@@ -73,7 +78,9 @@ const entriesById = new Map<string, SourcePlatformManifestEntry>(
);
const entriesByDisplayToken = new Map<string, SourcePlatformManifestEntry>(
SOURCE_PLATFORM_MANIFEST_ENTRIES.flatMap((platform) =>
- platform.displayTokens.map((token) => [token.trim().toLowerCase(), platform] as const),
+ [platform.uiLabel, ...platform.displayTokens].map(
+ (token) => [token.trim().toLowerCase(), platform] as const,
+ ),
),
);
const agentHostProfileEntriesById = new Map<string, SourceAgentHostProfileManifestEntry>(
@@ -115,7 +122,10 @@ export {
SOURCE_PLATFORM_PRIMARY_MODE,
SOURCE_PLATFORM_READINESS_STAGE,
SOURCE_PLATFORM_SUPPORT_FLOOR,
+ SOURCE_PLATFORM_SURFACE_KIND,
SUPPORTED_PLATFORM_IDS,
+ SUPPORTED_OWNING_PLATFORM_IDS,
+ SUPPORTED_RUNTIME_LENS_IDS,
};
export const getSourcePlatformManifestEntry = (
@@ -171,6 +181,20 @@ export const getSourcePlatformReadinessStage = (
return SOURCE_PLATFORM_READINESS_STAGE[manifestPlatform.id];
};
+export const getSourcePlatformSurfaceKind = (
+ value: string | null | undefined,
+): PlatformSurfaceKind | null => {
+ const manifestPlatform = getSourcePlatformManifestEntry(value);
+ if (!manifestPlatform) return null;
+ return SOURCE_PLATFORM_SURFACE_KIND[manifestPlatform.id];
+};
+
+export const sourcePlatformIsRuntimeLens = (value: string | null | undefined): boolean =>
+ getSourcePlatformSurfaceKind(value) === 'runtime-lens';
+
+export const sourcePlatformIsOwningPlatform = (value: string | null | undefined): boolean =>
+ getSourcePlatformSurfaceKind(value) === 'platform';
+
export const getSourcePlatformPrimaryMode = (
value: string | null | undefined,
): PlatformPrimaryMode | null => {
diff --git a/internal/mock/platform_support_contract_test.go b/internal/mock/platform_support_contract_test.go
index c4868e7310..48294caa25 100644
--- a/internal/mock/platform_support_contract_test.go
+++ b/internal/mock/platform_support_contract_test.go
@@ -19,6 +19,7 @@ var (
numberedPlatformListRE = regexp.MustCompile("^\\d+\\.\\s+`([^`]+)`")
currentSupportMatrixRE = regexp.MustCompile("^\\|\\s+`([^`]+)`\\s+\\|")
currentSupportSetupRowRE = regexp.MustCompile("^\\|\\s+`([^`]+)`\\s+\\|\\s+([^|]+?)\\s+\\|")
+ currentSupportSurfaceRowRE = regexp.MustCompile("^\\|\\s+`([^`]+)`\\s+\\|\\s+`([^`]+)`\\s+\\|")
agentHostProfileTableRowRE = regexp.MustCompile("^\\|\\s+`([^`]+)`\\s+\\|\\s+`([^`]+)`\\s+\\|\\s+`([^`]+)`\\s+\\|\\s+`([^`]+)`\\s+\\|\\s+(.+?)\\s+\\|\\s+`([^`]+)`\\s+\\|\\s+`([^`]+)`\\s+\\|")
)
@@ -42,6 +43,7 @@ type agentHostProfileManifestEntry struct {
type platformSupportManifestEntry struct {
ID string `json:"id"`
+ SurfaceKind string `json:"surface_kind"`
GovernanceState string `json:"governance_state"`
ReadinessStage string `json:"readiness_stage"`
PrimaryMode string `json:"primary_mode"`
@@ -59,19 +61,36 @@ func TestPlatformSupportManifestMatchesSupportModel(t *testing.T) {
model := loadPlatformSupportModel(t)
manifest := loadPlatformSupportManifest(t)
- classified := parsePlatformListSection(t, model, "### First-class platforms")
+ firstClassPlatforms := parsePlatformListSection(t, model, "### First-class platforms")
+ runtimeLenses := parsePlatformListSection(t, model, "### Runtime lenses")
+ supportedSurfaces := uniqueSortedPlatforms(append(
+ append([]string(nil), firstClassPlatforms...),
+ runtimeLenses...,
+ ))
admitted := parsePlatformListSection(t, model, "### Admitted platforms (not yet supported)")
presentationOnly := parsePlatformListSection(t, model, "### Presentation-only platform vocabulary")
agentHostProfiles := parseAgentHostProfileSection(t, model, "### Agent Host Profiles")
matrix := parseCurrentSupportMatrixPlatforms(t, model)
- if diff := diffPlatformSets(classified, matrix); diff != "" {
+ if diff := diffPlatformSets(supportedSurfaces, matrix); diff != "" {
t.Fatalf("current supported platform definitions drifted between classification and support matrix:\n%s", diff)
}
- if diff := diffPlatformSets(classified, manifestPlatformsByState(t, manifest, "supported")); diff != "" {
+ if diff := diffPlatformSets(supportedSurfaces, manifestPlatformsByState(t, manifest, "supported")); diff != "" {
t.Fatalf("supported platform manifest drifted from the canonical support model:\n%s", diff)
}
+ if diff := diffPlatformSets(
+ firstClassPlatforms,
+ manifestPlatformsBySurfaceKindAndState(t, manifest, "platform", "supported"),
+ ); diff != "" {
+ t.Fatalf("supported platform surface-kind manifest drifted from the canonical support model:\n%s", diff)
+ }
+ if diff := diffPlatformSets(
+ runtimeLenses,
+ manifestPlatformsBySurfaceKindAndState(t, manifest, "runtime-lens", "supported"),
+ ); diff != "" {
+ t.Fatalf("supported runtime-lens manifest drifted from the canonical support model:\n%s", diff)
+ }
if diff := diffPlatformSets(admitted, manifestPlatformsByState(t, manifest, "admitted")); diff != "" {
t.Fatalf("admitted platform manifest drifted from the canonical support model:\n%s", diff)
}
@@ -81,6 +100,18 @@ func TestPlatformSupportManifestMatchesSupportModel(t *testing.T) {
); diff != "" {
t.Fatalf("presentation-only platform manifest drifted from the canonical support model:\n%s", diff)
}
+ if diff := diffPlatformSets(
+ presentationOnly,
+ manifestPlatformsBySurfaceKindAndState(t, manifest, "presentation-only", "presentation-only"),
+ ); diff != "" {
+ t.Fatalf("presentation-only surface-kind manifest drifted from the canonical support model:\n%s", diff)
+ }
+ if diff := diffPlatformFieldMap(
+ parseCurrentSupportRowSurfaceKinds(t, model),
+ manifestPlatformSurfaceKindsByState(t, manifest, "supported"),
+ ); diff != "" {
+ t.Fatalf("supported surface-kind manifest drifted from the canonical support rows:\n%s", diff)
+ }
if diff := diffPlatformFieldMap(
parseCurrentSupportMatrixOnboardingPaths(t, model),
manifestPlatformOnboardingPathsByState(t, manifest, "supported"),
@@ -141,7 +172,7 @@ func TestPlatformSupportManifestMatchesSupportModel(t *testing.T) {
); diff != "" {
t.Fatalf("agent host profile storage-family drifted from the canonical support model:\n%s", diff)
}
- if diff := diffPlatformSets(classified, manifest.DefaultInfrastructureSourceOrder); diff != "" {
+ if diff := diffPlatformSets(supportedSurfaces, manifest.DefaultInfrastructureSourceOrder); diff != "" {
t.Fatalf("default infrastructure source ordering drifted from the canonical supported platform set:\n%s", diff)
}
}
@@ -632,6 +663,36 @@ func parseCurrentSupportMatrixOnboardingPaths(t *testing.T, model string) map[st
return requireNonEmptyPlatformFieldMap(t, rows, "current support matrix onboarding paths")
}
+func parseCurrentSupportRowSurfaceKinds(t *testing.T, model string) map[string][]string {
+ t.Helper()
+
+ rows := make(map[string][]string)
+ inRows := false
+
+ for _, raw := range strings.Split(model, "\n") {
+ line := strings.TrimSpace(raw)
+ switch {
+ case line == "### Current support rows":
+ inRows = true
+ continue
+ case !inRows:
+ continue
+ case strings.HasPrefix(line, "### ") || strings.HasPrefix(line, "## "):
+ return requireNonEmptyPlatformFieldMap(t, rows, "current support row surface kinds")
+ case line == "" || strings.HasPrefix(line, "| ---") || strings.HasPrefix(line, "| Platform"):
+ continue
+ }
+
+ matches := currentSupportSurfaceRowRE.FindStringSubmatch(line)
+ if len(matches) != 3 {
+ continue
+ }
+ rows[matches[1]] = []string{matches[2]}
+ }
+
+ return requireNonEmptyPlatformFieldMap(t, rows, "current support row surface kinds")
+}
+
func manifestPlatformsByState(
t *testing.T,
manifest platformSupportManifest,
@@ -658,6 +719,56 @@ func manifestPlatformsByState(
return requireNonEmptyPlatformList(t, platforms, fmt.Sprintf("manifest platforms with state %s", governanceState))
}
+func manifestPlatformsBySurfaceKindAndState(
+ t *testing.T,
+ manifest platformSupportManifest,
+ surfaceKind string,
+ governanceState string,
+) []string {
+ t.Helper()
+
+ platforms := make([]string, 0)
+ for _, platform := range manifest.Platforms {
+ if platform.GovernanceState == governanceState && platform.SurfaceKind == surfaceKind {
+ platforms = append(platforms, platform.ID)
+ }
+ }
+
+ if governanceState == "admitted" {
+ return allowEmptyPlatformList(platforms)
+ }
+ return requireNonEmptyPlatformList(
+ t,
+ platforms,
+ fmt.Sprintf("manifest platforms with surface kind %s and state %s", surfaceKind, governanceState),
+ )
+}
+
+func manifestPlatformSurfaceKindsByState(
+ t *testing.T,
+ manifest platformSupportManifest,
+ governanceState string,
+) map[string][]string {
+ t.Helper()
+
+ rows := make(map[string][]string)
+ for _, platform := range manifest.Platforms {
+ if platform.GovernanceState != governanceState {
+ continue
+ }
+ if strings.TrimSpace(platform.SurfaceKind) == "" {
+ t.Fatalf("expected platform support manifest to classify surface kind for %s", platform.ID)
+ }
+ rows[platform.ID] = []string{platform.SurfaceKind}
+ }
+
+ return requireNonEmptyPlatformFieldMap(
+ t,
+ rows,
+ fmt.Sprintf("manifest surface kinds with state %s", governanceState),
+ )
+}
+
func manifestPlatformOnboardingPathsByState(
t *testing.T,
manifest platformSupportManifest,
@@ -1080,7 +1191,7 @@ func diffPlatformFieldMap(want map[string][]string, got map[string][]string) str
if diff := diffPlatformSets(wantValue, gotValue); diff != "" {
messages = append(
messages,
- fmt.Sprintf("%s onboarding paths drifted:\n%s", platform, indentDiff(diff)),
+ fmt.Sprintf("%s field values drifted:\n%s", platform, indentDiff(diff)),
)
}
}
diff --git a/internal/platformsupport/manifest_generated.go b/internal/platformsupport/manifest_generated.go
index db95bb416a..7eb2e389a3 100644
--- a/internal/platformsupport/manifest_generated.go
+++ b/internal/platformsupport/manifest_generated.go
@@ -1,7 +1,7 @@
// Code generated by scripts/release_control/generate_platform_support_backend_module.py.
// DO NOT EDIT.
// Source: docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json
-// Source SHA256: 7126ef35ec2c2cda7e04b4a5496337d9d194926f7586af89fb3ae082fc7d6a2e
+// Source SHA256: 01e0f1c5cbe2f5b46745a0a5fd51d0d085f48346cc2dbadf391dac558666fb34
package platformsupport
@@ -13,10 +13,10 @@ const ManifestSourcePath = "docs/release-control/v6/internal/PLATFORM_SUPPORT_MA
// ManifestSourceSHA256 is the sha256 of the manifest bytes used to produce
// this projection.
-const ManifestSourceSHA256 = "7126ef35ec2c2cda7e04b4a5496337d9d194926f7586af89fb3ae082fc7d6a2e"
+const ManifestSourceSHA256 = "01e0f1c5cbe2f5b46745a0a5fd51d0d085f48346cc2dbadf391dac558666fb34"
// ManifestSchemaVersion is the schema_version field of the manifest.
-const ManifestSchemaVersion = 1
+const ManifestSchemaVersion = 2
// AgentHostProfileEntry is the generated projection of an agent host profile.
type AgentHostProfileEntry struct {
diff --git a/scripts/release_control/generate_platform_support_frontend_module.py b/scripts/release_control/generate_platform_support_frontend_module.py
index d59599854b..099014f39b 100755
--- a/scripts/release_control/generate_platform_support_frontend_module.py
+++ b/scripts/release_control/generate_platform_support_frontend_module.py
@@ -21,6 +21,7 @@ DEFAULT_GENERIC_PRESENTATION = {
}
VALID_GOVERNANCE_STATES = {"supported", "admitted", "presentation-only"}
VALID_PRIMARY_MODES = {"api-backed", "agent-backed", "hybrid", "presentation-only"}
+VALID_PLATFORM_SURFACE_KINDS = {"platform", "runtime-lens", "presentation-only"}
VALID_READINESS_STAGES = {"supported", "first-lab-ready", "presentation-only"}
VALID_STORAGE_FAMILIES = {"onprem", "container", "virtualization", "cloud"}
VALID_ONBOARDING_PATHS = {"install-workspace", "platform-connections"}
@@ -231,6 +232,14 @@ def normalize_manifest(raw_manifest: dict[str, Any]) -> dict[str, Any]:
f"expected platforms[{index}].governance_state to be one of "
f"{sorted(VALID_GOVERNANCE_STATES)}"
)
+ surface_kind = require_string(
+ record.get("surface_kind"), f"platforms[{index}].surface_kind"
+ )
+ if surface_kind not in VALID_PLATFORM_SURFACE_KINDS:
+ raise ValueError(
+ f"expected platforms[{index}].surface_kind to be one of "
+ f"{sorted(VALID_PLATFORM_SURFACE_KINDS)}"
+ )
storage_family = require_string(
record.get("storage_family"), f"platforms[{index}].storage_family"
)
@@ -280,6 +289,10 @@ def normalize_manifest(raw_manifest: dict[str, Any]) -> dict[str, Any]:
if governance_state == "admitted" and readiness_stage == "supported":
raise ValueError(f"admitted platform {platform_id} must not use readiness_stage supported")
if governance_state == "presentation-only":
+ if surface_kind != "presentation-only":
+ raise ValueError(
+ f"presentation-only platform {platform_id} must use surface_kind presentation-only"
+ )
if readiness_stage != "presentation-only":
raise ValueError(
f"presentation-only platform {platform_id} must use readiness_stage presentation-only"
@@ -288,6 +301,10 @@ def normalize_manifest(raw_manifest: dict[str, Any]) -> dict[str, Any]:
raise ValueError(
f"presentation-only platform {platform_id} must use primary_mode presentation-only"
)
+ elif surface_kind == "presentation-only":
+ raise ValueError(
+ f"{governance_state} platform {platform_id} must not use surface_kind presentation-only"
+ )
canonical_projections = unique_preserve_order(
require_string_list(
@@ -328,6 +345,7 @@ def normalize_manifest(raw_manifest: dict[str, Any]) -> dict[str, Any]:
{
"id": platform_id,
"family": require_string(record.get("family"), f"platforms[{index}].family"),
+ "surfaceKind": surface_kind,
"governanceState": governance_state,
"readinessStage": readiness_stage,
"primaryMode": primary_mode,
@@ -356,7 +374,19 @@ def normalize_manifest(raw_manifest: dict[str, Any]) -> dict[str, Any]:
)
]
)
- supported_ids = [platform["id"] for platform in platforms if platform["governanceState"] == "supported"]
+ supported_ids = [
+ platform["id"] for platform in platforms if platform["governanceState"] == "supported"
+ ]
+ supported_owning_platform_ids = [
+ platform["id"]
+ for platform in platforms
+ if platform["governanceState"] == "supported" and platform["surfaceKind"] == "platform"
+ ]
+ supported_runtime_lens_ids = [
+ platform["id"]
+ for platform in platforms
+ if platform["governanceState"] == "supported" and platform["surfaceKind"] == "runtime-lens"
+ ]
supported_id_set = set(supported_ids)
for platform_id in default_order:
if platform_id not in supported_id_set:
@@ -389,6 +419,9 @@ def normalize_manifest(raw_manifest: dict[str, Any]) -> dict[str, Any]:
readiness_stage_by_id = {
platform["id"]: platform["readinessStage"] for platform in platforms
}
+ surface_kind_by_id = {
+ platform["id"]: platform["surfaceKind"] for platform in platforms
+ }
agent_host_profile_family_by_id = {
profile["id"]: profile["family"] for profile in agent_host_profiles
}
@@ -458,6 +491,8 @@ def normalize_manifest(raw_manifest: dict[str, Any]) -> dict[str, Any]:
"agentHostProfileIds": agent_host_profile_ids,
"platforms": platforms,
"supportedPlatformIds": supported_ids,
+ "supportedOwningPlatformIds": supported_owning_platform_ids,
+ "supportedRuntimeLensIds": supported_runtime_lens_ids,
"admittedPlatformIds": admitted_ids,
"presentationOnlyPlatformIds": presentation_only_ids,
"platformTypeKeys": platform_type_keys,
@@ -474,6 +509,7 @@ def normalize_manifest(raw_manifest: dict[str, Any]) -> dict[str, Any]:
"agentHostProfileStorageFamilyById": agent_host_profile_storage_family_by_id,
"agentHostProfileRuntimePlatformById": agent_host_profile_runtime_platform_by_id,
"familyById": family_by_id,
+ "surfaceKindById": surface_kind_by_id,
"readinessStageById": readiness_stage_by_id,
"primaryModeById": primary_mode_by_id,
"canonicalProjectionsById": canonical_projections_by_id,
@@ -516,6 +552,8 @@ def render_module(normalized: dict[str, Any], manifest_hash: str) -> str:
" PLATFORM_SUPPORT_MANIFEST.agentHostProfiles;\n",
render_const("AGENT_HOST_PROFILE_IDS", normalized["agentHostProfileIds"]),
render_const("SUPPORTED_PLATFORM_IDS", normalized["supportedPlatformIds"]),
+ render_const("SUPPORTED_OWNING_PLATFORM_IDS", normalized["supportedOwningPlatformIds"]),
+ render_const("SUPPORTED_RUNTIME_LENS_IDS", normalized["supportedRuntimeLensIds"]),
render_const("ADMITTED_PLATFORM_IDS", normalized["admittedPlatformIds"]),
render_const("PRESENTATION_ONLY_PLATFORM_IDS", normalized["presentationOnlyPlatformIds"]),
render_const("PLATFORM_TYPE_KEYS", normalized["platformTypeKeys"]),
@@ -557,6 +595,7 @@ def render_module(normalized: dict[str, Any], manifest_hash: str) -> str:
normalized["agentHostProfileRuntimePlatformById"],
),
render_const("SOURCE_PLATFORM_FAMILY", normalized["familyById"]),
+ render_const("SOURCE_PLATFORM_SURFACE_KIND", normalized["surfaceKindById"]),
render_const("SOURCE_PLATFORM_READINESS_STAGE", normalized["readinessStageById"]),
render_const("SOURCE_PLATFORM_PRIMARY_MODE", normalized["primaryModeById"]),
render_const("SOURCE_PLATFORM_CANONICAL_PROJECTIONS", normalized["canonicalProjectionsById"]),
@@ -566,6 +605,8 @@ def render_module(normalized: dict[str, Any], manifest_hash: str) -> str:
render_const("SOURCE_PLATFORM_STORAGE_FAMILY", normalized["storageFamilyById"]),
"export type PlatformGovernanceState =\n"
" (typeof SOURCE_PLATFORM_MANIFEST_ENTRIES)[number]['governanceState'];\n",
+ "export type PlatformSurfaceKind =\n"
+ " (typeof SOURCE_PLATFORM_MANIFEST_ENTRIES)[number]['surfaceKind'];\n",
"export type PlatformReadinessStage =\n"
" (typeof SOURCE_PLATFORM_MANIFEST_ENTRIES)[number]['readinessStage'];\n",
"export type PlatformPrimaryMode =\n"