Two-stage environmental fingerprint health check skill package routing and fallback method and apparatus

CN123011361APending Publication Date: 2026-10-30XUNKANG INFORMATION TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611497134.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-24
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

[0006]本发明所要解决的技术问题是:建立彼此隔离的执行前路由依据和执行后核验证据,使生产版本的初始选择仅由执行前可确定字段正向决定,并对允许输入域内全部允许输入组合进行机器校验,证明路由准入条件不会将可能产生不满足执行后条件的输入路由至候选版本;同时,将处理程序版本连同依赖组件、生效配置、路由准入条件、执行后条件及有效时间绑定为组合版本,在发生越界时排除异常版本并从满足当前输入环境及运行环境要求的版本中确定唯一回退版本

Benefits of technology

[0059]由于采用了预执行路由指纹与执行后证据指纹的两阶段隔离机制,使得执行后才能确定的字段不能反向影响生产版本的初始选择,解决了候选版本利用自身输出证明适用性所产生的路由反馈问题;由于对允许输入域内全部允许输入组合进行约束求解器校验并在校验未通过时转人工处理,使得版本准入范围能够在发布前被保守收紧,降低有限历史样本不能覆盖生产输入域所产生的误路由风险;由于将版本连同依赖组件、生效配置、路由准入条件、执行后条件及有效时间共同冻结为组合版本并在任一冻结对象变化时使校验结果失效,使得验证对象、生产对象与回退对象保持一致,减少恢复失效配置或不兼容接口的情况。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123011361A_ABST
    Figure CN123011361A_ABST
Patent Text Reader

Abstract

The present application relates to a kind of two-stage environmental fingerprint health examination skill package routing and back-off method and device, comprising: by the execution before determining field calculation summary value obtains pre-execution routing fingerprint;Check allows input domain to meet each input combination after execution condition, together with dependent component, effective configuration, routing access condition, after execution condition and effective time freezing as combination version by the version that passes through check;With pre-execution routing fingerprint matching combination version routing access condition, according to preset sorting rule take the first one as production version and execute, result field is added to pre-execution routing fingerprint and after execution evidence fingerprint;According to its determination production version does not satisfy after execution condition, atomic comparison updates and switches to back-off version.The present application can isolate execution before routing basis and after execution evidence, avoid routing feedback, and improve the consistency and auditability of version release and back-off process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of health checkup data processing, computer software version management, and artificial intelligence system control technology, and in particular to a method and apparatus for routing and rolling back a two-stage environmental fingerprint health checkup skill package. Background Technology

[0002] In health checkup data processing scenarios, the applicable environment for processing programs is typically determined by a combination of environmental fields, including institution identifier, source system version, device identifier or firmware version, testing method, checkup item code, examination protocol identifier, original institution, reference configuration version, applicable population conditions, and data generation time. With source system upgrades, device replacements, reference configuration updates, and the introduction of intelligent processing components, the same checkup item may correspond to multiple code versions, component dependency combinations, and audit configurations. Therefore, it is necessary to determine the program version that matches the current data environment before each processing step.

[0003] Existing technologies typically merge different environmental fields into a single static label and select the processing version based on the label matching results, or verify the applicability of candidate versions only based on limited historical samples. Some environmental fields can be obtained from source metadata or independent audit configurations before the processing program is executed, while fields such as actual standard units, the actual reference range version used, and reagent batches can only be determined after completing field semantic mapping, unit conversion, and reference range selection. If these two types of fields are not distinguished, the candidate version may be invoked first, and its applicability may be proven by the post-execution fields generated by the candidate version itself, thus forming a feedback relationship where the execution result inversely affects the initial routing decision.

[0004] Existing solutions typically only treat the handler code version as a version management object, without freezing dependent components, currently effective configurations, pre-execution routing conditions, post-execution environment conditions, validity period, and verification evidence into a unified object. When production anomalies occur, the system often directly selects the old version based on parent version relationships or version release time. However, the parent version may be bound to expired reference configurations, unit conversion configurations, or interface contracts. Simply restoring the old code does not necessarily restore a processing state compatible with the current input environment.

[0005] Therefore, the existing technology has at least the following technical problems: First, the fields that can be determined before execution and the fields that can only be confirmed after execution are not effectively isolated. Limited historical samples make it difficult to prove that the candidate version meets the post-execution conditions for all allowed input combinations in the allowed input domain, which can easily lead to routing feedback and erroneous calls outside the authorization domain. Second, the version identity, verification object and rollback object lack unified binding, and the parent version relationship and rollback qualification are not distinguished, making it difficult to determine a unique, compatible and auditable rollback version when abnormal switching occurs. Summary of the Invention

[0006] The technical problem to be solved by this invention is to establish mutually isolated pre-execution routing criteria and post-execution verification criteria, so that the initial selection of the production version is determined only by the pre-execution determinable fields, and to perform machine verification on all allowed input combinations within the allowed input fields to prove that the routing admission conditions will not route inputs that may not meet the post-execution conditions to the candidate version; at the same time, the processor version, together with dependent components, effective configuration, routing admission conditions, post-execution conditions and validity period, are bound as a combined version, and when an out-of-bounds error occurs, abnormal versions are excluded and a unique fallback version is determined from the versions that meet the requirements of the current input environment and the operating environment.

[0007] To address the aforementioned technical problems, this invention provides a two-stage environmental fingerprint-based health checkup skill package routing and rollback method, applied to a health checkup data processing system. The environmental fingerprint is a comparable digest formed by normalizing and encoding several environmental fields in a fixed order. The skill package is a versionable processing program for processing health checkup data. The method includes:

[0008] The pre-execution route fingerprint is obtained by concatenating the pre-execution fields whose values ​​can be determined before the processing program is executed and calculating the summary value.

[0009] The range of values ​​formed by the inputs that the processing program is allowed to receive is pre-defined as the allowed input domain. For each allowed input combination within the allowed input domain, the field values ​​generated after the version of the processing program is executed are verified to meet the preset post-execution conditions. Only when all allowed input combinations are satisfied are the verified version, along with its dependent components, effective configuration, routing admission conditions, post-execution conditions, and validity period, frozen as a combined version. If any frozen object changes, the verification result of the combined version becomes invalid.

[0010] The routing admission conditions of each of the combined versions are matched with the pre-execution route fingerprint. When multiple matches are found, the version with the highest ranking is selected as the production version and executed according to a preset sorting rule. The result field generated after execution is appended to the pre-execution route fingerprint to obtain the execution evidence fingerprint.

[0011] Based on the post-execution evidence fingerprint, determine whether the production version meets the post-execution conditions. If it does not meet the conditions, exclude the production version. Based on the physical examination data to be processed and the current operating environment, re-determine the rollback candidates that meet the preset conditions for compatibility with the current operating environment in each of the combined versions. After excluding the production version, take the version with the highest sorting order according to the preset rollback sorting rules as the rollback version. Use atomic comparison update to switch the route to the rollback version.

[0012] Furthermore, the step of concatenating and calculating a digest value from pre-execution fields whose values ​​can be determined before executing the processing program to obtain a pre-execution route fingerprint includes:

[0013] The pre-execution fields are set to include the organization identifier, equipment identifier or firmware version, detection method, physical examination item code or examination protocol identifier, and the version identifier of the reference configuration that has been reviewed and is currently in effect. The actual standard unit, the actual selected reference range version, and the reagent batch are set as fields whose values ​​cannot be determined before the execution of the processing procedure and are not included in the pre-execution fields.

[0014] If any of the fields in the pre-execution field, such as the physical examination item code or examination protocol identifier, the device identifier or firmware version, or the detection method, are missing, no value will be assumed for the missing field, and the corresponding physical examination data to be processed will be transferred to manual processing.

[0015] For the physical examination data to be processed that has not been transferred to manual processing, the pre-execution fields are sorted according to a preset fixed field pattern, and the sorted pre-execution fields are concatenated into a descriptive string according to a preset normalized format. The descriptive value is calculated on the descriptive string to obtain the pre-execution route fingerprint.

[0016] Furthermore, the preset range of values ​​formed by the inputs that the processing program is allowed to receive is the allowed input field. The allowed input field is a machine-determinable input field consisting of the input field pattern, institutional authorization scope, medical examination items, equipment identification or testing method identification, applicable population conditions, and data generation time, including:

[0017] The routing admission conditions for the combined version are constructed based on the pre-execution fields. The routing admission conditions consist only of the pre-execution fields and do not include fields generated after the execution of the processing program. Furthermore, it is prohibited to route records that do not meet the preset post-execution conditions to the combined version, so that the pre-execution routing fingerprint can be matched with the routing admission conditions before the processing program is executed.

[0018] Each allowed pre-execution route fingerprint within the allowed input domain and all input values ​​that match the allowed pre-execution route fingerprint are determined as the allowed input combination;

[0019] Each of the aforementioned combined versions is bound to a preset judgment rule for determining whether the physical examination data to be processed belongs to the allowed input field.

[0020] Furthermore, for each allowed input combination within the allowed input field, verifying that the field values ​​generated after the execution of the processing program version meet preset post-execution conditions includes:

[0021] Extend the fields generated after execution on the pre-execution route fingerprint according to the fixed field pattern to obtain the value pattern of the evidence after execution;

[0022] For fields in the value selection pattern that are enumerable, list all their values. For fields in the value selection pattern that have consecutive values ​​or whose number of values ​​exceeds a preset threshold, merge them into value ranges or symbolic variables to obtain the input value representation of the allowed input domain.

[0023] The input value representation and the post-execution condition are converted into a constraint expression. The constraint solver solves the constraint expression and determines whether there is an input combination that does not satisfy the post-execution condition among the input combinations defined by the input value representation, thus obtaining the verification result.

[0024] If the verification result indicates that the verification is not present, the verification is deemed to be successful, and the allowed input field, the solver version of the constraint solver, and the hash of the verification result are saved. If the verification result indicates that the verification is present, or the constraint solver returns an unknown value or a timeout occurs, the corresponding physical examination data to be processed is transferred to manual processing.

[0025] Furthermore, the step of freezing the verified version along with its dependent components, effective configuration, routing admission conditions, post-execution conditions, and validity period into a combined version, where the verification result of the combined version becomes invalid when any frozen object changes, includes:

[0026] Calculate the hashes of the content of the version, the dependent components, the effective configuration, the route admission conditions, and the post-execution conditions respectively to obtain the hashes of each frozen object;

[0027] A combined version hash is generated based on the hash of each frozen object and the validity period, and the hash of the allowed input field, the solver version, and the hash of the verification result are bound in the verification report;

[0028] If either the hash of each frozen object or the validity period changes, the existing verification result of the combined version is determined to be invalid and the verification is re-executed.

[0029] Set the parent version of the combined version to only indicate a derivation relationship and not as a fallback qualification.

[0030] Further, the step of matching the routing admission conditions of each of the combined versions with the pre-execution route fingerprint, and when multiple matches are found, selecting the version with the highest ranking according to a preset sorting rule as the production version and executing it, and appending the result fields generated after execution to the pre-execution route fingerprint to obtain the post-execution evidence fingerprint, includes:

[0031] The candidate version set is obtained by querying the combined versions that are in an effective state, whose route admission conditions are hit by the pre-executed route fingerprint, whose field contracts are compatible, whose external dependencies are available, whose effective configuration is consistent with the current running environment and has passed the verification.

[0032] The current physical examination data to be processed and the pre-execution route fingerprint are determined according to the preset judgment rules to determine whether they belong to the allowed input domain. The combined versions in which the pre-execution route fingerprint does not belong to the allowed input domain are removed from the candidate version set to obtain a filtered candidate version set. The removal is only performed on the combined versions that have hit the route admission conditions.

[0033] When the filtered candidate version set contains multiple combined versions, the combined versions in the filtered candidate version set are sorted according to a preset sorting rule, and the combined version with the highest sorting is taken as the production version.

[0034] Execute the production version to obtain the result field. Append the result field to the pre-execution route fingerprint in a preset order to obtain the post-execution evidence fingerprint. The post-execution evidence fingerprint does not change the selection result of the production version.

[0035] Further, the step of determining whether the production version meets the post-execution conditions based on the post-execution evidence fingerprint, excluding the production version if it does not meet the conditions, and re-determining rollback candidates that meet the preset conditions for compatibility with the current operating environment from each of the combined versions based on the pending health check data and the current operating environment, excluding the production version, taking the highest-ranked version as the rollback version according to the preset rollback sorting rules, and using atomic comparison update to switch the route to the rollback version, includes:

[0036] The post-execution conditions are set to include field unit consistency constraints, numerical value range constraints, required field integrity constraints, and prohibited field consistency constraints. The field unit consistency constraint means that the unit of the result field is consistent with the standard unit declared in the production version. The numerical value range constraint means that the value of the result field is within the preset allowed value range. The required field integrity constraint means that all preset required fields have been generated. The prohibited field consistency constraint means that the preset prohibited fields have not been changed before and after execution.

[0037] The execution evidence fingerprint is used to verify whether the four constraints of the field unit consistency constraint, the numerical value range constraint, the required field integrity constraint, and the constraint prohibiting changes to the field consistency constraint are valid, and an out-of-bounds determination result indicating whether all four constraints are valid is obtained.

[0038] If the boundary violation determination result indicates that any one of the four constraints is not met, the production version is determined to not meet the post-execution condition, triggering a rollback and excluding the production version.

[0039] The combined version of the current physical examination data to be processed, the pre-executed route fingerprint belonging to the bound allowed input field, the route admission condition being hit by the pre-executed route fingerprint, the effective configuration being consistent with the current running environment, the field contract being compatible, the external dependencies being healthy and having passed the verification, is placed into the fallback candidate set;

[0040] After excluding the production version from the rollback candidate set, the remaining combination versions in the rollback candidate set are sorted in sequence according to environment matching dimension, rollback priority, effective time and version identifier, and the combination version with the highest sorting is taken as the rollback version.

[0041] The atomic comparison update with the expected current version identifier is used to switch the route to the fallback version only if the route still points to the production version, and the version identifier before and after the switch, the applicable environment scope defined by the effective configuration, the route configuration hash, the effective configuration hash and the combined version hash are saved.

[0042] Furthermore, the method also includes:

[0043] When the rollback candidate set is empty after excluding the production version and there is reusable historical execution code, it is prohibited to directly concatenate the historical execution code with the effective configuration at runtime. Instead, the historical execution code and the effective configuration are used to construct a new candidate version.

[0044] The routing admission conditions and post-execution conditions are re-formulated for the new candidate version, and the verification is re-executed for all allowed input combinations in the allowed input field to obtain the verification result of the new candidate version and the new combination version hash;

[0045] Static verification, sample selection, and pairwise replay are performed on the new candidate version to obtain the verification result of the new candidate version. The static verification refers to checking whether the code and configuration of the new candidate version conform to preset rules without actually executing the new candidate version. The sample selection refers to selecting input samples for replay from the allowed input fields. The pairwise replay refers to sending the input samples to the new candidate version and the replaced version respectively and comparing the consistency of the output of the new candidate version and the replaced version.

[0046] Before the verification result indicates that the new candidate version has passed the verification, and the verification result indicates that the static check, the sample selection, and the pairwise playback have all passed, the automatic processing of the applicable environment scope defined by the effective configuration is suspended and transferred to manual review.

[0047] When the rollback candidate set is empty and has no reusable historical execution code after excluding the production version, automatic processing of the applicable environment scope defined by the effective configuration is stopped.

[0048] Furthermore, the method also includes:

[0049] A pre-rollback snapshot with timestamp and hash is solidified, and the pre-rollback snapshot includes the pre-execution route fingerprint, the post-execution evidence fingerprint, the production version's version identifier, the failure reason, and intermediate results;

[0050] In an isolated environment, the current physical examination data to be processed is replayed with the rollback version to obtain version and fingerprint matching evidence, independent data legality verification evidence and rollback result verification evidence, and duplicate logs generated by the same module are merged into one piece of evidence;

[0051] When the version and fingerprint matching evidence, the data legality verification evidence, and the rollback result verification evidence are all passed, and all the preset rollback verification conditions are met, the rollback result is submitted and the rollback snapshot is fixed. The rollback verification conditions include consistent units, adapted reference range, completion of mandatory verification, unchanged prohibited fields, and legal version status.

[0052] If the version and fingerprint matching evidence, the data legality verification evidence, and the rollback result verification evidence all fail, or if the rollback verification conditions are not all met, the rollback result is discarded and transferred to manual review or blocked.

[0053] The present invention also provides a two-stage environmental fingerprint health check skill package routing and rollback device, the device comprising:

[0054] The fingerprint generation module is used to concatenate and calculate the digest value of the pre-execution fields of the physical examination data to be processed, whose values ​​can be determined before the processing program is executed, to obtain the pre-execution route fingerprint;

[0055] The version freezing module is used to pre-set the range of values ​​formed by the inputs that the processing program is allowed to receive as the allowed input field. For each allowed input combination within the allowed input field, it verifies that the field values ​​generated after the version of the processing program is executed meet the preset post-execution conditions. Only when all allowed input combinations are satisfied, the version that passes the verification, together with its dependent components, effective configuration, routing admission conditions, post-execution conditions, and validity period, is frozen as a combined version. If any frozen object changes, the verification result of the combined version becomes invalid.

[0056] The routing execution module is used to match the routing admission conditions of each of the combined versions with the pre-executed routing fingerprint. When multiple matches are found, the version with the highest ranking is selected as the production version and executed according to a preset sorting rule. The result field generated after execution is appended to the pre-executed routing fingerprint to obtain the evidence fingerprint after execution.

[0057] The out-of-bounds rollback module is used to determine whether the production version meets the post-execution conditions based on the post-execution evidence fingerprint. If it does not meet the conditions, the production version is excluded. Based on the pending health check data and the current operating environment, rollback candidates that meet the preset conditions for compatibility with the current operating environment are re-determined among the combined versions. After excluding the production version, the version with the highest sorting order is selected as the rollback version according to the preset rollback sorting rules. The route is switched to the rollback version using atomic comparison update.

[0058] The beneficial technical effects of this invention are as follows:

[0059] By employing a two-stage isolation mechanism of pre-execution routing fingerprint and post-execution evidence fingerprint, fields that can only be determined after execution cannot negatively influence the initial selection of the production version, thus resolving the routing feedback problem caused by candidate versions using their own output to prove applicability. Furthermore, by performing constraint solver verification on all allowed input combinations within the allowed input domain and transferring manual processing when verification fails, the version admission scope can be conservatively tightened before release, reducing the risk of misrouting caused by limited historical samples not covering the production input domain. Finally, by freezing the version along with dependent components, effective configuration, routing admission conditions, post-execution conditions, and validity period as a combined version and invalidating the verification result when any frozen object changes, the verification object, production object, and rollback object remain consistent, reducing the possibility of restoring invalid configurations or incompatible interfaces. Attached Figure Description

[0060] Figure 1 A flowchart illustrating the routing and rollback method for the two-stage environmental fingerprint health check skill package provided in this embodiment of the invention;

[0061] Figure 2 This is a schematic diagram of the pre-execution route fingerprint generation process provided in an embodiment of the present invention;

[0062] Figure 3 This is a schematic diagram of the process for full verification of allowed input fields and freezing of combined versions provided in an embodiment of the present invention;

[0063] Figure 4 This is a schematic diagram of the routing and rollback device for the two-stage environmental fingerprint health check skill package provided in an embodiment of the present invention;

[0064] Figure 5 This is a schematic diagram of the workflow-based physical examination data summary process provided in an embodiment of the present invention.

[0065] Figure 6 This is a schematic diagram of the multi-institutional physical examination data processing flow provided in an embodiment of the present invention;

[0066] Figure 7 This is a flowchart illustrating the code execution of embedded intelligent inspection services provided in an embodiment of the present invention. Detailed Implementation

[0067] The technical solution of the present invention will be further described below with reference to the accompanying drawings. The physical examination object diagram is a versioned data structure formed by the computer system based on the collected physical examination data. The present invention does not include data collection steps performed on a living organism, nor does it output specific health status judgments or treatment plans. The draft report is used for operator review, and the signing action is completed outside of this method by operators with the appropriate permissions.

[0068] To facilitate understanding of the placement of each step in actual business operations, the general application order of S1 to S4 of this invention will be explained below using two typical application scenarios. Both scenarios are organized in the order of "input data - pre-execution environment identification - version selection - business processing - post-execution verification - exception rollback". Each processing step is represented by its input, processing function, output, and exception branch, without relying on source code, interface address, function name, or internal field name as a prerequisite for understanding; full input field validation, combined version freezing, and out-of-bounds rollback are all performed according to the functional boundaries described in the aforementioned steps.

[0069] like Figure 5As shown, in the first typical scenario, this invention is applied to the overall review of workflow-based physical examination data. It receives physical examination results and findings that have been collected and entered into the computer system, splits the data according to examination categories, removes personal identifiers irrelevant to the review, and forms the input required for rule processing or model diagnosis. Subsequently, it executes review rules and diagnostic processing, merges the conclusions of each branch, verifies that there are no omissions or duplications, sorts the conclusions according to predetermined rules, and generates explanations and suggestions. Finally, it assembles the review result containing processing status, conclusions, evidence, explanations, and suggestions. If any processing step is abnormal, a failure record is generated and the process is transferred to exception handling; the review result is not directly output. In this scenario, the pre-execution route fingerprint generation setting of S1 is set before the business processing begins: from the request metadata and independent review configuration that enter the system along with the physical examination data, it reads fields that can be determined before execution, such as institution identifier, device identifier or firmware version, detection method, physical examination item code or examination protocol identifier, and the version identifier of the currently effective reference configuration after review. These fields are standardized, sorted and concatenated according to a fixed field pattern, and a summary value is calculated to obtain the pre-execution route fingerprint. If key fields are missing and cannot be uniquely determined, no presumption is made, and manual processing is performed. The selection of the production version is based on S3: a set of candidate versions is obtained by combining versions that are in a state of active pre-execution route fingerprint positive matching, route admission conditions are met, field contracts are compatible, external dependencies are available, and the effective configuration is consistent with the current running environment and has passed verification. The candidate versions are then filtered by allowed input domain judgment and sorted by the number of environment matching dimensions, preset priority, effective time and version identifier. The version with the highest ranking is selected as the production version. Only after the selection is completed will the process of splitting the inspection results, preparing the input, diagnostic processing, merging the conclusions, generating suggestions and assembling the results proceed according to that version. S2 is set before the candidate processing version is released: The allowed input domain is constructed using input field patterns, institutional authorization scope, medical examination items, equipment identification or testing method identification, applicable population conditions, and data generation time. Data splitting, input preparation, rule or model diagnosis, conclusion merging, sorting, result assembly, and anomaly handling branches are represented as a candidate processing graph. The constraint solver verifies that all allowed input combinations within the allowed input domain meet the preset post-execution conditions for all field values ​​generated after the version execution. After successful verification, the verified version, along with its dependent components, effective configuration, routing admission conditions, post-execution conditions, and validity period, is frozen as a combined version and bound to the verification report. Any change to any frozen object renders the existing verification results invalid.S4 is set after the production version execution is completed and before the submission of the review results: The result fields generated by executing the production version are appended to the pre-execution route fingerprint in a preset order, forming a post-execution evidence fingerprint carrying the fields before and after execution. The post-execution evidence fingerprint is used to verify each of the four post-execution conditions: unit consistency constraint, numerical value range constraint, required field integrity constraint, and constraint prohibiting changes to field consistency. If any one of these conditions is not met, it is considered out of bounds and the production version is excluded. Subsequently, based on the current pending health check data and the current operating environment, rollback candidates are re-determined. After excluding the production version, the version with the highest ranking is selected as the rollback version, and the route switch is completed using an atomic comparison update with the expected current version identifier. It should be noted that a normal business failure record only indicates that the current processing is not completed, and does not equate to having selected and switched to a rollback version. When the rollback candidate is empty and there is no reusable historical execution code, automatic processing for the corresponding applicable environment range is stopped and manual processing is initiated.

[0070] like Figure 6As shown, in the second typical scenario, this invention is applied to multi-institutional physical examination data processing. It receives physical examination orders, examinee conditions, department and examination item data. Input data may include order identifier, institution identifier, department and item list, data generation time, examination item identifier, examination results, examination findings, unit, and reference range. Only fields carrying verifiable environmental facts before execution participate in the pre-execution route fingerprint calculation; tracking fields such as order number and document number do not participate. First, the necessary fields and data format are validated. Then, based on the institution identifier, the independently reviewed and valid institution configuration is read, and an input snapshot is saved. Subsequently, format compatibility checks, useless prefix cleanup, questionnaire and medical history preprocessing, examination item name standardization, unit and reference range association, rule or retrieval processing, diagnostic processing, anomaly supplementation, suggestions and risk warnings, classification and sorting, branch merging, and output format organization are performed to form a result awaiting review, and a result snapshot is saved. In this scenario, S1 is set after input validation and reading valid institutional configurations, but before entering the main business processing: Pre-execution route fingerprints are formed by extracting fields that already exist before execution from the application or institutional identifier, project or agreement, source system, original unit, applicable population, and data generation time. Interface version, device identifier, or detection method are only included in fingerprint calculation as pre-execution fields if they are actually provided by the source system or can be uniquely determined by independent audit configuration. S2 is set before the release of the candidate business version: Allowed input domains are constructed using input field patterns, institutional authorization scope, project or agreement, device identifier or detection method identifier, applicable population, and valid time. Reachable branches such as format compatibility, project name standardization, unit and reference interval association, rules or retrieval, diagnosis, suggestions, branch merging, and format rectification are included in the candidate processing graph. Full validation is performed on all allowed input combinations within the allowed input domains. After validation, the program implementing the above processing, direct and indirect dependencies, institutional effective configurations, rules or knowledge data, model configurations, route admission conditions, post-execution conditions, and valid time are frozen. S3 is configured at runtime to match the routing admission conditions of the effective combination version with the pre-executed route fingerprint, filter and deterministically sort the input fields, and only proceed to data normalization and subsequent diagnostic processing after obtaining a unique production version.S4 is set after the production version is executed: For example, when the source interface is upgraded from version 2 to version 3, or the device category changes from Class A to Class B, the corresponding production combination version is selected and executed based on the pre-execution route fingerprint formed by the version 3 interface and the Class B device. If it is found after execution that the actual reference range version does not belong to the current valid configuration, it is judged as out of bounds and the abnormal version is excluded. Then, the rollback candidate is re-determined based on the current pending health check data and the current operating environment. Only when another combination version simultaneously meets the six constraints of allowed input domain affiliation, route admission conditions being met, effective configuration matching the current operating environment, field contract compatibility, and healthy external dependencies that have passed the verification, can it be used as the rollback version. And the switch is completed only through atomic comparison update when the current route still points to the abnormal version. When the newly formed rollback candidate is empty, it is transferred to manual processing or the automatic processing of the corresponding applicable environment range is stopped.

[0071] The data splitting, diagnostic processing, suggestion generation, risk warning, branch merging, and snapshot recording in the two scenarios mentioned above are all general business processing steps in the application scenario. They are only used to illustrate the setting position of the functions S1 to S4 of this invention, as well as pre-execution route fingerprint generation, full verification of allowed input fields, combined version freezing, deterministic routing, out-of-bounds judgment and rollback in the business process, and do not constitute additional limitations on the scope of protection. The above process refinement does not add new version status, route source, verification object or rollback qualification. Any field added to the evidence fingerprint after execution does not change the selection result of the production version, and the evidence after execution cannot participate in the initial routing in reverse. By reviewing business rules, prompts, model configurations, and all dependencies as a single combined version, it avoids leaving behind old rules or model configurations by only updating the main processor. Creating new combined versions and verification reports for changes in organizational configurations, rules or knowledge data, models, and external dependencies separately reduces the risks of cross-organizational configuration misuse, inconsistencies between cached results and version identities, and restoring only the processor without restoring compatible configurations. Furthermore, setting the parent version of the combined version only to indicate a derivation relationship and not as a rollback qualification avoids mistakenly selecting and binding an invalid parent version during rollback. The following embodiments further explain each step from S1 to S4 based on this principle.

[0072] Example 1

[0073] This invention provides a two-stage environmental fingerprinting method for routing and rolling back health checkup skill packages, applied to a health checkup data processing system. The two stages refer to a pre-execution stage and a post-execution stage. The pre-execution stage corresponds to a pre-execution routing fingerprint, and the post-execution stage corresponds to a post-execution evidence fingerprint. The environmental fingerprint is a comparable digest formed by normalizing and encoding several environmental fields in a fixed order. The skill package is a versionable processing program for processing health checkup data, such as... Figure 1 and Figure 7As shown, the method includes:

[0074] S1. The pre-execution fields whose values ​​can be determined before the processing procedure are executed are concatenated to calculate the summary value, thereby obtaining the pre-execution route fingerprint.

[0075] Specifically, the processing environment for health checkup data is determined by two types of fields: First, fields obtainable from source metadata, audit configurations, or device registration tables before the processing program is invoked, including institution identifier, device identifier or firmware version, testing method, checkup item code or examination protocol identifier, and the version identifier of the audited and currently effective reference configuration. Second, fields that can only be determined after the processing program completes field semantic mapping, unit conversion, and reference range selection, including the actual standard unit, the actual selected reference range version, and reagent batch. By aggregating the former and calculating their summary values, a pre-execution route fingerprint is obtained, fully determined before execution. This ensures that the fingerprint contains no output from the processing program itself, thus structurally blocking the path where the execution result negatively influences the initial route decision.

[0076] The formation of the pre-execution route fingerprint relies on the normalization of pre-execution fields. Field normalization includes: mapping enumerated values ​​to standard codes, unifying time values ​​to preset time zones and precision, adopting standardized formats for major and minor versions for version values, and using standardized placeholders for null values. After normalization, each field is sorted according to a preset fixed field pattern, and then concatenated into a digest string according to a preset normalized format. The digest value is calculated for this string to obtain a fixed-length, uniquely identifying pre-execution route fingerprint of the current execution environment. If any field in the pre-execution fields—such as the health check item code, check protocol identifier, device identifier, firmware version, or detection method—is missing, a value is not presumed for the missing field. The corresponding health check data to be processed is then transferred to manual processing to avoid routing to incompatible version combinations due to field presumption.

[0077] S2. A range of values ​​formed by the inputs that the processing program is allowed to receive is pre-defined as the allowed input domain. For each allowed input combination within the allowed input domain, the field values ​​generated after the version of the processing program is executed are verified to meet the preset post-execution conditions. Only when all allowed input combinations are satisfied are the verified version, along with its dependent components, effective configuration, routing admission conditions, post-execution conditions, and validity period, frozen as a combined version. The verification result of the combined version becomes invalid when any frozen object changes.

[0078] Specifically, unlike traditional regression testing that relies solely on limited historical samples, this step allows the input domain to be formalized into a machine-determinable domain, and uses a constraint solver to exhaustively or symbolically verify all allowed input combinations within that domain. Only after the solver confirms that there are no input combinations that would cause post-execution fields to violate preset post-execution conditions is a candidate version allowed to enter the freezing process. During freezing, the processor version, dependent components, effective configuration, routing admission conditions, post-execution conditions, and validity period are jointly hashed into a unique combined version identifier, ensuring that the verification object, production object, and rollback object always point to the same technical state snapshot. If any frozen object changes, the combined version hash becomes invalid, and a full verification must be performed again for it to become effective again.

[0079] The allowed input domain consists of input field patterns, institutional authorization scope, medical examination items, equipment or testing method identifiers, applicable population conditions, and data generation time. It is a machine-determinable input domain, not a limited set of historical samples. The system validates all structurally feasible inputs within this domain that conform to the input / output field contract. For fields with enumerable values, it lists all possible values. Fields with consecutive values ​​or whose cardinality exceeds a preset threshold are grouped into value ranges or symbolic variables, ensuring the allowed input domain has a limited, machine-processable representation. Routing admission conditions consist only of fields generated before execution; fields generated after the processing program is not allowed to be referenced. This ensures that the pre-execution routing fingerprint can be matched with the routing admission conditions before the processing program is executed, eliminating circular dependencies.

[0080] S3. Match the routing admission conditions of each of the combined versions with the pre-execution route fingerprint. If multiple conditions are matched, take the one with the highest order according to the preset sorting rules as the production version and execute it. Append the result field generated after execution to the pre-execution route fingerprint to obtain the execution evidence fingerprint.

[0081] Specifically, the routing admission conditions for each combination version are matched forward using the pre-execution routing fingerprint. Since the routing admission conditions consist only of pre-execution fields, the matching process occurs entirely before the processor executes. When multiple matching combination versions exist, the oldest one is selected according to a preset sorting rule, ensuring the determinism of the routing result. After the processor completes execution, the resulting fields are appended to the pre-execution routing fingerprint in a preset order, forming the post-execution evidence fingerprint. No field appended to the post-execution evidence fingerprint changes the selection result of the production version, thus maintaining the unidirectional causal relationship between the two-stage fingerprints in terms of time sequence.

[0082] S4. Determine whether the production version meets the post-execution conditions based on the post-execution evidence fingerprint. If it does not meet the conditions, exclude the production version. Based on the physical examination data to be processed and the current operating environment, re-determine the rollback candidates that meet the preset conditions for compatibility with the current operating environment in each of the combined versions. After excluding the production version, take the version with the highest sorting order according to the preset rollback sorting rules as the rollback version. Use atomic comparison update to switch the route to the rollback version.

[0083] Specifically, the pre-defined post-execution conditions are verified item by item using post-execution evidence fingerprints. These conditions cover four dimensions: field unit consistency constraints, numerical value range constraints, required field integrity constraints, and constraints prohibiting changes to field consistency. If any constraint is not met, it is immediately considered an out-of-bounds error, triggering a rollback process. During rollback, rollback candidates that meet the requirements of the current input and runtime environments are selected from all combined versions. After excluding production versions, the version with the highest ranking according to the pre-defined rollback sorting rules is selected as the rollback version. Atomic comparison updates are used to perform route switching, ensuring the consistency of routing status in concurrent scenarios.

[0084] Atomic comparison update reads the current route version identifier and compares it with the expected current version identifier during route switching. Switching only occurs if they match; otherwise, other completed switches are not overwritten, and the current route state is reread for further judgment. This mechanism prevents routes from being overwritten multiple times to different versions after multiple concurrent processing threads trigger rollbacks in concurrent rollback scenarios, ensuring the uniqueness and consistency of the final route state. After rollback, the version identifiers before and after the switch, the applicable environment scope defined by the effective configuration, the route configuration hash, the effective configuration hash, and the combined version hash are saved to form a switch record that can be independently audited.

[0085] In one example, a medical examination data processing institution upgrades the interface version of the source system from version 2 to version 3, and simultaneously changes the device category from device category A to device category B. The system reads interface version 3, device category B, project code, original unit, and data generation time from the source metadata and forms a pre-execution route fingerprint. Since the actual reference interval version used needs to be determined after field mapping and unit conversion, this field does not participate in this initial routing. The system ultimately selects combined version V3 for execution; if the evidence fingerprint after execution indicates that the reference interval version generated by this combined version does not belong to the currently valid configuration, then combined version V3 is excluded, and the system only switches to combined version V2 (i.e., the combined version reconstructed from reusable historical execution code and the currently effective configuration of device category B, and re-passed through full-domain verification, see steps SA to SB in Example 8) if it meets the current configuration, field contract, and external dependency requirements.

[0086] Example 2

[0087] like Figure 2 As shown, based on Example 1, the step of concatenating and calculating the digest value of the pre-execution fields whose values ​​can be determined before executing the processing program to obtain the pre-execution route fingerprint includes:

[0088] S1.1. Set the pre-execution fields to include the organization identifier, equipment identifier or firmware version, detection method, physical examination item code or examination protocol identifier, and the version identifier of the approved and currently effective reference configuration. Set the actual standard unit, the actual selected reference range version, and the reagent batch as fields whose values ​​cannot be determined before executing the processing procedure and exclude them from the pre-execution fields.

[0089] The classification boundaries between pre-execution and post-execution fields were established. The actual standard unit, the actual selected reference interval version, and the reagent batch all depend on the processing program completing the field semantic mapping and unit conversion before they can be obtained. If these are included in the pre-execution fields, these fields will not have definite values ​​when calculating the pre-execution route fingerprint, thus introducing uncertainty. By explicitly excluding the above fields in S1.1, it is ensured that the pre-execution route fingerprint is completely determined before the processing program is invoked.

[0090] The pre-execution fields listed in step S1.1 can be further expanded to include the source system and interface version, specimen type or data modality, original unit, applicable population conditions, and collection or result generation time. These additional fields can be obtained from the source metadata or independent audit configuration before execution. The specific additional fields included are determined by the version authorization domain and post-execution conditions. The additional fields involved in routing and their normalization rules are frozen along with the routing configuration to ensure that the same input forms a consistent pre-execution routing fingerprint under the same routing configuration. The pre-execution routing fingerprint includes at least the health check item code or inspection protocol identifier, and at least one of the device identifier or firmware version and detection method. For inspection protocols that do not depend on specific devices, the inspection protocol identifier and detection method can form a minimum combination. For device-bound items, the item code and device identifier can form a minimum combination to avoid overly broad routing based solely on the institution or source system.

[0091] S1.2. If any of the fields in the pre-execution field, such as the physical examination item code or examination protocol identifier, the device identifier or firmware version, or the detection method, are missing, no value is assumed for the missing field, and the corresponding physical examination data to be processed is transferred to manual processing.

[0092] In step S1.2, the case of missing fields is handled. The health check item code or check protocol identifier, device identifier or firmware version, and detection method are core positioning fields for determining the processing environment. The absence of any of these means that a unique processing version cannot be determined. This step stipulates that in this case, no assumption will be made, and the process will proceed directly to manual processing to avoid routing to incompatible combined versions due to field assumptions.

[0093] S1.3. For the physical examination data to be processed that has not been transferred to manual processing, sort the pre-execution fields according to a preset fixed field pattern, concatenate the sorted pre-execution fields into a descriptive string according to a preset standardized format, calculate the descriptive value of the descriptive string, and obtain the pre-execution route fingerprint.

[0094] Step S1.3 specifies the deterministic calculation process from fields to digest values. Sorting by a fixed field pattern eliminates differences in digest values ​​caused by different field orders; concatenating by a normalized format eliminates differences in leading and trailing whitespace, capitalization, and separators in field values; the digest value is calculated on the normalized string to be digested to obtain a pre-execution route fingerprint with a fixed length that uniquely identifies the current execution environment. In one example, a piece of medical examination data to be processed carries the institution identifier "ORG-001", the equipment identifier "DEV-A-FW2.3", the testing method "ELISA", the medical examination item code "GLU", and the reference configuration version identifier "REF-CFG-20240101". After being sorted according to a fixed field pattern and concatenated with "|" as a separator, the string to be digested is "ORG-001|DEV-A-FW2.3|ELISA|GLU|REF-CFG-20240101". After calculating the SHA-256 digest value of this string, the pre-execution route fingerprint is obtained. This fingerprint is completely determined and uniquely identifies this execution environment before the processing program is executed.

[0095] It is important to note that even if the historical records contain fields such as the actual standard unit, the actual selected reference range version, and the reagent batch, these fields should not be written into the pre-execution routing fingerprint as facts prior to the execution of the current task. Only reference configuration versions explicitly carried by the source system before execution and independently verified as usable for routing can be written into the pre-execution routing fingerprint as pre-execution fields; the actual selection result should still be written into the post-execution evidence fingerprint. Key fields manually added should record the adding entity, adding time, adding basis, and configuration version to ensure the auditability of the addition behavior.

[0096] Example 3

[0097] like Figure 3As shown, based on Embodiment 1, the range of values ​​formed by the inputs that the processing program is allowed to receive is defined as the allowed input field. The allowed input field is a machine-determinable input field consisting of the input field pattern, institutional authorization scope, medical examination items, equipment identification or testing method identification, applicable population conditions, and data generation time, including:

[0098] S2.1. Construct the routing admission conditions for the combined version based on the pre-execution fields. The routing admission conditions consist only of the pre-execution fields and do not contain fields generated after the execution of the processing program. Furthermore, it prohibits routing records that do not meet the preset post-execution conditions to the combined version, so that the pre-execution routing fingerprint can be matched with the routing admission conditions before the processing program is executed.

[0099] The above steps establish the structural constraints for routing admission conditions: Routing admission conditions can only reference fields from before execution, and cannot reference fields from after execution, such as actual standard units or actual reference range versions. If fields from after execution are included in the routing admission conditions, condition matching cannot be completed before the handler is called, and the routing decision will depend on the execution result that has not yet been generated, forming a circular dependency. This step uses structural constraints to block this path at the design level.

[0100] Specifically, when the post-execution conditions of a candidate version cannot be equivalently expressed solely by pre-execution determinable fields, the system constructs safe shrinkage routing admission conditions based on the pre-execution determinable fields. Safe shrinkage employs a conservative admission principle: the safe shrinkage routing admission conditions allow for the exclusion of some potentially applicable records, but prohibit the routing of records that might result in not meeting the post-execution conditions to the candidate version. For example, if the post-execution condition requires the actual standard unit to belong to unit category U2, but pre-execution only allows for the acquisition of the original unit and device category, the system can select, based on independently verified unit mapping relationships, a combination of original unit and device category that guarantees the final standard unit belongs to unit category U2 as the safe shrinkage routing admission condition. When a pre-execution combination corresponds to multiple possible post-execution environments, and at least one of these post-execution environments does not meet the candidate version's post-execution conditions, this pre-execution combination will not enter the candidate version's routing admission range.

[0101] S2.2. Determine each allowed pre-execution route fingerprint in the allowed input domain and all input values ​​that are consistent with the allowed pre-execution route fingerprint as the allowed input combination.

[0102] The allowed input domain is formalized as a set of allowed input combinations, each of which consists of an allowed pre-executed route fingerprint and all input values ​​consistent with it. For fields with enumerable values ​​(such as physical examination item codes), all their values ​​are enumerated. For fields with continuous values ​​or whose cardinality exceeds a preset threshold (such as numerical measurement results, timestamps), they are grouped into value ranges or symbolic variables, giving the allowed input domain a finite representation that can be processed by a machine.

[0103] S2.3. Bind a preset judgment rule to each of the combined versions for determining whether the physical examination data to be processed belongs to the allowed input field.

[0104] Each combined version is bound to a decision rule, enabling further elimination of records whose pre-execution route fingerprints do not belong to the allowed input fields from candidate versions that have already met the route admission criteria during the routing execution phase. This constitutes a two-layer filtering structure: route admission criteria (coarse-grained hit) and allowed input field determination (fine-grained filtering). Allowed input fields can be stored as field type constraints, enumeration constraints, time ranges, institutional authorization sets, project sets, and inter-field association constraints, and bound to the combined version's validation report in the form of machine-determinable predicates. Historical samples can be used for replay testing and performance evaluation, but cannot replace full input constraints for allowed input fields.

[0105] Example 4

[0106] Based on Example 1, the step of verifying that the field values ​​generated after the execution of the processing program for each allowed input combination within the allowed input field meet the preset post-execution conditions includes:

[0107] S2.4. Extend the fields generated after execution on the pre-execution route fingerprint according to the fixed field pattern to obtain the value pattern of the evidence after execution.

[0108] Based on the field structure of the pre-execution route fingerprint, post-execution fields (such as actual standard units, numerical results, and reference range versions) are added according to a fixed field pattern. This results in a complete value pattern that can simultaneously describe the pre-execution and post-execution states, providing a unified variable domain for subsequent constraint solving. The fixed field pattern clearly defines the name, type, order of appearance, whether nullables are allowed, and the constraints between fields for each field. Reagent batches are only written when the corresponding treatment item has the field and the field is available; otherwise, a preset inapplicable flag is written, instead of using an arbitrary default batch.

[0109] S2.5. List all values ​​of the fields in the value mode that are enumerable, and merge the fields in the value mode that have consecutive values ​​or whose number of values ​​exceeds a preset threshold into value intervals or symbolic variables to obtain the input value representation of the allowed input domain.

[0110] The complete value pattern is converted into a symbolic representation that can be consumed by the constraint solver. Fields with limited value spaces (such as physical examination item codes or unit enumeration types) are directly enumerated. When the standard unit category includes unit category U1, unit category U2, and unit category U3, and the reference interval version includes version R1 and version R2, unreachable combinations can be excluded according to the effective configuration, and the remaining combinations can be enumerated. During enumeration, the configuration source and processing path corresponding to each branch are recorded simultaneously. Fields with continuous values ​​or excessively large cardinality (such as numerical measurement results or timestamps) are represented by intervals or symbolic variables to control the scale of symbolic enumeration. Intervals can be divided according to configuration boundaries, version effective boundaries, or processing branch boundaries. Symbolic variables can also be used to preserve the relationships between fields. The abstraction process should ensure coverage of the original value domain and should not reduce the proof object by omitting boundary values.

[0111] In one example, the preset threshold is 32: the physical examination item code is a field with enumerable values, and all its values ​​{GLU, TC, TG} are directly enumerated; the possible values ​​of the numerical measurement results are a continuous range from 0.0 to 400.0, and the number of values ​​far exceeds 32, so they are merged into interval variables and divided into two value intervals [0.0, 120.0] and [120.0, 400.0] according to the boundary of the reference interval version in the effective configuration (version R1 corresponds to the upper limit of 120.0, version R2 corresponds to the upper limit of 400.0); the data generation timestamp is merged into a symbolic variable t, and t is limited to a preset allowed time range, so as to control the symbolic enumeration scale within the preset threshold while covering the original values.

[0112] S2.6. Convert the input value representation and the post-execution condition into a constraint expression, solve the constraint expression using a constraint solver, determine whether there is an input combination in the input combination defined by the input value representation that does not satisfy the post-execution condition, and obtain the verification result.

[0113] The input value representation and post-execution conditions are jointly expressed as a constraint expression, which is then used by a constraint solver (such as an SMT solver) to determine whether, among all combinations of input values ​​that satisfy the input value representation, there exists any combination of values ​​that would cause the post-execution condition to be false. In practice, field contracts, allowed input domains, valid configurations, processing branch conditions, and post-execution conditions can be converted into unified Boolean constraints, enumeration constraints, range constraints, and field association constraints. If the solver returns "not found," it proves that the candidate version satisfies the post-execution condition for all allowed input combinations within the allowed input domain; if it returns "exists" or "unknown / timeout," it indicates that the validation cannot provide a positive guarantee and manual processing is required. An example is provided: suppose one of the post-execution conditions is the unit of the result field. Must belong to the set of allowed units ,Right now The range of values ​​for the unit field in the input value representation is an enumerated set. Then the constraint expression is If the solver determines that the constraint is unsatisfactory (UNSAT), then it proves that all allowed input combinations satisfy the unit-uniform constraint. Indicates the actual unit value of the result field. This represents the allowed set of units declared in the candidate version declaration, and U' represents the enumerated range of values ​​for the unit field in the input value representation. This represents the enumerated values ​​of each specific unit in U'.

[0114] S2.7. If the verification result indicates that the verification is not present, the verification is deemed to be successful, and the allowed input field, the solver version of the constraint solver and the hash of the verification result are saved. If the verification result indicates that the verification is present or the constraint solver returns unknown or times out, the corresponding physical examination data to be processed is transferred to manual processing.

[0115] The verification results, along with the solver version and allowed input field hashes, are saved as one of the verification evidences for subsequent version freezes, ensuring that any change to a frozen object can be detected as a failure. Verification results are categorized into four states: pass, fail, unknown, and timeout. Only the "pass" state can be used for release gating; the fail state saves counterexamples, and the unknown or timeout state saves the solution process and termination reason. The other three states are not interpreted as default safety. Counterexamples include at least the input field constraints, processing branches, valid configurations, and post-execution field values ​​that cause the post-execution conditions to be unmet. The system can further tighten routing admission conditions based on counterexamples, but the tightened conditions must be fully verified again before release. The saved hashes also include input field patterns, candidate processing graphs (i.e., a normalized representation of the relationships between processor components, branch conditions, and data flow), and valid configurations for candidate versions, used to confirm that the verified object has not changed after release and to support complete replay of the verification process in subsequent audits.

[0116] Example 5

[0117] Based on Example 1, the step of freezing the verified version along with its dependent components, effective configuration, routing admission conditions, post-execution conditions, and validity period into a combined version, where the verification result of the combined version becomes invalid when any frozen object changes, includes:

[0118] S2.8. Calculate the hashes of the content of the version, the dependent components, the effective configuration, the route admission conditions, and the post-execution conditions respectively to obtain the hashes of each frozen object.

[0119] Calculating hashes independently for each frozen object ensures that changes to any single frozen object can be detected. If only the combined object is hashed as a whole, changes to a single frozen object (such as a dependent component or effective configuration) will also change the hash, but it won't pinpoint which object changed, hindering subsequent auditing and tracing. The independent hashing scheme, however, can precisely locate the source of the change. Version content hashes cover executable code, rule files, model files, and static resources; dependent component hashes are calculated as a whole for the component artifact closure after sorting by component identifier, avoiding different results for the same set of components due to different traversal orders; effective configuration hashes are calculated for the currently valid content of independently audited configurations; route admission condition hashes and post-execution condition hashes are calculated for the normalized condition text.

[0120] S2.9. Generate a combined version hash based on the hash of each frozen object and the validity period, and bind the hash of the allowed input field, the solver version, and the hash of the verification result in the verification report.

[0121] The hashes of each frozen object and its validity period are input into the calculation of the combined version hash, ensuring that changes in the validity period also trigger hash invalidation. Before generating the combined version hash, each input is encoded according to a fixed field name and a fixed order. The combined version hash is used to identify the overall combination, not to replace the independent hashes of each component object. The verification report binds the allowed input field hash, solver version, and verification result hash, and also separately binds the hash of the route configuration to be released, ensuring that the binding relationship between the verification evidence and the verified object is externally auditable. The verification report and the combined version identity are stored separately, so that the same combined version needs to generate corresponding verification reports under different allowed input fields or different route configurations. During production calls, the system simultaneously checks the combined version identity and the verification report corresponding to the current release environment.

[0122] S2.10. If either the hash of each frozen object or the validity period changes, determine that the existing verification result of the combined version is invalid and re-execute the verification.

[0123] The rule stipulates that if any frozen object changes, the existing verification results become invalid, and a full verification must be re-executed. The verification conclusion "all allowed input combinations within the allowed input fields satisfy the post-execution conditions" is a conclusion for a specific version of content, a specific dependent component, and a specific effective configuration. Once these objects change, the premise of the conclusion no longer holds, and continuing to use an invalid verification conclusion will cause the actual state of the online version to deviate from the verified technical state. For example, when only the reference configuration is updated without modifying the execution code, because the effective configuration hash changes, the original combination version and the original verification report can no longer be used for the new configuration. The system needs to generate a new combination version hash and re-perform a full verification and release gating.

[0124] S2.11. Set the parent version of the combined version to only indicate a derivation relationship and not as a fallback qualification.

[0125] Step S2.11 clarifies that the parent version only indicates code derivation relationship and does not grant it rollback eligibility. The parent version can be used to track the evolution path of code or configuration, but whether it is eligible for rollback is still determined separately by the rollback candidate filtering logic in S4 (based on the combined version matching of the current input environment and the runtime environment), thereby avoiding the mistaken selection of a parent version that has been bound to an invalid configuration during rollback.

[0126] Example 6

[0127] Based on Example 1, the method of matching the routing admission conditions of each of the combined versions with the pre-execution route fingerprint, and when multiple matches are found, selecting the version with the highest ranking according to a preset sorting rule as the production version and executing it, appending the result fields generated after execution to the pre-execution route fingerprint to obtain the post-execution evidence fingerprint, includes:

[0128] S3.1. Query the combined versions that are in an effective state, whose route admission conditions are hit by the pre-executed route fingerprint, whose field contracts are compatible, whose external dependencies are available, whose effective configuration is consistent with the current running environment and has passed the verification, and obtain a candidate version set.

[0129] Building upon the routing admission criteria, a joint filtering process is added, considering three runtime conditions: field contract compatibility, external dependency availability, and consistency between the effective configuration and the current runtime environment. This ensures that the combined versions entering the candidate version set not only match the input environment but are also executable in terms of runtime technical status. This step uses intersection filtering rather than requiring any single condition to be met for entry into the candidate set. External dependency availability means that the versions, states, and invocation contracts of the registered models, tools, interfaces, or services all conform to the dependency declarations of the combined version. Before invoking each version in the candidate version set, the system also uses the machine-determinable judgment rules bound to the verification report to determine whether the current pending health check data and the pre-execution route fingerprint belong to the allowed input domain, and checks whether the full verification results are valid. During the check, the system compares the current input field mode, allowed input domain, effective configuration, candidate processing graph, solver version, and verification result hash; any change in any bound object marks the verification result as invalid.

[0130] S3.2. Determine whether the current physical examination data to be processed and the pre-execution route fingerprint belong to the allowed input domain according to the preset judgment rules, and remove the combination versions of the pre-execution route fingerprint that do not belong to the allowed input domain from the candidate version set to obtain the filtered candidate version set, wherein the removal is only performed on the combination versions that have hit the route admission conditions.

[0131] The candidate version set is further filtered using pre-defined rules, eliminating candidates whose pre-executed route fingerprints do not belong to the allowed input fields of the combined version. This constitutes a two-layer filtering process: coarse-grained (route admission condition met) and fine-grained (allowed input field determination). This elimination only occurs in combined versions that have met the route admission conditions, avoiding the application of inapplicable rules to irrelevant versions and ensuring filtering accuracy. This processing order ensures that allowed input field member validation only further tightens the candidate set; even if a version's rule returns that it belongs to an allowed input field, it cannot be added to the candidate set if it does not meet the route admission conditions.

[0132] S3.3. When the filtered candidate version set contains multiple combined versions, the combined versions in the filtered candidate version set are sorted according to a preset sorting rule, and the combined version with the highest sorting is taken as the production version.

[0133] Preset sorting rules ensure the determinism of production version selection in multi-candidate scenarios, eliminating routing instability caused by concurrent version releases or uncertain query order. The preset sorting rules consist of the following four levels of sorting keys, the specific content and sorting direction of each level of sorting key are pre-registered in the routing configuration and frozen along with the routing configuration, prohibiting temporary adjustments at runtime.

[0134] The primary sorting key is the number of environment matching dimensions, arranged in descending order. Combinations with more environment matching dimensions take precedence over those with fewer. An environment matching dimension refers to the number of fields explicitly declared with value constraints in the routing admission conditions of a given combination version before execution. Combinations with more precise constraint declarations (i.e., more fields the hit depends on) are considered to match the current input environment better. Specifically, if a combination version declares value constraints for four fields—organization identifier, device identifier or firmware version, detection method, and health check item code—its environment matching dimension count is four. If another combination version only declares value constraints for two fields—organization identifier and health check item code—its environment matching dimension count is two. The former takes precedence over the latter in the primary sorting key. Using the number of environment matching dimensions as the primary sorting key encourages routing results to select combinations with a higher degree of customization for the current input environment. Therefore, in scenarios where both general and specialized versions are matched, the specialized version is prioritized.

[0135] The second-level sorting key is a preset priority, arranged in descending order. That is, versions with higher preset priority values ​​take precedence over versions with lower values. Preset priorities are explicitly declared in the version metadata when each version combination is frozen, and their values ​​are non-negative integers with a default value of zero. Preset priorities can be used to manually specify selection preferences among candidate versions with the same number of environment matching dimensions, based on version maturity, validation coverage, or business suitability. It should be noted that preset priorities only participate in the decision-making process when the number of environment matching dimensions is the same and cannot override the results of the first-level sorting key; version publishers must not set a higher priority to allow a general version with fewer matching dimensions to override a specialized version with more matching dimensions.

[0136] The third-level sorting key is the effective time, arranged in descending order. This means that versions with a later (i.e., newer) effective time take precedence over versions with an earlier effective time. The effective time is the moment when the combined version completes full validation and receives the pass mark during the release process, recorded using a standardized timestamp in a preset time zone, with precision down to the second. Using the effective time as the third-level sorting key ensures that among candidate versions with the same preset priority, versions that have undergone more recent validation have a higher probability of being selected, thus favoring versions with more recent maintenance status among functionally equivalent candidate versions. The effective time only reflects the moment of validation success and is not affected by the dictionary order of version identifiers, avoiding sorting ambiguities caused by inconsistent version naming rules.

[0137] The fourth-level sorting key is the version identifier, arranged in a preset fixed dictionary order. The version identifier sorting serves as a final fallback sorting key, used to eliminate remaining uncertainty in the extreme case where the first three sorting keys are all the same, ensuring that the sorting result is uniquely determined under any circumstances. The dictionary order rules for version identifiers are pre-registered in the routing configuration, typically using ascending Unicode code points, and are unaffected by the runtime language environment or sorting library version. The version identifier sorting does not reflect the technical superiority or business suitability of the version; it exists only as a deterministic guarantee mechanism. If the version publisher wishes to express a preference among equally qualified candidates with different version identifiers, it should do so by adjusting the preset priority, rather than relying on the dictionary order of the version identifiers.

[0138] The four sorting keys are applied sequentially. Candidate versions distinguishable by a previous sorting key are not compared in subsequent levels. Subsequent sorting keys are only used when the values ​​of the previous sorting keys are the same. All sorting rules are pre-registered in the routing configuration and frozen along with the routing configuration. During the routing execution phase, the sorting rules are read in read-only mode, and runtime rule overriding or temporary adjustment requests are not accepted. This ensures that the same set of filtered candidate versions produces the same unique production version at any time and on any execution node.

[0139] In one example, the filtered candidate version set contains three combined versions: Combined version VA's routing admission criteria declare constraints on four fields: organization identifier, device identifier or firmware version, detection method, and health check item code (four environmental matching dimensions), with a default priority of one; Combined version VB's routing admission criteria declare constraints on two fields: organization identifier and health check item code (two environmental matching dimensions), with a default priority of three; and Combined version VC's routing admission criteria declare constraints on three fields: organization identifier, device identifier or firmware version, and health check item code (three environmental matching dimensions), with a default priority of two. After sorting by the first-level sorting key (descending order of environmental matching dimensions), combined version VA ranks first and is directly selected as the production version. Although combined version VB has a higher default priority than combined version VA, its smaller number of environmental matching dimensions does not affect the result of the first-level sorting key.

[0140] S3.4. Execute the production version to obtain the result field, and append the result field to the pre-execution route fingerprint in a preset order to obtain the post-execution evidence fingerprint, wherein any field appended to the post-execution evidence fingerprint does not change the selection result of the production version.

[0141] The rules for forming post-execution evidence fingerprints stipulate that the result field is only appended to the pre-execution routing fingerprint without replacing or modifying existing fields, and any appended field does not change the production version selection result. The post-execution evidence fingerprint can also be associated with the production version identifier, execution time, valid configuration hash, and input record digest, but this association information does not replace fixed environment fields. If post-execution verification fails, the system enters an out-of-bounds handling and rollback process, instead of rerunning the initial candidate selection and approving the current version using the post-execution evidence fingerprint. This isolates the initial routing from post-execution verification in terms of time sequence and data dependency. This constraint ensures that the post-execution evidence fingerprint is a strict successor to the pre-execution routing fingerprint causally, and the unidirectional causal relationship between the two-stage fingerprints is forcibly maintained at runtime.

[0142] Example 7

[0143] Based on Example 1, the step of determining whether the production version meets the post-execution conditions based on the post-execution evidence fingerprint, excluding the production version if it does not meet the conditions, and re-determining fallback candidates that meet the preset conditions for compatibility with the current operating environment from each of the combined versions based on the pending health check data and the current operating environment, excluding the production version, taking the highest-ranked version as the fallback version according to the preset fallback sorting rules, and using atomic comparison update to switch the route to the fallback version includes:

[0144] S4.1. Set the post-execution conditions to include field unit consistency constraint, numerical value range constraint, required field integrity constraint, and prohibited field consistency constraint. The field unit consistency constraint means that the unit of the result field is consistent with the standard unit declared in the production version. The numerical value range constraint means that the value of the result field is within the preset allowed value range. The required field integrity constraint means that all preset required fields have been generated. The prohibited field consistency constraint means that the preset prohibited fields have not been changed before and after execution.

[0145] This step clarifies the four constraints of the post-execution conditions, transforming the abstract "condition satisfied" judgment into four concrete assertions that can be verified by a machine. The field unit consistency constraint captures unit conversion errors; the numerical value range constraint captures numerical overflow or outliers; the required field integrity constraint captures missing output fields; and the prohibition on changing field consistency constraint captures unexpected changes to fields that should not be modified by the processor. These four constraints together constitute the completeness verification framework for the processor's execution results.

[0146] S4.2. Verify each of the four constraints—the field unit consistency constraint, the numerical value range constraint, the required field integrity constraint, and the constraint prohibiting changes to field consistency—using the post-execution evidence fingerprint to determine whether they are valid, and obtain an out-of-bounds determination result indicating whether all four constraints are valid.

[0147] Using post-execution evidence fingerprints as the verification object, four constraints are evaluated item by item. The mechanism is that post-execution evidence fingerprints simultaneously carry pre-execution fields (from the pre-execution route fingerprint) and post-execution fields (appended result fields). Therefore, it is possible to verify "consistency constraints of fields before and after execution" (such as prohibiting changes to the values ​​of fields before and after execution) and "pure post-execution constraints" (such as the units and numerical ranges of result fields) on a single object, without the need to additionally query the pre-execution snapshot. The out-of-bounds determination result records at least the pass or violation status, the violation item, the verification configuration version, and the evidence summary.

[0148] S4.3. When the boundary violation determination result indicates that any one of the four constraints is not met, the production version is determined to not meet the post-execution conditions, triggering a rollback and excluding the production version.

[0149] The above steps employ a strategy of "triggering a rollback immediately if any constraint fails," rather than "allowing if most constraints are met." This reflects a conservative design principle in version routing: the correctness of health check data processing requires that no field constraint can be violated; the failure of a single constraint means that the processing result of this version has a specific and identifiable defect. Abnormal versions are marked as unselectable in the current task and its corresponding applicable environment. Depending on the anomaly level, their status can be changed from officially effective to isolated, but the status change does not affect the exclusion operations already executed.

[0150] S4.4. The combined version of the current physical examination data to be processed and the pre-executed route fingerprint belonging to the bound allowed input domain, the route admission condition being hit by the pre-executed route fingerprint, the effective configuration being consistent with the current running environment, the field contract being compatible, the external dependencies being healthy and having passed the verification is placed into the fallback candidate set.

[0151] Specifically, a rollback candidate set is constructed, and its selection criteria consist of six parallel constraints. All six constraints must be satisfied simultaneously for a certain combination version to be placed into the rollback candidate set.

[0152] The first constraint is the allowed input domain attribution determination: using the preset determination rules bound to this combination version, it determines whether the current pending health check data and the pre-executed route fingerprint belong to the allowed input domains of this combination version. This determination uses the same determination rules as the allowed input domain determination in the production routing phase in S3.2, but it is executed independently again in the rollback phase instead of using the determination cache from the production routing phase. The reason for independent execution is that the runtime environment state (such as the availability of external dependencies and the status of configuration effectiveness) may have changed when the rollback is triggered, and using the determination results from the production routing phase would introduce the risk of inconsistency with the current runtime state. If the pre-executed route fingerprint of the current pending health check data does not belong to the allowed input domains of a candidate combination version, then even if the routing admission conditions of that version are met, it will not be placed in the rollback candidate set to ensure that the condition satisfaction after the execution of the rollback version is still valid under the allowed input domain constraint.

[0153] The second constraint is route admission condition hit: the route admission conditions of this combined version are matched forward with the current pre-executed route fingerprint. The matching process is the same as the candidate query logic in S3.1, that is, the route admission conditions are only composed of the pre-execution fields, and the matching is performed independently outside the execution of the handler. Route admission condition hit is a coarse-grained input environment compatibility verification to ensure that the design intent of this combined version covers the current input environment.

[0154] The third constraint is that the effective configuration must match the current runtime environment: the effective configuration bound when the combined version is frozen (consisting of independently reviewed and confirmed reference ranges, unit mappings, and applicable user conditions, etc.) is compared with the actual effective configuration at runtime, requiring that the two match within the scope of the field contract. If the configuration of the current runtime environment has been updated and is no longer compatible with the effective configuration bound to the candidate combined version, then the candidate combined version will not enter the rollback candidate set to prevent rollback to a historical version that depends on an expired configuration. The determination of effective configuration matching is mainly based on comparing the effective configuration hash of the combined version with the configuration hash of the current runtime environment; configuration matching is allowed under preset configuration compatibility rules (such as backward compatibility), but the compatibility rules must be frozen in advance along with the routing configuration and cannot be specified temporarily at runtime.

[0155] The fourth constraint is field contract compatibility: the input field format, field type, and field existence of the current physical examination data to be processed must satisfy the input field contract of the combined version declaration, and the output field contract of the combined version declaration must satisfy the acceptance requirements of the result fields in subsequent processing stages. Field contract compatibility is statically compared using machine-determinable contract declarations during S4.4 execution, without relying on the output verification after actually executing the candidate version.

[0156] The fifth constraint is external dependency health: all external dependencies registered when this composite version was frozen (including model services, reference data interfaces, tool call services, etc.) are currently available at runtime, and their version identifiers, call contracts, and service states all conform to the registration declarations. External dependency health checks are completed before being added to the rollback candidate set. If any external dependency is unavailable or its version is incompatible, this composite version will not be included in the rollback candidate set. The availability status of external dependencies is maintained by an independent health check mechanism. During the rollback candidate filtering phase, this status is queried in read-only mode, without triggering the redeployment or version switching of external dependencies.

[0157] The sixth constraint is that the combined version must have passed verification: This means the combined version's hash must have a valid full-scale verification pass flag, i.e., the verification result status in the verification report corresponding to its combined version hash is "passed," and the frozen object hash bound to the verification report is completely consistent with the frozen object hash of the current combined version. If any frozen object of the combined version (version content, dependent components, effective configuration, route admission conditions, post-execution conditions, or validity period) changes after verification, causing the combined version hash to become invalid, then the combined version will not have a valid verification pass flag and will not enter the rollback candidate set. This constraint ensures that every combined version in the rollback candidate set has undergone formal verification, and its post-execution condition satisfaction has a machine-verifiable proof within the allowed input domain.

[0158] During the construction of the rollback candidate set, the following two supplementary checks are also performed. First, a valid time check: the valid time period of the candidate combination versions must cover the current time; combination versions that have expired or have not yet taken effect are not included in the rollback candidate set. The valid time is based on the start and end times registered at the time of freezing, and time comparison uses a standardized timestamp from a preset time zone. Second, a non-empty fallback check: when all combination versions fail to meet the above six constraints, the rollback candidate set is empty. Instead of forcibly downgrading to select only those versions that meet the conditions, it enters the historical execution code reuse process or stops automatic processing, transferring it to manual review, according to the provisions in Example 8. This strategy ensures that the rollback candidate set has a minimum quality threshold, meaning that each combination version entering the candidate set meets the six baseline constraints: allowed input domain affiliation, compliance with admission conditions, matching configuration environment, field contract compatibility, healthy external dependencies, and passed validation.

[0159] S4.5. After excluding the production version from the rollback candidate set, sort the remaining combination versions in the rollback candidate set according to the environment matching dimension, rollback priority, effective time and version identifier, and take the combination version with the highest ranking as the rollback version.

[0160] The rollback candidate set is sorted sequentially by environment matching (prioritizing versions that more precisely match the current input environment), rollback priority (determined by the rollback priority field declared when each combined version is frozen, which can be set independently of the production version priority, such as prioritizing versions with shorter processing paths, fewer external dependencies, and more comprehensive validation coverage), effective time, and version identifier using a multi-level sorting key. This ensures that the optimal rollback target is selected when multiple versions exist in the rollback candidate set. The rollback candidate set is recalculated based on the current runtime environment, rather than directly copying the candidate set from the production route. Parent versions, historical versions, or earlier release versions can only enter the rollback candidate set if they simultaneously meet all the filtering criteria.

[0161] S4.6. The atomic comparison update with the expected current version identifier is used to switch the route to the fallback version only when the route still points to the production version, and the version identifier before and after the switch, the applicable environment scope defined by the effective configuration, the route configuration hash, the effective configuration hash and the combined version hash are saved.

[0162] Atomic comparison updates are used to perform route switching: the current version identifier stored in the route state is updated to the rollback version identifier only if it is still the production version identifier; otherwise, the switch is abandoned. This mechanism prevents the route from being overwritten to different versions multiple times after multiple concurrent processing threads trigger rollbacks in concurrent rollback scenarios, ensuring the uniqueness and consistency of the final route state. After the switch is completed, the version identifiers before and after the switch, the applicable environment scope defined by the effective configuration, the route configuration hash, the effective configuration hash, and the combined version hash are saved to form a compatibility report. This report records the allowed input domain judgment, route admission condition judgment, field contract check, external dependency check, validation gating status, and deterministic sorting process, enabling the rollback result to be reviewed and replayed.

[0163] In one example, the atomic comparison update is implemented through an atomic record containing "current version identifier and record version number": the rollback thread initiates a comparison and swap operation with the expected current version identifier. Only when the current version identifier stored in the atomic record matches the expected value is the rollback version identifier written and the record version number incremented. If the comparison and swap fails, the current switch is abandoned, the current route status is reread and the rollback candidate filtering is retried until the switch is successful or it is confirmed that the route has been updated by other rollback processes.

[0164] Example 8

[0165] Based on Example 1, the method further includes:

[0166] SA. When the rollback candidate set is empty after excluding the production version and there is reusable historical execution code, it is prohibited to directly concatenate the historical execution code with the effective configuration at runtime. Instead, the historical execution code and the effective configuration are used to construct a new candidate version.

[0167] The document specifies operational constraints for reusing historical execution code: Directly concatenating historical execution code with the current effective configuration at runtime is prohibited. This is because the configuration corresponding to the historical code may have changed, and direct concatenation would result in a runtime state that has never undergone full verification, making it impossible to guarantee the fulfillment of conditions after execution. Even if the historical execution code previously ran normally under other configurations, this does not presume its compatibility with the current effective configuration. Forcing the construction of a new candidate version together with the historical execution code and the current effective configuration, and incorporating it into the formal combined version management process, is a necessary condition for ensuring consistency between verification and runtime.

[0168] SB. Reform the routing admission conditions and the post-execution conditions for the new candidate version, and re-execute the verification for all allowed input combinations in the allowed input field to obtain the verification result of the new candidate version and the new combination version hash.

[0169] A full verification is re-executed for the new candidate version, instead of reusing the verification results of the original combined version of the historical code. The reason is the same as in S2.10: the binding relationship between the verification result and the verified object is maintained through the combined version hash. The new candidate version has a different combination of frozen objects, and must be re-verified to obtain valid verification evidence. The new candidate version has an independent combined version identity and does not use the verification report of the historical version. The system re-verifies its input and output field contracts, component dependencies, configuration adaptation relationships, and allowed input fields.

[0170] SC. Perform static verification, sample selection, and pairwise replay on the new candidate version to obtain the verification result of the new candidate version. The static verification refers to checking whether the code and configuration of the new candidate version conform to preset rules without actually executing the new candidate version. The sample selection refers to selecting input samples for replay from the allowed input fields. The pairwise replay refers to sending the input samples to the new candidate version and the replaced version respectively and comparing the consistency of the output of the new candidate version and the replaced version.

[0171] The requirement is to select samples within the allowed input domain and perform pairwise replays. Sample selection is used to provide representative replay data to confirm the consistency of the output of the new candidate version and the replaced version on the selected samples, serving as a runtime supplementary verification to the full constraint solver validation. Pairwise replays run the baseline path and the new candidate path separately using the same input. Full validation still targets the machine-decidable input domain and cannot be replaced by sample replays. The results of pairwise replays and static validation together constitute a multi-level validation evidence chain.

[0172] SD. Before the verification result indicates that the new candidate version has passed the verification, and the verification result indicates that the static check, the sample selection, and the pairwise playback have all passed, the automatic processing of the applicable environment scope defined by the effective configuration is suspended and transferred to manual review.

[0173] The regulation stipulates that automatic processing for the corresponding applicable environment should be suspended and transferred to manual review until a new candidate version has completed full verification and validation. This is another manifestation of the conservative principle: when there is no usable version that has passed verification, manual intervention is superior to unverified automatic processing. Historical versions and historical valid configurations remain read-only and are only used for historical environment reproduction. They will not regain their production-effective state due to viewing, replaying, or rollback requests, thus isolating the historical reproduction environment from the current production environment.

[0174] SE. When the rollback candidate set is empty and has no reusable historical execution code after excluding the production version, stop automatic processing of the applicable environment scope defined by the effective configuration.

[0175] Specifically, this step specifies a fallback strategy for situations where the rollback candidate set is empty after excluding production versions and there is no reusable historical execution code. The mechanism and implementation method are as follows.

[0176] Step SE corresponds to a scenario where the system has already confirmed that no reusable historical executable code is available before going through the entire SA to SD process, thus rendering all alternative recovery paths infeasible. Situations where reusable historical executable code is unavailable include: the artifact repository for the historical executable code does not contain a historical version compatible with the current input field pattern, health check item set, and external dependency declarations; the historical version exists, but its artifact hash does not match the archived record in the artifact repository, failing integrity verification; all dependent components of the historical version are unreachable in the current runtime environment, preventing a complete build; and the code signature of the historical version has expired or been revoked, failing to meet the code source verification requirements of the current runtime environment. Any of these situations renders the historical executable code unsuitable for rebuilding as a new candidate version in the current runtime environment, thus preventing it from entering the new candidate version build process specified by SA.

[0177] Upon confirming the above conditions, immediately halt all automated processing tasks within the applicable environment scope defined by the currently effective configuration. The scope of the halt is limited to the applicable environment scope of the effective configuration, covering only processing tasks bound to the production version due to the environmental conditions defined by the effective configuration, and does not extend to applicable environment scopes defined by other effective configurations, to avoid cascading interruptions of unrelated processing flows due to version unavailability in a single environment scope. The halt operation atomically updates the scheduling status of the processing tasks within the corresponding applicable environment scope, changing it from running to stopped, preventing new processing tasks from being scheduled and started within that applicable environment scope; processing tasks that have entered the execution phase are allowed to complete their current execution steps before checking their scheduling status, to avoid incomplete post-execution fingerprints due to forced termination in an intermediate state.

[0178] Upon stopping automatic processing, a stop event log is immediately generated. This log includes at least the applicable environment scope identifier that triggered the stop, the production version identifier and combined version hash, the time and basis for determining if the rollback candidate set is empty, the specific reasons why historically executed code is unavailable (corresponding to one or more of the above four categories), the configuration hash and external dependency status snapshot of the current operating environment, and the execution time and operator identifier of the stop operation. The stop event log is stored in read-only mode, and its hash, along with the combined version hash of the production version, is archived for subsequent manual review and audit tracing.

[0179] While stopping automatic processing, a review request is pushed to the preset manual review entry. The review request carries a summary of the stop event record, the backlog of pending health check data within the current applicable environment and the earliest backlog time, and a list of combined versions available for manual verification in the current operating environment (including a read-only view of expired and isolated versions). Manual reviewers can choose one of the following handling paths based on the above information: First, rebuild a new candidate version that meets the current configuration requirements outside the operating environment, complete full verification and validation, and then make it effective through the formal release process. When a valid combined version that has passed verification is detected within the corresponding applicable environment, the stop status is automatically lifted and scheduling is resumed; Second, if it is confirmed that the pending health check data within the current applicable environment needs to be processed manually, the backlog data is exported to the manual processing queue in read-only mode. After manual confirmation, the processing result is written back according to an independent review process, without going through version routing and rollback mechanisms; Third, if it is confirmed that the currently effective configuration itself has errors or has expired, a configuration change application is submitted. The configuration change must be independently reviewed and confirmed before it can take effect. After taking effect, it triggers the verification failure and re-verification process of the affected combined versions. Before manual review is completed, the automatic processing in the applicable environment will remain in a stopped state, and will not be automatically resumed due to timeout or external urging, so as to ensure that the resumption operation is always based on the valid technical status confirmed by humans.

[0180] Furthermore, the determination of the stop scope in this step needs to distinguish between two types of applicable environment boundaries. The first type is the exact match boundary: if the effective configuration explicitly declares the applicable environment scope (such as a specific set of institution identifiers, a specific set of medical examination items, or a specific equipment category), then the stop operation only covers this declared scope and does not extend to environments outside the declared scope, even if processing tasks outside this scope use the same version of the handler code. The second type is the broad match boundary: if the applicable environment scope of the effective configuration is declared as a global default or undefined, then the stop operation covers all processing tasks in the current operating environment that are not covered by other exact match configurations, and the stop events of the broad match scope are recorded and archived separately to distinguish them from the stop events of the exact match scope, facilitating subsequent analysis of the root cause of the broad configuration causing a large-scale stop. The above boundary determination logic also applies to the definition of the stop scope in the SA to SD process, maintaining consistency with SE.

[0181] Example 9

[0182] Based on Example 1, the method further includes:

[0183] SF. Solidify a pre-rollback snapshot with timestamps and hashes, wherein the pre-rollback snapshot includes the pre-execution route fingerprint, the post-execution evidence fingerprint, the production version's version identifier, the failure reason, and intermediate results.

[0184] The mechanism of pre-rollback snapshots is as follows: the pre-execution route fingerprint, post-execution evidence fingerprint, and failure reason in the snapshot together constitute a complete evidence record that triggers the rollback. The timestamped and hashed fixation method ensures that this evidence record can still be independently audited after the rollback is completed, preventing the rollback process itself from overwriting the failure evidence. The pre-rollback snapshot is saved in read-only mode as a baseline for isolated replay and post-rollback comparison; uncommitted intermediate results are stored in the isolated evidence area and must not be mixed with the formal input of the rollback version.

[0185] SG. In an isolated environment, replay the current physical examination data to be processed using the rollback version to obtain version and fingerprint matching evidence, independent data legality verification evidence, and rollback result verification evidence, and merge duplicate logs generated by the same module into one piece of evidence.

[0186] In an isolated environment (an execution sandbox isolated from the production environment), the current pending health check data is replayed using a rollback version, generating three types of evidence independently: version and fingerprint matching evidence (confirming that the combined version hash of the rollback version matches the route fingerprint, generated by the route verification entity), data legality verification evidence (confirming that the input data meets the allowed input field definition of the rollback version, generated by an independent verification entity), and rollback result verification evidence (confirming that the execution result meets the post-execution conditions of the rollback version, generated by the result verification entity). Duplicate logs generated by the same module are merged into one piece of evidence to prevent duplicate logs from being mistakenly counted as multiple independent pieces of evidence, ensuring that the completeness judgment of the evidence set is not misled; multiple files or multiple logs from the same generating entity should not increase the number of independent evidences. Precise comparison is used for deterministic fields to obtain version and fingerprint matching evidence; semantic invariant comparison is used for candidate texts using structural state, controlled terms, prohibited assertions, and manually reviewed markers to obtain business semantic consistency evidence.

[0187] SH. When the version and fingerprint matching evidence, the data legality verification evidence, and the rollback result verification evidence are all passed, and all preset rollback verification conditions are met, submit the rollback result and solidify the rollback snapshot. The rollback verification conditions include consistent units, adapted reference range, completion of mandatory verification, unchanged prohibited fields, and legal version status.

[0188] The five post-rollback verification conditions in this step (unit consistency, reference range adaptation, mandatory verification completed, prohibited fields unchanged, and version status valid) correspond to the four post-execution constraints defined in S4.1, and add the runtime condition of "version status valid" to ensure that the rolled-back version is still in a valid and effective state (not revoked or expired) at the time of submitting the rollback result. The rollback result can only be submitted and the post-rollback snapshot can only be fixed when all conditions are met. The object of the rollback submission is not only the version identifier, but also the security business status confirmed by independent evidence.

[0189] S1. If the version and fingerprint matching evidence, the data legality verification evidence, and the rollback result verification evidence all fail, or if the rollback verification conditions are not all met, discard the rollback result and transfer it to manual review or block it.

[0190] The rules stipulate that when rollback verification fails, the rollback result should be discarded and the process transferred to manual review or blocked, without taking downgrade measures (such as partial commit). The purpose of rollback is to restore the processing flow to a verifiable state. If the rollback version itself cannot pass verification, any automatic commit cannot provide an auditable guarantee of correctness. Manual intervention or blocking is the only way to meet audit requirements. For processing components with randomness, the output text is not required to be identical word for word, but all invariants such as its structural state, controlled terms, and prohibited assertions must be true for the rollback result to be considered valid.

[0191] Example 10

[0192] like Figure 4 As shown, the present invention also provides a two-stage environmental fingerprint health check skill package routing and rollback device, the device comprising:

[0193] The fingerprint generation module 401 is used to concatenate the pre-execution fields of the physical examination data to be processed, whose values ​​can be determined before the processing program is executed, to calculate the digest value and obtain the pre-execution route fingerprint.

[0194] Version freezing module 402 is used to pre-set the range of values ​​formed by the inputs that the processing program is allowed to receive as the allowed input field. For each allowed input combination within the allowed input field, it verifies that the field values ​​generated after the version of the processing program is executed meet the preset post-execution conditions. Only when all allowed input combinations are satisfied, the version that passes the verification, together with its dependent components, effective configuration, routing admission conditions, post-execution conditions, and validity period, is frozen as a combined version. If any frozen object changes, the verification result of the combined version becomes invalid.

[0195] The routing execution module 403 is used to match the routing admission conditions of each of the combined versions with the pre-execution routing fingerprint. When multiple versions are matched, the version with the highest ranking is selected as the production version and executed according to a preset sorting rule. The result field generated after execution is appended to the pre-execution routing fingerprint to obtain the evidence fingerprint after execution.

[0196] The out-of-bounds rollback module 404 is used to determine whether the production version meets the post-execution conditions based on the post-execution evidence fingerprint. If it does not meet the conditions, the production version is excluded. Based on the pending health check data and the current operating environment, rollback candidates that meet the preset conditions for compatibility with the current operating environment are re-determined among the combined versions. After excluding the production version, the version with the highest sorting order is selected as the rollback version according to the preset rollback sorting rules. The route is switched to the rollback version using atomic comparison update.

[0197] The fingerprint generation module 401 receives the physical examination data to be processed, extracts the pre-execution fields, calculates the summary value, and outputs the pre-execution route fingerprint, which is then passed to the route execution module 403. The version freeze module 402 runs independently in the release process, completes full verification, generates various combined versions, and provides the set of valid combined versions to the route execution module 403 and the out-of-bounds rollback module 404 for querying. The route execution module 403 matches the route admission conditions of each combined version with the pre-execution route fingerprint, determines and executes the production version, and generates a post-execution evidence fingerprint, which is then passed to the out-of-bounds rollback module 404. The out-of-bounds rollback module 404 performs out-of-bounds judgment based on the post-execution evidence fingerprint. If the judgment does not meet the post-execution conditions, it filters rollback candidates from the set of valid combined versions, completes the route switch through atomic comparison updates, and feeds back the switch record to the route execution module 403 to update the current effective route status.

[0198] In one implementation, the fingerprint generation module 401 may include a field reading unit, a field normalization unit, a key field integrity check unit, and a fingerprint generation unit. The field reading unit reads fields that can be determined before execution from source metadata and independent audit configuration; the field normalization unit maps each field to a standardized code, including mapping enumerated values ​​to standard codes, standardizing time zones and precision for time values, and standardizing the format of version values; the key field integrity check unit outputs a manual processing flag when any field in the health check item code or check protocol identifier, device identifier, firmware version, or detection method is missing, without presuming other devices, methods, or reference configurations; the fingerprint generation unit sorts and normalizes the fingerprints according to a fixed field pattern, then calculates a digest value to obtain the pre-execution route fingerprint.

[0199] In one implementation, the version freeze module 402 may include an input domain construction unit, a constraint enumeration and abstraction unit, a constraint transformation unit, a solution unit, a proof evidence storage unit, and a hash freeze unit. The solution unit calls a constraint solver (such as an SMT solver) to solve the constraint expressions; if the proof result is unknown, times out, or has a counterexample, the version freeze module 402 prohibits the generation of a pass flag suitable for production release. The hash freeze unit calculates independent hashes for the version content, dependent components, effective configuration, routing admission conditions, and post-execution conditions, and then combines them with the validity period to generate a combined version hash; if any frozen input changes, this unit generates a new combined version identity and invalidates existing verification evidence.

[0200] In one implementation, the routing execution module 403 may include a candidate query unit, an allowed input field judgment unit, a validity check unit, a deterministic sorting unit, a process call unit, and a post-execution evidence recording unit. The deterministic sorting unit sorts the data in a fixed order based on the number of environment matching dimensions, preset priority, effective time, and version identifier. All sorting rules are pre-registered, ensuring that the same input, under the same configuration, yields the same unique production version. The post-execution evidence recording unit does not have the authority to modify the current production version selection result; the recorded result fields are only appended to the pre-executed routing fingerprint and do not replace or modify existing fields.

[0201] In one implementation, the out-of-bounds rollback module 404 may include a post-execution condition verification unit, an abnormal version exclusion unit, a rollback candidate generation unit, a rollback sorting unit, an atomic switching unit, and an audit evidence storage unit. The post-execution condition verification unit verifies each field's unit consistency constraint, numerical value range constraint, required field integrity constraint, and constraint prohibiting changes to fields' consistency. The rollback candidate generation unit recalculates the compatible rollback candidate set according to the current operating environment, rather than directly copying the candidate set from the production route. The atomic switching unit uses a comparison update with the expected current version identifier, performing the switch only if the route still points to the production version. The audit evidence storage unit stores the version identifiers before and after the switch, the applicable environment scope, the route configuration hash, the effective configuration hash, and the combined version hash.

[0202] The aforementioned device can be deployed on a single server or implemented collaboratively by multiple computing nodes. Each module can be implemented using software, hardware, or a combination of both. In a distributed deployment, the combined version identity, verification report, and routing configuration are provided to the routing execution module 403 using a consistent read-only snapshot, and the routing switch operation is completed through a state storage component with atomic comparison and update capabilities. This invention can also be executed by a computer device, which includes a processor and a memory. The memory stores a computer program, and when the processor executes the computer program, it implements the methods described in any of the above embodiments. A corresponding computer-readable storage medium can store a computer program for implementing the above methods.

[0203] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of this application should be included within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.

Claims

1. A two-stage environmental fingerprinting health check skill package routing and rollback method, characterized in that, An application is made in a health checkup data processing system, wherein the environmental fingerprint is a comparable digest formed by normalizing and encoding several environmental fields in a fixed order, and the skill package is a versionable processing program for processing health checkup data; the method includes: The pre-execution route fingerprint is obtained by concatenating the pre-execution fields whose values ​​can be determined before the processing program is executed and calculating the summary value. The range of values ​​formed by the inputs that the processing program is allowed to receive is pre-defined as the allowed input domain. For each allowed input combination within the allowed input domain, the field values ​​generated after the version of the processing program is executed are verified to meet the preset post-execution conditions. Only when all allowed input combinations are satisfied are the verified version, along with its dependent components, effective configuration, routing admission conditions, post-execution conditions, and validity period, frozen as a combined version. If any frozen object changes, the verification result of the combined version becomes invalid. The routing admission conditions of each of the combined versions are matched with the pre-execution route fingerprint. When multiple matches are found, the version with the highest ranking is selected as the production version and executed according to a preset sorting rule. The result field generated after execution is appended to the pre-execution route fingerprint to obtain the execution evidence fingerprint. Based on the post-execution evidence fingerprint, determine whether the production version meets the post-execution conditions. If it does not meet the conditions, exclude the production version. Based on the physical examination data to be processed and the current operating environment, re-determine the rollback candidates that meet the preset conditions for compatibility with the current operating environment in each of the combined versions. After excluding the production version, take the version with the highest sorting order according to the preset rollback sorting rules as the rollback version. Use atomic comparison update to switch the route to the rollback version.

2. The method according to claim 1, characterized in that, The step of concatenating and calculating a digest value from pre-execution fields whose values ​​can be determined before the processing program is executed to obtain a pre-execution route fingerprint includes: The pre-execution fields are set to include the organization identifier, equipment identifier or firmware version, detection method, physical examination item code or examination protocol identifier, and the version identifier of the reference configuration that has been reviewed and is currently in effect. The actual standard unit, the actual selected reference range version, and the reagent batch are set as fields whose values ​​cannot be determined before the execution of the processing procedure and are not included in the pre-execution fields. If any of the fields in the pre-execution field, such as the physical examination item code or examination protocol identifier, the device identifier or firmware version, or the detection method, are missing, no value will be assumed for the missing field, and the corresponding physical examination data to be processed will be transferred to manual processing. For the physical examination data to be processed that has not been transferred to manual processing, the pre-execution fields are sorted according to a preset fixed field pattern, and the sorted pre-execution fields are concatenated into a descriptive string according to a preset normalized format. The descriptive value is calculated on the descriptive string to obtain the pre-execution route fingerprint.

3. The method according to claim 1, characterized in that, The preset range of values ​​for the inputs allowed by the processing program is defined as the allowed input field. This allowed input field is a machine-determinable input field comprised of the input field pattern, institutional authorization scope, medical examination items, equipment identification or testing method identification, applicable population conditions, and data generation time. The routing admission conditions for the combined version are constructed based on the pre-execution fields. The routing admission conditions consist only of the pre-execution fields and do not include fields generated after the execution of the processing program. Furthermore, it is prohibited to route records that do not meet the preset post-execution conditions to the combined version, so that the pre-execution routing fingerprint can be matched with the routing admission conditions before the processing program is executed. Each allowed pre-execution route fingerprint within the allowed input domain and all input values ​​that match the allowed pre-execution route fingerprint are determined as the allowed input combination; Each of the aforementioned combined versions is bound to a preset judgment rule for determining whether the physical examination data to be processed belongs to the allowed input field.

4. The method according to claim 1, characterized in that, For each allowed input combination within the allowed input field, the verification that the field values ​​generated after the execution of the processing program version meet preset post-execution conditions includes: Extend the fields generated after execution on the pre-execution route fingerprint according to the fixed field pattern to obtain the value pattern of the evidence after execution; For fields in the value selection pattern that are enumerable, list all their values. For fields in the value selection pattern that have consecutive values ​​or whose number of values ​​exceeds a preset threshold, merge them into value ranges or symbolic variables to obtain the input value representation of the allowed input domain. The input value representation and the post-execution condition are converted into a constraint expression. The constraint solver solves the constraint expression and determines whether there is an input combination that does not satisfy the post-execution condition among the input combinations defined by the input value representation, thus obtaining the verification result. If the verification result indicates that the verification is not present, the verification is deemed to be successful, and the allowed input field, the solver version of the constraint solver, and the hash of the verification result are saved. If the verification result indicates that the verification is present, or the constraint solver returns an unknown value or a timeout occurs, the corresponding physical examination data to be processed is transferred to manual processing.

5. The method according to claim 1, characterized in that, The process of freezing the verified version along with its dependent components, effective configuration, routing admission conditions, post-execution conditions, and validity period into a combined version, where the verification result of the combined version becomes invalid if any frozen object changes, includes: Calculate the hashes of the content of the version, the dependent components, the effective configuration, the route admission conditions, and the post-execution conditions respectively to obtain the hashes of each frozen object; A combined version hash is generated based on the hash of each frozen object and the validity period, and the hash of the allowed input field, the solver version, and the hash of the verification result are bound in the verification report; If either the hash of each frozen object or the validity period changes, the existing verification result of the combined version is determined to be invalid and the verification is re-executed. Set the parent version of the combined version to only indicate a derivation relationship and not as a fallback qualification.

6. The method according to claim 1, characterized in that, The process involves matching the routing admission conditions of each of the combined versions using the pre-execution route fingerprint. When multiple matches are found, the version with the highest ranking according to a preset sorting rule is selected as the production version and executed. The result fields generated after execution are appended to the pre-execution route fingerprint to obtain the post-execution evidence fingerprint, including: The candidate version set is obtained by querying the combined versions that are in an effective state, whose route admission conditions are hit by the pre-executed route fingerprint, whose field contracts are compatible, whose external dependencies are available, whose effective configuration is consistent with the current running environment and has passed the verification. The current physical examination data to be processed and the pre-execution route fingerprint are determined according to the preset judgment rules to determine whether they belong to the allowed input domain. The combined versions in which the pre-execution route fingerprint does not belong to the allowed input domain are removed from the candidate version set to obtain a filtered candidate version set. The removal is only performed on the combined versions that have hit the route admission conditions. When the filtered candidate version set contains multiple combined versions, the combined versions in the filtered candidate version set are sorted according to a preset sorting rule, and the combined version with the highest sorting is taken as the production version. Execute the production version to obtain the result field. Append the result field to the pre-execution route fingerprint in a preset order to obtain the post-execution evidence fingerprint. The post-execution evidence fingerprint does not change the selection result of the production version.

7. The method according to claim 6, characterized in that, The process involves determining whether the production version meets the post-execution conditions based on the post-execution evidence fingerprint. If not, the production version is excluded. Based on the pending health check data and the current operating environment, a new rollback candidate that meets the preset conditions for compatibility with the current operating environment is determined from each of the combined versions. After excluding the production version, the version with the highest ranking according to the preset rollback sorting rules is selected as the rollback version. An atomic comparison update is used to switch the route to the rollback version, including: The post-execution conditions are set to include field unit consistency constraints, numerical value range constraints, required field integrity constraints, and prohibited field consistency constraints. The field unit consistency constraint means that the unit of the result field is consistent with the standard unit declared in the production version. The numerical value range constraint means that the value of the result field is within the preset allowed value range. The required field integrity constraint means that all preset required fields have been generated. The prohibited field consistency constraint means that the preset prohibited fields have not been changed before and after execution. The execution evidence fingerprint is used to verify whether the four constraints of the field unit consistency constraint, the numerical value range constraint, the required field integrity constraint, and the constraint prohibiting changes to the field consistency constraint are valid, and an out-of-bounds determination result indicating whether all four constraints are valid is obtained. If the boundary violation determination result indicates that any one of the four constraints is not met, the production version is determined to not meet the post-execution condition, triggering a rollback and excluding the production version. The combined version of the current physical examination data to be processed, the pre-executed route fingerprint belonging to the bound allowed input field, the route admission condition being hit by the pre-executed route fingerprint, the effective configuration being consistent with the current running environment, the field contract being compatible, the external dependencies being healthy and having passed the verification, is placed into the fallback candidate set; After excluding the production version from the rollback candidate set, the remaining combination versions in the rollback candidate set are sorted in sequence according to environment matching dimension, rollback priority, effective time and version identifier, and the combination version with the highest sorting is taken as the rollback version. The atomic comparison update with the expected current version identifier is used to switch the route to the fallback version only if the route still points to the production version, and the version identifier before and after the switch, the applicable environment scope defined by the effective configuration, the route configuration hash, the effective configuration hash and the combined version hash are saved.

8. The method according to claim 7, characterized in that, The method further includes: When the rollback candidate set is empty after excluding the production version and there is reusable historical execution code, it is prohibited to directly concatenate the historical execution code with the effective configuration at runtime. Instead, the historical execution code and the effective configuration are used to construct a new candidate version. The routing admission conditions and post-execution conditions are re-formulated for the new candidate version, and the verification is re-executed for all allowed input combinations in the allowed input field to obtain the verification result of the new candidate version and the new combination version hash; Static verification, sample selection, and pairwise replay are performed on the new candidate version to obtain the verification result of the new candidate version. The static verification refers to checking whether the code and configuration of the new candidate version conform to preset rules without actually executing the new candidate version. The sample selection refers to selecting input samples for replay from the allowed input fields. The pairwise replay refers to sending the input samples to the new candidate version and the replaced version respectively and comparing the consistency of the output of the new candidate version and the replaced version. Before the verification result indicates that the new candidate version has passed the verification, and the verification result indicates that the static check, the sample selection, and the pairwise playback have all passed, the automatic processing of the applicable environment scope defined by the effective configuration is suspended and transferred to manual review. When the rollback candidate set is empty and has no reusable historical execution code after excluding the production version, automatic processing of the applicable environment scope defined by the effective configuration is stopped.

9. The method according to claim 7, characterized in that, The method further includes: A pre-rollback snapshot with timestamp and hash is solidified, and the pre-rollback snapshot includes the pre-execution route fingerprint, the post-execution evidence fingerprint, the production version's version identifier, the failure reason, and intermediate results; In an isolated environment, the current physical examination data to be processed is replayed with the rollback version to obtain version and fingerprint matching evidence, independent data legality verification evidence and rollback result verification evidence, and duplicate logs generated by the same module are merged into one piece of evidence; When the version and fingerprint matching evidence, the data legality verification evidence, and the rollback result verification evidence are all passed, and all the preset rollback verification conditions are met, the rollback result is submitted and the rollback snapshot is fixed. The rollback verification conditions include consistent units, adapted reference range, completion of mandatory verification, unchanged prohibited fields, and legal version status. If the version and fingerprint matching evidence, the data legality verification evidence, and the rollback result verification evidence all fail, or if the rollback verification conditions are not all met, the rollback result is discarded and transferred to manual review or blocked.

10. A two-stage environmental fingerprint health check skill package routing and rollback device, characterized in that, The device includes: The fingerprint generation module is used to concatenate and calculate the digest value of the pre-execution fields of the physical examination data to be processed, whose values ​​can be determined before the processing program is executed, to obtain the pre-execution route fingerprint; The version freezing module is used to pre-set the range of values ​​formed by the inputs that the processing program is allowed to receive as the allowed input field. For each allowed input combination within the allowed input field, it verifies that the field values ​​generated after the version of the processing program is executed meet the preset post-execution conditions. Only when all allowed input combinations are satisfied, the version that passes the verification, together with its dependent components, effective configuration, routing admission conditions, post-execution conditions, and validity period, is frozen as a combined version. If any frozen object changes, the verification result of the combined version becomes invalid. The routing execution module is used to match the routing admission conditions of each of the combined versions with the pre-executed routing fingerprint. When multiple matches are found, the version with the highest ranking is selected as the production version and executed according to a preset sorting rule. The result field generated after execution is appended to the pre-executed routing fingerprint to obtain the evidence fingerprint after execution. The out-of-bounds rollback module is used to determine whether the production version meets the post-execution conditions based on the post-execution evidence fingerprint. If it does not meet the conditions, the production version is excluded. Based on the pending health check data and the current operating environment, rollback candidates that meet the preset conditions for compatibility with the current operating environment are re-determined among the combined versions. After excluding the production version, the version with the highest sorting order is selected as the rollback version according to the preset rollback sorting rules. The route is switched to the rollback version using atomic comparison update.