A multi-label identity routing and cross-session context communication control method and system

By processing instant messaging events through a computer system, parsing multi-tag identities and data ranges, generating context tokens, and performing permission verification and minimum field projection, the problems of unclear permissions and sensitive data leakage in school scenarios are solved, and dynamic module assembly and audit support are realized.

CN123185170APending Publication Date: 2026-11-27ULANQAB RUIGUYUAN TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611352863.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-02
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In school settings, existing instant messaging technologies suffer from several problems, including: multiple identities for the same individual leading to overly broad permissions or routing errors; mixed contexts causing sensitive data leaks; increased business modules making hard-coded distribution difficult; and unclear permission boundaries.

Method used

The computer system receives instant messaging events, verifies identity and session information, parses multi-tag identities and data ranges, filters modules, generates context tokens, performs permission verification and minimum necessary field projection, and realizes dynamic module assembly and audit logs.

Benefits of technology

It implements verifiable routing decisions for multi-label identities, avoids the spread of sensitive data, supports dynamic module assembly and audit traceability, ensures clear permission boundaries, and reduces the risk of unauthorized calls.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185170A_ABST
    Figure CN123185170A_ABST
Patent Text Reader

Abstract

The application discloses a multi-label identity routing and cross-session context communication control method and system. The system receives an instant messaging event, obtains a multi-label identity and school, department, grade, class or student data range of a sender, analyzes a business intent and screens candidate modules from a module registry; the system jointly checks and resolves conflicts through hard permissions, source session strategies, target data ranges, module priorities and approval requirements; the system generates a context token binding a source session, a target object and a validity period for selected modules, executes module calling after trimming the source context into the minimum necessary fields, and performs summarization, desensitization or private delivery according to the target session strategy, and finally records the strategy version, the routing decision and the execution result. The scheme reduces the risk of multi-identity misrouting and cross-group context leakage, and supports module hot plugging and traceable audit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of instant messaging gateways, access control, context isolation, and distributed business module scheduling, and in particular to a method, system, device, and storage medium for performing cross-session routing and context control based on user multi-label identity, session origin, command semantics, and data sensitivity level. Background Technology

[0002] With the widespread application of instant messaging technology in the field of educational informatization, business communication in school settings is becoming increasingly complex. While some existing solutions attempt to address these issues through role mapping or message filtering, they all suffer from the following shortcomings: In a school setting, the same individual may simultaneously hold multiple roles such as a teacher, homeroom teacher, grade group member, or department manager. Single role mapping can easily lead to overly broad permissions or routing errors.

[0003] The context of instant messaging group chats is naturally mixed, and when forwarding information across groups, it is easy to leak the information of the source group members, students, or sensitive results to the target group.

[0004] As the number of business modules continues to increase, hard-coded command distribution becomes difficult to support module hot-swapping, priority conflicts, and unified auditing.

[0005] Simply hiding the button on the front end cannot create a mandatory permission boundary; the identity scope, module capabilities, and target data scope need to be jointly verified on the server side.

[0006] Therefore, a technical solution is needed that is executed by a computer system and has clear input / output, permission / state constraints, exception handling, and auditing basis. Summary of the Invention

[0007] The purpose of this invention is to provide a processing method implemented through a computer system to solve the problems of fragmented processing links, unclear permissions or context boundaries, untraceable anomalies, and the spread of sensitive data in the prior art.

[0008] To achieve the above objectives, the present invention adopts the following technical solution: S101: Receive instant messaging events and extract the sender identifier, source session identifier, message body, client type, and event timestamp.

[0009] S102: Verify event signature and timeliness, and perform idempotent rejection for duplicate events.

[0010] S103: Load the multi-label identity set and data scope authorization set based on the sender identifier.

[0011] S104: Parse message commands, business intents, target objects, and sensitivity levels to filter candidate modules in the module registry.

[0012] S105: Perform an intersection operation on the permissions required by the candidate module with the identity label, data range, and source session policy.

[0013] S106: When multiple available modules exist, conflicts are resolved based on mandatory security rules, module priority, approval requirements, and context similarity.

[0014] S107: Generate a context token bound to the source session and the target module, project only the minimum necessary fields, and set the expiration date and number of uses.

[0015] S108: Call the target module and summarize, anonymize, or convert the output to private delivery according to the target session policy.

[0016] S109: Write an audit log containing a summary of routing inputs, policy version, decision result, and exception type.

[0017] In some implementations, the method is completed collaboratively by two or more of the following: a gateway service, a business processing service, a persistence service, a client, or an edge node; the services communicate with each other through an interface contract with identity scope, version, and idempotency information.

[0018] In some implementations, the system uses minimum necessary field projection for sensitive data, performs server-side authorization for high-risk operations, and calculates summaries for key inputs, outputs, and state changes. Beneficial effects

[0019] (1) Combine multi-label identity, school / department / grade / class / student data range and module permissions into verifiable routing decisions to reduce the probability of unauthorized calls.

[0020] (2) Avoid carrying irrelevant context in cross-group communication by using source context fingerprint, target context token and minimum necessary field projection.

[0021] (3) Dynamic assembly of functional modules is achieved through module registry, priority and conflict resolution rules.

[0022] (4) Audit events are generated for allowed, denied, downgraded and pending routes, supporting traceability and policy optimization. Attached Figure Description

[0023] Figure 1 This is the overall structure of the multi-label identity routing system of the present invention; Figure 2 This is a flowchart illustrating the cross-group context minimization process of the present invention. Figure 3This is a flowchart of the conflict resolution process for multiple candidate modules in this invention. Detailed Implementation

[0024] The present invention will be further described below with reference to the accompanying drawings and embodiments. The embodiments are used to illustrate the technical solutions and do not limit the scope of protection of the claims.

[0025] I. System Composition Event access unit: Receives sender identifier, session identifier, message content, client type and timestamp, and forms an immutable event digest.

[0026] Identity tag parsing unit: Parses multiple role tags and school, department, grade, class, and student range from session identity and authorization scope.

[0027] Semantic and module matching unit: Parses commands, business intents, and data sensitivity levels to filter candidate modules from the module registry.

[0028] Conflict resolution unit: Candidate modules are sorted according to hard permissions, data scope, module priority, approval rules for principal and deputy heads, and contextual risks.

[0029] Context control unit: Generates source context fingerprints and target context tokens, and performs field trimming, desensitization, and expiration control on cross-session messages.

[0030] Execution and Audit Unit: Executes permitted module calls and records the decision basis, target object, risk level, and result summary.

[0031] II. Processing Flow In S101, instant messaging events are received, and the sender identifier, source session identifier, message body, client type, and event timestamp are extracted.

[0032] In S102, the event signature and timeliness are verified, and idempotent rejection is performed on duplicate events.

[0033] In S103, the multi-label identity set and the data scope authorization set are loaded based on the sender identifier.

[0034] In S104, message commands, business intents, target objects, and sensitivity levels are parsed to filter candidate modules in the module registry.

[0035] In S105, the required permissions of the candidate module are intersected with the identity label, data range, and source session policy.

[0036] In S106, when multiple available modules exist, conflicts are resolved based on mandatory security rules, module priority, approval requirements, and context similarity.

[0037] In S107, a context token bound to the source session and the target module is generated, projecting only the minimum necessary fields, and setting the validity period and number of uses.

[0038] In S108, the target module is called and the output is summarized, de-identified, or converted to private delivery according to the target session policy.

[0039] In S109, write an audit log containing a summary of the routing input, policy version, decision result, and exception type.

[0040] III. Data and Security Controls Each business object has a stable object identifier and version number; each state change saves the operator, action, reason, time and result summary.

[0041] For requests generated by network retries, client recovery, or queue replay, use idempotent keys to identify the operations that have been performed.

[0042] For data containing information about minors, generate a minimum necessary view based on identity and data scope, and deny access to data without binding relationships or beyond the scope.

[0043] The model or automatic rule output has confidence level, basis, and version; results that require manual review are kept in draft state until confirmation.

[0044] The exception log only saves the error type, object summary, and necessary diagnostic information, and does not save irrelevant sensitive original text.

[0045] IV. Examples

[0046] Example 1: Class teacher also serves as subject teacher If a user has both the "Teacher" and "Homeroom" tags, the system will select different data ranges depending on whether the command object is a student in the user's class.

[0047] When creating assignments, the scope of the teaching relationship should be used; when viewing class growth evaluations, the scope of the homeroom teacher's class should be used; cross-class requests are rejected by the server.

[0048] Example 2: Cross-session hierarchical reporting The structured summary in the class group is projected into the grade group conversation, containing only the record number, status, number of missing items, and responsible person, without carrying the original sensitive text.

[0049] After the grade group approves the application, a new target context token is generated, and the teaching affairs office only sees the fields required for its responsibilities.

[0050] Example 3: Module Hot-Swapping The new module registration includes module identifier, command set, applicable tags, permission declaration, and priority, without requiring modification of the gateway master route.

[0051] When command conflicts occur, hard permissions are checked first, and then the special module is selected according to the rule that it takes precedence over the general module.

[0052] V. Alternative Implementation Methods The signature algorithm can be HMAC, RSA, elliptic curve signature, or an equivalent integrity verification mechanism provided by a key management service.

[0053] Persistent storage can be a relational database, a document database, a key-value store, or a combination thereof, provided that state, versioning, and idempotency constraints are maintained.

[0054] The automatic processing model can be a local rule model, a lightweight edge model, a cloud-based multimodal model, or a third-party provider adapted via an interface.

[0055] The client can be a web application, a mobile application, a desktop application, an instant messaging robot, or a dedicated campus terminal, all of which execute the same server-side identity contract.

[0056] All equivalent substitutions or modifications made by those skilled in the art without departing from the concept of the present invention shall be based on the technical features defined in the claims.

Claims

1. A method for multi-label identity routing and cross-session context communication control, characterized in that, include: Receive instant messaging events and extract the sender identifier, source session identifier, message content, and event time; Based on the sender identifier, obtain an identity set containing at least two identity tags or one identity tag and at least one data range tag; parse the message content to obtain the business intent, target object, and data sensitivity level, and obtain candidate business modules from the module registry; perform joint verification of the permission statement of each candidate business module with the identity set, source session policy, and data range of the target object to obtain an executable candidate set; when the executable candidate set contains multiple candidate business modules, perform conflict resolution according to mandatory security rules, module priority, and approval requirements; generate a context token for the selected business module that is bound to the source session, target object, and validity period, and trim the source context to the minimum necessary field set based on the context token; Invoke the selected business module and perform summary, anonymization, or private delivery of the module output according to the target session policy; record audit events containing policy version, routing decision, and execution result summary.

2. The method according to claim 1, characterized in that, The data range labels include at least one of the following: school identifier, department identifier, grade identifier, class identifier, and student identifier.

3. The method according to claim 1, characterized in that, The joint verification first performs hard permission verification that cannot be overridden by module priority, and then performs identity tag matching and target object range matching.

4. The method according to claim 1, characterized in that, The source session policy includes at least the fields that are allowed to be exposed, the fields that are prohibited from being forwarded, the allowed target session types, and the maximum context validity period.

5. The method according to claim 1, characterized in that, The context token contains a source context digest, a target module identifier, a target object digest, a policy version, an expiration time, and a number of uses, but does not contain the complete message history of the source session.

6. The method according to claim 1, characterized in that, When the data sensitivity level reaches a preset threshold, the group chat output will be replaced with a summary that does not contain sensitive fields, and the detailed results will be sent through a private channel bound to the user's identity.

7. The method according to claim 1, characterized in that, The conflict resolution generates a deterministic ranking based on at least two of the following: dedicated module priority, identity tag exclusivity, approval lock, and context similarity. When a candidate business module requires high-risk approval, a pending approval route task is generated instead of directly performing a write operation, and the approval result is associated with the original event summary. Perform idempotent returns for duplicate instant messaging event identifiers or identical event summaries to prevent the same business write operation from being executed repeatedly; The module registry should at least record the module identifier, command set, applicable identity label, required permissions, priority, start / stop status, and output sensitivity level.

8. A multi-tag identity routing and cross-session context communication control system, characterized in that, It includes an event access unit, an identity tag parsing unit, a semantic and module matching unit, a conflict resolution unit, a context control unit, and an execution and auditing unit, each of which is configured to execute the method described in any one of claims 1 to 10.

9. An electronic device comprising a processor and a memory, wherein the memory stores a program that, when executed by the processor, implements the method of any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method of any one of claims 1 to 7.