feat(work): 支持任务隔离的附件收取和原会话文件交付 #1

Merged
ex_tianzy merged 2 commits from feat/work-files-20261110 into master 2026-11-10 17:17:07 +08:00
Showing only changes of commit 0ae008c0bc - Show all commits
+9 -1
View File
@@ -1,4 +1,4 @@
# Work materials / artifact delivery (candidate, not deployed)
# Work materials / artifact delivery (test deployment accepted)
Branch feat/work-files-20261110. Requires paired PC feat/client-foundation-20261110 and broker mode. Off by default. Existing users/keys/permissions are not migrated by this source change.
@@ -17,3 +17,11 @@ Platform adapters use GET im/v1/messages/{message_id}/resources/{file_key}?type=
Tests: synthetic platform events, encrypted routing over loopback WebSocket, signed PC requests to actual FastAPI routes, 3 Word/Excel/PDF materials, real local Office conversion, lost HTTP receipt recovery, one original-message file reply, cross-user/binding checks, conflicting IDs, quotas, body limits and invalid names. Mock platform acceptance does not prove real Work functionality.
Existing ECS parent confirmed by user: /home/cnooc/hainuo-broker-update-20261105-recovery, connector image hainuo-relay:broker-update-30585d6d28a18521, digest sha256:a32e13a92d2191ad0619a8f34e4703fd3e3ce8e44ca784f2b0d092cc49476b02. Before deployment verify router also matches parent, source branch availability and inactive tasks. prepare-update --enable-work-files creates a new plan with the flag; rollback keeps the parent's previous flag and existing key material. Do not run from the initial prepared plan or regenerate keyring. No production deployment performed.
## Live test acceptance, 2026-11-10
Candidate 79c15ee was activated on the test ECS using /home/cnooc/hainuo-broker-update-20261110-files, image hainuo-relay:broker-update-f6b1859625e89b5f. Connector/router reported healthy. This supersedes the historical pre-deployment status above. Future prepare-update operations must use this newly activated plan as parent; retain bindings and key material.
A real private Work task received Word, Excel and PDF materials, verified their hashes on the updated PC, and returned two generated files to the original conversation. Both remote file states were sent; text was replied. User screenshots confirmed both outputs opened in WPS: department totals 120 and 80, formula checks/chart consistent, and the report disclosed missing metadata and the 19.5 difference between source totals 200 and 219.5.
Acceptance is scoped to this task. Full installer release, network/restart faults, partial platform failures, and real multi-user/device acceptance remain pending. No master merge or new client installer is implied.