A mobile multi-arm robot operating system and task execution method based on a causal state kernel

By introducing a causal state kernel, the problem of causal consistency in the operating system of mobile multi-arm robots is solved, achieving safe access and causal consistency for task execution, and forming an auditable causal spectrum.

CN123169147APending Publication Date: 2026-11-27SHANGHAI SAGE INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611686122.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In the operating system of mobile multi-arm robots, there is a lack of unavoidable kernel semantics between task scheduling and device action issuance, which leads to problems such as cross-source state splicing, version drift during task switching, and reverse verification of subsequent evidence.

Method used

A mobile multi-arm robot operating system based on a causal state kernel is adopted. The causal tagging module records multi-source field observations, the version construction and freezing module generates a read-only previous version, the causal closure verification module ensures the causal closure of the previous version, the dual fence manager establishes action fences and tags, and the action permission and descriptor sealing module ensures the causal consistency of action execution.

Benefits of technology

It achieves causal closure of multi-source asynchronous observation, ensures safe access and causal consistency of task execution, prevents late evidence backfilling and reverse verification of action results, and forms an auditable causal spectrum.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123169147A_ABST
    Figure CN123169147A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of robot operating systems, in particular to a mobile multi-arm robot operating system based on a causal state kernel and a task execution method. The causal state kernel constituting a necessary execution boundary is arranged between a task and a device driver, multi-source asynchronous observation is constructed as a causal closed read-only pre-version, read-only analysis based on version identification, double-rail evidence attribution constraint and action descriptor seal check are saved and recovered with task scheduling, safe access and causal consistency execution of a mobile multi-arm robot task are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of robot operating system technology, and in particular to a mobile multi-arm robot operating system and task execution method based on a causal state kernel. Background Technology

[0002] Mobile composite robots or mobile multi-arm robots are widely used in production line scenarios such as material handling, parts assembly, and robot-equipment collaboration. When performing a single task, these robots typically receive multiple state data simultaneously from vision sensors, encoders, torque sensors, safety scanners, programmable logic controllers (PLCs), machine tools, and robot controllers. A single material handling or assembly operation often relies on multiple cross-device facts, such as robot docking, machine door opening, spindle stopping, chuck release, valid workpiece pose, and no one entering the shared scanning space. These facts are generated by different nodes, different buses, and different sampling periods, leading to network latency, message out-of-order delivery, buffer replay, clock drift, and interference from concurrent actions. If the system judges solely based on the timestamp of each message, the latest value, or the return status of a callback, it may piece together physically incompatible facts to create a seemingly complete preceding state, or use observations generated after the action is executed to inversely prove that the state was safe before the action, resulting in a misalignment between the software state and the actual situation.

[0003] Existing robot operating systems and related technologies provide various basic mechanisms for this purpose. ROS / ROS2 typically updates the state separately through Topic, Service, Action, and TensorFlow, with application nodes automatically concatenating cross-source information. Time synchronization mechanisms such as ExactTime and ApproximateTime, along with QoS management, primarily address timestamp pairing and transmission timeliness issues, but time proximity does not equate to causal consistency. Distributed snapshots or logical clocks can describe the sequential relationship of computational events, but typically do not include constraints on the scope of physical objects and the window of influence of actions. State estimation or digital twins can fuse probabilistic observations, but do not necessarily form an auditable, frozen, and unrecoverable pre-execution fact baseline. Behavior trees or lifecycle nodes can organize control flows, but node success does not equate to a causal closure of cross-device field facts. When validation logic is encapsulated as an application service, the application may still bypass the service to read the latest cache or directly call the driver.

[0004] Therefore, in the operating system of mobile multi-arm robots, there is still a lack of an unavoidable kernel semantics between task scheduling and device action issuance: during the process of task admission, queuing, context switching and action issuance, there is a lack of the pre-action fact version saved and restored with the task; safety-related state readings may fall back to the latest dynamic value; observations that arrive after freezing may fill in the referenced pre-state; action results may be used to reverse the preconditions of the same action; and action results also lack verifiable causal inheritance relationships.

[0005] In view of this, there is a need for an operating system to solve problems such as cross-source state splicing, version drift during task switching, and reverse verification of subsequent evidence. Summary of the Invention

[0006] In view of this, the purpose of this invention is to provide a mobile multi-arm robot operating system and task execution method based on a causal state kernel.

[0007] In a first aspect, embodiments of the present invention provide a mobile multi-arm robot operating system based on a causal state kernel, including a task scheduler and a device driver adapter, wherein the causal state kernel located between the task and the device driver adapter constitutes a necessary execution boundary, and the system further includes: The causal labeling module is used to record multi-source field observations as observations with source sequences, causal dependencies, and physical domains. The version construction and freezing module is used to generate candidate current state versions according to the read scope of the action to be executed, and to solidify them into read-only pre-versions when the freezing conditions are met. The causal closure verification module is used to determine the causal closure of the preceding version based on the causal predecessor downward closure and the antecedent constraint. The antecedent constraint means that the observation in this version is causally prior to the action to be performed and its action marker. The dual fence manager is used to create a pre-freeze fence when the previous version is frozen, and to create an action effect fence and generate an action tag when the action is issued. This allows observations after freezing to be assigned to subsequent candidate versions, and observations associated with action tags to be assigned to subsequent versions. The precondition determination is based on the frozen previous version as the factual basis. The context binding and state namespace module is used to bind the version identifier of the previous version to the task execution context, so that the context can be saved and restored when switching tasks. Security-related states are only resolved in the read-only version state namespace according to the version identifier. The Action Permission and Descriptor Seal module is used to generate action descriptors with permission and binding version identifiers based only on the previous version and the action predicate, and to allow the device driver adapter to issue actions when the permission is established, the context version identifier is consistent, and the descriptor digest verification passes. The result version generation module is used to generate a successor version that inherits from the previous version and the action tag based on the post-action result observation.

[0008] In conjunction with the first aspect, the observations recorded by the causal labeling module also include sampling time, observation value, data quality, and source category. The source category at least distinguishes between direct control chain observations carrying action labels and independent physical observations independent of the action command feedback chain. The freezing conditions used by the field state version construction and freezing module include at least the following: the referenced predecessor version is closed, the observation coverage involved in the action predicate is complete, the observations meet the preset time window and quality threshold, the causal front of the observation source sequence is monotonic relative to the parent version, the causal predecessor is closed downward, the conflict attributes have been resolved, and no action has been issued based on the candidate field state version. The causal closure verification module also determines the causal closure of the previous version based on observation coverage, source sequence monotonicity, physical domain consistency, and conflict resolution.

[0009] In conjunction with the first aspect, the dual fence manager is also used to: write observations that arrive after the preceding freeze fence is established but before the action effect fence is established into candidate branches that are different from the preceding version; When the observation changes the determination of the action predicate, the permission that has not yet been executed is invalidated and the current state version is refrozen based on the candidate branch, while the predicate version remains read-only. The result observation associated with the action tag is used to form the subsequent version and as the basis for excluding the preconditions for the action to be executed.

[0010] In conjunction with the first aspect, the task execution context also includes a physical scope summary, a causal front summary, a branch identifier, a set of allowed reads, a pending action marker, and a causal task state; the task scheduler saves and restores the task execution context along with the processor context when a task is preempted, migrated to another core, suspended, resumed, or restarted; Child threads, asynchronous callbacks, or device coroutines derived from the parent task inherit the parent task's version identifier, branch identifier, physical scope summary, and causal front summary by default. When using new field observations, they explicitly generate branch versions or rebind to another closed version and re-execute causal closure judgment and action admission.

[0011] In conjunction with the first aspect, the action descriptor generated by the action licensing and descriptor sealing module includes an action identifier, a version identifier, a physical scope summary, a causal front summary, an action pre-predicate summary, and an action control instruction summary. The Action Permission and Descriptor Seal module recalculates the descriptor digest before the device driver adapter is issued. When the version identifier, physical scope digest, causal front digest, action predicate digest, or action control instruction digest changes, the action descriptor is invalidated, and the task is switched to blocking binding so that the explicitly bound version can continue to execute.

[0012] In conjunction with the first aspect, the result version generation module attributes the result observations through the first attribution channel and the second attribution channel; the first attribution channel performs direct attribution based on the action markers carried by the result observations; the second attribution channel attributes the independent physical observations to the action to be executed when the physical scope of the independent physical observation matches the action writing scope, the sampling time is located in the action result observation window, the independent physical observations satisfy the expected physical transfer predicates, and there are no competing actions that can cause the same physical transfer. When there are competing actions, insufficient coverage of result observations, or conflicts between direct control chain observations and independent physical observations, the subsequent version remains open and is marked as a version pending reconciliation. Subsequent actions of a preset risk level or higher are restricted from using this subsequent version as the preceding version until the subsequent version is closed again.

[0013] In conjunction with the first aspect, it also includes: The branch merging and directed invalidation module allows multiple actions to read-only reference the same baseline version and generate result branches with different branch identifiers. It generates a merged version only when the write scopes of the two result branches are not intersecting or the corresponding physical effects are interchangeable, the conflict properties of the two result branches have been resolved, and the causal predecessor of the merged version remains downward closed. When an observation is revoked, its quality is degraded, or it is corrected by conflicting facts, it invalidates the version containing the observation, the descendants of dependent versions, and the action references along the version parent-child relationship and the action reference relationship, so that sibling branches that have no causal dependency on the observation remain valid. When the physical action corresponding to the affected branch has been issued, retain the record of the physical action that has occurred, and establish a reconciliation branch based on the last unaffected closed version, the re-acquired field observations, and the affected physical scope.

[0014] In conjunction with the first aspect, it also includes: The persistence and recovery module is used to persist closed versions, version lineages, causal fronts, task execution contexts, action-version binding relationships, action tags, and action descriptors. When the controller recovers, it only recovers task execution contexts and action descriptors that have passed the summary verification. It invalidates old descriptors that have not yet issued actions and requires explicit rebinding. For tasks where actions have been issued but subsequent versions have not been closed, it transfers the results to the reconciliation stage. For cases where new field observations are inconsistent with the last closed version, it generates branch versions and re-executes the causal closure determination.

[0015] Secondly, this application provides a mobile multi-arm robot task execution method based on a causal state kernel, executed by the mobile multi-arm robot operating system. The operating system includes a task scheduler and a device driver adapter. The causal state kernel located between the task and the device driver adapter constitutes the necessary execution boundary. The method includes: Multi-source field observations are recorded as observations with source sequences, causal dependencies, and physical domains. Candidate current state versions are generated based on the read scope of the action to be executed, and are solidified as read-only pre-versions when the freeze conditions are met; The causal closure of the preceding version is determined based on the downward closure of the causal precursor and the antecedent constraint. The antecedent constraint means that the observation in this version is causally prior to the action to be performed and its action marker. Bind the version identifier of the previous version to the task execution context, so that the context can be saved and restored when switching tasks, and security-related states are only resolved in the read-only version state namespace according to the version identifier; When the preceding version is frozen, a preceding freeze barrier is established. When the action is issued, an action effect barrier is established and an action tag is generated. This allows observations after freezing to be assigned to subsequent candidate versions, and observations associated with action tags to be assigned to subsequent versions. The preceding condition determination is based on the frozen preceding version as the factual basis. The device driver adapter is allowed to issue actions only when the permission is established, the version identifier in the task execution context is consistent with the action descriptor, and the summary verification of the action descriptor passes. Generate a successor version that inherits from the predecessor version and the action tag based on the observation of the result after the action.

[0016] In conjunction with the second aspect, the steps for generating a successor version that inherits from the preceding version and the action tag based on the observation of the post-action result include: The result observation is attributed through a first attribution channel and a second attribution channel; when the result observation carries an action tag, the first attribution channel directly attributes the result observation to the action to be performed. The second attribution channel attributes the independent physical observation to the action to be executed when the physical domain of the independent physical observation matches the action writing domain, the sampling time is within the action result observation window, the independent physical observation satisfies the expected physical transfer predicate, and there is no competing action that can cause the same physical transfer. The results of attribution via the first or second attribution channel are written into the successor version, which is the parent version of the previous version and the action tag is the inheritance tag. When there are competing actions, insufficient coverage of result observations, or conflicts between direct control chain observations and independent physical observations, the subsequent version is kept in an open state and marked as a version to be reconciled. Subsequent actions above the preset risk level are restricted to use this subsequent version as the preceding version until the subsequent version is closed again.

[0017] The embodiments of the present invention bring the following beneficial effects: The mobile multi-arm robot operating system and task execution method based on the causal state kernel provided in this application, by setting a causal state kernel that constitutes the necessary execution boundary between the task and the device driver, constructs multi-source asynchronous observations as a causal closed read-only pre-version, and realizes safe access and causal consistency execution of mobile multi-arm robot tasks based on the read-only parsing of the version identifier saved and restored with the task scheduling, the double fence evidence attribution constraint, and the action descriptor seal verification.

[0018] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.

[0019] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0020] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0021] Figure 1 A schematic diagram of the structure of a mobile multi-arm robot operating system based on a causal state kernel provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the structure of a field status version object provided in an embodiment of the present invention; Figure 3 This is a schematic diagram illustrating the logical relationship between the pre-freeze fence and the action effect fence in the system provided in this embodiment of the invention. Figure 4 This is a schematic diagram illustrating the task execution context inheritance, action sealing, and explicit rebinding process in the system provided by an embodiment of the present invention; Figure 5 This is a schematic diagram illustrating the forced execution boundary of the system causal state kernel in the operating system, provided in an embodiment of the present invention. Figure 6 This is a schematic diagram illustrating action tag inheritance, dual-channel attribution, and successor version generation in the system provided in this embodiment of the invention. Figure 7 This is a schematic diagram illustrating the controlled merging of concurrent version branches and physical effects in a system according to an embodiment of the present invention. Figure 8 This is a schematic diagram of directional failure propagation after observation cancellation in the system provided in this embodiment of the invention; Figure 9 This is a schematic diagram of the state transition in a collaborative part-retrieving scenario between a mobile robot and a machine tool, provided as an embodiment of the present invention. Detailed Implementation

[0022] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions 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, 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.

[0023] To facilitate understanding of this embodiment, the technical terms used in this application will be briefly introduced below.

[0024] The causal state kernel refers to the mandatory execution boundary set between the job task and the device driver adapter. This kernel forcibly intervenes in state reading, task readiness, and action issuance, and is responsible for organizing multi-source asynchronous observations into on-site state versions, performing causal closure checks, task context binding, double fence constraints, and action descriptor sealing. The application layer cannot bypass this kernel to complete equivalent safety-related readings and action issuance through ordinary shared caches or unregistered driver entry points.

[0025] Field observation records refer to the data objects formed after the causal labeling module 110 records multi-source field observations.

[0026] Causal observation refers to the predecessor-successor relationship between observations in terms of generative logic.

[0027] An Epoch is an immutable causal state slice selected from multi-source observations for a given physical scope. It includes an EID (Employment ID), parent version, concurrent branch identifier, physical scope, observation set, causal front, and conflict mask. When the freeze condition is met, it is solidified into a read-only preceding version, serving as the factual basis for action admission.

[0028] Downward closure means that for any observation in the current state version, its direct causal predecessors and all ancestors obtained recursively along the dependencies are located in this version or its ancestral versions. This condition ensures that the facts upon which the preceding version is based have a complete source of predecessors, excluding incomplete states pieced together from isolated observations missing predecessors.

[0029] Precedence limitation (no future evidence) refers to the observations in the on-site state version that causally precede the action to be performed and its action marker. That is, the observations in this version are not causally dependent on the action to be performed, nor do they take the result of the action as a precondition, thus excluding the possibility that the physical result after the action can be used to prove the safety before the action.

[0030] The dual causal barrier consists of a pre-freeze barrier and an action-effect barrier. The pre-freeze barrier is established when the preceding version is frozen, used to define the scope of the preceding facts; the action-effect barrier is established when the action is issued and generates an action marker, used to define the attribution of the result after the action. These two barriers are not timestamp thresholds, but rather mandatory writing rules for attributing evidence.

[0031] An action tag is a unique causal identifier generated when an action is issued. Observations generated by the action command execution chain carry this tag; independent physics observations can also be attributed to this action tag if they satisfy scope matching, time window, expected physics transition, and no competing actions. Action results must inherit this tag to be included in subsequent versions.

[0032] The task execution context is a component of the task control block. It stores the frozen versions of tasks that are allowed to be read, along with their verification information, including version identifier, physical scope summary, causal front summary, branch identifier, and allowed read set. When a task is preempted, migrated to another core, suspended, resumed, or restarted, this context is saved and restored along with the processor context to prevent task read drift.

[0033] The context-sealed action descriptor refers to the binding object generated after an action passes causal admission. It includes the action identifier, version identifier, scope summary, frontier summary, pre-predicate summary, and action control instruction summary, and calculates the seal value. Before the driver is issued, the summary needs to be recalculated and compared with the seal value; any change in the summary will cause the descriptor to become invalid and trigger a blocking rebinding to prevent the action from executing outside the original pre-predicate version.

[0034] Dual-channel attribution refers to two channels used to confirm whether a result observation belongs to the current action. The first attribution channel directly attributes the result to the action marker carried by the observation; the second attribution channel performs physical attribution for independent physical observations when the scope matches, the observation is within the result window, the expected physical transfer is met, and there are no competing actions.

[0035] Directed invalidation refers to a situation where, when an observation is revoked, downgraded, or corrected, only the version containing the observation and its descendants, as well as any unexecuted licenses, become invalid along the version parent-child and action reference relationships. Sibling branches that have no causal dependency on the observation remain valid. If the affected physical action has already occurred, no software rollback is performed; instead, a reconciliation branch is created based on the last unaffected version.

[0036] After introducing the technical terms used in this application, the application scenarios and design concepts of the embodiments of this application will be briefly described below.

[0037] Based on this, this application provides a mobile multi-arm robot operating system and task execution method based on a causal state kernel.

[0038] Example 1 This application provides a mobile multi-arm robot operating system based on a causal state kernel, including a task scheduler and a device driver adapter. The causal state kernel, located between the task and the device driver adapter, constitutes the necessary execution boundary. Figure 1 As shown, the operating system also includes: a causal tagging module 110, a version construction and freezing module 120, a causal closure verification module 130, a dual fence manager 140, a context binding and state namespace module (not shown in the figure), and an action permission and descriptor sealing module 160.

[0039] The causal labeling module 110 is used to record multi-source field observations as observations with source sequences, causal dependencies, and physical domains; The version construction and freezing module 120 is used to generate candidate on-site state versions according to the read scope of the action to be executed, and to solidify them into read-only pre-versions when the freezing conditions are met; Causal closure verification module 130 is used to determine the causal closure of the preceding version based on the causal predecessor downward closure and the prior cause limitation. The prior cause limitation means that the observation in this version is causally prior to the action to be performed and its action marker. The dual fence manager 140 is used to establish a pre-freeze fence when the previous version is frozen, establish an action effect fence and generate an action tag when the action is issued, so that the observation after freezing is assigned to the subsequent candidate version, and the observation associated with the action tag is assigned to the subsequent version. The pre-condition determination is based on the frozen previous version as the fact basis. The context binding and state namespace module (not shown in the figure) is used to bind the version identifier of the previous version to the task execution context, so that the context can be saved and restored when switching tasks, and security-related states are only resolved in the read-only version state namespace according to the version identifier; The action license and descriptor sealing module 160 is used to generate an action descriptor with a license and binding version identifier based only on the previous version and the action predicate, and to allow the device driver adapter to issue the action when the license is established, the context version identifier is consistent, and the descriptor digest verification is passed. The result version generation module 170 is used to generate a successor version that inherits the previous version and the action tag based on the post-action result observation.

[0040] In the mobile multi-arm robot operating system based on a causal state kernel provided in this application, the causal state kernel constitutes the necessary boundary between the task and the drive, enabling multi-source observations to form a read-only preceding version according to the source sequence, causal dependency, and physical domain. Downward closure and pre-causal constraints ensure that the facts before the action are complete and precede the action. The version identifier is saved and restored with the task context, avoiding reading different state versions after task switching, kernel migration, or restoration. The double fence allows frozen observations and action tag-related observations to be classified into candidate versions and successor versions respectively, preventing late evidence backfilling and reverse verification of action results. Permission and descriptor summary verification ensure that actions are issued according to the same frozen version. The results inherit the preceding version and action tag, forming an auditable causal genealogy.

[0041] The operating system comprises a task scheduler, device driver adapters, and a causal state kernel. The task scheduler handles task execution and switching, while the device driver adapters handle action issuance. The causal state kernel resides between the job and the device driver adapter, forming the necessary execution boundary between them. This ensures that the state version, action permissions, and action issuance relied upon by the job are all under the same kernel semantics. A state version is a versioned state object formed for a given physical scope. Candidate versions are versions that are not yet frozen, still accept observations, and undergo closure checks. Preceding versions are read-only versions that serve as the basis for action admission after freezing, and subsequent versions are inherited versions formed after an action.

[0042] The causal labeling module 110 is used to record multi-source field observations as observations with source sequences, causal dependencies, and physical domains. The source sequence characterizes the order of the observations within their respective sources; the causal dependency characterizes the observations, control events, or action tags that directly depend on the generation of the observation; and the physical domain characterizes the physical objects, equipment, spatial regions, and attributes described by the observation. Thus, the observations are no longer simply messages saved based on arrival time or latest value, but rather observation records with causal labels and physical orientations, providing a foundation for the construction of subsequent candidate field state versions.

[0043] The version construction and freezing module 120 is used to generate candidate field state versions according to the read scope of the action to be executed, and to solidify them as read-only preceding versions when the freezing conditions are met. Each action to be executed has its read scope. The version construction and freezing module selects relevant observations based on this read scope to form candidate field state versions. When the freezing conditions are met, the candidate versions are solidified as read-only preceding versions. The read-only preceding versions constitute the frozen factual basis for the action to be executed. After freezing, this version remains read-only, and subsequent observations are included in subsequent candidate versions without changing the already frozen preceding version.

[0044] The causal closure verification module 130 is used to determine the causal closure of the preceding version based on causal predecessor downward closure and antecedent constraint. Downward closure ensures that the observations in the preceding version have complete predecessor evidence, avoiding the formation of preceding facts based on observations lacking predecessors; antecedent constraint means that the observations in this version are causally prior to the action to be executed and its action marker, making the observations in the preceding version facts that were formed before the action. Based on this, the causal closure verification module determines whether the preceding version can serve as the causal closure fact basis for the action to be executed, and provides the determination result for version construction and freezing, context binding, and action permission.

[0045] The dual-fence manager 140 is used to establish a pre-freeze fence when the preceding version is frozen, and to establish an action effect fence and generate an action tag when an action is issued. This ensures that observations after freezing are assigned to subsequent candidate versions, and observations associated with action tags are assigned to subsequent versions. Precondition determination is based on the frozen preceding version as the factual basis. The pre-freeze fence is established when the preceding version is frozen to define the scope of the preceding facts upon which the action to be executed is based. The action effect fence is established when the action is issued and generates an action tag to define the attribution of observations formed after the action is issued. Observations arriving after freezing enter subsequent candidate versions without changing the frozen preceding version; observations associated with action tags enter subsequent versions. Thus, precondition determination is based on the frozen preceding version as the factual basis, and observations after freezing and observations after the action enter subsequent candidate versions and subsequent versions, respectively.

[0046] The context binding and state namespace module is used to bind the version identifier of a previous version to the task execution context, allowing this context to be saved and restored during task switching. Security-related states are resolved only in the read-only version state namespace based on this version identifier. The previous version establishes a correspondence with the task execution context through its version identifier. The task scheduler saves and restores this context during task switching, ensuring that the task continues to use the same previous version during admission, queuing, switching, and recovery. Security-related state reads are resolved in the read-only version state namespace based on this version identifier, limiting reads to the frozen version bound to the task and preventing the use of a different state version due to task switching or recovery.

[0047] The action licensing and descriptor sealing module 160 is used to generate action descriptors with licenses and bound version identifiers based solely on the preceding version and the action predicate. It allows the device driver adapter to issue actions only when the license is valid, the context version identifier matches, and the descriptor digest verification passes. When generating a license, this module uses the frozen preceding version and action predicate as a basis, restricting action access to that preceding version. After the license is valid, it generates an action descriptor with a bound version identifier, establishing a correspondence between the action descriptor and the preceding version. Before the device driver adapter issues an action, this module verifies whether the license is valid, whether the version identifier in the task execution context matches the version identifier in the action descriptor, and whether the action descriptor digest verification passes. Action issuance is only allowed when these conditions are met, thus ensuring that action issuance is controlled within the same frozen preceding version.

[0048] The result version generation module 170 is used to generate a successor version that inherits from the previous version and the action tag based on the post-action result observation. After an action is issued, the result version generation module 170 does not overwrite the frozen previous version, but generates a successor version based on the post-action result observation, and makes the successor version inherit from the previous version and the action tag. The successor version retains the correspondence between the previous version and the action, and the post-action result observation is included in the successor version, so that the action result has a traceable version inheritance relationship, forming a state evolution path from the previous version to the action tag and then to the successor version.

[0049] In one embodiment, the operating system also isolates observation reception from action execution. The causal labeling module 110 continuously receives field observations from sensors, PLCs, and robot controllers, allowing these observations to enter a candidate pool. Observations in the candidate pool can be selected by the version construction and freezing module 120 according to the read scope of the action to be executed, used to generate candidate field state versions. The context binding and state namespace module does not directly expose the latest observation values ​​in the candidate pool to the task, but only provides a read-only execution view specified by the version identifier in the read-only version state namespace according to the version identifier in the task execution context. Therefore, freezing the previous version by the version construction and freezing module 120 does not block the causal labeling module 110 from continuing to receive field observations; newly arriving observations can still be received and enter subsequent candidate versions, but cannot change the previous version on which the queued or running task is based. Safety-related state readings are resolved by version identifier through the read-only execution view; the task cannot complete equivalent safety-related state readings and action issuance through shared cache or unregistered drive entries. The non-safe diagnostic procedure can read the latest observation received by the causal labeling module 110, but the reading result does not enter the decision chain of the action precondition; the action precondition determination is based on the previous version frozen by the version construction and freezing module 120.

[0050] In one embodiment, the causal state kernel provides system calls to job tasks for versioned state reading and action issuance. Job tasks interact with the causal state kernel via these system calls. The application layer cannot perform equivalent security-related state reading and action issuance through ordinary shared caches or unregistered driver entry points. The system calls include at least: The version collection call (epoch_collect) is used by the version construction and freezing module 120 to select observations from the observations received by the causal labeling module 110 according to a given physical scope, and construct candidate field state versions; The version freeze call (epoch_freeze) is used by the version construction and freeze module 120 to freeze the candidate on-site state version. When the freeze conditions are met, it is solidified as a read-only previous version and the version identifier of the previous version is returned. The version binding call (epoch_bind) is used by the context binding and state namespace module to write the version identifier of the previous version into the task execution context, so that the task is executed under that version identifier; The version read call (epoch_read) is used by the context binding and state namespace module to resolve security-related states in the read-only version state namespace by using the version identifier and state key in the task execution context. When the state key does not belong to the allowed read set, the corresponding observation is not in the version or its traceable ancestors, or the version has expired, a structured rejection is returned without falling back to the latest value in the candidate pool. Causal admission call (causal_admit) is used by the causal closure verification module 130 to perform causal closure judgment on the preceding version, and by the action permission and descriptor sealing module 160 to generate an action descriptor with permission and binding version identifier based on the preceding version and the action predicate. The epoch_fork is used by the context binding and state namespace module to generate candidate branches with different branch identifiers from the current previous version, allowing concurrent execution units to read-only reference the same base version. The explicit rebinding call (epoch_rebind) is used by the context binding and state namespace module to rebind the task execution context from the current version identifier to another closed version, and to make the rebinded version re-experience causal closure judgment and action admission; The result observation inclusion call (epoch_observe) is used by the result version generation module 170 to include result observations carrying action tags or independently physics-attributed into successor versions that inherit the action tags and have the current preceding version as the parent version.

[0051] The aforementioned system calls ensure that version acquisition, freezing, binding, reading, admission, forking, rebinding, and result attribution are all executed through the causal state kernel. Job tasks cannot use ordinary shared cache reading or unregistered driver entry points to replace these calls to complete security-related state reading and action issuance. Therefore, the causal state kernel in this embodiment constitutes the necessary execution boundary between tasks and drivers, enabling multi-source observations to form read-only preceding versions according to source sequence, causal dependency, and physical scope. Downward closure and pre-causal constraints ensure the completeness of facts prior to actions and that these facts precede actions. Version identifiers are saved and restored with the task execution context, preventing the reading of different state versions after task switching, kernel migration, or restoration. Double fences ensure that frozen observations and action-marked related observations are respectively assigned to candidate and subsequent versions, preventing late evidence backfilling and reverse verification of action results. Permission and descriptor digest verification ensure that actions are issued according to the same frozen version. Results inherit from preceding versions and action marks, forming an auditable causal genealogy.

[0052] Example 2 In this embodiment, the observations recorded by the causal labeling module 110 also include the sampling time. Observed values Data quality and source category Source category At least a distinction should be made between direct control chain observations carrying action causal markers and independent physical observations independent of the action command response chain.

[0053] The freezing conditions used by the version construction and freezing module 120 include at least the following: the referenced predecessor version is closed, the observation coverage involved in the action predicate is complete, the observations meet the preset time window and quality threshold, the causal front of the observation source sequence is monotonic relative to the parent version, the causal predecessor is closed downward, the conflict attributes have been resolved, and no action has been issued based on the candidate field state version.

[0054] The causal closure verification module 130 also determines the causal closure of the previous version based on observation coverage, source sequence monotonicity, physical domain consistency, and conflict resolution.

[0055] Specifically, the causal labeling module 110 records multi-source field observations as source sequences. Causal dependence and physical domain Based on the observations, the sampling time was also recorded. Observed values Data quality and source category Specifically, each observation record is represented in the following form:

[0056] in, For the first Observation records, It is a positive integer; For the first The stability identifier of the observation source in each observation record is used to determine which gate status sensor, PLC data block, robotic arm controller or other field node generated the observation, and serves as the basis for maintaining the leading edge of the source sequence, distinguishing source categories and subsequent attribution; For the first The source sequence of the observation records is monotonically increasing from the observation sources to resist replay, out-of-order delivery, and system clock jumps; For the first The sampling time of each observation record is used to determine the time range of the observation and to provide a basis for determining the preset time window; For the first The observation values, units, coordinate systems, or enumerated states of each observation record represent the field state carried by the observation, which are used for the determination of the action predicate. For the first Quality information such as the validity, confidence level, diagnostic status, and data freshness of each observation record provides a basis for determining the quality threshold; To generate the first A set of observational, control events, or action markers directly causally dependent on a single observation record; For the first Each observation record describes the physical objects, equipment, spatial regions, and attributes; For the first The source category of each observation record should at least distinguish between direct control chain observations carrying action markers and independent physical observations independent of the action command feedback chain.

[0057] The causal labeling module 110 maintains a monotonic sequence leading edge for each observation source. Upon receiving an observation... At that time, if If the observation is not greater than the corresponding frontier and is not a declared retransmission copy, then the observation is marked as old; if If any of the declared direct predecessors does not exist, is invalid, or belongs to an incompatible branch, then the observation is marked as a dependency gap; if If an observation is outside the scope of a candidate state version and is not an explicitly referenced higher-level safety state, it should not be included in the candidate version. For direct causal dependencies... If the generation of an observation uses another observation, is triggered by a state change corresponding to another observation, or carries an action marker based on another observation, then a causal precursor relationship is formed between the two; the causal marker module 110 can follow... The recursive method retrieves all ancestors, which are then used by the causal closure verification module 130 to determine the downward closure of the causal predecessor. When different devices cannot reliably propagate dependency fields, the boundary adapter can construct a dependency structure based on the device event number, request-response association number, PLC scan cycle number, and action flag. Observations with only timestamps and no verifiable sequence or dependent clues can serve as diagnostic information, but must not constitute a prerequisite for mandatory action on their own. Source Category At least a distinction should be made between direct control chain observations and independent physical observations, providing a basis for subsequent attribution of control chain direct causes and independent physical observation causes.

[0058] The freezing conditions used by the version construction and freezing module 120 include at least the following: the referenced predecessor version is closed, the observation coverage involved in the action predicate is complete, the observations meet the preset time window and quality threshold, the causal front of the observation source sequence is monotonic relative to the parent version, the causal predecessor is closed downward, the conflict attributes have been resolved, and no action has been issued based on the candidate field state version.

[0059] Specifically, the cited predecessor version is closed, ensuring that the candidate state version is built upon the closed predecessor version, avoiding the use of an undetermined state from the previous version as the factual basis for the current version; the observation coverage involved in the action predicate is complete, ensuring that all physical attributes required by the action to be executed have corresponding observations or traceable ancestral states, avoiding incomplete predicate facts due to missing necessary observations; the observations meet the preset time window and quality threshold, ensuring that the observations in the candidate version meet the needs of action predicate judgment in terms of sampling time range and data quality, avoiding the use of expired or low-quality observations; the causal front of the observation source sequence is monotonic relative to the parent version, ensuring that each observation source... The candidate version's sequence is no earlier than the causal front already accepted by the parent version, and no unexplained loops have occurred, thus ensuring that the observations in the candidate version are acceptable in terms of source order; the causal precursors are downwardly closed, ensuring that the observations in the candidate version have complete precursor evidence, avoiding the construction of a predecessor version based on isolated observations lacking precursors; conflicting attributes have been resolved, ensuring that there are no two unresolved states in the same physical domain attribute that cannot be true simultaneously, avoiding the inclusion of contradictory facts in the predecessor version; no actions have been issued based on the candidate version's field state, ensuring that the candidate version has not formed a result inheritance relationship with issued actions before freezing, guaranteeing that the frozen predecessor version belongs to the factual baseline before the action. The above conditions together constitute the set of conditions for the candidate version to be solidified into a read-only predecessor version, ensuring that the predecessor version meets the freezing requirements in terms of observation coverage, time quality, source sequence, causal precursors, conflicting states, and action issuance states.

[0060] The causal closure verification module 130 determines the causal closure of the preceding version based on the downward closure of causal predecessors and the antecedent constraint. Downward closure means that the direct causal predecessors of any observation included in the preceding version and all ancestors obtained recursively along the direct dependencies are located in the preceding version or its ancestor versions; if any direct predecessor declared by an observation does not exist, is invalid, or belongs to an incompatible branch, then the observation constitutes a dependency gap, and the preceding version does not satisfy the downward closure. Antecedent constraint means that the observation in this version is causally prior to the action to be performed and its action marker, that is, the observation in this version is not causally dependent on the action to be performed, nor does it use the result produced by the action as an antecedent.

[0061] Specifically, for a candidate field state version, its causal closure result can be expressed as the conjunction of the following criteria: observation coverage, temporal consistency, source sequence monotonicity, causal precursor downward closure, physical domain consistency, conflict resolution, and no future evidence. If any of the above criteria is not met, the version does not satisfy causal closure; only when all of the above criteria are met can the version serve as the factual basis for the causal closure of the action to be performed.

[0062] Observation coverage confirms that all necessary physical attributes involved in the action predicate have valid observations or traceable ancestral states, ensuring that the scope of facts upon which the preceding version is based covers the action's preconditions. Time consistency indicates that the valid time intervals of the selected observations intersect, and the difference between the maximum and minimum sampling times in the selected observations does not exceed the maximum evidence span of the action to be executed. Source sequence monotonicity confirms that each observation source sequence remains monotonic relative to the causal front of the parent version, ensuring that the observations in the preceding version are not disrupted in their internal order by reordering, replaying, or unexplained wraparound. Physical scope consistency confirms that the observations in the preceding version describe the same physical object version, coordinate reference, and process context, avoiding the splicing of observations from different physical objects, coordinate references, or process contexts into the same preceding fact. Conflict resolution confirms that there are no two undecided states within the same scope attribute that cannot be true simultaneously, ensuring that the facts in the preceding version are compatible.

[0063] Downward closure means that for any observation included in the preceding version, its direct causal predecessor and all ancestors obtained recursively along direct dependencies are located in the preceding version or its ancestor versions. For example... Figure 2 As shown, the frozen previous version Includes observations , , and .in, and The direct causal precursor is , The direct causal precursor is and Due to being included Any observation ( to All direct and transitive causal predecessors of ) are located within this version, therefore The causal precursors satisfy the downward closure condition. Observations arrived after freezing. You can only proceed to subsequent candidate versions; you cannot revert to already frozen versions. ; observation The lack of a direct causal precursor constitutes a dependency gap. Including it would cause this version to fail to meet the downward closure condition. A closed preceding version must not be entered. No future evidence indicates that no observation in the preceding version is causally dependent on the action to be performed or its action marker, nor is it predicated on the result of that action. In embodiments that preserve symbolic representation, downward closure can be represented as:

[0064] No future evidence can be expressed as:

[0065] in, This is the observation set of the previous version. For observation and control events already included in this version and its predecessors, The action marker for the action to be performed. Observation Ancestor set Must be included in all In the set, It is a union.

[0066] A time window is only used to limit whether observations are close enough; it cannot prove that an observation has a complete precursor, nor can it rule out that the observation has been affected by the action to be performed. Downward closure is used to confirm the completeness of causal precursors, and "no future evidence" is used to confirm that future evidence after the action has not been mixed in. The three address different problems and cannot replace each other.

[0067] When any of the above criteria is not met, the causal closure verification module 130 outputs structured reasons such as missing source, expired observation, fracture precursor, conflict attribute or future evidence, for the current version construction and freeze module 120 to reconstruct the candidate version or for the action license and descriptor sealing module 160 to reject the action.

[0068] The freeze condition and the closure check work together: the freeze condition is used to determine when a candidate version can be solidified as a read-only predecessor version, and the closure check is used to determine whether the frozen predecessor version satisfies causal closure. Together, they ensure that the predecessor versions on which the action admission is based are consistent in terms of fact coverage, source sequence, physical scope, conflict resolution, and causal order.

[0069] Example 3 In the operating system provided in Example 1, the dual fence manager 140 is also used to: write observations that arrive after the previous freeze fence is established but before the action effect fence is established into candidate branches that are different from the previous version; When the observation changes the determination of the action predicate, the permission that has not yet been executed is invalidated and the current state version is refrozen based on the candidate branch, while the predicate version remains read-only. The result observation associated with the action tag is used to form the subsequent version and as the basis for excluding the preconditions for the action to be executed.

[0070] like Figure 3 As shown, the dual fence manager 140 classifies observations before the preceding frozen fence, late observations between the two fences, and result observations after the action effect fence into the preceding version, candidate branch, and successor version, respectively, so that the preceding condition determination is based solely on the frozen preceding version as the only factual basis.

[0071] For an action to be executed, the dual-fence manager 140 sets two logical fences: a pre-freeze fence is established when the pre-version is frozen, and an action effect fence is established when the action command is issued and an action marker is generated. These two fences are not timestamp thresholds, but rather mandatory writing rules for evidence attribution. They ensure that whether an observation can serve as the basis for an action depends not solely on its arrival time or device timestamp, but on its causal position relative to the pre-version freeze and the action issuance.

[0072] Observations accepted and causally closed before the establishment of the preceding freeze barrier can constitute the preceding facts for the action to be performed. Observations arriving after the preceding freeze barrier is established, even if their device timestamp is earlier than the time the barrier was established or they fall within the expected action window, cannot be written back to the frozen preceding version. In other words, once a preceding version is frozen, its set of observations and causal front are fixed, and subsequent observations can only enter the new candidate version.

[0073] Late observations arriving between the pre-freeze fence and the action effect fence can enter a separate candidate branch distinct from the pre-freeze version, but the frozen pre-freeze version cannot be modified in place. If the late observation requires changing the determination of the action pre-predicate, the dual fence manager 140 must revoke any permission not yet executed and refreeze a new pre-freeze version based on the candidate branch; the original pre-freeze version remains read-only until re-admission.

[0074] Observations formed after the action effect fence and causally inheriting the action marker can only enter the subsequent version. Any observation containing that action marker cannot participate in the precondition determination of the action to be performed. The result observation associated with the action marker is used to form the subsequent version and serves as the basis for excluding the precondition determination of the action to be performed, thereby preventing the physical result after the action from becoming the precondition evidence of the same action.

[0075] Specifically, for any observation Actions to be executed and previous versions The qualification of this observation to constitute preliminary evidence of the action can be expressed as follows:

[0076] in, Indicates observation It has been included in the previous version. The set of observations; Indicates the previous version Frozen; Indicates observation The causal ancestor set does not contain the action tag for that action. (i.e., prior cause limitation); Indicates observation The arrival time is no later than the pre-frozen fence. Establishment time; For logical AND.

[0077] Through the aforementioned dual-fence mechanism and pre-qualification determination, the dual-fence manager 140 prohibits evidence backfilling and reverse verification of action results after freezing, ensuring that the pre-condition determination is always based on the frozen pre-version as the factual basis.

[0078] Example 4 In this embodiment, the task execution context also includes a physical scope summary, a causal front summary, a branch identifier, a set of allowed reads, a pending action marker, and a causal task state; when a task is preempted, migrated to another core, suspended, resumed, or restarted, the task scheduler saves and restores the task execution context along with the processor context.

[0079] Child threads, asynchronous callbacks, or device coroutines derived from the parent task inherit the parent task's version identifier, branch identifier, physical scope summary, and causal front summary by default. When using new field observations, they explicitly generate branch versions or rebind to another closed version and re-execute causal closure judgment and action admission.

[0080] Specifically, such as Figure 4 As shown, the parent task is bound to the previous version during execution. When a parent task derives child threads, asynchronous callbacks, or device coroutines, the child execution unit inherits the version identifier of the parent task by default. Branch identifier () ), physical domain ( ) and frontiers in causality ( Since the actual start time of a sub-execution unit may be later than that of its parent task, new observations may have been generated in the candidate pool during this period, forming new candidate versions; however, the sub-execution unit does not automatically switch to the latest candidate version simply because its start time is later. Instead, it continues to use version identifiers based on inheritance. This ensures that the same logical action receives the same prior fact view across multiple callbacks, multiple processors, or resumed execution units.

[0081] The context binding and state namespace module provides a read-only versioned state namespace. Security-related state is read using tuples. The parsing process is then performed. Specifically, the parsing rules can be expressed as follows:

[0082] Otherwise, a structured rejection (Reject) is returned. That is, if the state key... Not part of the allowed read set ( If the corresponding observation is not in the current Epoch or its traceable ancestors, or if the current Epoch has expired, the system returns a structured rejection instead of falling back to the latest value in the shared cache. Therefore, the system prohibits changing the execution basis by implicitly reading the latest value.

[0083] like Figure 4 As shown, when a sub-execution unit needs to use a new context observation, it must not implicitly rebind. The sub-execution unit must call version fork (epoch_fork) or explicit rebinding (epoch_rebind) to form a new context, rebinding the task execution context to the new closed version (such as a candidate version). (This process involves) re-performing causal closure verification and action admission. After the rebinding, the action permission and descriptor sealing module 160 generates a new action descriptor. And re-verify the context digest during scheduled execution. The previous version bound to the original parent task. It remains unchanged.

[0084] The task scheduler incorporates causal states into the task state transition process. A task initially enters the Waiting for Version state (WAIT_EPOCH); it only enters the causal ready state (READY_CAUSAL) when the bound version is frozen and the causal relationship is closed (Closed=1); during runtime, it enters the RUNNING_BOUND state; and after an action is issued, it enters the Waiting for Result state (WAIT_RESULT). If a version failure event is received before the action is issued, the task transitions to the Blocked Rebinding state (BLOCKED_REBIND) and invalidates the sealed action descriptor; if the action has already been issued, it transitions to the Result Reconciliation state (WAIT_RECONCILE), preserving the fact that the physical action may have already occurred.

[0085] Through the above mechanism, the context binding and state namespace module elevates version consistency from application programming conventions to operating system scheduling and access semantics, so that task switching, sub-execution unit derivation and explicit rebinding are all under a controllable version binding relationship.

[0086] Example 5 In this embodiment, the action descriptor generated by the action permission and descriptor sealing module 160 includes an action identifier, a version identifier, a physical scope summary, a causal front summary, an action predicate summary, and an action control instruction summary. The Action Permission and Descriptor Seal Module 160 recalculates the descriptor digest before the device driver adapter is issued. When the version identifier, physical scope digest, causal front digest, action predicate digest, or action control instruction digest changes, the action descriptor is invalidated, and the task is switched to blocking binding so that the explicitly bound version can continue to execute.

[0087] Combination Figure 5 As shown, the action license and descriptor sealing module 160 requires a prior version to execute the action license. The file is frozen and has passed causal closure verification. This module generates permissions solely based on the frozen predecessor version and the action predicate, without temporarily retrieving data from the real-time cache, other versions, or the latest message. Specifically, permission determination is based on at least the following conditions: the predecessor version is frozen and causally closed (corresponding to complete coverage, time consistency, predecessor closure, and no future evidence, respectively); the action predicate is true on this version; the required ancestor is in the history of this version; and there are no competing writers. This permission determination can be expressed as:

[0088] in, Indicates the previous version Frozen; This indicates that the version has passed the causal closure check; This indicates that the prepositional verb of an action is true in its prepositional version; This indicates that the ancestor observations upon which the action depends are all located in this version and its history. Indicates the absence of an action Competing writers in conflict. If the above criteria are met, an action permission is generated; otherwise, the permission is denied and a structured reason is output, such as a missing source, outdated observation, fracture precursor, conflict attribute, or future evidence.

[0089] Once the license is granted, the module records the binding relationship between the action and the previous version, and generates a unique action tag for that action. And generate an action descriptor bound to a version identifier. An action descriptor can be represented as:

[0090] in, For action identifiers; For version identification; Summary of physical action domain; This is a summary of the frontiers of causality; Summary of prepositional verbs for actions; This module calculates a digest of the action control instructions, forming a seal value from the above action descriptors.

[0091] This seals both the "state version on which the action is based" and the "action itself".

[0092] Before the device driver adapter issues an action, this module recalculates and validates the descriptor digest. The conditions that allow the issuance of an action can be expressed as:

[0093] in, This indicates that the action is permitted to be issued; This indicates that the license is valid; This indicates that the version identifier in the task execution context is consistent with the version identifier in the action descriptor; This indicates that the current summary verification of the action descriptor has passed. The device driver adapter is only allowed to issue actions if all of the above conditions are met.

[0094] If the action is determined to be false or fails verification, the system outputs structured reasons such as missing source, expired observation, broken precursor, conflicting attribute, future evidence, or competing writer. When any of the version identifier, physical scope summary, causal front summary, action predicate summary, or action control instruction summary changes, the action descriptor becomes invalid. The task cannot continue issuing actions with the original permission; instead, it enters a blocked rebinding state and must be explicitly rebinded to another closed version and re-executed for causal closure and action admission before continuing execution with the rebinded version. If the preceding version is redirected to invalidation before the action begins, the permission and action descriptor automatically become invalid; if the action has already been issued, the result reconciliation process begins. Therefore, this module controls action issuance to the same frozen preceding version, preventing tasks from silently rebinding and executing after being granted permission, in the queue, after migration, or after recovery.

[0095] Example 6 In this embodiment, the result version generation module 170 attributes the result observation through a first attribution channel and a second attribution channel; the first attribution channel performs direct attribution based on the action marker carried by the result observation; the second attribution channel attributes the independent physical observation to the action to be executed when the physical scope of the independent physical observation matches the action writing scope, the sampling time is located in the action result observation window, the independent physical observation satisfies the expected physical transfer predicate, and there is no competing action that can cause the same physical transfer. When there are competing actions, insufficient coverage of result observations, or conflicts between direct control chain observations and independent physical observations, the subsequent version remains open and is marked as a version pending reconciliation. Subsequent actions of a preset risk level or higher are restricted from using this subsequent version as the preceding version until the subsequent version is closed again.

[0096] like Figure 6 As shown, the result version generation module 170 is used to generate a successor version that inherits from the predecessor version and the action tag based on the post-action result observation. After the action is issued, this module does not overwrite the frozen predecessor version, but instead uses the predecessor version as the parent version to execute the action. Generate action tags It inherits the unchanged physical properties and causal front, and writes the action tag into the tag set to create a successor candidate version. In order to prevent equating command receipts with on-site results, or misattributing arbitrary physical changes to the current action, the result version generation module 170 attributes the result observations through the first attribution channel and the second attribution channel.

[0097] The first attribution channel performs direct attribution based on the action markers carried by the result observations. An action marker is generated when an action is issued, and this action marker is typically carried by feedback from the driver, controller, or PLC during action execution (such as direct control chain observations). Figure 6China's "control chain observation carrying" The first attribution channel directly attributes the result observation to the action to be performed when the result observation carries an action tag, and its dependency set contains the action tag. This attribution relationship can be expressed as:

[0098] The second attribution channel attributes independent physical observations (such as...). Figure 6 (Candidate Attribution). Independent physical observations are not generated by the action command execution chain, and there is no direct tag inheritance relationship between them and the action to be executed. They cannot be attributed solely based on the arrival or proximity of the observation. The second attribution channel will only attribute the independent physical observation to the action to be executed if all four of the following conditions are met simultaneously: Physical scope matching: The physical scope of an independent physical observation matches the scope of the action written, meaning that the physical object or spatial region described by the observation belongs to the range that the action should affect; Window matching: The sampling time is located within the observation window of the action result, that is, within the observation time range of the expected result after the action is issued; Physical transfer matching: Independent physical observations satisfy the expected physical transfer predicate, that is, the state change reflected by the observations matches the expected physical effect of the action; Competition exclusion: There are no competing actions that can cause the same physical transfer, so that the physical transfer can be exclusively attributed to that action.

[0099] When all the above conditions are met, the module adds the action tag as a verified predecessor to the dependency set of the independent physical observation and attributes it to the action to be performed. The attribution determination can be expressed as:

[0100] in, For observation Belongs to action The attribution determination result (1 indicates that the attribution is valid, and 0 indicates that it is invalid); Action marker for an action; Logical OR; To control the lineage matching, corresponding to the first attribution channel, representing the observation... Carrying action markers This indicates that it was generated by the direct command execution chain of the action; For physical scope matching, it represents the observation Physical domain and action The write scope matching; Matching time windows indicates observations The sampling time is located at the action Within the results observation window; For expected physical transfer matching, it means the observation The changes in state reflected are consistent with the actions. The expected physical transfer predicate.

[0101] Exclusive causality means that there are no other competing actions that can cause the same physical transfer.

[0102] Observations confirmed by the first or second attribution channel are written into the successor candidate version. The generation of the successor version can be represented as:

[0103] in, For subsequent versions; The function to generate a successor version indicates that a new version is created based on the previous version; This is the previous version; Mark the action; This is the set of observations that have been confirmed through attribution.

[0104] However, when competing actions that could cause the same physical transfer exist, the result observation coverage is insufficient (failing to cover the expected physical transfer), or the direct control chain feedback conflicts with independent physical observations, subsequent versions cannot form a definite causal inheritance relationship. In this case, the subsequent version remains unclosed and is marked as a version awaiting reconciliation. For subsequent actions above a preset risk level, this unclosed version awaiting reconciliation cannot be used as its predecessor until the subsequent version is closed again through supplementary observations or reconciliation. Thus, this module, while preserving the causal inheritance relationship of action results, prevents uncertain or conflicting result states from becoming the factual basis for subsequent high-risk actions.

[0105] Example 7 Compared with embodiments 1-6, the operating system provided in this embodiment further includes: a branch management and targeted failure module 150.

[0106] The branch management and directional failure module 150 is used to allow multiple actions to read-only reference the same baseline version and generate result branches with different branch identifiers. The merged version is generated only when the write scopes of the two result branches are not intersecting or the corresponding physical effects are interchangeable, the conflict attributes of the two result branches have been resolved, and the causal predecessor of the merged version remains closed downwards. When an observation is revoked, its quality is degraded, or it is corrected by conflicting facts, the version containing the observation, the descendants of the dependent versions, and the actions that have not yet been executed are invalidated along the version parent-child relationship and action reference relationship, so that sibling branches that have no causal dependency on the observation remain valid. When the physical action corresponding to the affected branch has been issued, retain the record of the physical action that has occurred, and establish a reconciliation branch based on the last unaffected closed version, the re-acquired field observations, and the affected physical scope.

[0107] like Figure 7 As shown, multiple physical operation actions can read-only reference the same baseline version (such as the baseline version). This base version serves as a common foundation of prior facts. During execution, each action generates a result branch with a different branch ID (e.g., branch EA, branch EB, written to their respective scopes SA and SB). These different branch IDs distinguish concurrent execution branches originating from the same base version. Each branch reads only the base version, without modifying it, and branches must not read unclosed intermediate observations from each other, thus avoiding cross-contamination of state between concurrent branches.

[0108] When two result branches need to be merged, the branch management and directional failure module 150 performs a merge determination. The merge determination requires that the write scopes of the two result branches are non-intersecting, or that their corresponding physical effects are interchangeable. It also requires that conflicting attributes have been resolved and that the merged causal predecessor remains downwardly closed. These conditions can be expressed as:

[0109]

[0110] in, The write scopes of the two result branches do not intersect, meaning that the physical objects, devices, and spatial regions being modified do not overlap. The physical effects corresponding to the two branches are interchangeable, meaning that the execution order does not affect the final physical result; The merged version does not contain any undecided states that cannot be true simultaneously; This indicates that the observed causal precursors in the merged version have complete sources.

[0111] For example, when the chassis is parked and the two robotic arms are performing visual verification on different workpieces in non-intersecting scan spaces, they can branch in parallel and generate a merged version; if the two robotic arms simultaneously rewrite the pose of the same workpiece, the occupancy state of the same fixture, or the intersecting sweep space, then the merge must be rejected and the subsequent version must be reconstructed.

[0112] like Figure 8 As shown, when an observation source is withdrawn, its quality is downgraded, or it is corrected by conflicting facts, the branch management and directed failure module 150 uses that observation as the root cause of failure and propagates the failure marker along version parent-child relationships and action reference relationships. This module invalidates the version containing the observation (such as branch EA), its descendants that depend on it (such as EA1, EA2), and actions that have not yet been executed; sibling branches that have no causal dependency on the observation (such as branch EB and its descendants EB1, EC) remain valid. Thus, the scope of failure propagates directed along the version lineage and action reference relationships without invalidating all concurrent branches, thereby narrowing the scope of impact when evidence changes.

[0113] When the physical action corresponding to the affected branch has already been issued, the branch management and directional failure module 150 retains a record of the physical action that has occurred. Since the effects of the physical action may have already taken place on-site and cannot be instantly rolled back via software, this mechanism is not a database-based software rollback. Instead, the module establishes a reconciliation branch based on the last unaffected closed version, the re-acquired on-site observations, and the affected physical scope. The reconciliation branch allows subsequent processing of the affected branch to be verified and handled based on the fact of the re-observed on-site observations, thus narrowing the scope of the failure while respecting the objective constraint that physical actions cannot be rolled back via software.

[0114] Example 8 Compared with Examples 1-7, this implementation of the operating system further includes: a persistence and recovery module 190.

[0115] The persistence and recovery module 190 is used to persist closed versions, version lineages, causal fronts, task execution contexts, action-version binding relationships, action tags, and action descriptors. When the controller recovers, it only recovers task execution contexts and action descriptors that have passed the summary verification. It invalidates old descriptors that have not yet issued actions and requires explicit rebinding. For tasks where actions have been issued but subsequent versions have not been closed, it transfers the results to the reconciliation stage. For cases where new field observations are inconsistent with the last closed version, it generates branch versions and re-executes the causal closure determination.

[0116] Specifically, the controller may restart, lose power or fail during operation. The persistence and recovery module 190 is used to persist key state data during operation and reconstruct the state baseline on which the task execution is based based on the persisted information when the controller recovers, so as to prevent the silent replacement of another state version after recovery.

[0117] Specifically, this module persists the following objects: Closure version, ensuring that the frozen and causally closed previous version and its observation set can still be identified and verified after recovery; Version lineage, ensuring that the parent-child relationships, branch affiliations, and successor relationships between versions can still be traced after recovery; Causal front, ensuring that the largest accepted sequence and included action markers of each observation source can still be used as the basis for determining the monotonicity and causal closure of the source sequence after recovery; Task execution context, ensuring that the version identifier, physical scope summary, causal front summary, branch identifier, allowed read set, pending action markers, and causal task status bound to the task still correspond to the task after recovery; Action-version binding relationship, ensuring that the previous version on which the action is based can still be determined after recovery; Action marker, ensuring that the attribution relationship between the action and the resulting observations after the action can still be traced after recovery; Action descriptor, ensuring that the descriptor content and its summary basis required for verification before the action is issued can still be used for consistency verification after recovery.

[0118] During controller recovery, this module does not rely on the existence of persistent records as the basis for recovery; instead, it only recovers the task execution context and action descriptors that pass digest verification. Digest verification ensures that the recovered context and descriptors maintain consistency and integrity. The digest verification recovery conditions can be expressed as:

[0119]

[0120] in, This indicates that the context allows for recovery; This indicates that the context summary is consistent; This indicates that the action descriptor allows for recovery; This indicates that the descriptor digests are consistent; This ensures that the version binding between the context and the descriptor is consistent. This prevents the task from continuing execution with an untrusted context or a faulty descriptor due to persistent data corruption, version inconsistencies, or changes in descriptor content.

[0121] For old descriptors that have not yet been issued actions (i.e., do not meet the above requirements) (The old descriptor), the persistence and recovery module invalidates it and requires explicit rebinding. For example... Figure 6As shown, since the action has not yet been issued externally, the version identifier, scope summary, or action control instruction summary bound to its descriptor may no longer be consistent with the current task context due to the recovery process. Therefore, the old descriptor is not used directly for the issuance of the action after recovery. Instead, the task is required to explicitly rebind (epoch_rebind) to another closed version, re-execute the causal closure judgment and action admission, and then continue to execute.

[0122] For tasks where an action has been issued but subsequent versions are not yet closed, the persistence and recovery module transfers it to the results reconciliation. An action has been issued externally, and its physical effects may have already taken place on-site, but the corresponding subsequent version has not yet been closed (i.e.,...). ≠ This indicates that the action results have not yet formed a definite, complete, and conflict-free inheritance relationship. At this point, the module does not directly interpret the task as an action success or failure, but instead proceeds to result reconciliation. Combining persistent action tags, binding relationships, and on-site observations re-collected after recovery, the module verifies and processes the action results.

[0123] In cases where new field observations differ from the final closure version, the persistence and recovery module generates a branch version and re-executes the causal closure determination. Field observations are then reacquired after the controller recovers. This may indicate that the site conditions changed during the interruption (i.e.) At this point, instead of directly overwriting the final closed version with new observations, the module generates a branch version.

[0124] Therefore, the persistence and recovery module enables the closed version, version lineage, causal front, task execution context, action-version binding relationship, action tag and action descriptor to still be verified and traceable after recovery. It also handles situations such as actions not issued, actions issued but results not closed, and inconsistent field observations separately, avoiding the controller from silently switching to another state version or directly interpreting uncertain results as success or failure after recovery.

[0125] Example 9 This application provides a method for executing tasks on a mobile multi-armed robot based on a causal state kernel, applicable to the operating system described above. The method includes: S110 records multi-source field observations as observations with source sequences, causal dependencies, and physical domains.

[0126] S120: Generate candidate current state versions according to the read scope of the action to be executed, and solidify them into read-only pre-versions when the freeze conditions are met.

[0127] S130, the causal closure of the preceding version is determined based on the downward closure of the causal precursor and the antecedent limitation. The antecedent limitation means that the observation in this version is causally prior to the action to be performed and its causal marker.

[0128] S140, bind the version identifier of the previous version to the task execution context, so that the context can be saved and restored when switching tasks, and security-related states are only resolved in the read-only version state namespace according to the version identifier.

[0129] S150: When the preceding version is frozen, a preceding freeze barrier is established. When the action is issued, an action effect barrier is established and an action causal marker is generated. Observations that arrive after freezing are assigned to subsequent candidate versions, and observations associated with the action causal marker are assigned to subsequent versions. The preceding condition determination is based on the frozen preceding version as the factual basis.

[0130] S160 generates an action descriptor with a license and binding version identifier based only on the previous version and the action predicate. When the license is established, the version identifier in the task execution context is consistent with the action descriptor, and the summary verification of the action descriptor passes, the device driver adapter is allowed to issue the action.

[0131] S170 generates a successor version that inherits the previous version and the causal marker of the action based on the observation of the result after the action.

[0132] The method provided in this embodiment is executed by the mobile multi-arm robot's operating system. The operating system includes a task scheduler and a device driver adapter, and the causal state kernel located between the task and the device driver adapter constitutes the necessary execution boundary. This method starts from the recording of multi-source observations and continues until the subsequent version after the action is generated, forming a complete causal consistent task execution closed loop.

[0133] First, step S110 is executed by the causal labeling module 110, which converts field data from different sources such as vision, encoders, and PLCs into evidence units with causal labels, enabling the system to determine the order of observations within the source, direct precursor evidence, and the described physical object area, thus providing a basis for the construction of subsequent candidate versions.

[0134] Secondly, based on the physical attributes required for the current action, corresponding observations are selected from the observation set to generate candidate versions. When the freeze conditions such as coverage, quality, and sequence monotonicity are met, the candidate version is solidified as a read-only preceding version. This preceding version becomes the frozen fact baseline for action admission, and newly arriving observations after freezing are no longer written into this version.

[0135] Next, the causal closure of the preceding version is determined based on the downward closure of causal precursors and the antecedent constraint. Downward closure requires that all observations in the preceding version have complete causal precursors; the antecedent constraint means that the observations in this version must causally precede the action to be performed and its action marker. This step ensures that the facts in the preceding version have complete precursors and are not mixed with future evidence after the action, thus making this version a valid factual basis for action admission.

[0136] Then, the version identifier of the previous version is bound to the task execution context, allowing this context to be saved and restored during task switching. The task execution context records the version identifier bound to the current task. When a task preempts, migrates to a different core, is suspended, or resumes, this context is saved and restored along with the processor context, ensuring that the task uses the same previous version even after its execution location changes. Security-related states are resolved only by version identifier in the read-only version state namespace. If the state key is not within the allowed read range or the version is invalid, a structured rejection is returned instead of falling back to the latest shared cache, thus preventing state version drift during task execution.

[0137] Based on this, a pre-freeze barrier is established when the preceding version is frozen, and an action effect barrier is established and an action tag is generated when the action is issued. The pre-freeze barrier defines the observation range that constitutes the preceding facts of the action, while the action effect barrier defines the attribution of observations formed after the action is issued. Observations arriving after freezing are assigned to subsequent candidate versions, and observations associated with action tags are assigned to subsequent versions. The determination of the preceding conditions is based on the frozen preceding versions as the factual basis, thereby prohibiting, at the methodological level, the backfilling of preceding versions by late observations and the reverse verification of preceding conditions by action results.

[0138] Subsequently, action descriptors with license and binding version identifiers are generated solely based on the preceding version and the action predicate. Actions are allowed to be issued only when the license is valid, the context version identifier matches, and the descriptor digest verification passes. This method uses only the frozen preceding version and action predicates during action admission and generates action descriptors containing version identifiers. Before the device driver adapter issues an action, it must simultaneously satisfy the conditions of license validity, task context version identifier consistency, and descriptor digest verification passing. This prevents actions from silently changing bindings after queuing, migration, or recovery, detaching from the original preceding version.

[0139] Finally, based on the post-action result observations, a successor version inheriting from the preceding version and the action tag is generated. After an action is issued, the system does not overwrite the frozen preceding version, but instead assigns the post-action result observations to the successor version that has the preceding version as its parent version and inherits the action tag. This forms an auditable causal genealogy of preceding facts—executed actions—result evidence, ensuring that the action result belongs to its preceding version and completing the closed loop of the entire task execution method.

[0140] In conjunction with the second aspect, step S170, which involves generating a successor version that inherits from the preceding version and the action tag based on the post-action result observation, specifically includes: S171, attributing the result observation through the first attribution channel and the second attribution channel; when the result observation carries an action causal label, the first attribution channel directly attributes the result observation to the action to be performed.

[0141] S172, the second attribution channel attributes the independent physical observation to the action to be executed when the physical domain of the independent physical observation matches the action writing domain, the sampling time is within the action result observation window, the independent physical observation satisfies the expected physical transfer predicate, and there is no competing action that can cause the same physical transfer.

[0142] S173, write the result observations attributed through the first or second attribution channel into the successor version which is the parent version of the previous version and the action causal label is the inheritance label.

[0143] S174 When there are competing actions, insufficient coverage of result observations, or conflicts between direct control chain observations and independent physical observations, the subsequent version is kept in an unclosed state and marked as a version to be reconciled. Subsequent actions above the preset risk level are restricted to use this subsequent version as the preceding version until the subsequent version is closed again.

[0144] First, after an action is issued, various feedback data will be generated on-site. To prevent equating command acknowledgments with on-site results, or misattributing arbitrary physical changes to the current action, the system uses two parallel attribution channels to determine the causal relationship between the observed results and the current action.

[0145] When an observation (such as driver feedback, controller acknowledgment, or PLC execution feedback) carries an action tag, it indicates that the observation was directly triggered by the action command and inherited the action tag. In this case, the first attribution channel directly attributes it to the action to be executed. This provides a clear causal inheritance basis for control chain evidence.

[0146] For independent physical observations without action markers (such as external vision or independent sensors), four conditions must be met simultaneously for attribution: first, the physical domain must match, meaning the physical object or spatial region described by the observation belongs to the range that the action should affect; second, the sampling time must be within the action result observation window, i.e., within the time period after the action is issued when the expected result is expected; third, the expected physical transfer predicate must be met, meaning the state change observed conforms to the expected physical effect of the action; and fourth, there must be no competing actions, i.e., the possibility of other actions causing the same physical transfer must be excluded. These four conditions together ensure that independent physical changes can be exclusively attributed to the current action.

[0147] Based on this, the result observations confirmed by attribution are written into the subsequent version. Regardless of whether it is through the first or second channel, only result observations confirmed by attribution to the current action are allowed to be written into the subsequent version, which takes the preceding version as its parent version and the action tag as its inheritance tag. This establishes a causal genealogy of "previous version - action - result observation - subsequent version", so that the subsequent version inherits the preceding version and the action tag.

[0148] Finally, the system addresses uncertain outcomes. If competing actions that could cause the same physical transfer exist, the result observation coverage is insufficient (failing to cover the expected physical transfer), or direct control chain observations conflict with independent physical observations, the system will not close the subsequent version but will instead leave it unclosed and mark it as a version awaiting reconciliation. For subsequent actions exceeding a preset risk level, this unclosed version awaiting reconciliation cannot be used as a preceding version until it is closed again through supplementary observations or reconciliation. This constraint prevents uncertain or conflicting outcome states from serving as the factual basis for subsequent high-risk actions, thereby ensuring the determinism and security of the entire task execution causal chain.

[0149] like Figure 9 As shown, the mobile robot docks with the machine tool, and the robotic arm prepares to remove the machined workpiece P from the chuck. The workpiece removal action (denoted as...) The read scope includes the machine tool door, spindle, chuck, workpiece, robot base, and shared safety scanning space; the write scope includes the workpiece's occupied position, gripper status, and chuck workpiece status.

[0150] First, the door status sensor generates a "door fully open" observation. (Source serial number is 38); PLC generates "chuck released" observation (Source serial number is 51); The robot controller generates "base parking, robotic arm waiting position" observations. (Source sequence number is 106). Each observation carries its direct predecessor or scan cycle correlation.

[0151] The version construction and freeze module 120 selects and verifies the above observations based on the reading scope of the part-picking action: spindle stop is the precursor to chuck release; door opening and chuck release are in the same machine tool task number; there are no conflicts in the safety scan space; each source sequence is not less than the leading edge of the parent version. After the freeze conditions are met, the previous version before loading (denoted as...) is frozen. The operating system uses version binding calls (epoch_bind) to assign previous versions. The version identifier is written into the execution context of the pickup task. The derived robotic arm planning callbacks and device handshake coroutines inherit this version identifier by default. The above execution unit reads the door, chuck, and security space states in the read-only version state namespace by using the epoch_read call according to the version identifier and status key in the task context, but cannot read the updated values ​​in the asynchronous candidate pool.

[0152] The system establishes a prior freeze barrier when the previous version is frozen. Action licensing and descriptor sealing module 160 is based solely on this prior version. Determine the predicate of the component retrieval and generate an action descriptor containing a version identifier, scope summary, causal front summary, and action control instruction summary. ), and calculate the summary to form the seal value ( Before the driver is issued, the three summaries are reviewed to ensure they remain relevant to the task context. ) are consistent, and then an action is issued, establishing an action effect barrier ( ) and generate a licensed action tag ( At this point, a late "door open" message arrives on the network. Although its device timestamp falls into the window, its sequence number 37 is less than the preceding sequence number 38. Therefore, it is marked as obsolete by the causal labeling module 110 and cannot be written back to the frozen preceding version. .

[0153] After the action is issued, the result version generation module 170 performs dual-channel attribution and verification: On the one hand, the gripper closing feedback carries a permission action marker. It is directly attributed to the pickup action through the first attribution channel (direct control chain); On the other hand, an independent workpiece displacement sensor detects "workpiece displacement." This observation does not carry an action marker and needs to be verified through a second attribution channel using physical attribution. Verification conditions include: matching physical domain (acting on the chuck workpiece), sampling time within the result observation window, meeting the expected physical transfer predicate (workpiece state changes from "in chuck" to "not in chuck"), and the absence of other competing actions that could cause the same displacement transfer. Once these conditions are met, the system attributes this displacement sensor observation to... .

[0154] Through physical attribution verification via gripper closure feedback and workpiece displacement sensing, the two types of evidence corroborate each other causally, jointly forming and closing the conclusion. The specific status of this result version is marked as "workpiece grabbed, chuck idle," thus confirming that the physical effect of the pick-up action has been achieved.

[0155] Conversely, if the gripper feedback is closed, but the workpiece displacement sensor still detects that the workpiece is in place, it indicates a conflict between the direct control chain feedback and independent physical observation. In this case, a conflict mask is used to mark the conflict, and the result version... The connection is not closed. At this point, the system prohibits further transfer actions and requests re-sensing or entry into the safety handling procedure.

[0156] As another example, consider a specific application in a mobile four-arm collaborative assembly scenario. The four-arm robot performs shell assembly: arm A transports the top cover, arm B positions the bottom shell, arm C provides support, and arm D operates the electric screwdriver.

[0157] The system is based on a closed-loop reference version with the following conditions: chassis parked, clamp locked, lower shell in valid position, four arms in ready position, and sweep space available. Multiple concurrent branches are established. The control blocks of the four arm tasks each store their task execution context. When a task is preempted by the real-time scheduler or migrated to another processing core, only the read-only view corresponding to the original version identifier is restored; newly arriving visual frames enter the candidate version and do not change the reading results of ready tasks. Tasks that need to adopt the new visual results must be explicitly forked or re-bound and re-admitted.

[0158] During concurrent execution, the sweep spaces of branch EA (A-arm moves the top cover, writing the top cover pose and A-arm sweep space) and branch EC (C-arm establishes support, writing the support contact state) do not intersect and their effect rule declarations are interchangeable. They can be merged by branch merging and directional failure module 150 after their respective subsequent versions are closed. However, branch EB (B-arm repositions the lower shell) and branch ED (D-arm tightens the screw) have a causal dependency. Branch ED must reference a subsequent version that includes the closed result of branch EB and cannot be arbitrarily spliced ​​with branch EB after being executed in parallel from the base version.

[0159] If the C-arm experiences a protective shutdown during assembly, the system only relies on the branch supported by the C-arm and its descendants for directional failure. Visual detection branches that are already closed and whose physical domains do not intersect remain valid. Actions involving the suspension of the upper cover undergo re-observation and hold / isolate reconciliation, without performing false software rollbacks.

[0160] As another example, in a specific application scenario where a robot feeds parts into process equipment for press fitting, the robot feeds the parts into the press fitting equipment. The equipment-side indicators of "mold idle," "safety gate closed," and "pressure returned to zero" are provided by the PLC and independent sensors, respectively. The permission for the press fitting start action can only reference a frozen preceding version that meets the requirements of coverage, monotonic sequence, downward closure, and no prior cause limitation.

[0161] During the press-fitting process, the system establishes an action effect fence and generates an action marker when the action is issued. Pressure rise observations generated after startup either carry this action marker or are independently attributed if the scope matches, the expected physical transfer is met within the time window, and there are no competing actions. Regardless of the channel, these pressure rise observations can only be included in subsequent versions. The system strictly prohibits using pressure rise results generated after startup to prove that the pressure had returned to zero before startup, thus avoiding misusing the results caused by equipment actions as the basis for action permission. Only when the observations of "mold idle," "safety gate closed," and "pressure returned to zero" form a causal closure precursor version before the action, and pass the action permission and descriptor seal verification, is the equipment driver adapter allowed to issue a press-fitting start command.

[0162] Thirdly, embodiments of this application provide a readable storage medium storing computer program instructions, which are read and executed by a processor to perform the above-described method.

[0163] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0164] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.

[0165] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0166] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0167] Finally, it should be noted that the above embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A mobile multi-arm robot operating system based on a causal state kernel, characterized in that, Including a task scheduler and a device driver adapter, the causal state kernel located between the job task and the device driver adapter constitutes a necessary execution boundary, and the causal state kernel includes: The causal labeling module is used to record multi-source field observations as observations with source sequences, causal dependencies, and physical domains. The version construction and freezing module is used to generate candidate current state versions according to the read scope of the action to be executed, and to solidify them into read-only pre-versions when the freezing conditions are met. The causal closure verification module is used to determine the causal closure of the preceding version based on the causal predecessor downward closure and the antecedent constraint, wherein the antecedent constraint means that the observation in this version is causally prior to the action to be performed and its action marker. The dual fence manager is used to create a pre-freeze fence when the previous version is frozen, and to create an action effect fence and generate an action tag when the action is issued. This allows observations after freezing to be assigned to subsequent candidate versions, and observations associated with action tags to be assigned to subsequent versions. The precondition determination is based on the frozen previous version as the factual basis. The context binding and state namespace module is used to bind the version identifier of the previous version to the task execution context, so that the context can be saved and restored when switching tasks. Security-related states are only resolved in the read-only version state namespace according to the version identifier. The Action Permission and Descriptor Seal module is used to generate action descriptors with permission and binding version identifiers based only on the previous version and the action predicate, and to allow the device driver adapter to issue actions when the permission is established, the context version identifier is consistent, and the descriptor digest verification passes. The result version generation module is used to generate a successor version that inherits from the previous version and the action tag based on the post-action result observation.

2. The system according to claim 1, characterized in that, The observations recorded by the causal labeling module also include sampling time, observation value, data quality, and source category. The source category at least distinguishes between direct control chain observations carrying the action label and independent physical observations independent of the action command feedback chain. The freezing conditions used by the field state version construction and freezing module include at least the following: the referenced predecessor version is closed, the observation coverage involved in the action predicate is complete, the observations meet the preset time window and quality threshold, the causal front of the observation source sequence is monotonic relative to the parent version, the causal predecessor is closed downward, the conflict attributes have been resolved, and no action has been issued based on the candidate field state version. The causal closure verification module also determines the causal closure of the preceding version based on observation coverage, source sequence monotonicity, physical domain consistency, and conflict resolution.

3. The system according to claim 1, characterized in that, The dual fence manager is also used to: write observations that arrive after the preceding freeze fence is established but before the action effect fence is established into candidate branches that are different from the preceding version; When the observation changes the determination of the action predicate, the permission that has not yet been executed is invalidated and the current state version is refrozen based on the candidate branch, and the predicate version remains read-only. The result observation associated with the action tag is used to form the subsequent version and serves as the basis for excluding the preconditions for the action to be executed.

4. The system according to claim 1, characterized in that, The task execution context also includes a physical scope summary, a causal front summary, a branch identifier, a set of allowed reads, a pending action marker, and a causal task state; the task scheduler saves and restores the task execution context along with the processor context when a task is preempted, migrated to another core, suspended, resumed, or restarted; Child threads, asynchronous callbacks, or device coroutines derived from the parent task inherit the parent task's version identifier, branch identifier, physical scope summary, and causal front summary by default. When using new field observations, they explicitly generate branch versions or rebind to another closed version and re-execute causal closure judgment and action admission.

5. The system according to claim 1, characterized in that, The action descriptor generated by the action permission and descriptor sealing module includes an action identifier, a version identifier, a physical scope summary, a causal front summary, an action predicate summary, and an action control instruction summary. The action permission and descriptor sealing module recalculates the descriptor digest before the device driver adapter is issued. When the version identifier, physical scope digest, causal front digest, action predicate digest, or action control instruction digest changes, the action descriptor is invalidated, and the task is switched to blocking binding so that the explicitly bound version can continue to be executed.

6. The system according to claim 1, characterized in that, The result version generation module attributes the result observations through a first attribution channel and a second attribution channel. The first attribution channel performs direct attribution based on the action marker carried by the result observation. The second attribution channel attributes the independent physical observation to the action to be executed when the physical scope of the independent physical observation matches the action writing scope, the sampling time is located in the action result observation window, the independent physical observation satisfies the expected physical transfer predicate, and there is no competing action that can cause the same physical transfer. When there are competing actions, insufficient coverage of result observations, or conflicts between direct control chain observations and independent physical observations, the subsequent version remains unclosed and is marked as a version to be reconciled. Subsequent actions of a preset risk level or above are restricted from using this subsequent version as a preceding version until the subsequent version is closed again.

7. The system according to claim 1, characterized in that, Also includes: The branch merging and directed failure module allows multiple actions to read-only reference the same base version and generate result branches with different branch identifiers. The merged version is generated only when the write scopes of the two result branches do not intersect or the corresponding physical effects are interchangeable, the conflict properties of the two result branches have been resolved, and the causal predecessor of the merged version remains downward closed. And when an observation is revoked, its quality is downgraded, or it is corrected by conflicting facts, the version containing the observation, its descendants that depend on the version, and the permissions of actions that have not yet been executed are invalidated along the version parent-child relationship and action reference relationship, while sibling branches that have no causal dependency on the observation remain valid. When the physical action corresponding to the affected branch has been issued, retain the record of the physical action that has occurred, and establish a reconciliation branch based on the last unaffected closed version, the re-acquired field observations, and the affected physical scope.

8. The system according to claim 1, characterized in that, Also includes: The persistence and recovery module is used to persist closed versions, version lineages, causal fronts, task execution contexts, action-version binding relationships, action tags, and action descriptors. When the controller recovers, it only recovers task execution contexts and action descriptors that have passed the summary verification. It invalidates old descriptors that have not yet been issued actions and requires explicit rebinding. For tasks where actions have been issued but subsequent versions have not been closed, it transfers the results to the reconciliation stage. For cases where new field observations are inconsistent with the last closed version, it generates branch versions and re-executes the causal closure determination.

9. A method for executing tasks of a mobile multi-armed robot based on a causal state kernel, executed by a mobile multi-armed robot operating system, the operating system including a task scheduler and a device driver adapter, wherein the causal state kernel located between the task and the device driver adapter constitutes a necessary execution boundary, characterized in that... include: Multi-source field observations are recorded as observations with source sequences, causal dependencies, and physical domains. Candidate current state versions are generated based on the read scope of the action to be executed, and are solidified as read-only pre-versions when the freeze conditions are met; The causal closure of the preceding version is determined based on the downward closure of the causal precursor and the antecedent limitation, wherein the antecedent limitation means that the observation in this version is causally prior to the action to be performed and its action marker. The version identifier of the preceding version is bound to the task execution context, so that the context can be saved and restored when switching tasks, and the security-related status is only resolved in the read-only version status namespace according to the version identifier; When the preceding version is frozen, a preceding freeze fence is established. When the action is issued, an action effect fence is established and an action tag is generated. This allows observations after freezing to be assigned to subsequent candidate versions, and observations associated with the action tag to be assigned to subsequent versions. The preceding condition determination is based on the frozen preceding version as the factual basis. The device driver adapter is allowed to issue actions only when the permission is granted, the version identifier in the task execution context is consistent with the action descriptor, and the digest verification of the action descriptor passes, based solely on the aforementioned version and action predicate. A successor version that inherits from the preceding version and the action tag is generated based on the observation of the result after the action.

10. The method according to claim 9, characterized in that, The step of generating a successor version that inherits from the previous version and the action tag based on the post-action result observation includes: The result observation is attributed through a first attribution channel and a second attribution channel; when the result observation carries the action tag, the first attribution channel directly attributes the result observation to the action to be performed. The second attribution channel attributes the independent physical observation to the action to be executed when the physical domain of the independent physical observation matches the action writing domain, the sampling time is within the action result observation window, the independent physical observation satisfies the expected physical transfer predicate, and there is no competing action that can cause the same physical transfer. The observations attributed through the first or second attribution channel are written into the successor version, which is the parent version of the preceding version and the action tag is the inheritance tag. When there are competing actions, insufficient result observation coverage, or conflicts between direct control chain observations and independent physical observations, the subsequent version is kept in an unclosed state and marked as a version to be reconciled. Subsequent actions above a preset risk level are restricted from using this subsequent version as the preceding version until the subsequent version is closed again.