Class RemoteDomainControllerAdapter

java.lang.Object
ai.astraform.remote.domain.sdk.spring.RemoteDomainControllerAdapter
All Implemented Interfaces:
RemoteDomainProtocolApi

@RestController @CrossOrigin(originPatterns="*") public class RemoteDomainControllerAdapter extends Object implements RemoteDomainProtocolApi
  • Constructor Details

    • RemoteDomainControllerAdapter

      public RemoteDomainControllerAdapter(RemoteDomainService service)
  • Method Details

    • getRemoteDomainManifest

      public org.springframework.http.ResponseEntity<RemoteDomainManifest> getRemoteDomainManifest()
      Description copied from interface: RemoteDomainProtocolApi
      GET /api/remote-domain/v1/manifest : Fetch remote domain manifest and capability declaration
      Specified by:
      getRemoteDomainManifest in interface RemoteDomainProtocolApi
      Returns:
      Manifest returned successfully (status code 200) or Internal server error (status code 500)
    • getPopulationCatalog

      @GetMapping("/api/remote-domain/v1/population/catalog") public org.springframework.http.ResponseEntity<Map<String,Object>> getPopulationCatalog()
    • prepareRemoteDomainAgent

      public org.springframework.http.ResponseEntity<RemoteDomainPrepareResponse> prepareRemoteDomainAgent(RemoteDomainPrepareRequest remoteDomainPrepareRequest)
      Description copied from interface: RemoteDomainProtocolApi
      POST /api/remote-domain/v1/prepare : Validate persona input and produce initial opaque state
      Specified by:
      prepareRemoteDomainAgent in interface RemoteDomainProtocolApi
      Parameters:
      remoteDomainPrepareRequest - (required)
      Returns:
      Prepare request succeeded (status code 200) or Bad request (status code 400) or Domain rejected the persona/configuration (status code 422) or Internal server error (status code 500)
    • executeRemoteDomainWork

      public org.springframework.http.ResponseEntity<RemoteDomainExecuteWorkResponse> executeRemoteDomainWork(RemoteDomainExecuteWorkRequest remoteDomainExecuteWorkRequest)
      Description copied from interface: RemoteDomainProtocolApi
      POST /api/remote-domain/v1/execute-work : Apply one host-owned work cycle to the current opaque state
      Specified by:
      executeRemoteDomainWork in interface RemoteDomainProtocolApi
      Parameters:
      remoteDomainExecuteWorkRequest - (required)
      Returns:
      Work execution succeeded (status code 200) or Bad request (status code 400) or Domain rejected the supplied state or work context (status code 422) or Internal server error (status code 500)
    • executeRemoteDomainSystemWorkWindow

      public org.springframework.http.ResponseEntity<RemoteDomainSystemWorkWindowResponse> executeRemoteDomainSystemWorkWindow(RemoteDomainSystemWorkWindowRequest remoteDomainSystemWorkWindowRequest)
      Description copied from interface: RemoteDomainProtocolApi
      POST /api/remote-domain/v1/domain-system-work-window : Let the remote domain evaluate and execute domain-owned work for a simulated time window
      Specified by:
      executeRemoteDomainSystemWorkWindow in interface RemoteDomainProtocolApi
      Parameters:
      remoteDomainSystemWorkWindowRequest - (required)
      Returns:
      Domain-system work window execution succeeded (status code 200) or Bad request (status code 400) or Domain rejected the supplied state or work-window context (status code 422) or Internal server error (status code 500)
    • executeRemoteDomainControlAction

      public org.springframework.http.ResponseEntity<RemoteDomainControlActionResponse> executeRemoteDomainControlAction(RemoteDomainControlActionRequest remoteDomainControlActionRequest)
      Description copied from interface: RemoteDomainProtocolApi
      POST /api/remote-domain/v1/control-actions:execute : Execute a domain-owned operator control action during a simulation run Executes a domain-owned intervention against the supplied agent state. The host owns authorization, target selection, fan-out, audit, and evidence persistence. The remote domain owns the available action catalog, validation, state effects, evidence events, and business interpretation.
      Specified by:
      executeRemoteDomainControlAction in interface RemoteDomainProtocolApi
      Parameters:
      remoteDomainControlActionRequest - (required)
      Returns:
      Control action execution succeeded (status code 200) or Bad request (status code 400) or Domain rejected the supplied control action (status code 422) or Internal server error (status code 500)
    • projectRemoteDomainStatus

      public org.springframework.http.ResponseEntity<RemoteDomainStatusResponse> projectRemoteDomainStatus(RemoteDomainStatusRequest remoteDomainStatusRequest)
      Description copied from interface: RemoteDomainProtocolApi
      POST /api/remote-domain/v1/status : Project a public runtime status fragment from opaque state
      Specified by:
      projectRemoteDomainStatus in interface RemoteDomainProtocolApi
      Parameters:
      remoteDomainStatusRequest - (required)
      Returns:
      Status projection succeeded (status code 200) or Bad request (status code 400) or Internal server error (status code 500)
    • projectRemoteDomainInspection

      public org.springframework.http.ResponseEntity<RemoteDomainInspectionResponse> projectRemoteDomainInspection(RemoteDomainInspectionRequest remoteDomainInspectionRequest)
      Description copied from interface: RemoteDomainProtocolApi
      POST /api/remote-domain/v1/inspection : Project a detailed inspection fragment from opaque state
      Specified by:
      projectRemoteDomainInspection in interface RemoteDomainProtocolApi
      Parameters:
      remoteDomainInspectionRequest - (required)
      Returns:
      Inspection projection succeeded (status code 200) or Bad request (status code 400) or Internal server error (status code 500)
    • shutdownRemoteDomainAgent

      public org.springframework.http.ResponseEntity<RemoteDomainShutdownResponse> shutdownRemoteDomainAgent(RemoteDomainShutdownRequest remoteDomainShutdownRequest)
      Description copied from interface: RemoteDomainProtocolApi
      POST /api/remote-domain/v1/shutdown : Best-effort advisory shutdown notification
      Specified by:
      shutdownRemoteDomainAgent in interface RemoteDomainProtocolApi
      Parameters:
      remoteDomainShutdownRequest - (required)
      Returns:
      Shutdown acknowledged (status code 200) or Bad request (status code 400) or Internal server error (status code 500)