Installation adaptation method and system based on heterogeneous architecture fingerprints
By generating heterogeneous architecture capability fingerprints and undo migration graphs, the installation path of heterogeneous architectures is identified, solving the problem of installation path identification and reliability recovery in heterogeneous environments, and achieving efficient and reliable installation adaptation.
Patent Information
- Application Number
- CN202611408552.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-11
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies struggle to identify architectural capability dependencies in heterogeneous environments, cannot determine the native installation path, and are difficult to reliably recover from installation failures.
By acquiring the target installation task record, a target environment baseline snapshot is generated. The operation sequence of retaining and undoing the shadow environment is utilized to generate heterogeneous architecture capability fingerprints. Candidate installation packages are parsed to generate an installation capability witness chain. Architecture capabilities are undone item by item and the installation process is replayed to generate a capability undoing migration graph. The first installation capability anchor point is determined, the smallest native closed chain is selected, and an architecture routing sealing token is generated to ensure the reliability of the installation process.
Accurately identify differences in installation execution, ensure the causality and reliability of the installation path, reduce the number of times the installation object is replaced, improve the stability of native adaptation, prevent environmental state drift, and ensure the controllability and traceability of installation adaptation.
Smart Images

Figure CN123177833A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software installation and adaptation technology, specifically to an installation and adaptation method and system based on heterogeneous architecture fingerprints. Background Technology
[0002] With the development of cloud computing, virtualization technology, heterogeneous computing architecture, and the application environment of domestic information technology, the targets of software deployment have gradually expanded from single processor architectures to runtime environments with multiple processor architectures coexisting. Integrated development and operations (IDEs) further promote the automated connection of software building, installation, verification, and operation management processes. Multi-architecture image building, instruction compatibility analysis, binary translation, runtime environment adaptation, and deployment process control have become important technical aspects in the delivery of heterogeneous architecture software.
[0003] For example, application CN121979579A discloses a deployment and adaptation platform for a multi-core training system under a domestically developed information technology innovation environment. This platform includes an instruction analysis module, a timing modeling module, a deployment engine, an adaptive execution module, and a runtime control module. This invention uses the instruction analysis module to pre-scan the target training system and generate a high-risk instruction fingerprint database; the timing modeling module establishes a standard timing model; during system runtime, the adaptive execution module adaptively selects native execution, lightweight hot patch replacement execution, or on-demand binary translation execution strategies based on the high-risk instruction fingerprint database to reduce performance overhead; the runtime control module monitors key event timing indicators and compares them with the standard timing model, sending timing compensation commands to the resource scheduler when timing drift is detected to adjust the resource quotas of the target running container.
[0004] For example, application CN116166379B discloses a method for image trimming and multi-architecture image building based on a cloud platform. By introducing layer-based image management technology, the granularity of image management is adjusted from the image as a unit to the image layer as a unit. The image layer stores specific content and uses a unique fingerprint identifier. Images can be separated and spliced on demand and at the layer level, providing technical support for image trimming, rapid generation of heterogeneous images, and image preheating. The layer-based image management technology stores image layer information and the relationship between image layers in the image metadata repository. It has zero intrusion into existing image specifications, is compatible with existing images, and solves problems such as large image storage space, low image distribution efficiency, slow image startup speed, need to recreate images when adapting to new architectures, and high maintenance costs of multi-architecture images in cloud-native environments.
[0005] However, existing technologies mainly achieve heterogeneous environment adaptation through high-risk instruction identification, execution strategy switching, image layer trimming, and multi-architecture image construction. However, they are difficult to identify architecture capability dependencies and architecture capability transmission paths during the installation process, cannot determine natively executable installation paths based on architecture capability revocation results, and lack processing mechanisms for verifying, sealing, and restoring deviations from installation paths. This results in inaccurate selection of alternative installation objects, difficulty in eliminating cross-architecture translation dependencies, and insufficient reliability of recovery after installation failure.
[0006] Therefore, in order to address the above issues, there is an urgent need to provide an installation adaptation method and system based on heterogeneous architecture fingerprints. Summary of the Invention
[0007] Technical problems to be solved To address the shortcomings of existing technologies, this invention provides an installation adaptation method and system based on heterogeneous architecture fingerprints, which solves the problems of difficulty in identifying architecture capability dependencies, difficulty in determining the native installation path, and difficulty in reliably recovering after installation failure in existing heterogeneous architecture installation adaptation.
[0008] Technical solution To achieve the above objectives, the present invention provides the following technical solution: an installation adaptation method based on heterogeneous architecture fingerprints, comprising: S1, acquiring the target installation task record and performing a baseline snapshot on the target installation environment to generate a target environment baseline snapshot number; executing a capability challenge operation sequence and a basic back-substitution operation sequence in the capability retention shadow environment and the capability revocation shadow environment to generate a heterogeneous architecture capability fingerprint; S2, parsing candidate installation packages to generate installation object capability records, generating an installation capability witness chain in the capability retention shadow environment, revoking architecture capabilities item by item and replaying the installation process to generate a capability revocation migration graph; S3, mapping the heterogeneous architecture capability fingerprint to the capability revocation migration graph, determining the first installation capability anchor point, generating a candidate native closed chain by connecting back-substitution anchor points or filtering alternative installation objects, filtering the minimum native closed chain, determining the target candidate installation package number, and generating an architecture capability sealing record; S4, generating an architecture routing sealing token based on the minimum native closed chain and the architecture capability sealing record, executing the target candidate installation package installation and business verification in the transaction installation environment, and generating an installation adaptation closing record or restoring the target installation environment based on the actual installation witness chain.
[0009] Further, the specific steps for obtaining the target installation task record and performing a baseline snapshot of the target installation environment to generate the target environment baseline snapshot number are as follows: Obtain the target installation task record including the target environment number, the candidate installation package number set, the installation command parameter value, the business verification input record, and the business verification baseline output summary value; read the target execution architecture encoding value and the target execution bit width value; perform a baseline snapshot on the system disk, virtual processor feature configuration, virtualization device pass-through configuration, device access permissions, and cross-architecture interpreter registration status of the target installation environment to generate the target environment baseline snapshot number.
[0010] Furthermore, the specific steps for generating heterogeneous architecture capability fingerprints by executing capability challenge operation sequences and basic back-generation operation sequences in the capability retention shadow environment and capability revocation shadow environment are as follows: Read the architecture capability encoding value, capability challenge operation sequence, and basic back-generation operation sequence from the architecture probe rule base according to the target execution architecture encoding value; create a capability retention shadow environment and a capability revocation shadow environment based on the target environment baseline snapshot number; in the capability revocation shadow environment, execute only one of the following architecture capability revocation operations each time: clear a virtual processor feature bit; revoke a device pass-through relationship and corresponding device access permissions; deregister a cross-architecture interpreter registration item, generating an architecture capability revocation record; execute the same capability challenge operation sequence and basic back-generation operation sequence in the capability retention shadow environment and the capability revocation shadow environment respectively, and collect the virtual machine exit reason encoding value at the host layer, the processor exception vector value and device node access status value at the guest layer, and the process exit status at the installation process layer. The system generates a same-source revocation witness frame by taking the value, cross-architecture interpreter call flag, and output digest value. Following the order of host layer, client layer, and installation process layer, it aligns the same-source revocation witness frames corresponding to the same architecture capability encoding values. The first acquisition layer with at least one inconsistent value for a state field with the same name is identified as the capability source layer. Starting from the capability source layer, adjacent acquisition layers with inconsistent values for the same-name state fields are connected layer by layer until the next acquisition layer has no field differences, generating capability transfer edges. When the process exit status value of the capability challenge operation sequence is zero, and the output digest value is the same as the output digest value of the basic back-substitution operation sequence, a native closure flag is generated if the cross-architecture interpreter call flag is invalid, and a translated closure flag is generated if it is valid. When the process exit status value of the basic back-substitution operation sequence in the capability revocation shadow environment is zero, and the output digest value is the same as the output digest value of the basic back-substitution operation sequence in the capability retention shadow environment, a basic back-substitution closure flag is generated, forming a heterogeneous architecture capability fingerprint.
[0011] Further, the specific steps for generating installation object capability records by parsing candidate installation packages and generating an installation capability witness chain in the capability retention shadow environment are as follows: Read the candidate installation packages, identify the installation script, main executable file, dynamic link libraries, lazy-loaded plugins, and kernel driver files in the read-only unpacking space, and assign installation object numbers to each file; parse the machine instruction area, processor attribute area, and device call area of each installation object, and write the candidate installation package number, installation object number, object file path value, object architecture encoding value, object execution bit width value, object instruction capability set, object device requirement number, and object interface summary value into the installation object capability record; in the capability retention shadow environment, execute unpacking, installation script execution, dynamic object loading, plugin loading, driver loading, main executable file startup, and business verification sequentially according to the installation command parameter values, recording the installation phase encoding value, installation object number, first execution address value, first call timestamp, device node access status value, cross-architecture interpreter call flag, and process exit status value when each architecture capability encoding value first participates in execution, connect each record according to the installation phase encoding value and the first call timestamp, and write the business verification output summary value at the end of the chain to generate the installation capability witness chain.
[0012] Further, the specific steps for revoking architectural capabilities item by item and replaying the installation process to generate a capability revocation migration graph are as follows: Call the architectural capability revocation record item by item according to the installed capability witness chain. Each time, recreate the capability revocation shadow environment based on the target environment baseline snapshot number and execute the same installation process. When the process exit status value is zero and the business verification output digest value is the same as the business verification baseline output digest value, the cross-architecture interpreter call flag in the capability revocation shadow environment changes from an invalid value to a valid value relative to the corresponding first participation record in the capability retention shadow environment, then a translation acceptance edge is generated. When the cross-architecture interpreter call flags in both shadow environments are invalid values, and at least one of the installation object number and the first execution address value changes, then a capability migration edge is generated. A rigid break edge is generated when the process exits abnormally. The first participation record of each architectural capability encoding value in the installed capability witness chain of the capability retention shadow environment is determined as the first touch anchor point, the endpoint of the capability migration edge is determined as the back-substitution anchor point, adjacent first touch anchor points are connected along the installed capability witness chain, and the capability migration edge, translation acceptance edge, and rigid break edge are written to generate the capability revocation migration graph.
[0013] Further, the specific steps for mapping heterogeneous architecture capability fingerprints to the capability withdrawal migration graph, determining the first-break installation capability anchor point, and generating candidate native closed chains by connecting back-substitution anchor points or filtering alternative installation objects are as follows: Map the heterogeneous architecture capability fingerprints to anchor points with the same architecture capability encoding value in the capability withdrawal migration graph. When the native closure marker is valid, write it to the native acceptable state; when the native closure marker is invalid but the translation closure marker is valid, write it to the translation dependent state; when both the native closure marker and the translation closure marker are invalid, write it to the capability disconnected state. Along the capability withdrawal migration graph, determine the first touch anchor point that is in the translation dependent state or the capability disconnected state as the first-break installation capability anchor point; retain the first-break installation capability anchor point. The previous connection path; when the first break installation capability anchor point connects to the capability migration edge and the basic back-substitution closure mark is valid, connect the back-substitution anchor point; when the first break installation capability anchor point connects to the translation acceptance edge or rigid break edge, select alternative installation objects from the installation object capability record whose object interface summary value is consistent with the object interface summary value corresponding to the installation object number in the first break installation capability anchor point record, whose object architecture code value is consistent with the target execution architecture code value, whose object execution bit width value is consistent with the target execution bit width value, and whose architecture capability code values in the object instruction capability set all have valid native closure marks in the heterogeneous architecture capability fingerprint, and generate object back-cut edges; perform the same processing on subsequent first touch anchor points to generate candidate native closure chains.
[0014] Further, the specific steps for selecting the smallest native closed chain, determining the target candidate installation package number, and generating the architecture capability sealing record are as follows: Create a native closure verification shadow environment for each candidate native closed chain, revoke the architecture capabilities recorded by anchors in the translation dependency state within the chain, replace the installation objects according to the object back-cut edge mapping, and execute the same installation process; when the actual installation object sequence is the same as the installation object number sequence in the candidate native closed chain, no processor exception occurs, no cross-architecture interpreter is called, the process exit status value is zero, the device node access status value indicates that the corresponding device node is accessible, and the business verification output digest value is the same as the business verification baseline output digest value, a native closure verification record is generated, and each judgment condition is determined as a native closure condition; arranged in order of increasing number of object back-cut edges and increasing number of capability migration edges. The candidate native closed chain that has been verified is selected as the minimum native closed chain, and the target candidate installation package number is determined. The capability migration edges and object back-cut edges in the minimum native closed chain are read. The sealing layer and sealing range are determined according to the capability source point layer and capability transmission edge in the heterogeneous architecture capability fingerprint based on the corresponding architecture capability encoding value. An architecture capability sealing record is generated based on the architecture capability revocation record. A capability sealing shadow environment and a capability replication sub-environment are created. The capability sealing shadow environment executes all architecture capability sealing records and runs the minimum native closed chain. Each capability replication sub-environment restores only one corresponding sealed architecture capability. After restoration, when the original first touch anchor point is re-entered and processor abnormality, process abnormal exit, or business verification output summary value is inconsistent with the business verification baseline output summary value is reproduced, a capability causal replication record is generated.
[0015] Furthermore, based on the minimum native closed chain and the architecture capability sealing record, an architecture routing sealing token is generated. The specific steps for executing the target candidate installation package installation and business verification in the transactional installation environment are as follows: The target environment number, target environment baseline snapshot number, target candidate installation package number, heterogeneous architecture capability fingerprint, minimum native closed chain, architecture capability sealing record, and capability causal repetition record are combined to generate an architecture routing sealing token. Based on the target environment baseline snapshot number, the capability challenge operation sequence and basic back-substitution operation sequence involved in the token are re-executed to form a heterogeneous architecture capability fingerprint to be executed. This fingerprint is then compared with the heterogeneous architecture capability fingerprint in the architecture routing sealing token. If they match, a token execution permission mark is generated. If they are different, a token invalidation flag is generated simultaneously; after generating the token execution permission flag, a transactional installation environment is created, and the virtual processor feature configuration, virtualization device pass-through configuration, device access permissions, and cross-architecture interpreter registration status are modified according to the architecture capability sealing record. The replacement installation object is mapped to the original installation object file path according to the object back-cut edges in the minimum native closed chain, generating the actual architecture sealing record; in the transactional installation environment, the installation of the target candidate installation package and business verification are performed according to the minimum native closed chain, generating the actual installation witness chain; the actual installation witness chain is compared with the minimum native closed chain item by item, and the record with the first difference is identified as the installation route deviating from the anchor point, the subsequent installation operation is stopped, and the transactional installation environment is kept isolated.
[0016] Furthermore, the specific steps for generating an installation adaptation closure record or restoring the target installation environment based on the actual installation witness chain are as follows: When the actual installation witness chain does not have an installation route deviation from the anchor point and the actual installation process meets the native closure conditions, the target candidate installation package installation file and installation configuration in the transaction installation environment are written to the target installation environment, and the actual architecture sealing record is written to the virtual machine startup configuration and the target service startup configuration to generate an installation adaptation closure record; when there is an installation route deviation from the anchor point, or the actual installation process does not meet the native closure conditions, the transaction installation environment is deleted, the target installation environment is restored according to the target environment baseline snapshot number, and the architecture route sealing token is written to the invalidation state.
[0017] The second aspect of this invention provides an installation adaptation system based on heterogeneous architecture fingerprints, comprising: an architecture fingerprint revocation generation module, an installation first-touch migration construction module, a native closed-path solving module, and an adaptation sealing token execution module, wherein: the architecture fingerprint revocation generation module is used to obtain the target installation task record and perform a baseline snapshot on the target installation environment to generate a target environment baseline snapshot number; execute capability challenge operation sequences and basic back-substitution operation sequences in the capability retention shadow environment and the capability revocation shadow environment to generate a heterogeneous architecture capability fingerprint; the installation first-touch migration construction module is used to parse candidate installation packages to generate installation object capability records and generate an installation capability witness chain in the capability retention shadow environment. The system performs the following steps: It revokes each architectural capability and replays the installation process, generating a capability revocation migration graph; the native closed path solving module maps heterogeneous architectural capability fingerprints to the capability revocation migration graph, determines the first installation capability anchor point, generates candidate native closed chains by connecting back-substitute anchor points or filtering alternative installation objects, filters the minimum native closed chain, determines the target candidate installation package number, and generates an architectural capability sealing record; the adaptation sealing token execution module generates an architectural routing sealing token based on the minimum native closed chain and the architectural capability sealing record, executes the installation of the target candidate installation package and business verification in the transaction installation environment, and generates an installation adaptation closure record or restores the target installation environment based on the actual installation witness chain.
[0018] Beneficial effects The present invention has the following beneficial effects: (1) The installation adaptation method and system based on heterogeneous architecture fingerprints form a common source comparison by capability retention shadow environment and capability revocation shadow environment, and generate heterogeneous architecture capability fingerprints by combining capability challenge operation sequence, basic back-substitution operation sequence and common source revocation witness frame. This can accurately attribute installation execution differences to specific architecture capabilities, distinguish native closure, translation closure and basic back-substitution closure, and avoid capability dependency omissions caused by static judgment based solely on processor architecture label, execution bit width and installation results.
[0019] (2) The installation adaptation method and system based on heterogeneous architecture fingerprints record the location and order of the first execution of the architecture capability through the installation capability witness chain, and then construct the capability revocation migration graph by using the revocation and replay results of each capability. This can unify and associate the first contact anchor point, back substitution anchor point, capability migration edge, translation acceptance edge and rigid break edge in the installation process, accurately identify the first break installation capability anchor point, and transform the installation mismatch analysis from result-based error reporting into a graph structure tracing with path relationship and causal basis.
[0020] (3) The installation adaptation method and system based on heterogeneous architecture fingerprints solves the candidate native closed chain by jointly solving the heterogeneous architecture capability fingerprint and capability revocation migration graph. The alternative installation object is selected based on the object interface summary value, object architecture encoding value, object execution bit width value and object instruction capability set. The native execution path can be reconstructed while maintaining the consistency of interface relationship and business verification output. Furthermore, the minimum native closed chain is selected according to the number of object back-cut edges and the number of capability migration edges, which can reduce the number of installation object replacements and execution path migrations, and improve the native adaptation stability of the target candidate installation package.
[0021] (4) The installation adaptation method and system based on heterogeneous architecture fingerprints generate architecture route sealing tokens by recording architecture capability sealing, recording capability causal re-enactment, and the minimum native closed chain. In the transaction installation environment, the heterogeneous architecture capability fingerprint to be executed is reviewed, the actual architecture sealing record is verified, and the actual installation witness chain is compared. This can prevent environment state drift and installation route deviation from entering the target installation environment. When the installation adaptation is closed, the transaction installation result is submitted. When the installation adaptation is not closed, the target installation environment is restored according to the target environment baseline snapshot number, thus taking into account the controllability, traceability, and recovery determinism of the installation release. Attached Figure Description
[0022] Figure 1 A flowchart illustrating the installation adaptation method based on heterogeneous architecture fingerprints; Figure 2 A diagram of the installation and adaptation system architecture based on heterogeneous architecture fingerprinting; Figure 3 A schematic diagram illustrating the revocation migration of heterogeneous architecture capabilities and the generation of the minimum native closed chain; Figure 4 This diagram illustrates the execution and installation of an adaptation closure for the routing sealing token. Detailed Implementation
[0023] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0024] Please see Figures 1-4This invention provides a technical solution: an installation adaptation method based on heterogeneous architecture fingerprints, comprising: S1, acquiring target installation task records and performing a baseline snapshot on the target installation environment to generate a target environment baseline snapshot number; executing a capability challenge operation sequence and a basic back-substitution operation sequence in a capability retention shadow environment and a capability revocation shadow environment to generate a heterogeneous architecture capability fingerprint; S2, parsing candidate installation packages to generate installation object capability records, generating an installation capability witness chain in the capability retention shadow environment, revoking architecture capabilities item by item and replaying the installation process to generate a capability revocation migration graph; S3, mapping the heterogeneous architecture capability fingerprint to the capability revocation migration graph, determining the first installation capability anchor point, generating a candidate native closed chain by connecting back-substitution anchor points or filtering alternative installation objects, filtering the minimum native closed chain, determining the target candidate installation package number and generating an architecture capability sealing record; S4, generating an architecture routing sealing token based on the minimum native closed chain and the architecture capability sealing record, executing the target candidate installation package installation and business verification in the transaction installation environment, and generating an installation adaptation closed record or restoring the target installation environment based on the actual installation witness chain.
[0025] Specifically, the steps for obtaining the target installation task record, performing a baseline snapshot of the target installation environment, and generating a target environment baseline snapshot number are as follows: Obtain the target installation task record, including the target environment number, a set of candidate installation package numbers, installation command parameter values, business verification input records, and business verification baseline output summary values; read the target execution architecture encoding value and the target execution bit width value. In practice, the target installation task record is read from the installation task table using the installation task number as the retrieval key. The target environment number is used to locate the virtual machine instance to be installed. The set of candidate installation package numbers is written according to the candidate order in the installation task table and the candidate order remains unchanged. The installation command parameter values are obtained according to the parameter name and parameter value. Values and parameter order values are written into the command parameter sequence; the business verification input record is generated and locked by the task orchestration terminal based on the business verification case table before the target installation task enters the pending execution state. The business verification input record includes at least the verification case number, input data storage location, and input data digest value. Before executing business verification, the input data is reread according to the input data storage location and the input data digest value is recalculated. If the recalculated input data digest value is the same as the input data digest value in the business verification input record, the corresponding input data is used to prevent the verification input from changing during the installation process; the business verification baseline output digest value is written by the task orchestration terminal before the target installation task is generated, prioritizing the target environment number, verification case number, and input data digest value. If the most recent historical verification record shows identical input data digest values, and no matching historical verification record exists, a temporary read-only verification copy is created based on the current state of the target installation environment. A business verification is then performed once in this temporary read-only verification copy. The business verification output data is serialized according to the output field order specified in the business verification test case table, and a business verification baseline output digest value is generated using SHA-256 digest processing. Subsequent installation processes generate business verification output digest values using the same output field order, serialization method, and digest processing method. The business verification result is determined to be identical if the business verification output digest value matches the business verification baseline output digest value bit by bit, thus ensuring consistency between the business verification results before and after installation. The verification results have a unified comparison standard; the installation package index table is queried item by item according to the candidate installation package number set to confirm that each candidate installation package number can locate a unique installation package file, and the installation package file digest value, installation package architecture code value, and installation package execution bit width value are read to prevent the installation package file whose content is changed by the target installation task record; the target execution architecture code value is obtained by the processor attribute reading interface in the target environment. The processor attribute reading interface reads the processor architecture identifier and converts it into a unified architecture code value. The target execution bit width value is determined by reading the processor long mode flag and address width field. The target execution architecture code value and the target execution bit width value together limit the native execution conditions of subsequent candidate installation objects;Integrity checks are performed on each field in the target installation task record. If the target environment number is empty, the candidate installation package number set is empty, the installation command parameter value cannot be parsed, the business verification input record cannot be located, the recalculated input data digest value is different from the input data digest value in the business verification input record, or the business verification baseline output digest value format does not conform to the SHA-256 digest output length, the current installation task is terminated and a task read failure record is written to avoid generating invalid baseline snapshots under incomplete input data conditions. Baseline snapshots are performed on the system disk, virtual processor feature configuration, virtualization device pass-through configuration, device access permissions, and cross-architecture interpreter registration status of the target installation environment to generate a target environment baseline snapshot number. Before executing the baseline snapshot, an installation freeze flag is written to the target environment, the creation of new installation processes is paused, the data to be written in the file cache is synchronized to the block storage medium, and the baseline snapshot timestamp is recorded so that all types of snapshot data correspond to the same runtime. For the system disk, a read-only baseline snapshot is created through the block storage copy-on-write interface. The copy-on-write interface retains the data blocks that already exist at the baseline time and writes the modified data generated after the baseline time to an independent incremental layer, thereby restoring the system disk state to the baseline time in case of installation failure. For virtual processor feature configuration, the number of virtual processors, processor architecture encoding value, execution bit width value, and the status of each virtual processor feature bit are read from the virtual machine configuration record, and virtual processor feature configuration snapshots are generated in ascending order of feature bit number. For virtualization device pass-through configuration, the pass-through device bus address value, device vendor number, device type number, input / output memory management group number, and target environment mount location are read from the device mapping record to generate a virtualization device pass-through configuration snapshot. For device access permissions... The system reads device node paths, access subject IDs, read permission flags, write permission flags, execute permission flags, and device access whitelist status from device permission records to generate a snapshot of device access permissions. For cross-architecture interpreter registration status, it reads all registered entries from the cross-architecture interpreter registry of the target environment, covering both enabled and disabled entries. It also reads the interpreter ID, interpreter file path, target instruction architecture encoding value, executable file magic number field, mask field, enable flag, and registration sequence value. The interpreter ID uniquely identifies the registered object, the interpreter file path locates the cross-architecture interpreter call path, the target instruction architecture encoding value identifies the adapted architecture, the executable file magic number field and mask field limit the scope of the interpreted file, and the enable flag indicates whether the registered entry can enter the call state. A snapshot of the cross-architecture interpreter registration status is generated in ascending order of registration sequence value, enabling subsequent architecture capability revocation and architecture capability closure to pinpoint specific cross-architecture interpreter registration entries.The target environment number, baseline snapshot timestamp, block storage snapshot identifier, virtual processor feature configuration snapshot identifier, virtualization device pass-through configuration snapshot identifier, device access permission snapshot identifier, and cross-architecture interpreter registration status snapshot identifier are concatenated in a fixed field order, and a 64-bit hexadecimal string is generated using SHA-256 digest processing. This 64-bit hexadecimal string is then used as the target environment baseline snapshot number. A unique association is established between the target environment baseline snapshot number and the target installation task record, and written into the baseline snapshot index table. This ensures that subsequent capability retention shadow environments, capability revocation shadow environments, transaction installation environments, and target environment recovery processes all read system disk data and architecture capability configurations from the same baseline state, thereby eliminating comparison discrepancies caused by environment state drift between different installation replay processes.
[0026] In this implementation plan, by locking the business verification input records and business verification baseline output summary values, and unifying the summary comparison criteria for business verification results, the certainty of comparing business functions before and after installation can be improved. By recording the registered objects, adapted architectures, call paths, and activation status across architecture interpreters, the bias in architecture capability identification can be reduced. By combining the target environment baseline snapshot number with the unified solidification of the system disk and various architecture capability configurations, the capability retention shadow environment, capability revocation shadow environment, transaction installation environment, and target environment recovery process can share the same baseline, thereby improving the reliability, traceability, and recovery certainty of heterogeneous architecture installation and adaptation in the development and operation integrated scenario.
[0027] Specifically, the steps for generating heterogeneous architecture capability fingerprints by executing capability challenge operation sequences and basic back-substitution operation sequences in capability retention shadow environments and capability revocation shadow environments are as follows: The architecture capability encoding value, capability challenge operation sequence, and basic back-substitution operation sequence are read from the architecture probe rule base according to the target execution architecture encoding value. In practice, the architecture probe rule record includes the rule version number, target execution architecture encoding value, architecture capability encoding value, capability challenge operation sequence number, basic back-substitution operation sequence number, and single operation timeout value. The capability challenge operation sequence consists of challenge operation records arranged according to operation position values. Each challenge operation record includes the executable file path, command parameter sequence, and input... The data storage location, target device node path, and operation sequence value are specified. The basic back-substitution operation sequence uses the same input data as the capability challenge operation sequence, and the target function output baseline is generated through an execution path that does not depend on the current architecture capability encoding value. The single operation timeout duration is between one and thirty seconds, determined by adding 20% to the 99th percentile of the historical normal execution duration under the same target execution architecture encoding value, and limited to the range of one to thirty seconds. Capability retention shadow environments and capability revocation shadow environments are created based on the target environment baseline snapshot number, ensuring that the capability retention shadow environment and capability revocation shadow environment have the same system disk data, virtual processor feature configuration, virtualization device pass-through configuration, and device access rights. Limited and cross-architecture interpreter registration status and business verification input records; in the capability revocation shadow environment, only one of the following architecture capability revocation operations is performed each time: clear a virtual processor feature bit; revoke a device pass-through relationship and corresponding device access permissions; cancel a cross-architecture interpreter registration item, generating an architecture capability revocation record; the architecture capability revocation record includes the architecture capability encoding value, capability revocation shadow environment number, revocation object type encoding value, revocation object number, pre-revocation status value, post-revocation status value, revocation execution timestamp, and target environment baseline snapshot number. Among them, clearing a virtual processor feature bit modifies the corresponding feature bit status value to invalid, and canceling a device pass-through relationship and corresponding device access permissions is performed. Access permissions are used to unbind the transparent device bus address value from the capability revocation shadow environment and revoke the access permissions of the corresponding device node. Unregistering a cross-architecture interpreter registration item modifies the enable flag of the corresponding cross-architecture interpreter registration item to an invalid state. Each capability revocation shadow environment is associated with only one architecture capability revocation record, so that the capability revocation shadow environment and the capability retention shadow environment only have the state difference corresponding to the current architecture capability encoding value. The same capability challenge operation sequence and basic back-substitution operation sequence are executed in the capability retention shadow environment and the capability revocation shadow environment, respectively. The two shadow environments use the same executable file path, command parameter sequence, input data, operation bit order value, and single operation timeout duration value.The virtual machine exit reason encoding value is collected from the host layer of virtualization event tracing records; the processor exception vector value and device node access status value are collected from the guest layer of guest processor exception tracing records and device access records; and the process exit status value, cross-architecture interpreter call flag, and output digest value are collected from the installation process monitoring records and cross-architecture interpreter audit records. The output digest value is obtained by concatenating standard output data and result file data according to a fixed field bit order and then performing SHA-256 digest processing. Using an architecture capability revocation record corresponding to the same architecture capability encoding value as the witness boundary, records with the same rule version number and corresponding... Under the same operation sequence number, same operation position value, same input data digest value, and same single operation timeout duration, the status fields generated by the capability retention shadow environment and the capability revocation shadow environment are written in pairs into the same-source revocation witness frame. Each same-source revocation witness frame corresponds to only one architecture capability encoding value, one architecture capability revocation record, and one operation position value, and includes a capability retention side field area, a capability revocation side field area, and a field collection timestamp. The capability retention side field area records the status fields of the capability retention shadow environment, and the capability revocation side field area records the corresponding status fields of the capability revocation shadow environment, so that the same-source revocation witness frame can represent the same architecture capability. The paired execution results before and after the reversal operation are used as a joint index, along with the architecture capability encoding value, operation sequence number, and operation position value. The virtual machine exit reason encoding value, processor exception vector value, device node access status value, process exit status value, cross-architecture interpreter call flag, output digest value, and field collection timestamp corresponding to the two shadow environments are written into the same-source reversal witness frame. Same-named status fields are limited to paired fields in the same-source reversal witness frame that are located at the same collection layer, have the same field name, and belong to the capability retention side field area and the capability reversal side field area, respectively. The set of same-named status fields at the host layer includes the virtual machine exit reason encoding value. The client-side set of state fields with the same name includes the processor exception vector value and the device node access status value. The installation process-side set of state fields with the same name includes the process exit status value, the cross-architecture interpreter call flag, and the output summary value. The field collection timestamp is only used for time alignment and does not participate in the comparison of state field values. When no processor exception is generated, the processor exception vector value is written to the no-exception code value. When no cross-architecture interpreter is called, the cross-architecture interpreter call flag is written to an invalid value. When the target device node is not called by the current operation, the device node access status value is written to the no-trigger code value, so that the state fields with the same name in the two shadow environments adopt the same recording caliber.Following the order of host layer, client layer, and installation process layer, revocation witness frames corresponding to the same architecture capability encoding values are aligned. During alignment, paired records are first located according to the operation sequence number and operation bit sequence value. Then, a unified monotonic clock reference is used to verify the field acquisition timestamp. The allowed deviation value of the timestamp is one to five milliseconds, and it is determined by the maximum clock synchronization error and minimum sampling period between the virtualization event tracking record, the client processor abnormal tracking record, and the installation process monitoring record. Only the same-named state fields that meet the alignment conditions in terms of operation sequence number, operation bit sequence value, and field acquisition timestamp are compared. Same-source revocation witness frames that do not meet the alignment conditions are marked as witness frame alignment failure and do not participate in capability source point layer identification. The first acquisition layer with at least one inconsistent value of the same-named state field is determined as the capability source point layer. Starting from the capability source point layer, adjacent acquisition layers that still have inconsistent values of the same-named state fields are connected layer by layer until there are no field differences in the next acquisition layer. A capability transfer edge is generated, which includes the starting acquisition layer encoding value and the ending acquisition layer encoding value. The process includes layer encoding values, a sequence of difference field names, a start difference timestamp, and a stop difference timestamp. For each architecture capability revocation record, the execution result of the capability challenge operation sequence in the capability revocation shadow environment is read. If the process exit status value of the capability challenge operation sequence is zero and the output digest value is the same as the output digest value of the basic back-substitution operation sequence, a native closure marker is generated if the cross-architecture interpreter call flag is invalid, and a translated closure marker is generated if the cross-architecture interpreter call flag is valid. If the process exit status value of the basic back-substitution operation sequence in the capability revocation shadow environment is zero and the output digest value is the same as the output digest value of the basic back-substitution operation sequence in the capability retention shadow environment, a basic back-substitution closure marker is generated, forming a heterogeneous architecture capability fingerprint. The heterogeneous architecture capability fingerprint is indexed according to the target environment number, target execution architecture encoding value, target execution bit width value, and architecture capability encoding value, and records the capability source layer, capability transfer edge, native closure marker, translated closure marker, basic back-substitution closure marker, same-source revocation witness frame number, and architecture probe rule version number.
[0028] In this implementation scheme, by using a common starting point—a snapshot of the same target environment baseline—and using the same-source revocation witness frame formed by the revocation of a single architectural capability as causal evidence, differences in installation execution can be accurately attributed to the corresponding architectural capabilities. This reduces misjudgments caused by environmental state drift, data collection timing deviations, and cross-layer state interference, ensuring that the capability source layer and capability transmission edges can truly reflect the propagation relationship of architectural capability impacts between the host layer, client layer, and installation process layer. Simultaneously, heterogeneous architectural capability fingerprints uniformly record native closure markers, translated closure markers, and basic back-substitution closure markers, providing traceable, reproducible, and causally explanatory data for subsequent installation capability witness chain construction, capability revocation migration graph generation, first-break installation capability anchor point identification, and minimum native closure chain screening. This improves the accuracy, stability, and reliability of heterogeneous architecture installation adaptation judgment.
[0029] Specifically, the steps for parsing candidate installation packages to generate installation object capability records and generating an installation capability witness chain in the capability-preserving shadow environment are as follows: Read the candidate installation package, identify the installation script, main executable file, dynamic link library, lazy-loaded plugin, and kernel driver file in the read-only unpacking space, and assign an installation object number to each file; in practice, read the candidate installation package file path value, installation package file digest value, and installation package encapsulation type encoding value from the installation package index table according to the candidate installation package number, recalculate the candidate installation package file digest value using SHA-256 digest processing, and when the recalculated result is the same as the installation package file digest value in the installation package index table, unpack the candidate installation package in read-only mode to an independent directory, and then copy the parsing record and... The tracking record is written to a separate record directory; various installation objects are identified based on file header identifiers, executable permission flags, process entry address values, dynamic loading flags, exported symbol tables, driver entry functions, and device identifier tables; files called through the dynamic loading interface during runtime but not written to the initial dependency table are identified as lazy-loaded plugins; installation object numbers are assigned according to the type order of installation scripts, dynamic link libraries, lazy-loaded plugins, kernel driver files, and main executable files, and according to the dictionary order of object file path values within the same type; when file header identifiers are missing, file types cannot be identified, or object file path values are duplicated, an installation object parsing exception record is written, and subsequent installation verification of the current candidate installation package is stopped; the machine instruction area of each installation object is parsed, The processor attribute area and device call area write the candidate installation package number, installation object number, object file path value, object architecture encoding value, object execution bit width value, object instruction capability set, object device requirement number, and object interface summary value into the installation object capability record. The machine instruction area, processor attribute area, and device call area are logical parsing areas established according to the installation object type. Among them, the machine instruction area is determined based on the executable code segment, driver entry function, script interpreter entry point, and called executable file; the processor attribute area is determined based on the machine type field, category field, byte order field, processor attribute segment, and application binary interface version field; and the device call area is determined based on the import symbol table, system call number, device node path, and device vendor code. The device type number, input / output control command values, and driver matching relationships are determined. When parsing the machine instruction area, machine instructions are parsed according to the instruction decoding rules corresponding to the object architecture encoding values. Extended vector instructions, atomic operation instructions, privileged instructions, and architecture-specific instructions are mapped to architecture capability encoding values. The object instruction capability set is generated in ascending order of architecture capability encoding values. When the installation script does not directly contain machine instructions, the architecture capability encoding values corresponding to the script interpreter and the called executable file are written into the object instruction capability set. When parsing the processor attribute area, the machine type field is converted into the object architecture encoding value, the category field is converted into the object execution bit width value, and the feature bit requirements in the processor attribute segment are written into the object instruction capability set.When resolving the device call area, the device requirement registration table is queried based on the device node path, device manufacturer number, device type number, input / output control command values, and driver matching relationship to generate the object device requirement number. For the main executable file, dynamic link library, and lazy-loaded plugin, an interface description record is generated based on the exported symbol name, exported symbol type, calling convention encoding value, function parameter structure, return value type encoding value, and application binary interface version field. For kernel driver files, an interface description record is generated based on the driver entry function, device identifier, device node name, and input / output control command values. For installation scripts, an interface description record is generated based on the script entry command, command parameter order, input data fields, and output file path. The interface description records are sorted according to field type encoding values and field position values, and character encoding unification and field length prefix writing are performed. Then, SHA-256 digest processing is used to generate object interface digest values, which are used to limit the call entry, parameter structure, output structure, and device access interface of the alternative installation object. The installation object capability record uses the candidate installation package number and the installation object number as a composite index, and records the object file parsing timestamp and installation package file digest value. In the capability retention shadow environment, the unpacking, installation script execution, dynamic object loading, plugin loading, driver loading, main executable file startup, and business verification are executed sequentially according to the installation command parameter values. The first time each architecture capability encoding value participates in the execution is recorded. The installation phase encoding value, installation object number, first execution address value, first call timestamp, device node access status value, cross-architecture interpreter call flag, and process exit status value are used to connect each record according to the installation phase encoding value and the first call timestamp. A business verification output summary value is written to the end of the chain to generate an installation capability witness chain. Before execution, the system disk data and architecture capability configuration of the shadow environment are verified according to the target environment number, candidate installation package number, and target environment baseline snapshot number. The installation command parameter values are written to the installation process startup command according to the parameter bit sequence value. The installation phase encoding value is categorized according to the unpacking phase, installation script execution phase, dynamic object loading phase, plugin loading phase, driver loading phase, and main... The executable file startup phase and business verification phase are assigned values sequentially; record fields corresponding to each installation phase are extracted from process trace records, dynamic loading audit records, kernel event trace records, processor instruction trace records, cross-architecture interpreter audit records, and device access records; when the architecture capability encoding value participates in the execution through machine instructions, the first execution of the machine instruction containing the corresponding architecture capability encoding value is determined as the first participation in the execution; when the architecture capability encoding value participates in the execution through device capabilities, the record of the device node corresponding to the first access to the object device requirement number is determined as the first participation in the execution; when the architecture capability encoding value participates in the execution through cross-architecture interpreters, the record of the first call to the corresponding cross-architecture interpreter registration item is determined as the first participation in the execution.The initial execution address value is taken from the machine instruction address value of the triggering architecture capability encoding value. When triggered by device access, the address value of the machine instruction value that initiated the device access is taken. When triggered by an installation script and the script instruction address cannot be obtained, the corresponding interpreter entry address value is taken. All types of records use a unified monotonic clock reference to record the first call timestamp. The allowed deviation value of the timestamp is one to five milliseconds, and is determined by the maximum clock synchronization error and minimum sampling period between various types of records. When multiple candidate records are generated for the same architecture capability encoding value, the record with the earliest initial call timestamp is retained. When multiple initial call timestamps are within the allowed deviation range of timestamps, a unique first-participation record is determined in ascending order of installation stage encoding value, installation object number, and initial execution address value. When a call record corresponding to the current installation object number exists in the cross-architecture interpreter audit record, the cross-architecture interpreter call flag is recorded as a valid value. If no corresponding call record exists, it is recorded as an invalid value; after the process exits, the actual exit code is written to the process exit status value. If the process execution time exceeds the installation phase timeout value, a timeout exit code value is written. The installation phase timeout value is the value obtained by adding 20% to the 99th percentile of the historical normal execution time of the same installation phase, and is limited to a range of 5 to 300 seconds; each first participation record is arranged according to the installation phase code value and the first call timestamp, and adjacent first participation records are connected to generate the intra-chain succession relationship of the installation capability witness chain; after the business verification is completed, the business verification output data is arranged according to the business verification test case number and the output field position value, and the same character encoding, field concatenation method, and SHA-256 digest processing method as the business verification baseline output digest value are used to generate the business verification output digest value. The business verification output digest value is written to the tail record of the installation capability witness chain.
[0030] In this implementation scheme, by uniformly converting the scattered installation files within the candidate installation package into installation object capability records, and constructing an installation capability witness chain using installation stage encoding values and first call timestamps, the system can stably restore the object location, stage location, and call order of each architecture capability's first participation in the installation execution while maintaining the original content of the candidate installation package. This reduces deviations caused by file type differences, dynamic loading behavior, and cross-architecture interpreter intervention in capability dependency identification, providing a consistent and traceable expression basis for interface compatibility relationships, device requirement relationships, and architecture capability dependencies among installation objects. This provides reliable execution evidence for subsequent step-by-step removal of architecture capabilities, identification of the first installation capability anchor point, construction of capability removal migration graphs, and selection of the smallest native closed chain, thereby improving the accuracy, reproducibility, and reliability of heterogeneous architecture installation path analysis and adaptation decision credibility.
[0031] Specifically, the steps for revoking architectural capabilities item by item and replaying the installation process to generate a capability revocation migration graph are as follows: Call the architectural capability revocation record item by item according to the installation capability witness chain. Each time, recreate the capability revocation shadow environment based on the target environment baseline snapshot number and execute the same installation process. In practice, read the first participation record in the installation capability witness chain in ascending order of installation phase code value and in ascending order of the first call timestamp within the same installation phase code value, and retrieve the corresponding architectural capability revocation record based on the architectural capability code value in the first participation record. Before each installation replay, recreate the capability revocation shadow environment based on the target environment baseline snapshot number, and clear only one virtual processor feature according to the current architectural capability revocation record. The system performs the following steps: First, it removes a device pass-through relationship and corresponding device access permissions, and deregisters a cross-architecture interpreter registration item, ensuring that the only difference between the current capability revocation shadow environment and the capability retention shadow environment is the state corresponding to the current architecture capability encoding value. Second, it verifies the candidate installation package number, installation package file digest value, installation command parameter value, business verification input record, target execution architecture encoding value, and target execution bit width value in the capability revocation shadow environment. If the verification result matches the corresponding data in the capability retention shadow environment, it performs installation replay according to the same installation stage encoding value order and installation stage timeout duration. During installation replay, it collects the installation object number, installation stage encoding value, first execution address value, and first call timestamp corresponding to the current architecture capability encoding value. The device node access status value, cross-architecture interpreter call flag, process exit status value, and service verification output digest value are used to generate a capability revocation replay record. This record is then matched against the corresponding first-participation record in the capability retention shadow environment based on the architecture capability encoding value and the installation phase encoding value. If the process exit status value is zero and the service verification output digest value is the same as the service verification baseline output digest value, the cross-architecture interpreter call flag in the capability revocation shadow environment changes from an invalid value to a valid value relative to the corresponding first-participation record in the capability retention shadow environment, and a translation transition edge is generated. If the cross-architecture interpreter call flags of the corresponding records in both shadow environments are invalid values, and at least one of the installation object number and the first execution address value changes, a translation transition edge is generated. When generating a translation acceptance edge, the corresponding first participation record in the capability retention shadow environment is used as the starting point of the translation acceptance edge, and the cross-architecture interpreter acceptance position in the capability revocation and replay record is used as the ending point of the translation acceptance edge. The architecture capability encoding value, the starting installation object number, the ending installation object number, and the interpreter registration number are recorded. When generating a capability migration edge, the corresponding first participation record in the capability retention shadow environment is used as the starting point of the capability migration edge, and the position corresponding to the changed installation object number and the first execution address value is used as the ending point of the capability migration edge. The architecture capability encoding value, the starting installation object number, the starting first execution address value, the ending installation object number, the ending first execution address value, and the device node access status value are recorded.Rigid break edges are generated when a process exits abnormally. Abnormal process exit includes a non-zero process exit status value, installation phase execution time exceeding the installation phase timeout value, and process termination by an abnormal signal. When generating rigid break edges, the corresponding first participation record in the capability retention shadow environment is used as the starting point of the rigid break edge, and the abnormal exit position is used as the ending point of the rigid break edge. The architecture capability encoding value, abnormal installation phase encoding value, abnormal installation object number, and process exit status value are recorded. When the process exit status value is zero but no business verification output summary value is generated, or the business verification output summary value is different from the business verification baseline output summary value, an output mismatch record is generated. The output mismatch record is associated with the first touch anchor point corresponding to the current architecture capability encoding value, and no translation acceptance edge or capability migration edge is generated. When the process exit status value is zero and the business verification output summary value is the same as the business verification baseline output summary value, but the device node access status value indicates that the object device requirement number corresponds to... When a device node becomes inaccessible, a device access mismatch record is generated and associated with the corresponding translation acceptance edge, capability migration edge, or first-touch anchor point. This ensures the device access mismatch result is retained in the capability revocation migration graph and serves as the basis for failing the native closure condition during subsequent native closure verification. The first participation record of each architecture capability encoding value in the installation capability witness chain of the capability retention shadow environment is determined as the first-touch anchor point, and the endpoint of the capability migration edge is determined as the back-substitution anchor point. Adjacent first-touch anchor points are connected along the installation capability witness chain, and the capability migration edge, translation acceptance edge, and rigid break edge are written to generate the capability revocation migration graph. The capability revocation migration graph uses the first-touch anchor point and back-substitution anchor point as graph nodes, and the intra-chain acceptance relationship between adjacent first-touch anchor points, capability migration edge, translation acceptance edge, and rigid break edge as graph edges. It is also associated with the output mismatch record, device access mismatch record, candidate installation package number, target environment baseline snapshot number, and installation capability witness chain number.
[0032] In this implementation plan, by using the target environment baseline snapshot number and the installation capability witness chain as a unified execution benchmark, and summarizing the changes in the installation path caused by the removal of architectural capabilities into translation acceptance edges, capability migration edges, and rigid break edges, translation dependencies, native migrations, and capability breaks can be clearly distinguished while maintaining the consistency of business verification output. This enhances the interpretability of the causal relationship between the first contact anchor point and the back-substitution anchor point, enabling the capability removal migration graph to stably reflect the real impact of each architectural capability on the installation execution path. This provides a reliable basis for subsequent identification of the first break installation capability anchor point, generation of candidate native closed chains, and sealing of architectural capabilities, and improves the traceability, reproducibility, and accuracy of automated decision-making in the heterogeneous architecture installation adaptation process in the development and operations integration scenario.
[0033] Specifically, the steps for mapping heterogeneous architecture capability fingerprints to capability withdrawal migration graphs, determining the first-break installation capability anchor point, and generating candidate native closed chains by connecting back-substitution anchor points or filtering alternative installation objects are as follows: Map heterogeneous architecture capability fingerprints to anchor points with the same architecture capability encoding value in the capability withdrawal migration graph. When the native closure marker is valid, write it to the native acceptable state; when the native closure marker is invalid but the translation closure marker is valid, write it to the translation dependent state; when both the native closure marker and the translation closure marker are invalid, write it to the capability disconnected state. Along the capability withdrawal migration graph, determine the first touch anchor point in either the translation dependent state or the capability disconnected state as the first-break installation capability anchor point. In specific implementation, use the architecture capability encoding value as the mapping key. The native closure marker, translation closure marker, and basic back-substitution closure marker in the heterogeneous architecture capability fingerprint are written to the corresponding first-touch anchor point. The path formed by adjacent first-touch anchor points and intra-chain acceptance relationships of the installation capability witness chain in the capability revocation migration graph is determined as the main connection path, and the capability migration edge, translation acceptance edge, and rigid break edge form the branch paths of the main connection path. The first-touch anchor points are traversed along the main connection path in ascending order of installation stage coding value and in ascending order of first call timestamp within the same installation stage coding value. When multiple first call timestamps are within the allowable timetamp deviation range, the traversal order is determined in ascending order of installation object number and first execution address value. The first one written to the translation dependency state and capability disconnect state during the traversal process is then written. The first touch anchor point of any state in the process is determined as the unique first break installation capability anchor point, and the first break installation capability anchor point number, architecture capability code value, installation stage code value, installation object number, first execution address value, and first call timestamp are written into the first break installation capability anchor point record; the connection path before the first break installation capability anchor point is retained; specifically, starting from the starting node of the installation capability witness chain, only the first touch anchor points and the chain connection relationships before the first break installation capability anchor point are read along the main connection path, and the corresponding installation object number, installation stage code value, and first touch anchor point number are written into the candidate native closed chain pre-segment in traversal order, without writing the capability migration edge, translation connection edge, and rigid break edge connected before the first break installation capability anchor point into the candidate native closed chain. The chain pre-segment is merged to ensure that the connection path before the first installation capability anchor point remains the original main connection path recorded in the capability witness chain in the capability retention shadow environment; when the first installation capability anchor point is connected to the capability migration edge and the basic back-substitution closure mark is valid, the back-substitution anchor point is connected; the basic back-substitution closure mark is the basic back-substitution closure mark corresponding to the architecture capability encoding value recorded by the first installation capability anchor point in the heterogeneous architecture capability fingerprint. After reading the basic back-substitution closure mark, the back-substitution anchor point is located according to the endpoint installation object number and the endpoint first execution address value recorded by the capability migration edge. The capability migration edge and the back-substitution anchor point are connected to the candidate original closed chain pre-segment, and the installation object number corresponding to the back-substitution anchor point is used as the current installation object number of the subsequent link;When the same initial installation capability anchor point connects to multiple capability migration edges, the basic back-substitution closure mark of the corresponding architecture capability code value of each capability migration edge is verified. Only capability migration edges with valid basic back-substitution closure marks are connected to the corresponding back-substitution anchor point, forming mutually independent candidate branches. When the initial installation capability anchor point connects to either the translation receiving edge or the rigid fracture edge, the following criteria are selected from the installation object capability record: the object interface summary value is consistent with the object interface summary value corresponding to the installation object number in the initial installation capability anchor point record; the object architecture code value is consistent with the target execution architecture code value; the object execution bit width value is consistent with the target execution bit width value; and each architecture capability code value in the object instruction capability set has a valid native closure in the heterogeneous architecture capability fingerprint. The marked alternative installation objects generate object back-cut edges. During filtering, the object interface digest value and interface description record of the original installation object are read based on the installation object number of the first segment installation capability anchor point record. Installation objects with the same object interface digest value are extracted from the installation object capability records corresponding to the candidate installation package number set. The object interface digest value is recalculated using the interface description field, field type encoding value, field ordinal value, character encoding, field length prefix, and SHA-256 digest processing rules determined during the installation object capability record generation stage. If the recalculation results are the same, the interface description records of the original installation object and the candidate installation object are compared field by field. If there are field differences in the interface description records, the corresponding candidate installation object is excluded to avoid relying solely on... Error matching is generated based on identical digest values; if the interface description records are identical, the object architecture encoding value, object execution bit width value, and object instruction capability set of the candidate installation object are further verified. The corresponding device node is confirmed to be accessible by the target installation environment based on the object device requirement number. The application binary interface version field confirms that the candidate installation object uses the same interface version as the original installation object. The installation object capability record confirms that all dependent installation objects referenced by the candidate installation object can be loaded in the environment corresponding to the target execution architecture encoding value and target execution bit width value. When all verifications pass, the corresponding installation object is determined as the replacement installation object. The actual installation and business output of the replacement installation object are still verified by the subsequent native closure verification shadow environment. The first installation capability anchor point serves as the starting point of the object back-cut edge, and the alternative installation object serves as the ending point of the object back-cut edge. The object back-cut edge is written with the starting installation object number, the ending installation object number, the object interface summary value, the candidate installation package number, and the installation stage code value. When multiple alternative installation objects meet the filtering conditions, object back-cut edges are generated and candidate branches are formed. After completing the back-cut anchor point connection and object back-cut edge generation, the next first touch anchor point is located according to the installation stage code value and the first call timestamp in the main connection path. The first touch anchor point in the native acceptable state is directly connected along the chain acceptable relationship. The first touch anchor point in the translation dependent state or the capability disconnected state is connected to the back-cut anchor point or the alternative installation object is filtered according to the corresponding edge type.Before each connection, check if the current candidate branch already contains a combination of the same installation object number and the same initial execution address value. If a matching combination exists, stop extending the current candidate branch to avoid loop paths formed by capability migration edges and object back-cut edges. After traversing to the end of the installation capability witness chain, write the installation object number sequence, capability migration edge number sequence, and object back-cut edge number sequence into the candidate native closed chain record according to the actual connection order, and associate them with the target environment number, target environment baseline snapshot number, and candidate installation package number.
[0034] In this implementation scheme, by uniformly mapping heterogeneous architecture capability fingerprints and capability revocation migration graphs, and using the first-break installation capability anchor point as the switching boundary between the original installation path and the native replacement path, subsequent installation paths can be reconstructed using back-substitution anchor points and object back-cut edges, based on the stable execution path before retaining the first-break installation capability anchor point. This ensures that candidate native closed chains simultaneously meet the requirements of interface compatibility, target architecture matching, execution bit width matching, and native closure of architecture capabilities. This reduces the risks of interface mismatch, translation dependency residues, and link loops caused by directly replacing installation packages. It provides a clear, traceable, and directly executable candidate path basis for minimum native closed chain selection, architecture capability sealing record generation, and transaction installation verification, thereby improving the accuracy, stability, and path interpretation capabilities of heterogeneous architecture installation adaptation.
[0035] Specifically, the steps for selecting the smallest native closed chain, determining the target candidate installation package number, and generating architecture capability sealing records are as follows: Create a native closure verification shadow environment for each candidate native closed chain, revoke the architecture capabilities of anchor points in the chain that are in a translation dependency state, replace the installation objects according to the object back-cut edge mapping, and execute the same installation process; In practice, create a corresponding native closure verification shadow environment for each candidate native closed chain based on the target environment baseline snapshot number, read the anchor points in the candidate native closed chain that are in a translation dependency state, retrieve the architecture capability revocation record based on the architecture capability encoding value of the anchor point record, and execute the architecture capability revocation operation; Based on the starting installation object number, ending installation object number, and installation stage code in the object back-cut edge... The system establishes a mapping relationship between alternative installation objects and verifies the object interface digest value, object schema encoding value, and object execution bit width value of the endpoint installation object. After mapping, the installation process is executed using the same candidate installation package, installation command parameter values, business verification input records, installation phase encoding value order, and installation phase timeout duration value as the capability retention shadow environment. The system collects the actual installation object sequence, processor exception vector value, cross-architecture interpreter call flag, process exit status value, device node access status value, and business verification output digest value. The actual installation object sequence is identical to the installation object number sequence in the candidate native closed chain, no processor exception occurs, no cross-architecture interpreter is called, the process exit status value is zero, and the device node access status value indicates the corresponding device node. When a point is accessible and the business verification output summary value is the same as the business verification baseline output summary value, a native closure verification record is generated, and each judgment condition is determined as a native closure condition. The native closure verification record includes the candidate native closure chain number, the actual installed object sequence, the processor exception vector value, the cross-architecture interpreter call flag, the process exit status value, the device node access status value, the business verification output summary value, and the native closure verification result flag. If any native closure condition is not met, the corresponding candidate native closure chain is written into the native closure verification failure record. The candidate native closure chains that have passed the verification are arranged in order of increasing number of object back-cut edges and increasing number of capability migration edges. The candidate native closure chain ranked first is taken as the minimum native closure chain. Determine the target candidate installation package number. In specific implementation, first arrange the objects according to the number of back edges in ascending order. If the number of back edges is the same, arrange them according to the number of capability migration edges in ascending order. If both the number of back edges and the number of capability migration edges are the same, arrange them according to the candidate order in the candidate installation package number set. If the candidate installation package numbers are the same, arrange them according to the candidate native closed chain number in ascending order to obtain a unique first-rank result. Read the candidate installation package number corresponding to the first-ranked candidate native closed chain as the target candidate installation package number, and write the minimum native closed chain number, the target candidate installation package number, the installation object number sequence, the object back edge number sequence, the capability migration edge number sequence, and the native closure verification record number into the minimum native closed chain record.The system reads the capability migration edges and object back-cut edges in the minimum native closed chain. Based on the corresponding architectural capability encoding values in the heterogeneous architectural capability fingerprint, it determines the sealing layer and sealing range, and generates an architectural capability sealing record based on the architectural capability revocation record. In specific implementation, the capability source layer is determined as the sealing start layer, the last acquisition layer continuously reached along the capability transmission edge is determined as the sealing end layer, and the area from the sealing start layer to the sealing end layer is determined as the sealing layer. The sealing layer includes the host layer, the client layer, and the installation process layer. The sealing range is determined based on the revocation object type encoding value, the revocation object number, and the acquisition layers traversed by the capability transmission edge in the architectural capability revocation record. When the object to be revoked is a virtual processor feature bit, the scope of the closure is the corresponding virtual processor feature configuration item; when the object to be revoked is a device pass-through relationship and corresponding device access permissions, the scope of the closure is the device pass-through relationship in the host layer and the corresponding device access permissions in the client layer; when the object to be revoked is a cross-architecture interpreter registration item, the scope of the closure is the corresponding cross-architecture interpreter registration item and interpreter call path in the installation process layer; the corresponding closure operation is generated based on the state value before revocation, the state value after revocation, and the closure execution bit sequence value, and written into the architecture capability closure record. The architecture capability closure record includes the architecture capability encoding value, the closure start layer encoding value, the closure end layer encoding value, and the closure object type encoding value. The values include: sealing object number, pre-sealing state value, post-sealing state value, sealing execution sequence value, target environment baseline snapshot number, and minimum native closed chain number. A capability sealing shadow environment and each capability replication sub-environment are created. The capability sealing shadow environment executes all architecture capability sealing records and runs the minimum native closed chain. Each capability replication sub-environment restores only one corresponding sealed architecture capability. After restoration, if the system re-enters the original first-touch anchor point and reproduces any of the following results—processor exception, abnormal process exit, or inconsistency between the business verification output summary value and the business verification baseline output summary value—a capability causal replication record is generated. In specific implementation, the capability sealing shadow environment follows the sealing execution sequence value... Execute all architecture capability sealing records, replace the installation object according to the minimum native closed chain mapping and execute the target candidate installation package. Generate a capability sealing pass mark when all native closure conditions are met. Create a capability re-enhancing sub-environment for each architecture capability sealing record. After executing all architecture capability sealing records, restore only the current architecture capability to be re-enhanced to the state value before sealing and rerun the minimum native closed chain. Determine whether the installation path has re-entered the original first contact anchor point based on the installation object number, installation stage code value and first execution address value. Use the rigid fracture edge and output mismatch record associated with the original first contact anchor point in the capability cancellation migration diagram as the failure state comparison benchmark.Each capability reproduction sub-environment performs a recovery verification once. The installation path re-enters the original first-touch anchor point, and at least one of the processor exception vector value, process exit status value, and business verification output summary value matches the corresponding data in the failure status comparison benchmark. If so, the exception result is considered successfully reproduced, and the architecture capability encoding value, architecture capability sealing record number, original first-touch anchor point number, reproduced installation object number, processor exception vector value, process exit status value, business verification output summary value, verification count value, and reproduction success count value are written to the capability causal reproduction record.
[0036] In this implementation scheme, by constraining candidate native closed chains with native closed verification results and measuring the degree of installation path modification by the number of object back-cut edges and capability migration edges, the minimum native closed chain with a smaller modification range and the target candidate installation package number can be determined while ensuring that the actual installation object sequence, device node access status value, and business verification output summary value remain consistent. By combining capability source point layer, capability transmission edge, and capability causal reproduction record to generate architecture capability sealing record, the sealing layer and sealing range can be kept consistent with the actual architecture capability influence boundary, reducing the risk of irrelevant architecture capabilities being closed and translation dependencies re-entering the installation path. This provides installation basis that has been confirmed by both functional consistency and causal reproduction for subsequent architecture routing sealing token execution and transaction installation verification, thereby improving the stability, accuracy, and traceability of heterogeneous architecture installation adaptation.
[0037] Specifically, the steps for generating an architecture routing sealing token based on the minimum native closed chain and architecture capability sealing record, and performing target candidate installation package installation and business verification in the transactional installation environment are as follows: The architecture routing sealing token is generated by combining the target environment number, target environment baseline snapshot number, target candidate installation package number, heterogeneous architecture capability fingerprint, minimum native closed chain, architecture capability sealing record, and capability causal repetition record. In practice, the architecture routing sealing token includes a token header, token payload, and token verification area. The token header records the token structure version number, token generation timestamp, token validity duration value, and token status flag. The token payload is written to the target environment number, target environment baseline snapshot number, and target candidate installation package number in a fixed field order. The system includes heterogeneous architecture capability fingerprints, the smallest native closed chain, architecture capability sealing records arranged according to the sealing execution position value, and capability causal repetition records arranged according to the architecture capability encoding value. The token verification area records the token verification digest value. Character encoding unification, field length prefix writing, and SHA-256 digest processing are performed on the token structure version number, token generation timestamp, token validity duration, and token payload to generate the token verification digest value. The token status flag does not participate in the digest processing. Before executing the architecture routing sealing token, the token verification digest value is recalculated according to the same rules. If the recalculated result is the same as the token verification digest value in the token verification area, execution continues; otherwise, a token invalidation flag is generated. The token validity duration ranges from ten to sixty minutes, determined by the target... The candidate installation package is determined by increasing the 99th percentile of its historical installation duration by 30%. Based on the target environment baseline snapshot number, the capability challenge operation sequence and basic back-substitution operation sequence involved in the token are re-executed to form a heterogeneous architecture capability fingerprint to be executed. This fingerprint is then compared with the heterogeneous architecture capability fingerprint in the architecture routing closure token. If they match, a token execution permission flag is generated; otherwise, a token invalidation flag is generated. In specific implementation, the same input data, operation bit sequence value, and single operation timeout value as in the heterogeneous architecture capability fingerprint generation stage are used to execute the capability challenge operation sequence and basic back-substitution operation sequence. The capability source layer, capability transmission edge, native closure flag, translation closure flag, and basic back-substitution closure flag are compared item by item according to the architecture capability encoding value. The process involves generating a token execution permission flag when all comparison results are identical, the token verification digest value passes verification, and the current timestamp is within the token's validity period. If any condition is not met, a token expiration flag is generated, and subsequent installation operations are terminated. After generating the token execution permission flag, a transactional installation environment is created. The virtual processor feature configuration, virtualization device pass-through configuration, device access permissions, and cross-architecture interpreter registration status are modified according to the architecture capability sealing record. The replacement installation object is mapped to the original installation object file path according to the object back-cut edges in the minimum native closed chain, generating the actual architecture sealing record. The transactional installation environment is created based on the target environment baseline snapshot number and uses an independent incremental layer to save the file write data, configuration change data, and log data generated during the installation process.The sealing records of each architecture capability are executed according to the sealing execution sequence value. After each execution, the actual state value of the sealing object is read. If the actual state value is the same as the state value after sealing, the architecture capability code value, sealing object number, state value before execution, state value after execution, and sealing execution timestamp are written into the actual architecture sealing record. If the actual state value is different from the state value after sealing, a sealing execution failure flag is generated and the installation is terminated. Based on the starting installation object number and ending installation object number in the object back-cutting edge, the original installation object file path value and the replacement installation object file path value are read from the installation object capability record. A read-only copy of the replacement installation object is created in the independent incremental layer of the transaction installation environment, and a system including the original installation object is established. An object loading mapping table is used to store file path values, alternative installation object file path values, installation stage encoding values, and loading order values. When the target candidate installation package reaches the corresponding installation stage, the original installation object file path is redirected to a read-only copy of the alternative installation object according to the object loading mapping table. The original installation object file name, directory location, access permissions, and loading entry point remain unchanged, and the original installation object file in the candidate installation package is not modified. After the path mapping is completed, the object interface digest value of the alternative installation object is recalculated according to the interface description field, field order value, character encoding, and SHA-256 digest processing method used in the installation object capability record generation stage. The object interface digest value is the same as the object back-cutting edge record. When an object mapping is valid, a valid marker is written; if they are not, the corresponding path mapping is revoked and the installation is terminated. In the transactional installation environment, the installation and business verification of the target candidate installation package are executed according to the minimum native closed chain, generating the actual installation witness chain. In specific implementation, each installation stage is executed according to the installation command parameter values. The following are collected: the installation stage code value when the architecture capability code value first participates in the execution; the actual installation object number; the actual first execution address value; the actual first call timestamp; the device node access status value; the cross-architecture interpreter call marker; and the process exit status value. The business verification output summary value is written to the tail of the actual installation witness chain. Records in the actual installation witness chain are arranged in ascending order of installation stage code value. The installation phase coding values are arranged from earliest to latest according to the actual first call timestamp. When multiple actual first call timestamps are within the allowable deviation range of timestamps, the order is determined by the actual installed object number and the actual first execution address value from smallest to largest, and the in-chain position value is written for each record after the arrangement. The sequence of installed object numbers in the minimum native closed chain is used as the expected comparison order. The actual installation witness chain is aligned with the minimum native closed chain item by item according to the in-chain position value. The installation phase coding value, installed object number, actual first execution address value are compared to see if they are in the machine instruction area of the corresponding installed object, the order of the actual first call timestamps, the cross-architecture interpreter call flag, and the device node access status value.The record with the smallest in-chain position value is identified as the installation route deviation anchor point. When the number of records in the actual installation witness chain differs from the minimum native closed chain, the first missing record in the minimum native closed chain or the first newly added record in the actual installation witness chain is identified as the installation route deviation anchor point. Subsequent installation operations are then stopped, and transaction installation environment isolation is maintained. The installation route deviation anchor point record includes the transaction installation environment number, the minimum native closed chain number, the in-chain position value, the expected installation object number, the actual installation object number, and the deviation identification timestamp.
[0038] In this implementation plan, by uniformly binding heterogeneous architecture capability fingerprints, minimum native closed chains, architecture capability sealing records, and capability causal replication records with architecture routing sealing tokens, pre-execution verification, installation path constraints, and actual installation witness chain verification can be completed in the transactional installation environment. This ensures that the target candidate installation package is installed only when all conditions are met. Installation route deviation from the anchor point can promptly locate the first abnormal position and terminate subsequent installations, thereby reducing deployment risks caused by environment drift and path offset, and improving the controllability, traceability, and execution consistency of heterogeneous architecture installation and release in the development and operations integration scenario.
[0039] In this embodiment, the hybrid architecture software installation task in the ARM64 target installation environment is taken as the object. The installation script, core library, plugins, codec library, and main executable file are selected as the installation objects, and three independently revocable architecture capabilities, C01, C02, and C03, are set. After performing a baseline snapshot on the target installation environment, the installation process is executed in the capability retention shadow environment, and the installation replay is executed in the capability revocation shadow environment. The process exit status value, cross-architecture interpreter call flag, and business verification output summary value of the corresponding installation objects are collected, and the capability records of the installation objects are read as the data basis for generating the capability revocation migration graph, filtering the minimum native closed chain, and performing installation adaptation verification.
[0040] Table 1. Data on Heterogeneous Architecture Capability Withdrawal Test and Candidate Installation Targets
[0041] As shown in Table 1, O01 is the installation script, and O05 is the main executable file. O01 and O05 are not associated with independently revocable architecture capabilities. The candidate replacement object number and interface summary consistency flag is not applicable. The native closure flag of the candidate installation object is set to 1, indicating that the corresponding installation object can natively participate in the installation process under the target execution architecture. O02, O03, and O04 correspond to the architecture capability encoding values C01, C02, and C03, respectively. After revoking C01 and C03, the process exit status values corresponding to O02 and O04 are 126 and 132, respectively, and no business verification output summary value is generated. O06 and O08 are selected as the replacement installation objects corresponding to the object back-cut edge, respectively. After revoking C02, the process exit status value corresponding to O03 is 0, the business verification output summary value is H-OK-9F31, and it is migrated to O09 through the capability migration edge. O09 is used as the back-cut anchor point. In Table 1, the candidate alternative object numbers are simplified field names. O06 and O08 represent the alternative installation object numbers corresponding to the object back-cut edge, and O09 represents the installation object number corresponding to the endpoint of the capability migration edge. In the cross-architecture interpreter call flag and the candidate installation object native closure flag, 0 indicates an invalid value, 1 indicates a valid value, and "-" indicates that the corresponding field is not applicable. H-OK-9F31 is the display abbreviation for the business verification output digest value. The actual stored data is a 64-bit hexadecimal string generated by SHA-256 digest processing.
[0042] like Figure 3The diagram illustrates the process of heterogeneous architecture capability rollback migration and the generation of the minimum native closed chain. The heterogeneous architecture capability fingerprint records the capability source layer and capability transfer edges corresponding to the architecture capability encoding values C01, C02, and C03. The capability source layers for C01 and C03 are the installation process layer, while the capability source layer for C02 is the host layer, forming a capability transfer edge from the host layer through the client layer to the installation process layer. In the capability-preserving shadow environment, the installation script O01, x86 core library O02, NPU plugin O03, x86 codec library O04, and main executable file O05 are executed sequentially, generating an installation capability witness chain. The first x86 core library O02 in a translation dependency state is identified as the first installation capability anchor point. Based on the target environment baseline snapshot number, create capability revocation shadow environments and revoke C01, C02, and C03 item by item. After revoking C01, O02 forms a rigid break edge X1, and ARM core library O06 that meets the replacement installation object conditions is selected, generating an object back-cut edge from O02 to O06. After revoking C02, O03 migrates to ARMCPU plugin O09, generating a capability migration edge, and using O09 as the back-substitution anchor point. After revoking C03, O04 forms a rigid break edge X2, and ARM codec library O08 that meets the replacement installation object conditions is selected, generating an object back-cut edge from O04 to O08. Connect O01, O06, O09, O08, and O05 according to the execution order of objects in the installation capability witness chain to generate the minimum native closure chain that satisfies the native closure conditions. Figure 3 The “ARMCPU plugin” in the diagram is the abbreviation for ARMCPU plugin O09. X1 and X2 represent the endpoint markers of the rigid fracture edges corresponding to O02 and O04, respectively.
[0043] Specifically, the steps for generating an installation adaptation closure record based on the actual installation witness chain and restoring the target installation environment when the installation adaptation is not closed are as follows: When there is no installation route deviation from the anchor point in the actual installation witness chain and the actual installation process meets the native closure conditions, the target candidate installation package installation file and installation configuration in the transaction installation environment are written to the target installation environment, and the actual architecture closure record is written to the virtual machine startup configuration and the target service startup configuration to generate the installation adaptation closure record; in specific implementation, the installation object number sequence, installation phase code value sequence, cross-architecture interpreter call flag, process exit status value, and device node access status in the actual installation witness chain are read. The system generates an installation adaptation and permission flag when the actual installation witness chain does not deviate from the anchor point, the actual installation object sequence is the same as the installation object number sequence in the minimum native closure chain, the processor exception vector value does not record a valid exception, the cross-architecture interpreter call flags are all invalid values, the process exit status value is zero, the device node corresponding to the object device requirement number is in an accessible state, and the business verification output summary value is consistent with the business verification baseline output summary value. After generating the installation adaptation and permission flag, the target service process in the transaction installation environment is paused, and the transaction installation is resumed. In the environment-independent incremental layer, newly added files, replaced files, configuration change data, and installation object mappings are written to the target installation environment according to file path values. Before writing, the original version digest value of the corresponding file in the target installation environment is recorded, and the source data digest value of the file or configuration data to be written in the transaction installation environment is read. After writing, the post-write digest value of the corresponding file or configuration data in the target installation environment is calculated. If the post-write digest value is the same as the source data digest value, a merge verification pass flag is generated; if they are different, a merge verification failure flag is generated. The original version digest value, source data digest value, post-write digest value, and corresponding verification flag are written to the merge verification record. All merge verification records contain a pass / fail flag. It verifies the incremental data submitted during the transaction installation environment when the verification mark is passed, so that the installation results formed during the transaction installation are entered into the target installation environment at once. When any merge verification record has a merge verification failure mark, the incremental data writing is cancelled and the target installation environment recovery process is started. It reads the architecture capability code value, sealing object number, post-execution status value and sealing execution position value from the actual architecture sealing record, and writes the actual sealing status corresponding to the virtual processor feature configuration, virtualization device pass-through configuration and device access permissions into the virtual machine startup configuration according to the sealing execution position value. It writes the cross-architecture interpreter registration status and alternative installation object mapping relationship into the target service startup configuration.After writing is complete, the virtual machine startup configuration and target service startup configuration are reread. If the reread result matches the actual architecture sealing record, a configuration write pass flag is generated. The target environment number, target environment baseline snapshot number, target candidate installation package number, architecture route sealing token number, minimum native closure chain number, actual installation witness chain number, actual architecture sealing record number, business verification output digest value, transaction installation environment merge timestamp, and configuration write pass flag are written into the installation adaptation closure record. This ensures the installation adaptation closure record can fully associate the installation path, architecture capability sealing status, and business verification results. If there is an installation route deviation from the anchor point, or the actual installation process does not meet the native closure conditions, the transaction installation environment is deleted, the target installation environment is restored based on the target environment baseline snapshot number, and the architecture route sealing token is written to the invalidation status. In specific implementation, before deleting the transaction installation environment, the installation process and target service verification process are stopped. The actual installation witness chain, installation route deviation from the anchor point, actual architecture sealing record, process exit status value, and business verification output digest value are written into the installation failure evidence record. Remove the binding relationship of the alternative installation object file and delete the independent incremental layer of the transaction installation environment; restore the system disk data, virtual processor feature configuration, virtualization device pass-through configuration, device access permissions, and cross-architecture interpreter registration status of the target installation environment according to the target environment baseline snapshot number, and compare the restored system disk data, virtual processor feature configuration, virtualization device pass-through configuration, device access permissions, and cross-architecture interpreter registration status with the corresponding snapshot data in the baseline snapshot index table item by item. If the comparison results are all the same, a target environment restoration completion mark is generated; if the comparison results are different, a target environment restoration exception mark is generated and the current installation task is prohibited from being re-executed; after the target installation environment restoration is completed, the token status mark of the architecture route sealing token is changed to the invalid state, and an invalid timestamp and invalidation reason code value are written to prevent the same architecture route sealing token from being used again for the target candidate installation package installation. This ensures that the successful installation result only enters the target installation environment after the installation path, architecture capability sealing status, and business verification results are all closed, and the target installation environment is restored to a verifiable baseline state if the installation adaptation is not closed.
[0044] In this implementation plan, by using the actual installation witness chain, the actual architecture sealing record, and the business verification result as the closure basis for merging the transaction installation environment, the target installation environment can only receive installation results that have been confirmed by path consistency, architecture capability status consistency, and business output consistency. When the installation adaptation is not closed, verifiable recovery can be completed based on the target environment baseline snapshot number. At the same time, the architecture routing sealing token is invalidated to prevent abnormal paths from being executed again. This forms an installation closed loop that isolates successful submissions from failed rollbacks, reduces the risk of target environment contamination and repeated erroneous deployments, and improves the reliability, traceability, and recovery determinism of installation and release in the development and operation integrated scenario.
[0045] In this embodiment, based on Figure 3 The minimum native closed chain O01→O06→O09→O08→O05 is determined, and based on the sealing layer, sealing range and capability causal repetition result corresponding to the architecture capability encoding values C01, C02 and C03, architecture capability sealing record and capability causal repetition record are generated. The minimum native closed chain, architecture capability sealing record and capability causal repetition record are used as input data for architecture routing sealing token.
[0046] like Figure 4 The diagram illustrates the execution and installation adaptation closure process of the architecture routing sealing token. An architecture routing sealing token is generated by combining the minimum native closed chain, the architecture capability sealing record, and the capability causal repetition record. Before token execution, the capability challenge operation sequence and the basic back-substitution operation sequence are re-executed to generate a heterogeneous architecture capability fingerprint to be executed. If the heterogeneous architecture capability fingerprint to be executed is different from the heterogeneous architecture capability fingerprint recorded in the architecture routing sealing token, the architecture routing sealing token is written to an invalid state; if they are the same, a token execution permission flag is generated and a transaction installation environment is created. In the transaction installation environment, architecture capability sealing, installation object mapping, target candidate installation package installation, and business verification are executed, generating an actual installation witness chain consisting of O01, O06, O09, O08, and O05 connected sequentially. Figure 4 The "consistency" in the context means that the actual installation witness chain does not deviate from the anchor point and the actual installation process meets the native closure condition. In the consistent branch, the target candidate installation package installation file and installation configuration are written to the target installation environment, the actual architecture closure record is written to the virtual machine startup configuration and the target service startup configuration, and an installation adaptation closure record is generated. Figure 4 The "inconsistency" indicates that the installation route deviates from the anchor point or the actual installation process does not meet the native closure condition. In the inconsistency branch, the subsequent installation operation is stopped, the transaction installation environment is deleted, the target installation environment is restored according to the target environment baseline snapshot number, and the architecture route sealing token is written to the invalid state. Figure 4 The failure handling box in the image is a simplified representation and includes three processing steps: deletion of the transaction installation environment, restoration of the target installation environment, and expiration of the architecture route sealing token.
[0047] like Figure 2As shown, the second aspect of the present invention provides an installation adaptation system based on heterogeneous architecture fingerprints, including: an architecture fingerprint revocation generation module, an installation first-touch migration construction module, a native closed path solving module, and an adaptation sealing token execution module, wherein: the architecture fingerprint revocation generation module is used to obtain the target installation task record and perform a baseline snapshot on the target installation environment to generate a target environment baseline snapshot number; execute capability challenge operation sequences and basic back-substitution operation sequences in the capability retention shadow environment and the capability revocation shadow environment to generate a heterogeneous architecture capability fingerprint; the installation first-touch migration construction module is used to parse candidate installation packages to generate installation object capability records, and generate installation capability records in the capability retention shadow environment. The system comprises four modules: a witness chain, a witness chain, and a witness chain. The first module revoks architectural capabilities item by item and replays the installation process, generating a capability revocation migration graph. The second module solves for native closed paths, mapping heterogeneous architectural capability fingerprints to the capability revocation migration graph, determining the first installation capability anchor point, generating candidate native closed chains by connecting back-to-back anchor points or filtering alternative installation objects, filtering the minimum native closed chain, determining the target candidate installation package number, and generating an architectural capability sealing record. The third module executes the adaptation sealing token, generating an architectural routing sealing token based on the minimum native closed chain and the architectural capability sealing record. It then executes the installation of the target candidate installation package and business verification in the transactional installation environment, generating an installation adaptation closing record or restoring the target installation environment based on the actual installation witness chain.
[0048] In this implementation plan, by connecting heterogeneous architecture capability fingerprints, installation capability witness chains, capability revocation migration graphs, minimum native closed chains, architecture capability sealing records, and architecture routing sealing tokens into a unified closed link, the heterogeneous architecture installation adaptation process can maintain the same data benchmark from capability identification, path reconstruction to transaction execution and result write-back. This reduces the risk of misjudgment of architecture capabilities, mismatch of alternative installation objects, and abnormal installation results entering the target installation environment. It also provides the installation adaptation process with clear causal, path, and recovery bases, thereby improving the adaptation accuracy, execution stability, and result traceability of target candidate installation packages in heterogeneous architecture environments.
[0049] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.
[0050] The preferred embodiments of the present invention disclosed above are merely illustrative of the invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.
Claims
1. An installation adaptation method based on heterogeneous architecture fingerprints, characterized in that, Includes the following steps: S1, Obtain the target installation task record and perform a baseline snapshot on the target installation environment, generating a target environment baseline snapshot number; Execute capability challenge operation sequences and basic back-substitution operation sequences in capability retention shadow environments and capability revocation shadow environments to generate heterogeneous architecture capability fingerprints; S2, parse the candidate installation package to generate the installation object capability record, generate the installation capability witness chain in the capability retention shadow environment, revoke the architecture capability item by item and replay the installation process to generate the capability revocation migration graph; S3 maps the heterogeneous architecture capability fingerprint to the capability withdrawal migration graph, determines the first installation capability anchor point, generates candidate native closed chains by connecting back anchor points or filtering alternative installation objects, filters the smallest native closed chain, determines the target candidate installation package number, and generates architecture capability sealing records. S4 generates architecture routing sealing tokens based on the minimum native closed chain and architecture capability sealing record, performs target candidate installation package installation and business verification in the transaction installation environment, and generates installation adaptation closed records or restores the target installation environment based on the actual installation witness chain.
2. The installation adaptation method based on heterogeneous architecture fingerprints according to claim 1, characterized in that: The specific steps for obtaining the target installation task record, performing a baseline snapshot of the target installation environment, and generating a target environment baseline snapshot number are as follows: Obtain the target installation task record, which includes the target environment number, candidate installation package number set, installation command parameter value, business verification input record, and business verification baseline output summary value; read the target execution architecture encoding value and target execution bit width value; perform baseline snapshots on the system disk, virtual processor feature configuration, virtualization device pass-through configuration, device access permissions, and cross-architecture interpreter registration status of the target installation environment, and generate the target environment baseline snapshot number.
3. The installation adaptation method based on heterogeneous architecture fingerprints according to claim 2, characterized in that: The specific steps for generating heterogeneous architecture capability fingerprints by executing capability challenge operation sequences and basic back-substitution operation sequences in capability retention shadow environments and capability revocation shadow environments are as follows: According to the target execution architecture encoding value, read the architecture capability encoding value, capability challenge operation sequence, and basic back-substitution operation sequence from the architecture probe rule base; create a capability retention shadow environment and a capability revocation shadow environment based on the target environment baseline snapshot number; in the capability revocation shadow environment, perform only one of the following architecture capability revocation operations each time: clear a virtual processor feature bit; revoke a device pass-through relationship and corresponding device access permissions; cancel a cross-architecture interpreter registration item and generate an architecture capability revocation record; In the capability retention shadow environment and the capability revocation shadow environment, the same capability challenge operation sequence and basic back-substitution operation sequence are executed respectively. The virtual machine exit reason code value, the processor exception vector value and device node access status value of the guest layer, and the process exit status value, cross-architecture interpreter call flag and output digest value of the installation process layer are collected to generate the same-source revocation witness frame. Following the order of host layer, client layer, and installation process layer, align the same-source revocation witness frames corresponding to the same architecture capability encoding values. Determine the first acquisition layer with at least one inconsistent value for a state field with the same name as the capability source layer. Starting from the capability source layer, connect adjacent acquisition layers that still have inconsistent values for state fields with the same name layer until the next acquisition layer has no field differences, and generate capability transfer edges. When the process exit status value of the capability challenge operation sequence is zero and the output digest value is the same as the output digest value of the basic back-substitution operation sequence, if the cross-architecture interpreter call is marked as invalid, generate a native closure mark; if it is valid, generate a translation closure mark. When the process exit status value of the basic back-substitution operation sequence in the capability revocation shadow environment is zero, and the output digest value is the same as the output digest value of the basic back-substitution operation sequence in the capability retention shadow environment, a basic back-substitution closure mark is generated, forming a heterogeneous architecture capability fingerprint.
4. The installation adaptation method based on heterogeneous architecture fingerprints according to claim 3, characterized in that: The specific steps for generating installation object capability records by parsing candidate installation packages and generating installation capability witness chains in the capability retention shadow environment are as follows: Read candidate installation packages, identify installation scripts, main executable files, dynamic link libraries, lazy-loaded plugins, and kernel driver files in the read-only unpacking space, and assign installation object numbers to each file; parse the machine instruction area, processor attribute area, and device call area of each installation object, and write the candidate installation package number, installation object number, object file path value, object architecture encoding value, object execution bit width value, object instruction capability set, object device requirement number, and object interface summary value into the installation object capability record; In the capability-preserving shadow environment, the installation process is executed sequentially according to the installation command parameter values: unpacking, installation script execution, dynamic object loading, plugin loading, driver loading, main executable startup, and business verification. The installation phase encoding value, installation object number, first execution address value, first call timestamp, device node access status value, cross-architecture interpreter call flag, and process exit status value are recorded for each architecture capability encoding value when it first participates in the execution. The records are connected according to the installation phase encoding value and the first call timestamp, and the business verification output summary value is written to the end of the chain to generate the installation capability witness chain.
5. The installation adaptation method based on heterogeneous architecture fingerprints according to claim 4, characterized in that: The specific steps for revoking architectural capabilities item by item and replaying the installation process to generate a capability revocation migration diagram are as follows: The architecture capability revocation record is called item by item according to the installation capability witness chain. Each time, the capability revocation shadow environment is recreated based on the target environment baseline snapshot number and the same installation process is executed. When the process exit status value is zero and the business verification output digest value is the same as the business verification baseline output digest value, the cross-architecture interpreter call flag in the capability revocation shadow environment changes from an invalid value to a valid value relative to the corresponding first participation record in the capability retention shadow environment, then a translation acceptance edge is generated; when the cross-architecture interpreter call flags in both shadow environments are invalid values, and at least one of the installation object number and the first execution address value changes, then a capability migration edge is generated; when the process exits abnormally, a rigid break edge is generated. The first participation record of each architecture capability encoding value in the installation capability witness chain of the capability retention shadow environment is determined as the first touch anchor point, the endpoint of the capability migration edge is determined as the back replacement anchor point, adjacent first touch anchor points are connected along the installation capability witness chain, and capability migration edge, translation acceptance edge and rigid break edge are written to generate the capability revocation migration graph.
6. The installation adaptation method based on heterogeneous architecture fingerprints according to claim 5, characterized in that: The specific steps for mapping heterogeneous architecture capability fingerprints to capability withdrawal migration graphs, determining the first installation capability anchor point, and generating candidate native closed chains by connecting back-substitution anchor points or filtering alternative installation objects are as follows: Map heterogeneous architecture capability fingerprints to anchor points with the same architecture capability encoding values in the capability revocation migration graph. When the native closure mark is valid, write the native acceptable state. When the native closure mark is invalid and the translated closure mark is valid, write the translated dependent state. When both the native closure mark and the translated closure mark are invalid, write the capability disconnected state. Along the capability revocation migration graph, determine the first touch anchor point that is in the translated dependent state or the capability disconnected state as the first disconnected installation capability anchor point. Preserve the connection path before the first installation capacity anchor point; connect the back-substitution anchor point when the first installation capacity anchor point is connected to the capacity migration edge and the foundation back-substitution closure mark is valid. When translating the first-break installation capability anchor point connection to the receiving edge or rigid break edge, alternative installation objects are selected from the installation object capability record. These objects have the same object interface summary value as the object interface summary value corresponding to the installation object number in the first-break installation capability anchor point record, the same object architecture encoding value as the target execution architecture encoding value, the same object execution bit width value as the target execution bit width value, and each architecture capability encoding value in the object instruction capability set has a valid native closure mark in the heterogeneous architecture capability fingerprint. These alternative installation objects are then used to generate object back-cut edges. Perform the same processing on subsequent first-touch anchor points to generate candidate native closed chains.
7. The installation adaptation method based on heterogeneous architecture fingerprints according to claim 6, characterized in that: The specific steps for filtering the smallest native closed chain, determining the target candidate installation package number, and generating the architecture capability sealing record are as follows: For each candidate native closed chain, a native closure verification shadow environment is created. The architectural capabilities recorded by the anchors in the translation dependency state within the chain are revoked. The installation objects are replaced according to the object back-cut edge mapping and the same installation process is executed. When the actual installation object sequence is the same as the installation object number sequence in the candidate native closed chain, no processor exception is generated, no cross-architecture interpreter is called, the process exit status value is zero, the device node access status value indicates that the corresponding device node is accessible, and the business verification output digest value is the same as the business verification baseline output digest value, a native closure verification record is generated, and each judgment condition is determined as a native closure condition. Candidate native closed chains that have passed verification are arranged in order of increasing number of object back-cut edges and increasing number of capability migration edges. The candidate native closed chain ranked first is taken as the smallest native closed chain, and the target candidate installation package number is determined. Read the capability migration edges and object back-cut edges in the minimum native closed chain. Determine the sealing layer and sealing range based on the capability source point layer and capability transmission edge in the heterogeneous architecture capability fingerprint according to the corresponding architecture capability encoding value. Generate an architecture capability sealing record based on the architecture capability revocation record. Create a capability sealing shadow environment and a capability replication sub-environment. The capability sealing shadow environment executes all architecture capability sealing records and runs the minimum native closed chain. Each capability replication sub-environment restores only one corresponding sealed architecture capability. After restoration, re-enter the original first touch anchor point and reproduce processor abnormality, process abnormal exit, or business verification output summary value inconsistent with business verification baseline output summary value. Generate a capability causal replication record.
8. The installation adaptation method based on heterogeneous architecture fingerprints according to claim 7, characterized in that: The specific steps for generating architecture routing sealing tokens based on minimum native closed chains and architecture capability sealing records, and executing target candidate installation package installation and business verification in a transactional installation environment are as follows: The target environment number, target environment baseline snapshot number, target candidate installation package number, heterogeneous architecture capability fingerprint, minimum native closed chain, architecture capability sealing record, and capability causal repetition record are combined to generate an architecture routing sealing token. Based on the target environment baseline snapshot number, the capability challenge operation sequence and basic back-substitution operation sequence involved in the token are re-executed to form a heterogeneous architecture capability fingerprint to be executed. This fingerprint is then compared with the heterogeneous architecture capability fingerprint in the architecture routing sealing token. If the fingerprints match, a token execution permission flag is generated; otherwise, a token invalidation flag is generated. After generating the token execution permission mark, a transactional installation environment is created. The virtual processor feature configuration, virtualization device pass-through configuration, device access permissions and cross-architecture interpreter registration status are modified according to the architecture capability sealing record. The replacement installation object is mapped to the original installation object file path according to the object back-cutting edge in the minimum native closed chain, and the actual architecture sealing record is generated. In the transactional installation environment, the installation and business verification of the target candidate installation package are performed according to the minimum native closed chain, generating the actual installation witness chain; The actual installation witness chain is compared item by item with the minimum native closed chain. The record with the first different item is identified as the installation route deviating from the anchor point. Subsequent installation operations are stopped and the transaction installation environment is kept isolated.
9. The installation adaptation method based on heterogeneous architecture fingerprints according to claim 8, characterized in that: The specific steps for generating an installation adaptation closure record or restoring the target installation environment based on the actual installation witness chain are as follows: When the actual installation witness chain does not deviate from the anchor point and the actual installation process meets the native closure conditions, the target candidate installation package installation file and installation configuration in the transaction installation environment are written to the target installation environment, and the actual architecture closure record is written to the virtual machine startup configuration and the target service startup configuration to generate an installation adaptation closure record. If the installation route deviates from the anchor point, or the actual installation process does not meet the native closure conditions, delete the transaction installation environment, restore the target installation environment according to the target environment baseline snapshot number, and write the architecture route sealing token to the invalidation state.
10. An installation adaptation system based on heterogeneous architecture fingerprinting, characterized in that, include: The system includes an architecture fingerprint reversal generation module, an installation first-touch migration build module, a native closed path solving module, and an adaptation sealing token execution module, among which: The architecture fingerprint revocation generation module is used to obtain the target installation task record and perform a baseline snapshot on the target installation environment to generate a target environment baseline snapshot number. Execute capability challenge operation sequences and basic back-substitution operation sequences in capability retention shadow environments and capability revocation shadow environments to generate heterogeneous architecture capability fingerprints; The installation first-touch migration construction module is used to parse candidate installation packages to generate installation object capability records, generate installation capability witness chains in the capability retention shadow environment, revoke architecture capabilities item by item and replay the installation process, and generate capability revocation migration diagrams. The native closed path solving module is used to map the heterogeneous architecture capability fingerprint to the capability withdrawal migration graph, determine the first installation capability anchor point, generate candidate native closed chains by connecting back replacement anchor points or filtering alternative installation objects, filter the smallest native closed chain, determine the target candidate installation package number, and generate architecture capability sealing records. The adaptation sealing token execution module is used to generate an architecture routing sealing token based on the minimum native closed chain and architecture capability sealing record, execute the installation of the target candidate installation package and business verification in the transaction installation environment, and generate an installation adaptation closing record or restore the target installation environment according to the actual installation witness chain.
Citation Information
Patent Citations
A method for mirror image cropping and multi-architecture mirror image construction based on a cloud platform
CN116166379B
One-cloud multi-core practical training system deployment adaptation platform in credential environment
CN121979579A
