Cross-agent delegation result quarantine admission and state atomic update system and method
By implementing a cross-agent delegation result isolation admission and state atomic update system, the problem of isolation boundary of cross-agent delegation results before the target task is solved, ensuring the isolation state transition of delegation results and the admission consistency of the target task, avoiding uncertain recovery caused by duplicate notifications and concurrent processing, and realizing the common submission boundary of multiple authoritative objects.
Patent Information
- Application Number
- CN202611319349.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-27
AI Technical Summary
The results of cross-agent delegation lack isolation boundaries before entering the target task; ancestor chain verification and authoritative state writing are separated; reversal updates may be inserted after verification; different target domains cannot be controlled independently; concurrent results may cover the target task or result receiving slot; submission failure may result in partial authoritative writing; and duplicate notifications and uncertain result recovery may lead to repeated execution of authoritative state changes.
A cross-agent delegation result isolation admission and state atomic update system is provided, including a result isolation management module, an admission context construction module, a chain snapshot and admission determination module, and an admission submission module. The result isolation management module keeps the delegation result in an unconsumable state before valid admission submission. The admission context construction module determines the target task object and the result receiving slot. The chain snapshot and admission determination module generates the target domain admission vector. The admission submission module re-verifies and binds the state at a single determinable submission point to ensure the consistency of the four authoritative state changes.
It effectively avoids the target task directly consuming non-authoritative results, ensures the isolation state transition of the delegated results and the admission consistency of the target task, prevents old snapshots from being committed and partial writes from being overwritten, avoids uncertain recovery caused by duplicate notifications and concurrent processing, and realizes a common commit boundary for multiple authoritative objects.
Smart Images

Figure CN123178108A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of artificial intelligence runtime governance, multi-agent collaboration, delegated task control, and concurrent consistency control, and particularly to a cross-agent delegation result isolation admission and state atomic update system and method. The technical solution can be deployed in agent runtimes, orchestration platforms, task scheduling middleware, trusted execution middleware, or distributed service control planes. Background Technology
[0002] Complex agent tasks can form recursive delegation chains across processes, services, or organizations. Existing interoperability protocols and orchestration systems can transmit tasks, results, cancellation signals, and parent-child relationships, but when the returned result reaches the target task, there is usually a lack of unified machine verification of the current ancestor delegation chain, delegation transformation proof, actual execution instance, delegation closure state, and result usage constraints. If the target task directly consumes the returned result, it may write expired delegations, delegations with weakened obligations, or results of unclosed subtasks into the working context, completion status, long-term memory, or downstream processes.
[0003] A common approach is to read the authorization status or delegation chain status once before writing to the target task, and then independently update the result record and target task status after successful verification. However, after verification but before writing is complete, ancestor delegations may be revoked, and the target task status, result receiving slots, or admission policies may be updated by other processing instances, creating a race condition between checking and use. If the result status, result receiving slots, target task authority status, and admission commit records are written separately, commit failures, process restarts, or partial network failures may result in some objects taking effect while others do not.
[0004] Duplicate notifications, at-least-once delivery, timeout retries, and lost responses further amplify the aforementioned problems. Using only ordinary idempotent keys generated from the number of retries or message identifiers may cause the same logical result to be repeatedly updated in the target task with different keys; simply checking for the existence of a record without verifying the binding of the record to the result, source delegate envelope, target task, result receiving slot, and usage domain may incorrectly identify key conflicts as successful retries.
[0005] Furthermore, the same delegated result can be allowed into the parent task's working context, but not for user output, completion determination, long-term memory writes, or external interface requests. Reducing the reliability of a result to a single Boolean value fails to express the admission differences between different result acceptance domains, and also cannot guarantee that older proposals will not be submitted after the admission vector version changes.
[0006] Therefore, a runtime control scheme is needed that takes isolated results, versionable result receiving slots, destination domain admission vectors, and ancestor delegation chain state snapshots as inputs, re-compares the current state at the commit point, and makes multiple authority objects effective together or ineffective at all. Summary of the Invention
[0007] Purpose of the invention This application aims to address the following issues: lack of isolation boundaries for cross-agent delegation results before entering the target task; separation of ancestor chain verification and authoritative state writing; possible insertion of reversal updates after verification; inability to independently control different destination domains; concurrent results potentially covering the target task or result receiving slots; partial authoritative writing due to submission failure; and repeated execution of authoritative state changes due to duplicate notifications and uncertain result recovery.
[0008] Technical solution This application provides a cross-agent delegation result isolation admission and state atomic update system, including a result isolation management module, an admission context construction module, a chain snapshot and admission determination module, and an admission submission module.
[0009] The result isolation management module receives the delegated results generated by the result-generating entity based on the cross-agent delegation chain, generates a delegated result record for the delegated results, and maintains it in an isolated state where it is not consumable by the target task object until the valid admission submission is completed. Isolation can be achieved through an independent storage area, an independent namespace, a parent task invisible reference, or a non-authoritative state identifier; the target task state machine, process closure processor, settlement processor, and downstream task trigger processor must not use the isolated results as authoritative results.
[0010] The admission context construction module determines the target task object, the versionable result receiving slots associated with the target task object, multiple result acceptance destination domains, and their respective destination domain-level admission conditions. The target task object can be a direct parent task, an ancestor task that specifies the receiving result, or a coordinating task; the result receiving slot can be an independent slot record, a named field in the authority state of the target task, a conditional transition entry in the task state machine, or an object with equivalent receiving semantics.
[0011] The chain snapshot and admission determination module reads the ancestor delegation chain state from the delegate node corresponding to the result-generating entity to the root delegate, forming an ancestor delegation chain state snapshot; based on the delegate transformation proof chain, delegate closure record, actual execution instance, and the snapshot, it determines the transaction-level admission conditions; when the transaction-level conditions are met, it determines the admission status for each destination domain, recording the admission status for at least two destination domains among the working context, user output, completion determination, long-term memory, and downstream tools or external interfaces, and generating a destination domain admission vector; when at least one destination domain is in an allowed state, it generates an admission proposal including binding result, source envelope, target task, slot, admission vector, snapshot, revocation epoch, and object version.
[0012] The admission submission module generates stable admission operation keys according to predetermined normalization rules, using the identifier of the delegated result record or result summary, the source delegate envelope, the target task, the result receiving slot, and the identifier of the destination domain admission vector. The number of retries, notification identifier, processing instance identifier, and arrival time are not involved in the generation, ensuring that the same logical admission uses the same key in repeated notifications, concurrent processing, and fault recovery.
[0013] Undo update operations and indivisible conditional commit operations target the same consistency control object or enter the same comparable commit order. The admission commit module rereads the delegation result record, ancestor delegation chain state, delegation revocation epoch, destination domain admission vector, target task authority state, result receiving slot state, and same-key admission commit record at a single determinable commit point. It then re-verifies the delegation transformation proof chain, delegation closure record, and actual execution instance, and compares the current information with the admission proposal binding information.
[0014] When all comparisons are true, at least one destination domain is in an allowed state, and there are no valid admission commit records with the same key, the admission commit module uses the same commit identifier to ensure that the isolation status and version update of the delegation result record, the authority binding of the delegation result record and the result receiving slot, the slot status and version update, the authority status and version update of the target task, and the writing of the valid admission commit record jointly achieve the authority status effect; if any condition is not met or the commit fails, the above changes will not achieve the authority status effect. The admission authority binding of the valid admission commit record supports the precise delegation envelope version, snapshot summary, reversal epoch observed at admission time, commit linearization identifier, and object version.
[0015] If a valid record with the same key already exists and the binding is consistent, the system returns the existing record without updating it again; if the binding is inconsistent, an integrity conflict occurs. If the submission result cannot be confirmed, an authoritative consistency read is performed with the same key: if the record and binding are consistent, the system is considered successful; if the record does not exist, the system obtains the current state and re-determines and submits with the same key; if the result cannot be confirmed, the system remains uncertain and prevents the generation of new keys to bypass the constraint.
[0016] The indivisible conditional commit operation can be implemented by a single storage transaction, atomic conditional batch write, consensus log, or replicated state machine. When the internal authority object is distributed across multiple controlled storage systems at runtime, non-authoritative preparation records and commit proofs can be used, ensuring that the preparation state acquires authority only when the commit proof is valid and consistent with the local preparation record. External memories, payment systems, third-party tools, and other uncontrollable systems are not included in the internal atomic boundary but are traced by transaction outgoing records, stable event identifiers, consumption credentials, and receipts.
[0017] This application also provides corresponding methods and a non-transitory computer-readable storage medium storing computer programs or instructions for implementing the methods.
[0018] Beneficial effects This application maintains the non-authoritative isolation state of the delegation results before valid access is submitted, preventing ordinary completion messages or late results from being directly consumed by the target task; and prevents the allowed state of one destination domain from being extended to other destination domains through transaction-level conditions and sub-destination domain vectors.
[0019] This application places the ancestor chain state, revocation epoch, admission vector, target task, result receiving slot, and isolation state at the commit point for re-comparison, and makes isolation state transition, slot binding, target task update, and valid record writing take effect together or none of them, thereby preventing old snapshot commits, last write overwrites, and authoritative object parts from taking effect.
[0020] This application ensures that at most one valid admission record with consistent binding is formed through stable admission operation keys, unique constraints, and binding consistency checks. When the result cannot be confirmed, the result remains in an uncertain state to avoid repeatedly changing the target task with a new key.
[0021] This application combines the delegation chain revocation constraint with the common commit boundary of multiple authoritative objects to avoid mistakenly treating ordinary version verification, ordinary idempotent records, or single database writes as a complete admission loop; database transactions, comparison and exchange, consensus logs, replicated state machines, transaction outsourcing, or commit proofs are optional technical means to implement the control relationship. Attached Figure Description
[0022] Figure 1 This is a diagram illustrating the overall structure of the cross-agent delegation result isolation admission and state atomic update system provided in this application embodiment. Figure 2 This is a schematic diagram illustrating the core data objects and binding relationships provided in the embodiments of this application; Figure 3 This is a schematic diagram illustrating the isolation results and sub-destination domain access determination provided in the embodiments of this application; Figure 4A schematic diagram illustrating the submission time weight comparison and the combined effect of four authoritative status changes provided in this application embodiment; Figure 5 A timing diagram illustrating the race condition between ancestor delegation revocation and admission submission provided for embodiments of this application; Figure 6 A schematic diagram illustrating concurrent admission and recovery from uncertainty of results provided in this application embodiment; Figure 7 The flowchart illustrates the cross-agent delegation result isolation admission and state atomic update method provided in this application embodiment.
[0023] Explanation of reference numerals in the attached figures 100. Cross-agent delegation result isolation admission and state atomic update system; 110. Result isolation management module; 120. Admission context construction module; 130. Chain snapshot and admission determination module; 140. Admission submission module; 150. Runtime state storage component; 160. Runtime interface component; 200. Delegation Result Record; 210. Delegation Closure Record; 220. Ancestor Delegation Chain State Snapshot; 230. Destination Domain Admission Vector; 240. Admission Proposal; 250. Result Acceptance Slot; 260. Target Task Authority Status; 270. Valid Admission Submission Record; 280. Admission Authority Binding; 290. Stable Admission Operation Key; 300. Transaction Outbound Record. Detailed Implementation
[0024] The present application will be further described below with reference to the accompanying drawings and embodiments. The embodiments are used to illustrate the technical solutions and not to limit the scope of protection; the technical features of the various embodiments can be combined unless otherwise specified.
[0025] Example 1: System Structure, Terminology, and Core Data Objects See Figure 1 The system 100 includes a result isolation management module 110, an admission context construction module 120, a chain snapshot and admission determination module 130, and an admission submission module 140, and may include a runtime state storage component 150 and a runtime interface component 160. Each module may be located within the same intelligent agent during runtime, or may be distributed across multiple computing nodes connected via a controlled interface.
[0026] In this application, an agent is a computational execution unit that receives tasks, generates actions, and produces results based on a model, rule, program, or a combination thereof; parent agents and child agents represent relative delegation roles. A cross-agent delegation chain is formed by a root delegate and one or more parent-child delegation edges. The delegation envelope may include a transaction root identifier, parent delegate identifier, current delegate identifier, delegating entity and delegated entity, running instance, structured target commitment, set of non-refundable obligations, set of allowed result acceptance destination domains, delegation closure condition, delegate version, delegate revocation epoch reference, rule version, validity period, and envelope summary.
[0027] A delegate transformation proof may include a parent delegate envelope summary, a child delegate envelope summary, a delegate transaction root identifier, a transformation rule version, a validator version, a target refinement result, an obligation transformation result, a destination domain range result, a closure condition strength result, and a proof summary. Each parent-child delegate edge generates a delegate transformation proof, and these proofs form a delegate transformation proof chain and a proof chain root in root-to-leaf order.
[0028] See Figure 2 The delegated result record 200 may include result record identifier, result summary, result data reference, source delegate envelope identifier, result generating entity, target task object, result receiving slot, task target signature, result type, result structure pattern, actual execution instance proof, evidence status, inherited obligation set, external side effect list, isolation status, isolation status version, and integrity verification information.
[0029] The delegation closure record 210 may include a leaf delegation envelope summary, actual execution instance, descendant final state set or descendant closure root, unclosed action state, external side effect state, evidence binding record reference, resource lease receipt reference or resource settlement record reference, closure rule version, and closure judgment result. If only a subtask completion message is received but a record satisfying the closure conditions is missing, a valid admission submission will not proceed.
[0030] The target task object can be a direct parent task, an ancestor task that specifies the result to be received, or a coordinating task. The target task authority state 260 is the runtime authority state used to determine whether the target task continues to execute, completes, closes, or triggers downstream processes. The result receiving slot 250 is the logical location where the target task accepts a specific result. It can be implemented by an independent slot record, a named field, a state machine conditional transition entry, or an equivalent object, and must have at least a slot identifier, a slot state, and a slot version.
[0031] Ancestor delegation chain state snapshot 220 may include the delegate transaction root identifier, snapshot identifier, snapshot generation time, ancestor delegation order, snapshot chain state version, snapshot chain state commitment, snapshot revocation commitment, parent task or target task admission version, identifier, version, lifecycle state and revocation epoch of each ancestor delegation, proof chain root and snapshot summary.
[0032] The destination domain admission vector 230 can record the status of allow, deny, pending supplementary conditions, or pending manual review for the parent task working context, user-oriented output, parent task completion judgment, long-term memory writing, and downstream tool calls or external interface requests, respectively. It can also include vector identifier and version, allowed result type, structural constraints, target signature relationship, inherited obligations, additional obligations, evidence status, purpose, propagation scope, validity period, policy version, verifier version, and expiration conditions.
[0033] Stable admission operation key 290 is a deterministic identifier for the same logical admission operation. It is generated according to predetermined normalization rules from the identifiers of the delegated result record or result summary, the source delegate envelope, the target task object, the result receiving slot, and the destination domain admission vector. Each object can be represented using a stable identifier, a versioned reference, or a normalized summary. The number of retries, notification identifier, processing instance identifier, and arrival time are not involved in the generation.
[0034] Example 2: Result Isolation, Delegation Closure, and Subject-Specific Domain Admission See Figure 3 After the result-generating entity returns the delegated result, the result isolation management module 110 generates a delegated result record 200 and writes the result data or reference to an independent namespace, a non-consumable state object, a parent task-invisible reference, or a storage partition with a non-authoritative state identifier. Before the valid admission submission record 270 is generated, the target task can only read the summary, structural schema, or minimum metadata required for admission verification and must not use the result as a basis for completion, user output, long-term memory content, or input to downstream tools.
[0035] Module 110 verifies the actual execution instance and collects the final state, unclosed action state, external side effect state, evidence binding record, and optional resource receipt of necessary descendants, forming a delegation closure record 210. The closure judgment result is satisfied when all necessary descendants reach the allowed final state, unclosed actions are disclosed and satisfy the strategy, external side effect state is determined, the result summary is consistent with the actual execution instance, and other closure conditions are met; otherwise, the result remains isolated.
[0036] The chain snapshot and admission determination module 130 first verifies the consistency of identifiers, versions, and digests among the delegated transaction root, delegate transformation proof chain, delegate result record, delegate closure record, actual execution instance, and ancestor delegate chain state snapshots. Transaction-level admission conditions include at least the following: proof chain is valid, closure condition is met, actual execution instance is consistent with delegate envelope, and there is no transaction-level state that blocks all destination domains.
[0037] After the transaction-level conditions are met, module 130 compares the result type, structure, target signature, inherited obligations, evidence status, permitted uses, and propagation scope of each target domain, generating a target domain admission vector 230. The rejection, pending supplementary conditions, or pending manual review of one target domain does not automatically prevent another target domain from obtaining an allowed status; if all target domains are not allowed, no admission submission is initiated to make the target task's results consumable.
[0038] For example, a technical analysis result may be allowed into the parent task's working context and the downstream read-only tool's target domain, but the user output may be marked as "conditions to be supplemented," the completion judgment as "reject," and the long-term memory write as "pending manual review." After the system submits the complete vector, the target task may use the result in the approved target domain, but may not output, mark it as complete, or write it into long-term memory based on it.
[0039] Example 3: Ancestor Chain Snapshot, Admission Proposal, and Precise Support Binding The admission context construction module 120 reads the target task authority status and version, the result receiving slot status and version, and the destination domain admission vector version; the chain snapshot and admission determination module 130 reads the ancestor delegation chain status snapshot 220, and combines the snapshot, delegation transformation proof chain, result, target task, slot, and admission vector into an admission context.
[0040] Admission proposal 240 must bind at least the following: result summary, source delegate envelope identifier, target task object identifier, result receiving slot identifier, destination domain admission vector identifier and version, snapshot summary, delegate revocation epoch observed during admission, target task state version, slot version, isolation state version, admission policy version, and validator version. This binding is used to limit the specific object state to which the judgment conclusion applies; old proposals are not automatically applied when the version changes.
[0041] The admission authority binding 280 is used to prove the actual delegate basis upon which the valid admission submission record 270 was relied upon at the time of submission. The binding may include a result identifier and summary, source delegate envelope, target task and destination domain, state version before and after submission, precise delegate envelope identifier and version or summary supporting the submission, delegate chain snapshot summary, revocation epoch observed at the time of admission, admission submission linearization identifier, and integrity verification information.
[0042] If an access permission is supported by multiple delegation envelope versions, the access permission authority is bound to a fixed set of exact support rules (280) and rules for full satisfaction, any satisfaction, or threshold satisfaction. Other authorization paths discovered after submission but not adopted by the aforementioned binding are not used to retroactively replace the historical delegation basis of that submission.
[0043] Example 4: Combining weight comparison and authority status at the time of submission See Figure 4The admission submission module 140 constructs an indivisible conditional commit request using the snapshot, revocation epoch, destination domain admission vector version, target task state version, result receiving slot version, and isolation state version bound to the admission proposal 240 as expected values. This operation provides a detectable ordering boundary for revocation updates and other admission updates between the comparison pass and the commit completion.
[0044] At a single determinable commit point, module 140 rereads the delegation result record, ancestor delegation chain state, delegation revocation epoch, destination domain admission vector, admission policy version and validator version, target task authority state, result receiving slot state, and admission commit record corresponding to the stable admission operation key. It re-verifies the validity of the current delegation transformation proof chain, the current delegation closure record, and the current actual execution instance, and performs at least the following comparisons: the result digest, isolation state, and version are consistent with the proposal; the current snapshot digest and revocation epoch are consistent with the proposal; the destination domain admission vector, admission policy, and validator version are consistent with the proposal, and at least one destination domain is in an allowed state; the target task state version and slot version are consistent with the proposal; the slot is still allowed to receive the result; there are no valid records with the same key.
[0045] When all conditions are met, module 140 performs four authoritative state changes using the same commit identifier: updating the delegated result record 200 to the admitted state and updating the isolation state version; establishing an authoritative binding between the delegated result record 200 and the result receiving slot 250 and updating the slot status and version; updating the target task's authoritative state 260 and version; and writing a valid admitted commit record 270 and its admitted authoritative binding 280. These four changes collectively acquire authoritative state effect at the single determinable commit point.
[0046] If any comparison fails or the submission fails, no valid record visible to the target task should be generated, no new result references or admission vectors should be written, and the target task and slot versions should not be updated. Delegated results should remain isolated. Temporary preparation records, failure records, or conflict records do not have the authority status effect of the target task.
[0047] In relational database implementations, at serializable transactions or isolation levels with equivalent effects, the transaction root state, delegated result records, target task authority state, and result receiving slots can be locked or conditionally updated, and valid admission commit records can be inserted and committed together. In aggregate state object implementations, related versions can be projected onto the same object and compared and swapped or written with version conditions. In versioned key-value stores, atomic conditional batch writes can be performed using revision numbers and state summaries.
[0048] In consensus log or replicated state machine implementations, the admission commit command carries a stable admission operation key, proposal binding information, and expected version. The state machine then re-compares and applies the entire proposal in a deterministic order. When the internal authority object spans multiple controlled storage systems at runtime, each system first writes a preparation record that does not possess authority. The coordination component generates a commit proof containing a preparation summary, a unique commit order, and a commit identifier. Only when the proof is valid and consistent with the local preparation record does each preparation state collectively acquire authority.
[0049] Example 5: Undoing Race Conditions and Concurrency Results See Figure 5 When an ancestor delegation is revoked after the admission decision is completed but before the admission commit is completed, the revocation update operation updates the corresponding delegation revocation epoch and at least one of the following in the delegation transaction root record: the current chain state version, the current chain state commitment, or the current revocation commitment. The revocation update operation and the indivisible conditional commit operation use the same consistency control object, or their commit identifiers can be mapped to the same comparable ordering domain.
[0050] At time T1, the system generates an admission proposal based on chain state version V10, revocation commitment R3, target task version P7, and slot version S2. At time T2, the ancestor revocation takes the first submission order, the revocation epoch is updated from E3 to E4, and the chain state version is updated from V10 to V11. At time T3, the admission submission carrying the old expected value fails in the internal comparison of the operation, all four authoritative state changes are ineffective, and the delegation result remains isolated.
[0051] If an admission submission achieves a comparable submission order, the valid admission submission record solidifies the linearization identifier of the admission submission and the revocation epoch observed at the time of admission, thus proving the submission point at which the result gained authoritative validity. In this embodiment, isolation admission control is completed at the submission point; the failure, rollback, compensation, or reconciliation of existing impacts when revocation occurs after admission can be handled by the subsequent revocation impact control mechanism associated with the valid admission submission record.
[0052] When multiple delegated results concurrently request the same target task or the same result receiving slot, the first processing instance and the second processing instance can generate proposals based on the same target task version P20 or slot version S8. If the first processing instance commits and updates the version to P21 or S9, and the second processing instance commits with the old version, the comparison fails, the first result is not overwritten, and no partial write occurs. The second processing instance must obtain the current snapshot, target task, slot, and admission vector before re-evaluating.
[0053] Example 6: Stable Admission Operation Key and Uncertain Result Recovery See Figure 6The system generates stable admission operation keys 290 according to the same normalization rules and establishes uniqueness constraints on valid admission submission records 270. When multiple processing instances submit concurrently for the same logical admission, only one instance can generate a valid record corresponding to the key; other instances read existing records and verify the results, source envelope, target task, slot, destination domain vector, submission identifier, and object version.
[0054] When all bindings are consistent, other instances return existing valid records without changing the result, slot, or target task again; if any binding is inconsistent, an integrity conflict occurs, and the request is not considered an idempotent duplicate. Having the same stable key is only a condition for locating candidate records; binding consistency checks determine whether an existing successful result can be returned.
[0055] After a commit timeout, communication interruption, coordinator restart, or response loss, the caller performs a read that satisfies the authority consistency requirement using the same stable admission operation key. If a valid record exists, integrity checks pass, and the current admission request matches the record's finalized result at the time of commit—including the source envelope, target task, slot, destination vector, object version before and after the commit, and commit identifier—the recovery result is considered successful. Legitimate version evolutions of the target task or slot after the commit do not independently cause the original admission commit to be deemed a failure. If the record is confirmed not to exist, the current chain, reversal, target task, slot, and admission vector states are read, a new proposal is generated, and committed with the same key. If the existence, integrity, or binding of the record cannot be confirmed, the result remains uncertain or there is an integrity conflict; repeated changes with a new key are prohibited.
[0056] The admission commit module can also write transaction outgoing records (300) within internal indivisible boundaries. Stable event identifiers are determined by valid admission commit records or stable admission operation keys, which downstream state machines use to perform uniqueness constraints, condition writes, or deduplication. Transaction outgoing records only prove that downstream events have been reliably scheduled; they do not represent the actual execution result of the external system as successful.
[0057] Example 7: External Boundary, Equivalent Implementation, and State Machine The internal consistency boundary of this application covers ancestor chain and revocation state comparison, delegation result isolation state transition, result receiving slot authority binding, target task authority state update, and writing of valid admission commit records and admission authority bindings. External memory, payment systems, third-party tools, or other uncontrollable systems are not required to participate in internal global transactions, but can execute and trace based on transaction outgoing records, consumption vouchers, and receipts after valid admission.
[0058] This application can read enforcement governance receipts, capability envelopes, evidence binding records, long-term memory access status, tool dissemination licenses, resource leases, or process recovery receipts, but does not recalculate general enforcement rights, tool accessibility, evidence sufficiency, memory contamination status, resource budgets, or recovery conditions. Allowing long-term memory destination domains only indicates that the delegated result is eligible to enter the memory governance process; it does not replace the specific write and reuse controls of the memory governance system.
[0059] The admission state machine can include states such as result isolation, admission context generation, transaction-level admission passed or failed, destination domain determination completed, admission proposal generated, commit pending execution, commit successful, commit conflict, commit aborted, pending revalidation, and result uncertainty and integrity conflict. Each state transition can record the triggering event, previous state, next state, object version, stable admission operation key, commit identifier, and time.
[0060] The aforementioned modules can be implemented by software, hardware, firmware, or a combination thereof, and can be merged, split, or distributed across multiple computing nodes. Chain state commitments, proof of chain root, snapshot digests, and integrity verification information can employ hashes, message authentication codes, digital signatures, version vectors, immutable log locations, or other detectable structures; hashing or signing is not the only necessary means to achieve the technical effects of this application.
[0061] As a result, the slot format, destination domain type, state enumeration, stable admission operation key generation rules, submission mechanism, and linearized identifier format can be adjusted according to the runtime environment. The technical concepts of this application can be applied to implement pre-admission isolation, ancestor chain and revocation constraints, re-comparison at submission, simultaneous or non-effect of four authoritative state changes, unique records with the same key, and uncertain result recovery using equivalent technical means.
[0062] Example 8: Control Method and Verification See Figure 7 The control method includes: S101, receiving cross-agent delegation results, generating delegation result record 200 and keeping it isolated; S102, determining the target task object, its associated result receiving slot 250, multiple result receiving destination domains and their respective destination domain-level admission conditions, and reading the corresponding state and version; S103, reading the ancestor delegation chain state snapshot 220 and verifying the delegation transformation proof chain, delegation closure record 210 and actual execution instance.
[0063] S104, determine the transaction-level admission conditions and compare them one by one to the destination domains, generate the destination domain admission vector 230, and generate the admission proposal 240 when at least one destination domain allows it; S105, generate a stable admission operation key 290, so that the reversal update and admission commit enter the same consistency control object or comparable commit order; S106, within the indivisible conditional commit operation, reread the result, chain, reversal, vector, target task, slot and same key record, re-verify the proof chain, closure record and actual execution instance, and re-compare.
[0064] S107: When all conditions are met, at least one destination domain is allowed, and there are no valid records with the same key, the isolation status and version of the delegated result record, the binding status and version of the result receiving slot, and the authority status and version of the target task are updated together using the same commit identifier, and written to the valid admission commit record; if any condition is not met, it will not take effect; if there is already a consistent binding record, the existing record is returned; if the binding is inconsistent or cannot be confirmed, an integrity conflict or result uncertainty is entered. The step number does not limit the execution subject; when maintaining dependencies and consistency, dependency checks can be executed in parallel.
[0065] Ancestor revocation can be injected after admission determination is completed and before submission to verify that the number of successful admissions for the old proposal is zero when the revocation update is completed first. Faults can be injected during comparison before and after, result state transition, slot binding, target task update, record writing, and confirmation return stages to verify that the four authoritative states are always in effect together or ineffective together.
[0066] It allows multiple processing instances to submit concurrently with the same delegate result and stable admission operation key, verifying that only one valid record with consistent binding is generated, the slot is bound only once, and the target task is updated only once. Timeouts, interruptions, or restarts can be injected after submission and before the response, verifying that the execution is not repeated. If no record is confirmed, the current state is obtained and the same key is retried. If confirmation is not possible, the result remains uncertain.
[0067] It can construct a destination domain that allows consumption while another destination domain rejects or awaits review, verifying that only the approved destination domain can consume; it can also inject target task version conflicts, slot version conflicts, admission vector version changes, validator version changes, and binding information conflicts, verifying that old proposals are not submitted, concurrent updates are not overwritten, and binding conflicts are not mistakenly identified as idempotent success.
Claims
1. A cross-agent delegation result isolation admission and state atomic update system, characterized in that, The system is deployed on the agent runtime side or the middleware side connected to the agent runtime, and includes a result isolation management module, an admission context construction module, a chain snapshot and admission determination module, and an admission submission module. The result isolation management module is used to receive the delegated result generated by the result generating entity based on the cross-agent delegate chain, generate a delegated result record for the delegated result, and keep the delegated result record in an isolated state that is not consumable by the target task object before the effective admission submission is completed. The delegated result record includes at least a delegated result record identifier, a result summary, a source delegate envelope identifier, an isolation state, and an isolation state version. The admission context construction module is used to determine the target task object corresponding to the delegation result, the result receiving slot associated with the target task object, multiple result acceptance destination domains and their respective destination domain-level admission conditions, and to read the target task authority status and target task status version, result receiving slot status and result receiving slot version, admission policy version and validator version. The chain snapshot and admission determination module is used to read the delegate envelope, delegate transformation proof, lifecycle state, object version, and delegate revocation epoch in the ancestral delegate chain from the delegate node corresponding to the result generating entity to the root delegate, and generate an ancestral delegate chain state snapshot; based on the delegate transformation proof chain, the delegate closure record associated with the delegate result record, the actual execution instance, and the ancestral delegate chain state snapshot, it determines the transaction-level admission conditions, and when the transaction-level admission conditions are met, it compares the delegate result record with each of the destination domain-level admission conditions, generates a destination domain admission vector for each of the result acceptance destination domains, and generates an admission proposal when at least one result acceptance destination domain in the destination domain admission vector is in the allowed state. The admission proposal is at least bound to the result summary, source delegation envelope identifier, target task object identifier, result receiving slot identifier, destination domain admission vector identifier and version, ancestor delegation chain state snapshot summary, delegation revocation epoch observed during admission, target task state version, result receiving slot version, isolation state version, admission policy version, and validator version. The admission commit module is used to generate stable admission operation keys for the same logical admission operation, and to make the revocation update operation that updates the revocation epoch of any ancestor delegation or the revocation commitment in the delegation transaction root record use the same consistency control object or enter the same comparable commit order as the indivisible conditional commit operation for the admission proposal. The admission submission module is also used to reread the current delegation result record, current ancestor delegation chain state, current delegation revocation epoch, current destination domain admission vector, current admission policy version and validator version, current target task authority state, current result receiving slot state, and admission submission record corresponding to the stable admission operation key within the indivisible conditional submission operation with a single determinable submission point; re-verify the validity of the current delegation transformation proof chain, current delegation closure record, and current actual execution instance; and re-compare whether the current result digest, current isolation state and version, current ancestor delegation chain state snapshot digest, current delegation revocation epoch, current destination domain admission vector version, current admission policy version and validator version, current target task state version, and current result receiving slot state and version are consistent with the information bound to the admission proposal, and whether the result receiving slot still allows the acceptance of the delegation result; When the above re-verification and re-comparison are both successful, at least one result in the destination domain admission vector accepts the destination domain as allowed, and there is no valid admission submission record corresponding to the stable admission operation key, the admission submission module performs the following actions at the single determinable submission point: updating the delegation result record from the isolated state to the admitted state and updating the isolation state version; establishing an authority binding between the delegation result record and the result receiving slot and updating the result receiving slot state and version; updating the target task authority state and version used to determine whether the target task object continues to execute, completes, closes, or triggers downstream processes; and writing a valid admission submission record corresponding to the stable admission operation key. The admission authority binding of the valid admission submission record is at least associated with the identifier and version or summary of each delegation envelope supporting this admission submission, the summary of the ancestor delegation chain state snapshot, the delegation revocation epoch observed during admission, and the admission submission linearization identifier. If any of the above re-comparisons fails or the submission fails, the four authority status changes proposed in this admission proposal will not take effect; if a valid admission submission record already exists that corresponds to the stable admission operation key and has the same binding information, the valid admission submission record will be returned without executing the four authority status changes again; if an existing admission submission record is inconsistent with the binding information of the current admission request, an integrity conflict status will be output and the current admission submission will be blocked.
2. The system according to claim 1, characterized in that, The entrusted result record also includes at least one of the following: result generating entity identifier, target task object identifier, result receiving slot identifier, task target signature, result type, result structure pattern, evidence status, inherited obligation set, actual execution instance proof, generation time, external side effect list, and integrity verification information; The result isolation management module is used to store the delegated result records in the isolated state as independent namespaces, non-consumable state objects, parent task invisible references, or storage partitions with non-authoritative state identifiers, and to prevent the delegated result from being used as an authoritative result by the target task state machine, process closure processor, settlement processor, or downstream task trigger processor before the valid admission submission record is generated.
3. The system according to claim 1, characterized in that, The multiple result acceptance destination domains include at least two of the following: parent task working context, user-oriented output, parent task completion determination, long-term memory writing, and downstream tool call or external interface request. The destination domain admission vector records at least one admission status of allowed, rejected, pending supplementary conditions, or pending manual review for each of the result acceptance destination domains. The destination domain admission vector also includes at least one of the following: vector identifier and version, allowed result types, result structure constraints, task target signature relationship, inheritance obligation constraints, target task-side additional obligations, evidence status requirements, allowed uses, propagation scope, validity period, admission policy version, validator version, and expiration condition; the admission submission module is also used to re-compare whether the current admission policy version and the current validator version are consistent with the corresponding version bound to the admission proposal within the indivisible condition submission operation. Before using the delegated result, consumers in each result acceptance destination domain verify that the corresponding result acceptance destination domain is in an allowed state and that the valid admission submission record is still in a valid state.
4. The system according to claim 1, characterized in that, The ancestor delegation chain state snapshot also includes at least one of the following: delegation transaction root identifier, snapshot chain state version, snapshot chain state commitment, snapshot revocation commitment, ancestor delegation order, delegation identifier of each ancestor delegation, delegation version, lifecycle state and delegation revocation epoch, proof chain root, snapshot generation time and snapshot digest. Each of the aforementioned delegate transformation proofs is bound to at least the parent delegate envelope digest, the child delegate envelope digest, the delegate transaction root identifier, the transformation rule version, the validator version, and the transformation verification result, and is used to characterize that the sub-objective satisfies the target refinement relationship, the non-exempt obligation is retained or strengthened, the allowed result acceptance target domain is not expanded, and the delegate closure condition is not reduced. The admission proposal and the valid admission submission record are respectively bound to the summary of the proof chain root or the ancestor delegation chain state snapshot to identify the ancestor delegation chain state changes that occur after the admission determination is completed and before the indivisible condition submission operation is completed.
5. The system according to claim 1, characterized in that, The stable access operation key is generated according to a predetermined normalization rule from the delegated result record identifier or result summary, the source delegate envelope identifier, the target task object identifier, the result receiving slot identifier, and the destination domain access vector identifier. The number of retries, access notification identifier, access processing instance identifier, and notification arrival time are not involved in the generation of the stable access operation key. The valid admission submission record has a unique constraint on the stable admission operation key and is bound to the result summary, the source delegation envelope identifier, the target task object identifier, the result receiving slot identifier, the destination domain admission vector identifier, the object version corresponding to the four authority status changes, and the submission identifier. If any binding information of an existing valid admission submission record is inconsistent with the current admission request, the current admission request will not be identified as an idempotent duplicate request.
6. The system according to claim 1, characterized in that, The indivisible conditional commit operation with a single determinable commit point is implemented through any of the following mechanisms: Based on a single storage transaction, the delegated result record, the result receiving slot, the target task object, and the valid admission submission record are updated with expected version conditions, and the ancestor delegate chain state or the delegate revocation epoch is used as the condition read object. Based on atomic conditional batching, each comparison item that is re-compared is taken as a condition item, and the four authoritative state changes are taken as update items for the same conditional batching. Based on consensus logs or replicated state machines, the admission commit commands bound to the expected conditions, the delegation revocation epoch observed during admission, and the stable admission operation key are re-compared in deterministic order and applied as a whole; or... When the internal authority object is distributed across multiple controlled storage systems at runtime, based on the preparation record which is bound to the stable admission operation key, the expected version, and the new state summary, as well as the commit proof which includes the preparation record summary, the unique commit order, and the commit identifier, the preparation state in each controlled storage system shall jointly acquire authority state effect only when the commit proof is valid and consistent with the local preparation record.
7. The system according to claim 1, characterized in that, If, after the admission proposal is generated and before the indivisible conditional submission operation obtains a submission order, any delegation envelope in the ancestor delegation chain is revoked and at least one of the following changes—the corresponding delegation revocation epoch, the current chain state version of the delegation transaction root record, the current chain state commitment, or the current revocation commitment—the admission submission module will abort the current admission submission based on the inconsistency between the current value and the corresponding value bound to the admission proposal. When the undo update operation first obtains a comparable commit order, the delegated result record remains in an isolated state; When the indivisible conditional commit operation first obtains a comparable commit order, the valid admission commit record solidifies the admission commit linearization identifier and the delegation revocation epoch observed at the time of admission; when processing the uncommitted delegation result again, the ancestor delegation chain state snapshot and admission proposal before the change are not used.
8. The system according to claim 1, characterized in that, When the first admission processing instance and the second admission processing instance generate admission proposals based on the same target task status version or the same result receiving slot version, and the second admission processing instance completes a valid admission submission first and updates the target task status version or the result receiving slot version, the admission submission module terminates the admission submission proposed by the first admission processing instance because the current version is inconsistent with the version bound to the admission proposal corresponding to the first admission processing instance. When the first admission processing instance processes the corresponding delegation result again, it rereads the ancestor delegation chain state snapshot and re-executes the admission determination based on the updated target task authority state, result receiving slot state and destination domain admission vector.
9. The system according to claim 5, characterized in that, When the admission processing instance cannot determine the admission submission result after submission timeout, communication interruption, coordinator restart, or response loss, the valid admission submission record is queried using the same stable admission operation key in a reading method that meets the authority consistency requirement. If the valid admission submission record exists, its integrity verification passes, and the current admission request is consistent with the result summary, source delegation envelope, target task object, result receiving slot, destination domain admission vector, object version before and after submission, and submission identifier fixed at the time of submission of the valid admission submission record, the recovery result is determined as successful admission; if the valid admission submission record is confirmed to not exist, the current ancestor delegation chain state snapshot, the current target task authority state, and the current result receiving slot state are obtained again, and the admission process is re-initiated using the same stable admission operation key; if the valid admission submission record cannot be confirmed, its integrity cannot be confirmed, or its binding information is inconsistent, the recovery result is determined to be a result uncertain state or an integrity conflict state, and the generation of a new stable admission operation key to repeat the authority state change is prevented.
10. The system according to claim 1, characterized in that, The access authority binding also associates a precise set of support rules consisting of the identifiers and versions or summaries of each delegate envelope that supports this access submission, as well as one of the following support rules: full satisfaction, any satisfaction, or threshold satisfaction. When determining the basis of authorization upon which an admission submission depends, the system uses only the precise set of support and support rules fixed in the valid admission submission record, and does not replace the historical basis of authorization of the admission submission with other authorization paths that are discovered after the admission submission is completed and are not bound by the admission authority.
11. The system according to claim 1, characterized in that, The admission submission module is also used to write a transaction outgoing record bound to the valid admission submission record within the indivisible condition submission operation. The transaction outgoing record has a stable event identifier determined by the valid admission submission record or the stable admission operation key. The system also includes or is connected to a downstream task state machine, which is used to perform uniqueness constraints, condition writing, or deduplication based on the stable event identifier, so that the same logical admission operation will generate at most one downstream state transition, process closure, or settlement process with authoritative state effect; the transaction outgoing record does not indicate that the external execution result at runtime has been successful.
12. A method for cross-agent delegation result isolation admission and state atomic update, characterized in that, Executed by the agent runtime side or the middleware side connected to the agent runtime, including: Receive the delegated result generated by the result generating entity based on the cross-agent delegate chain, generate a delegated result record for the delegated result including at least a delegated result record identifier, a result summary, a source delegate envelope identifier, an isolation state, and an isolation state version, and keep the delegated result record in an isolation state that is not consumable by the target task object before the valid admission submission is completed; Determine the target task object corresponding to the delegated result, the result receiving slot associated with the target task object, multiple result acceptance destination domains and their respective destination domain-level admission conditions, and read the target task authority status and target task status version, result receiving slot status and result receiving slot version, admission policy version and validator version; Read the delegate envelope, delegate transformation proof, lifecycle state, object version, and delegate revocation epoch from the ancestral delegate chain from the delegate node corresponding to the result-generating entity to the root delegate, and generate an ancestral delegate chain state snapshot; determine transaction-level admission conditions based on the delegate transformation proof chain, delegate closure record, actual execution instance, and the ancestral delegate chain state snapshot, and when the transaction-level admission conditions are met, compare the delegate result record with each of the destination domain-level admission conditions respectively, generate a destination domain admission vector that records the admission status for each of the result-accepting destination domains, and generate an admission proposal that binds the result summary, source delegate envelope, target task object, result receiving slot, destination domain admission vector, ancestral delegate chain state snapshot, delegate revocation epoch, and corresponding object version when at least one result-accepting destination domain in the destination domain admission vector is in an allowed state. Generate stable admission operation keys for the same logical admission operation, and make the reversal update operation that updates the reversal commitment in the reversal epoch or the reversal transaction root record of any ancestor delegation use the same consistency control object or enter the same comparable commit order as the indivisible conditional commit operation for the admission proposal. Within the indivisible conditional commit operation with a single determinable commit point, the current delegation result record, current ancestor delegation chain state, current delegation revocation epoch, current destination domain admission vector, current admission policy version and validator version, current target task authority state, current result receiving slot state, and admission commit record corresponding to the stable admission operation key are reread. The validity of the current delegation transformation proof chain, current delegation closure record, and current actual execution instance is re-verified. The current result summary, current isolation state and version, current ancestor delegation chain state snapshot summary, current delegation revocation epoch, current destination domain admission vector version, current admission policy version and validator version, current target task state version, current result receiving slot state and version are re-compared with the corresponding information bound to the admission proposal. When the above re-verification and re-comparison are both successful, at least one result in the target domain admission vector accepts the target domain as allowed, and there is no valid admission submission record corresponding to the stable admission operation key, the following actions are performed together with the same submission identifier: update the delegation result record from the isolated state to the admitted state and update the isolation state version; establish an authority binding between the delegation result record and the result receiving slot and update the result receiving slot status and version; update the target task authority status and version; and write the valid admission submission record corresponding to the stable admission operation key, and make the above four authority status changes take effect at the single determinable submission point. If any re-comparison fails or the submission fails, the above four authority status changes proposed in this admission proposal will not take effect; if a valid admission submission record with consistent binding information already exists, the valid admission submission record will be returned without executing the above four authority status changes again; if an existing admission submission record is inconsistent with the binding information of the current admission request, an integrity conflict status will be output and the current admission submission will be blocked.
13. The method according to claim 12, characterized in that, If, after the admission proposal is generated and before the indivisible condition submission operation obtains the submission order, a change in the delegation revocation epoch, a change in the target task status version, a change in the result receiving slot version, or a duplicate notification of the same delegation result record occurs, the admission attempt that does not meet the re-comparison condition is terminated, and an admission failure record, conflict record, or duplicate attempt record that does not have the effect of the target task authority status is generated. When processing the delegation result again, the stable admission operation key generated according to the same predetermined normalization rules is used to obtain a new snapshot of the current ancestor delegation chain state and re-execute the admission determination; when a valid admission submission record with consistent binding information already exists, the admission success result corresponding to the valid admission submission record is returned without repeating the authority state change; when the valid admission submission record or its binding cannot be confirmed, the result remains in an uncertain state and bypassing with a new key is prohibited.
14. A non-transitory computer-readable storage medium having a computer program or instructions stored thereon, characterized in that, When the computer program or instructions are executed by the processor, they implement the cross-agent delegation result isolation admission and state atomic update method as described in claim 12 or 13.
