feat(work): recover text and attachment delivery independently
This commit is contained in:
@@ -10,6 +10,12 @@ All material/output bytes are AES-GCM encrypted using the existing server keyrin
|
||||
|
||||
Output stages: ready -> uploading -> uploaded -> sending -> sent. Failure after a mutating platform call is unknown and never automatically replayed. Client lost upload receipt first queries original file state before re-upload; ECS received is not platform sent, and sent is not user read. Stale uploading/sending states become unknown. Uploading to Work and replying to the original source_message_id are separate durable steps.
|
||||
|
||||
## Independent text and attachment recovery
|
||||
|
||||
Text and attachments have separate connector sweep loops. After restart only text in `ready` and attachments in `ready` or `uploaded` are processed. A completed send is skipped; an interrupted platform call is retained as `unknown`. A local integrity failure is `failed` because no platform call was made. Expiry purges encrypted content without turning an unknown platform send into a confirmed failure.
|
||||
|
||||
`POST /work/v2/tasks/state` includes a `delivery` projection for current, recoverable tasks. `POST /work/v2/tasks/delivery` is a read-only device-signed lookup of the original task, with access for the same current binding for up to seven days after the execution deadline when a durable delivery record exists. It does not extend the deadline or admit any new execution. The projection contains the text outbox state and each known attachment's ID, name, size, hash and state, never file keys, plaintext or platform credentials. It only reports records received by the relay. `platform_sent` indicates a platform acknowledgment, not that the recipient opened the message. Task cards surface file exceptions only when the relay has an actual failed or indeterminate attachment.
|
||||
|
||||
Deployment defaults (configurable, not measured product commitments): 10MiB/file, 20/task, 24h retention, 512MiB/owner and 2GiB/global encrypted payload allowance. Encryption/base64 and DB backups require extra capacity. Verify corporate reverse proxy limits too. Formatted documents are not executed; macro/embedded/external active-content handling remains PC policy.
|
||||
|
||||
Platform adapters use GET im/v1/messages/{message_id}/resources/{file_key}?type=file; POST im/v1/files multipart; POST im/v1/messages/{message_id}/reply file content. Scope and private-platform compatibility must be checked against internal docs and real synthetic test files. These are bot message resource APIs, distinct from user-token docx media download.
|
||||
|
||||
Reference in New Issue
Block a user