Skip to content

KUApps action catalog ​

Every route that changes something in KUApps or Observability is declared in one catalog, frontend/src/shared/actionCatalog.json, before it runs. The backend validates it (lib/kua/actionCatalog.js) and a test fails when a write route is missing from it or a catalogued route no longer exists. The UI task coordinator (frontend/src/lib/taskCoordinator.js) reads from the same file what each write makes stale, so a burst of writes ends in one reload of only those parts.

Fields ​

FieldMeaning
kindread (a POST that only computes, such as a preview), write (changes data on this computer), cloud-read / cloud-write (calls a cloud or provider API), external-write (sends data outside this computer that is not a cloud resource: KUA account backups, sync, team, GitHub)
storesLocal stores it writes: apm-db (applications, resources, dependencies, metrics), architecture-graph, registry (the shared resource and relationship registry), scopes, change-plans, log-cache, local-settings, plus control-plane and github outside this computer
derivesWhat is recomputed as a consequence, once per request (for example the registry reconciliation after a dependency is confirmed)
revisionmoves: increments the application revision, so a stale preview or form is refused; checked: accepts expectedRevision and refuses with 409 REVISION_CONFLICT without writing; checked-moves: both; graph: uses the Architecture graph revision; none
invalidatesUI data reloaded after it: overview, topology, forecast, registry (Observability) and kuapps.registry, kuapps.missing (KUApps)
batchableOne request handles a list
costPriced cloud calls it can make, or nothing
destructiveDeletes, detaches or overwrites; always audited
auditWrites an entry in the audit log, with the client that asked (ui or mcp)

Rules ​

  • Adding a write route means adding its entry; the test names the missing route.
  • A destructive action is always audited, and anything that writes outside this computer is external-write.
  • Cost is declared here and in the UI before the call; free List/Describe reads are cloud-read with no cost.
  • After changing the catalog, run node scripts/generate-action-catalog-docs.js to update the table below (a test checks it).

UI changes recorded as plans ​

Agents change a KUA Application in two steps: preview_application_change stores a plan and apply_application_change runs it after approval (lib/kua/changePlans.js). The Review tab records its writes in the same plans, without the preview step, when the catalog says they are local, free and not destructive: confirming dependencies (edge.confirm-batch) and accepting or rejecting a relationship (relationship.review). Each one stores the revision it ran against, the outcome of every item (applied, partial when some items failed, failed, or conflict when the revision moved and nothing was written) and one audit entry with the plan id and whether the UI or an agent sent it. get_application_change and GET /api/kua-apps/changes/:planId read these plans like agent plans. The list is DIRECT_OPERATIONS; KUA refuses to start if an action in it stops being local, free and not destructive.

Actions ​

ActionRouteKindWritesRecomputesRevisionUI reloadsNotes
agent-access.setPUT /api/kua-apps/agent-accesswritelocal-settings—none—audited
apm-application.createPOST /api/observability/:provider/applicationswriteapm-db—none—audited
apm-application.deleteDELETE /api/observability/:provider/applications/:applicationIdwriteapm-db, registry, scopes—none—destructive · audited
apm-application.updatePATCH /api/observability/:provider/applications/:applicationIdwriteapm-db—movesoverviewaudited
application.createPOST /api/kua-apps/applicationswriteapm-db, scopes—none—audited
application.deleteDELETE /api/kua-apps/applications/:applicationIdwriteapm-db, registry, scopes—checked—destructive · audited
application.updatePATCH /api/kua-apps/applications/:applicationIdwriteapm-db—checked-movesoverviewaudited
bundle.importPOST /api/kua-apps/importwriteapm-db, scopes, architecture-graphregistrynone—audited
bundle.import-previewPOST /api/kua-apps/import/previewread——none——
change-plan.applyPOST /api/kua-apps/changes/:planId/applywritechange-plans, apm-db, scopesregistrychecked-movesoverview, topology, forecast, registry, kuapps.registry, kuapps.missingdestructive · batch · audited · cost: CloudWatch GetMetricData; CloudWatch Logs FilterLogEvents
change-plan.previewPOST /api/kua-apps/changes/previewwritechange-plans—none——
cloud-backup.createPOST /api/kua-apps/:applicationId/cloud-backupexternal-writecontrol-plane—none—audited
cloud-backup.restorePOST /api/kua-apps/cloud-backups/:backupId/restorewriteapm-db, scopes, architecture-graphregistrynone—audited
collection.runPOST /api/observability/:provider/applications/:applicationId/collect-nowcloud-readapm-db—noneoverview, forecastaudited · cost: CloudWatch GetMetricData; CloudWatch Logs FilterLogEvents
deployment.previewPOST /api/observability/:provider/deployment-resourcescloud-read——none—batch
edge.confirmPOST /api/observability/:provider/applications/:applicationId/edgeswriteapm-dbregistry, scopesnonetopology, registry, kuapps.registryaudited
edge.confirm-batchPOST /api/observability/:provider/applications/:applicationId/edges/batchwriteapm-dbregistry, scopescheckedtopology, registry, kuapps.registrybatch · audited
edge.removeDELETE /api/observability/:provider/applications/:applicationId/edges/:edgeIdwriteapm-dbregistry, scopesnonetopology, registry, kuapps.registrydestructive · audited
github-sync.configurePUT /api/kua-apps/applications/:applicationId/githubwritelocal-settings—none—audited
kubernetes-discovery.previewPOST /api/observability/:provider/applications/:applicationId/discovery/kubernetes/previewcloud-read——none—batch
log-cache.disableDELETE /api/observability/:provider/applications/:applicationId/log-cachewritelog-cache—noneoverviewdestructive · audited
log-cache.enablePOST /api/observability/:provider/applications/:applicationId/log-cachecloud-readlog-cache—noneoverview—
log-cache.set-refreshPATCH /api/observability/:provider/applications/:applicationId/log-cachewritelog-cache—none——
missing-resource.ignorePOST /api/kua-apps/applications/:applicationId/observer/ignorewriteapm-db—nonekuapps.missing—
process.tracePOST /api/observability/:provider/applications/:applicationId/process-tracescloud-read——none—audited
recommendation.dismissPOST /api/kua-apps/applications/:applicationId/recommendations/dismisswriteapm-db—none—audited
registry-resource.detachDELETE /api/kua-apps/applications/:applicationId/registry/resources/:resourceIdwriteregistry, apm-dbregistrychecked-movesoverview, topology, forecast, registry, kuapps.registry, kuapps.missingdestructive · audited
registry.reconcilePOST /api/observability/:provider/applications/:applicationId/registry/reconcilewriteregistry—nonekuapps.registryaudited
relationship.explainPOST /api/kua-apps/applications/:applicationId/relationships/explainread——none——
relationship.reviewPOST /api/observability/:provider/applications/:applicationId/registry/relationships/:relationshipId/reviewwritearchitecture-graphregistry, scopesgraphregistry, kuapps.registryaudited
resource-candidate.discoverPOST /api/observability/:provider/candidatesread——none—batch
resource.attachPOST /api/observability/:provider/applications/:applicationId/resourceswriteapm-dbregistry, scopeschecked-movesoverview, topology, forecast, registry, kuapps.registry, kuapps.missingaudited
resource.attach-batchPOST /api/kua-apps/applications/:applicationId/resources/attachwriteapm-db, scopesregistrychecked-movesoverview, topology, forecast, registry, kuapps.registry, kuapps.missingbatch · audited
resource.detachDELETE /api/observability/:provider/applications/:applicationId/resources/:resourceIdwriteapm-dbregistrychecked-movesoverview, topology, forecast, registry, kuapps.registry, kuapps.missingdestructive · audited
resource.replace-with-successorPOST /api/kua-apps/applications/:applicationId/observer/replacewriteapm-dbregistry, scopeschecked-movesoverview, topology, forecast, registry, kuapps.registry, kuapps.missingdestructive · audited
resource.updatePATCH /api/observability/:provider/applications/:applicationId/resources/:resourceIdwriteapm-dbregistrychecked-movesoverview, topology, forecast, registry, kuapps.registry, kuapps.missingaudited
scope.addPOST /api/kua-apps/applications/:applicationId/scopeswritescopes—checked-moveskuapps.registryaudited
scope.bindPUT /api/kua-apps/applications/:applicationId/scopes/:scopeKey/bindingwritescopes—nonekuapps.registryaudited
scope.removeDELETE /api/kua-apps/applications/:applicationId/scopes/:scopeKeywritescopes—checked-movesoverview, topology, forecast, registry, kuapps.registry, kuapps.missingdestructive · audited
scope.unbindDELETE /api/kua-apps/applications/:applicationId/scopes/:scopeKey/bindingwritescopes—nonekuapps.registrydestructive · audited
scope.verifyPOST /api/kua-apps/applications/:applicationId/scopes/:scopeKey/binding/verifycloud-readscopes—nonekuapps.registryaudited
stack.linkPOST /api/observability/:provider/applications/:applicationId/link-stackwriteapm-dbregistry, scopeschecked-movesoverview, topology, forecast, registry, kuapps.registry, kuapps.missingbatch · audited
sync.add-herePOST /api/kua-apps/sync/:syncId/addwriteapm-db, scopes, architecture-graph, local-settingsregistrynone——
sync.disableDELETE /api/kua-apps/:applicationId/syncexternal-writelocal-settings, control-plane—none—destructive · audited
sync.enablePOST /api/kua-apps/:applicationId/syncexternal-writecontrol-plane, local-settings—none——
sync.resolve-conflictPOST /api/kua-apps/:applicationId/sync/resolveexternal-writecontrol-plane, apm-db, architecture-graph, local-settingsregistrymovesoverview, topology, forecast, registry, kuapps.registry, kuapps.missingdestructive · audited
sync.runPOST /api/kua-apps/sync/nowexternal-writecontrol-plane, apm-db, architecture-graph, local-settingsregistrymovesoverview, topology, forecast, registry, kuapps.registry, kuapps.missingdestructive · batch · audited
team-backup.createPOST /api/kua-apps/team/items/:itemId/backupsexternal-writecontrol-plane—none——
team-backup.restorePOST /api/kua-apps/team/items/:itemId/backups/:backupId/restorewriteapm-db, scopes, architecture-graphregistrynone——
team-item.importPOST /api/kua-apps/team/items/:itemId/importwriteapm-db, scopes, architecture-graph, local-settingsregistrynone—audited
team-item.updatePATCH /api/kua-apps/team/items/:itemIdexternal-writecontrol-plane—none——
team-member.set-permissionsPATCH /api/kua-apps/team/members/:userIdexternal-writecontrol-plane—none——
team.syncPOST /api/kua-apps/team/refreshexternal-writecontrol-plane, apm-db, architecture-graph, local-settingsregistrymoves—destructive · batch · audited
thresholds.updatePATCH /api/observability/:provider/applications/:applicationId/thresholdswriteapm-db—noneoverviewaudited
topology.analyze-cloudPOST /api/observability/:provider/applications/:applicationId/topology/analyze-cloudcloud-read——none—audited
view.create-from-applicationPOST /api/observability/:provider/applications/:applicationId/architecture-link/projectwritearchitecture-graph, apm-dbregistry, scopesmovesregistry, kuapps.registryaudited
view.linkPATCH /api/observability/:provider/applications/:applicationId/architecture-linkwriteapm-dbregistry, scopesmovesregistry, kuapps.registryaudited
view.unlinkDELETE /api/observability/:provider/applications/:applicationId/architecture-linkwriteapm-dbregistry, scopesmovesregistry, kuapps.registrydestructive · audited