Appearance
Actors & use cases
Version: 1.1
Date: 2026-11-22
Status: Working baseline
Actors
| ID | Actor | Vai trò |
|---|---|---|
| ACT-001 | End user (qua App/Chat UI) | Chọn/xem file; không giữ credential cloud |
| ACT-002 | Application backend | Gọi FS API; lưu file_id |
| ACT-003 | Chat Integration / Gateway | Attach; membership proof wire OPEN (Q-BR-010) |
| ACT-004 | File Service | Metadata, bytes, authz; web API + worker jobs |
| ACT-005 | FS admin / ops | connections, config, reload jobs (who CRUD = OPEN Q-BR-060) |
| ACT-006 | Background jobs (trong FS) | Trên minap-file-worker: jobs orchestrator (DEC-017) đăng ký child cron — temp GC, migrate/purge, variant GC; Redis lock (DEC-016); tự implement (DEC-012), không orchestration OSS ngoài |
| ACT-007 | Object store | Bytes cloud (đích Put/Get); không sở hữu lịch migrate |
| ACT-008 | Future quota service | Đọc size metadata — ngoài FS |
Use cases
| ID | Tên | Priority |
|---|---|---|
| UC-001 | Upload temporary file | Must |
| UC-002 | Promote temp → durable file | Must |
| UC-003 | Download / stream original | Must |
| UC-004 | Request variant by size | Must |
| UC-005 | Update display name | Must |
| UC-006 | Soft-delete / hold | Must |
| UC-007 | Expire / purge temp | Must |
| UC-008 | Migrate local → cloud + purge local | Must |
| UC-009 | Manage storage connections | Should |
| UC-010 | Manage FS config | Should |
| UC-011 | Expose size metadata for quota | Should |
Working discovery: platform-file/.minap/discovery/file-service-docs/business-requirements.md.