Skip to content

Commit 13bf2a3

Browse files
Merge remote-tracking branch 'origin/main' into stlc/promote-next
2 parents de3c275 + 7162cbb commit 13bf2a3

5 files changed

Lines changed: 59 additions & 15 deletions

File tree

src/kernel/types/invocation_create_response.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,18 @@ class InvocationCreateResponse(BaseModel):
1919
"""Status of the invocation"""
2020

2121
output: Optional[str] = None
22-
"""The return value of the action that was invoked, rendered as a JSON string.
22+
"""The action result or detailed failure output.
2323
24-
This could be: string, number, boolean, array, object, or null.
24+
Often a JSON-encoded value, but failures may contain plain text. May contain
25+
sensitive application data.
2526
"""
2627

2728
status_reason: Optional[str] = None
28-
"""Status reason"""
29+
"""
30+
A nonempty, customer-safe summary of the recorded failure output, always present
31+
when status is failed and omitted otherwise. Recognized messages receive a
32+
specific summary; other failures receive a generic summary. Message matching
33+
does not establish whether the failure originated in the platform or action
34+
code. Does not include raw action output or internal error details.
35+
Human-readable text, not a stable identifier for retry logic.
36+
"""

src/kernel/types/invocation_list_response.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ class InvocationListResponse(BaseModel):
3535
"""
3636

3737
output: Optional[str] = None
38-
"""Output produced by the action, rendered as a JSON string.
38+
"""The action result or detailed failure output.
3939
40-
This could be: string, number, boolean, array, object, or null.
40+
Often a JSON-encoded value, but failures may contain plain text. May contain
41+
sensitive application data.
4142
"""
4243

4344
payload: Optional[str] = None
@@ -47,4 +48,12 @@ class InvocationListResponse(BaseModel):
4748
"""
4849

4950
status_reason: Optional[str] = None
50-
"""Status reason"""
51+
"""
52+
A nonempty, customer-safe summary of the recorded failure output, always present
53+
when status is failed and omitted otherwise, including in the first failed
54+
invocation_state event. Recognized messages receive a specific summary; other
55+
failures receive a generic summary. Message matching does not establish whether
56+
the failure originated in the platform or action code. Does not include raw
57+
action output or internal error details. Available for historical invocations as
58+
well. Human-readable text, not a stable identifier for retry logic.
59+
"""

src/kernel/types/invocation_retrieve_response.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ class InvocationRetrieveResponse(BaseModel):
3535
"""
3636

3737
output: Optional[str] = None
38-
"""Output produced by the action, rendered as a JSON string.
38+
"""The action result or detailed failure output.
3939
40-
This could be: string, number, boolean, array, object, or null.
40+
Often a JSON-encoded value, but failures may contain plain text. May contain
41+
sensitive application data.
4142
"""
4243

4344
payload: Optional[str] = None
@@ -47,4 +48,12 @@ class InvocationRetrieveResponse(BaseModel):
4748
"""
4849

4950
status_reason: Optional[str] = None
50-
"""Status reason"""
51+
"""
52+
A nonempty, customer-safe summary of the recorded failure output, always present
53+
when status is failed and omitted otherwise, including in the first failed
54+
invocation_state event. Recognized messages receive a specific summary; other
55+
failures receive a generic summary. Message matching does not establish whether
56+
the failure originated in the platform or action code. Does not include raw
57+
action output or internal error details. Available for historical invocations as
58+
well. Human-readable text, not a stable identifier for retry logic.
59+
"""

src/kernel/types/invocation_state_event.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ class Invocation(BaseModel):
3535
"""
3636

3737
output: Optional[str] = None
38-
"""Output produced by the action, rendered as a JSON string.
38+
"""The action result or detailed failure output.
3939
40-
This could be: string, number, boolean, array, object, or null.
40+
Often a JSON-encoded value, but failures may contain plain text. May contain
41+
sensitive application data.
4142
"""
4243

4344
payload: Optional[str] = None
@@ -47,7 +48,15 @@ class Invocation(BaseModel):
4748
"""
4849

4950
status_reason: Optional[str] = None
50-
"""Status reason"""
51+
"""
52+
A nonempty, customer-safe summary of the recorded failure output, always present
53+
when status is failed and omitted otherwise, including in the first failed
54+
invocation_state event. Recognized messages receive a specific summary; other
55+
failures receive a generic summary. Message matching does not establish whether
56+
the failure originated in the platform or action code. Does not include raw
57+
action output or internal error details. Available for historical invocations as
58+
well. Human-readable text, not a stable identifier for retry logic.
59+
"""
5160

5261

5362
class InvocationStateEvent(BaseModel):

src/kernel/types/invocation_update_response.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ class InvocationUpdateResponse(BaseModel):
3535
"""
3636

3737
output: Optional[str] = None
38-
"""Output produced by the action, rendered as a JSON string.
38+
"""The action result or detailed failure output.
3939
40-
This could be: string, number, boolean, array, object, or null.
40+
Often a JSON-encoded value, but failures may contain plain text. May contain
41+
sensitive application data.
4142
"""
4243

4344
payload: Optional[str] = None
@@ -47,4 +48,12 @@ class InvocationUpdateResponse(BaseModel):
4748
"""
4849

4950
status_reason: Optional[str] = None
50-
"""Status reason"""
51+
"""
52+
A nonempty, customer-safe summary of the recorded failure output, always present
53+
when status is failed and omitted otherwise, including in the first failed
54+
invocation_state event. Recognized messages receive a specific summary; other
55+
failures receive a generic summary. Message matching does not establish whether
56+
the failure originated in the platform or action code. Does not include raw
57+
action output or internal error details. Available for historical invocations as
58+
well. Human-readable text, not a stable identifier for retry logic.
59+
"""

0 commit comments

Comments
 (0)