A knowledge base updating method, system, device and storage medium for a non-deterministic generative executor

By creating evidence anchors and target anchors, generating fact records and constructing execution envelopes, and using independent validators to calculate difference sets and bidirectional evidence closure graphs, the problem of difficult-to-constrain outputs of nondeterministic generative executors is solved, and the traceability and consistency of knowledge base updates are achieved.

CN123140183APending Publication Date: 2026-11-20GUANGZHOU QIMING ZHIYUAN INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611405227.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-10
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

The output of nondeterministic generative executors is inherently random. Traditional update mechanisms struggle to strictly constrain the generated results within the authorized scope, failing to form a complete evidence loop and transaction-level consistency guarantee. This makes it difficult to ensure the traceability and consistency of knowledge base updates.

Method used

By acquiring controlled source material with a knowledge base and a target benchmark snapshot, evidence anchors and target anchors are created, fact records are generated, execution envelopes are constructed and candidate objects are generated in the isolation staging area, a normalized actual difference set is calculated using an independent validator, a bidirectional evidence closure graph is constructed, a one-time transaction commit credential is generated, and repeatable verification of updates and permission binding are ensured.

Benefits of technology

It achieves repeatable verification and closure proof of candidate updates for nondeterministic generative executors, ensuring the consistency and traceability of knowledge base updates, and significantly improving the determinism and compliance of updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140183A_ABST
    Figure CN123140183A_ABST
Patent Text Reader

Abstract

The application discloses a knowledge base updating method, system and device for a non-deterministic generative executor and a storage medium. The method comprises the following steps: obtaining controlled source materials with a source version and a knowledge base target benchmark snapshot, creating evidence anchors and target anchors, generating a plurality of fact records from the source materials according to the evidence anchors and the target anchors, combining the anchors, a knowledge base authorized range and the fact records to generate an execution envelope, and sending the execution envelope to the non-deterministic generative executor to generate a candidate object and an abstract in an isolated staging area. A standardized actual difference set is calculated by an independent verifier based on the benchmark snapshot and the candidate object. A bidirectional evidence closed graph is constructed by combining the anchors, the fact records and a justified final state. After verification, a closed ledger root abstract is calculated, a one-time transaction submission voucher is generated, and the voucher is atomically consumed and the knowledge base updating is completed when the version is consistent and the voucher is valid and not consumed. The updating is guaranteed to be consistent, and the determinacy, compliance and traceability of the knowledge base updating are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer data processing, and more specifically, to a method, system, device, and storage medium for updating a knowledge base for nondeterministic generative actuators. Background Technology

[0002] With the gradual application of large language models, information extraction models, and autonomous intelligent agents to the automated maintenance of enterprise knowledge bases, systems can automatically extract facts from source materials such as meeting minutes, group chat messages, online documents, task records, and code changes, generating knowledge entries, document patches, relation records, or database updates. Formal knowledge bases, as the core basis for business retrieval, decision execution, and automated processes, require updates that not only are the contents accurate and readable, but also possess deterministic constraints such as traceable sources, verifiable changes, controllable concurrency, and recoverable faults. In contrast, the output of non-deterministic generative executors inherently possesses randomness, making it difficult for traditional update mechanisms to strictly constrain the generated results within authorized limits, and failing to form a complete evidence loop and transaction-level consistency guarantees.

[0003] Currently, only source links are marked, without fixed source versions and evidence fragment summaries, making it impossible to verify the validity of cited content; relying on change records reported by the generator does not independently reconstruct actual differences, making it difficult to avoid unauthorized modifications and unfounded outputs; only object-level verification is performed, which cannot simultaneously detect omissions in input facts and expansions in output; verification results are not strongly bound to submission permissions, resulting in state contention windows after verification, which can easily lead to concurrent overwriting, and can also easily generate partially effective states when multiple object update failures occur.

[0004] Therefore, how to achieve repeatable verification and closure proof for candidate updates of nondeterministic generative executors, bind verification results with one-time submission permissions, and ensure the consistency and traceability of knowledge base updates are issues that need attention. Summary of the Invention

[0005] In view of the above problems, this application provides a knowledge base update method, system, device and storage medium for nondeterministic generative actuators, so as to realize repeatable verification and closure proof of candidate updates for nondeterministic generative actuators, bind the verification results with one-time submission permissions, and ensure the consistency and traceability of knowledge base updates.

[0006] To achieve the above objectives, the following specific solutions are proposed:

[0007] A knowledge base update method for nondeterministic generative executors includes:

[0008] Obtain controlled source material with a source version of the knowledge base and a target benchmark snapshot of the knowledge base; create an evidence anchor point containing the source version; and create a target anchor point containing the target benchmark snapshot.

[0009] Multiple fact records generated from the controlled source material based on the evidence anchor and the target anchor;

[0010] Based on the evidence anchor, the target anchor, the knowledge base authorization scope, and each of the fact records, an execution envelope containing the vectors that allow modification of the target and the target baseline version is generated;

[0011] Send the execution envelope and the baseline snapshot that allows modification of the target to the nondeterministic generative executor so that the nondeterministic generative executor generates candidate objects and their candidate summary values ​​in an isolated staging area;

[0012] A normalized actual difference set is computed based on the baseline snapshot and the candidate objects using a validator independent of the nondeterministic generative executor.

[0013] Based on the aforementioned evidence anchor points, the aforementioned normalized actual difference set, the definitive fact final state, and each of the aforementioned fact records, a two-way evidence closure diagram is constructed;

[0014] The execution envelope, the normalized actual difference set, and the bidirectional evidence closure graph are verified respectively. When all verifications pass, the closed ledger root digest is calculated, and a one-time transaction commit certificate is generated that binds the digest value of the execution envelope, the candidate digest value, the target baseline version vector, and the closed ledger root digest.

[0015] Read the target current version vector. When the target current version vector is equal to the target baseline version vector and the one-time transaction commit credential is valid and has not been consumed, atomically consume the one-time transaction commit credential and update the knowledge base according to the target baseline snapshot.

[0016] Optionally, the creation of the evidence anchor point containing the source version includes:

[0017] Identify evidence fragments from the controlled source material;

[0018] Generate a source ID based on the evidence fragment and the source version;

[0019] The evidence fragments are normalized to obtain normalized evidence fragments, and the fragment summary value of the normalized evidence fragments is calculated.

[0020] An evidence anchor is created based on the source ID, the source version, the range of the evidence fragment in the controlled source material, the fragment summary value, and the business function and operation type supported by the evidence fragment.

[0021] Optionally, creating a target anchor point containing the target baseline snapshot includes:

[0022] Based on the target baseline snapshot, determine the target object to be updated and generate the ID of the target object to be updated.

[0023] Determine the allowed modifiable structural range of the target object to be updated, and the target location to be modified within the target object to be updated, and determine the allowed modification operations for the target location;

[0024] Generate a structural locator based on the target location;

[0025] Calculate the content digest value of the target content to be modified in the target object to be updated;

[0026] A target anchor is created based on the id of the target object to be updated, the target location, the allowed modification range of the structure, the target baseline snapshot, the content summary value, the allowed modification operation, and the structure locator.

[0027] Optionally, after generating the execution envelope containing the target baseline version vector, the method further includes:

[0028] The execution envelope is sealed.

[0029] Optionally, the process by which the nondeterministic generative executor generates candidate objects and their candidate digest values ​​in the isolation buffer includes:

[0030] The nondeterministic generative executor generates candidate objects in the isolation storage area based on the evidence anchor, the baseline snapshot, the allowed operation range, each of the fact records, and the execution intent of the fact records;

[0031] The nondeterministic generative executor normalizes the candidate objects and calculates the candidate summary value of the normalized candidate objects using a summary calculation function.

[0032] Optionally, the step of calculating the normalized actual difference set based on the baseline snapshot and the candidate objects using a validator independent of the nondeterministic generative executor includes:

[0033] The candidate objects and the benchmark snapshot are converted into comparable structures by a verifier independent of the nondeterministic generative executor, resulting in comparable candidate objects and comparable benchmark snapshots.

[0034] The verifier performs a normalized difference comparison between the comparable candidate object and the comparable benchmark snapshot according to a preset difference pattern, thereby obtaining a normalized actual difference set.

[0035] Optionally, the method further includes:

[0036] After generating the execution envelope, a first summary value of the execution envelope is calculated;

[0037] After each of the aforementioned fact records is generated, a second summary value of the execution intent for that fact record is calculated;

[0038] The execution envelope verification process includes:

[0039] The first digest value to be verified of the execution envelope is recalculated using the verifier.

[0040] The verifier recalculates the second verifiable summary value of the execution intent for each of the fact records.

[0041] The verifier recalculates the candidate digest value to be verified for the candidate object.

[0042] If the first digest value is consistent with the first digest value to be verified, and the second digest value of each fact record is consistent with the second digest value to be verified, and the candidate digest value is consistent with the candidate digest value to be verified, then the execution envelope verification passes; otherwise, the execution envelope verification fails.

[0043] Optionally, there may be multiple allowed modification targets, and the execution envelope includes structural constraints, a set of allowed evidence for each allowed modification target, and a set of allowed operations.

[0044] The verification process for the normalized actual difference set includes:

[0045] Target object verification is performed, which verifies whether each target object in the normalized actual difference set is a permitted target and not a prohibited target, and whether each difference unit in the normalized actual difference set is within its corresponding permitted range.

[0046] A version verification is performed, wherein the version verification is to verify whether the base version of the execution envelope is the version of the target base snapshot;

[0047] Evidence binding verification is performed, which verifies whether each piece of evidence supporting the normalized actual difference set belongs to the allowed evidence set and whether the evidence allows its corresponding operation.

[0048] Perform operation verification, which involves verifying whether each operation derived from the normalized actual difference set belongs to the set of allowed operations.

[0049] Perform a structure check, which verifies whether the structure of the normalized actual differences within the normalized actual difference set conforms to the structure constraints.

[0050] Perform a budget verification, which involves verifying whether the total amount of data within the normalized actual difference set exceeds the change budget.

[0051] Intention Figure 1 Consistency verification, the meaning of Figure 1 The consistency check verifies whether the semantic intent of the operation of the normalized actual difference set transformation does not exceed the preset range of the preset execution intent;

[0052] If the target object verification, the version verification, the evidence binding verification, the operation verification, the structure verification, the budget verification, and the intention... Figure 1 If all consistency checks pass, the normalized actual difference set check passes; otherwise, the normalized actual difference set check fails.

[0053] Optionally, the normalized actual difference set includes multiple normalized actual difference information, and the two-way evidence closure diagram includes multiple first nodes representing the fact record, multiple second nodes representing the normalized actual difference information, a third node representing the final state of the evidenced fact, and a fourth node representing the evidence anchor point.

[0054] The verification process of the bidirectional evidence closure diagram includes:

[0055] Perform a first verification and a second verification, wherein the first verification is to verify whether each first node leads to the second node or the third node, and the second verification is to verify whether each second node leads to the fourth node via at least one first node;

[0056] If both the first and second verifications pass, the two-way evidence closure diagram verification passes; otherwise, the two-way evidence closure diagram verification fails.

[0057] Optionally, the calculation of the closed ledger root summary includes:

[0058] The edges and nodes of the two-way evidence closed graph, the final state of the evidenced facts, and the verification results of the two-way evidence closed graph are normalized and sorted to obtain a closed ledger.

[0059] Calculate the closed ledger root summary of the closed ledger.

[0060] Optionally, reading the target's current version vector includes:

[0061] After the transaction commit module acquires the commit lock or enters a database transaction, it reads the target current version vector.

[0062] Optionally, the method further includes:

[0063] If any of the execution envelope, the normalized actual difference set, or the bidirectional evidence closure graph fails to be verified, or the target current version vector is not equal to the target baseline version vector, or the one-time transaction commit certificate has been consumed, then the current version of the knowledge base is maintained.

[0064] A knowledge base update system for nondeterministic generative actuators includes:

[0065] The source material acquisition module is used to acquire controlled source materials with a source version of a knowledge base and a target benchmark snapshot of the knowledge base;

[0066] The evidence anchor creation module is used to create evidence anchors that contain the source version.

[0067] The target anchor point creation module is used to create target anchor points that contain the target baseline snapshot;

[0068] The fact record generation module is used to generate multiple fact records from the controlled source material based on the evidence anchor and the target anchor;

[0069] An execution envelope generation module is used to generate an execution envelope containing a vector that allows modification of the target and the target baseline version, based on the evidence anchor, the target anchor, the knowledge base authorization scope, and each of the fact records.

[0070] An execution envelope sending module is used to send the execution envelope and the baseline snapshot of the target that allows modification to be sent to the nondeterministic generative executor;

[0071] A nondeterministic generative executor used to generate candidate objects and their candidate digest values ​​in an isolated staging area;

[0072] An independent validator is used to compute a normalized actual difference set based on the baseline snapshot and the candidate objects;

[0073] The two-way evidence closure graph construction module is used to construct a two-way evidence closure graph based on the evidence anchor points, the normalized actual difference set, the evidenced fact final state, and each of the fact records.

[0074] The closed ledger root digest calculation module is used to verify the execution envelope, the normalized actual difference set, and the bidirectional evidence closure graph respectively, and calculate the closed ledger root digest when all verifications pass.

[0075] A one-time transaction commit certificate generation module is used to generate a one-time transaction commit certificate that is bound to the digest value of the execution envelope, the candidate digest value, the target baseline version vector and the closed ledger root digest;

[0076] The target current version vector reading module is used to read the target current version vector;

[0077] The transaction commit module is used to atomically consume the one-time transaction commit credential and update the knowledge base according to the target benchmark snapshot when the target current version vector is equal to the target base version vector and the one-time transaction commit credential is valid and has not been consumed.

[0078] Optionally, the evidence anchor point creation module includes:

[0079] An evidence fragment determination module is used to determine evidence fragments of the controlled source material;

[0080] The source ID generation module is used to generate a source ID based on the evidence fragment and the source version;

[0081] The fragment summary value calculation module is used to normalize the evidence fragments to obtain normalized evidence fragments, and to calculate the fragment summary value of the normalized evidence fragments;

[0082] The evidence anchor point establishment module is used to create evidence anchor points based on the source ID, the source version, the range of the evidence fragment in the controlled source material, the fragment summary value, and the business functions and operation types supported by the evidence fragment.

[0083] Optionally, the target anchor point creation module includes:

[0084] The module for generating the ID of the target object to be updated is used to determine the target object to be updated based on the target baseline snapshot and generate the ID of the target object to be updated.

[0085] The permissible modification information determination module is used to determine the permissible modification range of the target object to be updated, the target position to be modified within the target object to be updated, and the permissible modification operation of the target position;

[0086] A structural locator generation module is used to generate a structural locator based on the target location;

[0087] The content summary value calculation module is used to calculate the content summary value of the target content to be modified of the target object to be updated.

[0088] The target anchor point creation module is used to create a target anchor point based on the id of the target object to be updated, the target location, the allowed modification range of the structure, the target baseline snapshot, the content summary value, the allowed modification operation, and the structure locator.

[0089] Optionally, the system may also include:

[0090] An execution envelope sealing module is used to seal the execution envelope after the generation of the execution envelope containing the target baseline version vector.

[0091] Optionally, the nondeterministic generative actuator is further used for:

[0092] Based on the evidence anchor, the baseline snapshot, the allowed operation range, each of the fact records, and the execution intent of the fact records, candidate objects are generated in the isolation storage area;

[0093] The candidate objects are normalized, and the candidate summary value of the normalized candidate objects is calculated using a summary calculation function.

[0094] Optionally, the independent validator is also used for:

[0095] The candidate objects and the benchmark snapshot are converted into a comparable structure to obtain comparable candidate objects and comparable benchmark snapshots;

[0096] According to the preset difference mode, the comparable candidate objects and the comparable benchmark snapshot are compared in a normalized difference manner to obtain a normalized actual difference set.

[0097] Optionally, the system may also include:

[0098] The first digest value calculation module is used to calculate the first digest value of the execution envelope after the execution envelope is generated;

[0099] The second summary value calculation module is used to calculate the second summary value of the execution intent of each of the fact records after each fact record is generated;

[0100] The verifier is also used for:

[0101] The first digest value to be verified of the execution envelope is recalculated using the verifier.

[0102] The verifier recalculates the second verifiable summary value of the execution intent for each of the fact records.

[0103] The verifier recalculates the candidate digest value to be verified for the candidate object.

[0104] If the first digest value is consistent with the first digest value to be verified, and the second digest value of each fact record is consistent with the second digest value to be verified, and the candidate digest value is consistent with the candidate digest value to be verified, then the execution envelope verification passes; otherwise, the execution envelope verification fails.

[0105] Optionally, there may be multiple allowed modification targets, and the execution envelope includes structural constraints, a set of allowed evidence for each allowed modification target, and a set of allowed operations.

[0106] The independent validator is also used for:

[0107] Target object verification is performed, which verifies whether each target object in the normalized actual difference set is a permitted target and not a prohibited target, and whether each difference unit in the normalized actual difference set is within its corresponding permitted range.

[0108] A version verification is performed, wherein the version verification is to verify whether the base version of the execution envelope is the version of the target base snapshot;

[0109] Evidence binding verification is performed, which verifies whether each piece of evidence supporting the normalized actual difference set belongs to the allowed evidence set and whether the evidence allows its corresponding operation.

[0110] Perform operation verification, which involves verifying whether each operation derived from the normalized actual difference set belongs to the set of allowed operations.

[0111] Perform a structure check, which verifies whether the structure of the normalized actual differences within the normalized actual difference set conforms to the structure constraints.

[0112] Perform a budget verification, which involves verifying whether the total amount of data within the normalized actual difference set exceeds the change budget.

[0113] Intention Figure 1 Consistency verification, the meaning of Figure 1 The consistency check verifies whether the semantic intent of the operation of the normalized actual difference set transformation does not exceed the preset range of the preset execution intent;

[0114] If the target object verification, the version verification, the evidence binding verification, the operation verification, the structure verification, the budget verification, and the intention... Figure 1 If all consistency checks pass, the normalized actual difference set check passes; otherwise, the normalized actual difference set check fails.

[0115] Optionally, the standardized actual discrepancy set includes multiple standardized actual discrepancy information, and the two-way evidence closure diagram includes multiple first nodes representing the fact record, multiple second nodes representing the standardized actual discrepancy information, a third node representing the final state of the evidenced fact, and a fourth node representing the evidence anchor point.

[0116] The independent validator is also used for:

[0117] Perform a first verification and a second verification, wherein the first verification is to verify whether each first node leads to the second node or the third node, and the second verification is to verify whether each second node leads to the fourth node via at least one first node;

[0118] If both the first and second verifications pass, the two-way evidence closure diagram verification passes; otherwise, the two-way evidence closure diagram verification fails.

[0119] Optionally, the closed-loop ledger root summary calculation module includes:

[0120] The normalized sorting module is used to normalize and sort the edges and nodes of the two-way evidence closed graph, the final state of the evidenced facts, and the verification results of the two-way evidence closed graph to obtain a closed ledger.

[0121] The root summary calculation module is used to calculate the closed ledger root summary of the closed ledger.

[0122] Optionally, the target current version vector reading module includes:

[0123] The target current version vector reading submodule is used to read the target current version vector after the transaction commit module acquires the commit lock or enters a database transaction.

[0124] Optionally, the system may also include:

[0125] The knowledge base non-update module is used to maintain the current version of the knowledge base if any of the verifications of the execution envelope, the normalized actual difference set, and the bidirectional evidence closure graph fails, or the target current version vector is not equal to the target baseline version vector, or the one-time transaction commit certificate has been consumed.

[0126] A knowledge base update system for nondeterministic generative actuators includes a memory and a processor;

[0127] The memory is used to store programs;

[0128] The processor is used to execute the program to implement the various steps of the knowledge base update method for nondeterministic generative executors as described above.

[0129] A storage medium storing a computer program that, when executed by a processor, implements the steps of the knowledge base update method for a nondeterministic generative executor as described above.

[0130] Using the above technical solution, this application obtains controlled source material with a source version containing a knowledge base and a target benchmark snapshot of the knowledge base, creates an evidence anchor point containing the source version, and creates a target anchor point containing the target benchmark snapshot. Based on the evidence anchor point and the target anchor point, multiple fact records are generated from the controlled source material. According to the evidence anchor point, the target anchor point, the knowledge base authorization scope, and each fact record, an execution envelope containing the vectors allowing modification of the target and the target benchmark version is generated. The execution envelope and the benchmark snapshot allowing modification of the target are sent to the nondeterministic generative executor, so that the nondeterministic generative executor generates candidate objects and their candidate digest values ​​in an isolated temporary storage area. This is then passed through a verifier independent of the nondeterministic generative executor. Based on the baseline snapshot and candidate objects, a normalized actual difference set is calculated. A two-way evidence closure graph is constructed based on the evidence anchor, the normalized actual difference set, the final state of the evidenced facts, and each fact record. The execution envelope, the normalized actual difference set, and the two-way evidence closure graph are verified respectively. When all verifications pass, a closed ledger root summary is calculated, generating a one-time transaction commit document bound to the execution envelope's summary value, candidate summary value, target baseline version vector, and closed ledger root summary. The target current version vector is read. If the target current version vector equals the target baseline version vector and the one-time transaction commit document is valid and has not been consumed, the one-time transaction commit document is atomically consumed, and the knowledge base is updated according to the target baseline snapshot. Therefore, limiting the generative output to isolated candidates and independently reconstructing normalized actual differences, synchronously detecting input omissions and unfounded output expansions through two-way evidence closure, and binding verification results and version states with one-time transaction documents, with atomic commits within the lock ensuring consistent updates, significantly improves the determinism, compliance, and traceability of knowledge base updates. Attached Figure Description

[0131] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0132] Figure 1 A schematic diagram illustrating a process for updating a knowledge base for a nondeterministic generative actuator, provided in an embodiment of this application.

[0133] Figure 2 This application provides a schematic diagram of a system architecture for updating a knowledge base for a nondeterministic generative actuator, as illustrated in an embodiment of the present application.

[0134] Figure 3 This is a schematic diagram of the structure of a device for updating a knowledge base for a nondeterministic generative actuator, provided in an embodiment of this application. Detailed Implementation

[0135] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0136] The proposed solution can be implemented based on a knowledge base update system for nondeterministic generative actuators with data processing capabilities.

[0137] Next, combined Figure 1 The knowledge base update method for nondeterministic generative actuators described in this application may include the following steps:

[0138] Step S110: Obtain the controlled source material with the source version of the knowledge base and the target benchmark snapshot of the knowledge base, create an evidence anchor point containing the source version, and create a target anchor point containing the target benchmark snapshot.

[0139] In this context, the knowledge base (formal knowledge base) refers to a versioned collection of data that is read by business systems and used as the basis for currently valid project facts, decisions, interface agreements, risks, tasks, or other machine-readable knowledge. The knowledge base can include text files, structured documents, database records, or knowledge graphs.

[0140] An evidence anchor can refer to machine-verifiable location information that binds a fact record to a specific piece of evidence within controlled source material. An evidence anchor includes at least the source material identifier, source version, fragment range, and fragment summary value. Verification involves rereading the corresponding source version or trusted snapshot and calculating the fragment summary value to determine if the evidence remains valid. A fact record can represent the smallest processable unit of knowledge extracted from controlled source material. Each fact record includes at least a fact identifier, fact content, expected operation type, evidence anchor, target anchor, and a set of allowed final states.

[0141] A target anchor can represent machine-verifiable location information that binds a fact record to a predetermined position in a formal knowledge base. A target anchor includes at least the target object identifier, structural path or record identifier, allowed modification scope, target baseline version, target preceding image summary value, and allowed operations.

[0142] The target baseline version can be a digest value such as SHA-256, a database row version, a document revision number, a Git commit identifier, an object storage ETag, a logical clock, or a version vector. The method used only needs to be able to determine whether the target is still the version on which the candidate was based at the time of verification or commit.

[0143] In this step, the system can obtain a set of source materials to be processed, M={m_1, m_2, ..., m_N}, where m_N represents the Nth item in the set. Source materials can be meeting minutes, group chat messages, online documents, task records, code changes, interface specifications, or manual review results. Each source material must have at least a project identifier, source locator, source version, access scope, capture time, and content or content reference. For metadata such as title, source, submitter, parsing status, and update time of the same knowledge object, the system can employ field-level fusion, version priority, or trusted source priority rules. The metadata fusion result is still treated as a candidate change and subjected to execution envelope and independent verification; fusion scoring does not replace evidence and version verification.

[0144] Furthermore, the system needs to verify whether the source material falls within the current project's authorized scope. Therefore, the locator and content can be normalized to generate a controlled snapshot of the i-th source material: SourceSnapshot_i = {source_id_i, source_revision_i, locator_i, content_hash_i, access_scope_i}. Here, source_id_i represents the unique identifier of the source material, source_revision_i represents the source version or revision number at the time of capture, locator_i represents the address, block identifier, or record key that can relocate the source material, content_hash_i = Hash(Normalize(m_i.content)) represents the digest value of the normalized content, used to verify whether the content read subsequently is still consistent with the content at the time of capture (materials from external sources, sources that cannot be stably located, or whose access scope does not meet the project policy are not included in the automatic update process), Normalize represents the normalization process that eliminates irrelevant format differences and forms a deterministic representation, Hash represents the digest calculation function, and access_scope_i represents the project, subject, and permission scope that the source material is allowed to be read and used.

[0145] Furthermore, after obtaining the evidence anchors and target anchors, an update transaction package U can be formed. The update transaction package U includes at least an update identifier, a source snapshot set, a fact record set, an evidence anchor set, a target anchor set, and a final state strategy. Among them, the source snapshots and dual anchors serve as common inputs for subsequent execution envelopes, closure proofs, and audit chains.

[0146] Step S120: Generate multiple fact records from controlled source materials based on evidence anchors and target anchors.

[0147] Specifically, multiple fact records can be individual fact records extracted from the fact record set F={f_1, f_2, ..., f_K}.

[0148] Where F represents the set of fact records extracted from all controlled source snapshots, f_i represents the i-th fact record in the set, and K represents the total number of fact records. A fact record is the smallest business unit for subsequent difference authorization, closure verification, and final state determination. Each fact record includes at least a fact record ID, fact content, expected operation type, evidence anchor point, target anchor point, and allowed final state set. The fact identifier is unique within this update package and is preferably determined by the source material identifier, evidence fragment position, and fact sequence number.

[0149] The structure of a fact record can be represented as follows:

[0150] FactRecord={fact_id, fact_body, operation_type, evidence_anchor, target_anchor, terminal_policy}.

[0151] Here, fact_id is a unique identifier for the fact record, used to establish the relationship between facts and evidence, differences, and final states; fact_body is the fact content expressed in a standardized way; operation_type is the type of operation that the fact is expected to be authorized to perform, such as adding, modifying, associating, moving, deleting, or otherwise; evidence_anchor is one or more evidence anchors that support the fact; target_anchor is one or more target anchors that the fact is allowed to influence; and terminal_policy is the well-founded final state that the fact is allowed to enter and its necessary proof conditions when the fact cannot form a formal difference.

[0152] Furthermore, the system generates an execution intent for each fact record. An execution intent refers to a pre-determined expected change semantic for the fact record, including adding, supplementing, replacing, associating, deleting, temporarily storing, or transferring to manual review, as well as prohibiting reverse operations. Execution intents are used to determine whether the actual difference deviates from the current update task. The system normalizes and sorts the execution intents and calculates their hash value (intent_hash) to prevent the task target from being replaced during candidate generation.

[0153] Furthermore, after obtaining each fact record and before generating the execution envelope for subsequent steps, risk scoring and target matching scoring can be performed on the fact records. Risk scoring can be calculated based on source credibility, operational disruption, sensitivity, and conflict level, used to determine whether to automatically generate candidates, prioritize manual review, or directly reject them. Risk scoring is part of the routing strategy before execution envelope generation and does not change the conditions for independent reconstruction of normalized actual differences, object-level hard verification, two-way evidence closure proof, and transaction commit certificate issuance. Target matching scoring can be performed when multiple candidate targets exist for a fact; the system can calculate the target matching score. If the highest score is insufficient or the difference between candidate targets is too small, a target is not automatically selected; instead, a review item is generated. Once a target is determined and written into the execution envelope, the generative executor must not expand the target scope on its own.

[0154] Step S130: Based on the evidence anchor, target anchor, knowledge base authorization scope, and each fact record, generate an execution envelope containing the vectors that allow modification of the target and the target baseline version.

[0155] Specifically, before generating the execution envelope, the system can determine the normalization pattern of the actual differences based on the target storage medium. The normalized difference unit (NormalizedDiffUnit) includes {diff_id, target_id, locator, operation, before_hash, after_hash, fact_ids, evidence_ids}.

[0156] Wherein, diff_id represents the unique identifier of the actual difference unit in normalization, target_id represents the target object to which the difference belongs, locator represents the normalization position within the target, operation represents the type of operation that actually occurred, before_hash and after_hash represent the summary values ​​of the content before and after modification, respectively, fact_ids represents the set of fact identifiers that authorize the difference, and evidence_ids represents the set of evidence identifiers that support the relevant facts.

[0157] An execution envelope can be a set of machine-executable constraints formed and sealed before candidate changes are generated. An execution envelope E_U includes at least several of the following: permitted targets, permitted ranges, prohibited targets, source version, target baseline version, permitted evidence, permitted operations, structural constraints, normalized difference patterns, and commit policies. The execution envelope is bound to the candidate changes and subsequent verification results via an envelope digest value. Execution envelopes can be represented as JSON, YAML, protocol buffers, database records, capability tokens, or digitally signed policy objects. The integrity of the execution envelope can be guaranteed using a digest value, message authentication code, digital signature, or immutable version number.

[0158] For example, the execution structure can be represented as ExecutionEnvelope={update_id, intent_hash, allow_targets, allow_ranges, deny_targets, source_versions, base_version_vector, allowed_evidence, allowed_operations, destructive_authorizations, structure_constraints, diff_schema, change_budget, required_outputs, envelope_hash}. Here, update_id represents the unique identifier of this update transaction, intent_hash represents the summary value of the normalized execution intent, used to prevent the task target from being replaced, allow_targets is the set of target objects that are allowed to be modified, allow_ranges is the set of the modifiable structural ranges within each allowed target, deny_targets is the set of target object or structural locations that are explicitly prohibited from modification, source_versions is the set of all source material versions that this update depends on, base_version_vector is the baseline version vector of all target objects before candidate generation, allowed_evidence is the set of evidence anchors allowed to support the differences in this candidate, allowed_operations, destructive_authorizations, structure_constraints, diff_schema, change_budget, required_outputs, envelope_hash}. `ions` is the set of allowed operation types for this operation; `destructive_authorizations` is the set of dedicated authorization records required for destructive operations such as deletion, overwriting, and demotion; `structure_constraints` is the structural rules that the target file, document, database, or graph structure must meet; `diff_schema` is the schema definition for converting changes in different storage media into normalized difference units; `change_budget` is the upper limit of the number of objects, rows, fields, records, or other quantities allowed to change for this operation; `required_outputs` is the list of objects, mappings, and audit materials that the candidate generation module must output; and `envelope_hash` is the summary value after performing envelope normalization serialization, used to verify envelope integrity.

[0159] Specifically, allowed targets can be calculated from the intersection of the project's authorized scope, factual target anchors, and operational policies. Allowed targets are defined as allow_targets = ProjectScope ∩ TargetAnchors(F) ∩ OperationPolicy, where allow_targets represents the final set of targets allowed for modification, ProjectScope represents the authorization boundaries of the current project and the current entity, TargetAnchors(F) represents the set of candidate targets determined by all target anchors in the factual record set F, and OperationPolicy represents the set of targets that the current operational policy allows to be reached. The symbol ∩ represents the intersection of sets, meaning that a target must simultaneously satisfy all three types of constraints to enter the execution envelope. It is important to note that prohibited targets take precedence over allowed targets; conflicting facts enter a review or rejection final state, and generative executors must not expand the target scope on their own. The target scope can be represented using file paths and line ranges, document block identifiers, JSON Pointers, XPath, database tables and primary keys, field masks, graph node identifiers, or context anchors.

[0160] The system reads the current version of all allowed targets and related source materials, forming a base_version_vector. The version can be a file summary, document revision number, database transaction sequence number, or version vector. This vector is used for status comparisons during both the verification and commit phases.

[0161] Authorization records required to delete, overwrite formal conclusions, downgrade access levels, or move across projects must be linked to fact identifiers, evidence anchors, target anchors, operation type, target baseline version, validity period, and allowed number of uses. General task approvals do not constitute valid authorization for destructive operations.

[0162] Furthermore, after generating the execution envelope, the system needs to seal it. Specifically, the system normalizes and serializes the execution envelope and calculates the envelope_hash. After the execution envelope is delivered to the candidate generation module, it enters a read-only state. Any constraint changes will generate a new envelope summary and new candidate results, and out-of-bounds differences are not allowed to be recognized during the verification phase. It is understandable that the purpose of sealing the execution envelope after generation is to solidify all constraints of this knowledge base update transaction, locking the allowed target, prohibited target, source version, target baseline version vector, allowed operations, etc., into a read-only state to prevent tampering or relaxation of constraints after candidate generation to recognize out-of-bounds candidate changes.

[0163] Step S140: Send the execution envelope and a baseline snapshot that allows modification of the target to the nondeterministic generative executor so that the nondeterministic generative executor generates candidate objects and their candidate summary values ​​in the isolation staging area.

[0164] The isolated staging area represents a storage region isolated from the formal knowledge base commit channel, used to store candidate results and intermediate verification artifacts. Candidate results cannot affect the formal knowledge base until a valid transaction commit credential is obtained. Generative executors only have write permissions to the isolated staging area; they do not hold the transaction commit credential required for the formal knowledge base commit interface, nor can they call the credential issuance module. The isolated staging area can be a temporary directory, a container file system, a copy-on-write branch, a database temporary table, a document draft, an object storage temporary prefix, or a memory image.

[0165] Generative executors can be large language models, information extraction models, rule templates, program synthesizers, multi-agent systems, or combinations thereof. The output of a generative executor first forms candidate changes without bypassing the formal submission threshold.

[0166] Understandably, generative executors can maintain nondeterminism, with the occurrence of formal writes determined by repeatable actual difference checks, closure proofs, and credential checks, thus reducing the impact of model randomness on the formal knowledge state.

[0167] Furthermore, after the candidate digest is generated, the candidate object enters a read-only, pending verification state. If any change occurs to the candidate content, the original candidate digest, original verification report, original closure proof, and original transaction commit certificate all become invalid, and the system must re-execute the difference reconstruction and verification.

[0168] Step S150: Calculate the normalized actual difference set based on the baseline snapshot and candidate objects using a validator that is independent of the nondeterministic generative executor.

[0169] Here, a validator (independent validator) can represent a verification module that is separate from the candidate generation process, at least in terms of submission authority, and does not rely on the self-declaration of the generative executor. The independent validator recalculates the actual differences based on the baseline snapshot and candidate results, and performs deterministic verification and closure proof.

[0170] Independent validators can be deployed with nondeterministic generative executors in different processes, containers, or services, or they can be implemented in the same process with independent permission domains and deterministic code. Validators can execute all verifications serially, or multiple verification submodules can execute in parallel and then combine the results.

[0171] Understandably, the validator reconstructs the actual differences from the trusted benchmark snapshot and candidate objects, and the executor's self-reported operation logs and fact mappings are only used for comparison. Therefore, erroneous results cannot pass verification solely based on the error descriptions generated at the same time, thus avoiding verification bypass caused by the generator's self-verification.

[0172] Step S160: Construct a two-way evidence closure diagram based on the evidence anchor points, the standardized actual difference set, the final state of the evidenced facts, and each fact record.

[0173] A bidirectional evidence closure graph can be represented as a data structure with evidence anchors, fact records, normalized actual differences, and justified fact final states as nodes, and support, authorization, realization, and termination relationships as edges. A bidirectional evidence closure graph can simultaneously prove that each input fact has been processed, and that each candidate difference has both input facts and valid evidentiary support. Closure relationships can be implemented using relation tables, adjacency lists, bipartite graphs, hypergraphs, event flows, directed aggregators (DAGs), content-addressable object sets, or other data structures capable of expressing the relationships between evidence, facts, differences, and final states.

[0174] When an input fact fails to form a formal knowledge base discrepancy, it must enter a pre-permitted, fully justified, and machine-verifiable final state. It cannot simply be marked as "processed" or ignored. Specific states include: applied, duplicated, temporarily stored, created for review, concurrent conflict, rejected, replaced, and out of bounds. For example: if the content already exists or is repeatedly associated, an existing knowledge object identifier must be bound; when entering manual review, a review item identifier must be bound; when a concurrent conflict occurs, a conflict identifier and version information must be bound; when rejected or out of bounds, the matching rule and reason must be recorded; when replaced by another fact, a substitute fact identifier must be bound. Facts that have already formed and submitted discrepancies can also enter the "applied" state. The core of the evidence-based final state is that each fact ultimately has a clear destination, and this destination is supported by verifiable records.

[0175] Specifically, a two-way evidence closure graph can be represented as G_U = (N_U, R_U), where N_U represents the set of nodes in the graph, and R_U represents the set of relation edges in the graph. Nodes record evidence, facts, actual differences, and the final state of the evidence-based facts, while relation edges record evidence support, factual authorization, realization of differences, and the attribution relationship of the final state.

[0176] Step S170: Verify the execution envelope, normalized actual difference set, and bidirectional evidence closure graph respectively. When all verifications pass, calculate the closed ledger root digest and generate a one-time transaction commit certificate that is bound to the execution envelope, the candidate digest value, the target baseline version vector, and the closed ledger root digest.

[0177] The closed ledger root digest can represent the digest value calculated after normalizing and sorting the nodes, edges, verification results, and final states of facts in the bidirectional evidence closed graph. It is used to bind the current closure proof and detect tampering of nodes, mappings, or final states that occurs after verification. The closed ledger root digest can be implemented using a hash tree root, a normalized sequence digest, or a data representation with equivalent tamper-proof capabilities. As long as it can simultaneously verify that each fact has a result and each discrepancy has a valid source, it is considered an equivalent implementation.

[0178] Understandably, the verification of the execution envelope, normalized actual difference set, and two-way evidence closure graph can be implemented through a validator. After completing the verification of the execution envelope, normalized actual difference set, and two-way evidence closure graph, the validator can generate an object-level verification report to record the normalized difference unit, the status of each verification item, failed objects, failed differences, the current version vector, the envelope digest used, and the candidate digest. The verification report is then used for subsequent two-way closure proofs, but it does not grant formal submission permission itself.

[0179] Specifically, the structure of the validation report can be represented as ValidationReport={candidate_id,envelope_hash,candidate_hash,normalized_diffs,check_results,failed_objects,current_version_vector,validator_id,validated_at}. Here, candidate_id is the identifier of the candidate change package being validated, envelope_hash is the execution envelope digest reconfirmed during validation, candidate_hash is the candidate object digest recalculated during validation, normalized_diffs is the set of normalized actual differences reconstructed by independent validators, check_results is the result set of validation items such as envelope, version, evidence, operation, structure, budget, and intent, failed_objects is the set of target objects, difference units, and failure reasons that failed validation, current_version_vector is the target current version vector read during validation, validator_id is the validator instance, process, or service identifier that performed this validation, and validated_at is the time when this validation was completed.

[0180] A one-time transaction commit credential represents a machine-verifiable data object generated by an independent validator or credential issuance module only after all envelope verification, actual difference verification, and two-way closure proof have passed. A one-time transaction commit credential must at least bind an envelope digest value, a candidate digest value, a target version vector, and a closed ledger root digest, and preferably include a unique random number, an expiration period, a validator identifier, and a consumable status. The transaction commit module only accepts valid and unconsumed transaction commit credentials.

[0181] Specifically, one-time transaction commit credentials can be signature tokens, message authentication code objects, one-time database records, protected capability handles, short-term leases, hardware security module-issued tickets, or comparison and exchange parameters bound to candidate versions. Credentials can be issued directly by independent validators or by dedicated credential modules that only receive verification reports and closing ledger root summaries.

[0182] For example, a one-time transaction commit certificate can be represented as:

[0183] CommitCertificate={certificate_id,envelope_hash,candidate_hash,base_version_vector,closure_ledger_root,validator_id,nonce,expires_at,consume_state,signature}.

[0184] Among them, certificate_id is the unique identifier of a one-time transaction commit credential, envelope_hash represents the execution envelope digest, candidate_hash represents the candidate object digest, base_version_vector represents the target base version vector, closure_ledger_root represents the closure ledger root digest, validator_id represents the validator identifier corresponding to the issuance basis, nonce represents a unique random number to prevent credential replay, expires_at represents the credential expiration time, consume_state represents the status of the credential as not yet consumed, being consumed, or already consumed, and signature is the digital signature or message authentication code for verifying the integrity of the credential and the issuing entity.

[0185] Furthermore, a one-time transaction commit credential may include a digital signature or message authentication code. The credential is bound to an exact envelope, an exact candidate, an exact version, and an exact closure proof, and cannot be used for other candidates or other versions.

[0186] Step S180: Read the target current version vector. When the target current version vector is equal to the target base version vector and the one-time transaction commit credential is valid and has not been consumed, atomically consume the one-time transaction commit credential and update the knowledge base according to the target base snapshot.

[0187] Atomic commit refers to a commit method where, within a commit lock, compare-and-swap operation, or database transaction, the transaction commit module reconfirms the target version vector and consumes the transaction commit credentials all at once, ensuring that the candidate change set either all become the new version in the official knowledge base or none of them take effect. Atomic commits can be implemented through database transactions, conditional writes, atomic renaming, two-phase commits with commit lists, version branch switching, or document batch revision interfaces.

[0188] The candidate change set can contain a candidate change package CandidatePackage={candidate_id,update_id,intent_hash,envelope_hash,candidate_objects,candidate_hash,claimed_fact_map,evidence_refs,operation_log}. candidate_id is the unique identifier of the candidate change package; update_id is the identifier of the update transaction to which the candidate change package belongs; intent_hash is the execution intent summary used when the candidate was generated; envelope_hash is the execution envelope summary used when the candidate was generated; candidate_objects are all candidate files, document blocks, records, or graph nodes formed in the isolated staging area; candidate_hash is the normalized summary value of all candidate objects; claimed_fact_map is the mapping between the facts claimed by the generative executor and the candidate objects, used only as verification input; evidence_refs is the set of evidence anchor identifiers referenced by the candidate result claims; and operation_log is the operation log recorded during candidate generation, used only for verification assistance and auditing.

[0189] Specifically, after the transaction commit module acquires the commit lock or enters a database transaction, it reads the target current version vector.

[0190] Understandably, the formal knowledge base submission interface must accept transaction submission credentials. The submission interface will refuse to write if the credential does not exist, credential verification fails, the credential expires, the credential has been consumed, or the data bound to the credential is inconsistent with the current submission request. After the transaction submission module acquires the project lock, target object lock, database transaction, or compares and exchanges execution rights, it reads the target's current version vector again. Only if the current version vector equals the base version vector in the transaction submission credential is concurrency allowed; otherwise, the candidate is converted to a concurrent conflict state, and the original credential becomes invalid.

[0191] The transaction commit module uses a random number or credential identifier as the key to change the consumption status from unconsumed to consumed through unique constraints, comparison and swap, or transaction records. Credential status changes and formal knowledge base version switching occur within the same transaction boundary or the same recoverable commit protocol, thus preventing retries, replays, or concurrent requests from repeatedly committing the same candidate credential.

[0192] Furthermore, because the transaction commit credentials are bound to the envelope digest, candidate digest, closing ledger root digest, and version vector, the version needs to be compared again within the lock during the commit to prevent old verification results from being applied to the new target state or the replaced candidate content.

[0193] For the database knowledge base, the system writes all differences and consumes credentials within a single database transaction. For the file knowledge base, the system writes candidate files, commit lists, and credential consumption records to the same file system staging area, synchronizes them to disk, and then uses an atomic switch of the directory pointer or commit list to create a new version. For online documents, the system uses draft versions, conditional batch updates with revision numbers, or equivalent transaction interfaces.

[0194] For crash recovery, the system prepares, commits, or aborts a single commit record (the commit list, temporary objects, credential consumption records, and official version pointer constitute the recoverable protocol). Upon initiating recovery, if the official version pointer has not yet been switched, temporary candidates are cleaned up or retained, and the transaction is marked as aborted. If the version pointer has been switched but the audit event has not yet been completed, the audit event is written based on the commit list and transaction commit credentials, without reapplying candidate differences.

[0195] In addition, if any of the validations for the envelope, normalized actual difference set, and bidirectional evidence closure graph fails, or if the target current version vector is not equal to the target baseline version vector, or if the one-time transaction commit credential has been consumed, the current version of the knowledge base is maintained. The system may retain candidates, generate review items, re-acquire source and target versions, or reject updates, but it must not write to the formal knowledge base first and then rely on the generative executor for correction.

[0196] The knowledge base update method for nondeterministic generative executors provided in this embodiment acquires controlled source material with a source version of the knowledge base and a target baseline snapshot of the knowledge base. It creates an evidence anchor point containing the source version and a target anchor point containing the target baseline snapshot. Based on the evidence anchor point and the target anchor point, multiple fact records generated from the controlled source material are processed. According to the evidence anchor point, the target anchor point, the knowledge base authorization scope, and each fact record, an execution envelope containing a vector allowing modification of the target and the target baseline version is generated. The execution envelope and the baseline snapshot allowing modification of the target are sent to the nondeterministic generative executor, enabling the nondeterministic generative executor to generate candidate objects and their candidate summary values ​​in an isolated temporary storage area. This is achieved independently of the nondeterministic generative executor... The executor's verifier calculates the normalized actual difference set based on the baseline snapshot and candidate objects. It then constructs a bidirectional evidence closure graph based on the evidence anchor, the normalized actual difference set, the final state of the supported facts, and each fact record. The verifier validates the execution envelope, the normalized actual difference set, and the bidirectional evidence closure graph. When all validations pass, it calculates the closed ledger root digest, generating a one-time transaction commit document bound to the execution envelope's digest value, candidate digest value, target baseline version vector, and closed ledger root digest. It reads the target current version vector; if the target current version vector equals the target baseline version vector and the one-time transaction commit document is valid and not consumed, it atomically consumes the one-time transaction commit document and updates the knowledge base according to the target baseline snapshot. Thus, limiting the generative output to isolated candidates and independently reconstructing the normalized actual differences, synchronously detecting input omissions and unsupported output expansion through bidirectional evidence closure, and binding the validation results and version states with one-time transaction documents, with atomic commits within the lock ensuring consistent updates, significantly improves the determinism, compliance, and traceability of knowledge base updates.

[0197] In some embodiments of this application, the process of creating an evidence anchor point containing the source version, as mentioned in the foregoing embodiments, is described, specifically including:

[0198] S1. Identify the evidence fragments of the controlled source material.

[0199] Specifically, valid evidence fragments that can support the derivation of facts in the knowledge base can be screened from the controlled source materials that have been captured and verified, while irrelevant noise text, invalid annotations, and content that is not related to the current update transaction are filtered out. The corresponding paragraphs, message fragments, document blocks, or database field ranges within the source materials are located in combination with the business scenario to ensure that the selected evidence fragments are the original supporting materials for subsequent fact records and to avoid introducing irrelevant content that may interfere with the subsequent evidence verification process.

[0200] S2. Generate source ID based on evidence fragments and source version.

[0201] Specifically, a source ID can be generated based on the unique identifier of the currently controlled source material, the fixed source version information at the time of capture, and the location information of the evidence fragment within the source material. This source ID is globally unique and can stably point to the corresponding controlled source material object. The source ID does not change with subsequent modifications to the source material and is used to bind the evidence anchor point to the original controlled source material, supporting the rapid location and tracing of the corresponding source material entity in subsequent verification stages.

[0202] S3. Normalize the evidence fragments to obtain normalized evidence fragments, and calculate the fragment summary value of the normalized evidence fragments.

[0203] Specifically, the selected evidence fragments can be normalized to eliminate irrelevant format differences that do not affect semantics, such as format symbols, extra line breaks, and spaces, and output normalized evidence fragments. A hash algorithm is then called to perform a digest operation on the normalized evidence fragments to obtain a fragment digest value. This digest value is used to subsequently verify whether the evidence fragments have been tampered with or whether the content has been offset or replaced, thus achieving machine-reproducible evidence integrity verification.

[0204] S4. Based on the source ID, source version, the range of the evidence fragment in the controlled source material, the fragment summary value, and the business function and operation type supported by the evidence fragment, create evidence anchors.

[0205] Specifically, the source ID, source version, location range of the evidence fragment, and fragment summary value can be encapsulated, along with the business functions that the evidence fragment can support, such as allowed operations like adding, replacing, and deleting, to assemble a complete evidence anchor. The evidence anchor is machine-verifiable; during subsequent verification, the source material can be reread and each field compared to confirm the evidence's validity.

[0206] The final evidence anchor can be represented as `EvidenceAnchor={source_id, source_revision, span, quote_hash, evidence_role}`. In this structure, `source_id` represents the unique identifier of the source material to which the evidence belongs; `source_revision` represents the fixed source version corresponding to the evidence; `span` represents the range of the evidence fragment within the source material; `quote_hash` represents the normalized summary value of the evidence fragment; and `evidence_role` represents the business function and operation type that the evidence can support, such as adding evidence, replacing evidence, deleting evidence, or conflicting evidence. It is understandable that when a verifier, independent of the non-deterministic generative executor, rereads the corresponding source version or trusted source snapshot, it must confirm that the fragment range is valid and that the fragment summary value is consistent with `quote_hash`. For operations such as deletion, replacement, or downgrading access levels, `evidence_role` must allow the corresponding operation.

[0207] In some embodiments of this application, the process of creating a target anchor point containing a target reference snapshot, as mentioned in the foregoing embodiments, is described. This process may include:

[0208] S1. Determine the target object to be updated based on the target baseline snapshot, and generate the ID of the target object to be updated.

[0209] Specifically, the system can read the target baseline snapshot corresponding to the formal knowledge base, and filter out the target objects to be updated in this update transaction. Target objects can be documents, database records, knowledge graph nodes, etc. A globally unique target object ID is assigned to this object. This ID is independent of the object's business name and is not affected by object renaming. It is used to uniquely identify the target object throughout the entire process, achieving a reliable binding between the anchor point and the knowledge base object.

[0210] S2. Determine the allowed modification range of the target object to be updated, the target location to be modified within the target object, and determine the allowed modification operations for the target location.

[0211] Specifically, by combining the knowledge base project authorization strategy and the business semantics of fact records, the permissible scope of structural modifications that can be made to the object under this transaction can be defined, and the target location within the object that needs to be changed can be located. At the same time, the set of operations that can be executed at this location can be configured, distinguishing between operations such as adding, replacing, deleting, and associating, excluding unauthorized destructive operations, and intercepting and constraining operations that are not allowed to be executed.

[0212] S3. Generate structural locators based on the target location.

[0213] Specifically, a corresponding structural locator can be generated based on the storage medium type of the target location to be modified. For text files, line intervals can be used; for structured documents, block identifiers can be used; for databases, table primary keys and field paths can be used; and for knowledge graphs, node identifiers can be used. This locator accurately points to the modification point inside the target object in a machine-readable form, shielding it from interference from document format and layout, and ensuring that the modification location to be verified can be accurately located in the subsequent verification stage.

[0214] S4. Calculate the content summary value of the target content to be modified in the target object to be updated.

[0215] Specifically, the original content at the target location to be modified under the target baseline snapshot can be read, content normalization processing can be performed to eliminate format differences that do not change the business semantics, and then the corresponding content digest value, i.e., the previous image digest, can be calculated through a hash algorithm. This digest value solidifies the original content state of the target location before candidate generation. In subsequent verification processes, the digest can be compared to determine whether the original content in the baseline stage has undergone unexpected changes.

[0216] S5. Create a target anchor point based on the id of the target object to be updated, the target location, the allowed modification range of the structure, the target baseline snapshot, the content summary value, the allowed modification operations, and the structure locator.

[0217] Specifically, all the above parameters are structured and encapsulated to assemble a complete, machine-resolvable target anchor. The target anchor encapsulates all the constraints of this update and is fixed before candidate generation. In subsequent verification stages, all fields within the anchor can be read to verify whether the candidate changes fall within the preset permission and version constraints.

[0218] The final target anchor can be represented as: TargetAnchor={target_id, structural_locator, allow_range, base_version, preimage_hash, allowed_operation, structure identifier}. In this structure, target_id represents the unique identifier of the target object to be updated; structural_locator represents the section, block, field, or node position within the target; allow_range represents the allowed structural range for modification; base_version represents the baseline version of the target based on which the candidate was generated; preimage_hash represents the summary value of the target content before modification; allowed_operation represents the allowed operations such as adding, modifying, associating, moving, or deleting at this target position; and structure identifier is the structural locator, which can be a file section, document block identifier, database primary key and field path, or knowledge graph node identifier. Target anchors can be generated by rule mapping, index retrieval, model recommendation, or manual selection, but must be fixed before candidate generation.

[0219] In some embodiments of this application, the process by which the nondeterministic generative actuator mentioned in the foregoing embodiments generates candidate objects and their candidate digest values ​​in an isolation buffer is described. This process may include:

[0220] S1. The nondeterministic generative executor generates candidate objects in the isolated storage area based on evidence anchors, baseline snapshots, allowed operating ranges, each fact record, and the execution intent of the fact records.

[0221] Specifically, the nondeterministic generative executor can only access the isolated staging area and does not have write permissions to the formal knowledge base. It receives inputs including evidence anchors, target baseline snapshots, the allowed operation range defined by the execution envelope, all fact records, and the corresponding execution intent. Within the isolated staging area, it performs change deduction and outputs candidate objects derived from business logic. The generation process strictly adheres to the business semantics defined in the fact records. Evidence anchors provide the source material evidence constraints upon which the change is based, the baseline snapshot provides the original reference base for the change, the allowed operation range constrains the executor to prevent modifications beyond the authorized boundaries, and the execution intent limits the expected change semantics such as addition, replacement, and deletion. All output results are stored only in the isolated staging area and do not affect the formal knowledge base in any way.

[0222] S2. The nondeterministic generative executor normalizes the candidate objects and calculates the candidate summary value of the normalized candidate objects through the summary calculation function.

[0223] Specifically, the nondeterministic generative executor performs deterministic normalization on all candidate objects generated within the isolated temporary storage area. This eliminates format differences within the objects that do not alter the business semantics, such as field order, line breaks, extra spaces, and irrelevant formatting tags, thus avoiding inconsistencies in summary calculation results caused by format disturbances. After normalization, a preset summary calculation function is called to perform a hash operation on all normalized candidate objects, yielding a unique candidate summary value. This candidate summary value solidifies the overall state of the candidate objects, and subsequent independent verification stages can recalculate this summary to detect whether candidate objects have been tampered with or replaced.

[0224] In some embodiments of this application, the process mentioned in the foregoing embodiments of calculating a normalized actual difference set based on a baseline snapshot and candidate objects using a validator independent of a nondeterministic generative executor is described. This process may include:

[0225] S1. Through a validator independent of the nondeterministic generative executor, candidate objects and benchmark snapshots are converted into comparable structures to obtain comparable candidate objects and comparable benchmark snapshots.

[0226] Specifically, the verifier and the non-deterministic generative executor have isolated permissions. The verifier does not accept auxiliary information such as operation logs and self-reported change mappings output by the generator; it only reads the original candidate objects and the target baseline snapshot. Based on the storage medium type corresponding to the target object, an appropriate parser is called to parse both, stripping away non-business-meaning surface information such as file format tags and display styles, eliminating interference from layout and symbols, and uniformly converting the candidate objects and baseline snapshots into structurally aligned, machine-comparable candidate objects and comparable baseline snapshots, thus eliminating comparison barriers caused by different storage formats.

[0227] S2. The validator performs a normalized difference comparison between the comparable candidate objects and the comparable benchmark snapshot according to the preset difference mode, and obtains the normalized actual difference set.

[0228] Specifically, the verifier loads a predefined predefined difference pattern within the execution envelope. This difference pattern specifies the representation of difference units under different storage media; for example, text uses line intervals, and databases use field paths. It performs a unit-by-unit comparison of comparable candidate objects and comparable baseline snapshots, identifying various real changes such as additions, modifications, deletions, and associations. These identified changes are then uniformly converted into standardized, normalized difference units. All difference units together constitute a normalized actual difference set. This difference set originates entirely from an objective comparison of the two snapshots, is unaffected by the output of the generative executor, and objectively reflects all real changes to the candidate object relative to the baseline snapshot.

[0229] The normalized actual difference set can be represented as Delta_U = NormalizeDiff(Parse(B_U), Parse(C_U), DiffSchema_U). Here, Delta_U represents the normalized actual difference set of the update transaction package U, B_U represents the trusted baseline snapshot of the target object, C_U represents the candidate objects in the isolated staging area, Parse represents the conversion of the baseline and candidates into a comparable structure using the corresponding storage media resolver, DiffSchema_U represents the pre-fixed difference pattern of transaction package U, and NormalizeDiff represents the process of converting the comparison results into uniformly normalized difference units.

[0230] In some embodiments of this application, the process of verifying the execution envelope mentioned in the foregoing embodiments is described, specifically including:

[0231] S1. Recalculate the first digest value to be verified for the execution envelope using the validator.

[0232] Specifically, the validator reads the complete execution envelope raw data corresponding to this update transaction, performs normalized serialization processing on the execution envelope according to the same serialization rules as in the generation stage, eliminates calculation deviations caused by field order and format symbols, and recalculates using the same hash algorithm to obtain the first digest value to be verified. This step is used to verify the integrity of the execution envelope data, identify situations where the execution envelope has been tampered with or modified after the candidate generation, and ensure that the constraints have not been changed afterward.

[0233] S2. Recalculate the second verifiable summary value of the execution intent for each fact record using the validator.

[0234] Specifically, the validator iterates through all fact records within the transaction, reads the pre-determined execution intent of each fact record, processes the execution intent text using the normalized sorting rules from the generation phase, shields against format disturbances, and generates corresponding second digest values ​​to be verified one by one. This verification is used to confirm that the expected change semantics corresponding to the fact have not been tampered with, preventing the execution intent from being manually replaced after candidate generation, and avoiding deviations between actual changes and original business expectations.

[0235] S3. Recalculate the candidate digest value to be verified for the candidate object through the validator.

[0236] Specifically, the verifier reads the set of candidate objects to be verified from the isolated temporary storage area, reuses the normalization logic that is completely consistent with the candidate generation stage, normalizes the content, object order, and field arrangement of the candidate objects, and then performs a hash digest operation to obtain the digest value of the candidate to be verified. This operation is independent of the generative executor and is used to detect whether the candidate objects have been tampered with, replaced, or had their content modified after generation, ensuring that the candidate to be verified is consistent with the initially generated candidate.

[0237] S4. If the first summary value is consistent with the first summary value to be verified, and the second summary value of each fact record is consistent with the second summary value to be verified, and the candidate summary value is consistent with the candidate summary value to be verified, then the envelope verification passes; otherwise, the envelope verification fails.

[0238] The first digest value can represent the digest value envelope_hash calculated on the execution envelope after it is generated. The second digest value can represent the digest value intent_hash calculated on the execution intent after each fact record is extracted and the execution intent for that fact record is generated.

[0239] Specifically, the verifier compares each recalculated digest to be verified with the envelope_hash, intent_hash, and candidate digest values ​​that were permanently saved during the generation phase. Only when all three digests match, indicating that the execution envelope, execution intent, and candidate object have not been tampered with, is the execution envelope verification considered successful. If any digest comparison fails, the verification is directly deemed unsuccessful, the subsequent verification process is terminated, and the process is rejected from entering the credential issuance stage.

[0240] In some embodiments of this application, the verification process of the normalized actual difference set mentioned in the foregoing embodiments is described. This verification process may include target object verification, version verification, evidence binding verification, operation verification, description structure verification, budget verification, and intention verification. Figure 1 The normalized actual difference set is considered to have passed the consistency check only if all of these checks pass; otherwise, the normalized actual difference set fails the check.

[0241] Specifically, the aforementioned embodiments may allow multiple modified targets, and the execution envelope also includes structural constraints, a set of allowed evidence for each modified target, and a set of allowed operations. Target object verification verifies whether each target object within the normalized actual difference set is a modified target and not a prohibited target, and whether each difference unit in the normalized actual difference set is within its corresponding allowed range. Version verification verifies whether the base version of the execution envelope is the version of the target base snapshot. Evidence binding verification verifies whether each piece of evidence used to support the normalized actual difference set belongs to the allowed evidence set, and whether the evidence allows its corresponding operation. Operation verification verifies whether each operation derived from the normalized actual difference set belongs to the allowed operation set. Structure verification verifies whether the structure of the normalized actual differences within the normalized actual difference set conforms to structural constraints. Budget verification verifies whether the total amount of data within the normalized actual difference set exceeds the change budget (the change budget can be the maximum number of rows, fields, or records to be changed, calculated based on the number of allowed targets, the number of facts, the operation type, and the risk level. The change budget is used to limit unexpected expansion and is not the sole basis for judging the correctness of the content). Figure 1 Consistency checks verify whether the semantic intent of the normalized actual difference set transformation operation does not exceed the preset range of the preset execution intent. Each check is considered passed if its result is "yes".

[0242] In some embodiments of this application, the verification process of the two-way evidence closure diagram mentioned in the foregoing embodiments is described. The normalized actual difference set may include multiple normalized actual difference information entries. The two-way evidence closure diagram contains multiple first nodes representing fact records, multiple second nodes representing normalized actual difference information entries, a third node representing the final state of the supported fact, and a fourth node representing the evidence anchor point. Based on this, the verification process of the two-way evidence closure diagram specifically includes:

[0243] Perform the first and second verifications.

[0244] The first check verifies whether each first node leads to a second or third node, and the second check verifies whether each second node leads to a fourth node via at least one first node. Both checks are considered successful if the result of either check is "yes".

[0245] Specifically, for each input fact f, the system requires that there exists at least one path from the fact to the normalized difference unit or the valid final state:

[0246]

[0247] in, This indicates that each input fact f is checked, InputFacts(U) represents the set of input facts that update the transaction package U, Path represents the reachable path in the closed graph, Delta_U represents the set of normalized actual differences, and ValidTerminalStates represents the set of justified final states. This indicates that the fact has at least one path leading to the actual difference or valid final state. Understandably, positive fact closure is used to discover silent omissions of input facts.

[0248] For each normalized difference unit delta, the system requires that there exists at least one valid evidence anchor point leading to that difference unit via the fact record:

[0249]

[0250] Here, delta represents any normalized actual difference unit, e represents a valid evidence anchor, f represents a fact record, Supports(e,f) indicates that evidence anchor e can support fact f, and Materializes(f,delta) indicates that fact f is authorized and implemented by difference delta. This expression requires that each actual difference has a complete "evidence-fact-difference" reverse tracing path. It is understood that evidence anchors must have been verified through source version and fragment summary, and the target anchor and operation type of the fact must cover the difference. Reverse difference closure is used to discover unfounded differences formed by model priors, contextual contamination, or out-of-bounds extensions.

[0251] If both the first and second checks pass, the two-way evidence closure diagram verification passes; otherwise, the two-way evidence closure diagram verification fails.

[0252] Understandably, forward fact closure identifies unprocessed inputs, while reverse difference closure identifies additional outputs lacking factual or valid evidence sources. Both directions share the same closure graph, avoiding inconsistencies caused by separate statistics. Forward fact closure checks that all input facts have received difference or valid final state processing, preventing fact omissions; reverse fact closure ensures that every actual difference can be traced back to a valid evidence anchor point, intercepting unfounded content generation. Both conditions must be met simultaneously for the bidirectional evidence closure graph to pass verification; failure to meet either condition results in verification failure, thus ensuring the integrity and reliability of knowledge base change sources.

[0253] In some embodiments of this application, the process of calculating the root summary of the closed ledger mentioned in the foregoing embodiments is described, and the process may include:

[0254] S1. Based on the final state of the facts and the verification results of the two-way evidence closed graph, the edges and nodes are normalized and sorted to obtain the closed ledger.

[0255] Specifically, the validator extracts all nodes and relational edges of the bidirectional evidence closure graph. Nodes include evidence anchors, fact records, normalized actual difference units, and evidenced fact final states. Relational edges represent the logical connections between evidence, facts, and differences. The verification results of both forward and reverse closures are also included. All the above elements are deterministically normalized and rearranged according to a preset fixed sorting rule to eliminate data performance differences caused by different storage and traversal orders. All sorted elements are then aggregated and assembled to form a closed ledger, ensuring that the data arrangement of the closed ledger is unique and fixed under the same input conditions.

[0256] S2. Calculate the root summary of the closed ledger.

[0257] Specifically, the closed ledger after normalization and sorting can be serialized uniformly. A preset hash algorithm is used to perform a digest operation on the serialized data to generate a root digest of the closed ledger. This digest uniquely represents the current set of evidence relationships, discrepancies, final states of facts, and closure verification results. If any part of the evidence chain, discrepancy unit, or final state of facts is modified, the root digest will change accordingly. Subsequently, this root digest is bound to the transaction commit credential to verify that the entire set of closure proofs has not been tampered with, providing a tamper-proof verification credential for knowledge base transaction commits.

[0258] The structure of the closed ledger after obtaining the root digest of the closed ledger can be represented as ClosureLedger={update_id,evidence_nodes,fact_nodes,diff_nodes,terminal_nodes,relation_edges,forward_closure,reverse_closure, closure_ledger_root}. Wherein, update_id is the identifier of the update transaction to which the closed ledger belongs, evidence_nodes is the set of evidence anchor nodes that have been verified by the source version and fragment digest, fact_nodes is the set of fact record nodes for this update transaction, diff_nodes is the set of normally reconstructed actual difference nodes, terminal_nodes is the set of fact final state nodes that do not produce formal differences but have evidence, relation_edges is the set of relation edges for evidence supporting facts, fact authorizing differences, difference realizing facts, and facts entering the final state, forward_closure is the forward closure result of whether each input fact leads to an actual difference or a valid final state, reverse_closure is the closure result of whether each actual difference can be traced back to valid evidence through facts, and closure_ledger_root is the root digest of the closed ledger nodes, relations, final states, and verification results after normalization.

[0259] In the following embodiments, several possible scenarios and their implementation processes during the knowledge base update process for nondeterministic generative actuators mentioned in the foregoing embodiments will be described in detail.

[0260] The first type is multi-fact transaction updates to the interface contract document.

[0261] The system received a review summary and extracted the following four facts: f_1: Interface A added a new return field status_code; f_2: The type of the field request_id was changed from integer to string; f_3: The old field legacy_token will be deleted in the next version; f_4: The permission configuration remains unchanged.

[0262] The system establishes evidence anchors for each of the four facts, limiting the target anchor to section A of the interface contract document. For f_3, since deletion is involved, the execution envelope requires an approved deletion authorization bound to the fact and the target section. For f_4, the execution intent explicitly prohibits modification of permission configurations.

[0263] The nondeterministic generative executor generates candidate differences in the isolated staging area: it adds a status_code, modifies the request_id type, marks legacy_token as to be deleted in the next version, and does not modify the permission configuration. The independent validator confirms that the difference is located in the allowed section, the current version is equal to the base version, each knowledge block references allowed evidence, and the deletion action is actually a "deprecation mark" rather than immediate deletion.

[0264] The coverage rate is: All four facts in the ledger record have results.

[0265] Coverage(U_1) = 4 / 4 = 1. Here, U_1 represents the first update transaction in this embodiment; Coverage(U_1) represents the fact processing coverage of this update transaction, with the numerator being the number of input facts that have formed normalized actual differences or entered an evidenced final state, and the denominator being the total number of input facts. 4 / 4 = 1 indicates that all four input facts have been processed. Orphans(U_1) represents the set of actual differences lacking input facts and valid evidence support, and |Orphans(U_1)| = 0 indicates that there are no isolated differences.

[0266] Each candidate knowledge block can be mapped to a corresponding fact, and |Orphans(U_1)|=0. After the transaction commit module reconfirms the version, it atomically commits the entire batch of changes.

[0267] The second scenario is that concurrent modifications cause old candidates to become invalid without side effects.

[0268] At time t_0, the system reads the target document version v_12, writes it into the execution envelope, and generates candidate changes. During candidate generation, project members update the target document to v_13. The independent validator reads the current version at time t_1, obtaining current_version = v_13 ≠ base_version = v_12. Here, current_version represents the target current version reread during verification or submission; base_version represents the target baseline version on which candidate generation is based. v13 and v12 are two different version identifiers in this embodiment. Since v13 and v12 are inconsistent, candidate results generated based on the old baseline version cannot be used.

[0269] The baseline version validation failed. The system does not apply the old candidates to v_13, marks the relevant facts as CONFLICT_PENDING, and saves the old candidate differences for review. The official knowledge base continues to maintain v_13 submitted by project members. Subsequent processing requires regenerating the target anchor, executing the envelope, and candidate changes based on v_13.

[0270] The third type involves unauthorized candidate modifications being blocked by path and intent verification.

[0271] One update only allowed modification of the "Return Fields" section of docs / contracts / api.md, prohibiting modification of objects under bindings / and permissions / . In addition to modifying the API documentation, the generative executor also modified the client binding file in the candidate results and removed a source reference.

[0272] The independent validator identifies the changed object containing the binding file from the actual differences, resulting in: Changed(C_U)⊄allow_targets. Here, C_U represents the candidate change package for updating transaction U, Changed(C_U) represents the actual set of change targets obtained by independently comparing the baseline snapshot with the candidate objects, allow_targets represents the set of targets allowed to be modified by the execution envelope, and ⊄ indicates that the actual set of change targets is not a subset of the allowed set of targets, meaning that at least one out-of-bounds change target exists.

[0273] Meanwhile, source citation deletion lacks corresponding destructive operation authorization. Target boundary verification and deletion authorization verification both failed. Candidate differences are only retained in the isolated staging area; the official API documentation and binding files remain unchanged.

[0274] Fourthly, omission of some facts prevents seemingly correct candidate submissions.

[0275] The system extracts five facts from a meeting minutes. The four knowledge blocks generated by the generative executor all pass path, version, evidence, and structure checks, but fact f_5 does not have a corresponding normalized actual difference, nor does it enter a justified final state such as review, conflict, rejection, or remain unchanged.

[0276] After constructing the bidirectional evidence closure graph, the independent validator obtains: ClosedFacts={f_1, f_2, f_3, f_4}; UnclosedFacts={f_5}; ForwardClosure=false. Here, ClosedFacts(U_4) represents the set of facts in update transaction U_4 that have led to the actual difference or have a basis for the final state, and InputFacts(U_4) represents the complete set of input facts for this transaction. Equal values ​​for both indicate that the fact side is completely closed. This indicates that there are no unclosed facts, and ForwardClosure(U_4)=true indicates that the forward closure determination is successful.

[0277] Therefore, the positive fact closure is not valid, the voucher issuance module does not generate a transaction commit voucher, and the transaction commit module cannot commit the batch of candidates. The system requires supplementary processing of f_5, or, based on the verified evidence, generating a justifiable final state and then re-performing the difference reconstruction and closure check. This embodiment illustrates that the present invention can detect silent omissions within a batch that ordinary object-level checks cannot detect.

[0278] The fifth method involves isolating knowledge blocks to prevent prior knowledge from entering the knowledge base.

[0279] The system input facts only involve fields returned by the interface. The generative executor additionally generates a knowledge block stating "This interface should be taken offline in the third quarter," but this conclusion lacks corresponding input facts and evidence anchors.

[0280] The isolated knowledge block detection yielded: Orphans(U_5) = {Offline Conclusion Knowledge Block}. Here, U_5 represents the fifth update transaction in this embodiment, Orphans(U_5) represents the set of actual differences in this transaction that cannot be traced back to valid evidence through fact records, and the "Offline Conclusion Knowledge Block" is an isolated difference within this set. |Orphans(U_5)| = 1 indicates that the number of isolated differences is one, therefore the reverse closure determination failed.

[0281] Since |Orphans(U_5)|=1, candidate changes cannot be automatically submitted. The system can either delete the orphaned block and re-validate it, or generate a review item requiring supplementary source evidence.

[0282] In addition, to enable those skilled in the art to replicate the invention, a minimal system comprising a source snapshot store, an isolated candidate directory, a difference resolver, a closed ledger store, a voucher table, and a final version pointer can be constructed. The generative executor can only write to the isolated candidate directory; the independent validator only reads the source snapshot, the target baseline snapshot, the execution envelope, and the candidate objects; the transaction commit module is the only component capable of modifying the final version pointer and the voucher consumption status.

[0283] During verification, perform the following fault injection on the same update transaction:

[0284] 1. Delete a mapping from a fact to a difference or final state, confirm that the positive fact closure has failed and do not generate a transaction commit certificate;

[0285] 2. Inject knowledge blocks that lack input factual and evidence anchors into the candidate object to confirm that the reverse discrepancy closure has failed;

[0286] 3. After the candidate is generated, change the source material version or evidence fragment, and confirm that the evidence summary verification fails;

[0287] 4. After verification, change the target version and confirm that the version review within the lock invalidates the original voucher;

[0288] 5. Submitting the same voucher repeatedly will result in the unique random number being confirmed, and the consumption status is only allowed to be switched to the official version once.

[0289] 6. Simulate process crashes at different locations such as multi-object writes, version pointer switching, and audit event writes to confirm that after recovery, there are no partially visible official states and the candidate is not repeatedly applied;

[0290] 7. Modifying candidate content but reusing old validation reports led to the submission being rejected due to inconsistencies in the candidate summaries;

[0291] 8. Repeat the verification process for the same envelope, baseline snapshot, and candidate objects to confirm that the normalization differences, closed ledger root digest, and pass status are consistent.

[0292] Recordable technical metrics include unauthorized difference blocking rate, input omission detection rate, unsubstantiated difference detection rate, expired candidate blocking rate, credential replay blocking rate, number of partially visible versions after failure, number of times repeated application is performed after recovery, and consistency of verification result reproduction.

[0293] The following describes the system for updating the knowledge base for nondeterministic generative actuators provided in the embodiments of this application. The system for updating the knowledge base for nondeterministic generative actuators described below can be referred to in correspondence with the method for updating the knowledge base for nondeterministic generative actuators described above.

[0294] See Figure 3 , Figure 3 This is a schematic diagram of a system architecture for updating a knowledge base for a nondeterministic generative actuator, as disclosed in an embodiment of this application.

[0295] like Figure 3 As shown, the system may include:

[0296] The source material acquisition module 11 is used to acquire controlled source materials with a source version of a knowledge base and a target benchmark snapshot of the knowledge base;

[0297] Evidence anchor creation module 12 is used to create evidence anchors containing the source version;

[0298] Target anchor point creation module 13 is used to create target anchor points that include the target reference snapshot;

[0299] The fact record generation module 14 is used to generate multiple fact records from the controlled source material based on the evidence anchor and the target anchor.

[0300] The execution envelope generation module 15 is used to generate an execution envelope containing the vectors that allow modification of the target and the target baseline version, based on the evidence anchor, the target anchor, the knowledge base authorization scope, and each of the fact records.

[0301] The execution envelope sending module 16 is used to send the execution envelope and the baseline snapshot of the target that allows modification to be sent to the nondeterministic generative executor;

[0302] Nondeterministic generative executor 17 is used to generate candidate objects and their candidate summary values ​​in an isolated temporary storage area;

[0303] Independent validator 18 is used to compute a normalized actual difference set based on the baseline snapshot and the candidate objects;

[0304] The two-way evidence closure diagram construction module 19 is used to construct a two-way evidence closure diagram based on the evidence anchor points, the normalized actual difference set, the evidenced fact final state, and each of the fact records.

[0305] The closed ledger root digest calculation module 20 is used to verify the execution envelope, the normalized actual difference set, and the bidirectional evidence closure graph respectively, and calculate the closed ledger root digest when all verifications pass.

[0306] One-time transaction commit certificate generation module 21 is used to generate a one-time transaction commit certificate that is bound to the digest value of the execution envelope, the candidate digest value, the target base version vector and the closed ledger root digest;

[0307] The target current version vector reading module 22 is used to read the target current version vector;

[0308] The transaction commit module 23 is used to atomically consume the one-time transaction commit credential and update the knowledge base according to the target benchmark snapshot when the target current version vector is equal to the target base version vector and the one-time transaction commit credential is valid and has not been consumed.

[0309] Optionally, the evidence anchor point creation module includes:

[0310] An evidence fragment determination module is used to determine evidence fragments of the controlled source material;

[0311] The source ID generation module is used to generate a source ID based on the evidence fragment and the source version;

[0312] The fragment summary value calculation module is used to normalize the evidence fragments to obtain normalized evidence fragments, and to calculate the fragment summary value of the normalized evidence fragments;

[0313] The evidence anchor point establishment module is used to create evidence anchor points based on the source ID, the source version, the range of the evidence fragment in the controlled source material, the fragment summary value, and the business functions and operation types supported by the evidence fragment.

[0314] Optionally, the target anchor point creation module includes:

[0315] The module for generating the ID of the target object to be updated is used to determine the target object to be updated based on the target baseline snapshot and generate the ID of the target object to be updated.

[0316] The permissible modification information determination module is used to determine the permissible modification range of the target object to be updated, the target position to be modified within the target object to be updated, and the permissible modification operation of the target position;

[0317] A structural locator generation module is used to generate a structural locator based on the target location;

[0318] The content summary value calculation module is used to calculate the content summary value of the target content to be modified of the target object to be updated.

[0319] The target anchor point creation module is used to create a target anchor point based on the id of the target object to be updated, the target location, the allowed modification range of the structure, the target baseline snapshot, the content summary value, the allowed modification operation, and the structure locator.

[0320] Optionally, the system may also include:

[0321] An execution envelope sealing module is used to seal the execution envelope after the generation of the execution envelope containing the target baseline version vector.

[0322] Optionally, the nondeterministic generative actuator is further used for:

[0323] Based on the evidence anchor, the baseline snapshot, the allowed operation range, each of the fact records, and the execution intent of the fact records, candidate objects are generated in the isolation storage area;

[0324] The candidate objects are normalized, and the candidate summary value of the normalized candidate objects is calculated using a summary calculation function.

[0325] Optionally, the independent validator is also used for:

[0326] The candidate objects and the benchmark snapshot are converted into a comparable structure to obtain comparable candidate objects and comparable benchmark snapshots;

[0327] According to the preset difference mode, the comparable candidate objects and the comparable benchmark snapshot are compared in a normalized difference manner to obtain a normalized actual difference set.

[0328] Optionally, the system may also include:

[0329] The first digest value calculation module is used to calculate the first digest value of the execution envelope after the execution envelope is generated;

[0330] The second summary value calculation module is used to calculate the second summary value of the execution intent of each of the fact records after each fact record is generated;

[0331] The verifier is also used for:

[0332] The first digest value to be verified of the execution envelope is recalculated using the verifier.

[0333] The verifier recalculates the second verifiable summary value of the execution intent for each of the fact records.

[0334] The verifier recalculates the candidate digest value to be verified for the candidate object.

[0335] If the first digest value is consistent with the first digest value to be verified, and the second digest value of each fact record is consistent with the second digest value to be verified, and the candidate digest value is consistent with the candidate digest value to be verified, then the execution envelope verification passes; otherwise, the execution envelope verification fails.

[0336] Optionally, there may be multiple allowed modification targets, and the execution envelope includes structural constraints, a set of allowed evidence for each allowed modification target, and a set of allowed operations.

[0337] The independent validator is also used for:

[0338] Target object verification is performed, which verifies whether each target object in the normalized actual difference set is a permitted target and not a prohibited target, and whether each difference unit in the normalized actual difference set is within its corresponding permitted range.

[0339] A version verification is performed, wherein the version verification is to verify whether the base version of the execution envelope is the version of the target base snapshot;

[0340] Evidence binding verification is performed, which verifies whether each piece of evidence supporting the normalized actual difference set belongs to the allowed evidence set and whether the evidence allows its corresponding operation.

[0341] Perform operation verification, which involves verifying whether each operation derived from the normalized actual difference set belongs to the set of allowed operations.

[0342] Perform a structure check, which verifies whether the structure of the normalized actual differences within the normalized actual difference set conforms to the structure constraints.

[0343] Perform a budget verification, which involves verifying whether the total amount of data within the normalized actual difference set exceeds the change budget.

[0344] Intention Figure 1 Consistency verification, the meaning of Figure 1 The consistency check verifies whether the semantic intent of the operation of the normalized actual difference set transformation does not exceed the preset range of the preset execution intent;

[0345] If the target object verification, the version verification, the evidence binding verification, the operation verification, the structure verification, the budget verification, and the intention... Figure 1 If all consistency checks pass, the normalized actual difference set check passes; otherwise, the normalized actual difference set check fails.

[0346] Optionally, the standardized actual discrepancy set includes multiple standardized actual discrepancy information, and the two-way evidence closure diagram includes multiple first nodes representing the fact record, multiple second nodes representing the standardized actual discrepancy information, a third node representing the final state of the evidenced fact, and a fourth node representing the evidence anchor point.

[0347] The independent validator is also used for:

[0348] Perform a first verification and a second verification, wherein the first verification is to verify whether each first node leads to the second node or the third node, and the second verification is to verify whether each second node leads to the fourth node via at least one first node;

[0349] If both the first and second verifications pass, the two-way evidence closure diagram verification passes; otherwise, the two-way evidence closure diagram verification fails.

[0350] Optionally, the closed-loop ledger root summary calculation module includes:

[0351] The normalized sorting module is used to normalize and sort the edges and nodes of the two-way evidence closed graph, the final state of the evidenced facts, and the verification results of the two-way evidence closed graph to obtain a closed ledger.

[0352] The root summary calculation module is used to calculate the closed ledger root summary of the closed ledger.

[0353] Optionally, the target current version vector reading module includes:

[0354] The target current version vector reading submodule is used to read the target current version vector after the transaction commit module acquires the commit lock or enters a database transaction.

[0355] Optionally, the system may also include:

[0356] The knowledge base non-update module is used to maintain the current version of the knowledge base if any of the verifications of the execution envelope, the normalized actual difference set, and the bidirectional evidence closure graph fails, or the target current version vector is not equal to the target baseline version vector, or the one-time transaction commit certificate has been consumed.

[0357] The knowledge base updating method for nondeterministic generative actuators provided in this application can be applied to devices for updating the knowledge base of nondeterministic generative actuators, such as terminals like mobile phones and computers. Optionally, Figure 3 A hardware block diagram of a device for knowledge base updating for nondeterministic generative actuators is shown, with reference to... Figure 3 The hardware structure of a device for updating the knowledge base for a nondeterministic generative actuator may include: at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4.

[0358] In this embodiment of the application, the number of processor 1, communication interface 2, memory 3, and communication bus 4 is at least one, and processor 1, communication interface 2, and memory 3 communicate with each other through communication bus 4;

[0359] Processor 1 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.

[0360] Memory 3 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device;

[0361] The memory stores a program, which the processor can call. The program is used for:

[0362] Obtain controlled source material with a source version of the knowledge base and a target benchmark snapshot of the knowledge base; create an evidence anchor point containing the source version; and create a target anchor point containing the target benchmark snapshot.

[0363] Multiple fact records generated from the controlled source material based on the evidence anchor and the target anchor;

[0364] Based on the evidence anchor, the target anchor, the knowledge base authorization scope, and each of the fact records, an execution envelope containing the vectors that allow modification of the target and the target baseline version is generated;

[0365] Send the execution envelope and the baseline snapshot that allows modification of the target to the nondeterministic generative executor so that the nondeterministic generative executor generates candidate objects and their candidate summary values ​​in an isolated staging area;

[0366] A normalized actual difference set is computed based on the baseline snapshot and the candidate objects using a validator independent of the nondeterministic generative executor.

[0367] Based on the aforementioned evidence anchor points, the aforementioned normalized actual difference set, the definitive fact final state, and each of the aforementioned fact records, a two-way evidence closure diagram is constructed;

[0368] The execution envelope, the normalized actual difference set, and the bidirectional evidence closure graph are verified respectively. When all verifications pass, the closed ledger root digest is calculated, and a one-time transaction commit certificate is generated that binds the digest value of the execution envelope, the candidate digest value, the target baseline version vector, and the closed ledger root digest.

[0369] Read the target current version vector. When the target current version vector is equal to the target baseline version vector and the one-time transaction commit credential is valid and has not been consumed, atomically consume the one-time transaction commit credential and update the knowledge base according to the target baseline snapshot.

[0370] Optionally, the refined and extended functions of the program can be found in the description above.

[0371] This application embodiment also provides a storage medium that can store a program suitable for execution by a processor, the program being used for:

[0372] Obtain controlled source material with a source version of the knowledge base and a target benchmark snapshot of the knowledge base; create an evidence anchor point containing the source version; and create a target anchor point containing the target benchmark snapshot.

[0373] Multiple fact records generated from the controlled source material based on the evidence anchor and the target anchor;

[0374] Based on the evidence anchor, the target anchor, the knowledge base authorization scope, and each of the fact records, an execution envelope containing the vectors that allow modification of the target and the target baseline version is generated;

[0375] Send the execution envelope and the baseline snapshot that allows modification of the target to the nondeterministic generative executor so that the nondeterministic generative executor generates candidate objects and their candidate summary values ​​in an isolated staging area;

[0376] A normalized actual difference set is computed based on the baseline snapshot and the candidate objects using a validator independent of the nondeterministic generative executor.

[0377] Based on the aforementioned evidence anchor points, the aforementioned normalized actual difference set, the definitive fact final state, and each of the aforementioned fact records, a two-way evidence closure diagram is constructed;

[0378] The execution envelope, the normalized actual difference set, and the bidirectional evidence closure graph are verified respectively. When all verifications pass, the closed ledger root digest is calculated, and a one-time transaction commit certificate is generated that binds the digest value of the execution envelope, the candidate digest value, the target baseline version vector, and the closed ledger root digest.

[0379] Read the target current version vector. When the target current version vector is equal to the target baseline version vector and the one-time transaction commit credential is valid and has not been consumed, atomically consume the one-time transaction commit credential and update the knowledge base according to the target baseline snapshot.

[0380] Optionally, the refined and extended functions of the program can be found in the description above.

[0381] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0382] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.

[0383] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A knowledge base update method for nondeterministic generative actuators, characterized in that, include: Obtain controlled source material with a source version of the knowledge base and a target benchmark snapshot of the knowledge base; create an evidence anchor point containing the source version; and create a target anchor point containing the target benchmark snapshot. Multiple fact records generated from the controlled source material based on the evidence anchor and the target anchor; Based on the evidence anchor, the target anchor, the knowledge base authorization scope, and each of the fact records, an execution envelope containing the vectors that allow modification of the target and the target baseline version is generated; Send the execution envelope and the baseline snapshot that allows modification of the target to the nondeterministic generative executor so that the nondeterministic generative executor generates candidate objects and their candidate summary values ​​in an isolated staging area; A normalized actual difference set is computed based on the baseline snapshot and the candidate objects using a validator independent of the nondeterministic generative executor. Based on the aforementioned evidence anchor points, the aforementioned normalized actual difference set, the definitive fact final state, and each of the aforementioned fact records, a two-way evidence closure diagram is constructed; The execution envelope, the normalized actual difference set, and the bidirectional evidence closure graph are verified respectively. When all verifications pass, the closed ledger root digest is calculated, and a one-time transaction commit certificate is generated that binds the digest value of the execution envelope, the candidate digest value, the target baseline version vector, and the closed ledger root digest. Read the target current version vector. When the target current version vector is equal to the target baseline version vector and the one-time transaction commit credential is valid and has not been consumed, atomically consume the one-time transaction commit credential and update the knowledge base according to the target baseline snapshot.

2. The method according to claim 1, characterized in that, The creation of the evidence anchor point containing the source version includes: Identify evidence fragments from the controlled source material; Generate a source ID based on the evidence fragment and the source version; The evidence fragments are normalized to obtain normalized evidence fragments, and the fragment summary value of the normalized evidence fragments is calculated. An evidence anchor is created based on the source ID, the source version, the range of the evidence fragment in the controlled source material, the fragment summary value, and the business function and operation type supported by the evidence fragment.

3. The method according to claim 1, characterized in that, Creating a target anchor point that includes the target baseline snapshot includes: Based on the target baseline snapshot, determine the target object to be updated and generate the ID of the target object to be updated. Determine the allowed modifiable structural range of the target object to be updated, and the target location to be modified within the target object to be updated, and determine the allowed modification operations for the target location; Generate a structural locator based on the target location; Calculate the content digest value of the target content to be modified in the target object to be updated; A target anchor is created based on the id of the target object to be updated, the target location, the allowed modification range of the structure, the target baseline snapshot, the content summary value, the allowed modification operation, and the structure locator.

4. The method according to claim 1, characterized in that, After generating the execution envelope containing the target baseline version vector, the method further includes: The execution envelope is sealed.

5. The method according to claim 1, characterized in that, The process by which the nondeterministic generative actuator generates candidate objects and their candidate digest values ​​in the isolation buffer includes: The nondeterministic generative executor generates candidate objects in the isolation storage area based on the evidence anchor, the baseline snapshot, the allowed operation range, each of the fact records, and the execution intent of the fact records; The nondeterministic generative executor normalizes the candidate objects and calculates the candidate summary value of the normalized candidate objects using a summary calculation function.

6. The method according to claim 1, characterized in that, The step of computing a normalized actual difference set based on the baseline snapshot and the candidate objects using a validator independent of the nondeterministic generative executor includes: The candidate objects and the benchmark snapshot are converted into comparable structures by a verifier independent of the nondeterministic generative executor, resulting in comparable candidate objects and comparable benchmark snapshots. The verifier performs a normalized difference comparison between the comparable candidate object and the comparable benchmark snapshot according to a preset difference pattern, thereby obtaining a normalized actual difference set.

7. The method according to claim 1, characterized in that, The method also includes: After generating the execution envelope, a first summary value of the execution envelope is calculated; After each of the aforementioned fact records is generated, a second summary value of the execution intent for that fact record is calculated; The execution envelope verification process includes: The first digest value to be verified of the execution envelope is recalculated using the verifier. The verifier recalculates the second verifiable summary value of the execution intent for each of the fact records. The verifier recalculates the candidate digest value to be verified for the candidate object. If the first digest value is consistent with the first digest value to be verified, and the second digest value of each fact record is consistent with the second digest value to be verified, and the candidate digest value is consistent with the candidate digest value to be verified, then the execution envelope verification passes; otherwise, the execution envelope verification fails.

8. The method according to claim 1, characterized in that, The number of allowed modification targets is multiple, and the execution envelope includes structural constraints, a set of allowed evidence for each allowed modification target, and a set of allowed operations. The verification process for the normalized actual difference set includes: Target object verification is performed, which verifies whether each target object in the normalized actual difference set is a permitted target and not a prohibited target, and whether each difference unit in the normalized actual difference set is within its corresponding permitted range. A version verification is performed, wherein the version verification is to verify whether the base version of the execution envelope is the version of the target base snapshot; Evidence binding verification is performed, which verifies whether each piece of evidence supporting the normalized actual difference set belongs to the allowed evidence set and whether the evidence allows its corresponding operation. Perform operation verification, which involves verifying whether each operation derived from the normalized actual difference set belongs to the set of allowed operations. Perform a structure check, which verifies whether the structure of the normalized actual differences within the normalized actual difference set conforms to the structure constraints. Perform a budget verification, which involves verifying whether the total amount of data within the normalized actual difference set exceeds the change budget. Perform intent consistency verification, which verifies whether the semantic meaning of the operation intent transformed by the normalized actual difference set does not exceed the preset range of the preset execution intent; If the target object verification, version verification, evidence binding verification, operation verification, structure verification, budget verification, and intent consistency verification all pass, then the normalized actual difference set verification passes; otherwise, the normalized actual difference set verification fails.

9. The method according to claim 1, characterized in that, The standardized actual difference set includes multiple standardized actual difference information, and the two-way evidence closure diagram includes multiple first nodes representing the fact record, multiple second nodes representing the standardized actual difference information, a third node representing the final state of the evidenced fact, and a fourth node representing the evidence anchor point. The verification process of the bidirectional evidence closure diagram includes: Perform a first verification and a second verification, wherein the first verification is to verify whether each first node leads to the second node or the third node, and the second verification is to verify whether each second node leads to the fourth node via at least one first node; If both the first and second verifications pass, the two-way evidence closure diagram verification passes; otherwise, the two-way evidence closure diagram verification fails.

10. The method according to claim 1, characterized in that, The calculation of the closed ledger root summary includes: The edges and nodes of the two-way evidence closed graph, the final state of the evidenced facts, and the verification results of the two-way evidence closed graph are normalized and sorted to obtain a closed ledger. Calculate the closed ledger root summary of the closed ledger.

11. The method according to claim 1, characterized in that, The reading of the target's current version vector includes: After the transaction commit module acquires the commit lock or enters a database transaction, it reads the target current version vector.

12. The method according to any one of claims 1-11, characterized in that, The method also includes: If any of the execution envelope, the normalized actual difference set, or the bidirectional evidence closure graph fails to be verified, or the target current version vector is not equal to the target baseline version vector, or the one-time transaction commit certificate has been consumed, then the current version of the knowledge base is maintained.

13. A knowledge base update system for nondeterministic generative actuators, characterized in that, include: The source material acquisition module is used to acquire controlled source materials with a source version of a knowledge base and a target benchmark snapshot of the knowledge base; The evidence anchor creation module is used to create evidence anchors that contain the source version. The target anchor point creation module is used to create target anchor points that contain the target baseline snapshot; The fact record generation module is used to generate multiple fact records from the controlled source material based on the evidence anchor and the target anchor; An execution envelope generation module is used to generate an execution envelope containing a vector that allows modification of the target and the target baseline version, based on the evidence anchor, the target anchor, the knowledge base authorization scope, and each of the fact records. An execution envelope sending module is used to send the execution envelope and the baseline snapshot of the target that allows modification to be sent to the nondeterministic generative executor; A nondeterministic generative executor used to generate candidate objects and their candidate digest values ​​in an isolated staging area; An independent validator is used to compute a normalized actual difference set based on the baseline snapshot and the candidate objects; The two-way evidence closure graph construction module is used to construct a two-way evidence closure graph based on the evidence anchor points, the normalized actual difference set, the evidenced fact final state, and each of the fact records. The closed ledger root digest calculation module is used to verify the execution envelope, the normalized actual difference set, and the bidirectional evidence closure graph respectively, and calculate the closed ledger root digest when all verifications pass. A one-time transaction commit certificate generation module is used to generate a one-time transaction commit certificate that is bound to the digest value of the execution envelope, the candidate digest value, the target baseline version vector and the closed ledger root digest; The target current version vector reading module is used to read the target current version vector; The transaction commit module is used to atomically consume the one-time transaction commit credential and update the knowledge base according to the target benchmark snapshot when the target current version vector is equal to the target base version vector and the one-time transaction commit credential is valid and has not been consumed.

14. A knowledge base update system for nondeterministic generative actuators, characterized in that, Including memory and processor; The memory is used to store programs; The processor is configured to execute the program to implement the steps of the knowledge base update method for nondeterministic generative executors as described in any one of claims 1-12.

15. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the knowledge base update method for nondeterministic generative executors as described in any one of claims 1-12.