test_runner: Add AsyncResults

AsyncResults consists of the two URLs that are generated based on the
results directory - the GS URL and the Stainless URL.

BUG=chromium:1064028
TEST=./generate.sh

Change-Id: I989318fe98e26599f69669ff6ecff635bd514b1b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2117092
Tested-by: Alex Zamorzaev <zamorzaev@chromium.org>
Commit-Queue: Prathmesh Prabhu <pprabhu@chromium.org>
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
Auto-Submit: Alex Zamorzaev <zamorzaev@chromium.org>
diff --git a/go/test_platform/skylab_local_state/load.pb.go b/go/test_platform/skylab_local_state/load.pb.go
index 1459071..684580a 100644
--- a/go/test_platform/skylab_local_state/load.pb.go
+++ b/go/test_platform/skylab_local_state/load.pb.go
@@ -6,6 +6,7 @@
 import (
 	fmt "fmt"
 	proto "github.com/golang/protobuf/proto"
+	skylab_test_runner "go.chromium.org/chromiumos/infra/proto/go/test_platform/skylab_test_runner"
 	math "math"
 )
 
@@ -93,10 +94,16 @@
 	// "cros-version": "reef-release/R77-12345.0.0".
 	ProvisionableLabels map[string]string `protobuf:"bytes,1,rep,name=provisionable_labels,json=provisionableLabels,proto3" json:"provisionable_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
 	// The path to the newly created directory containing the host info file.
-	ResultsDir           string   `protobuf:"bytes,2,opt,name=results_dir,json=resultsDir,proto3" json:"results_dir,omitempty"`
-	XXX_NoUnkeyedLiteral struct{} `json:"-"`
-	XXX_unrecognized     []byte   `json:"-"`
-	XXX_sizecache        int32    `json:"-"`
+	ResultsDir string `protobuf:"bytes,2,opt,name=results_dir,json=resultsDir,proto3" json:"results_dir,omitempty"`
+	// Paths to future results archives.
+	// These paths depend on the path of the local results directory, so they
+	// become well-defined the moment the local directory is created.
+	// `skylab_local_state load` does not perform the offload to the locations,
+	// the offload happens asynchronously after the task finishes.
+	AsyncResults         *skylab_test_runner.AsyncResults `protobuf:"bytes,3,opt,name=async_results,json=asyncResults,proto3" json:"async_results,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
+	XXX_unrecognized     []byte                           `json:"-"`
+	XXX_sizecache        int32                            `json:"-"`
 }
 
 func (m *LoadResponse) Reset()         { *m = LoadResponse{} }
@@ -138,6 +145,13 @@
 	return ""
 }
 
+func (m *LoadResponse) GetAsyncResults() *skylab_test_runner.AsyncResults {
+	if m != nil {
+		return m.AsyncResults
+	}
+	return nil
+}
+
 func init() {
 	proto.RegisterType((*LoadRequest)(nil), "test_platform.skylab_local_state.LoadRequest")
 	proto.RegisterType((*LoadResponse)(nil), "test_platform.skylab_local_state.LoadResponse")
@@ -149,27 +163,30 @@
 }
 
 var fileDescriptor_8da18a4489bdf85e = []byte{
-	// 340 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0x4d, 0x4b, 0xc3, 0x30,
-	0x18, 0x80, 0xc9, 0xe6, 0xa6, 0x4b, 0x3d, 0x48, 0x9c, 0x50, 0x77, 0xb1, 0xcc, 0x4b, 0x41, 0x6c,
-	0x61, 0x5e, 0xc4, 0x93, 0xcc, 0x2f, 0x94, 0x21, 0xd2, 0xa3, 0x97, 0x92, 0xb6, 0x59, 0x0d, 0x4b,
-	0xf2, 0xd6, 0x7c, 0x0c, 0xe6, 0x0f, 0xf2, 0x0f, 0xfa, 0x07, 0x64, 0xdd, 0x84, 0xc9, 0x94, 0xde,
-	0xf2, 0xe6, 0x7d, 0xf2, 0xe4, 0xfd, 0xc0, 0x67, 0x96, 0x19, 0x9b, 0x56, 0x82, 0xda, 0x29, 0x68,
-	0x19, 0x9b, 0xd9, 0x42, 0xd0, 0x2c, 0x15, 0x90, 0x53, 0x91, 0x1a, 0x4b, 0x2d, 0x8b, 0x05, 0xd0,
-	0x22, 0xaa, 0x34, 0x58, 0x20, 0xc1, 0x2f, 0x38, 0xda, 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9, 0x70, 0x6c, 0x2d, 0x5a,
-	0x05, 0x57, 0xad, 0x4b, 0x34, 0x9e, 0xbc, 0x3e, 0x95, 0x10, 0xe5, 0x6f, 0x1a, 0x24, 0x77, 0x32,
-	0x02, 0x5d, 0xc6, 0x3f, 0x01, 0x98, 0x98, 0xab, 0xa9, 0xa6, 0x71, 0xbd, 0xc8, 0xb8, 0x84, 0xb8,
-	0x69, 0xf3, 0x59, 0xb7, 0x46, 0x2f, 0xbe, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x50, 0x29, 0x74,
-	0x73, 0x02, 0x00, 0x00,
+	// 386 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xdd, 0x8a, 0xd5, 0x30,
+	0x10, 0xc7, 0x69, 0x8f, 0x7b, 0x74, 0xd3, 0x15, 0x24, 0xae, 0x50, 0xf7, 0xc6, 0xb2, 0xde, 0x14,
+	0xc4, 0x04, 0x8e, 0x37, 0xe2, 0x95, 0xae, 0x5f, 0x28, 0x07, 0x91, 0x78, 0xe7, 0x4d, 0x48, 0xdb,
+	0x9c, 0x1a, 0x36, 0xcd, 0xd4, 0x7c, 0x2c, 0xd4, 0x07, 0xf2, 0x59, 0x7c, 0x2c, 0x39, 0x69, 0x17,
+	0xba, 0xec, 0x1e, 0x7a, 0x97, 0x99, 0xf9, 0xcd, 0x3f, 0xff, 0x61, 0x06, 0xbd, 0xf0, 0xd2, 0x79,
+	0xde, 0x6b, 0xe1, 0x77, 0x60, 0x3b, 0xea, 0x2e, 0x07, 0x2d, 0x2a, 0xae, 0xa1, 0x16, 0x9a, 0x3b,
+	0x2f, 0xbc, 0xa4, 0x1a, 0x44, 0x43, 0x7a, 0x0b, 0x1e, 0x70, 0x71, 0x03, 0x26, 0xb7, 0xe1, 0xb3,
+	0x97, 0x8b, 0x72, 0x35, 0x74, 0x1d, 0x98, 0x51, 0xf0, 0x00,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6c, 0xec,
+	0x62, 0x27, 0x62, 0x16, 0x9d, 0x7d, 0x42, 0xf9, 0x21, 0x9b, 0xf8, 0x11, 0x5a, 0x5d, 0xca, 0x21,
+	0x2e, 0xed, 0x98, 0xed, 0x9f, 0xf8, 0x14, 0x1d, 0x5d, 0x09, 0x1d, 0xe4, 0xe4, 0x6e, 0x0c, 0xde,
+	0xa4, 0xaf, 0x93, 0x8b, 0xed, 0xcf, 0xaf, 0x2d, 0x90, 0xfa, 0x97, 0x85, 0x4e, 0x85, 0x8e, 0x80,
+	0x6d, 0xe9, 0x75, 0x00, 0x8e, 0x2a, 0xb3, 0xb3, 0x82, 0xc6, 0xeb, 0xa0, 0x2d, 0xd0, 0xa5, 0xeb,
+	0xab, 0xd6, 0x11, 0x7d, 0xf5, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x1a, 0x36, 0xd9, 0x44, 0xf7, 0x02,
+	0x00, 0x00,
 }
diff --git a/go/test_platform/skylab_test_runner/result.pb.go b/go/test_platform/skylab_test_runner/result.pb.go
index 4b4e527..12ca75e 100644
--- a/go/test_platform/skylab_test_runner/result.pb.go
+++ b/go/test_platform/skylab_test_runner/result.pb.go
@@ -47,7 +47,7 @@
 }
 
 func (Result_Autotest_TestCase_Verdict) EnumDescriptor() ([]byte, []int) {
-	return fileDescriptor_e702ec909b65d32c, []int{0, 0, 0, 0}
+	return fileDescriptor_e702ec909b65d32c, []int{1, 0, 0, 0}
 }
 
 // Verdict defines the final step status. Eventually may have different
@@ -77,7 +77,58 @@
 }
 
 func (Result_Prejob_Step_Verdict) EnumDescriptor() ([]byte, []int) {
-	return fileDescriptor_e702ec909b65d32c, []int{0, 1, 0, 0}
+	return fileDescriptor_e702ec909b65d32c, []int{1, 1, 0, 0}
+}
+
+// AsyncResults contains references to locations where task results will
+// eventually be available.
+type AsyncResults struct {
+	// The URL at which a human will be able to view the task's logs.
+	LogsUrl string `protobuf:"bytes,1,opt,name=logs_url,json=logsUrl,proto3" json:"logs_url,omitempty"`
+	// The full google storage URL at which a task's full logs will be stored.
+	GsUrl                string   `protobuf:"bytes,2,opt,name=gs_url,json=gsUrl,proto3" json:"gs_url,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *AsyncResults) Reset()         { *m = AsyncResults{} }
+func (m *AsyncResults) String() string { return proto.CompactTextString(m) }
+func (*AsyncResults) ProtoMessage()    {}
+func (*AsyncResults) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e702ec909b65d32c, []int{0}
+}
+
+func (m *AsyncResults) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_AsyncResults.Unmarshal(m, b)
+}
+func (m *AsyncResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_AsyncResults.Marshal(b, m, deterministic)
+}
+func (m *AsyncResults) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_AsyncResults.Merge(m, src)
+}
+func (m *AsyncResults) XXX_Size() int {
+	return xxx_messageInfo_AsyncResults.Size(m)
+}
+func (m *AsyncResults) XXX_DiscardUnknown() {
+	xxx_messageInfo_AsyncResults.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_AsyncResults proto.InternalMessageInfo
+
+func (m *AsyncResults) GetLogsUrl() string {
+	if m != nil {
+		return m.LogsUrl
+	}
+	return ""
+}
+
+func (m *AsyncResults) GetGsUrl() string {
+	if m != nil {
+		return m.GsUrl
+	}
+	return ""
 }
 
 // Result defines the output format of skylab_test_runner.
@@ -87,12 +138,11 @@
 	//
 	// Types that are valid to be assigned to Harness:
 	//	*Result_AutotestResult
-	Harness isResult_Harness `protobuf_oneof:"harness"`
-	Prejob  *Result_Prejob   `protobuf:"bytes,2,opt,name=prejob,proto3" json:"prejob,omitempty"`
-	// Logdata is the location at which the task's full output will eventually
-	// be available.
-	LogData              *common.TaskLogData `protobuf:"bytes,3,opt,name=log_data,json=logData,proto3" json:"log_data,omitempty"`
+	Harness              isResult_Harness    `protobuf_oneof:"harness"`
+	Prejob               *Result_Prejob      `protobuf:"bytes,2,opt,name=prejob,proto3" json:"prejob,omitempty"`
+	LogData              *common.TaskLogData `protobuf:"bytes,3,opt,name=log_data,json=logData,proto3" json:"log_data,omitempty"` // Deprecated: Do not use.
 	StateUpdate          *Result_StateUpdate `protobuf:"bytes,4,opt,name=state_update,json=stateUpdate,proto3" json:"state_update,omitempty"`
+	AsyncResults         *AsyncResults       `protobuf:"bytes,5,opt,name=async_results,json=asyncResults,proto3" json:"async_results,omitempty"`
 	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
 	XXX_unrecognized     []byte              `json:"-"`
 	XXX_sizecache        int32               `json:"-"`
@@ -102,7 +152,7 @@
 func (m *Result) String() string { return proto.CompactTextString(m) }
 func (*Result) ProtoMessage()    {}
 func (*Result) Descriptor() ([]byte, []int) {
-	return fileDescriptor_e702ec909b65d32c, []int{0}
+	return fileDescriptor_e702ec909b65d32c, []int{1}
 }
 
 func (m *Result) XXX_Unmarshal(b []byte) error {
@@ -154,6 +204,7 @@
 	return nil
 }
 
+// Deprecated: Do not use.
 func (m *Result) GetLogData() *common.TaskLogData {
 	if m != nil {
 		return m.LogData
@@ -168,6 +219,13 @@
 	return nil
 }
 
+func (m *Result) GetAsyncResults() *AsyncResults {
+	if m != nil {
+		return m.AsyncResults
+	}
+	return nil
+}
+
 // XXX_OneofWrappers is for the internal use of the proto package.
 func (*Result) XXX_OneofWrappers() []interface{} {
 	return []interface{}{
@@ -192,7 +250,7 @@
 func (m *Result_Autotest) String() string { return proto.CompactTextString(m) }
 func (*Result_Autotest) ProtoMessage()    {}
 func (*Result_Autotest) Descriptor() ([]byte, []int) {
-	return fileDescriptor_e702ec909b65d32c, []int{0, 0}
+	return fileDescriptor_e702ec909b65d32c, []int{1, 0}
 }
 
 func (m *Result_Autotest) XXX_Unmarshal(b []byte) error {
@@ -254,7 +312,7 @@
 func (m *Result_Autotest_TestCase) String() string { return proto.CompactTextString(m) }
 func (*Result_Autotest_TestCase) ProtoMessage()    {}
 func (*Result_Autotest_TestCase) Descriptor() ([]byte, []int) {
-	return fileDescriptor_e702ec909b65d32c, []int{0, 0, 0}
+	return fileDescriptor_e702ec909b65d32c, []int{1, 0, 0}
 }
 
 func (m *Result_Autotest_TestCase) XXX_Unmarshal(b []byte) error {
@@ -309,7 +367,7 @@
 func (m *Result_Prejob) String() string { return proto.CompactTextString(m) }
 func (*Result_Prejob) ProtoMessage()    {}
 func (*Result_Prejob) Descriptor() ([]byte, []int) {
-	return fileDescriptor_e702ec909b65d32c, []int{0, 1}
+	return fileDescriptor_e702ec909b65d32c, []int{1, 1}
 }
 
 func (m *Result_Prejob) XXX_Unmarshal(b []byte) error {
@@ -356,7 +414,7 @@
 func (m *Result_Prejob_Step) String() string { return proto.CompactTextString(m) }
 func (*Result_Prejob_Step) ProtoMessage()    {}
 func (*Result_Prejob_Step) Descriptor() ([]byte, []int) {
-	return fileDescriptor_e702ec909b65d32c, []int{0, 1, 0}
+	return fileDescriptor_e702ec909b65d32c, []int{1, 1, 0}
 }
 
 func (m *Result_Prejob_Step) XXX_Unmarshal(b []byte) error {
@@ -412,7 +470,7 @@
 func (m *Result_StateUpdate) String() string { return proto.CompactTextString(m) }
 func (*Result_StateUpdate) ProtoMessage()    {}
 func (*Result_StateUpdate) Descriptor() ([]byte, []int) {
-	return fileDescriptor_e702ec909b65d32c, []int{0, 2}
+	return fileDescriptor_e702ec909b65d32c, []int{1, 2}
 }
 
 func (m *Result_StateUpdate) XXX_Unmarshal(b []byte) error {
@@ -443,6 +501,7 @@
 func init() {
 	proto.RegisterEnum("test_platform.skylab_test_runner.Result_Autotest_TestCase_Verdict", Result_Autotest_TestCase_Verdict_name, Result_Autotest_TestCase_Verdict_value)
 	proto.RegisterEnum("test_platform.skylab_test_runner.Result_Prejob_Step_Verdict", Result_Prejob_Step_Verdict_name, Result_Prejob_Step_Verdict_value)
+	proto.RegisterType((*AsyncResults)(nil), "test_platform.skylab_test_runner.AsyncResults")
 	proto.RegisterType((*Result)(nil), "test_platform.skylab_test_runner.Result")
 	proto.RegisterType((*Result_Autotest)(nil), "test_platform.skylab_test_runner.Result.Autotest")
 	proto.RegisterType((*Result_Autotest_TestCase)(nil), "test_platform.skylab_test_runner.Result.Autotest.TestCase")
@@ -456,40 +515,44 @@
 }
 
 var fileDescriptor_e702ec909b65d32c = []byte{
-	// 550 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x94, 0x4b, 0x6b, 0xdb, 0x40,
-	0x10, 0xc7, 0x23, 0xdb, 0xd8, 0xf2, 0x38, 0xa4, 0xee, 0xd2, 0x14, 0xe1, 0x42, 0xeb, 0xe6, 0x14,
-	0x0a, 0x5d, 0x51, 0xd7, 0x50, 0x28, 0xb9, 0xd8, 0xb1, 0xd3, 0xb8, 0x98, 0x10, 0xd6, 0x8f, 0xd2,
-	0x12, 0x10, 0x6b, 0x6b, 0x23, 0xbb, 0x96, 0xb4, 0x62, 0x1f, 0x05, 0x7f, 0xb4, 0x9e, 0xfb, 0x7d,
-	0x7a, 0xee, 0xad, 0xc5, 0x2b, 0x89, 0x3a, 0x69, 0x21, 0x8f, 0x53, 0x6e, 0xbb, 0x33, 0xf3, 0xff,
-	0x8d, 0xe6, 0xaf, 0x91, 0xe0, 0xb5, 0x62, 0x52, 0x79, 0x49, 0x48, 0xd5, 0x25, 0x17, 0x91, 0x2b,
-	0x57, 0xeb, 0x90, 0xce, 0x3c, 0x13, 0x14, 0x3a, 0x8e, 0x99, 0x70, 0x05, 0x93, 0x3a, 0x54, 0x38,
-	0x11, 0x5c, 0x71, 0xd4, 0xbc, 0x52, 0x8e, 0xff, 0x2d, 0x6f, 0xbc, 0xb8, 0x0a, 0x9c, 0xf3, 0x28,
-	0xe2, 0xb1, 0xab, 0xa8, 0x5c, 0xa5, 0x88, 0x83, 0xdf, 0x36, 0x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0x52, 0x76, 0x87, 0x5f, 0x3e, 0x06, 0x1c, 0x6f, 0x16, 0x32, 0x5a, 0xea, 0x08,
-	0x73, 0x11, 0xb8, 0xf9, 0x85, 0x4b, 0x77, 0x19, 0x5f, 0x0a, 0xea, 0x9a, 0x7f, 0x95, 0x1b, 0x70,
-	0xf7, 0xa6, 0xff, 0xe3, 0xac, 0x6c, 0x4a, 0xdf, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0x2e, 0x46,
-	0xd5, 0x01, 0x4a, 0x05, 0x00, 0x00,
+	// 609 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x94, 0xdf, 0x4f, 0x13, 0x41,
+	0x10, 0xc7, 0xb9, 0xb6, 0xf4, 0xc7, 0xb4, 0x62, 0xdd, 0x88, 0x39, 0x6b, 0xa2, 0xc8, 0x13, 0x31,
+	0x71, 0x2f, 0x56, 0x12, 0x13, 0xe3, 0x03, 0x2d, 0x05, 0xc1, 0x10, 0x42, 0xb6, 0x14, 0xa3, 0x21,
+	0xb9, 0x6c, 0xdb, 0xa5, 0x54, 0xee, 0x6e, 0x2f, 0xbb, 0x7b, 0x26, 0xfc, 0x69, 0x3e, 0xfb, 0x4f,
+	0xf8, 0x57, 0xf8, 0xec, 0xa3, 0xb9, 0xb9, 0xbd, 0x78, 0xa0, 0x49, 0x81, 0x27, 0xdf, 0x6e, 0x66,
+	0x76, 0x3e, 0x33, 0xfb, 0x9d, 0xb9, 0x85, 0x97, 0x46, 0x68, 0xe3, 0xc7, 0x01, 0x37, 0x67, 0x52,
+	0x85, 0x9e, 0xbe, 0xb8, 0x0c, 0xf8, 0xd8, 0x47, 0xa7, 0x4a, 0xa2, 0x48, 0x28, 0x4f, 0x09, 0x9d,
+	0x04, 0x86, 0xc6, 0x4a, 0x1a, 0x49, 0xd6, 0xae, 0x1c, 0xa7, 0x7f, 0x1f, 0xef, 0x3c, 0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f, 0x68, 0x97, 0x3a, 0xdf, 0x4b, 0x50, 0xcd, 0xd6, 0x97,
+	0xec, 0x41, 0x45, 0x1b, 0x11, 0xdb, 0x99, 0x6d, 0xde, 0x72, 0xfb, 0xe9, 0xd0, 0x88, 0x98, 0x21,
+	0xa1, 0xf3, 0xd3, 0x81, 0x4a, 0x6a, 0xfe, 0x53, 0xcb, 0x93, 0xeb, 0x5a, 0xbe, 0xbb, 0x4b, 0xa5,
+	0xff, 0x4b, 0xc5, 0x17, 0xd0, 0x2c, 0xfc, 0x72, 0xe4, 0x09, 0x34, 0xa6, 0x89, 0xf1, 0xf1, 0xc7,
+	0xb3, 0x77, 0xaf, 0x4f, 0x13, 0x83, 0x47, 0xfa, 0x0d, 0xa8, 0x9d, 0x73, 0x15, 0x09, 0xad, 0xfb,
+	0x07, 0x9f, 0x3f, 0xcc, 0x24, 0x4d, 0x17, 0x32, 0x9c, 0x27, 0x21, 0x95, 0x6a, 0xe6, 0xe5, 0x86,
+	0xd4, 0xde, 0x3c, 0x3a, 0x53, 0xdc, 0xc3, 0x67, 0xd4, 0x9b, 0x49, 0x6f, 0xd1, 0xd3, 0x3d, 0xae,
+	0xe2, 0xd1, 0xd7, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x3d, 0x92, 0xda, 0x9f, 0xe5, 0x05, 0x00,
+	0x00,
 }
diff --git a/src/test_platform/skylab_local_state/load.proto b/src/test_platform/skylab_local_state/load.proto
index 1741db2..9a67d4f 100644
--- a/src/test_platform/skylab_local_state/load.proto
+++ b/src/test_platform/skylab_local_state/load.proto
@@ -9,6 +9,7 @@
 option go_package = "go.chromium.org/chromiumos/infra/proto/go/test_platform/skylab_local_state";
 
 import "test_platform/skylab_local_state/common.proto";
+import "test_platform/skylab_test_runner/result.proto";
 
 // LoadRequest defines the input of `skylab_local_state load`.
 message LoadRequest {
@@ -31,4 +32,11 @@
 
   // The path to the newly created directory containing the host info file.
   string results_dir = 2;
+
+  // Paths to future results archives.
+  // These paths depend on the path of the local results directory, so they
+  // become well-defined the moment the local directory is created.
+  // `skylab_local_state load` does not perform the offload to the locations,
+  // the offload happens asynchronously after the task finishes.
+  test_platform.skylab_test_runner.AsyncResults async_results = 3;
 }
diff --git a/src/test_platform/skylab_test_runner/result.proto b/src/test_platform/skylab_test_runner/result.proto
index a6d0219..edc4e10 100644
--- a/src/test_platform/skylab_test_runner/result.proto
+++ b/src/test_platform/skylab_test_runner/result.proto
@@ -10,6 +10,16 @@
 
 option go_package = "go.chromium.org/chromiumos/infra/proto/go/test_platform/skylab_test_runner";
 
+// AsyncResults contains references to locations where task results will
+// eventually be available.
+message AsyncResults {
+  // The URL at which a human will be able to view the task's logs.
+  string logs_url = 1;
+
+  // The full google storage URL at which a task's full logs will be stored.
+  string gs_url = 2;
+}
+
 // Result defines the output format of skylab_test_runner.
 // It contains a summary of test results from a single Swarming task run.
 message Result {
@@ -82,9 +92,7 @@
 
   Prejob prejob = 2;
 
-  // Logdata is the location at which the task's full output will eventually
-  // be available.
-  test_platform.common.TaskLogData log_data = 3;
+  test_platform.common.TaskLogData log_data = 3 [deprecated = true];
 
   // StateUpdate contains Skylab state changes that resulted from the test run.
   // It is consumed by `skylab_local_state save`.
@@ -94,5 +102,7 @@
   }
 
   StateUpdate state_update = 4;
+
+  AsyncResults async_results = 5;
 }