Skip to content

Requirements and Acceptance ​

R entries = requirements and acceptance criteria; A entries = phase-one acceptance standards. The task-level breakdown (T0–T6, at acceptable grain) is in the repository root's todo.md (outside the main line there is also the R23–R27 appended batch).

The traceability principle (iron rule) ​

The only purpose of connecting to the server is traceability. The following features are permanently excluded — not scheduled, no interface reserved, not offered as a configurable option:

  • Secret chat / burn-after-reading: no conversation form of "automatically disappears after sending" exists;
  • Recall erasing the archive: recall only affects the client display; the server keeps the original text and records the recall event (who, when, which message was recalled);
  • One-sided deletion of the archive on the terminal side: clearing the local cache does not affect the server records; the UI distinguishes「本地缓存」from「云端归档」;
  • A traceability switch for users: archiving policy is only issued by the administration side, per department.

Derived rules: archiving is judged in units of messages (not in units of sessions); the only traceability gap of cross-state sessions is explicitly exposed with the「未归档」label and cannot be dismissed; media content is not stored to disk, but the metadata recording "this communication happened" must be archived.

Requirements list (R1–R19) ​

IDRequirementPriorityAcceptance criteriaPhase
R1Usable without login, no configuration neededRequiredAfter installation, with no address filled in and no registration, terminals on the same segment are automatically discovered and messages can be sent and received1
R2Direct-mode messages do not pass through the serverRequiredPeer-to-peer transfer; the server keeps no records at all; verifiable by packet capture1
R3Centralized retention of chat records after loginRequiredCollaboration-mode messages are uniformly stored on the server; administrators can search by person / time / keyword; terminal deletion does not affect retention; no feature exists that lets the sender eliminate archived content1
R4Login on different machines and multi-device controlRequiredAn account can log in on different computers; on the desktop only one instance of the same account is online — a repeated login kicks out the previous one and it receives a notice; each login records the device type and identifier1
R5Both states integrated into one clientRequiredA single installer; not logged in = direct mode, switching to collaboration mode after login; switching requires no restart and loses no local history1
R6LAN file sharingRequiredDirectory-level sharing with permission differentiation; file bytes do not pass over the public network1
R7Archive scope identifiableRequiredCross-state sessions are clearly labeled「未归档」in the UI and the label cannot be dismissed; the archive start point is traceable1
R8Domestic operating systemsImportantAt least cover UnionTech UOS and Kylin Linux, with messaging / files / UI display all working normally (currently only verified in an Ubuntu 24.04 sandbox; real-device testing on UOS / Kylin still to be added — the on-site list is in 平台适配)1
R9Cross-segment and multi-region, large filesImportantCross-segment and cross-region communication is carried by the collaboration mode; direct mode is limited to this segment; whole-directory sending and resumable transfer supported1
R10Functional scope references 企业微信ImportantAccepted item by item against the phase-two list; no requirement to achieve it all at once2+
R11Intranet AI capabilitiesPlannedIn-group assistant, meeting minutes, requirement organization; model deployed on the intranet; archived data is only sent to local models3
R12Server high availabilityImportantDirect mode can still communicate when the server fails; a backup and recovery plan exists1
R13Communication experienceImportantBuilt-in screenshot and annotation sent directly; custom emoji pack import; frequent contacts pinned with quick lookup1
R14Organizational structure with reporting relations and visibilityImportantMember profiles show the direct superior; directory visibility scope set per department; sensitive fields can be hidden1
R15Office location mapPlannedFloor plans locate workstations; searching a name highlights it on the map; visibility limited by campus floor2
R16Remote assistancePlannedRequest remote view / control; the controlled party grants explicit authorization, the process stays continuously visible, the whole session is traced; default is IT operations only (current media goes over the file-surface HTTP relay; the WebRTC media foundation is not implemented and deferred)2
R17First mobile connection must initialize the server address (appended)RequiredOn first mobile launch the initialization wizard is entered; the first step is domain / server address setup, and only after filling it in and passing the connectivity check can the main interface be entered; before initialization no chat-capable interface appears1
R18No anonymous chat on mobile (appended)RequiredDirect mode / login-free capability exists only on desktop; mobile is entirely collaboration mode; no「免登录体验」/「附近设备直连」-style entry appears in the mobile UI1
R19Client theme switching (appended)ImportantLight / dark dual themes: follow the system + manual switching in settings, the choice is persisted; colors are tokenized with a multi-theme extension slot reserved, brand orange as the primary color1 (after main line)

Phase-one acceptance standards (A1–A23) ​

IDAcceptance itemStandard
A1Usable without login or configurationOn a new terminal, after installation with no address filled in and no account entered, terminals on the same segment can be discovered and a conversation started
A2Direct mode does not pass through the serverPacket capture verifies that direct-mode messages generate no server traffic; the server keeps no related records at all
A3Mode switchingAfter entering the server address and logging in, switching to collaboration mode works normally without a restart, and local history is preserved and merged normally
A4Multi-device login controlAfter the same account logs in on a second computer, the first is taken offline and receives a notice; desktop and mobile can be online simultaneously
A5Login record completenessThe console can query an account's full login records, including device type, device name, time, and source
A6Archive completenessAfter a collaboration-mode session's local records are deleted on the terminal, or after the sender recalls a message, the administrator can still search out the original message content; the recall action itself (who, when, which message was recalled) is also queryable
A7Cross-state session labelingSessions with not-logged-in terminals show the「未归档」marker, and the marker cannot be dismissed
A8Archive start accuracyFor a session that turned from cross-state into collaboration mode, the archive start point shown in the console matches the actual login time
A9Policy switches take effectAfter turning off「允许与未登录设备通信」, cross-state sessions cannot be established; after turning off「允许免登录使用」, a not-logged-in client cannot enter the main interface
A10File transfer and sharingFile and folder transfer completes, resumable transfer works; shared directories are accessed per permissions and over-privileged access is denied
A11Server degradation behaviorWhen the server is unavailable, the client shows a clear notice and falls back to direct mode; same-segment messaging and file transfer remain usable
A12Domestic system coverageOn UnionTech UOS and Kylin terminals, messaging, file transfer, and UI display all work normally (real-device testing still to be added — currently only verified in an Ubuntu 24.04 sandbox; the on-site list is in 平台适配)
A13Cross-segment communicationCollaboration-mode messages between terminals on different VLANs send and receive normally; direct mode is limited to this segment with no cross-segment requirement
A14Server recoveryA database recovery drill completed per the plan, verifying that the process is executable and the data is complete
A15Multi-region accessRemote regions access the same server over dedicated lines, with login, messaging, organizational structure, and history retrieval all working normally
A16Disconnection archiving ruleWhile the server is unreachable, both parties' collaboration-mode messages are held locally; after the connection is restored they are re-sent with de-duplication by message identifier, leaving the archive with no duplicates and no gaps
A17Screenshot and annotationThe screenshot area is correct in multi-monitor and high-DPI environments; doodle, arrow, and mosaic all work; after confirming, sent directly into the conversation
A18Emoji and frequent contactsA custom emoji pack can be imported and sent in a conversation; frequent contacts are fully preserved after logging in on a different machine
A19Reporting relationsThe direct superior is viewable in member profiles; the superior chain can be traversed level by level upward; bulk import takes effect and can validate error entries
A20Directory visibilityHidden departments and members do not appear in the directory and cannot be searched; restricted departments can only see their own department's directory
A21Media foundation availabilityScreen capture for the screenshot feature works on target terminals (Windows, UOS, Kylin), with a clear degradation notice for unsupported environments; verification that a WebRTC connection can be established is deferred (the WebRTC media foundation is not introduced; current remote-assistance media goes over the server-side HTTP relay, see R16)
A22Component license listA complete third-party component list is provided at delivery and verified to contain no strongly infectious license components such as AGPL / SSPL; exceptions remain deployed as separate processes with verification records kept (2026-10-13 re-verification: nine components in the vcpkg manifest — asio / protobuf / nlohmann-json / sqlite3 / openssl / aws-sdk-cpp:s3 / qtbase / drogon / crashpad, of which drogon is still to be registered in third_party/组件清单.md; verification records are in 合规与命名一致性)
A23System identifier consistencyThe installer name, Windows service name, database and log prefixes, and intranet domain all use the Memex identity

The item-by-item mapping of tasks to acceptance is in the「验收」line of every task in todo.md.

Intranet office IM · Dual-engine clients · Traceability first