An agent publishes revision content management system and method

By employing a three-tiered linkage mechanism—immutable release revision registration, atomic switching of version channel pointers, and persistent binding of task-level revision identifiers—the problem of unrecoverable tasks and data loss caused by mutable agent version identifiers is solved, thereby achieving determinism in task execution and simplification of operations.

CN123157259APending Publication Date: 2026-11-24HANGZHOU WIZARD GAME TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611628382.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-21
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, the variable version identifier of intelligent agents makes it impossible to trace back to the actual execution version of tasks in transit. Version rollback is coupled with business data, which poses a risk of data loss. The operation is complex and unauditable.

Method used

Through a three-tiered linkage mechanism of immutable release revision registration, atomic switching of version channel pointers, and persistent binding of task-level revision identifiers, the deterministic execution of tasks in transit is ensured, and the decoupling and rollback of code versions and business data are achieved.

Benefits of technology

It achieves determinism in task execution after agent version switching, eliminates the risk of data loss, simplifies rollback operations, and ensures the auditability of operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157259A_ABST
    Figure CN123157259A_ABST
Patent Text Reader

Abstract

This application discloses an intelligent agent release revision content management system and method. The method includes: receiving a release registration request; performing a content hash operation on the release material information to generate a revision identifier; persisting the revision identifier and the release content in an immutable manner as a release revision; receiving a version channel change instruction; switching the version channel pointer from pointing to a first revision to pointing to a second revision; receiving a task creation request; persisting the revision identifier of the release revision currently pointed to by the version channel to the task execution instance; during the execution of the task execution instance, reading and writing the persistent data of the intelligent agent at the intelligent agent level, so that the persistent data does not roll back when the version channel pointer is switched. This application ensures the determinism of the execution of tasks in transit and achieves decoupling and rollback of code version pointers and business data through a linkage mechanism of immutable release revision registration, atomic switching of version channel pointers, and task-level revision identifier binding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of software version management technology, and in particular to an intelligent agent release revision content management system and method. Background Technology

[0002] With the large-scale deployment of intelligent agent platforms, the release and rollback of intelligent agent versions have become core aspects of platform operation and maintenance.

[0003] In existing technologies, agent versions are typically identified using semantic version numbers or tags. These version identifiers can be overwritten or modified, making it impossible for in-transit tasks to trace back to the version they actually executed. Furthermore, existing version rollback mechanisms couple code versions with the agent's business data, rolling back business data synchronously when rolling back code versions. This poses a risk of data incompatibility or loss, and rollback operations require re-execution of the deployment process, making the process complex and unauditable.

[0004] Therefore, how to ensure the deterministic execution of tasks in transit after switching agent versions and how to decouple and roll back code versions and business data are technical problems that urgently need to be solved. Summary of the Invention

[0005] To address the shortcomings of existing technologies, such as the inability to trace back to the actual execution version of tasks due to the variability of agent version identifiers, and the risk of data loss during rollback operations due to the coupling of version rollback with business data, this application provides an agent release revision content management system and method. This method, through a three-level linkage mechanism of immutable release revision registration, atomic switching of version channel pointers, and persistent binding of task-level revision identifiers, can ensure the deterministic execution of tasks in transit after version switching and achieve decoupling rollback between code version pointers and business data. Specifically, this application provides the following technical solutions: Firstly, this application provides a method for managing the publication and revision of content by intelligent agents, applied to the central control service of an intelligent agent platform, including: Receive a release registration request, perform a content hash operation on the release material information in the release registration request to generate a revision identifier, and persist the revision identifier and the corresponding release content as a release revision in an immutable manner; Receive a version channel change instruction and use an atomic operation to switch the version channel pointer from pointing to the first revision to pointing to the second revision; Receive a task creation request, parse the release revision currently pointed to by the version channel, persist the revision identifier of the release revision to the task execution instance, and bind the task execution instance to the release revision; during the execution of the task execution instance, read and write the persistent data of the agents in the agent platform according to the agent dimension, so that the persistent data will not be rolled back when the pointer of the version channel is switched.

[0006] Optionally, the method further includes: In response to the process start request, determine the version channel corresponding to each node in the process; Within the same transaction, each version channel is resolved into a release revision, and the resolution result is written to the runtime specification snapshot; If version channel resolution fails at any node, the process start request is rejected.

[0007] Optionally, the method further includes: After the pointer of the version channel is switched from pointing to the first revision to pointing to the second revision using an atomic operation, the revision identifier of the first revision before the change, the revision identifier of the second revision after the change, the operator identifier, and the change time are determined. Write the revision identifier of the first revision, the revision identifier of the second revision, the operator identifier, and the change time into the append-only audit event log; In response to an audit query request, the audit event records are retrieved according to the name and time range of the version channel.

[0008] Optionally, the task creation request carries an idempotent identifier; the method further includes: The task execution instance is queried using the idempotency identifier; if an active task execution instance with the same idempotency identifier exists, the active task execution instance is reused. If no active task instance with the same idempotency identifier exists, a new task instance is created, and an association is established between the idempotency identifier and the new task instance.

[0009] Optionally, the method further includes: After the revision identifier of the release revision is persisted to the task execution instance, a short-term certificate bound to the task execution instance is issued, and the set of capabilities declared in the release revision is written into the authorization scope field of the short-term certificate; During the execution of the task execution instance, the validity period and authorization scope of the short-term certificate are verified, and the access request of the task execution instance is allowed if the verification passes. If the task execution instance terminates, the short-term certificate becomes invalid.

[0010] Optionally, the published material information includes a mirror content summary, source code commit identifier, and capability surface hash; the method further includes: Before performing content hashing on the published material information in the published registration request, verify that the mirror content digest is consistent with the actual mirror content; If the image content summary does not match the actual image content, the registration request is rejected.

[0011] Optionally, the step of switching the pointer of the version channel from pointing to the first revision to pointing to the second revision using an atomic operation includes: A comparison-swapping mechanism is used to compare the current revision identifier carried by the version channel change instruction with the revision identifier actually pointed to by the version channel; If the current revision identifier matches the revision identifier actually pointed to by the version channel, the pointer switch is performed. If the current revision identifier does not match the revision identifier actually pointed to by the version channel, the version channel change instruction is rejected.

[0012] Optionally, the method further includes: after the pointer of the version channel is switched, allowing the in-transit task running instance with the persistent revision identifier to continue using the bound release revision to execute; and storing the persistent data of the agent in the agent platform in an independent logical partition with the agent identifier as the isolation key.

[0013] Secondly, this application provides an intelligent agent content publishing and revision management system, and a central control service deployed on an intelligent agent platform, including: The release revision management module is used to receive release registration requests, perform content hashing on the release material information in the release registration request to generate a revision identifier, and persist the revision identifier and the corresponding release content as a release revision in an immutable manner. The version channel management module is used to receive version channel change instructions and atomically switch the version channel pointer from pointing to the first revision to pointing to the second revision. The task revision binding module is used to receive a task creation request, parse the release revision currently pointed to by the version channel, persist the revision identifier of the release revision to the task running instance, and bind the task running instance to the release revision; The data isolation module is used to ensure that, after the pointer of the version channel is switched, the in-transit task running instance with the persistent revision identifier continues to use the bound release revision for execution, and the persistent data of the agent in the agent platform is not rolled back with the pointer of the version channel.

[0014] Thirdly, this application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, it implements the intelligent agent publishing revision content management method described in any one of the first aspects above.

[0015] The beneficial effects of this application are as follows: 1. By performing content hashing on the published material information to generate an immutable revision identifier and persisting it as a publication revision, each publication forms an unalterable publication record, thereby ensuring that any historical task can be accurately traced back to its actual published revision. 2. By switching the version channel pointer with atomic operations, version upgrades and rollbacks can be completed with only a single pointer update, without having to re-execute the deployment process; 3. By persisting the revision identifier of the release revision currently pointed to by the version channel to the task execution instance when the task is created, subsequent switching of the version channel pointer will not affect the execution of the created task, and the task in transit will continue to run using the bound release revision. 4. By explicitly separating the governance dimension of persistent data of the agent from the version channel pointer dimension, version rollback does not touch the business data surface, eliminating the risk of data loss caused by code and data coupling rollback. Attached Figure Description

[0016] Figure 1 A flowchart illustrating the intelligent agent publishing revision content management method provided in this application embodiment.

[0017] Figure 2 This is a schematic diagram of a two-dimensional model for decoupling code version pointers and data planes, provided in an embodiment of this application.

[0018] Figure 3 A schematic diagram of the structure of the intelligent agent publishing and revision content management system provided in the embodiments of this application. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0020] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0021] In the description of this application, the term "release revision" refers to an immutable release record generated by a release operation in the agent platform, which includes release material information and corresponding release content; the term "revision identifier" refers to an identifier generated by performing a content hash operation on the release material information, and the same release material information will necessarily generate the same revision identifier; the term "version channel" refers to a logical pointer used in the agent platform to manage version delivery, and each channel of each agent maintains a pointer to a specific release revision; the term "task runtime instance" refers to a runtime object generated in the agent platform in response to a task creation request, which is bound to a specific release revision when it is created.

[0022] Example 1: See Figure 1 , Figure 1 A flowchart illustrating the method for managing the release of revised content by an intelligent agent, as provided in this application embodiment. In one implementation, the method is applied to the central control service of an intelligent agent platform, and the method includes the following steps: S100: Receive a release registration request, perform a content hash operation on the release material information in the release registration request to generate a revision identifier, and persist the revision identifier and the corresponding release content in an immutable manner as a release revision.

[0023] In this embodiment, the published material information includes the agent identifier, the image content summary, the source code submission identifier, the capability surface hash, the interface package hash, and the version number.

[0024] Upon receiving the publication registration request, the central control service first verifies the consistency between the mirror content digest in the published material information and the actual mirror content. If the verification passes, the published material information is serialized according to preset normalization rules. A SHA-256 hash operation is performed on the serialized data, and the first 32 bits are truncated. These 32 bits are then concatenated with a rel- prefix to generate the revision identifier. Since the revision identifier is generated based on the content hash of the published material information, identical published material information will inevitably produce the same revision identifier; therefore, the publication registration operation is inherently idempotent.

[0025] In one implementation, the specific process of the content hash operation includes: First, the fields in the published material information are arranged lexicographically by field name to form a standardized key-value sequence. Second, deterministic serialization processing is performed on the standardized key-value sequence to generate a standardized byte stream. This serialization process ensures that the same set of key-value pairs will generate the same byte stream regardless of the input order. Third, SHA-256 hashing is performed on the standardized byte stream to generate a 256-bit hash value. Finally, the first 32 hexadecimal characters of the hash value are extracted and concatenated with a preset prefix to generate the revision identifier.

[0026] In this embodiment, the normalization process eliminates the impact of field order differences on the hash result, ensuring the determinism of the content hash operation. In one implementation, the normalization serialization process also includes null value handling rules and encoding normalization rules.

[0027] The null value handling rules include: when a field in the published material information is empty, the field is serialized as an empty string instead of being skipped, thereby ensuring that published material information containing a null value field generates different revision identifiers than published material information lacking that field.

[0028] The encoding normalization rules stipulate that the serialization process uniformly uses UTF-8 encoding, and string type field values ​​undergo Unicode normalization processing before serialization to eliminate the influence of different Unicode representations of the same character on the hash result. These two rules together ensure the determinism and consistency of the content hash operation under various boundary input conditions.

[0029] In one implementation, the generation process of the revision identifier further includes a conflict detection step. Specifically, after the revision identifier is generated, the revision storage table is queried to see if a record with the same revision identifier already exists. If a record with the same revision identifier already exists, the release material information of the existing record is compared with the release material information of the current release registration request. If they are completely consistent, the release registration operation is considered an idempotent retry, and the existing release revision information is returned. If they are not completely consistent, it indicates a hash collision has occurred, and the central control service rejects the release registration request and records the collision event. In practical applications, the collision probability of SHA-256 is extremely low, and the conflict detection step serves as a safety fallback mechanism.

[0030] The central control service uses the revision identifier as the primary key, and persists it along with the published material information, a complete snapshot of the description list, the task form, the list of required products, and the smoke verification results to the revision storage table. The description list is stored in the revision storage table in a structured embedded snapshot format, and large artifacts are referenced using content addressing. The persistence operation uses a unique write path of "insertion or conflict equals idempotent overwrite," ensuring that there are no modification or deletion statements or endpoints for registered published revisions throughout the system, thereby guaranteeing the immutability of the published revisions at the storage level.

[0031] In one implementation, before performing content hashing on the publication material information in the publication registration request, the central control service also executes a publication material integrity verification process. The verification process includes: First, verify whether the image content digest in the published material information matches the content digest of the actual image file. If they do not match, reject the publication registration request and return a verification failure response. Second, verify whether the source code submission identifier in the published material information points to a valid source code submission record. If the submission record pointed to by the source code submission identifier does not exist or has been marked as invalid, reject the publication registration request. Third, verify whether the capability surface hash in the published material information matches the hash of the agent's action capability contract declaration. If they do not match, it indicates that the agent's capability declaration has undergone an unexpected change after the published material is constructed, and the central control service rejects the publication registration request.

[0032] Only after all three verifications pass can the content hashing step be performed. In this embodiment, the verification process ensures the integrity and source credibility of every published revision of material entering immutable storage.

[0033] In one implementation, the capability surface hash in the published material information is derived from the agent's action capability contract. The action capability contract defines the interface specifications for all operations provided by the agent, including action identifiers, input modes and default values, validation rules, operating modes and timeout configurations, structured result mappings, and product authorization lists.

[0034] The capability surface hash is a normalized content summary of the action capability contract. When any field of the action capability contract changes, the capability surface hash changes accordingly. The capability surface hash participates in the generation of the revision identifier as part of the published material information, thereby ensuring the consistent binding between the published revision and the action capability contract. If the agent's capability declaration is unexpectedly modified after publication, the change in the capability surface hash will cause verification failure, and the modification cannot be entered into immutable storage through the publication registration process.

[0035] In one implementation, the release material information further includes an interface package hash and a version number. The interface package hash is a content summary of the agent's front-end interface resource package, used to load interface resources matching the release revision during task execution. The version number is a developer-defined semantic version identifier, used to display version information to the user in the agent directory. The version number does not participate in the uniqueness determination of the revision identifier; that is, different version numbers but the same release material content will generate the same revision identifier.

[0036] In one implementation, the record structure of the revision storage table includes the following fields: the revision identifier as the primary key; agent identifier, used to identify the agent to which the release revision belongs; version number; channel name, indicating the target channel when the release revision was initially registered; status field, recording the current lifecycle state of the release revision; image reference, pointing to the storage location of the container image corresponding to the release revision; image content summary; running mode, defining the execution method of the agent under the release revision; description list complete snapshot, embedded in the record in a structured data format; task form definition, describing the input mode required by the agent when creating a task; required artifact list, declaring the artifact types that should be generated after the task execution instance is completed; smoke verification results and candidate verification results, recording the automated verification status that the release revision undergoes after registration; previous revision identifier, pointing to the previous version of the release revision; creation time, activation time, rollback time, and operator identifier.

[0037] In this embodiment, the complete snapshot of the description list is stored as an embedded snapshot, which ensures the integrity and immutability of the description information when the release revision is referenced, without the need to query the external description service again.

[0038] In one implementation, the immutability of the release revision is achieved through a four-layer guarantee mechanism: the first layer is content-addressable identification, where the revision identifier is determined by the content hash of the release material; the second layer is a unique write path, where the entire system only provides a "insertion or conflict equals idempotent overwrite" write method, and there is no interface for modifying or deleting existing release revisions; the third layer is task-level pinning, where tasks in the task queue are pinned to the revision identifier upon creation, and if the release revision corresponding to the revision identifier cannot be found, failure is returned directly without falling back to the current pointer of the version channel; the fourth layer is immutable artifact storage, where the mirror artifact associated with the release revision is stored in a content-addressable manner and cannot be modified after storage.

[0039] In one implementation, the cooperative relationship of the four-layer guarantee mechanism is as follows: The first-level content addressing identifier provides a deterministic binding between the version identifier and the version content, so that any tampering with the published content will result in a change in the revision identifier and be detected; The second-level unique write path eliminates the possibility of modifying existing release revisions at the system interface level. Even operations and maintenance personnel with direct database access cannot modify or delete registered release revisions through the system-provided interface. The third-layer task-level pinning extends the immutability guarantee from the storage layer to the runtime layer, ensuring that the task execution instance always uses the release revision bound at creation time throughout its lifecycle and will not automatically fall back to the new version due to changes in the version channel pointer. The fourth layer of artifact immutable storage extends the immutability guarantee to the external dependency layer. The mirrored artifact cannot be overwritten or deleted after being pushed to the content-addressable storage, thus ensuring the immutability of the runtime environment referenced by the release revision.

[0040] The four-layer mechanism forms a layer of protection in depth, consisting of the identification layer, interface layer, runtime layer, and storage layer. Even if any single layer is bypassed, the remaining layers can still ensure the integrity of the release revision.

[0041] In one implementation, the immutability guarantee is further enhanced by a workspace isolation mechanism within the desktop execution environment. When the task execution instance runs in the desktop executor, the executor creates an independent workspace directory for each task execution instance. The code files in these workspace directories originate from the source code snapshot of the release revision bound to the task execution instance. The workspace directories of different task execution instances are isolated from each other, ensuring that even if multiple task execution instances run simultaneously on the same executor, their respective code files will not interfere with each other. The workspace is cleaned up and reclaimed by the executor after the task execution instance terminates.

[0042] In one implementation, the desktop executor maintains a heartbeat connection with the central control service via a lease mechanism. After acquiring the task execution instance, the desktop executor obtains a limited-duration execution lease, which defines the maximum time the desktop executor holds the task execution instance. During the validity period of the execution lease, the desktop executor periodically sends renewal requests to the central control service to extend the execution lease.

[0043] When the desktop executor stops renewing its lease due to network interruption or process crash, the central control service rolls back the status of the task execution instance to pending dispatch after the execution lease expires, allowing it to be reclaimed by other executors. The reclaimed executor loads the same release revision content based on the persistent revision identifier in the task execution instance, ensuring version consistency of the task execution instance after executor failure recovery.

[0044] S200 receives a version channel change instruction and atomically switches the pointer of the version channel from pointing to the first revision to pointing to the second revision.

[0045] In this embodiment, the storage structure of the version channel uses the agent identifier and channel name as a combined primary key, with each agent's channel corresponding to exactly one record. The record includes the version number, the corresponding revision identifier, the smoke verification status, the candidate verification status, the reason for overwriting, the update time, and the operator information.

[0046] When the central control service receives the version channel change instruction, it first verifies whether the target revision identifier specified in the change instruction has been registered in the revision storage table. If it is not registered, the change instruction is rejected, thereby ensuring that the pointer of the version channel will never point to a non-existent release revision.

[0047] After the verification is successful, the pointer switch is completed by "insert or overwrite" operation on a single record. The operation is atomic at the database statement level.

[0048] In one implementation, the atomic operation is implemented using row-level write semantics in the database, which guarantees that at most one write operation can successfully modify the pointer record of the version channel at any given time. When multiple version channel change instructions arrive concurrently, only one change instruction can successfully execute the pointer switch; the remaining change instructions are rejected due to a mismatch in the current revision identifier in the comparison-swapping mechanism. This concurrency control does not rely on distributed locks or global sequence numbers, but instead utilizes the atomic write characteristics of a single row record to achieve lightweight optimistic concurrency control.

[0049] In one implementation, the pointer switching of the version channel also supports extended condition validation. In addition to the comparison exchange mechanism, the version channel change command can also carry additional preconditions, such as requiring the target release revision to have passed smoke verification or candidate verification. The central control service sequentially verifies the preconditions before executing the pointer switch, rejecting the change command if any precondition is not met. This extended condition validation mechanism allows the version upgrade strategy to be flexibly customized by operations personnel by configuring a set of preconditions, without modifying the core logic of the version channel management module.

[0050] In one implementation, the lifecycle management of the version channel further includes channel creation and channel archiving operations. The channel creation operation is initiated by the agent's administrator, who specifies the channel's name and purpose label during creation. After creation, the channel is in a null pointer state, meaning it does not yet point to any release revision; task requests created through this channel will be rejected. When the administrator executes the first version channel change instruction to point the channel's pointer to a release revision, the channel enters an active state. The channel archiving operation marks the channel as unavailable; the archived channel no longer accepts new pointer switching instructions and task creation requests, but it does not affect the continued execution of already created in-transit task instances. The archiving operation is used to safely freeze the version channel when the agent goes offline.

[0051] In one implementation, the version channel also supports canary release scenarios. For example, an administrator can create a canary channel and point the pointer of the canary channel to the new version release revision to be verified. The central control service routes some task creation requests to the canary channel according to preset traffic allocation rules, while the remaining requests are still routed to the official channel.

[0052] After the gray-scale verification is successful, the administrator switches the pointer of the official channel to the new version release revision and archives the gray-scale channel. During the gray-scale release process, task execution instances created through the official channel and task execution instances created through the gray-scale channel are each bound to different release revisions and do not affect each other.

[0053] In one implementation, the pointer switching employs an application-layer confirmatory comparison exchange mechanism: the version channel change instruction carries the current revision identifier identified by the operator; the central control service compares the current revision identifier with the actual revision identifier pointed to by the version channel; the pointer switching is performed only if the two match; if they do not match, the version channel change instruction is rejected and a conflict response is returned. This mechanism effectively prevents version overwrite issues caused by concurrent operations. For example, when performing a version rollback, the operator must accurately confirm the current version; if another operator has already switched the version channel to a different revision, the rollback operation will be rejected.

[0054] For example, a complete version rollback operation process is as follows: Operations personnel select the version channel and target release revision to be rolled back through the platform management interface; the management interface sends a version channel change instruction to the central control service, the change instruction carrying the current revision identifier of the version channel and the revision identifier of the target release revision; the central control service first verifies whether the target release revision has been registered in the revision storage table and is valid, and executes the comparison and exchange operation after successful verification; when the comparison and exchange is successful, the pointer of the version channel switches from the current revision to the target release revision, and the switching operation is written to the audit event record; when the comparison and exchange fails, a conflict response is returned, and the management interface prompts the operations personnel that the current version of the version channel has changed and needs to be refreshed and retried.

[0055] After the rollback is completed, newly created task execution instances will be bound to the target release revision execution, while in-transit task execution instances created before the rollback operation will continue to use their original bound release revision execution and will not be affected by the rollback operation.

[0056] In one implementation, the version channel includes a test channel and a production channel. The test channel is used to verify the release revision before official release, and the production channel is used to carry the production version for end users.

[0057] For example, after developers complete the development and testing of a new version, they first switch the pointer of the release revision to the test channel for smoke verification. After successful verification, they switch the pointer of the official channel to the same release revision, completing the version upgrade. When a rollback is needed, the pointer of the official channel is simply switched to the previous release revision. The rollback operation is also a single atomic pointer switch, without the need to re-execute the deployment process.

[0058] In one implementation, after the pointer switch is completed, the central control service writes the revision identifier of the first revision before the change, the revision identifier of the second revision after the change, the operator identifier, and the change time into an append-only audit event log. The audit event log is written append-only and cannot be modified or deleted, thereby supporting complete tracing and auditing of all historical changes in the version channel.

[0059] In one implementation, each record in the audit event log includes: an event identifier, an event type, the version channel name of the operation, the revision identifier before the change, the revision identifier after the change, the operator identifier, the operation timestamp, and a description of the reason for the change. The event type includes promotion events and rollback events. The audit event log is appended and does not provide modification or deletion interfaces, thereby ensuring the integrity and non-repudiation of the audit event log. For example, when security auditors need to investigate the operation log of a version switch, they can retrieve the audit event log by the version channel name and time range to obtain detailed information on all pointer switch operations within that time period, including the release revisions involved in each switch and the identity of the personnel performing the operation.

[0060] S300: Receive a task creation request, parse the release revision currently pointed to by the version channel, persist the revision identifier of the release revision to the task running instance, and bind the task running instance to the release revision.

[0061] In this embodiment, when the central control service receives the task creation request, it reads the release list of the release revision currently pointed to by the version channel through the channel resolver, resolves the pointer of the version channel into a specific revision identifier, and persists the revision identifier into the record of the task execution instance. During the resolution process, the channel resolver performs a blocking item check. If the pointer of the version channel does not point to a valid immutable release revision or the release list is missing, it returns a preflight failure response and refuses to create the task execution instance.

[0062] After the revision identifier is persistently written to the task execution instance, subsequent version channel pointer switching will no longer affect the release revision bound to the task execution instance. Even if the version channel undergoes a promotion or rollback operation during the execution of the task execution instance, the task execution instance will still use the release revision bound to it at creation, thereby ensuring the deterministic execution of the task execution instance.

[0063] In one implementation, the parsing process of the channel parser includes the following steps: First, the current pointer of the version channel is queried based on the agent identifier and channel name in the task creation request; second, the complete release list is obtained by querying the revision storage table based on the revision identifier pointed to by the pointer; third, a blocking item check is performed, which includes verifying whether the release revision corresponding to the revision identifier is in a valid state, whether the release list contains all the configuration information required by the task running instance, and whether the mirror reference of the release revision is reachable.

[0064] If any blocking item check fails, the channel resolver returns a preflight failure response containing the specific reason for the failure, based on which the central control service refuses to create the task execution instance. This blocking item check mechanism ensures that every created task execution instance is bound to a valid and complete release revision.

[0065] In one implementation, the task execution instance undergoes the following state transitions during its lifecycle: After initial creation, the task enters the pending dispatch state, during which the revision identifier has been persistently bound. The scheduler assigns the task instance to the executor and then enters the execution state. After the executor completes all the execution logic of the task instance, it enters the completed state. When an exception occurs during execution and the retry conditions are met, the task execution instance rolls back to the pending dispatch state for retry. The retry operation uses the same revision identifier as the first execution and does not re-parse the current pointer of the version channel. When the number of retries is exhausted or an unrecoverable exception occurs, the task execution instance enters a failed state. Each step of the state transition is written to a state change log, which includes the change timestamp, the state before the change, the state after the change, and the triggering reason.

[0066] In one implementation, the task execution instance generates artifact data upon completion, the type of which is defined by the list of required artifacts in the release revision.

[0067] After the business logic of the task execution instance is completed, the executor checks the completeness of the product data item by item against the list of required products. If any required product is missing, the status of the task execution instance is marked as incomplete rather than complete. The central control service decides whether to trigger a retry based on the configuration. The product data is associated with the revision identifier of the task execution instance during storage, so that subsequent queries can trace which version of the release revision generated each piece of product data.

[0068] In one implementation, the scheduler uses a claim mode rather than a push mode when allocating the task execution instance to the executor.

[0069] The executor actively sends a request to the central control service. The central control service selects the task execution instance from the queue to be dispatched and changes its status from pending dispatch to execution using an atomic operation. Simultaneously, the executor's identifier is written to the record of the task execution instance. This atomic operation ensures that the same task execution instance is not dispatched by multiple executors simultaneously.

[0070] After receiving the task execution instance, the executor loads the corresponding release revision content, including image references, description lists, and task forms, based on the persistent revision identifier in the task execution instance, and then executes the business logic defined in the release revision.

[0071] In one implementation, the process of the executor loading the published revision includes the following steps: First, the executor pulls the corresponding container image from the container image repository based on the image reference. If a content-addressable copy of the image already exists in the local cache, the cached copy is used directly without needing to pull it again. Second, the executor initializes the agent's capability registry based on the action capability contract in the description list. The capability registry defines all operation types and their input / output specifications that the agent can execute under the current release revision. Third, the executor parses the input parameters of the task execution instance based on the task form and performs type validation and mandatory field validation on the input parameters. Finally, the executor starts the execution entry point defined in the container image, passes in the validated input parameters, and begins executing the business logic.

[0072] During execution, the executor continuously monitors the resource usage and timeout status of the task running instance. When the resource usage exceeds the upper limit declared in the description list or the execution time exceeds the timeout threshold, the executor terminates the execution of the task running instance and marks its status as timeout failure.

[0073] In one implementation, after the revision identifier is persistently written to the record of the task execution instance, the record of the task execution instance also includes the following version-related information: the version channel name at the time of creation, the version number of the release revision, and a summary of the key fields of the release list. This information is used to display the bound version information on the details page of the task execution instance, allowing operators to intuitively confirm the release revision version used when the task execution instance is executed.

[0074] In one implementation, the task creation request carries an idempotency identifier. Upon receiving the task creation request, the central control service determines whether an active task instance with the same idempotency identifier exists. If it does, it directly returns information about the active task instance without creating it again. This idempotency mechanism prevents duplicate task creation due to network retries or repeated client submissions.

[0075] In one implementation, the idempotency identifier is generated by the client. Upon receiving the task creation request, the central control service queries the storage table of the task execution instance using the idempotency identifier as the key. When the query result is empty, a new task execution instance is created, and the idempotency identifier is persistently associated with the task execution instance. When the query result is not empty and the corresponding task execution instance is active, the information of the active task execution instance is returned directly without performing a creation operation. When the query result is not empty but the corresponding task execution instance is terminated, the creation of a new task execution instance is allowed. The idempotency identifier maintains a unique constraint throughout the lifecycle of the task execution instance.

[0076] In one implementation, the task creation request may originate from either user-triggered manual requests or timed automatic requests.

[0077] When the task creation request is automatically triggered by the timer scheduler, the timer scheduler periodically sends the task creation request to the central control service according to the preset scheduling rules. Each request goes through the channel parsing and revision identifier persistence process.

[0078] Since the timer executes channel resolution independently with each trigger, when the version channel pointer switches between two scheduling triggers, the task execution instance created in the previous trigger and the task execution instance created in the subsequent trigger will be bound to different release revisions. This mechanism ensures that each task execution instance always executes using the version configuration at the time of its creation, while allowing version switching to take effect naturally at the next scheduling trigger without requiring manual intervention for scheduled tasks in progress.

[0079] In one implementation, after persisting the revision identifier of the published revision to the task execution instance, the method further includes: issuing a short-term credential bound to the task execution instance. The validity period of the short-term credential is bound to the lifecycle of the task execution instance; when the task execution instance terminates, the short-term credential expires. The short-term credential is used for authentication when the task execution instance accesses external resources during execution.

[0080] In one implementation, the short-term certificate includes an identifier of the task execution instance, a revision identifier of the release revision, an identifier of the agent, and a validity period of the short-term certificate. When issuing the short-term certificate, the central control service writes the set of capabilities declared in the release revision into the authorization scope field of the short-term certificate.

[0081] When the task execution instance accesses an external system through an enterprise gateway, the enterprise gateway performs triple verification on the short-term credential: First, verify whether the validity period of the short-term certificate has not expired and whether the corresponding task execution instance is still active; second, verify whether the target operation of the request falls within the authorization scope of the short-term certificate; third, verify whether the target operation simultaneously satisfies the user's actual permissions in the target enterprise system and the permissions declared in the process node context.

[0082] The enterprise gateway allows the request only if all three checks pass. If any check fails, the enterprise gateway rejects the request and returns the specific reason for insufficient permissions. The intersection mechanism of the three sets ensures that the access permissions of the task execution instance do not exceed the intersection of the ability to publish a revision statement, user authorization, and process context statement.

[0083] S400, during the execution of the task running instance, the persistent data of the agent in the agent platform is read and written according to the agent dimension, so that the persistent data is not rolled back when the pointer of the version channel is switched.

[0084] In this embodiment, the agent platform explicitly separates the governance dimension of the agent's persistent data from the dimension of the version channel pointer. The persistent data includes business data, state data, and artifact data generated by the agent during task execution. This persistent data is stored in isolation at the agent level, and its lifecycle is independent of changes to the version channel pointer. When the version channel pointer rolls back from one release revision to another, only the version channel pointer changes; the agent's persistent data remains unchanged and unaffected.

[0085] See Figure 2 , Figure 2 This diagram illustrates a decoupled two-dimensional model of code version pointers and data plane provided in this embodiment. In this model, the version dimension includes an immutable release revision sequence and a version channel pointer. Upgrading or rolling back the version channel pointer only changes the pointer's direction without affecting the data plane. The data dimension includes the agent's persistent data, which is managed independently according to the agent dimension. This decoupling of the two dimensions ensures that version rollback operations do not lead to the loss or incompatibility of business data, thereby guaranteeing data security for the agent platform during version management.

[0086] It's important to note that in traditional version control schemes, code versions and business data are typically coupled within the same deployment unit. Version rollback operations require rolling back both code and data simultaneously. If a new version has already generated business data, data rollback may lead to data loss or data structure incompatibility. The proposed two-dimensional model explicitly separates the version dimension and the data dimension at the architectural level, ensuring that version rollback operations only affect the version dimension—that is, changing the version channel pointer—without touching the data dimension. This fundamentally eliminates the coupling risk between version rollback and data rollback.

[0087] In one implementation, the version dimension in the two-dimensional model further includes a change history timeline for the version channel. The change history timeline uses the audit event records as its data source and records all pointer switching events for each version channel from its creation to the current moment.

[0088] The change history timeline supports point-in-time query functionality. Given a historical point in time, it allows querying the release revision pointed to by the pointer of the version channel at that point. This functionality is particularly useful in incident debriefing scenarios: when it is necessary to determine the version of the agent running on the platform at a specific moment, the change history timeline can accurately obtain the version configuration information at that moment.

[0089] In one implementation, the data dimension of the two-dimensional model also includes a version labeling mechanism for persistent data. Each record of the persistent data is labeled with a revision identifier of the task execution instance that generated the record upon writing. This labeling does not affect the independent storage and access of the persistent data, but provides auxiliary information for data traceability. For example, when it is necessary to analyze which version of the intelligent agent generated a piece of business data, the corresponding revision identifier can be directly obtained through the version labeling.

[0090] In one implementation, for any historical task execution instance, its persistent revision identifier allows for precise backtracking to the complete content of the release revision used when the task was actually executed, including all information such as the description list, mirror references, and capability declarations of the release revision. This backtracking capability provides reliable support for version auditing and problem troubleshooting.

[0091] For example, when an exception occurs during the execution of a task instance, the operations and maintenance personnel can query the revision storage table through the persistent revision identifier of the task instance to obtain the complete description list, image reference and capability declaration of the release revision used when the task was actually executed, thereby accurately reproducing the version environment at the time of the exception, without relying on the current pointer state of the version channel.

[0092] In one implementation, the persistent data storage structure uses the agent identifier as the isolation key, and the persistent data of each agent is stored in an independent logical partition. The lifecycle management operations of the persistent data include creation, reading, updating, and deletion. All these operations use the agent identifier as the first dimension of access control and do not depend on the pointer state of the version channel. When the pointer of the version channel switches, the storage partition of the persistent data is unaffected, and the read and write operations on the persistent data by the task execution instance continue to execute normally during execution.

[0093] In one implementation, the decoupling of the data plane and the version plane is also reflected in the data migration strategy.

[0094] When a new version release revision of the agent requires changes to the structure of persistent data, these changes are implemented through a data migration script, which is registered and persisted as part of the release revision. The data migration script is executed automatically and only once when the new version release revision is first used by a task instance.

[0095] When it is necessary to roll back to an older release revision, only the pointer of the version channel is rolled back to the older release revision, and the completed data migration results remain unchanged, thereby avoiding data loss or incompatibility caused by data structure rollback.

[0096] In one implementation, the specific types of persistent data include: task execution output data, i.e., files, reports, or structured data results generated during the execution of the task instance; agent configuration data, i.e., configuration information dynamically maintained by the agent during runtime; and agent interaction data, i.e., dialogue records, feedback information, and collaboration status generated during interactions between the agent and the user or other agents. All three types of persistent data are stored independently using the agent identifier as the partition key and do not depend on the pointer state of the version channel.

[0097] In one implementation, the external observable behavior after the version channel pointer switch is as follows: the version identifier displayed by the agent on the platform directory page changes, reflecting the version number of the release revision pointed to by the current pointer of the version channel; however, the details page of the created historical task execution instances still displays the original revision identifier bound at the time of their creation, rather than the current revision identifier of the version channel. This external observable behavior intuitively demonstrates the decoupling relationship between the version channel pointer dimension and the task binding dimension. Furthermore, the interface response of the central control service includes a revision identifier field, which allows the caller to accurately confirm the release revision version used for each interface call.

[0098] In one implementation, the method further includes a process-level version solidification mechanism.

[0099] In response to a process start request, the central control service resolves the version channels corresponding to all nodes in the process into release revisions within the same transaction and writes the resolution results to the runtime specification snapshot. The runtime specification snapshot is persisted within the same transaction as the running instance of the process. If version channel resolution fails for any node, the entire transaction rolls back and rejects the process start request, eliminating intermediate states where some nodes start while others fail. All nodes in the process use the release revisions fixed in the runtime specification snapshot throughout their lifecycle; version channel upgrades or rollbacks during runtime do not affect the process in progress. When a node fails and needs to be retried, the retry operation still uses the release revisions fixed in the runtime specification snapshot, thus ensuring version consistency of the process instance throughout its entire lifecycle.

[0100] In one implementation, the data structure of the runtime specification snapshot includes: a snapshot identifier, a runtime instance identifier of the process, a creation timestamp, and a node version mapping table. The node version mapping table is a key-value structure, where the key is the node identifier and the value is the revision identifier of the release revision parsed by the node when the process starts. The runtime specification snapshot cannot be modified after being written. Any node in the process that needs to obtain its bound release revision reads the corresponding revision identifier from the runtime specification snapshot, rather than re-parsing the current pointer of the version channel.

[0101] For example, a process includes three nodes, each referencing a different agent version channel. Upon process startup, the central control service resolves the current pointers of the three version channels within the same transaction, obtaining three revision identifiers and writing them to the runtime specification snapshot. During process execution, even if a pointer switch occurs in any of the three version channels, the corresponding node in the process still executes using the revision identifier recorded in the runtime specification snapshot, unaffected by the pointer switch.

[0102] In one implementation, when a version channel corresponding to a node in the process has not yet been assigned a valid pointer, the central control service detects a version channel resolution failure for that node within the transaction, rejects the entire process start request, and returns specific information about the failed node and the reason for failure. The reasons for failure include the version channel not existing, the version channel pointer not pointing to any release revision, or the release revision pointed to by the pointer being marked as unavailable. This overall rejection mechanism ensures that there is no inconsistent state where some nodes have started while others have not.

[0103] In one implementation, the runtime specification snapshot also supports a version lock query function. Process administrators can query the runtime specification snapshot using the process's runtime instance identifier to obtain the release revision information bound to all nodes at process startup. The query results are returned in the form of a node version mapping table, which includes the identifier of each node, the corresponding agent identifier, the version channel name, and the fixed revision identifier. This function is used to audit and revert the actual version configuration used by the process during or after execution.

[0104] See Figure 3 , Figure 3 This is a schematic diagram of the structure of the intelligent agent release and revision content management system provided in an embodiment of this application. The system includes a release and revision management module, a version channel management module, a task revision binding module, a data isolation module, and a revision storage table.

[0105] The release revision management module is configured to receive a release registration request, perform a content hash operation on the release material information in the release registration request to generate a revision identifier, and persist the revision identifier and the corresponding release content in an immutable manner as a release revision. In one embodiment, the release revision management module is further configured to verify the consistency between the mirror content summary in the release material information and the actual mirror content before generating the revision identifier.

[0106] The version channel management module is used to receive version channel change instructions and atomically switch the version channel pointer from pointing to the first revision to pointing to the second revision. In one embodiment, the version channel management module is also used to write the audit event into an append-only audit event log after the pointer switch is completed.

[0107] The task revision binding module is used to receive a task creation request, parse the release revision currently pointed to by the version channel, persist the revision identifier of the release revision to the task execution instance, and bind the task execution instance to the release revision. In one embodiment, the task revision binding module is also used to issue a short-term credential bound to the task execution instance.

[0108] The data isolation module is used to ensure that, after the pointer of the version channel is switched, the in-transit task execution instance with the persistent revision identifier continues to use the bound release revision for execution, and the persistent data of the agent is not rolled back with the pointer switch of the version channel. The data isolation module stores the persistent data of the agent independently at the agent level, so that the lifecycle of the persistent data is independent of the pointer change of the version channel.

[0109] In one implementation, the system further includes a process version solidification module, used to respond to a process start request, resolve the version channels corresponding to all nodes in the process to release revisions within the same transaction, and write the resolution results to a runtime specification snapshot. The process version solidification module works in conjunction with the task revision binding module. When a node in the process needs to create a task runtime instance, the task revision binding module obtains the revision identifier corresponding to that node from the runtime specification snapshot, rather than resolving the current pointer of the version channel.

[0110] In one implementation, the system further includes an audit module, used to write the audit event into an append-only audit event record after the version channel management module completes the pointer switch. The audit module is decoupled from the version channel management module; the version channel management module sends the pointer switch event to the audit module via event notification, and the audit module asynchronously writes the audit event record, thus not affecting the execution efficiency of the pointer switch operation.

[0111] In one implementation, the system further includes an agent directory module for maintaining metadata about all agents in the platform, including agent identifier, name, description, affiliated company, and a list of available version channels. The agent directory module works in conjunction with the release revision management module; when a new release revision is successfully registered, the agent directory module updates the version information of the corresponding agent for platform users to view. The agent directory module also works in conjunction with the version channel management module; when the pointer of a version channel changes, the agent directory module updates the current version display information for the corresponding channel.

[0112] In one implementation, the agent release revision management method and system support multi-tenant environment deployment. In a multi-tenant environment, different enterprise tenants share the infrastructure of the agent platform, but each enterprise tenant's agents, version channels, release revisions, and persistent data are isolated from each other. This isolation is achieved by introducing an enterprise tenant identifier into the composite primary key of the version channel, allowing different enterprise tenants to maintain independent version channels and release revision sequences for the same agent. The task execution instance is bound to both the enterprise tenant identifier and the revision identifier upon creation, and the authorization scope of the short-term credential is further limited by the enterprise tenant's permission boundaries. This multi-tenant isolation mechanism ensures secure isolation between tenants for version management operations; a version switching operation by one enterprise tenant will not affect the task execution instances and persistent data of other enterprise tenants.

[0113] Example 2: Unlike Embodiment 1, to address the issue that pointer switching in the version channel might cause runtime failures in the running instances of in-transit tasks, the version channel management module performs a cross-version compatibility pre-check process before executing the pointer switch. This cross-version compatibility pre-check process uses the structured metadata already embedded in the revision storage table as the differential object to determine whether the changes in the second revision relative to the first revision affect the execution of the running instances of in-transit tasks.

[0114] Specifically, the differential objects include the release material information, action capability contract, task form definition, structured result mapping, and data migration script list for each of the first and second revisions. Since the release revisions cannot be modified after registration, the differential results for the same pair of release revisions are deterministic, reproducible, and can be used as audit evidence. The differential process is completed internally within the central control service and does not access the source code hosting system or mirror repository; therefore, it can be executed even when external systems are unavailable.

[0115] In one implementation, the cross-version compatibility pre-detection process includes four stages: structural differential operation, form differential operation, impact surface determination, and switching decision.

[0116] The structural differential operation uses action identifiers as alignment keys to compare the action lists of the first revision and the second revision item by item, and classifies the differential results into sets of newly added actions, sets of deleted actions, and sets of changed actions. For each action in the set of changed actions, the changes in its input mode, validation rules, operating mode, and timeout configuration are further compared, and the change type is marked as backward compatible change or backward incompatible change. The backward compatible changes include adding optional input parameters, relaxing the constraints of validation rules, and increasing the timeout time; the backward incompatible changes include deleting existing input parameters, tightening the constraints of validation rules, changing the operating mode, and shortening the timeout time.

[0117] The form difference operation uses field identifiers as alignment keys to compare the task form field lists of the first revision and the second revision item by item, and classifies the difference results into sets of newly added fields, deleted fields, and changed fields. For each field in the changed field set, the changes in its data type, required attributes, and default values ​​are compared. When an existing field is changed from optional to required without a default value set, the change is marked as backward incompatible.

[0118] The impact assessment is performed based on the revision identifier persisted in the task execution instance, and includes the following processes: querying the active task execution instances and filtering out those bound to the first revision; identifying task execution instances from the filtering results whose call actions or form fields fall within the scope of the backward incompatible change; and recording the identified task execution instances as a set of affected in-transit task execution instances. Since the revision identifier is persisted when the task execution instance is created, the impact assessment does not depend on the executor's status reporting, nor is it affected by the current execution progress of the task execution instance.

[0119] In one implementation, when the second revision registers a data migration script, the cross-version compatibility pre-check process also performs a rollback availability determination. The rollback availability determination compares the migration result of the data migration script with the data read convention of the first revision. If the migration result prevents the first revision from reading the migrated persistent data, the rollback availability of the second revision is marked as limited, and the reason for the limitation is registered in the compatibility pre-check report.

[0120] In one implementation, the compatibility pre-inspection report includes a compatibility level, a detailed list of incompatible changes, the number of affected in-transit task instances, and a rollback availability flag, wherein the compatibility level is divided into three levels. Full compatibility indicates that all changes in the second revision are backward compatible; conditional compatibility indicates that the second revision has backward incompatible changes, and the set of affected in-transit task instances is empty; incompatibility indicates that the second revision has backward incompatible changes, and the set of affected in-transit task instances is not empty.

[0121] In one implementation, the version channel management module executes different switching strategies according to the compatibility level: when the compatibility level is fully compatible, the pointer switching is executed directly; when the compatibility level is conditionally compatible, the pointer switching is executed, and the compatibility pre-inspection report is written into the audit event record as a risk filing; when the compatibility level is incompatible, the version channel change instruction is rejected, and the compatibility pre-inspection report is returned to the operator as a rejection reason.

[0122] In one implementation, when the compatibility level is incompatible, the operator can skip the cross-version compatibility pre-check by using the version channel change instruction carrying a forced override identifier. The forced override identifier is a skip credential explicitly declared by the management side. When the central control service executes the skip operation, it writes the forced override identifier, the operator identifier, the skip time, and the incompatible change details list into the audit event log, making the skip behavior itself a traceable and persistent record.

[0123] For example, a switching scenario involving three in-transit task instances is as follows: all three in-transit task instances are bound to the first revision, with two in-transit task instances invoking the first action and the other in-transit task instance invoking the second action; the second revision adds optional input parameters to the first action and deletes an existing input parameter of the second action. The structural difference operation marks the change to the first action as backward compatible and the change to the second action as backward incompatible; the impact surface determination determines that the in-transit task instance invoking the second action belongs to the set of affected in-transit task instances. The compatibility level is thus determined to be incompatible, and the pointer switch is rejected; after the operator re-initiates the version channel change instruction after the in-transit task instance invoking the second action has completed execution, the compatibility level changes to conditional compatibility, the pointer switch is executed, and the compatibility pre-check report is written to the audit event record.

[0124] In one implementation, the version channel management module also maintains a compatibility rule engine, which carries compatibility determination rules in a declarative configuration. The compatibility determination rules include the level attribution for action deletion, the level attribution for mandatory fields, and the level attribution for shortened timeout configurations. For example, an administrator can configure a deletion action as an incompatible change or as a conditionally compatible change. Modifications to the declarative configuration do not require changes to the code logic of the version channel management module.

[0125] This embodiment moves the judgment of task execution anomalies caused by version switching to the pointer switching decision stage; the differential object is taken from the immutable release revision, so that the judgment result is deterministic and reproducible; the impact surface judgment directly reuses the revision identifier that has been persisted by the task running instance, without the need for additional runtime collection, and there is no state reporting race condition; the rollback availability judgment avoids the situation where the old revision fails to read the migrated data due to the rollback after the data structure change.

[0126] Those skilled in the art will understand that the steps in the above embodiments are not necessarily executed in the specific order described. The execution order of each step can be adjusted depending on the actual application scenario. Furthermore, the technical solutions described in the above embodiments can be implemented by software, hardware, or a combination of both. When implemented by software, the program code implementing the method can be stored in a computer-readable storage medium. When the program code is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium includes, but is not limited to, read-only memory, random access memory, flash memory, magnetic disk, or optical disk.

[0127] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit described above can be implemented in hardware.

[0128] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An intelligent agent issues revision content management method applied to the central control service of the intelligent agent platform, characterized in that, include: Receive a release registration request, perform a content hash operation on the release material information in the release registration request to generate a revision identifier, and persist the revision identifier and the corresponding release content as a release revision in an immutable manner; Receive a version channel change instruction and use an atomic operation to switch the version channel pointer from pointing to the first revision to pointing to the second revision; Receive a task creation request, parse the release revision currently pointed to by the version channel, persist the revision identifier of the release revision to the task execution instance, and bind the task execution instance to the release revision; During the execution of the task execution instance, persistent data of agents in the agent platform is read and written according to the agent dimension, so that the persistent data is not rolled back when the pointer of the version channel is switched.

2. The method of claim 1, wherein, The method further includes: In response to the process start request, determine the version channel corresponding to each node in the process; Within the same transaction, each version channel is resolved into a release revision, and the resolution result is written to the runtime specification snapshot; If version channel resolution fails at any node, the process start request is rejected.

3. The method of claim 1, wherein, The method further includes: After the pointer of the version channel is switched from pointing to the first revision to pointing to the second revision using an atomic operation, the revision identifier of the first revision before the change, the revision identifier of the second revision after the change, the operator identifier, and the change time are determined. Write the revision identifier of the first revision, the revision identifier of the second revision, the operator identifier, and the change time into the append-only audit event log; In response to an audit query request, the audit event records are retrieved according to the name and time range of the version channel.

4. The method of claim 1, wherein, The task creation request carries an idempotent identifier; the method further includes: Query the task execution instance using the idempotent identifier; If an active task instance with the same idempotent identifier exists, the active task instance shall be reused. If no active task instance with the same idempotency identifier exists, a new task instance is created, and an association is established between the idempotency identifier and the new task instance.

5. The method of claim 1, wherein, The method further includes: After the revision identifier of the release revision is persisted to the task execution instance, a short-term certificate bound to the task execution instance is issued, and the set of capabilities declared in the release revision is written into the authorization scope field of the short-term certificate; During the execution of the task execution instance, the validity period and authorization scope of the short-term certificate are verified, and the access request of the task execution instance is allowed if the verification passes. If the task execution instance terminates, the short-term certificate becomes invalid.

6. The method of claim 1, wherein, The published material information includes a mirror content summary, source code submission identifier, and capability surface hash; the method also includes: Before performing content hashing on the published material information in the published registration request, verify that the mirror content digest is consistent with the actual mirror content; If the image content summary does not match the actual image content, the registration request is rejected.

7. The method of claim 1, wherein, The atomic operation of switching the pointer of the version channel from pointing to the first revision to pointing to the second revision includes: A comparison-swapping mechanism is used to compare the current revision identifier carried by the version channel change instruction with the revision identifier actually pointed to by the version channel; If the current revision identifier matches the revision identifier actually pointed to by the version channel, the pointer switch is performed. If the current revision identifier does not match the revision identifier actually pointed to by the version channel, the version channel change instruction is rejected.

8. The method of claim 1, wherein, The method further includes: After the pointer to the version channel is switched, the in-transit task execution instance with the persistent revision identifier continues to use the bound release revision to execute; The persistent data of the agents in the agent platform is stored in an independent logical partition with the agent identifier as the isolation key.

9. An agent publishes revision content management system, deployed in a central control service of an agent platform, characterized in that, include: The release revision management module is used to receive release registration requests, perform content hashing on the release material information in the release registration request to generate a revision identifier, and persist the revision identifier and the corresponding release content as a release revision in an immutable manner. The version channel management module is used to receive version channel change instructions and atomically switch the version channel pointer from pointing to the first revision to pointing to the second revision. The task revision binding module is used to receive a task creation request, parse the release revision currently pointed to by the version channel, persist the revision identifier of the release revision to the task running instance, and bind the task running instance to the release revision; The data isolation module is used to ensure that, after the pointer of the version channel is switched, the in-transit task running instance with the persistent revision identifier continues to use the bound release revision for execution, and the persistent data of the agent in the agent platform is not rolled back with the pointer of the version channel.

10. A computer-readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by the processor, it implements the intelligent agent publishing revision content management method as described in any one of claims 1 to 8.