A power agent action execution control method and system based on safe continuation state recovery

By determining the safety task completion path and state changes before and after the execution of candidate actions by the power intelligent agent, identifying the safety continuation failure conditions, and reversely determining the previous state recovery target, the problem of safety task completion path failure after candidate action execution is solved, and the recovery of the safety continuation state is realized.

CN123183997APending Publication Date: 2026-11-27刘秀良
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

After the candidate actions of the existing power intelligent agent meet the preconditions for direct action, the safety task completion path may fail, and the existing control methods are unable to identify and restore its safety continuity capability.

Method used

By determining the path to complete the safe task before and after the execution of candidate actions, identifying state changes and conditions for the break in safety continuity, determining the target for restoring the preceding state in reverse, and changing the power execution state through the preceding recovery action, the candidate actions can regain the ability to complete the safe task.

Benefits of technology

It enables further judgment on whether a candidate action can still safely complete the task after execution, and identifies and restores its safe continuation capability, when the candidate action meets the direct prerequisites, thus avoiding the processing method of directly replacing or regenerating the operation plan.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123183997A_ABST
    Figure CN123183997A_ABST
Patent Text Reader

Abstract

The application discloses a power intelligent agent action execution control method and system based on a safe continuation state recovery, and belongs to the technical field of intelligent operation control of a power system. A current power execution state, a task target state and a safe task completion path before execution are acquired. A candidate successor state of an intelligent agent candidate action meeting a direct action precondition is formed, and a safe continuation state is judged. When the candidate action is single-step executable but no safe task completion path exists after execution, a safe continuation breaking condition is determined according to state changes. In the case of keeping the original candidate action unchanged, a precondition state recovery target and a precondition recovery action set are reversely determined, so that the original candidate action recovers the safe continuation state. A controlled candidate execution chain of the precondition recovery action and the original candidate action is formed, and after joint verification, execution admission control is performed. The application is suitable for safe execution control of power intelligent agent actions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of intelligent operation control and artificial intelligence safety execution technology of power systems. Specifically, it relates to a power intelligent agent action execution control method and system based on safe continuation state recovery. It is applicable to power dispatch intelligent agents, equipment operation intelligent agents, virtual power plant intelligent agents, energy storage operation intelligent agents, and other intelligent decision-making systems that can generate power candidate actions and interact with power business systems, automation systems, or control interfaces. Background Technology

[0002] With the deepening application of large language models, intelligent agents, and automated decision-making technologies in power systems, intelligent decision-making systems have gradually expanded from information querying, knowledge question answering, and auxiliary analysis to tasks planning, operational suggestions, tool invocation, and action execution. In business scenarios such as power dispatching, equipment operation, virtual power plant operation, and energy storage control, power intelligent agents can generate candidate actions based on the current task and system operating status, and participate in subsequent execution processes through business interfaces, automation platforms, or control interfaces.

[0003] Compared to general information generation tasks, the actions generated by power intelligent agents have strong state and temporal correlations. Whether a candidate action is suitable for execution depends not only on whether the action meets the direct execution conditions such as equipment status, operating permissions, protection interlocks, operating parameters, and operating rules at the current moment, but also on whether the system state formed after executing the action can support the continued safe completion of the current power task.

[0004] Existing power operation safety controls typically perform safety verification on actions to be executed through equipment operation rules, topology relationships, protection interlocking conditions, dispatching procedures, or anti-misoperation rules. Some methods can also simulate and verify operation sequences based on the current equipment status, or intercept, alarm, replan, or generate alternative operation schemes when actions are detected as not meeting constraints. For agent execution scenarios, mechanisms such as access control, isolated execution, manual confirmation, and execution logs can be further combined to reduce the security risks caused by agents directly operating business or control systems.

[0005] However, the fact that a candidate action meets the prerequisites for its current direct action does not mean that executing the candidate action will still ensure the safe completion of the current task. In some power operation scenarios, the candidate action itself can be executed normally and does not directly violate the safety rules corresponding to the current action, but the changes in equipment status, topology, protection and interlocking status, operating parameters, or task stage caused by the candidate action may invalidate the state conditions on which subsequent operations depend, thereby causing the originally existing safe task completion path to fail.

[0006] In the above situation, if the judgment is made solely based on whether the candidate action currently meets the preconditions for the direct action, it is difficult to identify the changes in safety continuity that occur after the candidate action is executed. If the candidate action is directly replanned or replaced when it is found that the subsequent task cannot be completed, the original candidate action of the agent is changed, and the state conditions that need to be established before its execution are not determined for the specific state reasons that caused the failure of the safety task completion path of the original candidate action.

[0007] Therefore, an execution control technology for candidate actions of power intelligent agents is needed. Given that a candidate action currently meets the preconditions for direct action, it should further determine whether a safe task completion path still exists after executing the candidate action, satisfying power safety constraints and enabling the completion of the current task. For candidate actions where the safe task completion path fails after execution, it should be able to locate the safety continuation failure condition related to the change in the candidate action's state. While maintaining the original candidate action, by establishing corresponding power state conditions before the candidate action is executed, the original candidate action can regain its safe task completion continuation capability, thus providing a control basis for the execution admission of power intelligent agent actions. Summary of the Invention

[0008] The purpose of this invention is to provide a power intelligent agent action execution control method and system based on safety continuation state recovery, in order to solve the problem that the candidate action of the power intelligent agent meets the direct action prerequisite in the current state, but may cause the safety task completion path to fail after execution, and the execution control method based on single-step action verification or action replacement is difficult to restore its safety continuation capability for the original candidate action.

[0009] This invention determines the safe task completion path corresponding to the current power task before and after the execution of a candidate action. When a candidate action is executable in one step but no safe task completion path exists after execution, the invention determines the state change caused by the candidate action and the corresponding safe continuation failure condition. While keeping the original candidate action unchanged, the invention reversely determines the pre-state recovery target that needs to be established before the candidate action is executed based on the safe continuation failure condition, and changes the power execution state before the candidate action is executed by the candidate pre-recovery action, so that the original candidate action regains the ability to continue the safe task completion. After joint verification is passed, the resulting controlled candidate execution chain is allowed to enter the execution access.

[0010] To achieve the above objectives, the present invention provides a power intelligent agent action execution control method based on safe continuation state recovery, comprising the following steps:

[0011] S1. Obtain the current power task, the current power system operation data, and the power operation constraints corresponding to the current power task to form the current power execution state, determine the task target state and task maintenance conditions, and determine at least one safe task completion path before execution that satisfies the power operation constraints and task maintenance conditions and can reach the task target state based on the current power execution state.

[0012] S2, obtain candidate actions generated by the power intelligent agent for the current power task, determine the single-step executable state of the candidate actions based on the current power execution state and the action preconditions corresponding to the candidate actions, and determine the candidate actions that meet the action preconditions as single-step executable candidate actions.

[0013] S3. Based on the state change relationship corresponding to the single-step executable candidate action, form a candidate successor state after executing the single-step executable candidate action. Determine the subsequent action path that can reach the task target state from the candidate successor state. Verify the subsequent action path according to power operation constraints and task maintenance conditions to determine whether the single-step executable candidate action is in a safe continuation state or a safe continuation failure state.

[0014] S4. When the single-step executable candidate action is in a state of safety continuation failure, compare the current power execution state with the candidate successor state to determine the state change caused by the single-step executable candidate action, and determine the safety continuation failure condition based on the correlation between the state change and the action preconditions, power operation constraints and task maintenance conditions corresponding to the safety task completion path before execution.

[0015] S5, while keeping the single-step executable candidate action as the target action to be executed, determine the pre-state recovery target that needs to be established before the execution of the single-step executable candidate action in reverse, based on the safety continuation break condition and the state condition corresponding to the safety task completion path before execution.

[0016] S6. Based on the current power execution state and the target state of the previous state, determine the set of candidate previous recovery actions, simulate and execute the set of candidate previous recovery actions respectively, and keep the single-step executable candidate actions unchanged in the power execution state after recovery, and redetermine the safe continuation state of the single-step executable candidate actions; determine the target set of previous recovery actions based on the safe continuation state recovery status, the safe continuation break condition elimination status, the task maintenance condition maintenance status, and the state disturbance.

[0017] S7. A controlled candidate execution chain is formed according to the execution order of the target pre-recovery action set and the single-step executable candidate action. The controlled candidate execution chain is jointly verified. When the joint verification is passed, the controlled candidate execution chain is allowed to enter the execution admission. When there is no target pre-recovery action set that meets the conditions, the single-step executable candidate action is blocked from entering the execution admission.

[0018] The safety continuation state described in this invention is used to characterize whether, after a candidate action is executed under the current power execution state, it still has the ability to continue subsequent actions to complete the current power task while satisfying power operation constraints and task maintenance conditions. Let the current power execution state be S, and the single-step executable candidate action be A. The candidate successor state after executing candidate action A is: S_A = T(S,A), where T represents the state change relationship corresponding to the candidate action.

[0019] When there exists at least one safe task completion path P_safe starting from the candidate successor state S_A that satisfies the power operation constraints and task maintenance conditions and can reach the task target state S_goal, it is determined that: CS(A,S)=1 indicates that the candidate action A is in a safe continuation state; when there is no safe task completion path, it is determined that: CS(A,S)=0 indicates that the candidate action A is in a safe continuation failure state.

[0020] This invention focuses on controlling the situation where candidate actions meet the direct action prerequisites, i.e., the candidate actions are single-step executable, but their safety continuation state is 0. Single-step executableness characterizes whether a candidate action meets its own direct action prerequisites under the current power execution state; the safety continuation state characterizes whether a safe task completion path that meets the current power task requirements still exists after the candidate action is executed. These two have different criteria. Candidate actions that meet the direct action prerequisites are identified as single-step executable candidate actions. In the following discussion of the safety continuation state recovery process, these single-step executable candidate actions are denoted as A*.

[0021] If at least one safe task completion path exists before the candidate action is executed, but no safe task completion path exists after the candidate action is executed, it is determined that the candidate action caused a safety continuation failure. By comparing the power execution state before and after the candidate action is executed, the state change caused by the candidate action is obtained, and the safety continuation failure condition caused by the state change is determined.

[0022] The safety continuation break condition is different from the direct action constraint violated by the candidate action itself. It is used to characterize the state change caused by the candidate action, which changes the state condition or relation condition on which the subsequent safety task completion path depends from a satisfied state to a dissatisfied state, and thus participates in causing the set of safety task completion paths after the candidate action is executed to be empty.

[0023] Based on the aforementioned safety continuation failure condition, while keeping the original candidate action unchanged, the pre-state recovery target that needs to be established before the execution of the original candidate action is determined in reverse. The pre-state recovery target is different from the direct action pre-condition that the original candidate action has already satisfied. It is used to change the power execution state before the execution of the original candidate action, so that after the execution of the original candidate action, there is at least one safe task completion path that satisfies the power operation constraints and task maintenance conditions and can reach the task target state.

[0024] The pre-state restoration described in this invention includes restoring state conditions related to safety continuation failure, and pre-establishing state conditions or relationship conditions that can avoid safety continuation failure before the execution of candidate actions, and is not limited to restoring the power system to the operating state that already existed at a historical time.

[0025] Let the original candidate action be A*, and the current power execution state be S_t. When CS(A*,S_t)=0, determine the set of preceding recovery actions R according to the preceding state recovery target, and change the current power execution state S_t to the recovered power execution state S_R through the set of preceding recovery actions. When S_t --R--> S_R keeps the original candidate action A* unchanged, when CS(A*,S_R)=1, it is determined that the set of preceding recovery actions has restored the safe continuation state of the original candidate action A*, and further joint verification is performed on the controlled candidate execution chain formed by R → A*.

[0026] Compared with the method of performing safety verification based solely on the current direct action prerequisites of candidate actions, this invention further determines whether a safe task completion path that satisfies power operation constraints and task retention conditions still exists after the candidate action is executed, thereby enabling the identification of situations where a candidate action is currently executable but the safe task completion capability fails after execution.

[0027] This invention determines the safety continuation failure condition by the correlation between the state changes before and after the execution of candidate actions and the safety task completion path conditions, so that the judgment of the safety continuation failure of candidate actions can be associated with the specific equipment state, topology relationship, protection and interlocking state, operating parameters or task stage state changes.

[0028] This invention, while keeping the original candidate action unchanged, reversely determines the pre-state recovery target that needs to be established before the candidate action is executed based on the safety continuation failure condition, and enables the original candidate action to regain its safety continuation capability through the pre-recovery action, which is different from the processing method of directly replacing the original candidate action or regenerating the complete operation plan.

[0029] This invention establishes an action-level safe execution control mechanism between power intelligent agents and dispatching business systems, automation platforms, or equipment control interfaces by jointly verifying the controlled candidate execution chain formed by the pre-recovery action and the original candidate action, and by combining the safe continuation state recovery status, task maintenance status, and state disturbance to determine the execution admission result. Attached Figure Description

[0031] Figure 1 This is a flowchart of the overall process of the power intelligent agent action execution control method based on safe continuation state recovery according to the present invention.

[0032] Figure 2 This is a flowchart for determining the safe continuation state of candidate actions in this invention.

[0033] Figure 3 Flowchart for determining the fracture conditions for safe continuation in this invention.

[0034] Figure 4 This is a flowchart illustrating the reverse determination of the target for restoring the preceding state in this invention.

[0035] Figure 5 This is a schematic diagram of the state transition before and after the restoration of the safe continuation state of the candidate action in this invention.

[0036] Figure 6 This is a flowchart of the hierarchical screening process for the candidate pre-recovery action set of the present invention.

[0037] Figure 7 This is a schematic diagram of the power intelligent agent action execution control system based on safe continuation state recovery according to the present invention. Detailed Implementation

[0039] The present invention will be further described below with reference to the accompanying drawings and specific embodiments. This embodiment takes the candidate actions generated by the power intelligent agent for the current power task as input, and realizes the execution admission control of the candidate actions through the construction of the current power execution state, single-step executability judgment, safe continuation state determination, safe continuation failure condition determination, previous state recovery target determination, previous recovery action determination, and joint verification of the controlled candidate execution chain.

[0040] In this embodiment, the power intelligent agent can be a power intelligent agent built based on a large language model, or it can be other intelligent decision-making modules capable of generating candidate actions based on power tasks and the operating status of the power system. The candidate actions may include at least one of the following: equipment operation actions, operating mode adjustment actions, protection or automatic device status adjustment actions, power regulation actions, control parameter adjustment actions, and power operation actions invoked through a business interface or control interface.

[0041] S1: Current power execution status and determination of the path to complete the safety tasks prior to execution.

[0042] In step S1, the current power task, current power system operation data, and power operation constraints corresponding to the current power task are acquired. The current power system operation data may include equipment operation status data, electrical topology data, protection and interlocking status data, operation parameter data, and task execution progress data.

[0043] The current power execution state S_t is formed based on the current power system operation data: S_t={O_t,T_t,P_t,E_t,Q_t} where O_t represents the set of equipment operation states, T_t represents the set of electrical topology states, P_t represents the set of protection, automatic devices and interlocking states, E_t represents the set of operation parameter states related to the current task, and Q_t represents the set of current task stage and completed action states.

[0044] The task target state S_goal is determined based on the current power task. This task target state describes the equipment state, topology state, operating parameter state, and / or task stage state that need to be achieved upon completion of the current power task. Simultaneously, the task retention condition C_keep is determined. This task retention condition represents the safety state or relationship conditions that need to be continuously satisfied or satisfied during a specified task stage during the transition from the current power execution state to the task target state.

[0045] Based on the current power execution state S_t, the task target state S_goal, power operation constraints, and task holding conditions, candidate task completion paths from the current power execution state to the task target state are determined in the preset power action state structure. The preconditions, intermediate states, and task holding conditions in each candidate task completion path are verified in sequence. The verified paths are determined as safe task completion paths before execution, forming: P_safe^pre={P_1^pre,P_2^pre,...,P_n^pre}. When P_safe^pre is not empty, it means that before the intervention of candidate actions, there is at least one task completion method that satisfies the safety constraints in the current power execution state.

[0046] S2: Single-step executability judgment of candidate actions

[0047] In step S2, candidate actions A* generated by the power intelligent agent for the current power task are obtained. The candidate actions include at least the action object, action type, and target action state, and may also include action parameters, action time, action source, and action identifier.

[0048] Based on the direct action precondition Pre(A) corresponding to candidate action A, and combined with the current power execution state S_t, it is determined whether the candidate action meets the single-step execution condition: EX(A*,S_t)=1 indicates that candidate action A* meets its direct action precondition. EX(A*,S_t)=0 indicates that the candidate action A* does not meet the prerequisite conditions for its direct action.

[0049] When EX(A*,S_t)=0, candidate actions can be blocked or the preconditions for direct actions that are not met can be fed back to the power intelligent agent; when EX(A*,S_t)=1, candidate actions are not allowed to enter execution directly, but are identified as single-step executable candidate actions and enter the safe continuation state determination.

[0050] S3: Determination of Safe Continuation Status In step S3, based on the state change relationship T corresponding to the candidate action A*, a state transition simulation is performed on the current power execution state S_t to obtain the candidate successor state: S_A=T(S_t,A*). Starting with candidate successor state S_A, determine subsequent action paths that can reach the task target state S_goal within the power action state structure. For each subsequent action path, sequentially determine whether the subsequent actions in the path satisfy the corresponding action prerequisites, and determine whether the intermediate states formed by each action satisfy the power operation constraints and task hold conditions.

[0051] The subsequent action paths that meet the above conditions and can reach the task target state S_goal are determined as safe task completion paths, forming a set of safe task completion paths after the candidate actions are executed: P_safe^post(A*).

[0052] When P_safe^post(A*) ≠ ∅, it is determined that CS(A*,S_t)=1 indicates that candidate action A* is in a safe continuation state; when P_safe^post(A*) = ∅, it is determined that CS(A*,S_t)=0 indicates that candidate action A* is in a safe continuation failure state.

[0053] When the set of safety task completion paths P_safe^pre is not empty, the candidate action A satisfies the single-step execution condition and P_safe^post(A*) is empty, it is determined that the candidate action A is a candidate action that can be executed in one step but causes safety continuation failure, and the process of determining the safety continuation break condition is entered.

[0054] S4: Determination of Safe Fault Continuation Conditions

[0055] In step S4, the current power execution state S_t is compared with the candidate successor state S_A to determine the set of state changes caused by the candidate action A*: ΔS(A*)={δ_1,δ_2,...,δ_m} where each state change δ_i is used to represent the change in at least one device state, topology relationship, protection and interlocking state, operating parameter state or task stage state before and after the execution of the candidate action A*.

[0056] For each pre-execution safety task completion path in the set of pre-execution safety task completion paths P_safe^pre, extract the preconditions for each subsequent action, the power operation constraints for each intermediate state, and the task holding conditions to form the corresponding path condition set: Req(P_k)={q_k1,q_k2,...,q_kr}

[0057] The set of state changes ΔS(A*) is associated and matched with the set of path conditions Req(P_k) to determine the path conditions that change from satisfied state to unsatisfied state due to the state change caused by the candidate action A*, and further determine the pre-execution safety task completion path affected by the failure of the corresponding path condition.

[0058] For path condition q, when the state of satisfying the path condition changes due to the state change caused by the candidate action A*, and the path condition is used for subsequent action admission, intermediate state security maintenance or task maintenance in the corresponding pre-execution security task completion path, and the failure of the path condition participates in causing the corresponding pre-execution security task completion path to fail, the path condition is determined as a candidate security continuation break condition.

[0059] Based on the path failure status corresponding to each candidate safety continuation failure condition, determine the set of safety continuation failure conditions that cause the candidate successor state S_A to lack a safe task completion path: B(A*)={B_1,B_2,...,B_h} The safety continuation break condition B_i can be expressed as: B_i={ID_i,Type_i,Object_i,Cond_i,Δ_i,Path_i} Wherein, ID_i represents the fault condition identifier, Type_i represents the fault condition type, Object_i represents the associated power object, Cond_i represents the failure state condition or relationship condition, Δ_i represents the candidate action state change associated with the fault condition, and Path_i represents the pre-execution safety task completion path affected by the fault condition.

[0060] Furthermore, the fracture level L(B_i) of the safety continuation fracture condition B_i can be determined based on the position from the start of the candidate successor state to the first time that the corresponding safe task completion path cannot be formed due to the failure of the safety continuation fracture condition B_i. This level is used to characterize the position of the impact of the safety continuation fracture condition in the subsequent task advancement process.

[0061] S5: Reverse determination of the target for restoring the previous state

[0062] In step S5, based on the set of safety continuation rupture conditions B(A*), the state conditions or relational conditions that need to be met for the corresponding pre-execution safety task completion path to continue migrating to the task target state are determined, and with the constraint of keeping the original candidate action A as the target action to be executed, the candidate pre-state recovery target that needs to be established before the execution of candidate action A is determined in reverse.

[0063] For the safety continuation failure condition B_i, based on its associated state change Δ_i, failure condition Cond_i, and the state change relationship corresponding to candidate action A, candidate prerequisite state conditions required to restore the failure condition or establish an alternative safety task completion path after the execution of candidate action A are determined, forming: B_i → {G_i1,G_i2,...,G_iz} where each candidate prerequisite state restoration target G_ij can be represented as: G_ij={Object_ij,TargetState_ij,Relation_ij,ValidTime_ij,SourceB_ij} where Object_ij represents the power object corresponding to the restoration target, TargetState_ij represents the target state, Relation_ij represents the state relationship to be established, ValidTime_ij represents the effective stage or time condition that the target state needs to satisfy, and SourceB_ij represents the corresponding safety continuation failure condition.

[0064] The candidate pre-state recovery target is different from the direct action pre-condition Pre(A) that candidate action A has already satisfied. The direct action pre-condition is used to determine whether candidate action A can be executed in the current state; the candidate pre-state recovery target is used to ensure that the system state after candidate action A is executed has a safe task completion path that meets the requirements of the current power task.

[0065] When a safety continuation fracture condition corresponds to multiple candidate pre-state recovery targets, or when multiple safety continuation fracture conditions correspond to different candidate pre-state recovery targets, the candidate pre-state recovery targets are combined to form at least one set of candidate pre-state recovery targets: G_R^k={G_1a,G_2b,...,G_nc} For the candidate set of recovery targets G_R^k, construct a hypothetical recovery state S_t^G that satisfies the corresponding target, and keep the original candidate action A* unchanged in the hypothetical recovery state, forming: S_A^G=T(S_t^G,A*). The safe task completion path is redefined from S_A^G; when there is at least one safe task completion path that satisfies the power operation constraints and task maintenance conditions and can reach the task target state, the corresponding candidate set of preceding state recovery targets is determined as the set of valid preceding state recovery targets.

[0066] S6: Determining Pre-Recovery Actions and Screening State Disturbances In step S6, based on the current power execution state S_t and the effective set of pre-state recovery targets, at least one set of candidate pre-state recovery actions is determined that can transition the current power execution state to a state that satisfies the effective set of pre-state recovery targets: R_i={r_i1,r_i2,...,r_iu} The candidate pre-recovery action set is simulated and executed to obtain the power execution state after recovery: S_t --R_i--> S_Ri Under the restored power execution state S_Ri, keep the original candidate action A unchanged, simulate the execution of the original candidate action A, obtain the restored candidate successor state, and redetermine: CS(A*,S_Ri). Only keep the ones that make CS(A*,S_Ri)=1 Furthermore, the set of candidate pre-recovery actions whose execution process satisfies power operation constraints and task retention conditions.

[0067] For the retained candidate set of pre-recovery actions R_i, compare the power execution state before and after execution to form a set of state disturbances ΔS_Ri. Based on the correlation between the state changes in the set of state disturbances and the safety continuation failure conditions and the pre-recovery state objectives, the state changes used to eliminate the safety continuation failure conditions or establish the pre-recovery state objectives are determined as necessary state changes ΔS_Ri^B, and the state changes other than the necessary state changes are determined as unnecessary state disturbances ΔS_Ri^N.

[0068] A tiered screening process is performed on multiple candidate pre-recovery action sets that meet the conditions for safe continuation and recovery: First, candidates that cannot restore the original candidate action's safe continuation state are excluded; second, candidates that violate power operation constraints or task maintenance conditions during the execution of recovery actions are excluded; then, screening is performed based on the elimination of safe continuation failure conditions and the maintenance status of currently satisfied task-related states; on this basis, candidates with smaller non-essential state disturbance ranges are prioritized; when the aforementioned conditions are the same, the target pre-recovery action set R* is determined based on the failure level of the safe continuation failure conditions, the number of actions, the execution time, and / or the number of equipment actions.

[0069] S7: Controlled candidate execution chain joint verification and execution access In step S7, a controlled candidate execution chain is formed according to the execution order of the actions in the target pre-recovery action set R and the original candidate action A: Chain={R* → A*}. The controlled candidate execution chain is jointly verified, including sequentially verifying the action preconditions corresponding to each action in the target pre-recovery action set R, the power operation constraints and task retention conditions corresponding to the intermediate states formed by each action, the single-step executability of the original candidate action A in the power execution state after recovery, and the safe continuation state corresponding to the original candidate action A*.

[0070] When the target pre-recovery action set R satisfies the corresponding action pre-condition, meets the power operation constraints and task retention conditions during execution, and the original candidate action A still satisfies the direct action pre-condition in the power execution state after recovery, and CS(A*,S_R*)=1, the controlled candidate execution chain R*→A* is allowed to enter the execution admission; when there is no target pre-recovery action set that meets the above conditions, the original candidate action A* is blocked from entering the execution admission, and the safety continuation breakage condition, the unmet pre-state recovery target and / or the blocking result can be fed back to the power intelligent agent or the upper-level business system.

[0071] Electricity Business Examples

[0072] To further illustrate the safe continuation state restoration process of the present invention, a power equipment maintenance task with a main power supply channel and a backup power supply channel is taken as an example. Assume that the important load D1 is currently powered by the first power supply channel L1, and the second power supply channel L2 has backup power supply capability. The current task is to take the first power supply channel L1 out of operation and put it into maintenance state while maintaining continuous power supply to the important load D1.

[0073] The current power execution status includes the status of the equipment corresponding to the first power supply channel L1 and the second power supply channel L2, the power supply topology status, the protection and interlocking status, and the status of the current task stage. Based on the current task, the continuous power supply to the critical load D1 and the protection coordination relationships meeting the corresponding operating mode requirements during power supply mode changes are the conditions for maintaining the task.

[0074] Before the power intelligent agent generates candidate actions, at least one pre-execution safety task completion path is determined based on the current power execution state. The pre-execution safety task completion path includes establishing the protection coordination state and backup power supply conditions corresponding to the second power supply channel L2, establishing the safe transfer conditions for the important load D1, executing the target actions related to the shutdown of the first power supply channel L1, and completing subsequent maintenance and isolation operations, thereby achieving the task target state while maintaining continuous power supply to the important load D1.

[0075] The power agent generates a candidate action A* for the current task. The candidate action A is an operational state adjustment action involved in the process of the first power supply channel L1 exiting operation. Based on the current power execution state, the candidate action A has met its corresponding direct action prerequisites, therefore the candidate action A* is single-step executable.

[0076] The simulation directly executes candidate action A* under the current power execution state to obtain candidate successor states. Although candidate action A does not directly violate its corresponding preconditions, the resulting change in operating state causes the protection coordination conditions and / or task phase conditions upon which the subsequent safe transfer of power to the second power supply channel L2 depends to fail. Under the task maintenance condition that the critical load D1 requires continuous power supply, there is no safe task completion path from the candidate successor states that satisfies the power operation constraints and can achieve the task objective state. Therefore, candidate action A is determined to be in a state of safety continuation failure.

[0077] Compare the power execution status before and after the execution of candidate action A, associate the state change caused by candidate action A with the path conditions corresponding to the safe task completion path before execution, determine the protection coordination conditions, backup power supply establishment conditions and / or task stage conditions that fail due to the state change caused by candidate action A*, and identify the conditions that contribute to the failure of the safe task completion path before execution as the safety continuation failure conditions.

[0078] While keeping candidate action A as the target action to be executed, the pre-state recovery target that needs to be established before the execution of candidate action A is determined in reverse according to the safety continuation failure condition. The pre-state recovery target includes at least one of the following: the protection state corresponding to the second power supply channel L2 meets the backup power supply requirements, the backup power supply conditions are established, and the important load D1 meets the safety transfer requirements.

[0079] Based on the current power execution state and the aforementioned pre-state recovery target, a candidate pre-recovery action set R_i is determined. The candidate pre-recovery action set is simulated and executed to form the post-recovery power execution state S_Ri. Under the post-recovery power execution state S_Ri, candidate action A remains unchanged, and candidate action A is simulated and executed again.

[0080] When at least one safe task completion path exists again after the recovery of the candidate successor state formed from the execution of candidate action A, satisfying the power operation constraints and task maintenance conditions and capable of reaching the task objective state, the candidate preceding recovery action set R_i is determined to enable candidate action A to be restored from the safe continuation failure state to the safe continuation state.

[0081] When there are multiple candidate sets of pre-recovery actions that can restore the safe continuation state of candidate action A, the candidates are screened based on the elimination of the safety continuation break condition, the maintenance of the existing task-related state, and the range of unnecessary state disturbances of each candidate set of pre-recovery actions. The target set of pre-recovery actions R is then determined based on the break level, number of actions, execution time, and / or number of equipment actions.

[0082] The set of target pre-recovery actions R is placed before the original candidate action A to form a controlled candidate execution chain R*→A*, and the controlled candidate execution chain is jointly verified. When the target pre-recovery action execution process satisfies the power operation constraints and task retention conditions, the original candidate action A* still satisfies its direct action pre-conditions, and the safety continuation state after recovery is 1, the controlled candidate execution chain is allowed to enter the execution access.

[0083] State Variable Examples

[0084] To further illustrate the determination process of the safety continuation state, the safety continuation failure condition, and the prior state recovery target, the state elements related to the current power task are discretized. Assume the current task remains to take the first power supply channel L1 out of operation and into maintenance mode while maintaining continuous power supply to the critical load D1.

[0085] Define the state variables related to the current task as follows: x1 represents the operating status of the first power supply channel L1, where 1 indicates operation and 0 indicates shutdown. x2 represents the backup power supply condition of the second power supply channel L2, where 1 indicates that it has been established and 0 indicates that it has not been established. x3 represents the protection coordination status corresponding to the second power supply channel L2, where 1 indicates that the standby power supply operation mode requirements are met, and 0 indicates that they are not met; x4 indicates the power supply status of critical load D1, where 1 indicates that it is still receiving effective power and 0 indicates that it has lost effective power supply; x5 represents the running function status related to candidate action A*, where 1 indicates that the original running status is maintained, and 0 indicates that the status adjustment corresponding to the candidate action has been executed; x6 represents the current task stage, where 0 represents the power supply preparation stage, 1 represents the first power supply channel exiting operation stage, 2 represents the maintenance and isolation stage, and 3 represents the task completion stage.

[0086] Assuming the current power execution status is: S_t={x1=1,x2=0,x3=0,x4=1,x5=1,x6=0}, it means that the first power supply channel L1 is in operation, the second power supply channel L2 has not yet established backup power supply conditions, the corresponding protection status has not yet been adjusted to the backup power supply operation mode requirements, the important load D1 maintains power supply, the operation function related to the candidate action A* maintains its original operation status, and the current task is in the power transfer preparation stage.

[0087] The current task goal state can be represented as: S_goal={x1=0,x4=1,x6=3}. The task keep-alive condition includes at least: C_keep,1: x4=1 And: C_keep,2: When D1 is powered by the second power supply channel L2, x3=1.

[0088] Based on the current power execution state S_t, a safe task completion path P_1^pre can be determined before execution, including: adjusting the protection state corresponding to the second power supply channel to meet the backup power supply requirements; establishing backup power supply conditions for the second power supply channel; establishing a safe transfer state for the important load D1; executing candidate action A*; and completing the first power supply channel's shutdown and subsequent maintenance isolation operations. Therefore: P_safe^pre ≠ ∅ indicates that before candidate action A* intervenes, the current task has at least one safe completion method that meets the power operation constraints and task maintenance conditions.

[0089] The power agent generates a candidate action A* under the current power execution state S_t. The direct precondition for the action A* is that its corresponding equipment and operating function are in an adjustable state, and there is no direct blocking condition for the action itself. Based on the current power execution state, it is determined that all the direct preconditions are met; therefore, EX(A*,S_t)=1, and the candidate action A* is a single-step executable candidate action.

[0090] After simulating the direct execution of candidate action A*, a candidate successor state is formed: S_A={x1=1,x2=0,x3=0,x4=1,x5=0,x6=1}. In the candidate successor state, candidate action A* itself has been completed, but the backup power supply conditions and corresponding protection coordination state of the second power supply channel L2 have not yet been established.

[0091] Based on the preset power action state structure, the subsequent action path to the task target state S_goal is determined from the candidate successor state S_A. Since the current task has entered the first power supply channel exit operation phase, and the protection coordination state and backup power supply conditions related to the safe supply of the important load D1 by the second power supply channel have not been established in the corresponding task phase, under the task condition of maintaining x4=1, there is no safe task completion path that satisfies the corresponding operational constraints and task holding conditions and can reach S_goal. Therefore: P_safe^post(A*)=∅ and: CS(A*,S_t)=0.

[0092] Therefore, candidate action A* is determined to be a candidate action that currently meets the prerequisites for direct action, but whose execution would cause the current task's ability to continue safely to be lost.

[0093] Comparing the current power execution state S_t and the candidate successor state S_A, we obtain the set of state changes caused by the candidate action A*: ΔS(A*)={x5:1→0,x6:0→1} indicates that the candidate action A* changed its corresponding operating function state and caused the current task to enter the first power supply channel exit operation stage from the power transfer preparation stage.

[0094] Extracting path conditions from the pre-execution security task completion path P_1^pre yields at least the following: q1: Before entering the first power supply channel exit operation phase, x2=1; q2: Before the second power supply channel takes over the power supply of D1, x3=1; q3: x4=1 during task execution.

[0095] After associating ΔS(A*) with q1 to q3, it is determined that since candidate action A* changes task phase x6 from 0 to 1, and the backup power supply condition corresponding to q1 has not yet been met, q1 becomes the condition for blocking the subsequent safe task completion path. Simultaneously, since x3 has not yet met the backup power supply protection coordination requirements, subsequent safe power transfer cannot be completed through the second power supply channel while maintaining q3. Therefore, it is determined that: B(A*) = {B1, B2} Where: B1 = {The backup power supply condition was not established before entering the L1 exit operation phase} B2 = {The backup power supply protection coordination conditions were not established in the corresponding task phase}.

[0096] While keeping candidate action A as the target action to be executed, the pre-state recovery target that needs to be established before the execution of candidate action A is determined in reverse based on the safety continuation breakage conditions B1 and B2: G1={x2=1} G2={x3=1} This results in: G_R(A*)={G1,G2}.

[0097] Among them, G1 and G2 are not direct action prerequisites that candidate action A has already satisfied. Their function is not to change candidate action A from an unexecutable state to an executable state, but to make the power execution state after candidate action A* is executed have a safe task completion path again.

[0098] Based on the current power execution state S_t and the pre-state recovery target G_R(A*), a candidate pre-recovery action set R1 is determined. The candidate pre-recovery action set R1 includes at least the actions of establishing the protection coordination state corresponding to the second power supply channel L2 and establishing the backup power supply conditions for the second power supply channel. After simulating the execution of R1, we obtain: S_R1={x1=1,x2=1,x3=1,x4=1,x5=1,x6=0}.

[0099] After the power is restored, keep the candidate action A unchanged in the power execution state S_R1, and re-simulate the execution of the candidate action A to get: S_A^R1={x1=1,x2=1,x3=1,x4=1,x5=0,x6=1}.

[0100] Continuing to determine the task path from the restored candidate successor state, a safe task completion path that satisfies power operation constraints and task maintenance conditions and reaches the task goal state S_goal can be formed. Therefore: CS(A*,S_R1)=1.

[0101] Compared to the state before restoration: CS(A*,S_t)=0, the candidate action A itself has not changed. By changing the power execution state before the execution of candidate action A, its safe continuation state is restored from 0 to 1.

[0102] Assume there exists another candidate set of pre-recovery actions, R2. Besides establishing x2=1 and x3=1, R2 also needs to adjust the states of other power supply branches (x7) and auxiliary equipment (x8) that are not directly related to the safety continuation failure conditions B1 and B2. Simulating R2 also satisfies: CS(A*,S_R2)=1.

[0103] Compare the state changes caused by R1 and R2. The state change corresponding to R1 is mainly used to establish the pre-state recovery target corresponding to the safety continuation fracture conditions B1 and B2, therefore its set of non-essential state disturbances is empty or less than R2; R2, in addition to the necessary state changes, also causes changes in x7 and x8, therefore the state changes corresponding to x7 and x8 are identified as non-essential state disturbances. Under the same other safety conditions, R1 is preferentially identified as the target pre-recovery action set R*.

[0104] The target pre-recovery action set R1 and the original candidate action A* form a chain: Chain={R1→A*}. Each recovery action in R1, the intermediate states formed during the recovery process, and A are jointly verified. When each action in R1 meets its corresponding pre-action condition, the critical load D1 maintains effective power supply during the recovery process, the protection coordination state after recovery meets the backup power supply requirements, A still meets its direct pre-action condition under S_R1, and CS(A*,S_R1)=1, the controlled candidate execution chain is allowed to enter the execution admission process.

[0105] The state variables, state codes, and action types in this embodiment are only used to illustrate the safe continuation state recovery process of the present invention and do not constitute a limitation on equipment type, number of states, number of actions, or specific power business scenarios. In other power tasks, corresponding equipment states, topology states, protection and interlocking states, operating parameter states, and task stage states can be established according to the task object, and the same safe continuation state recovery mechanism can be used for candidate action execution control.

[0106] System Implementation

[0107] The present invention also provides a power agent action execution control system based on safe continuation state recovery. The system can be deployed between the power agent and the power business system, dispatch automation system, virtual power plant control platform, energy storage control platform or other action execution interface, and is used to determine the safe continuation state, restore the pre-state and perform execution access control on the candidate actions generated by the power agent.

[0108] The system includes an execution state construction module, a candidate action processing module, a safety continuation determination module, a fracture condition determination module, a pre-state recovery module, a recovery scheme determination module, and an execution access control module.

[0109] The execution state construction module is used to acquire current power task and power system operation data, associate equipment status, topology status, protection and interlocking status, operating parameters and task stage status to form the current power execution state, and determine the task target status, task maintenance conditions and safe task completion path before execution.

[0110] The candidate action processing module is used to receive candidate actions generated by the power intelligent agent, parse the action object, action type, target state and action parameters corresponding to the candidate action, and determine the single-step executable state of the candidate action based on the current power execution state and the corresponding action preconditions.

[0111] The safety continuation determination module is used to form candidate successor states based on the state change relationship corresponding to the candidate actions, determine the subsequent action path to the task target state from the candidate successor states, and perform constraint verification on the subsequent actions and intermediate states to determine the safety continuation state of the candidate actions.

[0112] The fracture condition determination module is used to compare the power execution state before and after the candidate action is executed, determine the state change caused by the candidate action, and associate the state change with the path condition corresponding to the safety task completion path before execution, so as to determine the safety continuation fracture condition and its corresponding affected path and fracture level.

[0113] The pre-state recovery module is used to determine the pre-state recovery target that needs to be established before the execution of the candidate action in reverse according to the safety continuation failure condition while keeping the original candidate action unchanged, and to combine and verify the effectiveness of the candidate pre-state recovery targets corresponding to different safety continuation failure conditions.

[0114] The recovery scheme determination module is used to determine a set of candidate pre-recovery actions based on the current power execution status and the set of effective pre-recovery targets, simulate the state transitions between the set of candidate pre-recovery actions and the original candidate actions, and determine the set of target pre-recovery actions based on the recovery status of safe continuation status, the elimination status of safe continuation failure conditions, the status of task maintenance, and state disturbances.

[0115] The execution admission control module is used to form a controlled candidate execution chain according to the execution order of the target pre-recovery action set and the original candidate action, and output the execution admission result after the joint verification is passed; if the joint verification fails or there is no pre-recovery action set that can restore the safe continuation state of the original candidate action, the blocking result is output.

[0116] In one optional implementation, the execution access control module may also be connected to at least one of the following: a permission management module, an isolated simulation execution module, a manual approval module, and an audit traceability module. The permission management module verifies permissions based on the agent's identity, the object being operated on, the action type, and the scope of authorization. The isolated simulation execution module verifies the state transition of candidate actions and pre-execution recovery actions in a simulated environment isolated from the actual execution environment. The manual approval module submits the execution access results for manual confirmation based on the action risk level or business management requirements. The audit traceability module records candidate actions, security continuation states, security continuation failure conditions, pre-state recovery targets, the set of target pre-execution recovery actions, and the execution access results.

[0117] In one optional implementation, the power intelligent agent can interact with the actual business system or control platform through application programming interfaces (APIs), tool call interfaces, automated execution interfaces, or intelligent agent tool call protocols. The execution admission result is used to control whether candidate actions can enter the subsequent interface call process. This invention does not limit the specific interface protocol or the actual equipment control method.

[0118] In one alternative implementation, after the controlled candidate execution chain is actually executed, the current power execution state is updated according to the actual equipment state, topology state, protection and interlocking state, operating parameters and task stage state, and the safety continuation state determination is re-executed for the candidate actions subsequently generated by the power intelligent agent, so as to form a dynamic execution control process for continuous intelligent agent actions.

[0119] This invention can also be implemented by an electronic device, which includes a processor and a memory. The memory stores a computer program, and when the computer program is executed by the processor, it causes the processor to execute the above-described power intelligent agent action execution control method based on safe continuation state recovery.

[0120] The present invention can also be implemented by a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in the above method.

[0121] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Those skilled in the art, without departing from the technical concept of the present invention, can adjust, replace, or make equivalent changes to the power execution state, power operation constraints, task maintenance conditions, power action state structure, safety continuation state, safety continuation failure conditions, pre-state recovery targets, pre-recovery actions, and the specific implementation methods of each module according to different power business tasks. All equivalent substitutions, transformations, or improvements made within the scope of the technical concept and claims of the present invention should be included within the scope of protection of the present invention.

Claims

1. A power intelligent agent action execution control method based on safe continuation state recovery, characterized in that, Includes the following steps: S1. Obtain the current power task, the current power system operation data, and the power operation constraints corresponding to the current power task. Determine the equipment operation status, electrical topology status, protection and interlocking status, operating parameters, and current task stage based on the current power system operation data to form the current power execution status. The task objective state and the task maintenance conditions that need to be maintained during the execution of the task are determined based on the current power task. Based on the current power execution state, determine at least one pre-execution safe task completion path that satisfies the power operation constraints and task retention conditions and can reach the task target state; S2, obtain candidate actions generated by the power intelligent agent for the current power task, determine the single-step executable state of the candidate action based on the current power execution state and the action preconditions corresponding to the candidate action; when the candidate action meets the action preconditions, determine the candidate action as a single-step executable candidate action; S3, for the single-step executable candidate action, based on the current power execution state and the state change relationship corresponding to the single-step executable candidate action, form a candidate successor state after executing the single-step executable candidate action; Starting from the candidate successor state, a subsequent action path that can reach the task target state is determined according to the preset power action state structure, and the actions and intermediate states in the subsequent action path are verified according to the power operation constraints and task holding conditions; when there is at least one safe task completion path that satisfies the power operation constraints and task holding conditions and can reach the task target state, the single-step executable candidate action is determined to be in a safe continuation state; when there is no safe task completion path, the single-step executable candidate action is determined to be in a safe continuation failure state. S4, when the single-step executable candidate action is in a state of safety continuation failure, compare the current power execution state with the candidate successor state to determine the state change caused by the execution of the single-step executable candidate action; based on the correlation between the state change and the prerequisite conditions, power operation constraints, and task retention conditions of the subsequent actions in the pre-execution safety task completion path, determine the state conditions or relationship conditions that cause the state change from a satisfied state to a dissatisfied state and cause the corresponding pre-execution safety task completion path to fail; based on the state conditions or relationship conditions that cause the pre-execution safety task completion path to fail and cause the candidate successor state to not have a safety task completion path that satisfies the power operation constraints and task retention conditions, determine the safety continuation failure condition corresponding to the single-step executable candidate action; S5, with the condition of keeping the single-step executable candidate action as the target action to be executed, based on the safety continuation breakage condition and the state conditions corresponding to the safety task completion path before execution, at least one pre-state recovery target that needs to be established before the execution of the single-step executable candidate action is determined in reverse; the pre-state recovery target is different from the direct action pre-condition that the single-step executable candidate action has already satisfied, and is used to change the power execution state before the execution of the single-step executable candidate action, so that the subsequent state formed by executing the single-step executable candidate action in the changed power execution state can again have at least one safe task completion path that satisfies the power operation constraints and task maintenance conditions and can reach the task target state; S6, based on the current power execution state and the previous state recovery target, determine at least one candidate set of previous recovery actions; simulate the execution of each candidate set of previous recovery actions to form a corresponding post-recovery power execution state, and keep the single-step executable candidate actions unchanged in each post-recovery power execution state, simulate the execution of the single-step executable candidate actions to form a corresponding post-recovery candidate successor state; redetermine the safe continuation state of the single-step executable candidate actions based on the post-recovery candidate successor state, and determine the target set of previous recovery actions from the set of candidate previous recovery actions that can transform the single-step executable candidate action from a safe continuation failure state to a safe continuation state based on the elimination of the safe continuation failure condition, the maintenance of the task maintenance condition, and the state disturbance caused by each set of candidate previous recovery actions; S7. A controlled candidate execution chain is formed according to the execution order of the target pre-recovery action set and the single-step executable candidate action. The target pre-recovery action, the single-step executable candidate action and the corresponding intermediate state in the controlled candidate execution chain are jointly verified. When the target pre-recovery action satisfies the corresponding action pre-condition, the execution process satisfies the power operation constraints and task retention conditions, the single-step executable candidate action satisfies the corresponding action pre-condition in the power execution state after executing the target pre-recovery action set, and the single-step executable candidate action is in a safe continuation state, the controlled candidate execution chain is allowed to enter the execution admission process. When there is no set of target pre-recovery actions that can restore the single-step executable candidate action to a safe continuation state and satisfy the power operation constraints and task retention conditions, the single-step executable candidate action is blocked from entering the execution admission.

2. The method according to claim 1, characterized in that, The current power execution status includes at least two of the following: equipment operating status, electrical topology status, protection and interlocking status, operating parameter status, and current task stage status. The power operation constraints include at least one of the following: equipment operation constraints, topology constraints, protection and interlocking constraints, operating parameter constraints, and operation timing constraints. The task retention condition is used to characterize the state conditions or relationship conditions that need to be continuously satisfied or satisfied during a specified task stage during the process of the current power task migrating from the current power execution state to the task target state. The power action state structure is constructed based on the current power execution state, power operation constraints, and task retention conditions. The state nodes in the power action state structure represent the power execution state, and the action transition relationship between the state nodes represents the power action that can cause a change in the power execution state when the corresponding action precondition is met.

3. The method according to claim 1, characterized in that, Determining the safe continuation state of the single-step executable candidate action includes: updating the current power execution state to a candidate successor state according to the state change relationship corresponding to the single-step executable candidate action; and determining the subsequent action path in the power action state structure with the state node corresponding to the candidate successor state as the starting node and the state node that satisfies the task target state as the target node. For each action in the subsequent action path, the corresponding action prerequisites are verified in sequence, and the power operation constraints and task holding conditions are verified in sequence for the intermediate states formed by executing each action. When there is at least one safe task completion path that passes the verification and can reach the task target state, the safe continuation state of the single-step executable candidate action is marked as the first state; when there is no safe task completion path, the safe continuation state is marked as the second state. The first state indicates that the single-step executable candidate action has the ability to continue the safe task completion, while the second state indicates that the single-step executable candidate action does not have the ability to continue the safe task completion.

4. The method according to claim 1, characterized in that, Determining the safe continuity fracture condition includes: Obtain the preconditions for each subsequent action in the pre-execution safety task completion path, as well as the power operation constraints and task retention conditions for each intermediate state, to form a path condition set. Compare the current power execution state with the candidate successor state formed by executing the single-step executable candidate action to determine the set of state changes caused by the single-step executable candidate action; Associate the set of state changes with the set of path conditions to determine the path conditions that change from a satisfied state to a dissatisfied state due to state changes in the set of state changes. Determine the failure status of the path to complete the security task before execution after the path condition changes from a satisfied state to a dissatisfied state; The path condition that is associated with the state change caused by the single-step executable candidate action and participates in causing the candidate successor state to have no safe task completion path is determined as the safe continuation break condition.

5. The method according to claim 4, characterized in that, For each safety continuation break condition, record the corresponding state object, condition type, associated state changes caused by the single-step executable candidate action, and the safety task completion path before execution affected by the safety continuation break condition. Based on the affected pre-execution safety task completion path, determine the position from the start of forming a candidate successor state by executing the single-step executable candidate action to the first time that the pre-execution safety task completion path cannot be formed due to the failure to meet the corresponding safety continuation break condition, and determine the break level of the corresponding safety continuation break condition based on the position.

6. The method according to claim 4, characterized in that, Determining the target state for restoration includes: Based on the state object, condition type, associated state changes, and affected pre-execution safety task completion path corresponding to each safety continuation break condition, determine the state conditions or relationship conditions that need to be met for the corresponding pre-execution safety task completion path to continue migrating to the task target state. While keeping the single-step executable candidate action unchanged, based on the state conditions or relationship conditions and the state change relationship corresponding to the single-step executable candidate action, the equipment state, electrical topology relationship, protection and interlocking state, operating parameter state and / or task stage state that need to be established before executing the single-step executable candidate action are determined in reverse, forming a candidate pre-state recovery target. Wherein, the candidate pre-state recovery target is not a direct action pre-condition that has been satisfied by the single-step executable candidate action, and is used to make the subsequent state after executing the single-step executable candidate action satisfy the state condition or relationship condition corresponding to at least one safe task completion path again.

7. The method according to claim 6, characterized in that, For at least one safe continuation fracture condition, at least one candidate pre-state recovery target is determined, and at least one set of candidate pre-state recovery targets is formed according to the candidate pre-state recovery targets corresponding to different safe continuation fracture conditions. For each set of candidate preceding state recovery targets, construct hypothetical recovery states that satisfy the corresponding preceding state recovery targets; In the assumed recovery state, the single-step executable candidate action remains unchanged, the single-step executable candidate action is simulated and executed to form a candidate successor state after the assumed recovery. Determine a safe task completion path that satisfies the power operation constraints and task retention conditions and can reach the task target state from the candidate successor states after the assumption is restored. The set of candidate pre-state recovery targets that have at least one path to complete the security task is determined as the set of valid pre-state recovery targets.

8. The method according to claim 1, characterized in that, For each candidate set of pre-recovery actions, compare the power execution state before and after executing the candidate set of pre-recovery actions to determine the corresponding set of state disturbances; Based on the correlation between each state change in the state disturbance set and the safety continuation break condition and the pre-state recovery target, the state changes used to eliminate the safety continuation break condition or establish the pre-state recovery target are determined as necessary state changes, and the state changes other than the necessary state changes are determined as unnecessary state disturbances. If multiple candidate sets of pre-recovery actions can restore the single-step executable candidate action to a safe continuation state, the candidate set of pre-recovery actions with smaller non-essential state disturbance range shall be given priority.

9. The method according to claim 1, characterized in that, When determining the target pre-recovery action set, the candidate pre-recovery action set is stratified and filtered in the following order: Exclude the set of candidate pre-recovery actions that cannot transform the single-step executable candidate action from a safe continuation failure state to a safe continuation state; exclude the set of candidate pre-recovery actions that do not meet the power operation constraints or task retention conditions during execution. In the remaining set of candidate pre-recovery actions, the selection is based on the elimination of safety continuation break conditions, the maintenance of currently satisfied task-related states, and the range of unnecessary state disturbances. If the aforementioned screening results are the same, the target pre-recovery action set is determined based on the fracture level, number of actions, execution time and / or number of equipment actions of the safety continuation fracture condition; The actions in the target pre-recovery action set are placed before the single-step executable candidate actions to form a controlled candidate execution chain, and the controlled candidate execution chain is allowed to enter the execution admission after joint verification is passed.

10. A power intelligent agent action execution control system based on safe continuation state recovery, characterized in that, include: The execution status construction module is used to obtain the current power task, the current power system operation data and the corresponding power operation constraints, form the current power execution status, task target status and task holding conditions, and determine the safe task completion path before execution; The candidate action processing module is used to acquire candidate actions generated by the power intelligent agent and determine the single-step executable state of the candidate action based on the current power execution state and the corresponding action preconditions. The safety continuation determination module is used to form a candidate successor state after executing a single-step executable candidate action, and determine the safety continuation state of the single-step executable candidate action based on the subsequent action path from the candidate successor state to the task target state. The fracture condition determination module is used to determine the safety continuation fracture condition based on the correlation between the state change caused by the execution of the single-step executable candidate action and the path condition corresponding to the safety task completion path before execution. The pre-state recovery module is used to determine the pre-state recovery target in reverse according to the safety continuation breakage condition while keeping the single-step executable candidate action as the target action to be executed, and to determine the candidate pre-state recovery action set according to the pre-state recovery target. The recovery scheme determination module is used to simulate the combined state transition of the candidate set of pre-recovery actions and the single-step executable candidate actions, and to determine the target set of pre-recovery actions based on the safe continuation state recovery of the single-step executable candidate actions and the state disturbance caused by the set of candidate pre-recovery actions. An execution admission control module is used to form a controlled candidate execution chain according to the execution order of the target pre-recovery action set and the single-step executable candidate action, perform joint verification on the controlled candidate execution chain, and allow the controlled candidate execution chain to enter the execution admission or block the single-step executable candidate action from entering the execution admission based on the joint verification result.